TX power of received advertising packet in NCS

Hi

We are using the NCS V2.6.99 for a sample project which scans for peripheral devices.

I've seen that the scan-callback-function return the struct bt_le_scan_recv_info (in bt_scan_device_info) which consists of the parameter "tx_power".

I wanted to check this TX-power value for the received advertising packet, but I always get the value 127.
But I know that the peripheral device is transmitting the TX power value in its advertising data.
Under what circumstances does the NCS set the tx_power in this struct?

Many thanks in advance.

Best regards, Remo

Parents
  • Hello Remo, and sorry about the wait.

    So you check the parameter tx_power in bt_le_scan_recv_info, which gives you error 127? 127 is EISCONN: Socket is already connected. So that sounds a bit strange to me.

    We are using the NCS V2.6.99 for a sample project which scans for peripheral devices.

    Could you try this again in a tagged version of NCS? There could be issues with the main branch.

    I wanted to check this TX-power value for the received advertising packet, but I always get the value 127.
    But I know that the peripheral device is transmitting the TX power value in its advertising data.
    Under what circumstances does the NCS set the tx_power in this struct?

    I'll have to get back to you on this tomorrow.

    Regards,

    Elfving

Reply
  • Hello Remo, and sorry about the wait.

    So you check the parameter tx_power in bt_le_scan_recv_info, which gives you error 127? 127 is EISCONN: Socket is already connected. So that sounds a bit strange to me.

    We are using the NCS V2.6.99 for a sample project which scans for peripheral devices.

    Could you try this again in a tagged version of NCS? There could be issues with the main branch.

    I wanted to check this TX-power value for the received advertising packet, but I always get the value 127.
    But I know that the peripheral device is transmitting the TX power value in its advertising data.
    Under what circumstances does the NCS set the tx_power in this struct?

    I'll have to get back to you on this tomorrow.

    Regards,

    Elfving

Children
No Data
Related