2 Replies Latest reply on Jan 10, 2020 12:58 AM by AkFu_2553776

    Cy8C4248LQI-BL553 Exchange GATT MTU Size timed out error if BLE sleep function enabled

    AkFu_2553776

      Imported Cypress official example BLE_FindMe project to this device.

      I can see the device name from CySmart 1.3. Connect to the device success but after following log.

      Cy samrt say "Exchange GATT MTU Size timed out". If comment out Line 215 to 243 then works without these problem.

      These lines are BLE sleep related.

      Attached both project file.

       

      How Can I make BLE work with sleep functions?

       

      [12:10:34:761] : 'Establish Connection' request sent

      [12:10:34:761] : BD Address Type: PUBLIC_ADDRESS

      [12:10:34:761] : BD Address: 03:00:00:50:A0:00:00:00

      [12:10:34:764] : 'Command Status' event received

      [12:10:34:764] : Status: BLE_STATUS_OK

      [12:10:34:811] : 'Establish Connection Response' event received

      [12:10:35:794] : 'Current Connection Parameters' event received

      [12:10:35:794] : HCI Status: 0x00

      [12:10:35:794] : Connection Interval: 8.75 ms

      [12:10:35:794] : Slave Latency: 0

      [12:10:35:794] : Supervision Timeout: 100 ms

      [12:10:35:794] : 'Command Complete' event received

      [12:10:35:794] : Status: BLE_STATUS_OK

      [12:10:35:795] : 'Get local device security keys' request sent

      [12:10:35:796] : 'Command Status' event received

      [12:10:35:796] : Status: BLE_STATUS_OK

      [12:10:35:803] : 'Get local device security keys response' event received

      [12:10:35:803] : Key flags: INITIATOR_ENCRYPTION_INFORMATION, INITIATOR_IDENTITY_INFORMATION, INITIATOR_SIGNATURE_KEY, RESPONDER_ENCRYPTION_INFORMATION, RESPONDER_IDENTITY_INFORMATION, RESPONDER_SIGNATURE_KEY

      [12:10:35:803] : Long Term Key (LTK): [D6:93:E8:A4:23:55:48:99:1D:77:61:E6:63:2B:10:8E]

      [12:10:35:803] : Encrypted Diversifier (EDIV) and Random Number: [99:1F:26:1E:F6:09:97:2E:AD:7E]

      [12:10:35:803] : Identity Resolving Key (IRK): [0A:2D:F4:65:E3:BD:7B:49:1E:B4:C0:95:95:13:46:73]

      [12:10:35:803] : Identification Address: [0x00A0500C1313, PUBLIC_ADDRESS]

      [12:10:35:803] : Connection Signature Resolving Key (CSRK): [90:D5:06:95:92:ED:91:D7:A8:9E:2C:DC:4A:93:5B:F9]

      [12:10:35:804] : 'Command Complete' event received

      [12:10:35:804] : Status: BLE_STATUS_OK

      [12:10:35:804] : 'Set OOB data' request sent

      [12:10:35:804] : OOB flag: Disable

      [12:10:35:804] : OOB Key: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]

      [12:10:35:804] : OOB Data: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]

      [12:10:35:809] : 'Command Status' event received

      [12:10:35:809] : Status: BLE_STATUS_OK

      [12:10:35:810] : 'Command Complete' event received

      [12:10:35:810] : Status: BLE_STATUS_OK

      [12:10:35:810] : 'Exchange GATT MTU Size' request sent

      [12:10:35:810] : MTU: 0x0200

      [12:10:35:813] : 'Command Status' event received

      [12:10:35:813] : Status: BLE_STATUS_OK