<?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>something wrong SPIS communication...</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95236/something-wrong-spis-communication</link><description>Hello, 
 My project is displaying ADC datas, Real-time based. 
 ADC : ADS7054. 
 SDK : 17.1.0 nRF5 SDK 
 softdevice : s140 
 chip : nrf52840 
 Master Boards SPI Timing : (below images) ** 
 
 
 
 I use SPI packet size 8bit. 
 2*packet define 1ADC data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Dec 2022 13:13:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95236/something-wrong-spis-communication" /><item><title>RE: something wrong SPIS communication...</title><link>https://devzone.nordicsemi.com/thread/402680?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 13:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c006d74-8a24-47f5-b7b6-03bf67088cfa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The max. throughput you can get with the Softdevice is shown in the specification here:&amp;nbsp;&lt;a title="Bluetooth Low Energy data throughput" href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/ble_data_throughput/ble_data_throughput.html?cp=4_7_4_0_16"&gt;Bluetooth Low Energy data throughput.&lt;/a&gt;&amp;nbsp;Although this is likely to be limited by your central (PC).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does the data packet length get increased in your&amp;nbsp;gatt_evt_handler() callback after the connection is established?&amp;nbsp;In any case,&amp;nbsp;the throughput will become better if you can fill the full packet length (m_ble_nus_max_data_len) with multiple ADC samples instead of sending only one sample in&amp;nbsp;each notification packet.&lt;/p&gt;
&lt;p&gt;You may also want to increase the&amp;nbsp;hvn_tx_queue_size via the&amp;nbsp;sd_ble_cfg_set() API in ble_stack_init(). This will allow you to queue up more notification packets before&amp;nbsp;ble_nus_data_send()&amp;nbsp;starts returning NRF_ERROR_NO_MEM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: something wrong SPIS communication...</title><link>https://devzone.nordicsemi.com/thread/402673?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 12:50:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:068877bc-bd34-4dc5-bb3b-c3d023088ae6</guid><dc:creator>KorJH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am check with this code,&lt;/p&gt;
&lt;p&gt;I found many losses in BLE.&lt;/p&gt;
&lt;p&gt;How can i increase BLE throghput?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: something wrong SPIS communication...</title><link>https://devzone.nordicsemi.com/thread/402664?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 11:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ac97294-10f1-430e-96b2-ffac0a9cad7a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The first thing I would suggest you do is to check the return code from ble_nus_data_send() to&amp;nbsp;find out if your Bluetooth link is able to keep up with the sample rate.&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = ble_nus_data_send(..);
if (err_code != NRF_SUCCESS) 
{
    NRF_LOG_INFO(&amp;quot;Failed to send notification. (0x%x)&amp;quot;, err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>