This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GSM Modem Sample Project on nRF 5340 App

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.overlay file is below.

The problem is that `uart_dev` is null. The console output I get is below.

I'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?

sample_gsm_ppp: Board 'nrf5340dk_nrf5340_cpuapp' APN 'internet' UART 'UART_1' device (nil) (modem_gsm)

&uart0 {
    compatible = "zephyr,gsm-ppp"; // also tried: gsm_ppp,MODEM_GSM_PPP,modem_gsm
    label = "UART_1";
	status = "okay";
	current-speed = <115200>;

	gsm: gsm-modem {
		compatible = "zephyr,gsm-ppp";
		label = "gsm_ppp";
	};
};

  • No problem. I just plugged in a logic analyzer to the RX/TX pins and I'm not seeing any activity.

    The log message below is because the modem is not sending back AT.

    "modem not ready -116" 

  • code-magic said:
    Maybe all that I'm lacking is telling the ppp driver what device to use? I thought that was covered with 'compatible="zephyr,gsm-ppp"` in the overlay file.

    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?

    code-magic said:
    "modem not ready -116" 

    -116 probably means connecting timeout, which would make sense if you are not seeing any activity one the UART pins.

    Thanks and regards,

    Markus

Related