Professional Documents
Culture Documents
Set He Bluetooth Module To Command Mode and Execute The Following Commands in Hyper Terminal
Set He Bluetooth Module To Command Mode and Execute The Following Commands in Hyper Terminal
Ok Ok Ok
//module can be discovered by other Bluetooth modules //requests authentication //Module dosent require encryption //Setting pin code to the local module //Setting name to the local module //Setting Bluetooth class ID
AT+BTSECMODE=1 AT+BTENCMODE=0
Change the Bluetooth module into Data mode, and connect it to 8051 microcontroller through DB9 pin Configuring the CLIENT AT
Ok
AT+BTCMODE=0 ok AT+BTPMODE=1
Ok
AT+BTdmode=0
Ok
Ok Ok ok
AT+BTSECMODE=1 AT+BTENCMODE=0
AT+BTCONNECT=00800010AA02,1,1234,1,0
Ok
//BdAddress,PortNo,pin,NoRetry,TimeRetry
Change the Bluetooth module into Data mode, The modules are ready to transfer
OVER: MOV DPTR,#MSG FN: CLR A MOVC A,@A+DPTR JZ OVER ACALL SENDCOM INC DPTR SJMP FN SENDCOM: MOV SBUF,A HERE: JNB TI,HERE CLR TI RET MSG: DBMESSAGE IS SENT BY BLUETOOTH,0 END