Other Parts Discussed in Thread: CC2640, , BLE-STACK
Hello,
I have a problem with the TI CC2640 IC and at least one specific smartphone. When connected the phone changes connection parameters and the CC2640 responds with HCI Error Invalid LMP Parameter. Normally there should be no error. I tested it with NRF Connect App and used the unmodified project zero example with ble5stack.
How can I solve this Error?
Here is a screenshot from the App:
Hardware:
- LaunchXL-CC2640R2 Development Board
- Galaxy Note 8, Modell Number: SM-N950F, Android 9
Firmware:
- ble5_project_zero_cc2640r2lp
- SDK 5.30.00.03
- Compiler TI 20.2.6 LTS
The Log file from the NRF Connect App:
nRF Connect, 2022-09-08 ProjectZero (54:6C:0E:9F:0A:6C) V 14:39:31.779 Connecting to 54:6C:0E:9F:0A:6C... D 14:39:31.779 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M) D 14:39:32.055 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2) I 14:39:32.055 Connected to 54:6C:0E:9F:0A:6C V 14:39:32.082 Discovering services... D 14:39:32.082 gatt.discoverServices() D 14:39:32.089 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED I 14:39:32.668 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms) D 14:39:33.078 [Callback] Services discovered with status: 0 I 14:39:33.078 Services discovered V 14:39:33.139 Generic Access (0x1800) - Device Name [R W] (0x2A00) - Appearance [R W] (0x2A01) - Peripheral Preferred Connection Parameters [R] (0x2A04) - Resolvable Private Address Only [R] (0x2AC9) Generic Attribute (0x1801) Device Information (0x180A) - System ID [R] (0x2A23) - Model Number String [R] (0x2A24) - Serial Number String [R] (0x2A25) - Firmware Revision String [R] (0x2A26) - Hardware Revision String [R] (0x2A27) - Software Revision String [R] (0x2A28) - Manufacturer Name String [R] (0x2A29) - IEEE 11073-20601 Regulatory Certification Data List [R] (0x2A2A) - PnP ID [R] (0x2A50) Unknown Service (f0001110-0451-4000-b000-000000000000) - Unknown Characteristic [R W WNR] (f0001111-0451-4000-b000-000000000000) - Unknown Characteristic [R W WNR] (f0001112-0451-4000-b000-000000000000) Unknown Service (f0001120-0451-4000-b000-000000000000) - Unknown Characteristic [N R] (f0001121-0451-4000-b000-000000000000) Client Characteristic Configuration (0x2902) - Unknown Characteristic [N R] (f0001122-0451-4000-b000-000000000000) Client Characteristic Configuration (0x2902) Unknown Service (f0001130-0451-4000-b000-000000000000) - Unknown Characteristic [R W] (f0001131-0451-4000-b000-000000000000) - Unknown Characteristic [N WNR] (f0001132-0451-4000-b000-000000000000) Client Characteristic Configuration (0x2902) D 14:39:33.140 gatt.setCharacteristicNotification(f0001121-0451-4000-b000-000000000000, true) D 14:39:33.144 gatt.setCharacteristicNotification(f0001122-0451-4000-b000-000000000000, true) D 14:39:33.148 gatt.setCharacteristicNotification(f0001132-0451-4000-b000-000000000000, true) I 14:39:33.208 Connection parameters updated (interval: 48.75ms, latency: 0, timeout: 5000ms) V 14:39:38.015 Enabling services... V 14:39:38.016 Enabling notifications for f0001121-0451-4000-b000-000000000000 D 14:39:38.016 gatt.setCharacteristicNotification(f0001121-0451-4000-b000-000000000000, true) D 14:39:38.017 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100) I 14:39:38.081 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00 A 14:39:38.081 "Notifications enabled" sent V 14:39:38.089 Notifications enabled for f0001121-0451-4000-b000-000000000000 V 14:39:38.089 Enabling notifications for f0001122-0451-4000-b000-000000000000 D 14:39:38.089 gatt.setCharacteristicNotification(f0001122-0451-4000-b000-000000000000, true) D 14:39:38.096 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100) I 14:39:38.179 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00 A 14:39:38.179 "Notifications enabled" sent V 14:39:38.187 Notifications enabled for f0001122-0451-4000-b000-000000000000 V 14:39:38.187 Enabling notifications for f0001132-0451-4000-b000-000000000000 D 14:39:38.187 gatt.setCharacteristicNotification(f0001132-0451-4000-b000-000000000000, true) D 14:39:38.188 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100) I 14:39:38.294 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00 A 14:39:38.294 "Notifications enabled" sent V 14:39:38.300 Notifications enabled for f0001132-0451-4000-b000-000000000000 V 14:39:38.300 All services enabled I 14:39:38.309 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 2000ms) V 14:42:16.857 Disconnecting... D 14:42:16.857 gatt.disconnect() D 14:42:16.873 [Callback] Connection state changed with status: 0 and new state: DISCONNECTED (0) I 14:42:16.873 Disconnected D 14:42:17.960 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED D 14:42:18.791 gatt.close() D 14:42:18.797 wait(200) V 14:42:18.998 Connecting to 54:6C:0E:9F:0A:6C... D 14:42:18.998 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M) D 14:42:19.258 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2) I 14:42:19.258 Connected to 54:6C:0E:9F:0A:6C D 14:42:19.283 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED V 14:42:19.308 Discovering services... D 14:42:19.308 gatt.discoverServices() I 14:42:19.831 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms) D 14:42:20.250 [Callback] Services discovered with status: 0 I 14:42:20.250 Services discovered V 14:42:20.315 Generic Access (0x1800) - Device Name [R W] (0x2A00) - Appearance [R W] (0x2A01) - Peripheral Preferred Connection Parameters [R] (0x2A04) - Resolvable Private Address Only [R] (0x2AC9) Generic Attribute (0x1801) Device Information (0x180A) - System ID [R] (0x2A23) - Model Number String [R] (0x2A24) - Serial Number String [R] (0x2A25) - Firmware Revision String [R] (0x2A26) - Hardware Revision String [R] (0x2A27) - Software Revision String [R] (0x2A28) - Manufacturer Name String [R] (0x2A29) - IEEE 11073-20601 Regulatory Certification Data List [R] (0x2A2A) - PnP ID [R] (0x2A50) Unknown Service (f0001110-0451-4000-b000-000000000000) - Unknown Characteristic [R W WNR] (f0001111-0451-4000-b000-000000000000) - Unknown Characteristic [R W WNR] (f0001112-0451-4000-b000-000000000000) Unknown Service (f0001120-0451-4000-b000-000000000000) - Unknown Characteristic [N R] (f0001121-0451-4000-b000-000000000000) Client Characteristic Configuration (0x2902) - Unknown Characteristic [N R] (f0001122-0451-4000-b000-000000000000) Client Characteristic Configuration (0x2902) Unknown Service (f0001130-0451-4000-b000-000000000000) - Unknown Characteristic [R W] (f0001131-0451-4000-b000-000000000000) - Unknown Characteristic [N WNR] (f0001132-0451-4000-b000-000000000000) Client Characteristic Configuration (0x2902) D 14:42:20.316 gatt.setCharacteristicNotification(f0001121-0451-4000-b000-000000000000, true) D 14:42:20.321 gatt.setCharacteristicNotification(f0001122-0451-4000-b000-000000000000, true) D 14:42:20.324 gatt.setCharacteristicNotification(f0001132-0451-4000-b000-000000000000, true) W 14:42:20.340 Connection parameters update failed with status 30 (interval: 7.5ms, latency: 0, timeout: 5000ms) E 14:42:20.341 Error 30 (0x1e): HCI ERROR INVALID LMP PARAM I 14:42:25.156 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 2000ms)
And the bluetooth traffic recorded with Ellisys Bluetooth Tracker:
ProjectZero_Invalid_LL_Parameters.zip
If you need additional informations please let me know. Thank you for your help.
regards
Alexander