This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

scanning and advertising

Hi Team,

Is it possible to scan on one channel and advertise on another channel?

Say node-A will scan on ch-37 and advertise on ch-38 while node-B will scan on ch-38 and advertise on ch-37.

Something like joining Tx of one to Rx of other kind of functionality.

I am using S130 soft device in all the nodes.

Regards,

Milan Joshi

Parents
  • Hi,

    You can do this, have a look at the Advertiser observer example. It is based on a different SoftDevice and SDK, but the idea is still the same.

    Best regards,

    Øyvind

  • typedef struct { uint8_t ch_37_off : 1; /**< Setting this bit to 1 will turn off advertising on channel 37 */

              uint8_t ch_38_off : 1;  /**< Setting this bit to 1 will turn off advertising on channel 38 */
    
              uint8_t ch_39_off : 1;  /**< Setting this bit to 1 will turn off advertising on channel 39 */
    
        } ble_gap_adv_ch_mask_t;
    

    Comment says that "Setting this bit to 1 will turn off advertising on channel 37/38/39". Will it stop scanning too on the same channel ?

    I am really confused. I want advertising and scanning on the fixed channels so that when device A is advertising on ch-37 the other device B will be scanning on ch-37. Also when device B is advertising on ch-38, device B will be scanning on ch-38. Is this possible to implement?

Reply
  • typedef struct { uint8_t ch_37_off : 1; /**< Setting this bit to 1 will turn off advertising on channel 37 */

              uint8_t ch_38_off : 1;  /**< Setting this bit to 1 will turn off advertising on channel 38 */
    
              uint8_t ch_39_off : 1;  /**< Setting this bit to 1 will turn off advertising on channel 39 */
    
        } ble_gap_adv_ch_mask_t;
    

    Comment says that "Setting this bit to 1 will turn off advertising on channel 37/38/39". Will it stop scanning too on the same channel ?

    I am really confused. I want advertising and scanning on the fixed channels so that when device A is advertising on ch-37 the other device B will be scanning on ch-37. Also when device B is advertising on ch-38, device B will be scanning on ch-38. Is this possible to implement?

Children
No Data
Related