Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 SPP Module Manual BnCOM(BlueandCommunication) ATcommunicationprotocol ForSPPmodule OEM/Integrators Installation BnCOMCo.,Ltd Http://www.bncomm.co.kr TEL)07082748901 1/19 BnCOM Confidential Proprietary 1 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 History 1.0.0 2014.09.12
- First Release JTY 2/19 BnCOM Confidential Proprietary 2 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 INDEX 1. OVERVIEW ....................................................................................................................................... 5 1.1. PROTOCOL BASIC RULE ................................................................................................................ 8 2. REQUEST (HOSTBT) PROTOCOL SUMMARY .................................................................... 10 3. NOTIFY (BTHOST) PROTOCOL SUMMARY ....................................................................... 11 4. GENERAL RESPONSE (BTHOST) PROTOCOL SUMMARY ............................................. 11 5. REQUEST PROTOCOL DETAIL .................................................................................................. 12 5.1. AT ............................................................................................................................................. 12 5.2. ATZ .......................................................................................................................................... 12 5.3. AT&F ....................................................................................................................................... 12 5.4. AT+CONNECT ........................................................................................................................ 13 5.5. AT+DATA=N,XXXXX ............................................................................................................... 13 5.6. AT+SETSLEEP=N .................................................................................................................. 13 5.7. AT+SETSCAN=N,T0 ............................................................................................................... 13 5.8. AT+SETAUTOCON=E,N,T ...................................................................................................... 14 5.9. AT+SETSSP=N ........................................................................................................................ 14 5.10. AT+SETINITMODE=N ........................................................................................................... 14 5.11. AT+SETPIN=XXXX .................................................................................................................. 14 5.12. AT+SETLP=E ........................................................................................................................... 15 5.13. AT+SETNAME=XXXX ............................................................................................................ 15 5.14. AT+SETUART=B,P,S ............................................................................................................... 15 5.15. AT+CONNECTMAC=XXXX ................................................................................................... 15 5.16. AT+SETROS=N ....................................................................................................................... 16 5.17. AT+SETMODEL=XXXX ......................................................................................................... 16 5.18. AT+SETPROSTR=XXXX ........................................................................................................ 16 5.19. AT+SETSERIAL=XXXX .......................................................................................................... 16 5.20. AT+SETMANUF=XXXX .......................................................................................................... 16 5.21. AT+SETDEVCLASS=N,V ....................................................................................................... 17 5.22. AT+GETCP .............................................................................................................................. 17 5.23. AT+SETLED=N ....................................................................................................................... 17 3/19 BnCOM Confidential Proprietary 3 Customer Date Document Doc. Ver SEWOO 2014.12.04 5.24. AT+GETINFO=N ..................................................................................................................... 17 BnCOM Bluetooth SPP Module UART Protocol 1.0.0 4/19 BnCOM Confidential Proprietary 4 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 1. overview
-. Product : SBT-B1 (with BCM-D408EF2 bluetooth module)
-. Frequency : 2.
- Bluetooth version : 2.1+EDR
- Operation temp. : MAX -30 ~ 85
- Supply voltage range : 2.7V ~ 3.6V
-. Block Diagram Figure 1 SBT-B1 This module has been granted modular approval for mobile applications. OEM integrators for host products may use the module in their final products without additional FCC / IC (Industry Canada) certification if they meet the following conditions. Otherwise, additional FCC / IC approvals must be obtained. The host product with the module installed must be evaluated for simultaneous transmission requirements. The users manual for the host product must clearly indicate the operating requirements and conditions that must be observed to ensure compliance with current FCC / IC RF exposure guidelines. To comply with FCC / IC regulations limiting both maximum RF output power and human exposure to RF radiation, use this module only with the included onboard antenna. 5/19 BnCOM Confidential Proprietary 5 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 A label must be affixed to the outside of the host product with the following statements. This device contains FCCID: WF5SBTB1 This equipment contains equipment certified under ICID: 9080A-SBTB1 The final host / module combination may also need to be evaluated against the FCC Part 15B criteria for unintentional radiators in order to be properly authorized for operation as a Part 15 digital device. This transmitter module has been certified for FCC Part 15 operation; when installed in a host device, the host manufacturer is responsible for making sure that the host device with the transmitter installed continues to be compliant with Part 15B unintentional radiator requirements. This device complies with Part 15 of the FCC Rules and Industry Canada License-exempt RSS standard(s). Operation is subject to the following two conditions:
(1) This device may not cause harmful interference, and
(2) This device must accept any interference received, including interference that may cause undesired operation of the device. Caution Statement for Modifications:
CAUTION: Changes or modifications not expressly approved by the manufacturer could void the users authority to operate the equipment. This device complies with part 15 of the FCC Rules and Industry Canada License-
exempt RSS standard(s). Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Le prsent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio exempts de licence. L'exploitation est autorise aux deux conditions suivantes : (1) l'appareil ne doit pas produire de brouillage, et (2) l'utilisateur de l'appareil doit accepter tout brouillage radiolectrique subi, mme si le brouillage est susceptible d'en compromettre le fonctionnement. Any changes or modifications not expressly approved by the party responsible for 6/19 BnCOM Confidential Proprietary 6 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 compliance could void the users authority to operate the equipment.
-. Labeling
- FCC ID: WF5SBTB1 / IC : 9080A-SBTB1 The certification label of a module shall be clearly visible at all times when installed in the host device. A label must be affixed to the outside of the host product with the following statements:
"Contains FCC ID: WF5SBTB1"
"Contains IC: 9080A-SBTB1"
- Caution: Exposure to Radio Frequency Radiation. To comply with RF exposure compliance requirements, a separation distance of at least 20 cm must be maintained between the antenna of this device and all persons.
*The module is limited to OEM installation only. OEM integrators must ensure that the end-user has no manual instructions to remove or install the module. OEM's must comply with FCC marking regulation part 15 declaration of conformity (Section 2.925(e)). This module is to be installed only in mobile or fixed applications (Please refer to FCC CFR 47 Part 2.1091(b) for a definition of mobile and fixed devices). The separate approval is required for all operating configurations, including portable configurations with respect to FCC CFR 47 Part 2.1093 and different antenna configurations. The SBT-B1 Module has been designed to operate with the following antenna and gains. Use with other antenna types or with these antenna types at higher gains is strictly prohibited. Manufacturer Type of Model Gain (dB) Type of Antenna Connector AMOTECH Co., Ltd. Chip Antenna AMAN802012MS02 3.14 Permanent 7/19 integral BnCOM Confidential Proprietary 7 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 1.1. Protocol Basic Rule HOST and BT transfer is base from UART(serial port) interface. UART(serial port) default setting value Baud rate : 230400bps Data bit : 8 Parity bit : none Stop bit : 1 Communication direction REQUEST (HOSTBT): From HOST to BT NOTIFY(BT HOST) : From BT to HOST. Notify BT Status RESPONSE(BT HOST) : From BT to HOST. Communication rule carriage return(0x0D,) Almost Protocol is combind to ascii. Also It is notify end of command packet attach Ex) REQUEST Recently Connected Device : AT+CONNECT Command Command set Ascii set T C A 0x41 0x54 0x2B 0x43
+
AT+CONNECT E N O 0x4F 0x4E 0x4E 0x45 N T C 0x43 0x54 0x0D Ex) NOTIFY iAP Support / BT Initial mode : +StartL Command command set
+
ascii set 0x2B S 0x53 t 0x54 a 0x41 r 0x52 Ex) RESPONSE REQUEST fail : +ERROR<1>
t L 0x54 0x4C 0x0D Command
+ERROR<1>
command set
+
ascii set 0x2B E 0x45 R 0x52 R 0x52 O 0x4F R 0x52
<
1
>
0x3C 0x31 0x3E 0x0D 8/19 BnCOM Confidential Proprietary 8 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 9/19 BnCOM Confidential Proprietary 9 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 2. REQUEST (HOSTBT) Protocol Summary AT ATZ AT&F AT+CONNECT AT+SETSCAN=n,t0 AT+DATA=n,xxxxx AT+SETSLEEP=n AT+SETAUTOCON=e,n,t AT+SETINITMODE=n AT+SETPIN=xxxx AT+SETLP=e AT+SETNAME=xxxx AT+SETUART=b,p,s UART Tx, Rx path Test BT reset BT factory reset Last connected device reconnection scan mode setting
: n=0 Unuse discoverable and page scan
: n=1 Available discoverable
: n=2 Available page scan
: n=3 Available discoverable and page scan
: t0 (0~180sec) In IAP mode, when send data to iOS device N : Transmit data length (Max 140 bytes) XXXX : Transmit Data DeepSleep mode enable / disable BT remote device auto connection
: e Auto connection setting (0 or 1)
: n Auto connection retry number (1~50)
: t Auto connection retry period time ( 1 ~ 180sec) BT Connection mode setting
: n=1 After power on, stay connectable
: n=2 After power on, stay discoverable and connectable
: n=3 After power on, auto connection to last connected device PIN code setting
: xxxx PIN Number (4~16 character) Low power mode enable / disable
: e low power mode (0 or 1) Changed local name of device
: xxxx name string(1~30character) HOST UART Setting
: b Baudrate(1200, 2400, 4800, 9600, 19200, 38400, Only Local IAP Mode 10/19 BnCOM Confidential Proprietary 10 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 57600, 115200, 230400 or 460800)
: p Parity bit(N,E or O)
: s Stop bit (1 or 2) AT+CONNECTMAC=xxxx Connect to remote device with Bluetooth specific address
: xxxx remote device Bluetooth address(12character) LED enable or disable. Apply after rebooting. (0:
disable , 1 : enable) Device of class setting N : 0 (Un-store class), 1(stored) V : P (Printer Class), H (Headset Class) Identify CP chip available BT Status
: n Status or information index (0~17) AT+SETLED=n AT+SETDEVCLASS=n,v AT+GETCP AT+GETINFO=n 3. NOTIFY (BTHOST) Protocol Summary
+StartH
+StartL
+StartF
+SUCCESS
+FAILn Normal boot mode Local iAP boot mode Local iAP boot fail mode Success send data to iOS device Fail send data to iOS device 4. General RESPONSE (BTHOST) Protocol Summary n : 1 ~5
+OK
+ERROR<N>
REQUEST Successfully REQUEST Error N =1 : BAD_HOST_COMMAND, N =2 : BAD_HOST_COMMAND_LENGTH, N =3 : BAD_HOST_COMMAND_PARAMETER, N =4 : BAD_LOCAL_STATE, N =5 : NOT_MATCHED_OR_NO_DATA, N =6 : UNHANDLED_REMOTE_RESPONSE, 11/19 BnCOM Confidential Proprietary 11 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 N =7 : FAIL_OR_BAD_REMOTE_RESPONSE, N =8 : UNKNOWN_ERROR 5. REQUEST Protocol Detail HOST and BT check uart Action example 5.1. AT Response +OK or +ERROR<N>
(HOSTBT) : AT
(BTHOST) : +OK 5.2. ATZ Response +OK or +ERROR<N>
(HOSTBT) : ATZ
(BTHOST) : +OK 5.3. AT&F Response +OK or +ERROR<N>
BT reset and rebooting Factory Reset BT Soft Reset example Action Action example 12/19
-. iAP Mode : iAP Local
-. Sniff Mode : Enable
-. Auto Connection : Enable
-. Init Mode : Discoverable Mode
-. Uart Setting : 230400 bps / Parity None / 1 stop bits
-. Pin code : 0000
-. iAP Manufacturer : BnCOM
-. iAP Model Name : BCM-D408EF2
-. iAP Device Name : Mobile Printer
-. iAP Protocol String : com.mobileprinter.datapath
(HOSTBT) : AT&F BnCOM Confidential Proprietary 12 Doc. Ver 1.0.0 Customer Date Document BnCOM Bluetooth SPP Module UART Protocol SEWOO 2014.12.04
(BTHOST) : +OK Try connection to Remote device Action 5.4. AT+CONNECT Response +OK or +ERROR<N>
(HOSTBT) : AT+CONNECT
(BTHOST) : +OK 5.5. AT+DATA=n,xxxxx example Action Data send to Remote iOS device Response +SUCCESS, or +FAIL<n>
example
(BTHOST) : +SUCCESSor FAILn
(HOSTBT) : AT+DATA=5,12345 5.6. AT+SETSLEEP=n Action Sleep setting Response +OK or +ERROR<n>
example
(BTHOST) : +OK or ERRORn
(HOSTBT) : AT+SETSLEEP=0 (disable) 5.7. AT+SETSCAN=n,t0 Response +OK or +ERROR<N>
Action Discoverable and paging scan setting example n = 0 Non discoverable and paging scan n = 1 discoverable. n=2 page scan n=3 discoverable and page scan 13/19 BnCOM Confidential Proprietary 13 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0
. Action Action example Pairing Mode setting Auto connection configuration
(HOSTBT) : AT+SETSCAN=3,0
(BTHOST) : +OK 5.8. AT+SETAUTOCON=e,n,t Response +OK or +ERROR<N>
(HOSTBT) : AT+SETAUTOCON=1,20,5
(BTHOST) : +OK 5.9. AT+SETSSP=n Response +OK or +ERROR<N>
(HOSTBT) : AT+SETSSP=0
(BTHOST) : +OK
(BTHOST) : +Start<x>
5.10. AT+SETINITMODE=n Response +OK or +ERROR<N>
(HOSTBT) : AT+SETINITMODE=2
(BTHOST) : +OK
(BTHOST) : +START 5.11. AT+SETPIN=xxxx Response +OK or +ERROR<N>
BT connection mode setting BT pin code setting example example Action Action
(HOSTBT) : AT+SETPIN=1234 example 14/19 BnCOM Confidential Proprietary 14 Doc. Ver 1.0.0 Customer Date Document BnCOM Bluetooth SPP Module UART Protocol SEWOO 2014.12.04
(BTHOST) : +OK Action Action example example BT local name changed Remote device low power mode setting 5.12. AT+SETLP=e Response +OK or +ERROR<N>
(HOSTBT) : AT+SETLP=1
(BTHOST) : +OK 5.13. AT+SETNAME=xxxx Response +OK or +ERROR<N>
(HOSTBT) : AT+SETNAME=BnCOM DEMO SPP
(BTHOST) : +OK 5.14. AT+SETUART=b,p,s Response +OK or +ERROR<N>
(HOSTBT) : AT+SETUART=115200,N,1
(BTHOST) : +OK 5.15. AT+CONNECTMAC=xxxx Response +OK or +ERROR<N>
(HOSTBT) : AT+CONNECT=74f07db00001
(BTHOST) : +OK UART configuration BT Connection. example example Action Action 15/19 BnCOM Confidential Proprietary 15 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 Customer Date Document Action Action SEWOO example example 2014.12.04 BT OS Type Setting HOST model name setting to BT 5.16. AT+SETROS=n Response +OK or +ERROR<N>
(HOSTBT) : AT+SETROS=0
(BTHOST) : +OK 5.17. AT+SETMODEL=xxxx Response +OK or +ERROR<N>
(HOSTBT) : AT+SETMODEL=BnCOM_DEMO_SPP
(BTHOST) : +OK 5.18. AT+SETPROSTR=xxxx Response +OK or +ERROR<N>
(HOSTBT) : AT+SETPROSTR=com.bncom.protocol
(BTHOST) : +OK 5.19. AT+SETSERIAL=xxxx Response +OK or +ERROR<N>
(HOSTBT) : AT+SETSERIAL=123456789
(BTHOST) : +OK 5.20. AT+SETMANUF=xxxx Response +OK or +ERROR<N>
(HOSTBT) : AT+SETMANUF=BnCOM HOST manufacturer information setting Serial number Setting protocol string setting example example Action Action Action example 16/19 BnCOM Confidential Proprietary 16 Doc. Ver 1.0.0 Customer Date Document BnCOM Bluetooth SPP Module UART Protocol SEWOO 2014.12.04
(BTHOST) : +OK 5.21. AT+SETDEVCLASS=n,v Response +OK or +ERROR<N>
Action example BT Module Device of Class setting
(HOSTBT) : AT+SETDEVCLASS=1,P
(BTHOST) : +OK or FAILn Action Identify CP Chip 5.22. AT+GETCP Response +OK or +FAIL<N>
5.23. AT+SETLED=n Response +OK or +FAIL<N>
LED Configuration
(HOSTBT) : AT+GETCP
(BTHOST) : +OK or FAIL example Action example
(HOSTBT) : AT+SETLED=1Enable
(BTHOST) : +OK or FAIL Action BT Status Configuration 5.24. AT+GETINFO=n Response n=0 : +<BT name>
n=1 : +<BT address>
n=2 : +<Remote device name>
n=3 : +<Remote device address>
n=4 : +<Init Mode>
n=5 : +<Uart Setting>
17/19 BnCOM Confidential Proprietary 17 Doc. Ver 1.0.0 Customer Date Document SEWOO example BnCOM Bluetooth SPP Module UART Protocol 2014.12.04 n=6 : +<PinCode >
n=7 : +<Power Save mode setting>
n=8 : +<Supervision Time>
n=9 : +<Automatically Connection>
n=10 : +<Hardware Version>
n=11 : +<BT firmware version>
n=12 : SSP or Legacy Mode n=13 : +<Manufacturer>
n=14 : +<Model Number>
n=15 : +<Protocol String>
n=16 : +<Serial Number>
n17: IAP or SPP n18: ENx,CLASSx n19: LEDx
(HOSTBT) : AT+GETINFO=n n=0 : (BTHOST) : +BnCOM DEMO SPP n=1 : (BTHOST) : +LOCALBD<74f07db00001>
n=2 : (BTHOST) : +BnCOM Remote Device n=3 : (BTHOST) : +REMOTEBD<74f07db00002>
n=4 : (BTHOST) : +INITMODE<2>
n=5 : (BTHOST) : +UART<115200,0,0>
n=6 : (BTHOST) : +0000 n=7 : (BTHOST) : +PS<0>
n=8 : (BTHOST) : +ST<2>
n=9 : (BTHOST) : +AUTOCON<1,5,10>
n=10 : (BTHOST) : +HWVER<1.0.0>
n=11 : (BTHOST) : +SWVER<1.0.0>
n=12 : (BTHOST) : +SSP or +LEGACY n=13 : (BTHOST) : +MANU<BnCOM>
n=14 : (BTHOST) : +MODEL<BnCOM Demo SPP>
n=15 : (BTHOST) : +PROS<com.bncom.protocol>
n=16 : (BTHOST) : +SER<000000000000>
n=17 : (BT->HOST) : +IAP or +SPP n=18 : (BT->HOST) : +EN<0>,CLASS<H>
18/19 BnCOM Confidential Proprietary 18 Customer Date Document SEWOO 2014.12.04 BnCOM Bluetooth SPP Module UART Protocol Doc. Ver 1.0.0 n=19 : (BT->HOST) : +LED<0>
19/19 BnCOM Confidential Proprietary 19