From: marcantonio <m....@gm...> - 2007-08-05 12:04:52
|
Matthew, thank you for your kind hints. I followed your suggestion of figuring out what the real problem was. As I previously mentioned, I am running mh on a macmini (osx). This implies a unix-style serial port management by the os; since the macmini has no physical serial ports, I had to rely on the CM11 usb-to-serial adapter, which worked quite well. A few days ago I reorganized electrical wires, usb devices and positions, and I added an external USB hard disk storage to the same USB hub that the CM11 is connected on. It looks like this external hard disk is disturbing the usb bandwidth enough that the 'virtual' serial port associated with the CM11 usb adapter is briefly eclipsed. I suppose that this causes the related tty device to temporarily disappear and as a result, mh does not find the device anymore. Still, I think it would be nice for mh to be able to recover from such a failure. MH does handle well the case where the CM11 does not communicate anymore, but the sudden loss of the comm port at the device level seems to lead to an unrecoverable condition. I will modify SerialPort.pm to see if a good "parachute" can be implemented and report back to the group. Marcantonio Matthew Williams wrote: > Marcantonio, > > The carp function is used to report these errors. There is no standard way > to make misterhouse die after x number of "carp"s. > > A simple hack to make this happen for you would be to add a line to > mh/lib/site/Device/SerialPort.pm after the carp call at line 1636: > > die 'restarting mh due to error $6' if $ok == 6; > This will shutdown misterhouse when error #6 occurs. However, I recommend > figuring out what the underlying problem is as this is only a bandaid solution. > > By the way, errno 6: No such device or address. > > Matt > > marcantonio wrote: > >> Hi, >> >> I've been experiencing the following problem lately: >> >> Error #6 in Device::SerialPort::input at ../lib/site/ControlX10/CM11.pm >> line 426 >> Error #6 in Device::SerialPort::input at ../lib/site/ControlX10/CM11.pm >> line 426 >> >> ..this is after I moved things and USB devices around a bit, so I don't >> know yet what is causing the problem. >> >> However, is there a way to let mh auto-restart when it encounters >> repetitive problems like the one above? >> Simply hitting ctrl-c and restarting mh solves the problem. It would be >> nice if mh could restart on its own after <n> consecutive errors. >> >> >> Marcantonio >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> ________________________________________________________ >> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 >> >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > > |