<?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>nRF9160 SLM add PPP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95194/nrf9160-slm-add-ppp</link><description>HI, 
 
 I am currently working on a project where, for now, I only use the nRF9160 as an LTE-M modem connected to the main MCU which is an ESP32. 
 I am using the SLM application and everything works as expected when I use AT commands. 
 
 Now I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jan 2023 17:21:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95194/nrf9160-slm-add-ppp" /><item><title>RE: nRF9160 SLM add PPP</title><link>https://devzone.nordicsemi.com/thread/403917?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 17:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941d762c-3db3-4c29-be93-bb256a600c21</guid><dc:creator>Zoptune</dc:creator><description>&lt;p&gt;Hi and thanks for your answer,&lt;/p&gt;
&lt;p&gt;I will go with the third option which is doing all the work on the ESP32 and use existing SLM AT commands.&lt;/p&gt;
&lt;p&gt;It will require some work but I am much more comfortable with Espressif environment.&lt;/p&gt;
&lt;p&gt;Thanks for your help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM add PPP</title><link>https://devzone.nordicsemi.com/thread/403908?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 16:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10cb8387-c76b-4bab-ad81-a809884ed0ad</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AlexandreC"]It seems that the configured UART is exclusive to the PPP interface and that it cannot be used like I wanted to which is &amp;quot;shared&amp;quot; with the SLM by adding an &lt;code&gt;SLM_PPP_MODE&lt;/code&gt; in addition to &lt;code&gt;SLM_AT_COMMAND_MODE&lt;/code&gt;, &lt;code&gt;SLM_DATA_MODE&lt;/code&gt;.[/quote]
&lt;p&gt;The easiest solution will be to just use 2 UARTs. You could potentially use a switch to direct the UART signals, and that way only use one UART on the ESP32.&lt;/p&gt;
&lt;p&gt;Another possibility would be create a new &amp;quot;UART driver&amp;quot; on the nRF9160, which reads the UART traffic, checks if it is an AT command or PPP command, and sends it to the right handler from there. I don&amp;#39;t think it will be easy to express that in the device tree, but if you re-write the PPP code and SLM code to not use the device tree macroes to the the &amp;quot;UART device&amp;quot;, I think it is doable.&lt;/p&gt;
&lt;p&gt;A third option, is to use the HTTP, MQTT, etc. commands in the SLM, and not use PPP at all. It will let you avoid having to deal with the FW on the nRF9160, but might require more work on the ESP32 (depending on how much code you already have there)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM add PPP</title><link>https://devzone.nordicsemi.com/thread/403698?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 15:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1252aa18-92a5-44cc-a98f-fc016352bd78</guid><dc:creator>Zoptune</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&amp;nbsp; and happy new year,&lt;/p&gt;
&lt;p&gt;I investigated the code and how PPP works in the MoSH example and from what I understood it is not possible to use a single UART for the SLM and the PPP interface.&lt;/p&gt;
&lt;p&gt;It seems that the configured UART is exclusive to the PPP interface and that it cannot be used like I wanted to which is &amp;quot;shared&amp;quot; with the SLM by adding an &lt;code&gt;SLM_PPP_MODE&lt;/code&gt; in addition to &lt;code&gt;SLM_AT_COMMAND_MODE&lt;/code&gt;, &lt;code&gt;SLM_DATA_MODE&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I hoped that I could enable the PPP interface by adding a function like &lt;code&gt;enter_pppmode() in the &lt;/code&gt;slm_at_host.c file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you have any information or advice about that that would be awesome.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM add PPP</title><link>https://devzone.nordicsemi.com/thread/402512?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 10:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d91dfd30-0758-4aee-b59e-e106d268e10b</guid><dc:creator>Zoptune</dc:creator><description>&lt;p&gt;Hi and thanks for your response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok I will give it a try.&lt;/p&gt;
&lt;p&gt;I will only use one UART as I only have one available and I will add a new mode in addition to &lt;code&gt;SLM_AT_COMMAND_MODE&lt;/code&gt;, &lt;code&gt;SLM_DATA_MODE&lt;/code&gt; and &lt;code&gt;SLM_DFU_MODE.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If I end up with something satisfying enough I will push a PR &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards and happy end of the year.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM add PPP</title><link>https://devzone.nordicsemi.com/thread/402421?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 11:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e81626e1-4bdc-413e-87c7-81eb83e63128</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not very familiar with PPP, but yes, I believe it will work. You might have to use a second UART for PPP, similar to what the MoSH does.&lt;/p&gt;
&lt;p&gt;You might also be able to simply use the MoSH sample directly, though I haven&amp;#39;t looked at the current consumption of the MoSH sample. It might end up being higher than the SLM where you have the #XSLEEP command.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;
&lt;p&gt;P.S. Due to holiday vacations, responses might be slower than normal. We apologize for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>