Rina Certis  or AHR
Rina Certis or AHR

Reputation: 131

How do I implement ZigBee in Android?

We want to implement ZigBee in an Android tablet using a Texas Instrument cc2530m ZigBee soc. The tablet already worked, and we have a ZigBee driver and a stack driver. How can we develop an application for home automation profile with ZigBee?

Upvotes: 3

Views: 9343

Answers (2)

Chandu
Chandu

Reputation: 31

There are a few android tablets with integrated Zigbee Module (http://www.geekland.co/Zigbee-Tablets_c69.htm) that use serial port to communicate with the zigbee module. You can write a Java app that writes commands as messages to the serial port and have the firmware (developed on the chip) to translate the messages to appropriate zigbee commands.

Upvotes: 3

Chris Stratton
Chris Stratton

Reputation: 40397

You can use most of the standard unix IPC mechanisms such as pipes or unix domain sockets with android. While android adds its own binder IPC mechanism that would be fairly tricky to use from the "command line" portion of your solution, pipes & sockets should be readily accessible from java-like app code. You shouldn't even need an NDK helper to do the communication, though you can use one if you prefer.

The more recent android tablets with official USB host under honeycomb have a user-mode usb host management API where you can talk directly to usb devices from within application code (ironically, that mechanism does not support writing drivers in native code!)

Upvotes: 2

Related Questions