![Webtronico BTM-5 Bluetooth User Manual Download Page 7](http://html1.mh-extra.com/html/webtronico/btm-5-bluetooth/btm-5-bluetooth_user-manual_949446007.webp)
BTM-5 Bluetooth Module Datasheet Rev1.1
6
2: Even
Default:38400,0,0
3.12
Set / Get Link Mode
Command Response
Parameter
AT+CMODE=<Param> OK
AT+ CMODE?
+ CMODE:< Param >
OK
Param
0: Specify bluetooth link
address
1: Any bluetooth link address
2: Slave-Loopback
Default : 0
3.13
Set / Get Bind Bluetooth Address
Command Response
Parameter
AT+BIND=<Param> OK
AT+ BIND?
+ BIND:< Param >
OK
Param : Bluetooth address to
be bind
Default : 00:00:00:00:00:00
3.14
Set Single PIO Output
Command Response
Parameter
AT+PIO=<Param1>,<Param2> OK
Param1: PIO port number (decimal)
Param2L PIO port output
0- Low voltage
1- High voltage
Examples:
Set the PIO10 outputs high
Command : AT+PIO=10,1\r\n
Response :
OK
Set the PIO10 outputs low
Command : AT+PIO=10,0\r\n
Response :
OK
3.15
Set Multiple PIO Output
Command Response
Parameter
AT+MPIO=<Param>
OK
Param: PIO port number mask combination (hex)
The useable port is PIO2- PIO7 and PIO10.
PIO port mask = (1 << port number)
PIO port mask combination = ( PIO port mask 1| PIO port mask 2 |PIO port mask 3 |
…
)
Example:
PIO2 mask= (1<<2)=0x004
PIO10 mask = (1<<10)=0x400
PIO port mask combination= (0x004 | 0x400)=0x404