Preview only show first 10 pages with watermark. For full document please download

At Instruction Set

   EMBED


Share

Transcript

MLT-BT05 4.0 Bluetooth module Supports micro-airsync commumication, iOS and Android app communication, mast-slave modes and IO control AT Instruction set V3.0 MLT-BT05 4.0 Bluetooth Serial Communication Module AT Directive Users can communicate with the module using TX, RX lines at various baud rates. Supported rates: 9600, 19200,38400,57600,115200. The default is 9600bps 。 Detailed instructions MLT-BT05 4.0 Bluetooth module Command set ( Note : AT commands require carriage return and line feed; AT commands must be issued before connecting. Once connected module is in data transmission mode. ) ( AT commands ARE case sensitive; end lines with \r\n ) 1. set/query master/slave mode: instruction response AT+ROLE +ROLE= OK AT+ROLE +ROLE= parameter Param :( 0-4 ) 0 ——slave mode? 1 ——master mode? 2 ——sensor mode 3 ——iBeacon mode 4 ——WeChat mode default : 0 2. get software version number: instruction AT+VERSION response +VERSION= parameter Param : MLT-BT05-V2.1 3. get module Bluetooth address: instruction AT+LADDR response +LADDR = parameter Param: MAC address 4. set/query device name: instruction AT+NAME AT+NAME response parameter +NAME= Param : module Bluetooth name OK Default: MLT-BT05 +NAME= longest : 18 byte 5. set/query match code : instruction AT+PIN AT+PIN response +PIN= OK +PIN= parameter Param : 6 byte bit pairing password default :“ 123456” 6. set/query broadcast interval: instruction response AT+ADVI +ADVI= OK AT+ADVI +ADVI= parameter 0 1 2 3 4 5 6 Param :( 0-6 ) ——100ms ——500ms ——7500ms ——1000ms ——2000ms ——4000ms ——8000ms default : 0 7. set/query module authentication job type: instruction response AT+TYPE +TYPE= OK AT+TYPE +TYPE= parameter Param : ( 0-2 ) 0——no password 1——password pairing 2——password pairing and binding default : 0 8. set/query- serial baud rate: instruction AT+BAUD AT+BAUD response +BAUD= OK +BAUD= parameter Param : ( 0-4 ) Values (decimal): 0 ——115200 1 ——57600 2 ——38400 3 ——19200 4 —— 9600 default : 0 9. set/query-Service UUID : instruction AT+UUID AT+UUID response parameter +UUID= Param: 0x0001~0xFFFE OK default : 0xFFE0 +UUID= 10. set/query-Characteristic : instruction AT+CHAR AT+CHAR response parameter +CHAR= Param:0x0001~0xFFFE OK default : 0xFFE1 +CHAR= 11. set/query-iBeacon UUID : instruction response parameter AT+IBSUUID+IBSUUID= Param : OK FDA50693A4E24FB1AFCFC6EB07647825 AT+IBSUUID +IBSUUID= 12. set/query-iBeacon Major : instruction AT+MAJOR AT+MAJOR response +MAJOR= OK parameter Param : 0x0001~0xFFFE default : 0x0007 +MAJOR= 13. set/query-iBeacon Minor : instruction AT+MINOR AT+MINOR response +MINOR= OK parameter Param: 0x0001~0xFFFE default : 0x000A +MINOR= 14. software restart (reboot after 500mS): instruction AT+RESET response OK parameter no 15. enter low power mode (can be searched after entering): instruction AT+SLEEP response +SLEEP:OK parameter no 16. search for Bluetooth devices (master mode instructions): instruction AT+INQ response OK parameter Param : 1-0 1: start scanning 0: stop scanning 17. connect the remote device (master mode command): instruction AT+CONN response connection information parameter Param : 0-7 18. get host scan to slave MAC address (master mode command): instruction AT+RSLV< Param > response +RSLV=MACaddress OK parameter Param : ( 0-7 ) 19. bind device (master mode instruction) : instruction AT+BAND AT+BAND response parameter +BAND= Param : MAC address OK +BAND= 20. unbind (main mode instruction) : instruction AT+CLRBAND response OK parameter no 21. get the number of slaves to be scanned (main mode command) : instruction AT+GETDCN response +GETDCN= OK parameter Param :( 1-8 ) 22. disconnect (main mode command) : instruction AT+DISC response OK parameter no 23. disconnet (master mode command) : instruction AT+GETSTAT response +GETSTAT= parameter Param :( 0-1 ) 0——not connected 1——connected 24. set/query -micro letter H5 factory server communication: instruction AT+AT_WXSWH AT+MINOR response +MINOR= OK +MINOR= parameter Param :( 0-1 ) 0 : H5 communication 1 : factory server Default: 0