<?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>UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32713/uart-with-nrf52832-and-fona-808</link><description>Hello, 
 I am attempting to achieve UART Serial Communication with the ADAFRUIT FONA 808 Board, this has a SIM808 Cellular Modem. 
 I have attempted to re-purpose the examples/peripheral/uart example in SDK 14.2 to no avail. I also tried to re-purpose</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Apr 2018 19:53:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32713/uart-with-nrf52832-and-fona-808" /><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/126538?ContentTypeID=1</link><pubDate>Mon, 02 Apr 2018 19:53:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d1ac9b1-658b-47f0-b067-5d64e0e40984</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Good news!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/126537?ContentTypeID=1</link><pubDate>Mon, 02 Apr 2018 19:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db28413-aa96-42f9-91b6-0c4f03d653fe</guid><dc:creator>suprtigr</dc:creator><description>&lt;p&gt;It ended up being a combination of things, firstly, and the main thing, I had the TX and RX pins backwards. Found this out utilizing a TTL-USB console cable. Secondly, I was sending the wrong data for the AT command. Thirdly, and I am not sure why this was an issue, sending CR as 0xD was causing issues. I sent it as the int equivalent 13 and it fixed it. So I have consistent comms with my modem now! Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/125884?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 00:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f9e82e-c453-4d90-a366-c5a0766a7620</guid><dc:creator>suprtigr</dc:creator><description>&lt;p&gt;I cant believe that I missed that oversight, I guess that is what I get for not checking what I was getting out of a ASCII-hex converter. I changed my code accordingly and simplified it some. I still haven&amp;#39;t been able to communicate let alone get any data into my_rx_buf buffer. Upon boot it should send&amp;nbsp;00 49 49 49 49 FF FF FF FF but I don&amp;#39;t receive that either.&lt;/p&gt;
&lt;p&gt;Edit-Upon further reading it seems that the modem utilizes IRA initially for its communication. Not so bad because ascii is very much similar. However, it made me realize that I might be sending 8bits of data per character and not 7. Would I be correct in this assumption? I saw an Adafruit example that utilized putty with 8 data bit, no parity 1 stop and I am not sure what configuration to use. Also, I added my updated code to original post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/125859?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 02:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d073bac-5eb6-468c-8389-0450a62cba93</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Ah, you will love this answer! I didn&amp;#39;t pick up on the fact you were using the modem to test, so of course you are sending &amp;quot;AT&amp;quot; and expecting &amp;quot;Ok&amp;quot;. Only &amp;#39;A&amp;#39; &amp;#39;T&amp;#39; is not&amp;nbsp;(uint8_t)0x65),((uint8_t)0x84). Remove the &amp;quot;0x&amp;quot; prefix in each case, or infinitely better simply use &amp;#39;A&amp;#39; instead of&amp;nbsp;(uint8_t)0x65) which should in any case have been&amp;nbsp;(uint8_t)0x41) or&amp;nbsp;(uint8_t)65).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/125858?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 00:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d91a5df-db15-4fde-86a6-d86b9faf340d</guid><dc:creator>suprtigr</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Just above my main method UART_HWFC is defined to APP_UART_FLOW_CONTROL_DISABLED. So it definitely should be disabled in my code. I double checked that the pin numbers are correct. They are defined in the pca10040.h file and I am sure that isn&amp;#39;t the issue. One of the ideas I had was to ensure that the data transferred included a CR byte, as this is what the Modem is looking for at the end of the command, but it hadn&amp;#39;t fixed my issue either.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/125857?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 00:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26333376-0bff-4c91-8bb7-0137f45789c3</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Might I suggest you disable hardware flow control while getting started? 9600 is so slow it shouldn&amp;#39;t be required; if the modem doesn&amp;#39;t happen to match HWFC operation then data transfer is blocked. I also suggest the more readable form thus:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief  Function for initializing the UART module.
 */
/**@snippet [UART Initialization] */
void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
        .baud_rate    = NRF_UART_BAUDRATE_115200
    };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}
/**@snippet [UART Initialization] */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t mention pin numbers, but these of course have to match your hardware in case that was overlooked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART with nRF52832 and FONA 808</title><link>https://devzone.nordicsemi.com/thread/125856?ContentTypeID=1</link><pubDate>Sat, 24 Mar 2018 22:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa405ed8-b5f9-4db9-86e1-22906f2072c9</guid><dc:creator>suprtigr</dc:creator><description>&lt;p&gt;I can&amp;#39;t verify if it is sending out what is in the buffer either.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>