cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to send data from BlueNRG LPS

rshar.21
Associate

Hi Everyone,

I'm using BlueNRG LPS as a network co-processor with STM32L4 Nucleo Board. I'm sending 30 bytes data in every 10ms from stm32 to bluenrg LPS in Non-Block manner, and after 3000 bytes I have to send to packet end command (blocked). So there are 2 problems I'm facing -

1) In my mobile app I'm not able to receive any data,

2) When I put the breakpoint in my code then able to receive data in mobile app, but not able to receive full data, in that also able to receive packet end. 

NOTE - To verify the code logic, I have run the same program flow in Bluenrg-MS and using that able to receive full data without any problem. 

 

Function I'm using to send - 

 

 

if( aci_gatt_srv_notify(connection_handle, notifyhandle+1, GATT_NOTIFICATION, 20, buffer) == BLE_STATUS_INSUFFICIENT_RESOURCES)
{
  busy_count++
}
else
{
pass++
}

 

 

If not able to send as per above logic then it'll send same data again in next iteration(after 10ms).

 

connection parameter -

1) interval min - 6ms, interval max - 6ms, slave latency - 0, timeout - 400.

2) after calling set data length, the exchanged mtt length I received is 160.

 

Kindly help since I'm new to ble, Thanks in advance

 

 

0 REPLIES 0