Change channel for Direct Test Mode (DTM) BLE

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
anlec_1602741
Level 1
Level 1

Good morning,

   

 

   

I have a problem with my PRoC BLE. I would like tu change advertising channels during DTM mode but i don't know if it is possible. I have seen in the Bluetooth files automatically generated that all function about changing advertising channels are disabled.

   

I have follow this project to begin:

   

http://www.cypress.com/blog/100-projects-100-days/project-018-direct-test-mode-dtm

   

   

To you have any solution about this problem?

   

 

   

Thank you!

0 Likes
4 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi,

   

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.

   

Thanks,
Anjana

0 Likes
anlec_1602741
Level 1
Level 1

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.

   

Thanks.

0 Likes
GuhapriyanT_31
Employee
Employee
10 solutions authored 25 replies posted 10 replies posted

Hi,

   

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.

   

Thanks,

   

Guha

0 Likes
anlec_1602741
Level 1
Level 1

Ok, so if i understand: I have nothing to change in the DTM software flashed in the BLE? The soft is just:

   

#include <project.h>

   

void GenericEventHandler(uint32 event, void * eventparam);

   


int main()
{
    /* Enable global interrupts. */
    CyGlobalIntEnable; 
    
    /* Start BLE Component and register the event callback function */
    CyBle_Start(GenericEventHandler);
    
    for(;;)
    {
        /* Process BLE events continuously */
        CyBle_ProcessEvents();
    }
}

   


void GenericEventHandler(uint32 event, void * eventparam)
{
    switch(event)
    {
        /* No application event is generated in HCI Mode. All commands
        * are processed by BLE stack */

   

        default:
            /* To prevent compiler warning */
            eventparam = eventparam;
        break;
    }
}

   

 

   

So where i can use the function: 'LE Set Advertising Parameters Command' to change his parameter?

   

 

   

Thank you.

0 Likes