Dear All,
I am developing an application to collect data from a group of distributed
person “gate counters”, I have Sparkfun BlueDongle/BlueSMiRF transcievers and I can establish connection
using specific Bluetooth Address (unique) and receive data, this all works in
basic testing.
I want to be able to do Bluetooth inquiries and I would like the inquiry
after specific CoD “Class of Device” (as the environment that the gate counters
are to be installed in are also populated by possibly many other bluetooth
services), the BlueRadio’s AT command reference gives details specifically:
2.1.5 (COD) Class of Device
SC ,
Change Class of Device (COD) requires exactly 8, 16-bit hex values (0 thru
F) based on the Bluetooth COD specification names published and maintained
by the Bluetooth SIG. Factory default is 00000000 – undefined since this
is set by the user based on the final OEM device installed in.
EXAMPLE:
TYPE : ATSC,00020114
REPLY: <cr_lf>OK<cr_lf>
I have looked at the Bluetooth SIG recommendations and resolved the following
assignment for the equipment I am building:
binary bits
Class definitions: Service classes Major Device Class Minor
Device Class Format
bits 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3
2 1 0
0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0
0 0 0
Service definition (Capturing) (peripheral) (Sensing)
I cannot reconcile Bluetooth SIG information coded in
“bits of 3 OCTETS” with the assignment needed for the hardware coded "8, 16-bit
hex values (0 thru
F)". I experiemented with a few settings commonly found for (major service)
“mobile” (minor service) “cellular” telephone assignments but no joy, has anyone tried this and worked out the translation?