Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - [ppp connection] LCP phase failed.: (3 Items)
   
[ppp connection] LCP phase failed.  
Dear members, 

I have something the matter with ppp connection.

There are TWO kinds of configuration for connection with ppp.

case 1. legacy ppp + io-net stack + usb serial driver + hsdpa modem
case 2. new ppp + io-pkt stack + usb serial driver + hsdpa modem

The usb serial driver and hsdpa modem part are the same for two configuration.
(same source code, same binary and same hardware for modem)

In case 1, I confirmed that ppp connection is established.

But in case 2, the ppp connection is not established. In detail, LCP phase is not completed. QNX PC sent LCP request 
packet to hsdpa modem, but QNX PC could not receive the response from the modem. 

Is there anybody who can explain where to begin and how to solve this problem ?

If I have source codes for legacy ppp and io-net stack, I start to compare them to io-pkt stack and new ppp package. But
 I don't have legacy source code.

FYI, I've put log file for case 2.

Regard, 
Wayne.

=============================================================================
[/root/]#pppd debug call hsdpa &
[1] 978988
[/root/]#using channel 0
Using interface ppp0
Connect: ppp0 <--> /dev/usbser0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb8fda4b1> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
auth.c: Connection terminated.
Re: [ppp connection] LCP phase failed.  
Hi, 
I need your confimations.

I analyzed the flow of ppp connection. 
1) using io-net stack
2) using io-pkt stack

My test enviromnet is like below.

QNX PC(6.3.2) <---USB cable  ---> HSDPA modem
              -> I catched all the usb data between QNX PC and modem.

I found something wrong in case 2) in comparison with case 1).

In case 1, this is the successful case during LCP phase.

QNX PC                           HSDPA Modem
      (1)config request ----------->
      (2)<----------  config request
      (3)<----------  config ack
      (4)config ack ---------------->

In case 2, there are two kinds of results.
One is wrong magic number in message (3). The magic number is different from that in message (1). It should be same 
number, but that is not same.

The other is QNX PC doesn't response to message (2).
It doesn't send message (4) to HSDPA modem.

So, I'm wondering that whether PPPd didn't receive data from usb driver or not.
Actually HSDPA modem sent usb bulk in data to QNX PC(message 3).
Then PPPd of QNX PC should response to HSDPA modem in response to message (2) in my thought.

How can I check that pppd receive data from usb driver?
I think I should check that issues. Is right?

I'm confused that ppp link is established if I use io-net.
But connection is not working whenever I use io-pkt.
Even though I used the same usb serial driver.

Best regards,
Wayne
Re: [ppp connection] LCP phase failed.  
......
I found something wrong in case 2) in comparison with case 1).

In case 1, this is the successful case during LCP phase.

QNX PC                           HSDPA Modem
      (1)config request ----------->
      (2)<----------  config request
      (3)<----------  config ack
      (4)config ack ---------------->

In case 2, there are two kinds of results.
One is wrong magic number in message (3). The magic number is different from that in message (1). It should be same 
number, but that is not same.

.....

Would you please check and compare
a) the request packet sent out from qnx box. Compare the difference between the one that sent by io-net and by io-pkt. 
Because this is the first and only packet sent from qnx box that causes the different response (wrong magic number and/
or no response) from the server (through usb)
b) perhaps it would be better for you to also run pppd in debug mode by inserting the helper function that Andrew gave 
you to print packets that pppd exactly received/send/ on the terminal. 

Thanks

Weijie