<?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>Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56798/sending-the-message-which-includes-ctrl-z-0x1a-character-over-uart</link><description>Hi Devzone! 
 I&amp;#39;m using LM5(BG96) LTE modem to publish the mqtt message. 
 When I test it at PC terminal, It works very well. There is no problem. 
 
 However, when I send the message at the nRF52840 over uart, I can&amp;#39;t publish the message. By the way</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2020 09:56:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56798/sending-the-message-which-includes-ctrl-z-0x1a-character-over-uart" /><item><title>RE: Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/thread/231586?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 09:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c09085b1-4063-406d-8e3f-9b6f2623fade</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi Simon!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The problem is solved&amp;nbsp;when I changed the publishing function with this code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void publish_mqtt(uint8_t * data)
{
    uint8_t msg[] = &amp;quot;AT+QMTPUB=0,1,1,0,\&amp;quot;topic\&amp;quot;\r&amp;quot;;

    at_send(msg, sizeof(msg));
    nrf_delay_ms(1000);

    at_send(data, strlen(data));
    app_uart_put(0x1A);
    app_uart_put(&amp;#39;\r&amp;#39;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I think the problem is something with strcpy().&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/thread/231537?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 07:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989267a2-eb7f-4b30-9a84-6a74e67b7841</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi Simon!&lt;br /&gt;&lt;br /&gt;I tested again. and I found that AT+QMTPUB(publishing command) is&lt;span&gt;&amp;nbsp;the only command which doesn&amp;#39;t work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Like below code, I sent AT+QCDS after AT+QMTPUB.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    lte_check(); // AT+QCDS
    lte_setup(); // AT+QMTCFG, AT+QSSLCFG, AT+QMTOPEN, AT+QMTCONN
    publish_mqtt(&amp;quot;Hellow CEEDUP\r&amp;quot;); // AT+QMTPUB
    lte_check(); // AT+QCDS&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but, As you can see below image,&amp;nbsp;Only AT+QMTPUB command didn&amp;#39;t work and, AT+QCDS command was able to confirm that it worked very well. Red box is the space where AT+QMTPUB is should printed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3731._A1CE98CC_2.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/thread/231336?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 09:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f25b3fc-b536-4bf9-87eb-a8cce75b409c</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;At segger, When I publish the message with below function, AWS doesn&amp;#39;t receive any message.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3404._A1CE98CC_3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but, other functions works well, and I can get the response very well(except of the publish function).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6153._A1CE98CC_4.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;after these setup functions are done at the segger, I sent only the publish command with QCOM once again.&lt;/p&gt;
&lt;p&gt;In this case, AWS can receive the message.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5076._A1CE98CC_.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;[QCOM]&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4186._A1CE98CC_5.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;[AWS]&lt;/p&gt;
&lt;p&gt;and the RTT show me the response from the LM5 via UART.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6237._A1CE98CC_2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;[RTT]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, only the publish function doesn&amp;#39;t work at the segger. What would be the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/thread/231285?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 04:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac1bcc8-7bef-433c-b1ed-57bab99f8b18</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;And the main problem is I cant send hex character and cant get &amp;quot;&amp;gt;&amp;quot; this response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/thread/231243?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 16:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:782dc7aa-7a43-4012-9248-290ced168f32</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi Simon!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Well that is my ticket and at that time it works well, but now It doesn&amp;#39;t work. Can u provide more help about thos problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending the message which includes ctrl-z(0x1A) character over uart</title><link>https://devzone.nordicsemi.com/thread/231235?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 16:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef7d33d5-2cd1-4049-b365-49fb42b04263</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54578/uart-shows-strange-value"&gt;this ticket&lt;/a&gt;, which I think is relevant to yours since the same modem is used. If it doesn&amp;#39;t help you, please tell me and I will take a closer look at your 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></channel></rss>