<?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>What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63794/what-uart-example-to-study-to-create-rs485-on-a-fanstel-bt832-module-i-need-to-assign-tx-rx-dir-on-specific-gpio-pins</link><description>hi, 
 
 The Fanstel BT832 has a nRF52832. It has TX on P11, RX on P12 for standard uart. I need however rs485 and so need to add a DIR (output) pin. P11 and P12 are not on the Fanstel castellated pins so I want to re-assing TX and RX as well. I already</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2020 16:13:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63794/what-uart-example-to-study-to-create-rs485-on-a-fanstel-bt832-module-i-need-to-assign-tx-rx-dir-on-specific-gpio-pins" /><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/274945?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 16:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e12517e7-86bc-4a21-9cfc-cced4518ee1a</guid><dc:creator>Daniel Chisholm</dc:creator><description>&lt;p&gt;I don&amp;#39;t know the direct answer to your question, but why not try it out on your nRF52-DK, and see if OTA is then broken or still works?&amp;nbsp; If OTA then &amp;quot;breaks&amp;quot;, you can always recover the DK.&amp;nbsp;&amp;nbsp;Only program the Fanstel once you are sure it works on the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/274941?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 15:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74d4bdfe-3a67-4da4-a02f-d8653ded9ff3</guid><dc:creator>peterverkaik</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I have updated the ble_uart example for rs485.&lt;/p&gt;
&lt;p&gt;Do I need to add anything so I can use OverTheAir again once this&lt;/p&gt;
&lt;p&gt;program is programmed into the Fanstel module.&lt;/p&gt;
&lt;p&gt;The Fanstel module firmware supports OTA and that is the only means to program it&lt;/p&gt;
&lt;p&gt;(no acces&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/273732?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 12:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:212e932c-2579-4761-8ceb-2a9b1355eaca</guid><dc:creator>peterverkaik</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I have updated the ble_uart example for rs485.&lt;/p&gt;
&lt;p&gt;Do I need to add anything so I can use OverTheAir again once this&lt;/p&gt;
&lt;p&gt;program is programmed into the Fanstel module.&lt;/p&gt;
&lt;p&gt;The Fanstel module firmware supports OTA and that is the only means to program it&lt;/p&gt;
&lt;p&gt;(no access to other pins)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I attach a zip file with my updated ble_uart code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/273713?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 11:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853852d8-4ca6-43bc-8a8c-d2ee92262545</guid><dc:creator>peterverkaik</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I have updated the ble_uart example for rs485.&lt;/p&gt;
&lt;p&gt;Do I need to add anything so I can use OverTheAir again once this&lt;/p&gt;
&lt;p&gt;program is programmed into the Fanstel module.&lt;/p&gt;
&lt;p&gt;The Fanstel module firmware supports OTA and that is the only means to program it&lt;/p&gt;
&lt;p&gt;(no access to other pins)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I attach a zip file with my updated ble_uart code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/260213?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 16:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d463f3-498d-4e7e-b698-30413ff0cc02</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Here&amp;#39;s the basics of what you need; please note I can&amp;#39;t help in detail. First load the uart demo project, such as&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_nus_eval.html"&gt;nus_eval&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Define any spare output pin to control the RS485 Drive Enable signal
#define RS485_DE 4
// This pin has to be set as an output pin

 // Enable RS485 differential driver prior to transmitting a message over the UART
 nrf_gpio_pin_set(RS485_DE);

 // In the Uart handler find this case statement and add the driver disable
 case APP_UART_TX_EMPTY: // Event UART has completed transmission of all available data in the TX FIFO
  // Disable RS485 differential driver
  nrf_gpio_pin_clear(RS485_DE);
  break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Choose an output pin to control the RS485 direction and set before transmit then clear after the transmit is empty. This is using Nordic drivers, but you can also use low-level uart registers.&lt;/p&gt;
&lt;p&gt;The pca10040 board can be used to test, or test directly on the Fanstel module; A RS485 interface chip is required to generate the differential signals; these are not available on the Fanstel module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/260138?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 12:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c9f653-5d0d-4ff2-8515-5549771b5a27</guid><dc:creator>peterverkaik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I understand I can change the pins, that is what I need. What I don&amp;#39;t have&lt;br /&gt;is the right source for the currently (shipped) firmware of the Fanstel module.&lt;br /&gt;I asked Fanstel but have no reply yet. They do provide hexes for the module&lt;br /&gt;but I need a source so I can implement rs485. I noticed several uart examples&lt;br /&gt;in the SDK. Which of these would be best to use so I can implement RS485, rebuild&lt;br /&gt;with SEGGER and use OTA to reprogram the Fanstel module?&lt;br /&gt;I am a novice to ARM and Bluetooth so I can&amp;#39;t figure out which example&lt;br /&gt;I need.&lt;/p&gt;
&lt;p&gt;regards peter&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What (uart) example to study to create RS485 on  a Fanstel BT832 module? I need to assign TX, RX, DIR on specific GPIO pins.</title><link>https://devzone.nordicsemi.com/thread/260128?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 12:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eecad9b-92ca-41aa-8d01-6e2502f9f942</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Not sure if I understand your query correctly.&lt;/p&gt;
&lt;p&gt;You can use any GPIO pin available to connect to TX/RX and set the directions accordingly.&amp;nbsp;&lt;/p&gt;
[quote user=""]The Fanstel BT832 has a nRF52832. It has TX on P11, RX on P12[/quote]
&lt;p&gt;you can change the pin numbers in the uart_pca10040 example to the pin numbers that suits your design. nRF52 does not have any hardcoded pin numbers for its peripherals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>