Other Parts Discussed in Thread: CC2540
Hello,
I have installed the KeyFobDemo and am using the JavaSimplePeripheral program to send HCI commands. I have been able to modify the JavaSimplePeripheral and the KeyFobDemo code to be able to turn on and off the accelerometer data. In keyfobdemo.c the ACCEL_READ_PERIOD is defined as 50 ms. I would like to modify the JavaSimplePeripheral program to be able to set this period remotely.
The way I currently understand the HCI commands is that essentially I am sending a write request which asks to write a value to a handle which is associated to a specific UUID. This makes sense for enabling the accelerometer and enabling notifications since both have a UUID associated with them (0xFFA1 to enable and 0xFFA3 for x direction) and corresponding handles associated with enabling the accelerometers and notifications. I just can't figure out how to write a value using HCI commands which will get assigned to a variable which can be used elsewhere in the program. Any advice would be greatly appreciated.
Thank you,
Ryan