<?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>USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109954/usb840x-fanstel-dongle-enable-pa-lna-with-ble_connectivity-does-not-guarantee-throughput</link><description>Hi Nordic team, I&amp;#39;m using the USB840X dongle with ble_connectivity firmware (nRF5_SDK_15.3.0_59ac345\examples\connectivity\ble_connectivity\pca10059\ser_s140_usb_hci with hex/nRF5_SDK_15.3.0_connectivity.patch ). On my PC, I communicate with the dongle</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2024 02:34:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109954/usb840x-fanstel-dongle-enable-pa-lna-with-ble_connectivity-does-not-guarantee-throughput" /><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/478166?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 02:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:806f8449-075c-4197-8a25-4f98bf5ea189</guid><dc:creator>lammobile</dc:creator><description>&lt;p&gt;Hi Jared,&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thank you for your enthusiasm&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477958?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 08:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6109a71-7581-4311-bab3-cb99a2babcb5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Aaah Good catch, must admit that I didn&amp;#39;t notice that right away,&lt;/p&gt;
&lt;p&gt;Thanks for returning with the solution, it will help others that face the same issue later,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477919?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 03:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4b094ad-eef8-47e5-8603-60f5c0936366</guid><dc:creator>lammobile</dc:creator><description>&lt;p&gt;&lt;span&gt;Finally, it&amp;#39;s working. I followed the suggestion from this ticket to allow the application to request connectivity to enable PA and LNA pins.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/19207/pa-lna-in-a-serialized-application/74400#74400"&gt;devzone.nordicsemi.com/.../74400&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477724?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 08:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8618899d-74d9-4745-8609-de064951f8e5</guid><dc:creator>lammobile</dc:creator><description>&lt;p&gt;On the USB840X, I conducted an experiment to measure the signals of 4 GPIOs (APP_PA_PIN, APP_LNA_PIN, APP_CHL_PIN, and APP_CPS_PIN), which control the SKY66112-11 chip. Since direct wire soldering to Pins (P0.17, P0.19, P0.06, and P0.08) was not possible, I switched to (P0.02, P0.03, P0.11, and P0.13) - and we can also perform this experiment with the nRF52840-DK.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712650337790v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712649896111v2.png" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;[PA - TX] When running the heart rate experiment (`nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_hrs\pca10059`) and adding the PA/LNA control block, I could observe signals on the PA_PIN and LNA_PIN, indicating that GPIOTE and PPI were operational.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712649914052v3.png" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;[LNA - RX] When running the experiment with ble_connectivity (`nRF5_SDK_15.3.0_59ac345\examples\connectivity\ble_connectivity\pca10059\ser_s140_usb_hci`), I didn&amp;#39;t see any signals output on the PA_PIN and LNA_PIN.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Could you let me know if the softdevice in ble_connectivity is activated?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_connectivity.rar"&gt;devzone.nordicsemi.com/.../ble_5F00_connectivity.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2273.ble_5F00_app_5F00_hrs.rar"&gt;devzone.nordicsemi.com/.../2273.ble_5F00_app_5F00_hrs.rar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6740.pca10059.h"&gt;devzone.nordicsemi.com/.../6740.pca10059.h&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477692?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 03:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c11a97-35c8-4b08-8fd6-e0fdf906a9ee</guid><dc:creator>lammobile</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;When I enable LNA on the Fanstel dongle (which acts as the Center device with ble_connectivity firmware), if I place the peripheral device and the Fanstel dongle close to each other, it works well, with a sample rate of 256 data packets/second (= 128 ble packets/second - combining 2 data packets for transmission at once).&lt;/p&gt;
&lt;p&gt;However, when I move the device further away, the throughput gradually decreases, and even at a distance of 50cm, it disconnects.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Sample-rate.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are using the Fanstel dongle as a Bluetooth adapter compatible with pc-ble-driver, which provides C/C++ libraries for Bluetooth Low Energy nRF5 SoftDevice serialization. Rather than relying on built-in Bluetooth and OS parameters.&lt;/p&gt;
&lt;p&gt;According to this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_serialization.html"&gt;documentation&lt;/a&gt;, the Fanstel dongle acts as a Connectivity chip and is loaded with connectivity firmware (&amp;lt;InstallFolder&amp;gt;\examples\connectivity).&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712651444572v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here, in the original code, we only need to call the &lt;code&gt;nrf_sdh_enable_request&lt;/code&gt; function, but to initialize the PA/LNA, it needs to be called after the &lt;code&gt;ble_stack_init&lt;/code&gt; function, which we have added. We are unsure whether this is the correct flow and suitable for the application?&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifdef APP_PA_LNA

#define APP_BLE_CONN_CFG_TAG                1                                       /**&amp;lt; A tag identifying the SoftDevice BLE configuration. */
#define APP_BLE_OBSERVER_PRIO               3                                       /**&amp;lt; Application&amp;#39;s BLE observer priority. You shouldn&amp;#39;t need to modify this value. */


static void ble_stack_init(void)
{
    ret_code_t err_code;

    err_code = nrf_sdh_enable_request();
    APP_ERROR_CHECK(err_code);

    // Configure the BLE stack using the default settings.
    // Fetch the start address of the application RAM.
    uint32_t ram_start = 0;
    err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &amp;amp;ram_start);
    APP_ERROR_CHECK(err_code);

    // Enable BLE stack.
    err_code = nrf_sdh_ble_enable(&amp;amp;ram_start);
    APP_ERROR_CHECK(err_code);

    // Register a handler for BLE events.
    NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);
}
#endif 




int main(void) {


...

#ifdef APP_PA_LNA
  ble_stack_init();

  nrf_gpio_cfg_output(APP_CPS_PIN);
  nrf_gpio_cfg_output(APP_CHL_PIN);
  nrf_gpio_pin_set(APP_CHL_PIN);
  nrf_gpio_pin_clear(APP_CPS_PIN); //enable
  pa_lna_init(APP_PA_PIN, APP_LNA_PIN);
#else
    err_code = nrf_sdh_enable_request();
    APP_ERROR_CHECK(err_code);
#endif 
...
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477533?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 11:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b98d0cdb-d6fd-452d-9bd4-31f9a6f55604</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see, and when you enable the LNA you see more packets being dropped?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What rate of packets drop do you see when you enable the LNA? How much is the difference?&amp;nbsp;&lt;/p&gt;
[quote user="lammobile"]&lt;div&gt;&lt;strong&gt;2. I&amp;#39;m assuming the nRF52840 + LNA is on a custom board, can you share the design file (schematic + layout)?&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;It&amp;#39;s the &lt;a href="https://static1.squarespace.com/static/561459a2e4b0b39f5cefa12e/t/65b9449ab8e7ac453956a989/1706640540752/BT840X-p+Product+Specifications.pdf"&gt;Fanstel BT840X&lt;/a&gt;, unfortunately, we only have the documentation provided by the manufacturer here.&lt;/div&gt;[/quote]
&lt;p&gt;&amp;nbsp;SW wise I can&amp;#39;t think of anything that would cause a higher packet loss since you use PPI + GPIOTE to setup the radio events so that the PA/LNA is enabled automatically. Which is correct,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477437?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 02:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404ac19d-4113-46ef-8270-844560f63634</guid><dc:creator>lammobile</dc:creator><description>&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. How do you monitor the throughput?&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;I can verify throughput using the packet counter (for example, N packets/second). It ensures functionality with the bypass mode, but in LNA mode, I&amp;#39;m not receiving an adequate amount of requested packets.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. I&amp;#39;m assuming the nRF52840 + LNA is on a custom board, can you share the design file (schematic + layout)?&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;It&amp;#39;s the &lt;a href="https://static1.squarespace.com/static/561459a2e4b0b39f5cefa12e/t/65b9449ab8e7ac453956a989/1706640540752/BT840X-p+Product+Specifications.pdf"&gt;Fanstel BT840X&lt;/a&gt;, unfortunately, we only have the documentation provided by the manufacturer here.&lt;/div&gt;
&lt;div class="flex-1 overflow-hidden"&gt;
&lt;div class="react-scroll-to-bottom--css-hrcoa-79elbk h-full"&gt;
&lt;div class="react-scroll-to-bottom--css-hrcoa-1n7m0yu"&gt;
&lt;div class="flex flex-col text-sm pb-9"&gt;
&lt;div class="w-full text-token-text-primary" dir="auto" data-testid="conversation-turn-5"&gt;
&lt;div class="px-4 py-2 justify-center text-base md:gap-6 m-auto"&gt;
&lt;div&gt;
&lt;div class="relative flex w-full flex-col agent-turn"&gt;
&lt;div class="flex-col gap-1 md:gap-3"&gt;
&lt;div class="mt-1 flex gap-3 empty:hidden"&gt;
&lt;div&gt;
&lt;div class="flex"&gt;&lt;span class="" data-state="closed"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;3. I can make the case private first if you prefer it.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The public is okay with this ticket.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB840X Fanstel dongle (enable PA/LNA) with ble_connectivity does not guarantee throughput.</title><link>https://devzone.nordicsemi.com/thread/477287?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 11:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b05c14-a231-4abc-8783-f2275352e2df</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How do you monitor the throughput?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming the nRF52840 + LNA is on a custom board, can you share the design file (schematic + layout)?&lt;/p&gt;
&lt;p&gt;I can make the case private first if you prefer it.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>