D T 5 0 - M C O M M A N D R E F E R E N C E G U I D E 1 . 1 P a g e
37 | 38
AT+UBTLC?
Reads the Local Class of Device code.
AT+UBTLC=<cod>
Writes the Local Class of Device code.
Response
Description
+UBTLC:<cod>
Successful read response.
OK
Successful write response.
ERROR
Error message.
Parameter
Description
cod
Valid values for this parameter are specified in the
Bluetooth Assigned Numbers Document,
www.bluetooth.com. The parameter has been divided
into three segments, a service class segment, a major
device class segment, and a minor device class
segment (bits 2-7). Extract from the Bluetooth
Assigned Numbers document:
Service class (bit mask, bits 13-23):
Bit 16: Positioning (Location identification)
Bit 17: Networking (LAN, Ad hoc, etc)
Bit 18: Rendering (Printing, Speaker, etc)
Bit 19: Capturing (Scanner, Microphone, etc)
Bit 20: Object Transfer (v-Inbox, v-Folder, etc)
Bit 21: Audio (Speaker, Microphone, Headset service,
etc)
Bit 22: Telephony (Cordless telephony, Modem,
Headset service)
Bit 23: Information (WEB-server, WAP-server, etc)
Major device class (number, bits 12-8):
00000: Miscellaneous
00001: Computer (desktop, notebook, PDA, etc)
00010: Phone (cellular, cordless, modem, etc)
00011: LAN/Network Access point
00100: Audio/Video (headset, speaker, stereo, video
display, VCR)
00101: Peripheral (mouse, joystick, keyboards)
00110: Imaging (printing, scanner, camera, etc)
11111: Uncategorized, specific device code not
specified
The default value is 0.
8.1.14 Master slave role +UBTMSR
AT Command
Description
AT+UBTMSR=<bd_addr>
Read the local master-slave role of a Bluetooth
BR/EDR ACL connection. Returns the local role for a
specific connection identified by the remote device
address.
Response
Description