rdmenezes / remote-testbed

Automatically exported from code.google.com/p/remote-testbed
0 stars 1 forks source link

Improve handling of defunct motes #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SerialControl::{set,clean}DTR() both set isOpen to false when the ioctl()
call fails. This marks the mote defunct but still leaves the mote around
visible to users that will see their status as "Control unavailable". The
mote is not removed on next plug event. The above scenario can be
reproduced/simulated with the attached patch.

The question is: what is a good solution? Should the MCH try to "reopen"
the mote? Should the mote be removed automatically in which case the MCS
should also be notified?

Original issue reported on code.google.com by jonas.fonseca on 23 Nov 2007 at 3:04

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jonas.fonseca on 23 Nov 2007 at 3:05

GoogleCodeExporter commented 9 years ago
An improved patch that fixes setDTR() to return FAILURE when ioctl() failure is 
forced.

Original comment by jonas.fonseca on 23 Nov 2007 at 3:10

Attachments:

GoogleCodeExporter commented 9 years ago
Rescheduled for 2.0

Original comment by jonas.fonseca on 10 Mar 2008 at 10:47