<?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>MQTT With GSM PPP and TLS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98170/mqtt-with-gsm-ppp-and-tls</link><description>I am trying to use The GSM PPP sample with MQTT and TLS, I manage to get the NET_L4_CONNECTED event but I cant connect to the broker. I had tested the same broker with other platfroms and it works fine with TLS. My GSM modem is SIM800A connected over</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Apr 2023 02:36:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98170/mqtt-with-gsm-ppp-and-tls" /><item><title>RE: MQTT With GSM PPP and TLS</title><link>https://devzone.nordicsemi.com/thread/418726?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 02:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcc81744-e430-454a-ac0e-2cf3ddcb33ed</guid><dc:creator>Belalshinnawey</dc:creator><description>&lt;p&gt;I completely gave up on mbedtls. I ported WolfSSL to Zephyr and used it with POSIX to connect with TLS 1.3 . The difference was really just the more meaningful error messages that helped me tune my application. Anyone reading this on NCS v 2.3.0, just download wolfssl and use it, it&amp;#39;s way easier and you get error messages that are helpful. Also the code -7780 is an mbedtls error, its not a an nrf error code, it means SSL - A fatal alert message was received from our peer. For some reason, mbedtls was selecting a cipher then returning an error after the server accepted the cipher, all while saying the server returned a fatal alert, even thought the server logs are saying connection is accepted. I couldn&amp;#39;t get it to work so I used a library I&amp;#39;m familiar with.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT With GSM PPP and TLS</title><link>https://devzone.nordicsemi.com/thread/417835?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 09:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2387efb4-d8c0-447b-ab33-01714798a7f9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;What version of the nRF Connect SDK are you using?&lt;/p&gt;
[quote user="Belalshinnawey"]I saw an example on NCS repo for PSA-TLS[/quote]
&lt;p&gt;I&amp;#39;m not familiar with this sample. It is not used by our developers in regards to TLS. Please look at how TLS is used in e.g. Download_client.&lt;/p&gt;
[quote user="Belalshinnawey"]TLS handshake error: -7780[/quote]
&lt;p&gt;This is an error which unfamiliar to me, i.e. it is not found in errno.h.&lt;/p&gt;
[quote user="Belalshinnawey"]Could you at least give me an example that works with MBEDTLS and no offloading.[/quote]
&lt;p&gt;Have you looked at the samples for MQTT in the Zephyr repository and the equivalent documentation? I.e. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/net/mqtt_publisher/README.html#mqtt-publisher-sample"&gt;MQTT Publisher sample&lt;/a&gt;&amp;nbsp;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/connectivity/networking/api/mqtt.html"&gt;MQTT networking API&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You could look at the AWS IoT Core sample found under nRF9160 samples. This is our own cellular device which connects to LTE-M or NB-IoT.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT With GSM PPP and TLS</title><link>https://devzone.nordicsemi.com/thread/417815?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 07:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40e65e4b-d575-4a69-9754-602025bc5c7f</guid><dc:creator>Belalshinnawey</dc:creator><description>&lt;p&gt;Could you at least give me an example that works with MBEDTLS and no offloading. The SIM800A doesn&amp;#39;t support offloading for anything beyond tls1 so Its not going to work anyway. Is there a possibility of making mqtt and tls work directly on the nrf52840 while using PPP as a transport only? surely there is a way, I saw an example on NCS repo for PSA-TLS is it possible to port that to my app. Also I am trying to get more logs out of the tls handshake but I only get &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -7780, How do I make the log level for this DBG? I couldnt&amp;#39;t find a way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT With GSM PPP and TLS</title><link>https://devzone.nordicsemi.com/thread/417796?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 06:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf9a49b-ee1b-4cf8-a5ba-68812f41ddff</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I can&amp;#39;t speak for the SIM800A, as this is not part of our product portfolio and I&amp;#39;m not aware how this part works. You have a fairly complex application with Zigbee, crypto, and a lot of extra setting compared to the standard gms_modem sample and e.g. mqtt_publiser from the Zepyr samples.&lt;/p&gt;
&lt;p&gt;What version of the nRF Connect SDK are you running?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You could &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;ask the Zephyr community on Discord&lt;/a&gt;, as they might have more experience with the SIM800A.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT With GSM PPP and TLS</title><link>https://devzone.nordicsemi.com/thread/417783?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 04:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a71f6b1-acb2-4ed4-8706-96a690fdcc9c</guid><dc:creator>Belalshinnawey</dc:creator><description>&lt;p&gt;Dears Any help on this? I am very close to changing the platfrom all together with something else that has working TLS examples. I tried to use the psa-tls Examples from the NCS repo and still get get errors in connections (Namely MBEDTLS 0x7780 Error and 0x7080) Is there something I am missing? you can review my broker TLS settings on &lt;a href="https://www.ssllabs.com/ssltest/analyze.html?d=mqtt.smartairplatform.com"&gt;www.ssllabs.com/.../analyze.html&lt;/a&gt; it looks fine to me. Please offer any input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>