<?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>How to differentiate between two slave devices connected over same TWI bus.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48920/how-to-differentiate-between-two-slave-devices-connected-over-same-twi-bus</link><description>Hello, 
 
 I am using nRF52832 DK PCA10040 v1.2.4, SDK_15.3.0, S132 SoftDevice and Segger for flashing the image. I am using ‘ble_app_blinky’. 
 
 Currently with one device connected over TWI is working fine. But I am going to have one more device on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2019 13:36:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48920/how-to-differentiate-between-two-slave-devices-connected-over-same-twi-bus" /><item><title>RE: How to differentiate between two slave devices connected over same TWI bus.</title><link>https://devzone.nordicsemi.com/thread/197875?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 13:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa553e63-3899-40ac-827f-fee210537a57</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to differentiate between two slave devices connected over same TWI bus.</title><link>https://devzone.nordicsemi.com/thread/194401?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 13:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e7692c4-93ee-4829-824d-b20cd83a0705</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The &lt;strong&gt;Slave Address&lt;/strong&gt; is what distinguishes devices on the bus.&lt;/p&gt;
[quote userid="78085" url="~/f/nordic-q-a/48920/how-to-differentiate-between-two-slave-devices-connected-over-same-twi-bus"]do I need to set a flag to differentiate at application level[/quote]
&lt;p&gt;You can only ever have one transaction in progress at any one time on any one I2C bus - so, when you start the transaction, you need to &amp;quot;remember&amp;quot; which Slave you addressed ...&lt;/p&gt;
&lt;p&gt;Or look at the TWI Transaction Manager:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_nrf_twi_mngr.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_nrf_twi_mngr.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>