Could you please let us know which tester you are using for DTM mode testing?
For DTM testing, usually the DTM test code will contain the channel number one parameter. So there is no need for setting the adv channel initially itself.
Please clarify your query and requirement.
Thank you for your reply.
Actually i use a DTM tester like R&S®CBT/CBT32 Bluetooth® Tester.
Thet fast is i have download the code for HCI_DTM in the Cypress website, but there is no information about how to change advertising channels.
I would like to do a frequency scanning and see for each channels (3 different channels in advertising mode) a specific frequency which appear in the monitor.
So the tests are:
- Test 1: In HCI_DTM test, only advertise in the channel 37.
- Test 2: In HCI_DTM test, only advertise in the channel 38.
- Test 3: In HCI_DTM test, only advertise in the channel 39.
- Test 4: In HCI_DTM test, advertise in the channel 37, 38 and 39.
You can issue the 'LE Set Advertising Parameters Command' HCI command with the 'Advertising_Channel_Map' parameter set to 1,2,4&7 respectively for your test cases 1,2,3 & 4 respectively.
Ok, so if i understand: I have nothing to change in the DTM software flashed in the BLE? The soft is just:
void GenericEventHandler(uint32 event, void * eventparam);
/* Enable global interrupts. */
/* Start BLE Component and register the event callback function */
/* Process BLE events continuously */
void GenericEventHandler(uint32 event, void * eventparam)
/* No application event is generated in HCI Mode. All commands
* are processed by BLE stack */
/* To prevent compiler warning */
eventparam = eventparam;
So where i can use the function: 'LE Set Advertising Parameters Command' to change his parameter?