<?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>nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99922/nrf9160-working-with-nrf-connect-sdk-2-3-0-need-to-change-slave-address-of-vl53l1x-sensor</link><description>Hi all, 
 We are working on a project that involves nRF9160 interfacing with 3 VL53L1X ToF sensors; the interface used here is I2C. We are using nRF Connect SDK 2.3.0 in visual code. 
 I am adding the .overlay file here for better understanding. 
 
 As</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jun 2023 09:02:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99922/nrf9160-working-with-nrf-connect-sdk-2-3-0-need-to-change-slave-address-of-vl53l1x-sensor" /><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/428652?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 09:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e848dbf0-8d5e-45f4-b543-939226bf3383</guid><dc:creator>Hakon</dc:creator><description>[quote user="sunilhalvi"]Now, If I want to change slave address of &amp;#39;vl53l1xdev1&amp;#39;(a i2c_dt_spec object), I should post a question in ST community?[/quote]
&lt;p&gt;Yes, you can try that. I can&amp;#39;t promise that they will know the solution, but you should still try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/428477?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 13:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29afe77d-94c0-432e-9096-45da677fafb6</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;Hi Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am little confused here, I have declared new node in .overlay file like shown below&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;  &amp;amp;i2c2{
      vl53l1x: vl53l1x@30{
            compatible = &amp;quot;st,vl53l1x&amp;quot;;
            reg = &amp;lt; 0x30 &amp;gt;;
            label = &amp;quot;MYSENSOR2&amp;quot;;        
            int-gpios= &amp;lt;&amp;amp;gpio0 13 (GPIO_ACTIVE_HIGH)&amp;gt;;        
        };  
    }&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;And, I have declared a variable like shown below&lt;/p&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;const struct device *const Vl53l1xdev1 = DEVICE_DT_GET(DT_NODELABEL(vl53l1x));&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Now, If I want to change slave address of &amp;#39;vl53l1xdev1&amp;#39;(a i2c_dt_spec object), I should post a question in ST community?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/428447?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 12:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04aa5c5b-3e72-4635-bb0d-c6f0ed2a7924</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;This is not a driver provided by Nordic. It is a device driver developed and maintained by the ST software team. The driver has just been ported to Zephyr, which is part of NCS. You will most likely get an answer to your question if you contact the &lt;a href="https://community.st.com/s/"&gt;ST community&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/428417?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 11:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:133efcd0-a5e6-470d-ab70-593e8a7338eb</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please reply to my queries as early as possible. If you can just confirm if nRF connect SDK and VL53L1X driver is capable of changing I2C slave address during run time will be very helpful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/428158?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 11:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0840f05-7b98-4e31-805e-7765a116013e</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;&lt;span&gt;I have VL53L1X sensor driver that I got from Nordic&amp;#39;s git repo. My question is, how to change the slave address of the vl53l1x sensor during the run and continue communicating with it with the new slave address?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/428151?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 11:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74edd9ba-1828-47e4-bae2-0315750da1f8</guid><dc:creator>Hakon</dc:creator><description>[quote user="sunilhalvi"]I use VL53L1X sensor driver provided Nordic semiconductor.[/quote]
&lt;p&gt;Nordic has not implemented this driver. Have you tried asking the STM community about this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/427023?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 16:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fcae049-8f92-4ee3-a3ae-685e1d2d64e0</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;I use VL53L1X sensor driver provided Nordic semiconductor. This driver has a source file called vl53l1x.c. In this source file, a function is defined for initializing sensor here is its signature&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;vl53l1x_init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The &amp;#39;dev&amp;#39; parameter in above function is used for I2C communication with sensor. It holds the slave address that we define in .overlay file.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I am referring to this structure object. I need to change the slave address of vl53l1x sensor during runtime and update the same in this object. Or, is there a way vl53l1x driver updates the slave address during run time.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/427013?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 15:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d667c9-6ab2-4441-baa5-8476dce8152f</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Now, we are looking for an API function for our nRF9160 to&amp;nbsp;update the slave address in the I2C handler.&amp;nbsp;[/quote]
&lt;p&gt;which &amp;quot;I2C handler&amp;quot; are you referring to? Are you talking about the nrfx driver?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 working with nRF Connect SDK 2.3.0. Need to change slave address of VL53L1X sensor</title><link>https://devzone.nordicsemi.com/thread/426357?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 15:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3faaca80-225d-4416-b1b9-33ebdca23994</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Hi,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;We are short-staffed this week due to Public Holidays in Norway. We will be back on Monday 22nd and hope to be able to answer all incoming requests within a couple of days, depending on the backlog. I am sorry for the inconvenience.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Best regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>