packet sending rate drastically changed depending on distance

Hi i am developing application that utilize SAADC and send it to pc by ble_nus service

my goal is to acheive 250Hz sampling frequency which means i have to send data packet  every 4ms.

i used nrf52840dk as adc role and nrf52840 dongle as interface to PC

when DK and dongle are in close distance, they are able to send packet every 4ms quite well

but when i put dk at a distance, sending rate decreases to about 200Hz,

worst case was 170Hz for ~3m distance

depending on surroundings, even dongle and dk are close , data sending rate was very low.

i need application that can send packet as constant as i can robust to surroundings.

nrf sniffer when they are close

when distance increased, some empty pdu arise, 

also i observe l2cap 

  

also i observed above packet i can't figure out it's source

some arrived packet is followed by unknown strings

is there are any good approach to establish robust connection?

due to my lack of knowledge to ble, i could miss  a lot but 

any advise would be a big help 

conn interval = 50ms

MTU_size = 247

phy = 1m

tx power= 8dbm

i used ble_nus_send function 

in nrfSDK v17

thank you very much

Parents Reply Children
No Data
Related