Part Number: CC2541
Hello,
I am facing random disconnection issues (disconnection reason 0x3F) after several seconds or minutes after connection establishement (the connection does not remain more than 2-3 minutes).
The CC2541 acts as a central-observer and communicates via I2C to a master (CC2541 is the I2C slave).
After several tests, it seems that the issue occurs only when a connection is established while I2C transfers are on-going. The following tests were done:
- No I2C transfers during connection establishement and while connected (I2C slave still active) -> connection remain at least 30 minutes.
- I2C transfers during connection establishement and I2C transfers while connected -> random disconnection (reason 0x3F) after a few seconds (or minutes).
The I2C slave driver used is the one provided by Texas Instruments and it is used with interrupts. The master requests 8 bytes of data each 200ms (I2C frequency set to 10kHz). The BLE stack version used is 1.4.2.
My questions are:
- How can I resolve this issue on the I2C side?
- How can I setup a more robust connection using GAP parameters (or other ways)?
Thank you in advance,
Johann