How to write a new line discipline?

2004-03-15 Thread Daniel O'Connor
Hi, My company uses RS485 to talk to various pieces of hardware, and currently to do this we have a hacked up copy of sio which talks to a conventional RS485 card, while this works well it would be nicer to be able to use different 485 cards via the puc driver instead of having to use a custom d

Re: How to write a new line discipline?

2004-03-16 Thread Bernd Walter
On Tue, Mar 16, 2004 at 04:29:04PM +1030, Daniel O'Connor wrote: > Hi, > My company uses RS485 to talk to various pieces of hardware, and currently to > do this we have a hacked up copy of sio which talks to a conventional RS485 > card, while this works well it would be nicer to be able to use di

Re: How to write a new line discipline?

2004-03-16 Thread Daniel O'Connor
On Tue, 16 Mar 2004 19:04, Bernd Walter wrote: > Don't forget that there are chips (e.g. uftdi(4) based) that can > control txenable themself without OS interaction. > You can't expect the userland software to know. Well, no, but I envisage this is something the line discipline does when it needs

Re: How to write a new line discipline?

2004-03-17 Thread Stefan Bethke
Am 16.03.2004 um 06:59 schrieb Daniel O'Connor: The current disciplines seem to be either very very old, or 'hacks' for things like PPP or SLIP :( In another life, I put together a small line discipline to "talk" to dumb UPSes that signal via DTR and RTS, and can be shut down via DSR or CTS.