<?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>Modbus(RS485) communication using UART1 on Nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91146/modbus-rs485-communication-using-uart1-on-nrf9160</link><description>Hi, I am working on nRF Connect sdk version1.9.0. I am using Zephyr Modbus Server and Client Example to setup communication between two nRF9160dk . i have 2 Arduino shield( https://www.digikey.ie/en/products/detail/dfrobot/DFR0259/6588575 ) to convert</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Sep 2022 07:16:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91146/modbus-rs485-communication-using-uart1-on-nrf9160" /><item><title>RE: Modbus(RS485) communication using UART1 on Nrf9160</title><link>https://devzone.nordicsemi.com/thread/384254?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 07:16:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c8eec65-9824-47f2-8a52-67094c0e0279</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Waqar Ahmed"]Problem is resolved, I&amp;nbsp;had successfully&amp;nbsp;established the Modbus communication on nrf9160.&lt;br /&gt;[/quote]
&lt;p&gt;Great to hear!&lt;/p&gt;
&lt;p&gt;Thank you for sharing your solution.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modbus(RS485) communication using UART1 on Nrf9160</title><link>https://devzone.nordicsemi.com/thread/384145?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 13:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b37d03e-f168-4625-a82f-194d304f916f</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Problem is resolved, I&amp;nbsp;had successfully&amp;nbsp;established the Modbus communication on nrf9160.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The Reason for the error:&lt;/p&gt;
&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48478/custom-board-based-on-nrf9160-gpio-pin-mapping-problem" rel="noopener noreferrer" target="_blank" data-saferedirecturl="https://www.google.com/url?q=https://devzone.nordicsemi.com/f/nordic-q-a/48478/custom-board-based-on-nrf9160-gpio-pin-mapping-problem&amp;amp;source=gmail&amp;amp;ust=1662037088026000&amp;amp;usg=AOvVaw3JLUnxD-hsl_fysQatk83v"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48478/custom-board-based-on-nrf9160-gpio-pin-mapping-problem&lt;/a&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;div dir="auto"&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div dir="auto"&gt;
&lt;div&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64596/some-uart-registers-don-t-change-after-changing-in-overlay"&gt;Some UART registers don&amp;#39;t change after changing in .overlay&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;and Secondly:&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;in our custom board we are using separate enable /disable signal for RX/TX communication.&lt;br /&gt;so its difference of time due to which communication is not enabled on time.&amp;nbsp;&lt;br /&gt;so after analyzing the signal on communication on logic analyzer and then sync the communication.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modbus(RS485) communication using UART1 on Nrf9160</title><link>https://devzone.nordicsemi.com/thread/384131?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 12:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd548cd7-9161-495a-9e43-12c668576a5b</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello Waqar,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I have been reading up on the modbus samples to try to help you along. The function casting the error is &lt;a href="https://docs.zephyrproject.org/2.7.0/reference/modbus/index.html#c.modbus_write_holding_regs"&gt;&lt;span style="font-family:courier new, courier;"&gt;modbus_write_holding_regs&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:inherit;"&gt; which has a two options for the reason for the error: no device (ENODEV) and no buffer space (ENOBUFS). Finding which one is causing the error will help you move forward. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Setting up the UART1 in the devicetree or overlay for your board and making sure that the status is &amp;quot;okay&amp;quot; is the way to enable using UART1.&lt;/span&gt;&lt;/p&gt;
[quote user="Waqar Ahmed"]&lt;p&gt;on my custom board the tx and Rx pins &amp;nbsp;numbers are different.&lt;/p&gt;
&lt;p&gt;i have makes changes accordingly.&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Have you made the changes in a .dts or .overlay file? Sharing your code may also be helpful. This ticket can be made private if your code contains sensitive information. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Maria&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modbus(RS485) communication using UART1 on Nrf9160</title><link>https://devzone.nordicsemi.com/thread/383133?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 19:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820690a0-b20a-4a63-9f76-bf1c004d305c</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Yes,&lt;/p&gt;
&lt;p&gt;for the above problem i found a way there is bug in zephyr api.&lt;/p&gt;
&lt;p&gt;At no parity mode. Zephyr use 2 stop bits.that y i am getting this error.&lt;/p&gt;
&lt;p&gt;with nrf9160 dk i am able to communicate with modbus server.&lt;/p&gt;
&lt;p&gt;now i am facing an other issue which is related to UART1 on my custom board.&lt;/p&gt;
&lt;p&gt;i am getting the same error.&lt;/p&gt;
&lt;p&gt;on my custom board the tx and Rx pins &amp;nbsp;numbers are different.&lt;/p&gt;
&lt;p&gt;i have makes changes accordingly.&lt;/p&gt;
&lt;p&gt;but i am unable to communicate with modbus.&lt;/p&gt;
&lt;p&gt;please guide regarding to UART1 setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modbus(RS485) communication using UART1 on Nrf9160</title><link>https://devzone.nordicsemi.com/thread/382449?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 11:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b628b4-44e5-4ee4-8819-bacc36f69d10</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello Waqar,&lt;/p&gt;
&lt;p&gt;The Zephyr Project team or community should be able to help you. Contact information is found on &lt;a href="https://www.zephyrproject.org/contact-us/"&gt;their website&lt;/a&gt;. I recommend that you post your issue in their Discord server.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>