The app would allow 7 (not 12)individual switches for on off. Once user selects 'off' the Android phone should send BT command to RN41 to switch off. Same for 'on'.
## Deliverables
I have a circuit with a RN41 bluetooth module that I intend to use to control switches for on off functionality using UART functionality. The other component will be a microcontroller and the switching will be done by a triac
The app would allow 7 individual RN41/BT devices to be discovered with up to 2 switches for on off per BT device . Once user selects 'off' the Android phone should send BT command to RN41 to switch off Port A or Port B. Same for 'on'.
Each BT device with its Port A and Port B switches should be user configurable names. up o 16 characters.
When launched, the App should discovery all switches in range and retrieve names and on/off status. The device will be configured for auto-discovery mode, so it will show up as soon as the host queries for any Bluetooth device in range.
We will be using BT profile: SPP - Serial Port Profile. Modem control commands are not needed (no handshaking required).
We plan to use SPP with an ASCII text communication protocol. We will use a simple protocol that consists of the following commands:
Power on
Power off
Query power state
The device will be discoverable upon power up. Most OSs will assign a virtual serial port to Bluetooth/SPP devices and this is used for communication. Devices can be uniquely identified by the last 2 bytes of their MAC addresses. Authentication is not necessary, but if the host requires it, a passkey of "1234" is preset in the device.
I am open to suggestions on Android version etc. heavy use will begin late 2011.
Also, if I am asking for anything dumb or difficult then please advise on alternative.
Additionally, I believe that this simple functionality is not offered on the iphone, so please correct me if I am wrong, as I would like to have that too.
If bidding please state experience with Android bluetooth and related application experience.