From: Manuel Jander <manuel.jander@gmail.com>
To: linux-serial@vger.kernel.org
Subject: Serial loop back virtual device
Date: Thu, 2 Jul 2009 22:08:52 +0200 [thread overview]
Message-ID: <21ed1c370907021308g18fb0ab5r895ee8871244a341@mail.gmail.com> (raw)
Hi there,
hopefuly this message is going to the right people. I wrote a small
virtual serial loop back driver and I have some questions in regard to
that.
First, the driver basically creates a set of serial port device pairs
(/dev/ttySL0, /dev/ttySL1, etc) and if some programs talks to one of
this ports, the counterpart port will receive all data and vice versa.
This is usful for writing a simulator of a hardware device which has a
serial port, without having to connect to real serial ports together
with a null modem cable or something like that. I'm using to develop a
simulator of Webasto W-Bus (ODB-II) car heating device. The driver can
optionally do line echo, required for K-Line emulation.
Now the questions:
- Did I really need to write a driver like this or are there any
trivial tricks to accomplish this somehow else ? Note, that the
software to talk to my simulator is a propietary windows executable
(using wine), thus I can not modify it. And my computer has only one
single serial port (and I would need to buy a second ODB-II hardware
adapter anyway, software is way much cheaper).
- Is this useful to anyone ? I think it is :) and it would be kind of
stupid if anyone requiring this would have to either use 2 hardware
ports or write another driver like this. But maybe I'm wrong, I dont
know.
- Is this driver worth to be part of the Linux mainline tree ?
Probably some adjustment would be required...
source code is available here:
http://micro.homelinux.net/~mjander/serial_loop.zip
It did built on 2.6.28, hopefuly it also does on the current vanilla tree.
Best Regards,
Manuel
next reply other threads:[~2009-07-02 20:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 20:08 Manuel Jander [this message]
2009-07-02 20:55 ` Serial loop back virtual device Grant Edwards
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=21ed1c370907021308g18fb0ab5r895ee8871244a341@mail.gmail.com \
--to=manuel.jander@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).