# EMB1082 AT Command

This article introduces the AT instruction set supported by EMB1082 AT firmware.

#1. Work Mode

When the module operates in slave mode, it automatically enters transparent mode after successful Bluetooth connection, and enters AT command mode when Bluetooth connection is disconnected.

#2. AT Command Format

The AT+instruction uses an ASCII based command line, with the following format:

#2.1. Format Description

  • <>: Indicates the parts that must be included
  • []: represents optional parts

#2.2. Command Format

a)  AT+: Command message prefixb)  CMD: Command stringc)  [op]: Command operator. It can be:1、"=": indicates parameter settings or queries for specified parameters2、"?": Refers to querying system parameters3、"无":indicates executing instructions4、"=?": Indicates the parameter set by the query userd)  [para-n]: represents the parameter values set or the parameters specified for the querye)  .: End of carriage return, ASCII code 0x0df)  .: Line break, ASCII code: 0x0a2.3. Response Message Formata) .::End of carriage return, ASCII code 0x0db) . :Line break, ASCII code: 0x0ac) [+CMD:] :Command stringd) [para-n] :Parameters returned during querye) [STATUS]:There are two scenarios for successful execution of instructions:(1)OK:Indicates correct execution(2)ERROR: Indicates an execution error3. AT  Command Detail3.1. ATFunction:Test CommandFormat:ATResponse:OKParameter:——3.2. AT+RESETFunction:Module reset and restart.Command:AT+RESETResponse:OKParameter:无3.3. AT+VERSIONFunction:Query Version.Query Command:AT+VERSIONResponse:+VERSION =Parameter:NoneDescription:Param:Patch version (8 characters)+app version (8 characters) Both patch and app versions are 32-bit, and the response of the version is in string form3.4. AT+LADDRFunction:Query address of BLE device.Query Command:AT+LADDRResponse:+LADDR=Parameter:NoneDescription:Param:BLE address3.5. AT+NAMEFunction:Set/Query module's name.Set Command:AT+NAME=Response:Param:Module name (default name: "MXHCIP")Query Command:AT+NAMEResponse:+NAME=Note: When setting the module name, if the module is in ROLE_ In the PERIPHERAL state and broadcasting, the module will pause broadcasting first and will not update the module name. The module name needs to be set again to take effect.3.6. AT+PINFunction:Set/query pairing code.Set Command:AT+PIN=Response:+PIN= OK3.7. AT+BAUDFunction:Query/Set Serial Port Parameters.Set Command:AT+BAUD=Response:+BAUD=OKParameter:Param:Baud rate, string value is as follows: 2400 4800 9600 19200 38400 57600 115200 921600Query Command:AT+BAUDResponse:+BAUD=3.8. AT+ADVMODFunction:Query/Set Bluetooth Broadcast Parameters.Set Command:AT+ADVMOD=Response:+ADVMOD =OKQuery Command:AT+ADVMODResponse:无3.9. AT+ ADVINTFunction:Open/close broadcastSet Command:AT+ADVINT=Response:+ADVINT=OKParameter:Param:XXXX ,Default Value:320(200ms)Query Command:AT+ADVINTResponse:+ ADVINT =3.10. AT+POWERFunction:Query/Set Bluetooth Maximum Transmission Power.Set Command:AT+POWER=Response:+POWER= OKParameter:Param(-20,0,3,4,8):-20:-20dBm0: 0dBm3: 3dBm4: 4dBm8: 8dBm1:Automatic broadcast default value: 0Query Command:AT+POWERResponse:+POWER=3.11. AT+ADVDATFunction:Settings/Queries - Broadcast Data: (BEACON mode is valid).Set Command:AT+ADVDAT=Response:+ADVDAT=OKParameter:Param:Up to 31 * 2 stringQuery Command:AT+ADVDATResponse:+ADVDAT=3.12. AT+SCANRSPFunction:Settings/Queries - SCAN Response Data: (BEACON mode is valid).Set Command:AT+SCANRSP=Response:+SCANRSP=OKParameter:Param:Up to 31 * 2 stringQuery Command:AT+SCANRSPResponse:+SCANRSP=3.13. AT+ROLEFunction:Settings/Queries - Master/Slave Mode.Set Command:AT+ROLE=Response:+ROLE=OKParameter:Param (0, 1): 0: Slave device 1: Master device 2: Beacon device default value: 0Query Command:AT+ROLEResponse:+ROLE=3.14. AT+PHY2MFunction:Set/Query—2M mode.Set Command:AT+PHY2M=Response:+PHY2M=OKParameter:Param(0,1):0:1M 1:2M 默认值:0Query Command:AT+PHY2MResponse:+PHY2M=3.15. AT+SLEEPFunction:进入DLPSSet Command:AT+SLEEPResponse:+SLEEP OKParameter:注:非连线模式。 任意指令唤醒。3.16. AT+PAIRFunction:设置/查询—配对模式Query Command:AT+PAIR=Response:+PAIR=OKParameter:Param(0,1,2,3)0:NO PASS WORD1:JUST WORK2:PASS_WORD3:PASS_WORD_BOND默认值:13.17. AT+INQFunction:搜索蓝牙设备(主模式指令)Command:AT+INQResponse:OK +INQS0: 1: 2: Parameter:NAME: 搜索到的透传模块的名称 MAC:搜索到的透传模块的MAC地址3.18. AT+SINQFunction:停止搜索蓝牙设备(主模式指令)Command:AT+SINQResponse:+INQEParameter:无3.19. AT+SCANRLTFunction:根据编号查询搜索到到蓝牙地址(主模式指令):Query Command:AT+SCANRLT=Response:+SCANLT=:Parameter:Param: 搜索到的透传模块的序号MAC: 搜索到的透传模块的MAC地址3.20. AT+CONNFunction:连接远端设备(主模式指令):Query Command:AT+CONN=Response:OK+CONNS+CONNECTED>> (已连接远端设备)Parameter:Param:搜索到的透传模块的设备序号(0 - 9)MAC:建立连接的蓝牙设备的MAC地址3.21. AT+FCFunction:设置/查询—UART流控:Query Command:AT+FC=Response:+FC=OKParam(0,1):0:禁能UART流控1:使能UART流控默认值:0Query Command:AT+BTFCResponse:+BTFC=3.22. AT+DEFAULTFunction:软件重置(恢复默认设置,500ms后重启):Query Command:AT+DEFAULTResponse:OK3.23. AT+SERVUUIDFunction:设置/查询透传服务UUID:Set Command:AT+SERVUUID=Response:+SERVUUID=OKParameter:Param:UUID值(16bit或者128bit);4字节或者32字节16进制字符串,形式如:1B7E8251287741C3B46ECF057C562023Query Command:AT+SERVUUIDResponse:+SERVUUID=3.24. AT+RXUUIDFunction:设置/查询透传主服务中RX Port特性的UUID:Set Command:AT+RXUUID=Response:+RXUUID=OKParameter:Param:UUID值(只支持16bit);4字节16进制字符串,形式如:FFE1Query Command:AT+RXUUIDResponse:+RXUUID=3.25. AT+TXUUIDFunction:设置/查询透传主服务中TX Port特性的UUID:Set Command:AT+TXUUID=Response:+TXUUID=OKParameter:Param:UUID值(只支持16bit);4字节16进制字符串,形式如:FFE1Query Command:AT+TXUUIDResponse:+TXUUID=
Last Updated: 2/26/2024, 3:13:19 PM