Hi, I had some troubles with receiving incoming values from Android Emulator, but when i replaced loopback address (127.0.0.1) with my private IP address (192.168.0.10), It works very well. Does anybody knows the reason? Or any ideas about how works with Multicast (188.8.131.52) ?
Anyway, here are working codes, I hope it will help newcomers like me.
Cheers and thanks in advance!
oscP5 on Processing:
* oscP5sendreceive by andreas schlegel
* example shows how to send and receive osc messages.
thanks for sharing, a small but crucial detail. i dont have any inside information, but believe that the locahost address 127.0.0.1 does not apply to the android simulator. in case you need to now your local ip address, you can use netP5's NetInfo class to print the information into the console :
without testing i believe the multicast address should work without any problems.
I have been trying to get OscP5 and android to play nice with no luck. I've tried sending messages from the device and emulator to 2 different ip address (computers i'm testing on).
Any tips, on where I could be going wrong? Has anyone else successfully got the above to work?
My steps are as follows: 1) Open new processing 0194 (on 10.6 osx) sketch in android mode 2) Copy paste all the 'send' code from above 3) Drag and drop the OscP5.jar library file onto my sketch 4) Run 5) I listen to messages using the Osculator app (http://www.osculator.net/) instead, but I also tried with the 'receive' code above. Neither work.
Also, I had filed a bug, as I wasn't able to get an OSC-Android sketch to run (at first I thought it was all libraries), and it turns out the solution is to remove netP5 - they have similar classes, which Android doesn't like.
Multicasting in the emulator also differs from how things are implemented on the device - run into some issues with multicasting on Android devices when playing with zeroconf implementation. Curious if anyone is trying this on devices, and if so, which OS version? I need to investigate this myself again(!)
hi peter, i just did some quick readings about android and multicast/zeroconf. also stumbled upon your yes, android can do zeroconf/bonjour:jmDNS, and this AndroidDnssd implementation. a thread over at stackoverflow suggest that multicast can be (un)locked by underlying processes on the device itself (Multicast on android 2.2). so i am very curious about solving/implementing a solution with oscP5, i will investigate more, maybe let me know if your investigations lead to some promising results.
I'm having troubles getting messages in the emulator. I wrote a couple of broadcast/client sketches and they work perfectly in Processing mode but once the client runs in android mode, it doesn't seem to get any messages. Sketches here: