This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why 250 ms interval between subsequent reads?

I observe strange behavior while reading value for long characteristics.

I have characteristic 100 bytes long (read only). In GATT client I must read value with subsequent reads (sd_ble_gattc_read with proper offsets). Everything works fine with one exception. Subsequent packets are received at intervals of 250 ms. Why? Where is this "magic interval" set? With my characteristic 100 byte long I need spend 1 second to get full value (and keep connection!).

Parents
  • Ok. Sender log:

      0:06:151 Setting BLE parameters err_code:0
      0:06:151 PA LNA setting: 0
      0:06:151 Prefered params(st:0): min:30 max:100 latency:0 timeout:400
      0:06:152 UART-Init bucket 1 chunks, 15 chars in queue. 0 in buffer 
      0:19:233 Connect: AdrType:1 Addr:49436555FAF8 ownAddr:B272939FDAD5
      0:19:233 Connection Callback (7 Tx buffers available)
      0:20:484 BLE-data (off=0, len=14) bodyLen:5
      0:20:484 FRAME sNode:1 seq:0 dNode:0 fType:1 bLen:5 bType:0
      0:20:484 FRAME body: 'info;'
      0:20:484 BLE-packet completed (ftype:1) btype:0, len:5
      0:20:485 BLE-Request 'info'
      0:20:486 BLE-Init bucket 1 chunks, 462 chars in queue. 0 in buffer 
      0:20:487 FRAME sNode:2 seq:0 dNode:0 fType:1 bLen:119 bType:0
      0:20:487 FRAME body: '?=========== System statistics ========='
      0:20:488 BLE-set response (2) 128 length. Status:0
      0:22:359 BLE-disconnection reason: 0x13
    
Reply
  • Ok. Sender log:

      0:06:151 Setting BLE parameters err_code:0
      0:06:151 PA LNA setting: 0
      0:06:151 Prefered params(st:0): min:30 max:100 latency:0 timeout:400
      0:06:152 UART-Init bucket 1 chunks, 15 chars in queue. 0 in buffer 
      0:19:233 Connect: AdrType:1 Addr:49436555FAF8 ownAddr:B272939FDAD5
      0:19:233 Connection Callback (7 Tx buffers available)
      0:20:484 BLE-data (off=0, len=14) bodyLen:5
      0:20:484 FRAME sNode:1 seq:0 dNode:0 fType:1 bLen:5 bType:0
      0:20:484 FRAME body: 'info;'
      0:20:484 BLE-packet completed (ftype:1) btype:0, len:5
      0:20:485 BLE-Request 'info'
      0:20:486 BLE-Init bucket 1 chunks, 462 chars in queue. 0 in buffer 
      0:20:487 FRAME sNode:2 seq:0 dNode:0 fType:1 bLen:119 bType:0
      0:20:487 FRAME body: '?=========== System statistics ========='
      0:20:488 BLE-set response (2) 128 length. Status:0
      0:22:359 BLE-disconnection reason: 0x13
    
Children
No Data
Related