<?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>Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45845/data-transmission-using-spi-interface-in-nrf52832</link><description>Hello everyone! 
 I have been working on getting data from ADS1299 ( ExG bio-signal sensing). I successfully got data from this IC using STM32F407VG (Cortex M4) and transmitted the data to PC via serial communication. I intend to use nRF52832 so that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Apr 2019 19:18:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45845/data-transmission-using-spi-interface-in-nrf52832" /><item><title>RE: Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/thread/180605?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 19:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427bb2a2-4f74-4207-b562-e2f25c7ecc2e</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Yeah, will do.&lt;/p&gt;
&lt;p&gt;Thanks for your reply, Andy. How about your project? I&amp;#39;m also curious about it. Btw, here is my email (lengoctai2010@gmail.com). It would be great if we can have further discussion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/thread/180603?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 19:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a86a499-9422-4259-afee-32825abf2a29</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;The service is called UART but it&amp;rsquo;s not UART. You need to check the structure of a BLE packet.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/thread/180601?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 18:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af432476-368f-49d9-9fef-82e454c02eef</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;What a coincidence!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I try to develop a system for our Lab research about heart regeneration ability of Zebrafish.&lt;/p&gt;
&lt;p&gt;Just a quick search about UART, each package theoretically contains both data bits and start/stop bits (&lt;a href="http://www.circuitbasics.com/basics-uart-communication/"&gt;http://www.circuitbasics.com/basics-uart-communication/&lt;/a&gt;). Actually, I added two these bits so that I can calculate an estimated baudrate supposed to require for my application.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/thread/180599?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 18:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1da18b1-8ecb-4002-8ebc-e017a40573db</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;You don&amp;rsquo;t need start/stop bits. Where did you get that from?&lt;/p&gt;
&lt;p&gt;Anyway, may I ask about the product you&amp;rsquo;re developing? I&amp;rsquo;m working on a similar project, also targeted to animals. I&amp;rsquo;m curious.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/thread/180598?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 17:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ec76e9b-81cd-454f-a8a6-8708c1068d88</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Thanks a lot Andy!&lt;/p&gt;
&lt;p&gt;For question (2), sorry for my mistake. It should be 150000 &lt;strong&gt;bits/second&lt;/strong&gt;. I came up with this number as I intend to use NUS BLE service which resembles the UART communication (every serial data frame including a start bit and a stop bit is about 10 bits), thus it would be (30 bytes for 8 channels * 10 bits * 500 samples/second = 1500000 bits/second).&lt;/p&gt;
&lt;p&gt;Yes. I try to have a system with high throughput. Since my system is for bio-signal recording in animals, I may think whether mobile app is a good platform to send the data or using PC for this system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transmission using SPI interface in nRF52832</title><link>https://devzone.nordicsemi.com/thread/180582?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 08:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:464a502a-f666-4196-bbb5-60961bb5ff6d</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I&amp;#39;m working on a project where I get ECG samples from an ADS1292, but I get only 500 samples from just one channel.&lt;/p&gt;
&lt;p&gt;1) My approach to this problem was to put all the data in a ring buffer. I&amp;#39;m using the nrf_queue library to buffer the samples, and I start sending the data over notifications once I have buffered 500 samples (once a second basically). At this point I start sending notfications as fast as possible. There are loads of threads on how to achieve this by queueing as many notifications as possible and then reacting on BLE_GATTS_EVT_HVN_TX_COMPLETE events.&lt;/p&gt;
&lt;p&gt;Your current approach won&amp;#39;t ever work. You won&amp;#39;t be able to send notifications each time you get a sample from the sensor, even if you lower the connection interval to the minimum (7.5 ms). You need to increase the ATT MTU size and make use of the data length extension feature to achieve this. Take a look at the throughput example if you need some pointers.&lt;/p&gt;
&lt;p&gt;2) How did you come up with that number? You need to send (3 bytes/channel * 8 channels * 500 samples/second) = 12000 bytes/s, which is totally achievable. You might run into problems with iPhones though: in my experience they force the connection interval to 30 ms, but this is something that you need to test.&lt;/p&gt;
&lt;p&gt;If you run into problems, start optimizing your data frames: do you &lt;strong&gt;really&lt;/strong&gt; need to sample all 8 channels?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>