Other Parts Discussed in Thread: BLE-STACK
Tool/software: Linux
Hello,
I have some questions for hci command on cc2640r2f LAUNCHXL.
Our sdk version as below:
Ble stack version: TI BLE-Stack 3.01.01.58
SDK version: v1.50.00.58
1. Scan request error when large scan number
Init device by GAP_DeviceInit and set MaxScanRsps to 100, then use GAP_DeviceDiscoveryRequest to get response device
It will get error on from uart, and can’t do any other hci command, but set MaxScanRsps to 30, it can work fine, those test command exec on btool, please check below file.
[1] : <Tx> - 02:02:28.717 -Type : 0x01 (Command) -OpCode : 0xFE00 (GAP_DeviceInit) -Data Length : 0x26 (38) byte(s) ProfileRole : 0x08 (8) (Central) MaxScanRsps : 0x64 (100) IRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 CSRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 SignCounter : 0x00000001 (1) Dump(Tx): 0000:01 00 FE 26 08 64 00 00 00 00 00 00 00 00 00 00 ...&.d.......... 0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0020:00 00 00 00 00 00 01 00 00 00 .......... -------------------------------------------------------------------- [2] : <Rx> - 02:02:28.763 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x06 (6) bytes(s) Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus) Status : 0x00 (0) (Success) OpCode : 0xFE00 (GAP_DeviceInit) DataLength : 0x00 (0) Dump(Rx): 0000:04 FF 06 7F 06 00 00 FE 00 ......... -------------------------------------------------------------------- [3] : <Rx> - 02:02:28.779 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x0600 (1536) (GAP_DeviceInitDone) Status : 0x00 (0) (Success) DevAddr : B0:91:22:69:FB:8B DataPktLen : 0x00FF (255) NumDataPkts : 0x05 (5) IRK : 6E:20:DD:A4:6D:91:99:11:DE:E5:BD:88:CD:8A:6E:9C CSRK : E0:36:FE:21:37:B5:19:5F:86:70:32:22:A6:CD:01:D1 Dump(Rx): 0000:04 FF 2C 00 06 00 8B FB 69 22 91 B0 FF 00 05 6E ..,.....i".....n 0010:20 DD A4 6D 91 99 11 DE E5 BD 88 CD 8A 6E 9C E0 ..m.........n.. 0020:36 FE 21 37 B5 19 5F 86 70 32 22 A6 CD 01 D1 6.!7.._.p2".... -------------------------------------------------------------------- [4] : <Tx> - 02:02:35.128 -Type : 0x01 (Command) -OpCode : 0xFE04 (GAP_DeviceDiscoveryRequest) -Data Length : 0x03 (3) byte(s) Mode : 0x03 (3) (All) ActiveScan : 0x01 (1) (Enable) WhiteList : 0x00 (0) (Disable) Dump(Tx): 0000:01 04 FE 03 03 01 00 ....... -------------------------------------------------------------------- [5] : <Rx> - 02:02:35.465 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x06 (6) bytes(s) Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus) Status : 0x00 (0) (Success) OpCode : 0xFE04 (GAP_DeviceDiscoveryRequest) DataLength : 0x00 (0) Dump(Rx): 0000:04 FF 06 7F 06 00 04 FE 00 ......... -------------------------------------------------------------------- [6] : <Rx> - 02:02:35.496 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 2E:E9:27:5D:E8:3D Rssi : 0xC9 (201) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:FB:6C:B6:90:9A:E4:12:C5: 9A:96:35:1E:41:17:78:21:F4:29:AF:13:5E:E1:76 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 3D E8 5D 27 E9 2E C9 1F ..,.....=.]'.... 0010:1E FF 06 00 01 09 20 00 FB 6C B6 90 9A E4 12 C5 ...... ..l...... 0020:9A 96 35 1E 41 17 78 21 F4 29 AF 13 5E E1 76 ..5.A.x!.)..^.v -------------------------------------------------------------------- [7] : <Rx> - 02:02:35.512 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 37:D6:46:B1:10:30 Rssi : 0xAC (172) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:CA:7F:A8:41:42:43:AE:FD: 9E:1D:6D:AB:7B:9C:FE:E4:C7:17:31:77:11:51:12 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 30 10 B1 46 D6 37 AC 1F ..,.....0..F.7.. 0010:1E FF 06 00 01 09 20 02 CA 7F A8 41 42 43 AE FD ...... ....ABC.. 0020:9E 1D 6D AB 7B 9C FE E4 C7 17 31 77 11 51 12 ..m.{.....1w.Q. -------------------------------------------------------------------- [8] : <Rx> - 02:02:35.527 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 06:27:46:4D:3F:01 Rssi : 0xB3 (179) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:FF:F3:3E:07:20:89:0F:39: 51:0E:FD:31:DC:7D:62:43:AD:7F:2B:22:91:F4:58 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 01 3F 4D 46 27 06 B3 1F ..,......?MF'... 0010:1E FF 06 00 01 09 20 00 FF F3 3E 07 20 89 0F 39 ...... ...>. ..9 0020:51 0E FD 31 DC 7D 62 43 AD 7F 2B 22 91 F4 58 Q..1.}bC..+"..X -------------------------------------------------------------------- [9] : <Rx> - 02:02:35.543 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x29 (41) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : FB:A0:B2:3C:9E:69 Rssi : 0xE2 (226) DataLength : 0x1C (28) Data : 02:01:04:18:FF:EA:02:AB:8B:B0:F1:ED:D9:5B:72:BE: AE:71:A9:78:28:20:F5:B4:EB:26:C0:BE Dump(Rx): 0000:04 FF 29 0D 06 00 03 01 69 9E 3C B2 A0 FB E2 1C ..).....i.<..... 0010:02 01 04 18 FF EA 02 AB 8B B0 F1 ED D9 5B 72 BE .............[r. 0020:AE 71 A9 78 28 20 F5 B4 EB 26 C0 BE .q.x( ...&.. -------------------------------------------------------------------- [10] : <Rx> - 02:02:35.559 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x29 (41) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : F4:AE:C3:A0:E5:19 Rssi : 0xE4 (228) DataLength : 0x1C (28) Data : 02:01:04:18:FF:EA:02:01:23:01:23:40:00:01:23:45: 00:00:00:00:00:00:00:00:03:E8:00:00 Dump(Rx): 0000:04 FF 29 0D 06 00 03 01 19 E5 A0 C3 AE F4 E4 1C ..)............. 0010:02 01 04 18 FF EA 02 01 23 01 23 40 00 01 23 45 ........#.#@..#E 0020:00 00 00 00 00 00 00 00 03 E8 00 00 ............ -------------------------------------------------------------------- [11] : <Rx> - 02:02:35.574 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1E:33:C0:69:EC:02 Rssi : 0xB0 (176) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:62:22:95:C5:26:5C:3A:B4: DD:EF:BD:F2:89:90:9B:AF:39:ED:66:F8:64:20:84 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 02 EC 69 C0 33 1E B0 1F ..,.......i.3... 0010:1E FF 06 00 01 09 20 00 62 22 95 C5 26 5C 3A B4 ...... .b"..&\:. 0020:DD EF BD F2 89 90 9B AF 39 ED 66 F8 64 20 84 ........9.f.d . -------------------------------------------------------------------- [12] : <Rx> - 02:02:35.590 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1D:59:F3:A2:ED:CF Rssi : 0xA9 (169) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:EA:FC:5C:9F:08:8C:87:BA: 61:26:65:28:B5:E3:6C:0A:1D:29:3D:A0:6F:EE:76 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 CF ED A2 F3 59 1D A9 1F ..,.........Y... 0010:1E FF 06 00 01 09 20 02 EA FC 5C 9F 08 8C 87 BA ...... ...\..... 0020:61 26 65 28 B5 E3 6C 0A 1D 29 3D A0 6F EE 76 a&e(..l..)=.o.v -------------------------------------------------------------------- [13] : <Rx> - 02:02:35.605 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 09:6C:E6:15:08:51 Rssi : 0xAA (170) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:92:9C:34:08:AB:E5:81:61: 04:83:64:E3:83:10:1A:59:5B:2E:1E:DA:51:59:7A Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 51 08 15 E6 6C 09 AA 1F ..,.....Q...l... 0010:1E FF 06 00 01 09 20 02 92 9C 34 08 AB E5 81 61 ...... ...4....a 0020:04 83 64 E3 83 10 1A 59 5B 2E 1E DA 51 59 7A ..d....Y[...QYz -------------------------------------------------------------------- [14] : <Rx> - 02:02:35.621 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 25:00:68:F4:61:02 Rssi : 0xA3 (163) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:DB:E6:3F:4D:CA:1A:FC:5F: 19:C9:97:45:A3:66:7D:44:C9:4E:1C:A1:39:84:D8 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 02 61 F4 68 00 25 A3 1F ..,......a.h.%.. 0010:1E FF 06 00 01 09 20 00 DB E6 3F 4D CA 1A FC 5F ...... ...?M..._ 0020:19 C9 97 45 A3 66 7D 44 C9 4E 1C A1 39 84 D8 ...E.f}D.N..9.. -------------------------------------------------------------------- [15] : <Rx> - 02:02:35.637 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1D:C7:63:EC:DE:98 Rssi : 0xA3 (163) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:A1:63:72:8A:B0:35:4A:E3: CD:73:27:DD:57:7B:00:25:C8:DB:38:50:C0:A1:41 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 98 DE EC 63 C7 1D A3 1F ..,........c.... 0010:1E FF 06 00 01 09 20 00 A1 63 72 8A B0 35 4A E3 ...... ..cr..5J. 0020:CD 73 27 DD 57 7B 00 25 C8 DB 38 50 C0 A1 41 .s'.W{.%..8P..A -------------------------------------------------------------------- [16] : <Rx> - 02:02:35.652 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1E:45:DD:C9:26:37 Rssi : 0xA9 (169) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:83:92:7F:33:26:67:BD:22: 66:13:5A:04:04:12:2B:58:D5:C1:2F:CF:40:AF:A8 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 37 26 C9 DD 45 1E A9 1F ..,.....7&..E... 0010:1E FF 06 00 01 09 20 00 83 92 7F 33 26 67 BD 22 ...... ....3&g." 0020:66 13 5A 04 04 12 2B 58 D5 C1 2F CF 40 AF A8 f.Z...+X../.@.. -------------------------------------------------------------------- [17] : <Rx> - 02:02:35.668 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 14:F2:8D:60:8F:16 Rssi : 0xA2 (162) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:E5:A2:99:21:5F:45:E3:C6: FB:43:15:C6:07:07:FA:3C:0B:79:28:FB:77:91:7D Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 16 8F 60 8D F2 14 A2 1F ..,.......`..... 0010:1E FF 06 00 01 09 20 02 E5 A2 99 21 5F 45 E3 C6 ...... ....!_E.. 0020:FB 43 15 C6 07 07 FA 3C 0B 79 28 FB 77 91 7D .C.....<.y(.w.} -------------------------------------------------------------------- [18] : <Rx> - 02:02:35.683 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 0B:44:2F:54:39:9E Rssi : 0xA9 (169) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:00:7C:98:0C:C1:C5:3C:17: 37:F1:96:DF:30:BC:7A:3A:A0:17:BB:BC:A3:D2:82 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 9E 39 54 2F 44 0B A9 1F ..,......9T/D... 0010:1E FF 06 00 01 09 20 00 00 7C 98 0C C1 C5 3C 17 ...... ..|....<. 0020:37 F1 96 DF 30 BC 7A 3A A0 17 BB BC A3 D2 82 7...0.z:....... -------------------------------------------------------------------- [19] : <Rx> - 02:02:35.699 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 26:7A:7A:C9:F9:83 Rssi : 0xAA (170) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:6A:69:0C:38:16:6E:9E:AD: EE:A5:09:00:CA:AF:6C:23:86:BA:AF:6A:A3:87:9E Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 83 F9 C9 7A 7A 26 AA 1F ..,........zz&.. 0010:1E FF 06 00 01 09 20 00 6A 69 0C 38 16 6E 9E AD ...... .ji.8.n.. 0020:EE A5 09 00 CA AF 6C 23 86 BA AF 6A A3 87 9E ......l#...j... -------------------------------------------------------------------- [20] : <Rx> - 02:02:35.715 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 16:2D:42:12:BF:CD Rssi : 0xAE (174) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:99:C3:69:C4:A1:50:D5:A4: 94:17:99:E4:5D:AE:83:FC:08:24:AB:81:E5:1A:70 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 CD BF 12 42 2D 16 AE 1F ..,........B-... 0010:1E FF 06 00 01 09 20 00 99 C3 69 C4 A1 50 D5 A4 ...... ...i..P.. 0020:94 17 99 E4 5D AE 83 FC 08 24 AB 81 E5 1A 70 ....]....$....p -------------------------------------------------------------------- [21] : <Rx> - 02:02:35.730 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 19:86:E9:1A:B1:36 Rssi : 0xA4 (164) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:41:1B:90:69:F9:0F:1C:5C: 17:C3:18:08:D6:E0:2D:8F:04:BE:5E:4C:8C:36:8D Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 36 B1 1A E9 86 19 A4 1F ..,.....6....... 0010:1E FF 06 00 01 09 20 02 41 1B 90 69 F9 0F 1C 5C ...... .A..i...\ 0020:17 C3 18 08 D6 E0 2D 8F 04 BE 5E 4C 8C 36 8D ......-...^L.6. -------------------------------------------------------------------- [22] : <Rx> - 02:02:35.746 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 30:9A:01:72:50:D8 Rssi : 0xA8 (168) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:20:EE:A0:59:41:85:A0:2B: 23:87:7C:38:84:15:8F:E0:1F:05:39:66:AA:EA:59 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 D8 50 72 01 9A 30 A8 1F ..,......Pr..0.. 0010:1E FF 06 00 01 09 20 02 20 EE A0 59 41 85 A0 2B ...... . ..YA..+ 0020:23 87 7C 38 84 15 8F E0 1F 05 39 66 AA EA 59 #.|8......9f..Y -------------------------------------------------------------------- [23] : <Rx> - 02:02:35.761 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1F (31) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x00 (0) (Public) Addr : 2C:41:A1:A8:21:50 Rssi : 0xAA (170) DataLength : 0x12 (18) Data : 02:01:1A:03:03:BE:FE:0A:FF:01:0A:41:00:66:CF:E5: 02:EC Dump(Rx): 0000:04 FF 1F 0D 06 00 00 00 50 21 A8 A1 41 2C AA 12 ........P!..A,.. 0010:02 01 1A 03 03 BE FE 0A FF 01 0A 41 00 66 CF E5 ...........A.f.. 0020:02 EC .. -------------------------------------------------------------------- [24] : <Rx> - 02:02:35.777 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : EF:8C:3D:DB:1D:58 Rssi : 0xA7 (167) DataLength : 0x1F (31) Data : 02:01:06:1B:FF:57:01:00:B3:A6:09:4D:D0:35:AD:88: BE:01:CA:E4:FB:61:29:DC:02:EF:8C:3D:DB:1D:58 Dump(Rx): 0000:04 FF 2C 0D 06 00 00 01 58 1D DB 3D 8C EF A7 1F ..,.....X..=.... 0010:02 01 06 1B FF 57 01 00 B3 A6 09 4D D0 35 AD 88 .....W.....M.5.. 0020:BE 01 CA E4 FB 61 29 DC 02 EF 8C 3D DB 1D 58 .....a)....=..X -------------------------------------------------------------------- [25] : <Rx> - 02:02:35.793 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1C (28) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x04 (4) (Scan Response) AddrType : 0x01 (1) (Static) Addr : EF:8C:3D:DB:1D:58 Rssi : 0xA8 (168) DataLength : 0x0F (15) Data : 0A:09:4D:49:20:42:61:6E:64:20:32:03:02:E0:FE Dump(Rx): 0000:04 FF 1C 0D 06 00 04 01 58 1D DB 3D 8C EF A8 0F ........X..=.... 0010:0A 09 4D 49 20 42 61 6E 64 20 32 03 02 E0 FE ..MI Band 2.... -------------------------------------------------------------------- [26] : <Rx> - 02:02:35.808 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 42:7D:D8:47:9B:74 Rssi : 0xB4 (180) DataLength : 0x1F (31) Data : 1E:FF:4C:00:07:19:01:05:20:00:F7:0F:07:1B:00:A7: DF:12:37:52:6B:D8:74:4C:D9:4A:8E:AD:5E:9B:89 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 74 9B 47 D8 7D 42 B4 1F ..,.....t.G.}B.. 0010:1E FF 4C 00 07 19 01 05 20 00 F7 0F 07 1B 00 A7 ..L..... ....... 0020:DF 12 37 52 6B D8 74 4C D9 4A 8E AD 5E 9B 89 ..7Rk.tL.J..^.. -------------------------------------------------------------------- [27] : <Rx> - 02:02:35.824 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1C:25:28:0C:31:54 Rssi : 0xA7 (167) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:06:E1:C0:37:20:25:FE:30: D3:C6:FD:BE:B0:A8:C8:F5:0D:9C:C2:68:87:D3:91 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 54 31 0C 28 25 1C A7 1F ..,.....T1.(%... 0010:1E FF 06 00 01 09 20 00 06 E1 C0 37 20 25 FE 30 ...... ....7 %.0 0020:D3 C6 FD BE B0 A8 C8 F5 0D 9C C2 68 87 D3 91 ...........h... -------------------------------------------------------------------- [28] : <Rx> - 02:02:35.839 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x25 (37) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 6B:0F:AF:EE:AC:0A Rssi : 0xE4 (228) DataLength : 0x18 (24) Data : 02:01:1A:14:FF:4C:00:01:00:00:00:00:00:00:00:00: 00:00:00:00:00:00:00:01 Dump(Rx): 0000:04 FF 25 0D 06 00 00 01 0A AC EE AF 0F 6B E4 18 ..%..........k.. 0010:02 01 1A 14 FF 4C 00 01 00 00 00 00 00 00 00 00 .....L.......... 0020:00 00 00 00 00 00 00 01 ........ -------------------------------------------------------------------- [29] : <Rx> - 02:02:35.855 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1B (27) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 57:EC:A5:33:D7:82 Rssi : 0xA3 (163) DataLength : 0x0E (14) Data : 02:01:1A:0A:FF:4C:00:10:05:0B:10:01:B3:A9 Dump(Rx): 0000:04 FF 1B 0D 06 00 00 01 82 D7 33 A5 EC 57 A3 0E ..........3..W.. 0010:02 01 1A 0A FF 4C 00 10 05 0B 10 01 B3 A9 .....L........ -------------------------------------------------------------------- [30] : <Rx> - 02:02:35.871 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 0F:B0:DA:21:51:83 Rssi : 0xA3 (163) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:4B:F3:2D:76:C8:35:E2:B7: 79:26:55:89:EA:33:4A:0F:1E:59:1A:F9:7A:35:BE Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 83 51 21 DA B0 0F A3 1F ..,......Q!..... 0010:1E FF 06 00 01 09 20 00 4B F3 2D 76 C8 35 E2 B7 ...... .K.-v.5.. 0020:79 26 55 89 EA 33 4A 0F 1E 59 1A F9 7A 35 BE y&U..3J..Y..z5. -------------------------------------------------------------------- [31] : <Rx> - 02:02:35.886 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1B (27) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 4F:CC:70:F7:0C:77 Rssi : 0xB0 (176) DataLength : 0x0E (14) Data : 02:01:1A:0A:FF:4C:00:10:05:03:18:29:C2:A2 Dump(Rx): 0000:04 FF 1B 0D 06 00 00 01 77 0C F7 70 CC 4F B0 0E ........w..p.O.. 0010:02 01 1A 0A FF 4C 00 10 05 03 18 29 C2 A2 .....L.....).. -------------------------------------------------------------------- [32] : <Rx> - 02:02:35.902 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1B (27) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 66:22:0D:CD:4F:29 Rssi : 0xAD (173) DataLength : 0x0E (14) Data : 02:01:1A:0A:FF:4C:00:10:05:0A:1C:D1:89:FB Dump(Rx): 0000:04 FF 1B 0D 06 00 00 01 29 4F CD 0D 22 66 AD 0E ........)O.."f.. 0010:02 01 1A 0A FF 4C 00 10 05 0A 1C D1 89 FB .....L........ -------------------------------------------------------------------- [33] : <Rx> - 02:02:35.917 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 09:92:AF:AF:1E:70 Rssi : 0xAA (170) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:02:DE:9F:1F:1C:78:A9:2F:ED: 12:26:9E:77:A3:46:07:6A:A9:25:1D:8B:21:43:44 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 70 1E AF AF 92 09 AA 1F ..,.....p....... 0010:1E FF 06 00 01 09 20 02 DE 9F 1F 1C 78 A9 2F ED ...... .....x./. 0020:12 26 9E 77 A3 46 07 6A A9 25 1D 8B 21 43 44 .&.w.F.j.%..!CD -------------------------------------------------------------------- [34] : <Rx> - 02:02:35.933 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1B (27) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 70:17:2A:9A:A1:81 Rssi : 0xB0 (176) DataLength : 0x0E (14) Data : 02:01:1A:0A:FF:4C:00:10:05:07:1C:D1:CA:A1 Dump(Rx): 0000:04 FF 1B 0D 06 00 00 01 81 A1 9A 2A 17 70 B0 0E ...........*.p.. 0010:02 01 1A 0A FF 4C 00 10 05 07 1C D1 CA A1 .....L........ -------------------------------------------------------------------- [35] : <Rx> - 02:02:35.949 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x22 (34) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x00 (0) (Public) Addr : 2C:41:A1:BA:93:BB Rssi : 0xAA (170) DataLength : 0x15 (21) Data : 02:01:1A:03:03:BE:FE:0D:FF:10:03:40:12:01:51:B0: 70:2D:4E:E5:F1 Dump(Rx): 0000:04 FF 22 0D 06 00 00 00 BB 93 BA A1 41 2C AA 15 ..".........A,.. 0010:02 01 1A 03 03 BE FE 0D FF 10 03 40 12 01 51 B0 ...........@..Q. 0020:70 2D 4E E5 F1 p-N.. -------------------------------------------------------------------- [36] : <Rx> - 02:02:35.964 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x21 (33) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 63:31:10:62:5C:F3 Rssi : 0xA7 (167) DataLength : 0x14 (20) Data : 02:01:1A:10:FF:4C:00:0D:04:99:71:01:52:10:05:0B: 1C:F3:08:B7 Dump(Rx): 0000:04 FF 21 0D 06 00 00 01 F3 5C 62 10 31 63 A7 14 ..!......\b.1c.. 0010:02 01 1A 10 FF 4C 00 0D 04 99 71 01 52 10 05 0B .....L....q.R... 0020:1C F3 08 B7 .... -------------------------------------------------------------------- [37] : <Rx> - 02:02:35.980 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1F (31) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x00 (0) (Public) Addr : 2C:41:A1:A8:42:BF Rssi : 0xA8 (168) DataLength : 0x12 (18) Data : 02:01:1A:03:03:BE:FE:0A:FF:01:0B:01:00:22:A0:F3: A5:00 Dump(Rx): 0000:04 FF 1F 0D 06 00 00 00 BF 42 A8 A1 41 2C A8 12 .........B..A,.. 0010:02 01 1A 03 03 BE FE 0A FF 01 0B 01 00 22 A0 F3 .............".. 0020:A5 00 .. -------------------------------------------------------------------- [38] : <Rx> - 02:02:36.027 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x02 (2) (Scannable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : E7:9C:AE:E9:E6:A5 Rssi : 0xAA (170) DataLength : 0x1F (31) Data : 02:01:04:1B:FF:57:01:00:74:E7:70:47:81:BB:F0:EE: EB:E9:FE:D9:22:56:9D:98:02:E7:9C:AE:E9:E6:A5 Dump(Rx): 0000:04 FF 2C 0D 06 00 02 01 A5 E6 E9 AE 9C E7 AA 1F ..,............. 0010:02 01 04 1B FF 57 01 00 74 E7 70 47 81 BB F0 EE .....W..t.pG.... 0020:EB E9 FE D9 22 56 9D 98 02 E7 9C AE E9 E6 A5 ...."V......... -------------------------------------------------------------------- [39] : <Rx> - 02:02:36.085 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x29 (41) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : EE:BF:76:FF:78:0D Rssi : 0xA4 (164) DataLength : 0x1C (28) Data : 02:01:04:18:FF:EA:02:01:23:01:23:40:00:01:23:45: 00:00:00:00:00:00:00:00:03:E8:00:00 Dump(Rx): 0000:04 FF 29 0D 06 00 03 01 0D 78 FF 76 BF EE A4 1C ..)......x.v.... 0010:02 01 04 18 FF EA 02 01 23 01 23 40 00 01 23 45 ........#.#@..#E 0020:00 00 00 00 00 00 00 00 03 E8 00 00 ............ -------------------------------------------------------------------- [40] : <Rx> - 02:02:36.095 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 09:66:57:2E:EF:53 Rssi : 0xA2 (162) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:0F:00:47:6A:41:0D:46:4A: 6E:F1:1A:48:F6:61:C6:2C:6E:CA:01:CE:E4:70:29 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 53 EF 2E 57 66 09 A2 1F ..,.....S..Wf... 0010:1E FF 06 00 01 09 20 00 0F 00 47 6A 41 0D 46 4A ...... ...GjA.FJ 0020:6E F1 1A 48 F6 61 C6 2C 6E CA 01 CE E4 70 29 n..H.a.,n....p) -------------------------------------------------------------------- [41] : <Rx> - 02:02:36.144 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 2D:D2:A0:E0:97:86 Rssi : 0xA4 (164) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:1C:6E:6D:24:33:E1:38:61: BB:6F:B6:B2:3B:A8:74:3C:6C:30:28:B6:F8:D7:97 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 86 97 E0 A0 D2 2D A4 1F ..,..........-.. 0010:1E FF 06 00 01 09 20 00 1C 6E 6D 24 33 E1 38 61 ...... ..nm$3.8a 0020:BB 6F B6 B2 3B A8 74 3C 6C 30 28 B6 F8 D7 97 .o..;.t<l0(.... -------------------------------------------------------------------- [42] : <Rx> - 02:02:36.208 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 09:05:ED:86:C0:2D Rssi : 0xA4 (164) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:54:A9:8C:48:87:17:E0:EB: B7:8D:44:9A:8E:AA:F0:AB:94:8C:35:BD:C3:ED:B4 Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 2D C0 86 ED 05 09 A4 1F ..,.....-....... 0010:1E FF 06 00 01 09 20 00 54 A9 8C 48 87 17 E0 EB ...... .T..H.... 0020:B7 8D 44 9A 8E AA F0 AB 94 8C 35 BD C3 ED B4 ..D.......5.... -------------------------------------------------------------------- [43] : <Rx> - 02:02:36.260 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x29 (41) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x00 (0) (Public) Addr : 74:5C:4B:61:7D:E5 Rssi : 0xAE (174) DataLength : 0x1C (28) Data : 02:01:1A:07:03:0F:18:0A:18:FF:FE:10:09:4A:61:62: 72:61:20:45:6C:69:74:65:20:34:35:65 Dump(Rx): 0000:04 FF 29 0D 06 00 00 00 E5 7D 61 4B 5C 74 AE 1C ..)......}aK\t.. 0010:02 01 1A 07 03 0F 18 0A 18 FF FE 10 09 4A 61 62 .............Jab 0020:72 61 20 45 6C 69 74 65 20 34 35 65 ra Elite 45e -------------------------------------------------------------------- [44] : <Rx> - 02:02:36.420 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 24:85:65:0F:9A:42 Rssi : 0xA6 (166) DataLength : 0x1F (31) Data : 1E:FF:06:00:01:09:20:00:EE:1F:64:85:C5:96:1A:BD: 0D:21:A6:80:5B:16:CB:69:38:15:5A:81:21:B5:0A Dump(Rx): 0000:04 FF 2C 0D 06 00 03 01 42 9A 0F 65 85 24 A6 1F ..,.....B..e.$.. 0010:1E FF 06 00 01 09 20 00 EE 1F 64 85 C5 96 1A BD ...... ...d..... 0020:0D 21 A6 80 5B 16 CB 69 38 15 5A 81 21 B5 0A .!..[..i8.Z.!.. -------------------------------------------------------------------- [45] : <Rx> - 02:02:36.435 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x2C (44) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : C9:97:BD:6D:81:65 Rssi : 0xB3 (179) DataLength : 0x1F (31) Data : 02:01:06:1B:FF:57:01:00:DD:4D:22:6F:C4:D9:14:74: 61:F8:5B:94:FE:3D:FB:C1:01:C9:97:BD:6D:81:65 Dump(Rx): 0000:04 FF 2C 0D 06 00 00 01 65 81 6D BD 97 C9 B3 1F ..,.....e.m..... 0010:02 01 06 1B FF 57 01 00 DD 4D 22 6F C4 D9 14 74 .....W...M"o...t 0020:61 F8 5B 94 FE 3D FB C1 01 C9 97 BD 6D 81 65 a.[..=......m.e -------------------------------------------------------------------- [46] : <Rx> - 02:02:36.451 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x1C (28) bytes(s) Event : 0x060D (1549) (GAP_DeviceInformation) Status : 0x00 (0) (Success) EventType : 0x04 (4) (Scan Response) AddrType : 0x01 (1) (Static) Addr : C9:97:BD:6D:81:65 Rssi : 0xB3 (179) DataLength : 0x0F (15) Data : 0A:09:4D:69:20:42:61:6E:64:20:33:03:02:E0:FE Dump(Rx): 0000:04 FF 1C 0D 06 00 04 01 65 81 6D BD 97 C9 B3 0F ........e.m..... 0010:0A 09 4D 69 20 42 61 6E 64 20 33 03 02 E0 FE ..Mi Band 3.... -------------------------------------------------------------------- [47] : <Error> - 02:02:36.482 Could Not Convert All The Data In The Following Message (Message Is Missing Data Bytes To Process) -------------------------------------------------------------------- [48] : <Rx> - 02:02:36.467 -Type : 0x04 (Event) -EventCode : 0x00FF (Event) -Data Length : 0x3C (60) bytes(s) Event : 0x0601 (1537) (GAP_DeviceDiscoveryDone) Status : 0x00 (0) (Success) NumDevs : 0x27 (39) Device #0 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 2E:E9:27:5D:E8:3D Device #1 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 37:D6:46:B1:10:30 Device #2 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 06:27:46:4D:3F:01 Device #3 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : FB:A0:B2:3C:9E:69 Device #4 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : F4:AE:C3:A0:E5:19 Device #5 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1E:33:C0:69:EC:02 Device #6 EventType : 0x03 (3) (Non-connectable Undirect Advertisement) AddrType : 0x01 (1) (Static) Addr : 1D:59:F3:A2:ED:CF Device #7 EventType : 0x00 (0) (Connectable Undirect Advertisement) AddrType : 0x00 (0) (Public) Addr : Dump(Rx): 0000:04 FF 3C 01 06 00 27 03 01 3D E8 5D 27 E9 2E 03 ..<...'..=.]'... 0010:01 30 10 B1 46 D6 37 03 01 01 3F 4D 46 27 06 03 .0..F.7...?MF'.. 0020:01 69 9E 3C B2 A0 FB 03 01 19 E5 A0 C3 AE F4 03 .i.<............ 0030:01 02 EC 69 C0 33 1E 03 01 CF ED A2 F3 59 1D ...i.3.......Y. --------------------------------------------------------------------
2. Adverting and scan at the same time will get error sometime.
I want to adverting and scan at the same time by hci command, but uart will hang up(can’t get/set any hci command) sometimes, just like above issue.
After send HCI_LE_Set_Advertise_Enable we send GAP_DeviceDiscoveryRequest command(set MaxScanRsps to 30) continuous when get GAP_DeviceDiscoveryDone, but it will hang up about after 3 minutes
Please check below image and scan.txt for hcitester script.
Send_HCI_Reset Send_GAP_DeviceInit 0x03, 30, , , # set advertising enable # response name: SSS # ibeacon uuid: AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA Send_HCI_LE_Set_Scan_Response_Data 5, "04:09:53:53:53" Send_HCI_LE_Set_Advertising_Parameters 0x00a0, 0x00a0, 0x02, 0x00, 0x00, "01:02:03:04:05:06", "0x07", "0x00" Send_HCI_LE_Set_Advertising_Data 27, "1A:FF:4C:00:02:15:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:00:FF:00:FF:FE" Send_HCI_LE_Set_Advertise_Enable 0x01 Send_GAP_DeviceDiscoveryRequest 0x03, 0x01, 0