Skip to main content
Explorer
April 10, 2024
Question

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

  • April 10, 2024
  • 2 replies
  • 2530 views

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

    This topic has been closed for replies.

    2 replies

    Explorer
    April 11, 2024

    @st any inputs on this 

    Explorer
    April 11, 2024

    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

    Super User
    April 16, 2024

    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. 

    Explorer
    April 16, 2024

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

    Super User
    April 16, 2024

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