Quick Question on the peripheral_hr_coded example program.

I wanted to know if this program starts sending advertisements using the Coded PHY
 OR
if it starts advertising in the normal advertising channels using the normal 1Meg output and then switches to Coded PHY when sending the heart rate monitor data?

Parents
  • Hello,

    It advertises using Coded PHY and this also carries over to the connection. It is possible to advertise and establish the connection on 1M and then request a PHY update to Coded after the connection is made (see BLE fund. course, Exercise 2, step 7. But it may defeat the purpose of using coded phy. For example, you would not be able to connect/reconnect if you were in "Coded" range but outside the 1M range.

    To advertise on 1M, remove the BT_LE_ADV_OPT_CODED option flag from your advertising parameters.

    Best regards,

    Vidar

Reply
  • Hello,

    It advertises using Coded PHY and this also carries over to the connection. It is possible to advertise and establish the connection on 1M and then request a PHY update to Coded after the connection is made (see BLE fund. course, Exercise 2, step 7. But it may defeat the purpose of using coded phy. For example, you would not be able to connect/reconnect if you were in "Coded" range but outside the 1M range.

    To advertise on 1M, remove the BT_LE_ADV_OPT_CODED option flag from your advertising parameters.

    Best regards,

    Vidar

Children
Related