LWIP/PPPOS for GSM module

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

LWIP/PPPOS for GSM module

Devanand Biradar
Hello ,
I am using NXP DEVKIT MCP5748G.
I am having example code of lwip with freertos.
I want to communicate with gsm module using lwip/pppos.
I am getting lcp packets from gsm module for negotiating, but I am not getting the ip address from module & after some seconds I am getting NO CARRIER from module.
Please suggest some basic needs OR what I am missing in this module.


Regards
Dev

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Sylvain Rochet
Hi Devanand,

On Wed, Nov 14, 2018 at 12:27:20AM +0530, Devanand Biradar wrote:
> Hello ,
> I am using NXP DEVKIT MCP5748G.
> I am having example code of lwip with freertos.
> I want to communicate with gsm module using lwip/pppos.
> I am getting lcp packets from gsm module for negotiating, but I am not
> getting the ip address from module & after some seconds I am getting NO
> CARRIER from module.
> Please suggest some basic needs OR what I am missing in this module.

This is not really helpful, could you please provide a serial trace of
the AT commands to setup the modem prior PPP start and a full trace of
all PPP control packets using PPP_DEBUG with PRINTPKT_SUPPORT enabled ?

Sylvain

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
Ok 
I will provide you all the details.
I need to enable the lwip debug.

Dev

On 14 Nov 2018 4:55 am, "Sylvain Rochet" <[hidden email]> wrote:
Hi Devanand,


On Wed, Nov 14, 2018 at 12:27:20AM +0530, Devanand Biradar wrote:
> Hello ,
> I am using NXP DEVKIT MCP5748G.
> I am having example code of lwip with freertos.
> I want to communicate with gsm module using lwip/pppos.
> I am getting lcp packets from gsm module for negotiating, but I am not
> getting the ip address from module & after some seconds I am getting NO
> CARRIER from module.
> Please suggest some basic needs OR what I am missing in this module.

This is not really helpful, could you please provide a serial trace of
the AT commands to setup the modem prior PPP start and a full trace of
all PPP control packets using PPP_DEBUG with PRINTPKT_SUPPORT enabled ?

Sylvain
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Ajay Bhargav (SiWi)

What version of lwIP are you using on your board?

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 7:58 AM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Ok 

I will provide you all the details.

I need to enable the lwip debug.

 

Dev


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
Hello,

the version of LWIP  I am using is 2_0_2

On Wed, Nov 14, 2018 at 2:24 PM Ajay Bhargav <[hidden email]> wrote:

What version of lwIP are you using on your board?

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 7:58 AM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Ok 

I will provide you all the details.

I need to enable the lwip debug.

 

Dev

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
In reply to this post by Sylvain Rochet
Hello Sylvain,

This are the commands I am using before PPP session --->

#define msg  "AT\r\n"
#define msg1  "ATZ\r\n"
#define msg2  "ATE0\r\n"
#define msg3  "AT+CFUN=1\r"
#define msg4  "AT+CNMI=0,0,0,0,0\r"
#define msg5  "AT+CPIN?\r"
#define msg6  "AT+CREG?\r"
#define msg7  "AT+CGDCONT=1,\"IP\",\"internet\"\r"
#define msg8  "AT+CGDATA=\"PPP\",1\r"

After msg8 I have received the CONNECT response & after that the PPP session starts.

I need to enable the LWIP debug.

DEV



On Wed, Nov 14, 2018 at 4:55 AM Sylvain Rochet <[hidden email]> wrote:
Hi Devanand,

On Wed, Nov 14, 2018 at 12:27:20AM +0530, Devanand Biradar wrote:
> Hello ,
> I am using NXP DEVKIT MCP5748G.
> I am having example code of lwip with freertos.
> I want to communicate with gsm module using lwip/pppos.
> I am getting lcp packets from gsm module for negotiating, but I am not
> getting the ip address from module & after some seconds I am getting NO
> CARRIER from module.
> Please suggest some basic needs OR what I am missing in this module.

This is not really helpful, could you please provide a serial trace of
the AT commands to setup the modem prior PPP start and a full trace of
all PPP control packets using PPP_DEBUG with PRINTPKT_SUPPORT enabled ?

Sylvain
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Ajay Bhargav (SiWi)

Dev,

 

I think before entering data mode you need to activate the PDP context using AT+CGACT=1,1

So before msg8 you need to send that command.

 

Try it.

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 8:43 PM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Hello Sylvain,

 

This are the commands I am using before PPP session --->

 

#define msg  "AT\r\n"

#define msg1  "ATZ\r\n"

#define msg2  "ATE0\r\n"

#define msg3  "AT+CFUN=1\r"

#define msg4  "AT+CNMI=0,0,0,0,0\r"

#define msg5  "AT+CPIN?\r"

#define msg6  "AT+CREG?\r"

#define msg7  "AT+CGDCONT=1,\"IP\",\"internet\"\r"

#define msg8  "AT+CGDATA=\"PPP\",1\r"

 

After msg8 I have received the CONNECT response & after that the PPP session starts.

 

I need to enable the LWIP debug.

 

DEV


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Shlomi Vaknin
Hey,

Please give the log of the ppp as well as your code to initialize the lwip stack. Your at commands sequence look fine. You must not call "at+cgact=1,1" since ppp stack does this functionality

בתאריך יום ה׳, 15 בנוב׳ 2018, 12:00, מאת Ajay Bhargav <[hidden email]>:

Dev,

 

I think before entering data mode you need to activate the PDP context using AT+CGACT=1,1

So before msg8 you need to send that command.

 

Try it.

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 8:43 PM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Hello Sylvain,

 

This are the commands I am using before PPP session --->

 

#define msg  "AT\r\n"

#define msg1  "ATZ\r\n"

#define msg2  "ATE0\r\n"

#define msg3  "AT+CFUN=1\r"

#define msg4  "AT+CNMI=0,0,0,0,0\r"

#define msg5  "AT+CPIN?\r"

#define msg6  "AT+CREG?\r"

#define msg7  "AT+CGDCONT=1,\"IP\",\"internet\"\r"

#define msg8  "AT+CGDATA=\"PPP\",1\r"

 

After msg8 I have received the CONNECT response & after that the PPP session starts.

 

I need to enable the LWIP debug.

 

DEV

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
Hello, 
I am not able to enable the PPP_DEBUG to log.
Please suggest the sorrect steps to Enable PPP_DEBUG with PRINTPKT_SUPPORT enabled

On Thu, Nov 15, 2018 at 4:10 PM Shlomi Vaknin <[hidden email]> wrote:
Hey,

Please give the log of the ppp as well as your code to initialize the lwip stack. Your at commands sequence look fine. You must not call "at+cgact=1,1" since ppp stack does this functionality

בתאריך יום ה׳, 15 בנוב׳ 2018, 12:00, מאת Ajay Bhargav <[hidden email]>:

Dev,

 

I think before entering data mode you need to activate the PDP context using AT+CGACT=1,1

So before msg8 you need to send that command.

 

Try it.

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 8:43 PM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Hello Sylvain,

 

This are the commands I am using before PPP session --->

 

#define msg  "AT\r\n"

#define msg1  "ATZ\r\n"

#define msg2  "ATE0\r\n"

#define msg3  "AT+CFUN=1\r"

#define msg4  "AT+CNMI=0,0,0,0,0\r"

#define msg5  "AT+CPIN?\r"

#define msg6  "AT+CREG?\r"

#define msg7  "AT+CGDCONT=1,\"IP\",\"internet\"\r"

#define msg8  "AT+CGDATA=\"PPP\",1\r"

 

After msg8 I have received the CONNECT response & after that the PPP session starts.

 

I need to enable the LWIP debug.

 

DEV

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
Hello This are the PPP sequence I am getting from GSM Module

PPP Sequence from GSM MODULE

7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E
7E FF 7D 23 C0 21 7D 23 7D 21 7D 20 7D 2A 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 6C 50 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 23 7D 22 7D 20 7D 2A 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 6B 86 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
0D 0A 4E 4F 20 43 41 52 52 49 45 52 0D 0A  -- THIS IS NO CARRIER response

Need to know what exactly it is sending to NXP DEVKIT MCP5748G 

DEV

On Fri, Nov 16, 2018 at 7:13 AM Devanand Biradar <[hidden email]> wrote:
Hello, 
I am not able to enable the PPP_DEBUG to log.
Please suggest the sorrect steps to Enable PPP_DEBUG with PRINTPKT_SUPPORT enabled

On Thu, Nov 15, 2018 at 4:10 PM Shlomi Vaknin <[hidden email]> wrote:
Hey,

Please give the log of the ppp as well as your code to initialize the lwip stack. Your at commands sequence look fine. You must not call "at+cgact=1,1" since ppp stack does this functionality

בתאריך יום ה׳, 15 בנוב׳ 2018, 12:00, מאת Ajay Bhargav <[hidden email]>:

Dev,

 

I think before entering data mode you need to activate the PDP context using AT+CGACT=1,1

So before msg8 you need to send that command.

 

Try it.

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 8:43 PM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Hello Sylvain,

 

This are the commands I am using before PPP session --->

 

#define msg  "AT\r\n"

#define msg1  "ATZ\r\n"

#define msg2  "ATE0\r\n"

#define msg3  "AT+CFUN=1\r"

#define msg4  "AT+CNMI=0,0,0,0,0\r"

#define msg5  "AT+CPIN?\r"

#define msg6  "AT+CREG?\r"

#define msg7  "AT+CGDCONT=1,\"IP\",\"internet\"\r"

#define msg8  "AT+CGDATA=\"PPP\",1\r"

 

After msg8 I have received the CONNECT response & after that the PPP session starts.

 

I need to enable the LWIP debug.

 

DEV

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
Hello, This are the PPP sequence Transfer from LWIP Library TO GSM MODULE.

7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 47 7D 23 5D 47 7D 27 7D 22 7D 28 7D 22 FE C4 7E 
7E FF 7D 23 C0 21 7D 21 7D 22 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 50 29 85 F6 7D 27 7D 22 7D 28 7D 22 CD 7D 25 7E 
7E FF 7D 23 C0 21 7D 21 7D 22 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 50 29 85 F6 7D 27 7D 22 7D 28 7D 22 CD 7D 25 7E 
7E FF 7D 23 C0 21 7D 21 7D 22 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 50 29 85 F6 7D 27 7D 22 7D 28 7D 22 CD 7D 25 7E 


DEV

On Sun, Nov 18, 2018 at 1:23 PM Devanand Biradar <[hidden email]> wrote:
Hello This are the PPP sequence I am getting from GSM Module

PPP Sequence from GSM MODULE

7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E
7E FF 7D 23 C0 21 7D 23 7D 21 7D 20 7D 2A 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 6C 50 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 23 7D 22 7D 20 7D 2A 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 6B 86 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 32 7D 22 7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 7D 27 7D 22 7D 28 7D 22 55 83 7E 
0D 0A 4E 4F 20 43 41 52 52 49 45 52 0D 0A  -- THIS IS NO CARRIER response

Need to know what exactly it is sending to NXP DEVKIT MCP5748G 

DEV

On Fri, Nov 16, 2018 at 7:13 AM Devanand Biradar <[hidden email]> wrote:
Hello, 
I am not able to enable the PPP_DEBUG to log.
Please suggest the sorrect steps to Enable PPP_DEBUG with PRINTPKT_SUPPORT enabled

On Thu, Nov 15, 2018 at 4:10 PM Shlomi Vaknin <[hidden email]> wrote:
Hey,

Please give the log of the ppp as well as your code to initialize the lwip stack. Your at commands sequence look fine. You must not call "at+cgact=1,1" since ppp stack does this functionality

בתאריך יום ה׳, 15 בנוב׳ 2018, 12:00, מאת Ajay Bhargav <[hidden email]>:

Dev,

 

I think before entering data mode you need to activate the PDP context using AT+CGACT=1,1

So before msg8 you need to send that command.

 

Try it.

 

Ajay

 

From: [hidden email]
Sent: Wednesday, November 14, 2018 8:43 PM
To: [hidden email]
Subject: Re: [lwip-users] LWIP/PPPOS for GSM module

 

Hello Sylvain,

 

This are the commands I am using before PPP session --->

 

#define msg  "AT\r\n"

#define msg1  "ATZ\r\n"

#define msg2  "ATE0\r\n"

#define msg3  "AT+CFUN=1\r"

#define msg4  "AT+CNMI=0,0,0,0,0\r"

#define msg5  "AT+CPIN?\r"

#define msg6  "AT+CREG?\r"

#define msg7  "AT+CGDCONT=1,\"IP\",\"internet\"\r"

#define msg8  "AT+CGDATA=\"PPP\",1\r"

 

After msg8 I have received the CONNECT response & after that the PPP session starts.

 

I need to enable the LWIP debug.

 

DEV

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: LWIP/PPPOS for GSM module

Devanand Biradar
In reply to this post by Sylvain Rochet
Hello Sylvain,

This are the logs I am getting.
Is any point is missing to Enable in Lwip/pppos.
Also will you guide how to receive the ppp packets from gsm module.

ppp phase changed[0]: phase=0
ppp_connect[0]: holdoff=0
ppp phase changed[0]: phase=3

pppos_connect: unit 0: connecting
ppp_start[0]
ppp phase changed[0]: phase=6

pppos_send_config[0]: out_accm=FF FF FF FF
ppp_send_config[0]

pppos_recv_config[0]: in_accm=FF FF FF FF
ppp_recv_config[0]

pppos_write[0]: output failed len=24
ppp_start[0]: finished

pppos_input[0]: got 14 bytes

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

13pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: got 44 bytes

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <10>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <13>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <10>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <13>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <10>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

pppos_input[0]: Dropping ACCM char <0>

DEV



On Wed, Nov 14, 2018 at 4:55 AM Sylvain Rochet <[hidden email]> wrote:
Hi Devanand,

On Wed, Nov 14, 2018 at 12:27:20AM +0530, Devanand Biradar wrote:
> Hello ,
> I am using NXP DEVKIT MCP5748G.
> I am having example code of lwip with freertos.
> I want to communicate with gsm module using lwip/pppos.
> I am getting lcp packets from gsm module for negotiating, but I am not
> getting the ip address from module & after some seconds I am getting NO
> CARRIER from module.
> Please suggest some basic needs OR what I am missing in this module.

This is not really helpful, could you please provide a serial trace of
the AT commands to setup the modem prior PPP start and a full trace of
all PPP control packets using PPP_DEBUG with PRINTPKT_SUPPORT enabled ?

Sylvain
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users