From: Matthew W. <mat...@us...> - 2007-10-06 12:19:51
|
David Norwood wrote: > Anyway, I would like to add perl code to my misterhouse interface to set > the baudrate to 312500. Does anyone know how to do this with the serial > port driver in misterhouse? This is how it's done in the c code linux > driver: David, Here's a long winded answer: The version of Device::SerialPort that we include with mh doesn't support non-standard serial ports. However, the latest version in CPAN does, but based on the comments in the source, it is only supported on OSX. Device::SerialPort is based on POSIX interfaces but is looks like OSX has a non-standard POSIX extension to allow custom rates. It might work in Linux, but I doubt it. I suggest instead that you use setserial outside of mh. "man setserial" will show you how to set custom baud rates and divisors. You may need to patch mh to allow a "don't touch the baud rate on this serial port" setting. Matt -- GPG Key ID: 722441BA MisterHouse Wiki: http://misterhouse.wikispaces.com/ |