[RFC] g_serial: Real tty device passthrough.

Stefan Schmidt <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hello.

We have a linux smartphone here with the GSM modem on /dev/ttySAC0 .
As now like to make this tty available to the host through g_serial.
This allows us faster development and testing.

The first idea we had was to splice /dev/ttygs* and /dev/ttySAC0
together in phone userspace. But how can we handle things like
baudrate change on the host, etc. The passthrough should be as
transparent as possible.

We now think about a solution like the ine used in file_storage.c .

Let the g_serial driver directly communicate with the device. Loading
the driver with something like

modprobe g_serial device=ttySAC0

should route the whole communication to /dev/ttySAC0 instead of
/dev/ttygs* .

Anybody already worked on something like this?

As we like to include all our code into mainline all comments on such
a solution are more then welcome.

regards
Stefan Schmidt

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 241 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://www.datenfreihafen.org/contact.html

iD8DBQFF8JUabNSsvd31FmURAsD6AJ94Yl836LNi5ww3aRHoU6ofRFKoAgCfQ0Wi
f6NBPMbuf/8woL3HJ58zw3M=
=+ZGc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.