Networking Forums

Networking Forums > Computer Networking > Linux Networking > Encapsulating packets for multiplexed modem?

Reply
Thread Tools Display Modes

Encapsulating packets for multiplexed modem?

 
 
addams013
Guest
Posts: n/a

 
      02-01-2007, 11:48 AM
I'm trying to use an external USB wireless modem in a "multiplexed
mode". This means that the modem will respond to PPP commands and AT
commands at the same time, provided that they are couched in simple
packets that disambiguate them to the modem.

One packet header tells the modem that the packet is meant to be
processed as data (PPP). Another packet header informs the modem that
the packet is meant to be processed as an AT command.

This is useful because the modem is aware of certain things that it
would be useful for the Linux box to know and keep track of -- signal
strength, location, and a number of other pieces of information. That
information can be retrieved with AT commands; I'd like to get it
without having to tear down and re-establish PPP.

I'm trying to figure out which functions in Linux (kernel 2.4.32) I
will need to modify in order to do this. I'm looking at
ppp_async_push() and ppp_async_input() in ppp_async.c. Can anyone
with insight into the kind of thing I'm trying to do let me know if
I'm headed in the right direction, or let me know if there's some
other direction I should be going in, or just be willing to lend me
some friendly advice? Kernel hacking has got me a little nervous.

 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      02-06-2007, 05:13 PM
"addams013" <(E-Mail Removed)> writes:

>I'm trying to use an external USB wireless modem in a "multiplexed
>mode". This means that the modem will respond to PPP commands and AT
>commands at the same time, provided that they are couched in simple
>packets that disambiguate them to the modem.


>One packet header tells the modem that the packet is meant to be
>processed as data (PPP). Another packet header informs the modem that
>the packet is meant to be processed as an AT command.


>This is useful because the modem is aware of certain things that it
>would be useful for the Linux box to know and keep track of -- signal
>strength, location, and a number of other pieces of information. That
>information can be retrieved with AT commands; I'd like to get it
>without having to tear down and re-establish PPP.


>I'm trying to figure out which functions in Linux (kernel 2.4.32) I
>will need to modify in order to do this. I'm looking at
>ppp_async_push() and ppp_async_input() in ppp_async.c. Can anyone
>with insight into the kind of thing I'm trying to do let me know if
>I'm headed in the right direction, or let me know if there's some
>other direction I should be going in, or just be willing to lend me
>some friendly advice? Kernel hacking has got me a little nervous.



It should. And playing with a carefully crafted piece of code should get
you far more nervous.
Anyway, the modem already has such. One second of abxolute silence, +++ and
another second of absolute silence tells teh modem to go into command mode.
And then there is an AT commend (ATO0 on the modem I have immediate access
to) to tell the modem to go back into
communication mode. Of course, the far modem may well hang up the line when
your modem behaves in this way, but you cannot make an ommelete without
breaking eggs.

Alternatively buy a modem with separate command and data links. I believe
they exist-- and cost a lot. But then if you value your time at more than
10 cents an hour, you would probably be able to buy the modem manufacturing
company with the time you spend on your project.

I do not know if this is friendly advice.

 
Reply With Quote
 
James Carlson
Guest
Posts: n/a

 
      02-14-2007, 12:31 PM
"addams013" <(E-Mail Removed)> writes:
> I'm trying to figure out which functions in Linux (kernel 2.4.32) I
> will need to modify in order to do this. I'm looking at
> ppp_async_push() and ppp_async_input() in ppp_async.c. Can anyone


Yep, this is the right place to be looking.

> with insight into the kind of thing I'm trying to do let me know if
> I'm headed in the right direction, or let me know if there's some
> other direction I should be going in, or just be willing to lend me
> some friendly advice? Kernel hacking has got me a little nervous.


There's nothing quite like working without a net.

--
James Carlson, Solaris Networking <(E-Mail Removed)>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RX-DRP packets ?? Miss Terre Linux Networking 6 09-14-2007 05:42 AM
netstat -s output: "packets pruned" and "packets collapsed" roybatty Linux Networking 0 07-20-2007 08:44 PM
Newbie wants to look at other people's packets (promiscuous mode fails to capture packets) George D. Wireless Internet 1 07-14-2007 07:09 AM
GRE packets ignored by XP MCE? rob Wireless Networks 0 02-07-2007 08:23 PM
First packets not being sent - ARP? Daniel Linux Networking 4 11-07-2003 05:49 AM



1 2 3 4 5 6 7 8 9 10 11