<?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>Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485</link><description>I am trying to send and receive a response from a machine using Modbus (TTL to Rs485) and nrf51822. 
 Connections: R0 -&amp;gt; RX(P0.11) ,D1-&amp;gt;TX(p0.09), RE&amp;amp;DE-&amp;gt;P0.19,VCC-&amp;gt;5V 
 Just the same as to connect with Arduino (Have implemented with Arduino mega) 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2019 12:17:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485" /><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223886?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 12:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb8dc420-c260-49f6-badd-d92f58050580</guid><dc:creator>Nidhi</dc:creator><description>&lt;p&gt;There was a voltage mismatch. The code is working. I commented on ENABLE_LOOPBACK_TEST because I don&amp;#39;t need it. Also, RE&amp;amp;DE pins are enable pins for&amp;nbsp; Modbus (TTL to RS485).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223830?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 10:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8281144-ea6e-40fd-b162-d9c3bd24c599</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I took another look at your code, and noticed that&amp;nbsp;#ifndef ENABLE_LOOPBACK_TEST is commented out in your main loop. What exactly is happening with your loopback test? Also, I noticed you say&amp;nbsp;&lt;strong&gt;RE&amp;amp;DE-&amp;gt;P0.19.&lt;/strong&gt;&amp;nbsp;What are RE and DE?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any luck using a logic analyzer to see what&amp;#39;s going on on the UART lines? Also, what are you supplying the Modbus with? If this is 5V as well, there might be a voltage mismatch that occurs and causes this to happen.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223791?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 08:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7189a25e-9d9b-4f78-bb37-2646b47dbcbe</guid><dc:creator>Nidhi</dc:creator><description>&lt;p&gt;The problem is between Modbus(TTL to RS485) and NRF51. NRF doesn&amp;#39;t get a response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223365?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 14:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:517e672f-9a9e-4970-a84b-ece1dc1971b8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to confirm, the issue occurs somewhere between the computer and the nRF51, correct? Do you have&amp;nbsp;a logic analyzer available that you can use in order to get a scope of the communication? That should be able to tell us where exactly the issue occurs, as I&amp;#39;m not sure in which part of the communication the error occurs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223289?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 11:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69041941-b51b-444e-82ec-b307b916222b</guid><dc:creator>Nidhi</dc:creator><description>&lt;p&gt;I connected&amp;nbsp; PC toNRF51 to TTL to RS485(shown in the picture above) and further it to USB to RS485 converter and back to PC.&lt;/p&gt;
&lt;p&gt;PC-&amp;gt; NRF51-&amp;gt;TTL to RS485-&amp;gt;USB to RS485 -&amp;gt;PC&lt;/p&gt;
&lt;p&gt;using above code and connections.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Data is transmitted and can be seen on PC but can not be received back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223268?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 10:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957151db-9b09-4fa1-a936-8a317081b0d5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;How did you test that the USB to TTL worked? Are you able to make the nRF51 and RS485 communicate if you don&amp;#39;t transmit hex code? The RTS and CTS lines&amp;nbsp;will be necessary if you&amp;#39;re using hardware flow control in the UART communication.&lt;/p&gt;
&lt;p&gt;Please add any further information that might help to narrow down the cause of this issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223231?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 08:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba0e2eb-7bcd-4c7e-8c4d-99c66aaf0887</guid><dc:creator>Nidhi</dc:creator><description>&lt;p&gt;I tried the UART example with USB to TTL and its working fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Connections as per I have written are correct, I don&amp;#39;t know if I need to connect RTS and CTS. The problem is NRF51 is not communicating with RS485, I am sending hex code but not getting a reply. I am pretty sure I am not messing connections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223219?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 08:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbfbdaf7-ef3e-4897-bc21-e9d98ce542fa</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you try describing your issue in more detail? Please make sure that the TX and RX pins are connected correctly to both devices. If you&amp;#39;re not sure about your connections, please share your hardware setup (schematics and a high-res picture of your setup) and I will take a look.&lt;/p&gt;
&lt;p&gt;I suggest you try to get it working with our &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.3.0%2Fuart_example.html&amp;amp;cp=6_5_8_4_5_40"&gt;UART example&lt;/a&gt; before making any changes to the code. Just to see that you&amp;#39;re able to get it running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223158?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 18:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4d887e-e2ae-4e38-8342-d4d32b2cbf9e</guid><dc:creator>Nidhi</dc:creator><description>&lt;p&gt;Tried, only 3.3V supply...not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51822 with Modbus(TTL to RS485)</title><link>https://devzone.nordicsemi.com/thread/223042?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 12:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca512dab-33fe-4301-bf43-783ca171e38a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please note that according to the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.3.pdf?cp=5_4_0_0"&gt;nRF51822 product specification&lt;/a&gt;, the nRF51822 will not accept more than 3.6V. Please try reducing the voltage to 3.6V or lower, and see what happens.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>