Fwd: [RFC] g_serial: Real tty device passthrough.

"Felipe Balbi" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
---------- Forwarded message ----------
From: Felipe Balbi <[email protected]>
Date: Mar 9, 2007 2:19 PM
Subject: Re: [linux-usb-devel] [RFC] g_serial: Real tty device passthrough.
To: Stefan Schmidt <[email protected]>


On 3/8/07, Stefan Schmidt <[email protected]> wrote:
> 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.
Ok, this can be done but g_serial was developed to use Major number
127... I don't know that you could just pass another device to the
module... you should write some glue module between g_serial and your
"GSM" module. And maybe you should modify g_serial a little bit for
this to work fine.

If you could show us some of the code that creates the /dev/ttySAC0
maybe we could point you something.

Which smartphone are you using? Which model? Manufacturer? Which
linux-kernel? etc...


> 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
This you should implement... g_serial doesn't yet have a way for
Major/Minor number changing...



> should route the whole communication to /dev/ttySAC0 instead of
> /dev/ttygs* .
>
> Anybody already worked on something like this?

I don't have any smartphone to test... but we can chat about it...



--
Best Regards,

Felipe Balbi
[email protected]


-- 
Best Regards,

Felipe Balbi
[email protected]

-------------------------------------------------------------------------
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
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.