lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
1.01k stars 394 forks source link

Android 8 vs Android 7 UDP multicast -- potential issue with Android 8 & LCM compatibility? #253

Open jcdoster opened 6 years ago

jcdoster commented 6 years ago

Using a Motorola Droid Turbo 2 (API 24) able to transmit/receive LCM messages across UCP multicast between androids and also between Linux laptop and android. Using Samsung Galazy S7 (API 26), unable to transmit LCM message to either another android or to a Linux laptop, but can receive LCM messages from API 24 android over UDP multicast. Exact same android app on both phones. I don't understand.

Things I have looked into:

1) IP multicast address. Tried 224.0.0.251:4000 in addition to 239.255.76.76:7667. Thinking Samsung might have an issue with multicast definition. Didn't work on either IP. 2) Downloaded "Multicast Tester" onto both the API 24 and API 26 phones and transmitted message across both multicast IP addresses above to each other. So both phones can transmit and receive UDP multicast, verified. 3) Scrutinized my code to make sure there are no hardware or API specific references besides the android target/build API, which is 26 for the app, and the minimum is 17.

At this point I am wondering if the datagram packet implementation between Android 7 and 8 is different, and perhaps the LCM mechanization of packet construction and publishing doesn't work with something that has changed in Andriod 8.

Please help. Thx! Jason

aegirsystems commented 6 years ago

have you had any update - i am having a similar problem and have posted it on StackOverflow with little to no help - i am developing a commercial app that leverages UPnP for Discovery and Event notification but if 8 is having problems then not sure where to go next.

jcdoster commented 6 years ago

I wish I had heard something back. Nothing yet :(

For now we have stopped trying to ship data over LCM multicast for Android 8.

Boo.

Jason

On Wed, Nov 7, 2018 at 7:00 AM aegirsystems notifications@github.com wrote:

have you had any update - i am having a similar problem and have posted it on StackOverflow with little to no help - i am developing a commercial app that leverages UPnP for Discovery and Event notification but if 8 is having problems then not sure where to go next.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lcm-proj/lcm/issues/253#issuecomment-436615089, or mute the thread https://github.com/notifications/unsubscribe-auth/AqAd-0NakmCn4J_dFiI-JAXskIKn92Bbks5ustltgaJpZM4XWyR6 .

jcdoster commented 6 years ago

Could you send me a link to your stack overflow query too? I will try and flight follow that one as well.

Thx, Jason

On Wed, Nov 7, 2018 at 10:33 AM Jason Doster jason.doster@vethresearch.com wrote:

I wish I had heard something back. Nothing yet :(

For now we have stopped trying to ship data over LCM multicast for Android 8.

Boo.

Jason

On Wed, Nov 7, 2018 at 7:00 AM aegirsystems notifications@github.com wrote:

have you had any update - i am having a similar problem and have posted it on StackOverflow with little to no help - i am developing a commercial app that leverages UPnP for Discovery and Event notification but if 8 is having problems then not sure where to go next.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lcm-proj/lcm/issues/253#issuecomment-436615089, or mute the thread https://github.com/notifications/unsubscribe-auth/AqAd-0NakmCn4J_dFiI-JAXskIKn92Bbks5ustltgaJpZM4XWyR6 .