Advanced Networking
Pages 13
Road Case User Manual
Road Case Detailed Setup Instructions
Field Network Setup
Video Setup
Audio Setup
Real Time Scorekeeping & Referee Displays
Clone this wiki locally
Cheesy Arena has support for advanced network security. This mode of operation isolates each team on the field to its own virtual LAN and wireless SSID, making it more difficult for teams or audience members to interfere in the communications of other robots.
Concepts
The FRC control system operates by this mechanism: the driver station sends a control packet to the robot, and the robot responds with a status packet; this happens 50 times per second. The mechanism is the same whether operating standalone, or connected to the field management system on an FRC field. What changes on an FRC field is that the FMS is sending control packets to the driver station, and the driver station is responding with status packets, in addition to the DS-robot communication. The FMS control packets indicate which enable/disable and auto/teleop modes the robot should operate in, and the DS status packets contain information about the robot link status, as well as the battery voltage, trip time, and other statistics. The FMS never communicates directly with the robot, but receives information about it from the driver station.
In order to securely operate six robots at a time on the playing field, the FMS needs to provide six virtual local area networks (VLANs) between the driver stations and robot radios; in addition, the FMS needs to be able to talk to each of the driver stations. This calls for a fairly complicated network setup, using an access point and a managed switch.
At the start of an event, each team's radio needs to be programmed with a unique SSID (the team number) and WPA key (a random eight-character alphanumeric string). When each match is loaded, the access point tears down its previous configuration and sets up six SSIDs, using the team numbers and WPA keys for the six teams in the match. Contrary to popular belief, only one wireless network is present and broadcasting on one channel; the six SSIDs are multiplexed over that channel. Each SSID is mapped to a unique VLAN corresponding to one of the six alliance stations, and the Ethernet cable that runs from that alliance station, that the driver station is plugged into, to the managed switch, connects to a port that is mapped to the same VLAN. In this way, the driver station and robot can communicate privately, without having access to the other team's VLANs. However, when the FMS sends a control packet to one of the driver stations, the managed switch is able to route it between VLANs to the correct endpoint.
Equipment
For Cheesy Arena, we used a Cisco AIR-AP1252AG-A-K9 access point and a Cisco Catalyst WS-C3550-24-EMI managed switch. Both of these are end-of-lifed and can be obtained relatively inexpensively from sources such as eBay.
The access point is loaded with Cisco IOS version 12.4. Note that version 15.2 will not work for assigning the roboRIO's IP address dynamically via DHCP; there is a bug in the later version of the firmware which prevents DHCPOFFER packets from being received. ap_config.txt in the repo contains the baseline configuration for the AP, while Cheesy Arena configures the specific team SSIDs and WPA keys via Telnet when each match is loaded.
The switch is loaded with Cisco IOS version 12.1. switch_config.txt in the repo contains the baseline configuration for the switch, while Cheesy Arena configures the specific team VLAN interfaces via Telnet when each match is loaded.
Equivalent results can most likely be obtained with Cisco equipment and IOS versions that are similar but not exactly the same. The important requirements for the AP are that it support at least six VLAN-mapped SSIDs, and for the switch that it support VLANs and inter-VLAN (Layer 3) routing.
Setup instructions
Obtain a Cisco AIR-AP1252AG-A-K9 access point (or AIR-LAP1252AG-A-K9 with the autonomous firmware)
Replace the AP configuration with ap_config.txt
Obtain a Cisco Catalyst WS-C3550-24-EMI switch or the equivalent
- Replace the switch configuration with switch_config.txt
-
Configure your Cheesy Arena event with the AP and switch addresses and passwords
Default AP address: 10.0.0.60 Default AP user: cheesyarena Default AP password: 1234Five Default switch address: 10.0.0.61 Default switch password: 1234Five Wire the field in accordance with the port map below
Switch port map
The below diagram shows how the ports in the configuration for the Catalyst switch are mapped for use with Cheesy Arena. The colors indicate the color-coding of the Ethernet cable runs to each end of the field, for convenience.
