public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Dalibor Kranjcic <dalibor.kranjcic@ultra.si>
To: linux-serial@vger.kernel.org
Subject: modem multiplexing mode?
Date: 21 Aug 2003 09:28:18 +0200	[thread overview]
Message-ID: <1061450898.1315.16.camel@dalibork.ultra.si> (raw)



Hi,

I have managed to modify serial driver for the Wavecom modem in order to
send AT commands and
PPP traffic separately with use of external fifo:

When traffic comes to the serial driver I check if it is AT or DATA. If
DATA (PPP) traffic comes to serial I proceed it normally, if AT traffic
comes I write it to the external fifo (let's say /dev/ATtraffic).

Sending traffic to serial driver is a little bit tricky. After writing
to fifo I need an entry point to the driver. 
Driver must know that something was written to fifo. So I open an
'dummy' device for example /dev/ttyS12. This allows me to jump into
driver's rs_open method. From there I can read AT commands written to
fifo previously and proceed them to the TX line. Of course this traffic
must be multiplexed before coming to TX lines and I also have to watch
out not to break ppp packets in the middle. 

This works well and I'm really able to send/receive AT packets while ppp
is up, but maybe there is better way to do it?

What do you think about this solution?
Thanks for any advice...


Dalibor.




             reply	other threads:[~2003-08-21  7:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21  7:28 Dalibor Kranjcic [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-19  9:51 modem multiplexing mode? Dalibor Kranjcic
2003-08-19 13:43 ` Theodore Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1061450898.1315.16.camel@dalibork.ultra.si \
    --to=dalibor.kranjcic@ultra.si \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox