<?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>ble and peripheral interfaces (such as spim and twim) run at the same time, causing serious packet loss of transparent ble data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101746/ble-and-peripheral-interfaces-such-as-spim-and-twim-run-at-the-same-time-causing-serious-packet-loss-of-transparent-ble-data</link><description>I collected the data using spim of nrf52840 and then sent the data to central via ble. I was sending packets at 256hz, 200 bytes per packet, and spim was running like crazy. In this case, if there are obstacles in the transmission path, the data will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jul 2023 14:02:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101746/ble-and-peripheral-interfaces-such-as-spim-and-twim-run-at-the-same-time-causing-serious-packet-loss-of-transparent-ble-data" /><item><title>RE: ble and peripheral interfaces (such as spim and twim) run at the same time, causing serious packet loss of transparent ble data</title><link>https://devzone.nordicsemi.com/thread/436016?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 14:02:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce383bb-90f7-475c-8819-66e0f19d6c50</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you elaborate on what data loss you are seeing?&lt;/p&gt;
&lt;p&gt;Is the data loss happening over BLE or over SPI?&lt;/p&gt;
&lt;p&gt;Is the BLE link configured to handle the amount of data you are sending? 256 packets a second at 200byte per packet requires multiple packets to be sent each connection interval.&lt;/p&gt;
&lt;p&gt;Can you provide a sniffer trace of the on-air BLE activity?&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: ble and peripheral interfaces (such as spim and twim) run at the same time, causing serious packet loss of transparent ble data</title><link>https://devzone.nordicsemi.com/thread/435902?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 09:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49d8848f-a70c-4800-bdca-fb9a78a782ee</guid><dc:creator>hananddong</dc:creator><description>&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/pastedimage1689152057757v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hi Ketiljo；&lt;/p&gt;
&lt;p&gt;The red mark is the spi pin I used in the figure above, and the speed of the spi is set to 8Mhz.&amp;nbsp;&amp;nbsp;&lt;span&gt;pins marked &amp;quot;&lt;/span&gt;&lt;span&gt;Standard drive, low frequency I/O only&amp;quot; is not used for high speed in my code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My main problem is sending too much data using ble and then using too much cpu resources in loop (without rtos). Although the asynchronous spi (spi with easydma -&amp;gt; spim) is used, it still causes serious packet loss when sending data using ble.&lt;/p&gt;
&lt;p&gt;Since I don&amp;#39;t know much about the internal mechanism of the softdevice, I want to know what is the root cause of ble packet loss? For example, due to the large amount of data, there is less opportunity to resend data in the softdevice, and then a large number of spi calls occupy the time of data sending in the softdevie？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble and peripheral interfaces (such as spim and twim) run at the same time, causing serious packet loss of transparent ble data</title><link>https://devzone.nordicsemi.com/thread/435726?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 12:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e45420d-c6aa-4078-a54b-d41e447f7b27</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;What pins do you have the SPI connected to? Only pins not marked &amp;quot;&lt;span&gt;Standard drive, low frequency I/O only&amp;quot; can be used for SPI when the radio is use. See&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html#aqfn73"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html#aqfn73&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>