You are here

Change channel for Direct Test Mode (DTM) BLE | Cypress Semiconductor

Change channel for Direct Test Mode (DTM) BLE

Summary: 4 Replies, Latest post by alog_1602741 on 14 Nov 2016 05:30 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
alog_1602741's picture
User
5 posts

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-tes...

To you have any solution about this problem?

 

Thank you!

 

Anjana Muralidharan's picture
Cypress Employee
61 posts

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

alog_1602741's picture
User
5 posts

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.

Guhapriyan Thanikachalam's picture
Cypress Employee
2 posts

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

alog_1602741's picture
User
5 posts

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.

Log in to post new comments.