Skip to contentSkip to conversation

pppd and AT+WMUX(Multiplex mode)

DISCUSSION Simon Chow 3 participants 4 messages Jul 21, 2004 – Jul 23, 2004 PPP protocol drivers and compressors

lore
Share & tools
lore

Simon Chow

author
#0 lore raw

I am researching how to handle the AT packets and Data packets offered by the Wavecom GSM modem in AT+WMUX=1 mode. I want to modify the pppd programme and I think that the tty.c in pppd may be the key to change. The charshunt function manipulates both the raw bytes sent from and received by the serial port. However, I am still in an initial stage.

I wonder if the pppd tool can handle the multiplex mode offered by Wavecom GSM modem. Thanks.

#1 lore raw
Quoted 5 lines · Simon Chow

I am researching how to handle the AT packets and Data packets offered by the Wavecom GSM modem in AT+WMUX=1 mode. I want to modify the pppd programme and I think that the tty.c in pppd may be the key to change. The charshunt function manipulates both the raw bytes sent from and received by the serial port. However, I am still in an initial stage.

I don't think that analysis is right. The charshunt task is invoked only in a few cases (e.g., where the 'record', 'notty', or 'socket' options are used), and isn't the normal data path. The normal data path is in the kernel, not user space.

Quoted 2 lines

I wonder if the pppd tool can handle the multiplex mode offered by Wavecom GSM modem. Thanks.

Not today. I think you'd have to modify the PPP modules in the Linux kernel to detect the switching mechanism and feed the data up to pppd first. Otherwise, it'll probably be handled as bad PPP frames and discarded.

Signature · 1 line
James Carlson                                 <[email protected]>
#2 lore raw
In reply to Simon Chow

Continuing with the same issue...
I´m trying to do the same with the same modem.
I´m thinking in use a 'virtual' ttyS, changing the device driver. So I would have a point where I could extarct the headers (data or commands), almost from the port.
Am I wrong?

Thanks

Miguel

----- Original Message -----
From: <[email protected]>
To: "Simon Chow" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, July 21, 2004 5:44 PM
Subject: Re: pppd and AT+WMUX(Multiplex mode)

Quoted 2 lines
Quoted 1 line · Simon Chow

I am researching how to handle the AT packets and Data packets offered

by

Quoted 1 line
Quoted 1 line

the Wavecom GSM modem in AT+WMUX=1 mode. I want to modify the pppd

programme

Quoted 1 line
Quoted 1 line

and I think that the tty.c in pppd may be the key to change. The

charshunt

Quoted 1 line
Quoted 1 line

function manipulates both the raw bytes sent from and received by the

serial

Quoted 8 lines
Quoted 1 line

port. However, I am still in an initial stage.

I don't think that analysis is right. The charshunt task is invoked only in a few cases (e.g., where the 'record', 'notty', or 'socket' options are used), and isn't the normal data path. The normal data path is in the kernel, not user space.

Quoted 1 line

I wonder if the pppd tool can handle the multiplex mode offered by

Wavecom

Quoted 13 lines
Quoted 1 line

GSM modem. Thanks.

Not today. I think you'd have to modify the PPP modules in the Linux kernel to detect the switching mechanism and feed the data up to pppd first. Otherwise, it'll probably be handled as bad PPP frames and discarded.

Signature · 5 lines
James Carlson                                 <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#3 lore raw
In reply to Simon Chow

<[email protected]> wrote in message news:[email protected]...

Quoted 2 lines
Quoted 1 line · Simon Chow

I am researching how to handle the AT packets and Data packets offered

by

Quoted 1 line
Quoted 1 line

the Wavecom GSM modem in AT+WMUX=1 mode. I want to modify the pppd

programme

Quoted 1 line
Quoted 1 line

and I think that the tty.c in pppd may be the key to change. The

charshunt

Quoted 1 line
Quoted 1 line

function manipulates both the raw bytes sent from and received by the

serial

Quoted 8 lines
Quoted 1 line

port. However, I am still in an initial stage.

I don't think that analysis is right. The charshunt task is invoked only in a few cases (e.g., where the 'record', 'notty', or 'socket' options are used), and isn't the normal data path. The normal data path is in the kernel, not user space.

Quoted 1 line

I wonder if the pppd tool can handle the multiplex mode offered by

Wavecom

Quoted 14 lines
Quoted 1 line

GSM modem. Thanks.

Not today. I think you'd have to modify the PPP modules in the Linux kernel to detect the switching mechanism and feed the data up to pppd first. Otherwise, it'll probably be handled as bad PPP frames and discarded.

Signature · 5 lines
James Carlson                                 <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

How about I modify the ppp_async_input function in ppp_async.c to detect the 0xAA and 0xDD, and the ppp_async_push function to encapsulate the PPP frame with 0xDD?