Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Back to Back Advertisements with different Payload?

$
0
0

I'm using the CC2540DK and am trying to modify the simpleBLEBroadcaster program to suit my goals.  I want to transmit back to back advertisements (as quickly as possible) that have different size payloads.

I'm more of a hardware guy than a software guy so I'm struggling a bit with the program.  I've found most of the parameters I want to change in the simpleBLEBroadcaster.c and broadcaster.c files.  I changed the advertisement to be a non-connectable undirected advertisement (advType = GAP_ADTYPE_ADV_NONCONN_IND) and it only communicates on channel 37 (gapRole_AdvChanMap = GAP_ADVCHAN_37).  I've also minimized the advertising interval (DEFAULT_ADVERTISING_INTERVAL).  Does that seem okay so far?

I found the payload in simpleBLEBroadcaster.c (it gets loaded from GAPRole_SetParameter( GAPROLE_ADVERT_DATA, sizeof( advertData ), advertData ) where the data is defined in advertData).  So the question is how to modify advert data between every advertisement?  Is that easy to do?  I thought maybe I could do something in the OSAL_SimpleBLEBroadcaster.c file by calling the fuction SimpleBLEBroadcaster_Init but that doesn't seem to change the advertising payload for each consecutive advertisement.

Sorry this is kinda long, but I wanted to provide some setup for what I'm looking at.  My goal is to send consecutive advertisements as quickly as possible that have different payloads.  I'm debugging using the CC2540 packet sniffer.

Thanks,


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>