You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The touch sensor is a different error and a different driver, so it needs to be a separate issue.
IIRC, one or more of the *-CAL modes on the UART sensors need the same note as the IR-S-ALT mode. Setting those modes causes the sensor to reset itself, which would cause errors like those reported.
However, that shouldn't be happening with the ultrasonic sensor. I'll try to reproduce it when I get a chance.
I've finally set aside some time to look at this. One thing I should have mentioned is to look at the output of dmesg for any hints as to what is going on. This is just a good tip in general.
As expected, for the LEGO EV3 IR sensor IR-S-ALT mode, in the kernel log, I saw:
tty ttyS0: Reconnected due to: No data since last keep-alive.
Likewise, I saw the same error for the ultrasonic sensor. At one point though, I got an unexpected result:
tty ttySU0: Reconnected due to: Unexpected mode.
I also locked up the kernel a few times.
I put this on my logic analyser to see what was going on. I was able to see that it is the ultrasonic sensor that stops responding and not the EV3. So, I think we can safely say that most of the problem is with the sensor and not our drivers.
As was already pointed out, this sensor seems to be a bit touchy when it comes to changing modes, particularly when switching from the US-LISTEN mode to another mode (or the same mode).
It can take up to 5 seconds for a UART sensor to renegotiate, so this explains both write error: Connection timed out and write error: No such device. They just occur at different points during the renegotiation.
So, I'm going to close this as "wontfix" because the problem is really with the sensors. If I can reproduce the lockup or other error that I saw, I'll open a new issue.
Activity
ddemidov commentedon Aug 26, 2015
See also ddemidov/ev3dev-lang-python#9
dlech commentedon Aug 26, 2015
The touch sensor is a different error and a different driver, so it needs to be a separate issue.
IIRC, one or more of the
*-CALmodes on the UART sensors need the same note as theIR-S-ALTmode. Setting those modes causes the sensor to reset itself, which would cause errors like those reported.However, that shouldn't be happening with the ultrasonic sensor. I'll try to reproduce it when I get a chance.
dlech commentedon Sep 6, 2015
I've finally set aside some time to look at this. One thing I should have mentioned is to look at the output of
dmesgfor any hints as to what is going on. This is just a good tip in general.As expected, for the LEGO EV3 IR sensor
IR-S-ALTmode, in the kernel log, I saw:Likewise, I saw the same error for the ultrasonic sensor. At one point though, I got an unexpected result:
I also locked up the kernel a few times.
I put this on my logic analyser to see what was going on. I was able to see that it is the ultrasonic sensor that stops responding and not the EV3. So, I think we can safely say that most of the problem is with the sensor and not our drivers.
As was already pointed out, this sensor seems to be a bit touchy when it comes to changing modes, particularly when switching from the
US-LISTENmode to another mode (or the same mode).It can take up to 5 seconds for a UART sensor to renegotiate, so this explains both
write error: Connection timed outandwrite error: No such device. They just occur at different points during the renegotiation.So, I'm going to close this as "wontfix" because the problem is really with the sensors. If I can reproduce the lockup or other error that I saw, I'll open a new issue.