<?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>GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80987/gsm-modem-sample-project-on-nrf-5340-app</link><description>Hi. I am trying to get the gsm modem sample project to work with an nRF 5340 app and a Nimbelink LTE modem, NL-SW-LTE-TC4NAG. The only change I made to the project was to add a new file in the boards directory for the 5340. The nrf5340dk_nrf5340_cpuapp</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Nov 2021 12:47:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80987/gsm-modem-sample-project-on-nrf-5340-app" /><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/338169?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 12:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2f32a4-84f0-44e3-86d5-88140cec578d</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="code-magic"]Maybe all that I&amp;#39;m lacking is telling the ppp driver what device to use? I thought that was covered with &amp;#39;compatible=&amp;quot;zephyr,gsm-ppp&amp;quot;` in the overlay file.[/quote]
&lt;p lang="en-GB"&gt;I’m honestly not quite sure where this compatible comes from. It is not included in the Zephyr devicetree by default. Can you elaborate why you have added it to your UART1?&lt;/p&gt;
[quote user="code-magic"]&amp;quot;modem not ready -116&amp;quot;&amp;nbsp;[/quote]
&lt;p lang="en-GB"&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.6.0/lib/libc/minimal/include/errno.h#L101"&gt;-116&lt;/a&gt; probably means connecting timeout, which would make sense if you are not seeing any activity one the UART pins.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Thanks and regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/337959?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 14:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f5a3dfc-fa05-42a7-b0ee-eee93d2cdf16</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;No problem. I just plugged in a logic analyzer to the RX/TX pins and I&amp;#39;m not seeing any activity.&lt;/p&gt;
&lt;p&gt;The log message below is because the modem is not sending back AT.&lt;/p&gt;
&lt;p&gt;&amp;quot;modem not ready -116&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/337951?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 14:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d68b65c-5eb9-48ac-9533-647f26da013f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Justin,&lt;/p&gt;
&lt;p lang="en-GB"&gt;my apologies for the late reply. I was out of office last week. I will have a look into this and come back to you tomorrow.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336950?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 00:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2fe97da-93b8-41a8-8f32-9ae907e88b34</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;I finally got my head wrapped around the different UART interfaces: UART_0: terminal output,&amp;nbsp;UART_1: modem. I setup the pins on UART_1; shown below.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t look like the driver knows what to use for the modem.&amp;nbsp;The ppp driver, modem_gsm, and my code all show different pointers for the device.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;Maybe all that I&amp;#39;m lacking is telling the ppp driver what device to use? I thought that was covered with &amp;#39;compatible=&amp;quot;zephyr,gsm-ppp&amp;quot;` in the overlay file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
    status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
    tx-pin = 3;
	rx-pin = 8;
	rts-pin = 2;
	cts-pin = 7;
	current-speed = 115200;
	gsm: gsm-modem {
		status = &amp;quot;okay&amp;quot;;
		compatible = &amp;quot;zephyr,gsm-ppp&amp;quot;;
		label = &amp;quot;modem_gsm&amp;quot;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;Below is the output log from the application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.400,268] &amp;lt;dbg&amp;gt; net_ppp.ppp_driver_init: [0x20001d88] dev 0x20000214
[00:00:00.400,360] &amp;lt;dbg&amp;gt; modem_gsm.gsm_init: Generic GSM modem (0x20000730)
[00:00:00.400,390] &amp;lt;dbg&amp;gt; modem_gsm.gsm_init: iface-&amp;gt;read 0x1594f iface-&amp;gt;write 0x15985
[00:00:00.400,421] &amp;lt;dbg&amp;gt; modem_gsm.gsm_rx: starting
[00:00:00.400,482] &amp;lt;dbg&amp;gt; modem_gsm.gsm_configure: Starting modem 0x20000730 configuration
[00:00:00.400,695] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_event_init: (main): Net MGMT initialized: queue of 2 entries, stack size of 768
[00:00:00.400,695] &amp;lt;dbg&amp;gt; net_ppp.ppp_iface_init: [0x20001d88] iface 0x20000544
[00:00:00.400,726] &amp;lt;dbg&amp;gt; net_l2_ppp.net_ppp_init: (main): Initializing PPP L2 0x20001b58 for iface 0x20000544
[00:00:00.405,303] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_add_event_callback: (conn_mgr): Adding event callback 0x200032d8
[00:00:00.405,303] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_add_event_callback: (conn_mgr): Adding event callback 0x200032ec
[00:00:00.405,334] &amp;lt;dbg&amp;gt; conn_mgr.conn_mgr_handler: (conn_mgr): Connection Manager started
[00:00:00.405,364] &amp;lt;dbg&amp;gt; net_l2_ppp.tx_handler: (tx_handler_thread): PPP TX started

// everthing above is before main()

[00:00:00.405,364] &amp;lt;inf&amp;gt; mux_cell_wifi: Configured: PIN_MUX_CELL_WIFI_ENABLE
[00:00:00.405,364] &amp;lt;inf&amp;gt; mux_cell_wifi: Configured: PIN_MUX_CELL_WIFI_SWITCH
[00:00:00.405,395] &amp;lt;inf&amp;gt; mux_cell_wifi: Select Cell GSM Modem
[00:00:00.405,395] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_STATUS
[00:00:00.405,395] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_DTR
[00:00:00.405,395] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_ON_OFF
[00:00:00.405,395] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_RESET
[00:00:00.405,395] &amp;lt;inf&amp;gt; gsm_modem: Turning gsm modem on via 1500ms sleep time.
[00:00:00.405,426] &amp;lt;inf&amp;gt; gsm_modem: Successfully set gsm_modem On/Off pin 1 = 1. The modem will take approximately 20 seconds to turn on and be ready for AT commands.
[00:00:01.905,487] &amp;lt;inf&amp;gt; sample_gsm_ppp: Board &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39; APN &amp;#39;ATT&amp;#39; UART &amp;#39;UART_1&amp;#39; device 0x200001b4 (modem_gsm)
[00:00:01.905,487] &amp;lt;dbg&amp;gt; sample_gsm_ppp.init_gsm_modem: GSM Device: 0x2000025c
[00:00:01.905,517] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_add_event_callback: (main): Adding event callback 0x20002550
[00:00:02.400,726] &amp;lt;dbg&amp;gt; modem_gsm.gsm_configure: modem not ready -116
[00:00:02.400,756] &amp;lt;dbg&amp;gt; net_l2_ppp.ppp_startup: (sysworkq): PPP 0x20001b58 startup for interface 0x20000544
[00:00:02.400,756] &amp;lt;dbg&amp;gt; net_l2_ppp.ipcp_init: (sysworkq): proto IPCP (0x8021) fsm 0x20001c70
[00:00:02.400,787] &amp;lt;dbg&amp;gt; net_l2_ppp.lcp_init: (sysworkq): proto LCP (0xc021) fsm 0x20001ba0
[00:00:02.400,787] &amp;lt;dbg&amp;gt; modem_gsm.gsm_configure: Starting modem 0x20000730 configuration
[00:00:04.401,062] &amp;lt;dbg&amp;gt; modem_gsm.gsm_configure: modem not ready -116
. . . . . . 
[00:00:04.401,092] &amp;lt;dbg&amp;gt; modem_gsm.gsm_configure: Starting modem 0x20000730 configuration
[00:00:06.401,336] &amp;lt;dbg&amp;gt; modem_gsm.gsm_configure: modem not ready -116
. . . . . .&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336891?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 13:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2505da19-a5bf-4802-8e43-d46088658472</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;My apologies for the long previous post and another post. The deeper I get the more I learn something. I found a command to list all devices. The output is below. Notice that `modem_gsm` is disabled.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a feeling this might be my issue. How do I enable modem_gsm?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;`device list`&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ device list
devices:
- CLOCK (READY)
- UART_0 (READY)
- CRYPTOCELL (READY)
- sys_clock (READY)
- ppp (READY)
- GPIO_0 (READY)
- GPIO_1 (READY)
- modem_gsm (DISABLED)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;`device levels` (just in case it&amp;#39;s useful)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ device levels
PRE KERNEL 1:
- CLOCK
- UART_0
- CRYPTOCELL
PRE KERNEL 2:
- sys_clock
POST_KERNEL:
- ppp
- GPIO_0
- GPIO_1
APPLICATION:
- None&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336759?ContentTypeID=1</link><pubDate>Sun, 31 Oct 2021 15:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542128e8-2d22-4b88-b9b0-d259da04f20d</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;I&amp;#39;m still confused. Both with (1) is UART_0 or UART_1 being used and (2) I cannot get this working with either UART_0 or UART_1.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The overlay was set for UART_0 (&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;uart0)&lt;/span&gt;, but the code sets it to UART_1. When I try setting UART_0 in prj.conf there is a fatal error and nothing is output to the console. So I set the modem to UART_0 in main.c.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UART_1: device_get_binding() returns null&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt; //prj.conf
 CONFIG_MODEM_GSM_UART_NAME=&amp;quot;UART_1&amp;quot;
 
 //get_device_binding()
 const struct device *uart_dev =
				device_get_binding(CONFIG_MODEM_GSM_UART_NAME);
 
 //output
 &amp;lt;inf&amp;gt; sample_gsm_ppp: Board &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39; APN &amp;#39;internet&amp;#39; UART &amp;#39;UART_1&amp;#39; device (nil) (modem_gsm)&lt;/pre&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;UART_0:&amp;nbsp;device_get_binding() returns a device&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using your overlay and getting the device binding for &amp;quot;UART_0&amp;quot; here is my output. Also, this shows that there are no modems found.&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;pre class="ui-code" data-mode="text"&gt;//device_get_binding()
const struct device *uart_dev =
			device_get_binding(&amp;quot;UART_0&amp;quot;);

//output
&amp;lt;inf&amp;gt; sample_gsm_ppp: Board &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39; APN &amp;#39;internet&amp;#39; UART &amp;#39;UART_1&amp;#39; device 0x200001f0 (modem_gsm)
uart:~$ modem list
Modem receivers:
None found.
uart:~$ sample resume
Please wait for network connection.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I was optimistic that even though the uart command `modem list` did not return this modem that maybe it is registered in the system. So I moved code from the http_get sample project to this modem project to make an HTTP request, but it failed to get a network connection.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure where to go from here. Is there an option for phone support or is it strictly forum support available?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;To add on to this reply, I uncommented a few items in the prj.conf file. The most notable output to me is `modem_gsm.gsm_init: iface uart error -19`.&lt;/p&gt;
&lt;p&gt;Please note the modem is connected via a multiplexor that must be switched on to select the modem; which is why there&amp;#39;s log output for &amp;#39;mux_cell_wifi: Select Cell GSM Modem&amp;#39;. This is being switched (selected) before any calls to get_device_binding().&lt;/p&gt;
&lt;p&gt;Maybe specific calls must be made after the switch to the modem to properly configure the device and make it available?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Uncommented in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG_BUFFER_SIZE=16384
CONFIG_LOG_STRDUP_BUF_COUNT=200
CONFIG_MODEM_LOG_LEVEL_DBG=y
CONFIG_NET_PPP_LOG_LEVEL_DBG=y
CONFIG_NET_L2_PPP_LOG_LEVEL_DBG=y
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_DBG=y
CONFIG_NET_CONNECTION_MANAGER_LOG_LEVEL_DBG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;New Output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ *** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***


[00:00:00.398,803] &amp;lt;dbg&amp;gt; net_ppp.ppp_driver_init: [0x20001d48] dev 0x200001d0
[00:00:00.398,895] &amp;lt;dbg&amp;gt; modem_gsm.gsm_init: Generic GSM modem (0x200006f0)
[00:00:00.398,925] &amp;lt;dbg&amp;gt; modem_gsm.gsm_init: iface uart error -19
[00:00:00.398,986] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_event_init: (main): Net MGMT initialized: queue of 2 entries, st          ack size of 768
[00:00:00.398,986] &amp;lt;dbg&amp;gt; net_ppp.ppp_iface_init: [0x20001d48] iface 0x20000500
[00:00:00.399,017] &amp;lt;dbg&amp;gt; net_l2_ppp.net_ppp_init: (main): Initializing PPP L2 0x20001b18 for iface 0x200005          00
[00:00:00.399,078] &amp;lt;dbg&amp;gt; net_l2_ppp.ppp_startup: (sysworkq): PPP 0x20001b18 startup for interface 0x2000050          0
[00:00:00.399,078] &amp;lt;dbg&amp;gt; net_l2_ppp.ipcp_init: (sysworkq): proto IPCP (0x8021) fsm 0x20001c30
[00:00:00.399,108] &amp;lt;dbg&amp;gt; net_l2_ppp.lcp_init: (sysworkq): proto LCP (0xc021) fsm 0x20001b60
[00:00:00.403,717] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_add_event_callback: (conn_mgr): Adding event callback 0x20003298
[00:00:00.403,717] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_add_event_callback: (conn_mgr): Adding event callback 0x200032ac
[00:00:00.403,747] &amp;lt;dbg&amp;gt; conn_mgr.conn_mgr_handler: (conn_mgr): Connection Manager started
[00:00:00.403,747] &amp;lt;dbg&amp;gt; net_l2_ppp.tx_handler: (tx_handler_thread): PPP TX started
[00:00:00.403,778] &amp;lt;inf&amp;gt; mux_cell_wifi: Configured: PIN_MUX_CELL_WIFI_ENABLE
[00:00:00.403,778] &amp;lt;inf&amp;gt; mux_cell_wifi: Configured: PIN_MUX_CELL_WIFI_SWITCH
[00:00:00.403,778] &amp;lt;inf&amp;gt; mux_cell_wifi: Select Cell GSM Modem
[00:00:00.403,808] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_STATUS
[00:00:00.403,808] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_DTR
[00:00:00.403,808] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_ON_OFF
[00:00:00.403,808] &amp;lt;inf&amp;gt; gsm_modem: Configured: PIN_GSM_MODEM_RESET
[00:00:00.403,808] &amp;lt;inf&amp;gt; gsm_modem: Turning gsm modem on via 1500ms sleep time.
[00:00:00.403,808] &amp;lt;inf&amp;gt; gsm_modem: Successfully set gsm_modem On/Off pin 1 = 1. The modem will take approx          imately 20 seconds to turn on and be ready for AT commands.
[00:00:01.903,900] &amp;lt;inf&amp;gt; sample_gsm_ppp: Board &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39; APN &amp;#39;internet&amp;#39; UART &amp;#39;UART_1&amp;#39; devi          ce 0x20000188 (modem_gsm)
[00:00:01.903,930] &amp;lt;dbg&amp;gt; net_mgmt.net_mgmt_add_event_callback: (main): Adding event callback 0x20002510
uart:~$ modem list
Modem receivers:
None found.
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336679?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 12:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c88d18b-311c-4584-bb72-8d2a53401e17</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="code-magic"]Thank you so much for the details and links. I will try and test this soon.&amp;nbsp;[/quote]
&lt;p lang="en-GB"&gt;My pleasure! :-)&lt;/p&gt;
[quote user="code-magic"]Can the modem be run asynchronously? If not, what is the best practice to run the modem on the app core without blocking other processes?[/quote]
&lt;p lang="en-GB"&gt;I’m not familiar with the Nimbelink LTE modem, so not sure if I can provide you with an answer here. But looking at the &lt;a href="https://nimbelink.com/Documentation/Skywire/1001750_Skywire-Software-Developers-Guide.pdf"&gt;Software Guideline&lt;/a&gt;, I get the impression that everything will be controlled by AT commands via UART. So my&amp;nbsp;first thought would be to use interrupt driven UART, as this will not block the application on the nRF53 and serve incoming data right away.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336576?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 05:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b59cc6-0f3d-4ada-8d1b-d813020e6b8f</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;Thank you so much for the details and links. I will try and test this soon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can the modem be run asynchronously? If not, what is the best practice to run the modem on the app core without blocking other processes?&lt;/p&gt;
&lt;p&gt;A problem we&amp;#39;ve ran in with other boards is that the network transaction blocks a more important process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336341?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 07:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2a2a1d3-b39c-4187-ad2b-da547b904a7b</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello,&lt;/p&gt;
[quote user="code-magic"]Is this correct for the pin number for TX: `tx-pin = &amp;lt;3&amp;gt;;`?[/quote]
&lt;p&gt;In your case, the .overlay should look like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
    status = &amp;quot;okay&amp;quot;;
    tx-pin = &amp;lt;3&amp;gt;;
	rx-pin = &amp;lt;8&amp;gt;;
	rts-pin = &amp;lt;2&amp;gt;;
	cts-pin = &amp;lt;7&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
[quote user="code-magic"]The modem will be ran from the net core on non standard pins for TX, RX, RTS, &amp;amp; CTS. Given this, do I need to only need to set the pins in my overlay file for UART 0. Or will setting this for UART1 on net core be ok?[/quote]
&lt;p lang="en-GB"&gt;Please be aware that the app core has to give the net core permission for each pin it wants to use, as &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.7.0/samples/nrf5340/empty_app_core/src/main.c#L63"&gt;illustrated&lt;/a&gt; in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/samples/nrf5340/empty_app_core/README.html#nrf5340-empty-firmware-for-application-core"&gt;nRF5340: Empty firmware for application core&lt;/a&gt; sample. I’m not quite sure how sufficient&amp;nbsp;it will work having the GSM modem connected to the net core, as it in general is not &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/ug_nrf5340.html#network-core"&gt;designed&lt;/a&gt; for this kind of usage. So my recommendation would be to use the app core instead.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/336286?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 17:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4032bcab-23ff-4377-91e5-da08b0562f68</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;Thank you, this helps some. I have new found information if you can help me out with this. The modem will be ran from the net core on non standard pins for TX, RX, RTS, &amp;amp; CTS. Given this, do I need to only need to set the pins in my overlay file for UART 0. Or will setting this for UART1 on net core be ok?&lt;/p&gt;
&lt;p&gt;Custom Pins:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;TX: P 0.03&lt;/li&gt;
&lt;li&gt;RX: P0.08&lt;/li&gt;
&lt;li&gt;RTS: P0.02&lt;/li&gt;
&lt;li&gt;CTS: P0.07&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The default config for UART 0 is below,&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts"&gt;nrf5340dk_nrf5340_cpunet.dts&lt;/a&gt;. Note, I&amp;#39;m not sure how to get the `&amp;lt;` &amp;amp; `&amp;gt;` in the code below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this correct for the pin number for TX: `tx-pin = &amp;lt;3&amp;gt;;`?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From Zephyr:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;  115200  &amp;gt;;
	tx-pin = &amp;lt;33&amp;gt;;
	rx-pin = &amp;lt;32&amp;gt;;
	rx-pull-up;
	rts-pin = &amp;lt;11&amp;gt;;
	cts-pin = &amp;lt;10&amp;gt;;
	cts-pull-up;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Custom Overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	tx-pin = 3;
	rx-pin = 8;
	rts-pin = 2;
	cts-pin = 7;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/335805?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 14:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a108ac3-b01b-4781-84c1-d5f15f4cc0eb</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Justin,&lt;/p&gt;
[quote user=""]I&amp;#39;m not sure if this is a configuration issue or if the modem is not up when `device_get_binding()` is called. What am I missing?[/quote]
&lt;p lang="en-GB"&gt;First of all, you might not want to change the compatible of the UART since that will make the peripheral non-functional.&lt;/p&gt;
&lt;p lang="en-GB"&gt;The sample uses &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.6.0/samples/net/gsm_modem/prj.conf#L7"&gt;UART_1&lt;/a&gt;, which is disabled for nrf5340_cpuapp by default.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart1: arduino_serial: uart@9000 {
				compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
				reg = &amp;lt; 0x9000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0x9 0x1 &amp;gt;;
				status = &amp;quot;disabled&amp;quot;;
				label = &amp;quot;UART_1&amp;quot;;
				current-speed = &amp;lt; 0x1c200 &amp;gt;;
				tx-pin = &amp;lt; 0x21 &amp;gt;;
				rx-pin = &amp;lt; 0x20 &amp;gt;;
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;To enable it, you have to enable the periperhal in your overlay file:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {
    status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;With this change, the samples provides the following output on my nRF5340 DK, which looks correct to me:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;Velkommen til minicom 2.8

MULIGHETER: I18n 
Port /dev/ttyACM2, 16:10:55

Trykk CTRL-A Z for hjelp om spesialtaster

*** Booting Zephyr OS build v2.6.99-ncs1  ***


[00:00:00.434,051] &amp;lt;inf&amp;gt; sample_gsm_ppp: Board &amp;#39;nrf5340dk_nrf5340_cpuapp&amp;#39; APN &amp;#39;internet&amp;#39; UART &amp;#39;UART_1&amp;#39; device 0x1631c (modem_gsm)
uart:~$ &lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this will help you.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GSM Modem Sample Project on nRF 5340 App</title><link>https://devzone.nordicsemi.com/thread/335566?ContentTypeID=1</link><pubDate>Sat, 23 Oct 2021 12:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f3016c-d9f3-4b30-9bef-cafff4d52e10</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;I&amp;#39;ve made some progress. I created the project in Segger and moved my&amp;nbsp;nrf5340dk_nrf5340_cpuapp.overlay file to the project. I&amp;nbsp;&lt;span&gt;changed the UART label to &lt;/span&gt;&lt;code class="inline"&gt;UART_1.&amp;nbsp;&lt;/code&gt;&lt;span&gt;I see that &lt;/span&gt;&lt;code class="inline"&gt;device_get_binding()&lt;/code&gt;&lt;span&gt; is now returning a valid device for both uart_dev &amp;amp; gsm_dev. The &lt;code class="inline"&gt;event_handler()&lt;/code&gt; is never called so I guess the modem never connects. Is there a way for me to see what&amp;#39;s going on behind the scenes deeper than the debug point never being hit?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I&amp;#39;m confused now because this project accepts UART commands and the modem is also on UART. When I enter a command (resume/suspend) with putty connected to COM4 of the device I get a &amp;#39;command not found&amp;#39; error. I&amp;#39;m afraid that uart_dev and gsm_dev is the same device according to the overlay file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is my overlay file correct? There is a power light on the modem so I know it&amp;#39;s on, the event_handler() just isn&amp;#39;t being called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>