Making a serial multiplexer (new driver)
Hi i need to write a driver that must multiplex an serial channel my driver will have 3 interfaces and i must communicate with another interface (midleware) like /dev/ttyS2 for example, how could i write a driver that will communicate with my existing uart ???
i have a component that could be multiplexed in 3 logical channels throw my single physical channel that are accessed with a normal serial interface using uart, how could this be possible ?
this is necessary to be transparent to software user level.
Signature · 2 lines
Luís Vitório Cargnini <[email protected]> Digitel S/A
Quoted 9 lines · On Mon, 3 Jan 2005, [ISO-8859-1] Luís Vitório Cargnini wrote:
Hi i need to write a driver that must multiplex an serial channel my driver will have 3 interfaces and i must communicate with another interface (midleware) like
/dev/ttyS2for example, how could i write a driver that will communicate with my existing uart ???i have a component that could be multiplexed in 3 logical channels throw my single physical channel that are accessed with a normal serial interface using uart, how could this be possible ?
this is necessary to be transparent to software user level.
Do it in userspace using fifos?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: (OT?) Making a serial multiplexer (new driver)
In reply to Luís Vitório CargniniHi,
I am working on something like that (GSM-07.10 mux). Contact me if you are interested.
Greetings,
Signature · 2 lines
David Jander Protonic Holland.
it can't be done in user space
why?
Because the multiplexer has an proprietary pŕotocol 8-(
so i'll encapsulate the communication of 3 channels to communicate with physical device and my user-level applications like pppd don't need to know the mux protocol, this will be transparent for the user applications.
Quoted 23 lines · Geert Uytterhoeven
Quoted 9 lines · On Mon, 3 Jan 2005, [ISO-8859-1] Luís Vitório Cargnini wrote:
Hi i need to write a driver that must multiplex an serial channel my driver will have 3 interfaces and i must communicate with another interface (midleware) like
/dev/ttyS2for example, how could i write a driver that will communicate with my existing uart ???i have a component that could be multiplexed in 3 logical channels throw my single physical channel that are accessed with a normal serial interface using uart, how could this be possible ?
this is necessary to be transparent to software user level.Do it in userspace using fifos?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Signature · 2 lines
Luís Vitório Cargnini <[email protected]> Digitel S/A