-
Notifications
You must be signed in to change notification settings - Fork 0
BlueTooth Configuration
###BlueBasic has a number of predefined services, characteristics and values.
(For MAC OSX, download LightBlue (http://punchthrough.com/).
It will connect to the CC254x devices and allow you to inspect and set the values.
Note that you should disconnect from the BlueBasic console first.)
The peripherals identify themselves as BASIC#NN where NN is the last two hex digits of the MAC address of the BT module.
After connection, the LightBlue log will show a message like:
Connected to device UUID: 3B98B62A-F469-4802-9FC1-D38B5FC67A36 Named: BASIC#97
- F000FFC0-0451-4000-B000-000000000000
- 180A
- 25FB9E91-1616-448D-B5A3-F70A64BDA73A
These are hard-coded into BlueBasic.
This service exposes two characteristics:
F000FFC1-0451-4000-B000-000000000000
F000FFC2-0451-4000-B000-000000000000
Not sure what they do, but you can subscribe to them and write to them.
This service exposes nine characteristics, which identify the device, software revision etc.
- UUID 2A23 Read Value: 0x975A2100004C99B4
- UUID 2A24 Read Value: 0x2D
- UUID 2A25 Read Value: 0x2D
- UUID 2A27 Read Value: 0x2D
- UUID 2A28 Read Value: 0x426C756542617369632076302E36
- UUID 2A29 Read Value: 0x687474703A2F2F626C6F672E786F6A732E6F72672F626C75656261736963
- UUID 2A2A Read Value: 0xFE006578706572696D656E74616C
- UUID 2A50 Read Value: 0x010D0000001001
I think this is the serial connect service.
It exposes two characteristics:
- UUID C3FBC9E2-676B-9FB5-3749-2F471DCF07B2
You can subscribe and read. If you subscribe it appears to return the same data as the console sees in BlueBasic - UUID D6AF9B3C-FE92-1CB2-F74B-7AFB7DE57E6D
You can write values here, but I am not sure what gets written. It has the capability to crash the stored basic program, and to cause a firmware upgrade. Who knows ???