Reply To: xbee explorer usb with phonegap
Just to be sure I’m understanding correctly… you have a xbee explorer attached to your Android tabled and would like to communicate from the Android tablet with and arduino using XBee with no PC involved?
If phonegap doesn’t provide a serial interface, you will need to create a serial to websocket bridge that runs on your android tablet. You may be able to port the existing java code for Breakout Server (https://github.com/soundanalogous/BreakoutServer) to an android application. That could create a local serial to websocket bridge and webserver on your Android device. Another option is if your Android application can run nodeJS you could try to run the nodeJS version of breakout server (see Breakout/node_server/).
Also see my recent post on using Xbee with Arduino: http://www.jeffhoefs.com/2013/06/wireless-firmata-using-xbees/. An Arduino Uno will work but you’ll have to manually reset the Arduino in order to make a connection. With a FIO you’ll get an auto reset.
Let me know if you’re aware of a phonegap serial plugin. Would love to try that out.