Photon Vision Can't Connect to Networkables

Recently we’ve been having issues with Photon Vision on a Raspberry Pi not being able to connect to networktables. I haven’t found any consistence with the issue yet. Sometimes a reboot will fix it, sometimes not. If it’s working and we restart our code on the roborio it will sometimes not connect. Once I had the feeds streaming to shuffle board just fine, but then the driver station wasn’t seeing the robot, so I closed it out and reopened it. As soon as the driver station connected to the robot, I lost connection to the Pi. I can still ssh into the pi from the driver station laptop and then from there ssh into the roborio.

I’ve also tried swapping out hardware(Radio, Switch, Cables, and Robot). No change.

Originally I had the pi set to a static ip via Photon at (10.31.60.3). I tried changing the ip to (10.31.60.57), which I believe is the default for Photon. It seems to be better but still not consistent. Another thing I did was to enable “Wait for Network at Boot” on the pi.

I’m at a loss right now and have one day till our first competition. Does anyone have any other ideas?

Here are some of my logs:

[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Didn't match RIO IP
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Trying 169.254.20.176
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Didn't match RIO IP
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:23] [WebServer - SocketHandler] [INFO] New websocket connection from /10.31.60.183:52667
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Didn't match RIO IP
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Trying 169.254.20.176
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Didn't match RIO IP
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:24:24] [WebServer - Server] [DEBUG] Handled HTTP GET request from 10.31.60.183 in 48.0788ms
[2021-01-11 02:24:29] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:29] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:38] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

Can you post all your logs? What version are you running?
There were some networking related issues with the rio look up in previous versions.

I’m running 2022.1.5.

Here is the rest:

[2021-01-11 02:23:15] [General - Main] [INFO] Logging initialized in debug mode.
[2021-01-11 02:23:15] [General - ShellExec] [DEBUG] Executing “id -u”
[2021-01-11 02:23:16] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:16] [General - ShellExec] [DEBUG] Executing “cat /proc/device-tree/model”
[2021-01-11 02:23:16] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:16] [General - Main] [INFO] Starting PhotonVision version v2022.1.5 on Linux Raspbian (Pi PI_3)
[2021-01-11 02:23:17] [Camera - PicamJNI] [INFO] Successfully loaded libpicam shared object
[2021-01-11 02:23:17] [General - Main] [INFO] Native libraries loaded.
[2021-01-11 02:23:17] [General - ConfigManager] [INFO] Loading settings…
[2021-01-11 02:23:17] [General - ConfigManager] [INFO] Hardware config does not exist! Loading defaults
[2021-01-11 02:23:19] [Camera - CameraConfiguration] [DEBUG] Creating camera configuration for ZeroCopyPicammmal service 16.1 (AKA TargetPiCam) at /dev/video2
[2021-01-11 02:23:19] [Camera - CameraConfiguration] [DEBUG] Creating camera configuration for UsbCameraMicrosoft LifeCam HD-3000 (AKA CargoCam) at /dev/video0
[2021-01-11 02:23:20] [General - NetworkManager] [INFO] Setting STATIC with team team 3160
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Executing “cat /etc/hostname | tr -d " \t\n\r”"
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Executing “echo FrogVision > /etc/hostname”
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Executing “hostnamectl set-hostname FrogVision”
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Executing “sed -i “s/127.0.1.1.FrogVision/127.0.1.1\tFrogVision/g" /etc/hosts"
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Executing “sudo service avahi-daemon restart”
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:20] [General - NetworkManager] [INFO] Set hostname to FrogVision
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Executing “ip addr add 10.31.60.3/8 dev eth0”
[2021-01-11 02:23:20] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:23:20] [General - NetworkTablesManager] [INFO] Starting NT Client
[2021-01-11 02:23:20] [General - NetworkTablesManager] [ERROR] [NetworkTablesManager] Could not connect to the robot! Will retry in the background…
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Matching 2 new cameras!
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [INFO] Adding local video device - “Microsoft® LifeCam HD-3000” at “/dev/video0”
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [INFO] Adding local video device - “mmal service 16.1” at “/dev/video2”
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Trying to match 1 unmatched configs…
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Trying to find a match for loaded camera Microsoft LifeCam HD-3000 with path /dev/video0
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Matched the config for Microsoft LifeCam HD-3000 to a physical camera!
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Trying to find a match for loaded camera mmal service 16.1 with path /dev/video2
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Matched the config for mmal service 16.1 to a physical camera!
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] After matching loaded configs 0 cameras were unmatched.
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Matched or created 2 camera configs!
[2021-01-11 02:23:21] [General - ConfigManager] [DEBUG] Saving to disk…
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Matched config for camera “USBFrameProvider - opencv_CargoCam” and loaded 2 pipelines
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [DEBUG] Matched config for camera “AcceleratedPicamFrameProvider” and loaded 1 pipelines
[2021-01-11 02:23:21] [Camera - VisionSourceManager] [INFO] Adding 2 configs to VMM.
[2021-01-11 02:23:21] [WebServer - DataChangeService] [DEBUG] Added subscriber - Sources: DCS_WEBSOCKET, DCS_HTTP, DCS_NETWORKTABLES, DCS_VISIONMODULE, DCS_OTHER, Destinations: DCD_ACTIVEMODULE, DCD_ACTIVEPIPELINESETTINGS, DCD_GENSETTINGS, DCD_UI, DCD_OTHER
[2021-01-11 02:23:21] [General - ConfigManager] [INFO] Settings saved!
[2021-01-11 02:23:22] [VisionModule - VisionModule - CargoCam] [INFO] Setting pipeline to 0
[2021-01-11 02:23:22] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.
[2021-01-11 02:23:22] [Camera - USBCameraSource - CargoCam] [DEBUG] Setting camera exposure to 36
[2021-01-11 02:23:22] [WebServer - DataChangeService] [DEBUG] Added subscriber - Sources: DCS_WEBSOCKET, DCS_HTTP, DCS_NETWORKTABLES, DCS_VISIONMODULE, DCS_OTHER, Destinations: DCD_ACTIVEMODULE, DCD_ACTIVEPIPELINESETTINGS, DCD_GENSETTINGS, DCD_UI, DCD_OTHER
[2021-01-11 02:23:22] [VisionModule - VisionModule - TargetPiCam] [INFO] Setting pipeline to 0
[2021-01-11 02:23:22] [WebServer - DataChangeService] [DEBUG] Added subscriber - Sources: DCS_WEBSOCKET, DCS_HTTP, DCS_NETWORKTABLES, DCS_VISIONMODULE, DCS_OTHER, Destinations: DCD_UI
[2021-01-11 02:23:22] [WebServer - DataChangeService] [DEBUG] Added subscriber - Sources: DCS_WEBSOCKET, Destinations: DCD_GENSETTINGS
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Unable to reach 10.31.60.2
[2021-01-11 02:23:23] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:23:23] [General - ConfigManager] [DEBUG] Saving to disk…
[2021-01-11 02:23:24] [General - ConfigManager] [INFO] Settings saved!
[2021-01-11 02:23:38] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:23:48] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:23:57] [General - NetworkTablesManager] [INFO] NT Connected!
[2021-01-11 02:23:57] [General - ScriptManager] [INFO] Queued event: kNTConnected
[2021-01-11 02:23:57] [General - NetworkTablesManager] [INFO] NT Connected!
[2021-01-11 02:23:57] [General - ScriptManager] [INFO] Queued event: kNTConnected
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Trying 169.254.20.176
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Trying 169.254.20.176
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:23:58] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:23:59] [General - NetworkTablesManager] [INFO] NT Connected!
[2021-01-11 02:23:59] [General - ScriptManager] [INFO] Queued event: kNTConnected
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Trying 169.254.20.176
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:03] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:23] [WebServer - SocketHandler] [INFO] New websocket connection from /10.31.60.183:52667
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Trying 169.254.20.176
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:24:24] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:24:24] [WebServer - Server] [DEBUG] Handled HTTP GET request from 10.31.60.183 in 48.0788ms
[2021-01-11 02:24:29] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:29] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:38] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Trying 10.31.60.57
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.57
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:39] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:24:39] [WebServer - Server] [DEBUG] Handled HTTP GET request from 10.31.60.183 in 4.571823ms
[2021-01-11 02:24:44] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:44] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:24:47] [General - NetworkTablesManager] [INFO] NT Connected!
[2021-01-11 02:24:47] [General - ScriptManager] [INFO] Queued event: kNTConnected
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Trying 10.31.60.57
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.57
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:24:48] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:25:01] [General - NetworkTablesManager] [INFO] NT Connected!
[2021-01-11 02:25:01] [General - ScriptManager] [INFO] Queued event: kNTConnected
[2021-01-11 02:25:01] [General - NetworkTablesManager] [INFO] NT Connected!
[2021-01-11 02:25:01] [General - ScriptManager] [INFO] Queued event: kNTConnected
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Trying 10.31.60.57
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.57
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:25:02] [WebServer - Server] [DEBUG] Handled HTTP GET request from 10.31.60.183 in 3.451666ms
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Searching for rios
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Trying 127.0.0.1
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Didn’t match RIO IP
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Trying 10.31.60.3
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.3
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Trying 10.31.60.57
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Maybe found 10.31.60.57
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Looking up 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Pinging 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Was able to connect to 10.31.60.2
[2021-01-11 02:25:02] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.local
[2021-01-11 02:25:07] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:25:07] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:25:07] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.lan
[2021-01-11 02:25:07] [General - NetworkTablesManager] [INFO] Looking up roboRIO-3160-FRC.frc-field.local
[2021-01-11 02:25:42] [General - MetricsPublisher] [DEBUG] Publishing Metrics…
[2021-01-11 02:25:42] [General - ShellExec] [DEBUG] Executing “sed ‘s/.{3}$/.&/’ <<< cat /sys/class/thermal/thermal_zone0/temp”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Executing "top -bn1 | grep “Cpu(s)” | sed "s/.
, ([0-9.])%* id.*/\1/” | awk ‘{print 100 - $1}’”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Executing “vcgencmd get_mem arm | grep -Eo ‘[0-9]+’”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Executing “vcgencmd get_mem gpu | grep -Eo ‘[0-9]+’”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Executing “free --mega | awk -v i=2 -v j=3 ‘FNR == i {print $j}’”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Executing “vcgencmd get_mem malloc | grep -Eo ‘[0-9]+’”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Executing “df ./ --output=pcent | tail -n +2”
[2021-01-11 02:25:43] [General - ShellExec] [DEBUG] Got exit code 0
[2021-01-11 02:25:43] [WebServer - Server] [DEBUG] Handled HTTP POST request from 10.31.60.183 in 472.2244ms
[2021-01-11 02:25:44] [WebServer - RequestHandler] [INFO] exporting settings to download…

The fact that opening driver station caused it to lose connection makes me think that maybe it’s not a photon issue, more an issue the the roborio networktables server.

In the logs when it’s trying different ip addresses, I noticed that at one point it tries its own address. Is that what it’s supposed to do?

I had this issue too. I talked drivers about just restarting the pi while setting up. Maybe even turning the robot on then powering the pi. And then checking in the shuffleboard camera server to make sure it appears.

I’ll see you all in Oklahoma. So if we have more answers we can share there.

That is where we are at too. Usually after one or two robot power cycles it will work. See you guys there.

Power cycling the the raspberry pi at least worked once for us, and was easier. I haven’t tried just restarting photonvision from the dashboard to see if that is an option (would be best case – might be able to make it fix itself mid-match for example).

We’ve heard some reports of people seeing improved results after setting the roborio to static IP rather than DHCP (which is weird, that shouldn’t affect this, but worth a try?) Also, v2022.1.6 makes the roborio finder only run when you click into the settings tab, which might also help? We’re still trying to find a definite root-cause.

1 Like

Our roborio has been set to a static ip. I’ll check out the new version.

We had a competition this last weekend. Before we left, everything robot-wise was working except for the issue of photon not connecting to networktables consistently. Once we got there we were having a heck of a time getting our driverstation to connect to networktables in the pit via ethernet connection to a switch. Photon seemed to be connecting more reliably but started to take awhile to come up. Long story short, we ended up configuring a new radio and putting it on the bot. After that everything connected consistently and in a few seconds. Didn’t have any problems for the rest of competition.

I haven’t been able to test the connections since we got home, but will test them soon and let you know.

Thanks for all the work and support you guys have put in to Photon Vision. It’s really coming along. We appreciate it!

We’re noticing that during testing we often will have photonvision not connecting to network tables.

The reproduction steps are essentially, have photon vision running and working. Re-deploy code N-number of times (typically it was happening within about 10-25 deploys), then see the robot code fail with the error can’t find the camera tables.

Restarting photon vision in the UI seems to fix the issue fairly consistently.

1 Like

Is the robot code putting out an error from NT about not being able to bind the server address? That means the NT server isn’t starting on the robot code side and thus PhotonVision has nothing to connect to (nor dashboards). The robot code templates are designed to not start the NT server until the previous robot program has been killed, but potentially there’s something starting the NT server early or something keeping the previous robot program from getting killed in a timely manner. Note that rebooting the Rio will never have this issue, it can only happen on deploy.

No, this seems to be PhotonVision specific. Robot code works normally when we have this odd issue.

We’re also getting this issue. Random disconnects and unable to find the RIO

We saw a potential improvement by disabling the roborio finder, specifically on Gloworm devices. Whatever’s going on isn’t consistent either, because 5940 saw no issues with 2022.1.6 and LL2+ at MBR this weekend. You’re welcome to give this JAR a try though:

https://drive.google.com/file/d/1bSERwoR4bLIJS41iCHVL2LULQzKStkZE/view?usp=sharing

1 Like

Just an update on how our system has been running. For the last few weeks we haven’t had any connection issues with photonvision. The feeds have actually been coming up faster than the driverstation.

For anyone who it may help, here is our current setup.

Hardware Setup:

  • Raspberry Pi 3b+
  • PiCam v1.0
  • Microsoft Lifcam 3000 HD
  • DC to DC converter(Outputs 5v with an input of 8-14v)
  • 12v fan for cooling(A Pi will slow down the running processes until it gets to an aceptable operating temperature if overheated. )
  • First port on radio runs to network switch
  • Roborio, Raspberry Pi, and Driverstaion(during competition) are all connected to the switch

Software Setup:

  • Photonvision v2022.1.6
  • Wait For Network at Boot is enabled via raspi-config
  • Static IP set for 10.te.am.13

Looking back I would conclude most of our connection issues were radio related. Using a newly imaged radio at our first competition helped a lot. Since then we’ve been running everything off of the first radio port without issues.

We were having similar issues at our last regional, but for some reason it was happening with both Photon and LL. Rebooting the rio after boot from DS solved it pretty well, wish we had a more permanent fix. Most FTA’s just want to get matches going as fast as possible.