<?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>Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37629/use-of-twi_manager-with-ant</link><description>I am using the TWI manager to schedule transactions with a number of sensors, over two seprate twi instances, and then sending that data over Ant. 
 The twi manager scheduling is done on timer which fires every 10ms, We are sending data over Ant at 80Hz</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2019 06:49:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37629/use-of-twi_manager-with-ant" /><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/180156?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 06:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:008ce8e9-3443-4db5-91fd-61d82c2e0fcb</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;i have isolated it to a hardware issue.&amp;nbsp; See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44485/twi-manager-interference-with-ant"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44485/twi-manager-interference-with-ant&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/146882?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 06:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33215217-0483-4d82-8275-b704a80330c4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="bgarrood"]Is it possible that I am just asking too much of the chip?&amp;nbsp;[/quote]
&lt;p&gt;This should work.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/146572?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 16:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134731ec-0a5d-4a4a-b34a-92af30609512</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Understood.&amp;nbsp; Thank you Kenneth.&lt;/p&gt;
&lt;p&gt;Is it possible that I am just asking too much of the chip?&amp;nbsp; I am running the twi sampling loop at 100Hz, and streaming over ant at 80Hz (i.e. 80 Ant packets per second).&lt;/p&gt;
&lt;p&gt;Otherwise I will try looking at the DK.&lt;/p&gt;
&lt;p&gt;I have followed all guidelines on circuit layout etc..&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/145151?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 13:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c04c13-f6a4-473e-977b-ad51424dfcbd</guid><dc:creator>Kenneth</dc:creator><description>[quote user="bgarrood"]Does the TWI read take place entirely in hardware when using the twi manager schedule method?&amp;nbsp; [/quote]
&lt;p&gt;Yes and no. There is no dependency or resource conflicts between the radio and twi peripherals that may explain your issue, exception is the GPIO usage restrictions&amp;quot;-chapter in product specifications. This means that a twi transfer may occur during a radio event with no issue. That said, the twi transfer will create some noise, and if for instance you are using a module, it is especially important that you have followed the guidelines from the module manufacturer in terms of placement, grounding, and power routing, to prevent digital noise to influence analog performance. Using a nRF52-DK for comparison may be a good idea to isolate if the problem is hardware related.&lt;/p&gt;
&lt;p&gt;It is possible for&amp;nbsp;software to prevent the softdevice stack to execute as planned, either by disable interrupts, or the twi transfer is executed from an interrupt with high priority.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/145118?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 12:11:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72cb2b6e-0dd2-47fc-a596-c109abec1939</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;No, I am not (as far as I am aware) disabling interrupts.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does the TWI read take place entirely in hardware when using the twi manager schedule method?&amp;nbsp; Is there any way it can block if reading is happening at the same time as ant radio?&lt;/p&gt;
&lt;p&gt;Range makes no difference - whether it is right next to the receiver or 1m away I get the same drop rate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/145029?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 07:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc2566ad-6092-42da-be51-8e3c892a792f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Barney,&lt;/p&gt;
&lt;p&gt;&amp;quot;Previously I just used twi master in blocking mode and that was causing big dropout issues due to the twi blocking the ant events.&amp;quot;&lt;/p&gt;
&lt;p&gt;That should not be possible, because all ANT radio events are occurring on higher interrupt priority, are you somehow disabling all interrupts here?&lt;/p&gt;
&lt;p&gt;What kind of range are you experiencing here?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/144977?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 14:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52917230-20e9-41ce-b195-e8839045833e</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thank you for that.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using my own PCB where the nrf52 is on a dynastream D52M D2M8IA board.&lt;/p&gt;
&lt;p&gt;I use pins 2,3,4,5 for the two TWI instances, in order to steer clear of the&amp;nbsp;radio.&amp;nbsp; I am using the internal pull-ups on the nrf52 chip.&lt;/p&gt;
&lt;p&gt;I believe the issue is software rather than hardware.&amp;nbsp; Would yuo expect this sort of problem using twi manager with ant?&amp;nbsp; Previously I just used twi master in blocking mode and that was causing big dropout issues due to the twi blocking the ant events.&lt;/p&gt;
&lt;p&gt;Thank you&lt;br /&gt;Barney&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of twi_manager with Ant</title><link>https://devzone.nordicsemi.com/thread/144972?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 14:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b7f8a90-8189-4e36-b4d9-1f6e10808f22</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is this using your own PCB&amp;nbsp;or an nRF52-DK? What gpio# have you used for the TWI instances? What pull up resistors have you used?&lt;/p&gt;
&lt;p&gt;My first assumption is that if you are using pins close to the ANT pin, then this may affect the radio. For instance check out (&amp;quot;GPIO usage restrictions&amp;quot;-chapter in product specifications):&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pin.html?cp=2_1_0_3_2#concept_rfc_x1z_2q"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pin.html?cp=2_1_0_3_2#concept_rfc_x1z_2q&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>