4 Replies Latest reply on Nov 14, 2016 5:30 AM by aledda_1602741

    Change channel for Direct Test Mode (DTM) BLE

    aledda_1602741

      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!

        • 1. Re: Change channel for Direct Test Mode (DTM) BLE
          anpm

          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

          • 2. Re: Change channel for Direct Test Mode (DTM) BLE
            aledda_1602741

            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.

            • 3. Re: Change channel for Direct Test Mode (DTM) BLE
              guha

              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

              • 4. Re: Change channel for Direct Test Mode (DTM) BLE
                aledda_1602741

                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.