Hi Walter, I am not sure about why the communication between Linux and Android is not working for you, but I can tell you that I tested your server/client scenarios before and they all worked. Are your Linux devices connected by wireless or ethernet? I remember having a problem by not having wireless devices in the same subnet with ethernet devices so the multicast request was not able to reach them. You could download a tool like Angry Ip Scanner or use Linux nmap to scan available devices and see if you find your pair device IP.
Martin On Tue, May 24, 2016 at 8:28 PM, Walter Guerra <walter.guerra at signove.com> wrote: > Hi, > > I'm trying to do an app with Iotivity but I'm running into some problems. > After digging a while, I tried the examples from the SDK and I still have > the same issues. Here's the test cases: > > - simpleserver example on a Linux machine and simpleclient on another > Linux machine on the same network, they can communicate correctly. > - simpleserver on a Linux machine and simpleclient on an Android phone, > they don't communicate at all > - simpleserver on an Android phone and simpleclient on a Linux machine, > they also can't communicate > - simpleserver on an Android phone and simpleclient on another Android > phone, it works. > > So, it looks like the Android versions only communicate with another > android and the same is valid for Linux. Some comments: > > - All Android phones and Linux machines are on the same network and can > ping each other. > - There are no firewalls running on the Linux machines. > - I'm using iotivity-1.1.0 > > One thing that I noticed was that the Linux machine, if I comment out the > line that uses the ioc_srv_db_client.json file it doesn't work (returns > error 46 when trying to subscribe to the server). On the Android, the asset > is there (the json file), but it's not referenced anywhere. > > Any clues on how to make Linux/Android communication work? I have no idea > what I'm doing wrong. > > Thanks! > Walter Guerra > > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160602/8566487d/attachment.html>
