Wednesday, May 16, 2012

How can I change the ethernet settings on an arch-arm device from my application?

How can I change the ethernet settings on an arch-arm device from my application? I am using android-15 sdk.



The reason I ask is, my application does UDP socket Tx/Rx in native code, but in order to start the socket service the device (FriendlyARM Tiny210) needs to have DHCP enabled, and whenever the device is rebooted the ethernet settings are reset and I have to manually go in to Ethernet Settings and refresh it. Otherwise I get errno 19 Device Not Found when connecting the socket.



There is no EthernetManager that I can find, but surely there is a way, otherwise it is a huge oversight from the Android team.





No comments:

Post a Comment