Menu
Help Categories
Menu
Here is Windows BLE functions:
Here is an outline example of how to set and run a foc.us program:
Example. 40 Hz tACS.
It has some extra information, but simply write hexadecimal value marked as “data” to the characteristic with specified UUID. I Pair/bond with device first.
II Write and enable a program (need to do it once, device has nonvolatile memory for programs).
1. Write program’s Descriptor 0 to the Data buffer:
UUID: 0000AAB3-F845-40FA-995D- 658A43FEEA4C
Data: 00 4E 41 4D 45 00 00 00 00 00 01 58 02 00 00 00 DC 05 00 00
2. Execute “write program” subcommand with Descriptor ID parameter set to 0.
UUID: 0000AAB1-F845-40FA-995D- 658A43FEEA4C
Data: 02 04 00 00 00
3. Write program’s Descriptor 1 to the Data buffer
UUID: 0000AAB3-F845-40FA-995D- 658A43FEEA4C
Data: 1E 01 40 9C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4. Execute “write program” subcommand with Descriptor ID parameter set to 1.
UUID: 0000AAB1-F845-40FA-995D- 658A43FEEA4C
Data: 02 04 00 01 00
5. Execute “enable program” subcommand to verify and enable the command.
UUID: 0000AAB1-F845-40FA-995D- 658A43FEEA4C
Data: 02 05 00 00 00
III Start program:
UUID: 0000AAB1-F845-40FA-995D- 658A43FEEA4C
Data: 02 07 00 00 00
- Last updated: by:
- Mike
- November 13, 2019
- 10:25 am