We have had an issue with our Control Hub and Driver Hub disconnecting randomly during gameplay. This has affected our matches and is getting frustrating. I had our team spend 2 hrs driving the robot so that we could replicate the disconnection as much as possible. I downloaded the robot controller logs and took a look at them. I can’t seem to understand why its disconnecting. Only thing I have been able to find is the following.
1-12 16:34:58.382 983 1177 V Robocol : received command: CMD_INIT_OP_MODE(10355) Teleop ArmV1
01-12 16:34:58.409 983 1178 I RobotCore: ******************** START - OPMODE Teleop ArmV1 ********************
01-12 16:34:58.439 983 1253 V RobotCore: thread: ...terminating 'OpModeThread'
01-12 16:34:58.458 983 1247 I RobotCore: Attempting to switch to op mode Teleop ArmV1
01-12 16:34:58.676 983 1247 D HardwareMap: Clearing which device instances have been retrieved
01-12 16:34:58.676 983 1247 D HardwareMap: Clearing which device instances have been retrieved
01-12 16:34:58.680 983 1256 V RobotCore: thread: 'OpModeThread' starting...
01-12 16:34:58.698 983 1256 I I2C : Automatically initializing I2C device LynxEmbeddedIMU (USB (embedded); module 173; bus 0; addr7=0x28)
01-12 16:34:58.699 983 1256 V BNO055 : Suppressing I2C warnings while we check for a BNO055 IMU
01-12 16:34:58.703 983 1256 V BNO055 : Found BNO055 IMU
01-12 16:34:58.718 983 1180 V Robocol : sending CMD_NOTIFY_INIT_OP_MODE(442), attempt: 0
01-12 16:34:59.214 983 1256 V BNO055IMU: Now polling until IMU comes out of reset. It is normal to see I2C failures below
01-12 16:34:59.221 983 1256 V RobotCore: addr=false data=true arb=false clock=false
01-12 16:34:59.221 983 1256 E LynxI2cDeviceSynch: readStatusQuery: cbExpected=1 cbRead=0
01-12 16:34:59.222 983 1256 E LynxI2cDeviceSynch: placeholder: readStatusQuery
01-12 16:34:59.454 983 1177 V Robocol : received command: CMD_RUN_OP_MODE(10375) Teleop ArmV1
01-12 16:34:59.464 983 1256 V BNO055IMU: IMU has come out of reset. No more I2C failures should occur.
01-12 16:34:59.557 983 1180 V Robocol : sending CMD_NOTIFY_RUN_OP_MODE(455), attempt: 0
01-12 16:36:10.555 983 1179 E Robocol : exception SocketTimeoutException(Receive timed out): no packet received [java.net.PlainDatagramSocketImpl.receive0(Native Method)]
01-12 16:36:11.816 983 1247 E Robocol : exception IOException(Invalid argument): exception sending datagram [java.net.PlainDatagramSocketImpl.send(Native Method)]
01-12 16:36:12.238 983 1180 V UpdateUI: Network: active, disconnected
01-12 16:36:12.238 983 1180 I RobotCore: ******************** STOP - OPMODE /storage/emulated/0/FIRST/matchlogs/Match-0-Teleop_ArmV1.txt ********************
01-12 16:36:12.258 983 1180 I EventLoopManager: Lost connection while running op mode: Teleop ArmV1
01-12 16:36:12.258 983 1180 V NetworkConnectionHandler: Peer connection lost
01-12 16:36:12.267 983 1309 I RobotCore: saving match logcat to /storage/emulated/0/FIRST/matchlogs/Match-0-Teleop_ArmV1.txt
Looking at this, I see that we are losing connecting. I have tried being on 2.4ghz and on 5ghz channels and the issue persisted. Any advice would be appreciated. There seems to be a lot of errors in the logs as well, and I don’t know if I should worry about that. Robot Controller Logs are too large for pastebin.