Scan Result
1. Scan Result by AT+SCAN=1
+SCAN =Param1, Param2, Param3, Param4{, Param5, Param6}
Parm | Indication |
Parm1 | Index (1~8) of Scanned devices |
Parm2(0~2) |
Device address type (0~2) 0 LE public address 1 LE random address 2 ER/EDR address |
Parm3 | MAC address (12 Bytes ASCII) |
Parm4 | RSSI (-255 ~ 0) |
Parm5 |
Size of Param6 if exist Param5 may not exist if remote device out of distance |
Parm6 |
Remote Device Name ,or advertising data for LE devices Param6 may not exist if remote device out of distance |
Example |
Ex1) Scan nearby BLE devices AT+SCAN=1 OK +SCAN=1,0, DC0D30000003, -32,8, Feasycom +SCAN=2,1, DC0D30000044, -64,8, Feasycom_0044 +SCAN=3,0, DC0D30000097, -47,8, FSC_BT906
Ex2) Scan nearby BR/EDR devices AT+SCAN=1 OK +SCAN={ +SCAN=1,2, DC0D30000003, -32,8, Feasycom +SCAN=2,2, DC0D30000044, -64,8, Feasycom_1234 +SCAN=3,2, DC0D30000097, -47,8, TESTHID +SCAN=} |
2. Scan Result by AT+SCAN=2
+SCAN =Param1, Param2, Param3, Param4, Param5, Param6
Parm | Indication |
Parm1 | Index (1~8) of Scanned devices |
Parm1 |
Device address type (0~3) 0 Public 1 Random Static 2 Random Private Resolvable 3 Random Private Non Resolvable
|
Parm2 | MAC address (12 Bytes ASCII) |
Parm3 | RSSI (-255 ~ 0) |
Parm4 |
Packet type (0~3) 0 Adv Ind 1 Adv Direct Ind 2 Adv Scan Ind 3 Adv Non Conn Ind |
Parm5 | Packet length |
Param6 | Packet data |
Example |
Scan nearby BLE devices AT+SCAN=2 OK +SCAN=0,DC0D30001B1B,-67,0,34,02010A030200FF09FF0000DC0D30001B1B +SCAN=3,0E436C624FBA,-76,3,62,1EFF0600010920026E6EB566567A13438D6FA3A1 3D7D737B3803227985B543 +SCAN=1,DC0D30000EB6,-69,0,22,060942573232360302F018 |