---------- 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
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to