<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112365/tx-power-of-received-advertising-packet-in-ncs</link><description>Hi 
 We are using the NCS V2.6.99 for a sample project which scans for peripheral devices. 
 I&amp;#39;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 &amp;quot;tx_power&amp;quot;. 
 I wanted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2024 13:30:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112365/tx-power-of-received-advertising-packet-in-ncs" /><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/492473?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 13:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:167575f4-fe33-442e-8fab-92143a558537</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for the clarification.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Remo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/492457?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 12:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4cde7a0-1576-4281-93f1-77ede916d396</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;So this field is something the advertiser can use to advertise, similar to a advertising name, service UUIDs, etc. &lt;a href="https://www.bluetooth.com/specifications/specs/core-specification-supplement-10/"&gt;For more information, see Core Specification Supplement 10&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Likely if the value is 127, then the tx-power is not actually being advertised. You could do bt_data_parse() and check if BT_DATA_TX_POWER is included in the advertising data or not.&lt;/p&gt;
&lt;p&gt;Regards and have a good week-end,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/491745?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 07:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d044902-e419-4aab-aec8-730265e4924e</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Thank you. Hope you&amp;#39;ve had a nice weekend, too.&lt;/p&gt;
&lt;p&gt;Ok, thank you. No problem. I&amp;#39;m looking forward to hearing from you :-)&lt;/p&gt;
&lt;p&gt;Best regards, Remo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/491631?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 13:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a0bc65-03dc-4e21-8394-61afa0e03f03</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again, hope you&amp;#39;ve had a good week-end!&lt;/p&gt;
[quote user="Remosennhauser"]&lt;p&gt;No, I don&amp;#39;t get an error. Just the parameter tx_power in bt_le_scan_recv_info is set to 127.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;That makes more sense. Sorry about the confusion.&lt;/p&gt;
[quote user="Remosennhauser"]&lt;p&gt;I&amp;#39;m not sure if I can switch to a tagged version of NCS because I&amp;#39;m using the nRF54L. According to a mail from Nordic, the branch v2.6.99-cs1 should be used for the nRF54L.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Ah yes, that is correct.&amp;nbsp;The nRF54 series is a bit of an exception as of now.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking into it, unfortunately things take a bit more time during the summer due to people taking time off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/490988?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 05:58:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb0ea79-103b-42cf-97a8-668551b64e83</guid><dc:creator>Remo</dc:creator><description>&lt;p&gt;Hi Elfving&lt;/p&gt;
&lt;p&gt;No, I don&amp;#39;t get an error. Just the parameter tx_power in bt_le_scan_recv_info is set to 127.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if I can switch to a tagged version of NCS because I&amp;#39;m using the nRF54L. According to a mail from Nordic, the branch v2.6.99-cs1 should be used for the nRF54L.&lt;/p&gt;
&lt;p&gt;I used the sample &amp;quot;central_and_peripheral_hr&amp;quot; and adjusted it for our needs.&lt;/p&gt;
&lt;p&gt;Best regards, Remo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/490772?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 07:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d21b9ec-c183-422d-86f7-7a3fc0acf788</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;What sample where you using for this?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TX power of received advertising packet in NCS</title><link>https://devzone.nordicsemi.com/thread/490689?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 14:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261d49d0-84ba-4e2a-b713-31bd6d612de9</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Remo, and sorry about the wait.&lt;/p&gt;
&lt;p&gt;So you check the parameter&amp;nbsp;&lt;span&gt;tx_power in&amp;nbsp;bt_le_scan_recv_info, which gives you error&amp;nbsp;127? 127 is&amp;nbsp;EISCONN:&amp;nbsp;Socket is already connected. So that sounds a bit strange to me.&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;We are using the NCS V2.6.99 for a sample project which scans for peripheral devices.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;Could you try this again in a tagged version of NCS? There could be issues with the main branch.&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;I wanted to check this TX-power value for the received advertising packet, but I always get the value 127. &lt;br /&gt;But I know that the peripheral device is transmitting the TX power value in its advertising data.&lt;br /&gt;Under what circumstances does the NCS set the tx_power in this struct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;ll have to get back to you on this tomorrow.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>