Closed technova12611 closed 5 years ago
Has all the hallmarks of a bad usb port on one end. Those ports do wear. Do you have a spare expansion hub you can swap in? I presume your E4's are rather new and hence will not have worn usb ports.
Note that I try to encourage the teams that I mentor, who aren't using Blocks or OnBot Java to use adb wireless for deploying software in an effort to reduce wear on that port.
It might not be the REV expansion hub since we are using USB retention mount. The most likely culprit is the micro USB to the phone, we have been using it since the season starts and plug/unplug a lot. It will be very easy to change. We thought if it was USB cable, it shouldn't have worked at all.
We will report back with the results when we meet on Friday!
One possible difference between Auto and Teleop is that you are probably interrogating the motor encoders more in Auto. eg: to determine distance traveled. or possibly using your distance sensor. Would this be correct?
Which of your Expansion hubs have the drive motors, and/or distance sensors on it? Does that portion or auto require more than the typical number of inter-hub commands?
A few days ago, we noticed that our robot seemed to be developing high driving latencies. Inspecting the log files indicated a large number of command retried. We eventually fixed the problem by replacing the RS485 cable that joins the two Expansion hubs. There was no apparent problems with that cable, but the latencies went away. Odd coincidence.
Yes, we do use I2C sensors, they are both on the same expansion hub, our motors are split equally into two hubs, we did see "Problem with ..." issues too.
Ok, I think we got a plan, basically replace cables, USB adapter cable, RS 485 cable, hopefully, this will fix our issue.
If @gearsincorg is fingering the RS485 cable I'd replace that first. Note the mod=3 in this log message.
12-15 16:04:47.179 8684 8898 V LynxModule: retransmitting: mod=3 cmd=0x1008 msg#=188 ref#=0
Is the module address of the downstream expansion hub 3 perchance?
yes, 3 is the downstream expansion hub address. We will replace the RS 485 and test it out.
@cmacfarl @gearsincorg
Regarding RS-485 re-transmissions, see the related issue Noah opened here: https://github.com/ftctechnh/ftc_app/issues/491
After replacing the RS 485 cable, everything is working properly.
We are trying to figure out why our autonomous suddenly started throwing "timeout: abandoning waiting 250ms for response" error. It was working fine before our InterLeague event, but we had experienced this issue the night before the competition and didn't have time to resolve it.
Now we are trying to figure it out, the weird thing is that this seemed impacting only autonomous and it can happen at anytime and last for less than a second or the 20+ seconds, once it switched to TeleOps, it seemed working fine, although we've seen this error occationally in TeleOps too.
Could this be related to bad USB cables, bad REV Expansion Hub? Or could this be related to SDK bug or our team code.
Our robot info:
Again, we've been using the same code for quite a while with no issues, this issue came on suddenly and remained.
Thank you for your help.
LogCat for one of the matches enclosed. Robot stopped after landing and dislogged the gold mineral and had no issues during TeleOps.