Frage

I want to connect my Xbee module to my android phone and communicate with it by sending AT commands.

I do know of the USB host facility provided by Android phones, but I do not know how to send data to it.

I have the java-Xbee API and I am able to talk to the Xbee using my computer but since my project involves using the Android OS, any help on this topic will be appreciated.

War es hilfreich?

Lösung

According to this Google Code Page, the java-Xbee API requires Java >= 5 and RXTX.
Considering those two requirements:-

  1. RXTX on android is not an out of the box lib and may require some hacking which may or may not work.
  2. I'm not a Java VM expert, but i know desktop OS JVMs work differently from Dalvik.
    How well would Dalvik run code developed for JVM? Here is a nice StackOverflow topic discussing the two.

Faced with the above challanges, are you brave enough to boldly go where no man has gone before?
Could you also consider the following well documented and supported approaches:-

  1. Ytai Ben-Tsvi & Sparkfun's IOIO-OTG
    Saves you the headache writing android 3.1+ USB host code and thus allows you to use cheaper phones that run droids 1.5 to 2.3 (without hacking the latter).
  2. Digi's WiFi to Xbee
    Allows you to link your android phone (or any other programmable wifi enabled computer) to your device over the internet.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top