The text of a manual · part 17 of 21
6820 Series 80-Column Printer User's Manual, 6822 Configuration: Bluetooth Configuration Commands and Specifications, pages 131 to 139
Pages 131 to 139 of 171, from 6820 Series 80-Column Printer User's Manual, 6822 Configuration
The original document is the PDF (6.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6822
Page 131
Bluetooth Configuration B Commands and Specifications
Configuration of the Bluetooth radio and software is accomplished using the Bluetooth Configuration Commands listed in this appendix and the Bluetooth Configuration Utility which is available from Intermec Product Support.
6820 Series 80-Column Printer User’s Manual
119
Page 132
Appendix B, Bluetooth Configuration Commands and Specifications
Using Configuration Commands All printable characters can be entered directly via the keyboard. Any non-printable characters are entered in binary data format. Numbers are in decimal format except numbers with: • an h suffix are in hexadecimal
• a “0x” prefix are in hexadecimal
• a “b” suffix are in binary
Binary data format is any non seven-bit ASCII data to transmit to the module is encoded in the Internet percent notation. Any hex byte to transmit is preceded by the “%” sign and encoded in hex ASCII. To send the value 0xF5, the “%F5” bytes are transmitted. The “%”character is always transmitted as “%25”. Thus, a Bluetooth address could transmit as “%00%E0%03%45%F4%6D”. Generic format: <command character><command type><command payload><CR> <command character> is one character from the set: [A-Z] <command type> is one character for the set: [0-9] <command payload> is variable in length. <CR> is the command terminator.
The <command payload> is formed from printable ASCII characters from the code range 0x20 to 0x7E. Codes outside of this range are escaped using the percent (%) character followed by two hexadecimal digits. The percent character is always represented by the three characters %25. The command terminator is character code 0x13 (carriage return), or character code 0x10 (line feed), or character codes 0x13, 0x10 (carriage return, line feed). An example command to set the friendly name to “Len’s 100% serial module”: F0Len’s 100%25 serial module<CR>
Character codes outside of the range of 0x20 to 0x7E are ignored. When using percent (%) to form hexadecimal character codes there must be exactly two hex digits using characters: [0-9, A-F, a-f]. Characters outside of this range cause the command to fail. 120
6820 Series 80-Column Printer User’s Manual
Page 133
Appendix B, Bluetooth Configuration Commands and Specifications
•
Commands that fail return the four character sequence NAK<CR>
•
Commands that are accepted return the four character sequence ACK<CR>
•
Commands that return payload data use the format:
<command character><command type><command payload><CR> <command character> is one character from the set: [a-z] <command type> is one character for the set: [0-9] <command payload> is variable in length. <CR> is the command terminator.
The command character is the lower case version of the local host command.
Operating Modes The module interface has two modes: •
Bluetooth Link Active State In this case the Serial Interface looks like a raw serial port (TxD, RxD, CTS, etc. and GND). There is no intelligence in the Bluetooth module from the serial interface perspective. This mode does not support the command and control modes described below.
•
Bluetooth Link Inactive State This mode exists when a Bluetooth link does not exist. In this case, the serial interface looks like a serial port that supports a number of command and control modes.
On reset, the unit comes up in Bluetooth Link Inactive state. After the first Bluetooth connection, the unit goes into Bluetooth Link Active state. It stays in this state until the link is lost because the Master shuts it down or there is an out-of-range condition, it then returns to the Bluetooth Link Inactive state.
6820 Series 80-Column Printer User’s Manual
121
Page 134
Appendix B, Bluetooth Configuration Commands and Specifications
Command and Control Modes Query Mode Commands Command
Function
?<CR>
Read ACK
?F0<CR>
Read friendly name
?L<CR>
Read security mode
?C0<CR>
Read connectable mode
?C1<CR>
Read page scan timing
?D0<CR>
Read discoverable mode
?D1<CR>
Read inquiry scan timing
?S1<CR>
Read class of device
?S2<CR>
Read service name
?S4<CR>
Read PIN code
?T0<CR>
Read shutdown timeout in minutes
?B0<CR>
Read Bluetooth addresses of all the paired devices
Example Commands Command
122
Function
“?<CR>“
”ACK<CR>”
“?F0<CR>”
“f0MyFriendlyName<CR>”
“?L<CR>”
“10<CR>” Turn off Encryption, Authentication, and Exclusion “11<CR>” Authentication “12<CR>” Encryption and Authentication “13<CR>” Encryption, Authentication, and Exclusive
“?C0<CR>”
”c0ON<CR>”
“?C1<CR>”
”c11024,512<CR>”
“?D0<CR>”
”d0ON<CR>”
“?D1<CR>”
”d11024,512<CR>”
“?S1<CR>”
”s1001F00<CR>”
“?S2<CR>”
”s2MyServiceName<CR>”
“?S4<CR>”
”s4MyPinCode<CR>” 6820 Series 80-Column Printer User’s Manual
Page 135
Appendix B, Bluetooth Configuration Commands and Specifications
Example Commands (continued) Command
Function
“?T0<CR>”
“t0Shutdown Timer = 5 minutes<CR>”
“?B0<CR>”
“b0No Devices PairedCR>”
Note: These commands are only available over the serial link, not over the air and are not available when the device is in the Bluetooth Link Active State.
Set Local Bluetooth Device Name Command
F0<Device Friendly Name><CR>
Definition
“Device Name”, String up to 254 bytes long
Default
“6820-DDEEFF” where DDEEFF is from the (AABBCCDDEEFF) Bluetooth device address
Example
“F01Len’s 100%25 serial module<CR>“ This sets the name to “Len’s 100% serial module.”
Set Class of Device/Service Field Command
S1< Class of Device/Service field >
Description
The Class of Device/Service (CoD) field is a 24-bit field defined in the Bluetooth Assigned Numbers document. This field is sent in a HEX ASCII format, most significant byte first.
Example
“S1001F00<CR>” is a common Class of Device value for a basic serial device.
Set Service Name Command
S2<Service Name>
Description
Sets the service friendly name to send to the remote Bluetooth device in response to a service discovery request. The length of the service name is limited to 32 bytes.
Definition
Profile Name, text name entered into the SDP record for the serial port profile
Default
“Wireless Printer”
6820 Series 80-Column Printer User’s Manual
123
Page 136
Appendix B, Bluetooth Configuration Commands and Specifications Example
“S3Acme Printer<CR>”
Connectable On/Off Command
C0 <ON|OFF><CR>
Description
Sets the device into “connectable” mode
Example
“C0OFF<CR>”, Become non-connectable “C0ON<CR>”, Become connectable
Specify Page Scan Timing Command
C1<Page_Scan_Interval>,<Page_Scan_Window>< CR>
Description
Sets the Page Scan timing parameters
Default
4096,18
Example
“C11024,512<CR>”
Note: To enable scanning, the values for Interval and Window must be in the range of 18 to 4096. The Window value must be less than the Interval value. Both values must be zero to disable scanning. Note: Modifying Page Scan Timing can improve connection times, but may adversely affect battery performance.
Enable Discoverable
124
Command
D0 <ON|OFF><CR>
Description
Sets the device into “discoverable” mode
Example
“D0OFF<CR>”, Become non-discoverable “D0ON<CR>”, Become discoverable
6820 Series 80-Column Printer User’s Manual
Page 137
Appendix B, Bluetooth Configuration Commands and Specifications
Specify Inquiry Scan Timing Command
D1<Inquiry_Scan_Interval>,< Inquiry_Scan_Window><CR>
Description
Sets the Inquiry Scan timing parameters
Default
4096,18
Example
“D11024,512<CR>“
Set Encryption/Authentication Pin Code Command
S4<PIN code>
Description
PIN Code, Pin code can be NULL and as long as 16 characters
Default
“S4%00” NULL PIN code
Example
“S4MyPinCode <CR>”
Manage Security Modes This command controls the security access mode and device pairing. The modes available are: •
L0 Disable encryption, authentication and exclusion
•
L1 Enable authentication
•
L2 Enable encryption and authentication
•
L3 Enable encryption, authentication and exclusive
Mode L0 allows any remote device to connect. Mode L1 require the remote device to be authenticated by a PIN request. The PIN code for the module is set to a user–specified value with the S4 command. Currently the default PIN is the NULL string. Mode L2 adds encryption to the Bluetooth link. Mode L3 adds exclusive connection to one specific Bluetooth device. In this mode only connection requests from the initial device are allowed. Connections from other devices are rejected even if they supply the correct PIN code.
6820 Series 80-Column Printer User’s Manual
125
Page 138
Appendix B, Bluetooth Configuration Commands and Specifications
Device pairing and bonding are associated with this command and works as follows: After an L command is executed the current device pairing and bonding is deleted. The next device to connect becomes paired and bonded to the module. In Modes L1 and L2, other devices are allowed to connect but only the first device to connect is paired and bonded. Other devices are always required to supply a PIN code to complete the connection. In Mode L3, only one device is allowed to connect. This device is paired and bonded and needs to supply the PIN code only on the initial connection. Note: Some of the Bluetooth user interfaces cannot supply a NULL string as a PIN code. Use the S4 command to specify a PIN code that is not NULL.
Read Module Version Command
V0<CR>
Description
Displays the firmware build version currently running “V0<CR>“ Returns: “v1yyyymmddHHMM<CR>”
Example
Note: This command responds with the requested data, only not the “ACK<CR>”.
126
6820 Series 80-Column Printer User’s Manual
Page 139
Appendix B, Bluetooth Configuration Commands and Specifications
Read Local Device Address Command
V1<CR>
Description
Displays the local device address
Returns
“v1%xx%xx%xx%xx%xx%xx<CR>”
Note: This command responds with the requested data, only not the “ACK<CR>”. Example: Sent: “V1<CR>“ Received: ”v1%00%2C%C6%03%45%39”
Set Shutdown Timing Command
T0<Time in Minutes><CR>
Description
“Time” – Integer value – 0 implies never expire the timer
Range
0-270 minutes
Default
120
Example
“T0120<CR>” This sets the shutdown timer to 120 minutes.
Clear Link Key Table Command
B0<CLR><CR>
Description
Clear Pair or Bonding command cleans up all of the link key and Bluetooth address combination PSKEYs.
Default
None
Example
“B0CLR<CR>” This clears all saved link keys.
6820 Series 80-Column Printer User’s Manual
127