Background
So I'm doing the Hackathon and my application uses the accelerometer and the application button to make an Android tablet perform some tasks. I have some experience with Android apps and was able to build the Android WICED Sense app and modify it to detect a given threshold on the accelerometer. However, I have gone through the source code and found nothing on the Android side that interacts or reads the Application Button on the tag. I have even tried dumping undocumented/unused bits in the sensor message sent by the tag to Android and do not see anything changing based ion the application button.
It's looking more and more like I will need to use the SDK and make some firmware that will transmit the state of the application button to the Android app. However, I really would like to avoid messing with the tag firmware if at all possible.
I have three questions:
1) Is there any way to read the default WICED tag firmware's messages in order to get the state of the application button?
2) If not, is there an existing firmware I can upload (i.e. a hex file or binary file) that does this that I can upload so I don't have to create an entire application?
3) If all that fails, what advice can you give for me for building the simplest app to do this? Specifically, what template already in the SDK would be easiest to use as a base to begin with?
Also, I would really like to be able to send a message from Android to the tag to turn on the buzzer, but that is something I will tackle next.
Thanks,
Kevin N. Haw
Solved! Go to Solution.
Good questions, I was also thinking to enable a button, to get in on App.
My understanding:
I think, all possible but I am quite sure it needs to put your hands on the FW code.
BTW: an existing bin or hex file might not help really. As I understand, the only way to load a new FW is: compile and let it be launched by Eclipse SDK. Or: get it from an OTA server (where you have to put it on first). Then you could update via the air (and this "update" menu).
Otherwise you would need a tool which is a firmware downloader, which can read such hex or bin file and send via UART to device. I am not aware of such a stand-alone tool, it looks to me just used behind the scenes in Eclipse.
If you can modify a makefile in Eclipse and tell it: "do not compile, just load the resulting, here existing, bin file"? Eventually.
Good questions, I was also thinking to enable a button, to get in on App.
My understanding:
I think, all possible but I am quite sure it needs to put your hands on the FW code.
BTW: an existing bin or hex file might not help really. As I understand, the only way to load a new FW is: compile and let it be launched by Eclipse SDK. Or: get it from an OTA server (where you have to put it on first). Then you could update via the air (and this "update" menu).
Otherwise you would need a tool which is a firmware downloader, which can read such hex or bin file and send via UART to device. I am not aware of such a stand-alone tool, it looks to me just used behind the scenes in Eclipse.
If you can modify a makefile in Eclipse and tell it: "do not compile, just load the resulting, here existing, bin file"? Eventually.
Thanks! I will proceed with this approach. Most likely, there will be other issues to tackle along the way, but I'll post them separately.
Again, thank you for the help!
- Kevin