Без рубрики

Setup up the Wireless using the Xhub and OMP5-AC

Step 1 – Plug the X-HUB into the myRIO

The X-HUB adds two extra USB ports and an Ethernet port to myRIO

With the X-Hub attached the myRIO is accessed through a network interface either over Ethernet or USB. In either case, the myRIO is considered a networked device and is accessed by its IP address or DNS name. The IP address for the myRIO when connected using a USB cable is always 172.22.11.2. The IP address for the myRIO when connected using the Ethernet cable is obtained automatically using DHCP. For a World Skills Robot, the IP address is assigned by the suppled OM5P-AC (white access point), and will reflect the subnet of that device.

OM5P-AC

If at any point, you would like to check the Ethernet IP address of your myRIO, connect the myRIO using both Ethernet and USB and then open the web interface by typing 172.22.11.2 into the address bar of any internet browser (IE recommended). This web interface shows the Ethernet IP address of the myRIO amongst other information.

User can also check using NI Measurement & Automation Explorer (MAX).

Step 2 – Programming the OM5P-AC and connecting it to the X-HUB

You will need to Install the supplied Configuration Utility software to configure the OM5P-AC for use, this is a custom version supplied to Studica, by First Canada. The OMP5-AC needs 12V 2A power supplied via voltage regulator using the supplied barrel connector and wire.

Power to the OM5P-AC is 12V 2A (center-pin positive).

Install the Supplied Configuration Utility.

Before you begin using the software it is important that you do the following:

1. Disable all WiFi connections on your computer, as it may prevent the configuration utility from properly communicating with the OM5P-AC. (You may need to rebot the local computer)

2. Connect your computer to the OM5P-AC using the supplied Ethernet cable. Make sure no other devices are connected to your computer via Ethernet posts, other than the OM5P-AC.

Note: Teams will need to update firmware on the OM5P-AC in order for the programming utility to work, this must be done before you attempt to program the unit.

Pre-Requisites

The Configuration Utility requires the Java Runtime Engine (JRE). If you do not have Java installed, you can download the JRE from here: https://www.java.com/en/download/

The Configuration Utility requires Administrator privileges to configure the network settings on your machine. The program should request the necessary privileges automatically (may require a password if run from a non-Administrator account), but if you are having trouble, try running it from an local Administrator account.

Application Notes

By default, the utility will program the radio to enforce the 7Mbps bandwidth limit on traffic exiting the radio over the wireless interface.

The utility has been tested on Windows 7, 8 and 10. It may work on other windows operating systems, but has not been tested.

Launch the software

Use the Start menu or desktop shortcut to launch the program.

Use the pop-up window to select the which Ethernet interface the configuration utility will use to communicate with the wireless bridge. On Windows machines, Ethernet interfaces are typically named “Local Area Connection”. The configuration utility can not program a bridge over a wireless connection.

  1. If no Ethernet interfaces are listed, click “Refresh” to re-scan for available interfaces
  2. Select the interface you want to use from the drop-down list
  3. Click “OK”

Loading Firmware to OpenMesh Radio

To load the firmware (or reset the radio), you do so using the Radio Configuration Utility.

  1. Follow the instructions above to install the software, launch the program and select the Ethernet interface.
  2. Make sure the OpenMesh radio is selected in the Radio dropdown.
  3. Make sure the radio is connected to the PC via Ethernet.
  4. Unplug the power from the radio
  5. Press the Load Firmware button
  6. When prompted, plug in the radio power. The software should detect the radio, load the firmware and prompt you when complete.

If you see an error about NPF name, try disabling all adapters other than the one being used to program the radio. If only one adapter is found, the tool should attempt to use that one.

Selecting Option and Configuring the Access Point

In order to configure IP address for your robot each team will be assigned a TEAM number based upon their countries international country code. Please use the following team numbers:

  • Austria 4300
  • Bahrain 9730
  • Belarus 3758
  • Brazil 5500
  • Canada 1011
  • China 8600
  • Colombia 5700
  • Costa Rica 5060
  • Korea 8500
  • Germany 4900
  • Hong Kong, China 8520
  • India 9100
  • Indonesia 6200
  • Iran 9640
  • Japan 8101
  • Macao, China 8530
  • Malaysia 6000
  • Morocco 2120
  • Netherlands 3100
  • Portugal 3510
  • Russia 7810
  • Saudi Arabia 9660
  • Singapore 6500
  • South Africa 2700
  • Taiwan, China 8860
  • Thailand 6600
  • UAE 9710
  • Vietnam 8400

The following example will use 1111 as the TEAM number.

  1. Select OpenMesh as the radio you are configuring using the drop-down list.
  2. Select which operating mode you want to configure.

The default values of the options have been selected to match the use case of most teams, however, you may wish to customize these options to your specific scenario:

  1. Robot Name: This is a string that gets appended to the SSID used by the radio. This allows you to have multiple networks with the same team number and still be able to distinguish them.
  2. Firewall: Please leave unchecked.
  3. BW Limit: If this box is checked, the radio enforces a 7MB/s bandwidth limit. Note that in AP mode, this is a total limit, not per client, so streaming video to multiple clients simultaneously may cause undesired behavior.

Follow the onscreen instructions to prepare the OM5P-AC

Throughout the configuration process, the window will indicate:

  1. The step currently being executed
  2. The overall progress of the configuration process
  3. All steps executed so far

Programmed Configuration

The Configuration Utility programs a number of configuration settings into the OM5P-AC when run. These settings apply to the OM5P-AC in all modes.

These include:

  • Set a static IP of 10.TE.AM.1
  • Set an alternate IP on the wired side of 192.168.1.1 for future programming
  • Bridge the wired ports so they may be used interchangeably
  • The LED configuration noted in the graphic above.
  • 7Mb/s bandwidth limit on the outbound side of the wireless interface (This can be changed)

In AP mode only:

  • DHCP server enabled. Serves out 10.TE.AM.11 – 10.TE.AM.111 on the wired side,
  • 10.TE.AM.130 – 10. TE.AM.230 on the wireless side, subnet mask of 255.255.255.0, broadcast address 10. TE.AM.255
  • DNS server enabled. DNS server IP and domain suffix (.lan) are served as part of the DHCP
  • SSID may have a “Robot Name” appended to the team number to distinguish multiple networks.

Connecting to the myRIO once configured

USB:

If using the USB interface, no setup is required. The myRIO driver will automatically configure the IP address of the host (your computer) and myRIO and the software listed above should be able to locate and utilize your myRIO

Ethernet/Wireless:

The Configuration Utility will enable the DHCP server on the OM5P. The OM5P will hand out IP addresses as specified above.

myRIO Ethernet Configuration: The myRIO Ethernet interface should be set to DHCP. When connected to the OM5P wired via the X Hub, the myRIO will receive an IP from the bridge. When tethered directly to a PC, both devices will self-assign IPs.

The myRIO will show as a wireless network with the TEAM name and the Robot name as set in the configuration.

On this case, no WPA Key passphrase has been set the connection is Open.

When configuring a myRIO project you can connect over WiFi using the NI-myRIO name or the IP address.