The AT commands
atMode: The serial line is connected to /dev/ttyUSB0
you may connect to another port with ./atMode portname, e.g./dev/ttyUSB1
Please enter AT command or "quit" to exit:
at+orgl resetting the module to factory settings
noOfChars entered: 8
9 characters written:at+orgl
OK
4
0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+role checking the role (1: master or 0: slave)
noOfChars entered: 8
9 characters written:at+role
+ROLE:0
OK
13
0x2b 0x52 0x4f 0x4c 0x45 0x3a 0x30 0x0d 0x0a 0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+role=1 setting it to master modenoOfChars entered: 10
11 characters written:at+role=1
OK
4
0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+uart=38400,0,0 setting the communication parameters to 38400 baud, 1 stop bit, no parity noOfChars entered: 18
19 characters written:at+uart=38400,0,0
OK
4
0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+uart reading back the communication parametersnoOfChars entered: 8
9 characters written:at+uart
+UART:38400,0,0
OK
21
0x2b 0x55 0x41 0x52 0x54 0x3a 0x33 0x38 0x34 0x30 0x30 0x2c 0x30 0x2c 0x30 0x0d 0x0a 0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+bind checking if it is bound to any Bluetooth slave noOfChars entered: 8
9 characters written:at+bind
+BIND:0:0:0
OK
17
0x2b 0x42 0x49 0x4e 0x44 0x3a 0x30 0x3a 0x30 0x3a 0x30 0x0d 0x0a 0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+bind=21,13,ba68 bind it to the module with address 00:21:13:00:ba:68noOfChars entered: 19
20 characters written:at+bind=21,13,ba68
OK
4
0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+bind checking that the bind command has worked properlynoOfChars entered: 8
9 characters written:at+bind
+BIND:21:13:ba68
OK
22
0x2b 0x42 0x49 0x4e 0x44 0x3a 0x32 0x31 0x3a 0x31 0x33 0x3a 0x62 0x61 0x36 0x38 0x0d 0x0a 0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+ipscan reading the scan parameters noOfChars entered: 10
11 characters written:at+ipscan
+IPSCAN:1024,512,1024,512
OK
31
0x2b 0x49 0x50 0x53 0x43 0x41 0x4e 0x3a 0x31 0x30 0x32 0x34 0x2c 0x35 0x31 0x32 0x2c 0x31 0x30 0x32 0x34 0x2c 0x35 0x31 0x32 0x0d 0x0a 0x4f 0x4b 0x0d 0x0a
Please enter AT command or "quit" to exit:
at+init init the SPP library, which starts the scanning for the slave module and pairingnoOfChars entered: 8
9 characters written:at+init
Timeout on reading
Please enter AT command or "quit" to exit:
After this the 2 modules are paired
--
Uli Raich - 2017-11-21
Comments