I set main baud rate to 0 and this skipped the baud changing, so BTSTACK downloads the init script and I get 'HCI working' state for now
Moreover I see my BlueTooth device (with customer profile, that I use on previous device with CC2564 chip ) on the phone
But when I try to connect, something wrong happens and 'disconnect' is received:
[00:00:43.353] EVT <= 3E 13 01 00 40 00 01 01 9F 5E 72 64 4E 69 18 00 00 00 48 00 01
[00:00:43.354] LOG -- hci.c.2193: LE Connection_complete (status=0) type 1, 69:4E:64:72:5E:9F
[00:00:43.355] LOG -- hci.c.194: create_connection_for_addr 69:4E:64:72:5E:9F, type 1
[00:00:43.356] LOG -- hci.c.1132: state 7, role 1, le_con 1
[00:00:43.357] LOG -- hci.c.1138: Num LE Peripheral roles: 1 of 1
[00:00:43.357] LOG -- hci.c.2271: New connection: handle 64, 69:4E:64:72:5E:9F
[00:00:43.358] LOG -- hci.c.5019: BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1
[00:00:43.359] EVT <= 61 01 01
[00:00:43.359] LOG -- Core/Src/app_bt.c.757: Low level connect
[00:00:43.360] LOG -- Core/Src/app_bt.c.758: Connection handle 0x0040, state - CONNECTED, address type 1, address 69:4E:64:72:5E:9F, default mtu 20
[00:00:43.361] LOG -- Core/Src/app_bt.c.759: - Connection Interval: 30.00 ms
[00:00:43.362] LOG -- Core/Src/app_bt.c.760: - Connection Latency: 0
[00:00:43.363] LOG -- sm.c.3472: sm: connected
[00:00:43.364] LOG -- sm.c.3485: New sm_conn, role slave
[00:00:43.364] EVT <= D5 09 40 00 01 9F 5E 72 64 4E 69
[00:00:43.365] LOG -- att_server.c.401: SM_EVENT_IDENTITY_RESOLVING_STARTED
[00:00:43.366] LOG -- sm.c.2118: LE Device Lookup: device 0/1
[00:00:43.366] LOG -- sm.c.2126: device type 254, addr: 00:00:00:00:00:00
[00:00:43.367] LOG -- sm.c.2161: LE Device Lookup: not found
[00:00:43.368] EVT <= D6 09 40 00 01 9F 5E 72 64 4E 69
[00:00:43.368] LOG -- Core/Src/app_bt.c.796: Identity resolving failed
[00:00:43.369] LOG -- att_serv
[00:00:43.607] EVT <= 05 04 00 40 00 3E
[00:00:43.607] LOG -- hci.c.1132: state 10, role 1, le_con 1
[00:00:43.608] LOG -- hci.c.1138: Num LE Peripheral roles: 0 of 1
[00:00:43.609] LOG -- Core/Src/app_bt.c.827: Disconnect
[00:00:43.609] LOG -- Core/Src/app_bt.c.251: WRITE Callback, attribute handle 0000
[00:00:43.610] LOG -- Core/Src/app_bt.c.827: Disconnect
[00:00:43.611] LOG -- hci.c.950: Connection closed: handle 0x40, 69:4E:64:72:5E:9F
[00:00:43.611] LOG -- hci.c.5019: BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 0
[00:00:43.612] EVT <= 61 01 00
[00:00:43.612] CMD => 0A 20 01 01
[00:00:43.613] EVT <= 6E 00
[00:00:43.614] EVT <= FF 0C 1B 04 02 00 00 F6 01 01 00 00 00 00
[00:00:43.615] EVT <= 0E 04 01 0A 20 00