Photonvision can’t find robot

I’m running photonvision off of a limelight connected directly to the radio, and it works well, I can see the video the limelight is taking. However, Photonvision gives the pop up “network tables not connected, is there a robot on this network?”, despite having the correct team number and both the radio and vscode functioning properly. In the bottom left, it also says “robot not connected”. Would a network switch fix this? What else could be causing this problem?

Since the RIO runs the network tables server, it means that there is no network tables server to connect to. You should have no issue debugging and getting the information for everything, photonvision is just informing you that there’s not a RIO on the network

So Limelight connected to radio, connected to RIO correct?

Team number set in the UI?

Code is WPILib 2023?

Using the latest PhotonVision version (2023.1.2)?

Yes to all

Could you export your logs and send here? There should be a button on the settings tab

[2022-12-31 16:17:18] [VisionModule - VisionModule - OV5647] [INFO] Pipeline name: New Pipeline

[2022-12-31 16:17:19] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:19] [VisionModule - VisionSourceSettables] [INFO] Setting video mode to FPS: 90 Width: 320 Height: 240 Pixel Format: kUnknown

[2022-12-31 16:17:19] [VisionModule - VisionLED] [INFO] Changing LED internal state to Off

[2022-12-31 16:17:19] [VisionModule - VisionModule - OV5647] [INFO] Setting FOV of vendor camera to 75.76079874010732

[2022-12-31 16:17:19] [VisionModule - VisionSourceSettables] [INFO] Setting FOV to 75.76079874010732

[2022-12-31 16:17:19] [VisionModule - VisionLED] [INFO] Changing LED internal state to Off

[2022-12-31 16:17:20] [General - ConfigManager] [INFO] Settings saved!

[2022-12-31 16:17:27] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:27] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:29] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:29] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:29] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:30] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:31] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:31] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:32] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:32] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:32] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:34] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:34] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:34] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:35] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:44] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:44] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:45] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:45] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:45] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:46] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

[2022-12-31 16:17:46] [General - NetworkTablesManager] [INFO] NT Connected!

[2022-12-31 16:17:46] [General - ScriptManager] [INFO] Queued event: kNTConnected

[2022-12-31 16:17:47] [General - NetworkTablesManager] [ERROR] NT Connection has failed! Will retry in background.

This is about half, the rest is very repetitive

That’s not the full log. Can you download the whole thing and attach it here?

Also, go to the settings tab. Is it saying the pi is being undervolted?

1 Like

So wait did you say no network switch involved? I would first add a network switch on the good port of the radio, and connect the LL and Rio to it. The 2nd port is flakey going on unusable and the symptoms are never the same.

Also you never confirmed – is there a roborio connected and turned on, and is it running a 2023 robot project?

Critically, photonvision requires an NT4 server, which did not exist in 2022