Re: [lwip-users] LWIP+PPPos(GPRS)

2018-04-11 Thread vinimac



*I am designing a gateway and on my ATSAME53N20 (Atmel studio 7 IDE) I have
to connect a 3G modem(Quactel UG95) using a serial port. I can communicate
with the modem using AT commands. Now, I would like to use PPPos (PPP over
serial) library from LWIP 2.03 to enter in PPP mode. FreeRTOS has to
implement as this project will be running in a threaded environment.

Hi. This example helped me a lot:  pppos_client_main.c

 
.

It is working very good, but it is not processed through CHAP negotiation. 



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] LWIP+PPPos(GPRS)

2018-03-27 Thread Patrick Klos

On 3/27/2018 3:17 PM, Sylvain Rochet wrote:

Hi,

On Tue, Mar 27, 2018 at 06:52:44AM -0700, bakmurat wrote:

*Modem transmits the following data:
CONNECT 720
~ÿ}#À!}!}!} }8}"}&} } } } }#}$À#}%}}8}0D}'}"}(}"™Ë~...  ...~ÿ}
#À!}!}!} }8}"}&} } } } }#}$À#}%}}8}0D}'}"}(}"™Ë~
NO CARRIER

"NO CARRIER" indicate a failure, are you sure pre-PPP stage actually
work ?


Without timestamps on the data, it's hard to pin down exactly what's 
happening.


It looks like the modems connected, then your device received some 
serial data (which are apparently the PPP packets), followed by a 
disconnect (likely due to not getting answers to the packets the other 
side sent after a reasonable amount of time)?


Can you log the data your device is trying to send over the modem as 
well?  (and dumping the serial data in hex would make decoding the 
packets a lot easier)


Patrick Klos
Klos Technologies, Inc.


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] LWIP+PPPos(GPRS)

2018-03-27 Thread Sylvain Rochet
Hi,

On Tue, Mar 27, 2018 at 06:52:44AM -0700, bakmurat wrote:
> 
> *Modem transmits the following data:
> CONNECT 720   
>   
> ~ÿ}#À!}!}!} }8}"}&} } } } }#}$À#}%}}8}0D}'}"}(}"™Ë~...  ...~ÿ}
> #À!}!}!} }8}"}&} } } } }#}$À#}%}}8}0D}'}"}(}"™Ë~
>   
> NO CARRIER 

"NO CARRIER" indicate a failure, are you sure pre-PPP stage actually 
work ?

Sylvain


signature.asc
Description: Digital signature
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users