cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to bring PPP connection using X-Cube-Cellular Nx_TCP_Echo_Client_PPP example.

srikanthpalvai
Associate III

Application is restarting after MODEM_PDN_ACTIVATING_STATE - PDP_ACTIVATED_EVENT

the IP stack running STM32-side with LwIP.

 

G96:Activate PDN (user cid = 1, modem cid = 1)

ATCModem:==== CMD TIMEOUT = 15000 ====

ATCModem:atcm_modem_build_cmd returned status = 0

ATCustom:atcc_getCmd returned status = 0

    ATParser:*** SEND (size=9) ***

ATD*99##<CR>

ATParser:ATParser_get_ATcmd returned action = 0x8001

ATCore:**** Waiting Sema (to=15000) *****

IPC:DBG IPC_RXFIFO_readMsgHeader: index_read = 921

IPC:header_byte1[0x80] header_byte2[0x14]

IPC:complete=1 size=20

    ATD*99##<CR>ATD*99##<CR><CR><LF>

BG96 API:enter ATCustom_BG96_extractElement()

BG96:input message: size=20 

ATCustom:start idx=0  end idx=7  size=8 rank=1

ATCustom:atcc_extractElement returned endmsg = 1

BG96 API:enter ATCustom_BG96_analyzeCmd()

BG96:receive an un-expected line... is it a text line ?

ATCustom:atcc_analyzeCmd returned action = 0x10

ATParser:analyzeCmd retval = 16 (DATA mode=0) msg_end = 1

ATParser:ATParser_parse_rsp returned action = 0x10

ATCore:RAW ACTION (analyze_action_result) = 0x10

ATCore:CLEANED ACTION=16 (data mode=0)

IPC:DBG IPC_RXFIFO_readMsgHeader: index_read = 943

IPC:header_byte1[0x80] header_byte2[0x9]

IPC:complete=1 size=9

    CONNECT<CR><LF>

BG96 API:enter ATCustom_BG96_extractElement()

BG96:input message: size=9 

ATCustom:start idx=0  end idx=6  size=7 rank=1

ATCustom:atcc_extractElement returned endmsg = 1

BG96 API:enter ATCustom_BG96_analyzeCmd()

ATCModem:we received LUT#2 : CONNECT 


BG96:MODEM SWITCHES TO DATA MODE

ATCustom:atcc_analyzeCmd returned action = 0x8001

ATParser:analyzeCmd retval = 1 (DATA mode=1) msg_end = 1

BG96 API:enter ATCustom_BG96_terminateCmd()

BG96:CONNECT received

ATCustom:atcc_terminateCmd returned action = 0x10

ATParser:ATParser_parse_rsp returned action = 0x8001

ATCore:RAW ACTION (analyze_action_result) = 0x8001

ATCore:CLEANED ACTION=1 (data mode=1)

IPC:IPC select 0x20019310

IPC:Change IPC channels

IPC:state 0x1

IPC:active channel handle: 0x20019310

IPC:inactive channel handle: 0x20013e40

ATCore:<<< DATA MODE SELECTED >>>

ATCore:add action 0x1 (flags=0x1)

ATCore:**** Sema released *****

ATCore:**** Sema Freed *****

ATCore:action_rsp value = 1

BG96 API:enter ATCustom_BG96_get_rsp()

ATCModem API:enter reset_SID_context()

ATCModem API:enter atcm_reset_SOCKET_context()

ATCustom:atcc_get_rsp returned status = 0

CS:<Cellular_Service> PDN 11 connected

CST: CST_send_message: PDP_ACTIVATED_EVENT

CST: AUTOM TASK: MODEM_PDN_ACTIVATING_STATE - PDP_ACTIVATED_EVENT

PPPosif:ppposif_client_config

IPC:IPC select 0x20019310

PPPosif:PPP is now created

CST: CST_notif_callback (Data Cache event=2)

CST: CST_notif_callback (Data Cache event=0)

CST: CST_send_message: data cache 0

CST: CST_notif_callback (Data Cache event=1)

CST: CST_send_message: data cache 1

CST: New State: CST_PPP_CONFIG_ON_GOING_STATE

CST: rt_state_ppp = DC_SERVICE_UNAVAIL. Nothing to do
CST: autom_event = no event 

CST: autom_event = no event 

//Application is restarting here.
Nx_TCP_Echo_Client application started.
Create IP instance...
Get IP Address...

 

srikanthpalvai_0-1712754292766.png

@MJAC.1  Any suggestions please

8 REPLIES 8
srikanthpalvai
Associate III

@st any inputs on this 

I have observed that it's failing here and then issuing the MODEM_REBOOT_STATE.

srikanthpalvai_0-1712848422754.png

srikanthpalvai_1-1712848519043.png


CST: AUTOM TASK: MODEM_REBOOT_STATE - MODEM_REBOOT_EVENT

@MJAC.1  Did you get a chance to look into this ?
is there anyone in ST to help me?

Hi @Pavel A. 
Could you please check this 
Here is the end log
I am not sure why nx_ppp_stop is resulting 11, in the ppposif_reconf(ppposif_config_timeout_timer_callback)
Need some inputs here, I was able to get the CONNECT from the SIM Modem

PPPosif:ppposif_client_config
IPC:IPC select 0x20019200
PPPosif:PPP is now created
PPPosif:ppposif_reconf
PPPosif:ERROR: nx_ppp_stop:11
PPPosif:ERROR: Unable to stop PPP instance
PPPosif:ppposif_config_timeout_timer_callback
LOG ERROR #4: channel=2 / errorId=1 / gravity=2
Datapack:<MAX SIZE INFO> msgtype=4 size=0 (biggest =78)
ATCore:********** AT_sendcmd msg_in_id:113
ATCModem:No data to unpack for SID 113
ATCModem API:enter reset_CMD_context()
ATCModem:<modem custom> build the cmd +CGATT (type=3, length=6)
ATCModem API:enter fCmdBuild_CGATT()
ATCModem:==== CMD TIMEOUT = 140000 ====
ATCModem:atcm_modem_build_cmd returned status = 0
ATCustom:atcc_getCmd returned status = 0
ATCore ERROR:DATA ongoing, can not send a command
LOG ERROR #5: channel=1 / errorId=8 / gravity=2
ATCore:action_rsp value = 0
ATCore:AT_sendcmd error: process AT transaction
Datapack:<MAX SIZE INFO> msgtype=42 size=2 (biggest =78)
ATCustom:atcc_get_error returned status = 0
LOG ERROR #6: channel=2 / errorId=1 / gravity=2
Datapack:<MAX SIZE INFO> msgtype=4 size=0 (biggest =78)
ATCore:********** AT_sendcmd msg_in_id:113
ATCModem:No data to unpack for SID 113
ATCModem API:enter reset_CMD_context()
ATCModem:<modem custom> build the cmd +CGATT (type=3, length=6)
ATCModem API:enter fCmdBuild_CGATT()
ATCModem:==== CMD TIMEOUT = 140000 ====
ATCModem:atcm_modem_build_cmd returned status = 0
ATCustom:atcc_getCmd returned status = 0
ATCore ERROR:DATA ongoing, can not send a command
LOG ERROR #7: channel=1 / errorId=8 / gravity=2
ATCore:action_rsp value = 0
ATCore:AT_sendcmd error: process AT transaction
Datapack:<MAX SIZE INFO> msgtype=42 size=2 (biggest =78)
ATCustom:atcc_get_error returned status = 0
LOG ERROR #8: channel=2 / errorId=1 / gravity=2
LOG ERROR #9: channel=2 / errorId=2 / gravity=3
Nx_TCP_Echo_Client application started.
                                       Create IP instance...
Get IP Address...

===== X-Cube-Cellular version : X-CUBE-CELLULAR-7.1.0 =====

 

Pavel A.
Evangelist III

This looks like some communication issue between the STM32 and modem - not getting the expected response

Together with this error: "ATCore ERROR:DATA ongoing, can not send a command"

Sorry I don't have this module so cannot loop deeper into it. 

@Pavel A. 
Thanks for quick response 
Could you please loop anyone who can assist me on this?

@srikanthpalvai While waiting for responses from ST engineers - have you looked at the web links in by previous replies? this and this.

 

 

@Pavel A. 
It's an issue with the modem, Tried with another modem now able to establish the connection.

PPPosif: our_ipaddr = xx.xx.xxx.174
PPPosif: his_ipaddr = 0.0.0.0
PPPosif: netmask = 255.255.255.255
PPPosif:

STM32 IP Address: xx.xx.xxx.174
DNS Server address: 8.8.8.8

Thanks for the support 🙂