roboRIO网络故障排除

The roboRIO and FRC® tools use dynamic IP addresses (DHCP) for network connectivity. This article describes steps for troubleshooting networking connectivity between your PC and your roboRIO

使用mDNS 检查 roboRIO

The first step to identifying roboRIO networking issues is to isolate if it is an application issue or a general network issue. To do this, click Start -> type cmd -> press Enter to open the command prompt. Type ping roboRIO-#####-FRC.local where ##### is your team number (with no leading zeroes) and press enter. If the ping succeeds, the issue is likely with the specific application, verify your team number configuration in the application, and check your firewall configuration.

ping roboRIO IP的地址

If there is no response, try pinging 10.TE.AM.2 (TE.AM IP Notation) using the command prompt as described above. If this works, you have an issue resolving the mDNS address on your PC. The two most common causes are not having an mDNS resolver installed on the system and a DNS server on the network that is trying to resolve the .local address using regular DNS.

  • Verify that you have an mDNS resolver installed on your system. On Windows, this is typically fulfilled by the NI FRC Game Tools. For more information on mDNS resolvers, see the Network Basics article.

  • Disconnect your computer from any other networks. Removing any other routers from the system will help verify that there is not a DNS server causing the issue.

平失败

Windows 10+ image of the adapter setting

如果直接ping IP地址失败,则PC的网络配置可能有问题。 PC应该配置为“自动”。要检查这一点,请单击“开始”->“设置”->“网络和Internet”。根据您的网络,选择“ Wifi”或“以太网”。然后单击您所连接的网络。向下滚动到“ IP设置”,然后单击“编辑”,并确保选择了“自动(DHCP)”选项。

USB连接故障排除

如果您尝试对USB连接进行故障排除,请尝试ping roboRIO的IP地址。只要仅将一个roboRIO连接到PC,就应将其配置为172.22.11.2。如果无法ping通,请确保已连接roboRIO并为其供电,并且已安装NI FRC游戏工具。游戏工具会安装USB连接所需的roboRIO驱动程序。

如果此ping成功,但.local ping失败,则可能是roboRIO主机名配置错误,或者您已连接到尝试解析.local地址的DNS服务器。

  • Verify that your roboRIO has been imaged for your team number: roboRIO 1 roboRIO 2. This sets the hostname used by mDNS.

  • :ref:禁用所有其他网络适配器<docs/networking/networking-introduction/roborio-network-troubleshooting:Disabling Network Adapters>

以太网连接

The IP address from the roboRIO webdashboard.

If you are troubleshooting an Ethernet connection, it may be helpful to first make sure that you can connect to the roboRIO using the USB connection. Using the USB connection, open the roboRIO webdashboard and verify that the roboRIO has an IP address on the ethernet interface. If you are tethering to the roboRIO directly this should be a self-assigned 169.*.*.* address, if you are connected to the VH-109 radio, it should be 10.TE.AM.2 where TEAM is your five digit FRC team number(TE.AM IP Notation). If the only IP address here is the USB address, verify the physical roboRIO ethernet connection. If the IP address is 10.TE.AM.XX, ensure you’ve set the roboRIO team number

禁用网络适配器

这与通过物理按钮关闭适配器或使PC进入飞行模式并不总是相同。以下步骤提供有关如何禁用适配器的更多详细信息。

Windows 10+ settings gear on the left hand side of the start menu.

通过单击设置图标打开设置应用程序。

Clicking the "Network & Internet" category under Windows Settings.

选择“网络和Internet”类别。

Choose "Change adapter options" in the bottom of the screen.

单击“更改适配器选项”。

Click "change adapter settings" in the bar on the left hand side.

在左窗格上,单击“更改适配器设置”。

Right clicking on the adapter in question and choosing the first option "Disable".

对于除与无线电连接的适配器以外的每个适配器,请右键单击适配器,然后从菜单中选择“禁用”。

代理

  • 代理。启用代理可能会导致roboRIO网络出现问题。