From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 23 Mar 2014 17:53:22 -0400 To: 9fans@9fans.net Message-ID: <9838602a5db28f523fec74b5e8a9c2ab@brasstown.quanstro.net> In-Reply-To: <20140323213208.A38E8B827@mail.bitblocks.com> References: <40707a306f2cb1caf97b21f639f8a9f5@brasstown.quanstro.net> <590d4ca16a9d61afc0bdc6b4d16862af@brasstown.quanstro.net> <20140323213208.A38E8B827@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] usb/serial control open Topicbox-Message-UUID: cec6fda4-ead8-11e9-9d60-3106f5b1d025 > A similar idea here would be to have a "default" command to > for default settings. When a device is opened, it is > initialized with these settings. The reason I like this is > because then I don't need to teach every serial IO program > what setting to use (often the other end is a dumb device > requiring its own fixed and peculiar settings). i think it is even easier to set the state up properly with cpurc or consolefs' configuration file, and have the various programs not even care that they're talking to a serial port. rdb, for example, was one program that got this wrong. it was setting the baud, which backfired in some cases. not doing anything is a better solution. you can always echo bxyz>/dev/eiaXXctl, assuming it really is a serial line. :-) - erik