<?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>I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85549/i-want-to-develop-c-program-to-get-product-rssi-value-on-specific-channel-by-using-nrf52840-dongle-pca10059</link><description>I &amp;#39;m developing a program (C# ) on PC for the nRF52840 dongle (pca10059) that is a RSSI scanner. 
 Scanning different BLE channels in the environment. The program is much like the nRF connects &amp;quot;RSSI viewer&amp;quot;. 
 Finally,the goal of program is to scan for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Mar 2022 09:53:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85549/i-want-to-develop-c-program-to-get-product-rssi-value-on-specific-channel-by-using-nrf52840-dongle-pca10059" /><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/359058?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 09:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe5dbb7-f5c3-4e38-82df-620c3857986c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Benny_Lin"]In Realterm Tool ,by sending &amp;quot;scan adv true&amp;quot; before sending &amp;quot;start&amp;quot; command, Does Any else command should I send?[/quote]
&lt;p&gt;That should be sufficient, but you can configure delay and how many times each channel should be sampled each interval.&lt;/p&gt;
[quote user="Benny_Lin"]Could you help to provide command list?&amp;nbsp;[/quote]
&lt;p&gt;The commands are not documented, as this is not intended as a standalone firmware for use outside of the application. But you can &lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-rssi/blob/master/fw/src/rssi_cdc_acm/main.c#L316-L358"&gt;read the command list from the code&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/358957?ContentTypeID=1</link><pubDate>Sun, 20 Mar 2022 01:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8adf6773-9234-46d1-ad0a-d1259afe47e3</guid><dc:creator>Benny_Lin</dc:creator><description>&lt;p&gt;Hi Jorgen&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will do experiment in real environment (receive adv channel rssi) by using Realterm and RSSI Viewer.&lt;/p&gt;
&lt;p&gt;In Realterm Tool ,by sending &amp;quot;scan adv true&amp;quot; before sending &amp;quot;start&amp;quot; command, Does Any else command should I send?&lt;/p&gt;
&lt;p&gt;Could you help to provide command list?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/358358?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 09:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b8420d4-2a49-403b-be03-0c7f76b19b0a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It will filter the packets according to the Channels and Levels filters in the application, and hold the highest RSSI value from x number of last scans for each channel according to the hold time configuration, but apart from this, the application uses the RSSI samples as-is as far as I can see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/358165?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 10:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:837b05c8-de34-4950-88c3-6f2bf7950100</guid><dc:creator>Benny_Lin</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;Do RSSI Viewer application&amp;nbsp;&lt;span&gt;directly use measured data from&amp;nbsp;&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-rssi/blob/master/fw/src/rssi_cdc_acm/main.c#L207-L209"&gt;packets from the RSSI firmware&lt;/a&gt;&amp;nbsp;is 3 uint8_t bytes to draw chart realtime?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357885?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 09:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5ddd8f-ed69-412b-b2ba-4cae43a2ae5c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The measured data is the RSSI value, as described in&amp;nbsp;&lt;a title="Received signal strength indicator (RSSI)" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=4_0_0_5_19_7#rssi"&gt;Received signal strength indicator (RSSI)&lt;/a&gt;. Note that the RSSI value in the data packets from the firmware&amp;nbsp;value is positive (uint8_t), while the actual RSSI value is negative, so you need to multiply by (-1), see&amp;nbsp;&lt;a title="RSSISAMPLE" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html?cp=4_0_0_5_19_13_60#register.RSSISAMPLE"&gt;RSSISAMPLE&lt;/a&gt;&amp;nbsp;register documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357804?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 01:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6f3ff1-9141-42b5-b140-2029997c06be</guid><dc:creator>Benny_Lin</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;This is my final question.&lt;/p&gt;
&lt;p&gt;If I get rssi from&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-rssi/blob/master/fw/src/rssi_cdc_acm/main.c#L207-L209"&gt;packets from the RSSI firmware&lt;/a&gt;&lt;span&gt;&amp;nbsp;is 3 uint8_t bytes, can rssi directly as measured data or need to process?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&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><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357663?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 13:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f024f6-43c9-450e-ad5f-6f95f5f0df1b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Benny_Lin"]&lt;p&gt;Problem1&lt;/p&gt;
&lt;p&gt;From RSSI Viewer BLE channel range 0~39, In packet from RSSI firmware channel range is 0~80&lt;/p&gt;
&lt;p&gt;What difference is between&amp;nbsp;&lt;span&gt;RSSI Viewer channel and&amp;nbsp;In packet from RSSI firmware channel?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The RSSI firmware measures RSSI on all &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/radio.html#register.FREQUENCY"&gt;frequencies/channels&lt;/a&gt; between 2400MHz and 2480MHz in 1 MHz steps. The BLE channels are placed between 2402MHz to 2480MHz, in 2MHz steps. If you are only interested in the BLE channels, you need to filter these out in your application, or modify the RSSI firmware to only measure RSSI on the relevant channels.&lt;/p&gt;
[quote user="Benny_Lin"]&lt;p&gt;&lt;span&gt;Problem2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If do advertise RSSI value (channel 37 38 39) ,what command should I send?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The RSSI firmware can be limited to only report advertising channels (2402, 2426, 2480MHz), by sending &amp;quot;scan adv true&amp;quot; before sending &amp;quot;start&amp;quot; command. To go back to all channels, send &amp;quot;scan adv false&amp;quot; command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357518?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 01:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0edee7da-1e54-4624-bac9-f71c64b4bc51</guid><dc:creator>Benny_Lin</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I follow your SOP and successfully implement.&lt;/p&gt;
&lt;p&gt;But, I discovered problems.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Problem1&lt;/p&gt;
&lt;p&gt;From RSSI Viewer BLE channel range 0~39, In packet from RSSI firmware channel range is 0~80&lt;/p&gt;
&lt;p&gt;What difference is between&amp;nbsp;&lt;span&gt;RSSI Viewer channel and&amp;nbsp;In packet from RSSI firmware channel?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Problem2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If do advertise RSSI value (channel 37 38 39) ,what command should I send?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you help to analysis&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357441?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 14:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:902f3b0d-caaf-4526-a709-0a57d898fe6c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using a similar approach to you, but I used RealTerm instead of PuTTY. Here you can set the &amp;quot;Display as&amp;quot; to uint8, so it is easier to read the actual values being transmitted. PuTTY will show the received data value as ASCII characters, which may not make sense when the data is binary.&lt;/p&gt;
&lt;p&gt;You can send the &amp;quot;start&amp;quot; command from &amp;quot;Send&amp;quot; tab. Enter the command in the textboc, check the &amp;quot;+RC&amp;quot; checkbox under EOL, and click the &amp;quot;Send ASCII&amp;quot; button.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357294?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 01:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0fcc334-ec19-428e-a153-3027f9966008</guid><dc:creator>Benny_Lin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My Result SCANLOG.txt from below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My DUT is nRF52840 pca10059 dongle&lt;/p&gt;
&lt;p&gt;1. open nRF Connect and select RSSI Viewer&lt;/p&gt;
&lt;p&gt;2. Download firmware RSSI Viewer by using DFU&lt;/p&gt;
&lt;p&gt;3. Open Putty Tool and Set Serial&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. From Screen , Key &amp;quot;start&amp;quot;,then display response&lt;/p&gt;
&lt;p&gt;5.Save response to txt and name to SCANLOG.txt&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here,&lt;/p&gt;
&lt;p&gt;Could you help to show your operate procedure?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357219?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 14:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9940215-d1ae-4d73-831c-ee73c02ff4ab</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Benny_Lin"]The main.c is the RSSI viewer source code?[/quote]
&lt;p&gt;No, main.c is the source code of the firmware running on the Dongle. The RSSI viewer application source code is found in&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-rssi/tree/master/src"&gt;https://github.com/NordicSemiconductor/pc-nrfconnect-rssi/tree/master/src&lt;/a&gt;.&lt;/p&gt;
[quote user="Benny_Lin"]&lt;p&gt;I study and follow main.c . I manually use putty tool connect to Dongle via usb and send &amp;quot;start&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the response is&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m not sure what format you are reading in Putty, but is I&amp;#39;m not sure it is converted correctly in the txt file.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-rssi/blob/master/fw/src/rssi_cdc_acm/main.c#L207-L209"&gt;packets from the RSSI firmware&lt;/a&gt; is 3 uint8_t bytes, starting with 0xFF, then the channel number, and finally the RSSI value:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/realterm_5F00_rssi.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/357007?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 01:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1696b616-6f78-4e2f-bb35-eab01c7b0114</guid><dc:creator>Benny_Lin</dc:creator><description>&lt;p&gt;Hi, Jorgen&lt;/p&gt;
&lt;p&gt;I download RSSI application source code,&lt;/p&gt;
&lt;p&gt;The path&amp;nbsp; pc-nrfconnect-rssi-master\fw\src\rssi_uart\main.c&lt;/p&gt;
&lt;p&gt;Problem 1&lt;/p&gt;
&lt;p&gt;The main.c is the RSSI viewer source code?&lt;/p&gt;
&lt;p&gt;Problem 2&lt;/p&gt;
&lt;p&gt;I study and follow main.c . I manually use putty tool connect to Dongle via usb and send &amp;quot;start&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the response is&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SCANLOG.txt"&gt;devzone.nordicsemi.com/.../SCANLOG.txt&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;from SCANLOG.txt , How to parser the response log?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to develop C# program to get product rssi value on specific channel by using nRF52840 dongle pca10059</title><link>https://devzone.nordicsemi.com/thread/356925?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 14:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:247c459e-6532-4a93-a768-678bbed8e35b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not have any application examples implemented in C#, but the source code for the nRF Connect RSSI application (written in Node.js) is &lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-rssi"&gt;available on GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The firmware running on the boards are also available in source code, and can be built for the nRF52840 Dongle. The RSSI application communicates with the dongle over USB CDC ACM, so it should be possible to integrate the required functionality in your C# application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>