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

flush out existing used pipe for reuse in nRF8001 in pic18f?

`Hi Guys, I have some sensor data of 20 bytes at each measurement at different period stored in EEPROM. Now i have to transmit all data over BLE continously.

example : say 20 bytes of data at 7 different time period = 140 bytes of data.

Now i'm using BlueSendData to transmit my data in while loop as i'm using pipe number 1 with buffersize of 20 bytes. what i'm seeing is that it is not updating my data measurement in android app. after some time i came to know that i have support of max. of 62 pipes with each pipe capability of handling 20 bytes of data.

what i'm looking is how can i flush out my pipe immediately after sending 20 bytes of data so that i can use same pipe for sending another 20 bytes of data.

regards, gbiradar `

Parents
  • I don't know whether it is correct or not, Once i send first 20 bytes of data i have read eventcode in while loop when eventcode returns data ack then i can send my next 20 bytes of data i checked with my application perfectly it is working.

  • Hi run_ar, ok i understand what you said so here what i'm trying, I just want to test my nRF8001 working for over a undefined period continuously.It has to send one command and continuosly android app has to receive any kind of data for testing purpose. but i checked DataCreditEvent, it is part of Dataevents. i don't know how to implement it in my code i'm using a set of library which are for pic controller and i didn't find any library call with the name DataCreditEvent. If you have any link can you just send.

Reply
  • Hi run_ar, ok i understand what you said so here what i'm trying, I just want to test my nRF8001 working for over a undefined period continuously.It has to send one command and continuosly android app has to receive any kind of data for testing purpose. but i checked DataCreditEvent, it is part of Dataevents. i don't know how to implement it in my code i'm using a set of library which are for pic controller and i didn't find any library call with the name DataCreditEvent. If you have any link can you just send.

Children
No Data
Related