GSM-PPP on main and on version v3.2.0 question #modem


Federico GC
 

Hi all,
I have a board with a STM32L04 microcontroller and a SIM7600 evaluation board.
The gsm-ppp driver works fine in a zephyr branch from 23 September but is not working with latest main code.
with the code from September 23:
[00:00:33.449,000] <inf> modem_gsm: Manufacturer: SIMCOM IN
[00:00:33.513,000] <inf> modem_gsm: Model: SIMCOM_SIM7600G
[00:00:33.577,000] <inf> modem_gsm: Revision: +CGMR: **********************
[00:00:33.640,000] <inf> modem_gsm: IMEI: ************************
[00:00:33.700,000] <inf> modem_gsm: IMSI: ************************
[00:00:33.762,000] <inf> modem_gsm: ICCID: ***********************
[00:00:33.832,000] <inf> modem_gsm: Attached to packet service!
[00:00:54.043,000] <inf> net_ppp: Initializing PPP to use serial@40013800
[00:00:54.123,000] <inf> lte_module: Network connected
 
but with the latest code I get:
[00:15:58.409,000] <inf> modem_gsm: Manufacturer: SIMCOM IN
[00:15:58.472,000] <inf> modem_gsm: Model: SIMCOM_SIM7600G
[00:15:58.536,000] <inf> modem_gsm: Revision: +CGMR: LE20B03SIM7600M22
[00:15:58.600,000] <inf> modem_gsm: IMEI: 868822042456358
[00:15:58.661,000] <inf> modem_gsm: IMSI: 722341328309992
[00:15:58.726,000] <inf> modem_gsm: ICCID: 89543431221283099921
[00:15:58.801,000] <inf> modem_gsm: Attached to packet service!
[00:16:19.007,000] <inf> net_ppp: Initializing PPP to use serial@40013800

and never connects the interface (I wait for 15min).


my config is:
# GSM modem support
CONFIG_MODEM=y
CONFIG_MODEM_GSM_PPP=y
CONFIG_MODEM_GSM_SIMCOM=y
# Network management events
CONFIG_NET_CONNECTION_MANAGER=y
 
# PPP networking support
CONFIG_NET_NATIVE=y
CONFIG_NET_DRIVERS=y
CONFIG_NET_PPP=y
CONFIG_NET_L2_PPP=y
CONFIG_NET_L2_PPP_TIMEOUT=10000
 
CONFIG_MODEM_SHELL=y
CONFIG_MODEM_GSM_RX_STACK_SIZE=1024
CONFIG_MODEM_GSM_APN="************"
CONFIG_GSM_PPP_AUTOSTART=n
CONFIG_MODEM_CMD_HANDLER_MAX_PARAM_COUNT=20

Thanks,
Fede



Lubos, Robert
 

Hi,

 

It’s likely related to https://github.com/zephyrproject-rtos/zephyr/issues/52139, we’re reverting the changes that introduced the regression here: https://github.com/zephyrproject-rtos/zephyr/pull/52257.

 

Regards,

Robert

 

From: users@... <users@...> On Behalf Of Federico GC via lists.zephyrproject.org
Sent: wtorek, 15 listopada 2022 23:06
To: users@...
Subject: [Zephyr-users] GSM-PPP on main and on version v3.2.0 question #modem

 

Caution:This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Hi all,
I have a board with a STM32L04 microcontroller and a SIM7600 evaluation board.
The gsm-ppp driver works fine in a zephyr branch from 23 September but is not working with latest main code.
with the code from September 23:

[00:00:33.449,000] <inf> modem_gsm: Manufacturer: SIMCOM IN

[00:00:33.513,000] <inf> modem_gsm: Model: SIMCOM_SIM7600G

[00:00:33.577,000] <inf> modem_gsm: Revision: +CGMR: **********************

[00:00:33.640,000] <inf> modem_gsm: IMEI: ************************

[00:00:33.700,000] <inf> modem_gsm: IMSI: ************************

[00:00:33.762,000] <inf> modem_gsm: ICCID: ***********************

[00:00:33.832,000] <inf> modem_gsm: Attached to packet service!

[00:00:54.043,000] <inf> net_ppp: Initializing PPP to use serial@40013800

[00:00:54.123,000] <inf> lte_module: Network connected

 

but with the latest code I get:

[00:15:58.409,000] <inf> modem_gsm: Manufacturer: SIMCOM IN

[00:15:58.472,000] <inf> modem_gsm: Model: SIMCOM_SIM7600G

[00:15:58.536,000] <inf> modem_gsm: Revision: +CGMR: LE20B03SIM7600M22

[00:15:58.600,000] <inf> modem_gsm: IMEI: 868822042456358

[00:15:58.661,000] <inf> modem_gsm: IMSI: 722341328309992

[00:15:58.726,000] <inf> modem_gsm: ICCID: 89543431221283099921

[00:15:58.801,000] <inf> modem_gsm: Attached to packet service!

[00:16:19.007,000] <inf> net_ppp: Initializing PPP to use serial@40013800


and never connects the interface (I wait for 15min).



my config is:

# GSM modem support

CONFIG_MODEM=y

CONFIG_MODEM_GSM_PPP=y

CONFIG_MODEM_GSM_SIMCOM=y

# Network management events

CONFIG_NET_CONNECTION_MANAGER=y

 

# PPP networking support

CONFIG_NET_NATIVE=y

CONFIG_NET_DRIVERS=y

CONFIG_NET_PPP=y

CONFIG_NET_L2_PPP=y

CONFIG_NET_L2_PPP_TIMEOUT=10000

 

CONFIG_MODEM_SHELL=y

CONFIG_MODEM_GSM_RX_STACK_SIZE=1024

CONFIG_MODEM_GSM_APN="************"

CONFIG_GSM_PPP_AUTOSTART=n

CONFIG_MODEM_CMD_HANDLER_MAX_PARAM_COUNT=20

Thanks,
Fede