Differences
This shows you the differences between two versions of the page.
| test-and-measurement:analog-discovery-pro-3x50:connect-to-the-internet [2022/09/09 14:11] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:analog-discovery-pro-3x50:connect-to-the-internet [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Connecting the Analog Discovery Pro (ADP3450/ | ||
| + | ~~TechArticle~~ | ||
| + | =====Overview===== | ||
| + | The Analog Discovery Pro can be connected to the internet, which gives users the ability to configure Linux mode with many available software packages and makes the device available for remote use. This guide walks you through the steps required to establish the connection and ends with using the connection to update the preinstalled '' | ||
| + | |||
| + | ---- | ||
| + | =====Inventory===== | ||
| + | * Analog Discovery Pro in Linux mode | ||
| + | * If you haven' | ||
| + | * A computer with [[https:// | ||
| + | * USB cable | ||
| + | * Ethernet cable or a USB WiFi Dongle (see the [[test-and-measurement: | ||
| + | |||
| + | ===== A Note Before Beginning ===== | ||
| + | Connecting the Analog Discovery Pro to the network and the broader internet will allow other users on the local network to connect to the device via WaveForms. This will prevent any one else trying to connect via WaveForms from doing so. Respect your fellow engineers and their equipment. | ||
| + | |||
| + | ---- | ||
| + | ===== Setting up the Connection ===== | ||
| + | |||
| + | <WRAP group>< | ||
| + | The first step is to connect a serial terminal to your device, which will be used later when logging into Linux mode. Make sure that the Analog Discovery Pro is connected to the host computer and powered on. | ||
| + | |||
| + | Find out which serial port the device is connected to and make note of it. For example, if you are running Windows, this will be a COM port listed in the Device Manager. | ||
| + | |||
| + | Note that the serial connection should be established before booting into Linux mode, to ensure that no boot messages are missed. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | Open a terminal emulator, such as TeraTerm, and connect to the noted serial port using 115200 Baud, 8 data, 1 stop, and no parity bits. | ||
| + | |||
| + | Note that if the Analog Discovery Pro is connected to immediately after booting, it may take approximately 20 seconds for the login prompt to be presented. If the screen is blank upon successful connection, press **Enter** on the keyboard and the login prompt should now be displayed. | ||
| + | </ | ||
| + | <columns 100% 55% 45%> | ||
| + | {{ reference: | ||
| + | < | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | <WRAP group>< | ||
| + | Open WaveForms. The application will be used to configure the network settings of the device. | ||
| + | |||
| + | If the Device Manager hasn't opened, then select Settings -> Device Manager. Make sure your device appears and is selected in the list of devices, boot into Linux Mode if you have not done so already, then click the **Network** button to open the Network Settings window. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | <columns 100% 50% 50%> | ||
| + | Make sure to check the //Apply these settings on Linux boot// box. | ||
| + | |||
| + | It is important to note that you can later change these settings from within Linux itself, however, the settings seen here in the Network settings screen will be applied each time the device is rebooted. | ||
| + | < | ||
| + | {{ reference: | ||
| + | |||
| + | {{ reference: | ||
| + | </ | ||
| + | <columns 100% 50% 50%> | ||
| + | To most easily connect to the internet, you should be connected to an access point that provides DHCP, typically a router. Check each of the " | ||
| + | < | ||
| + | {{ reference: | ||
| + | |||
| + | {{ reference: | ||
| + | </ | ||
| + | <columns 100% 50% 50%> | ||
| + | Click **Apply and Reboot** in order to save the changed settings to the device and to reboot it. | ||
| + | < | ||
| + | {{ reference: | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group>< | ||
| + | You can observe the boot process with the previously-connected serial terminal. When it completes, a login prompt will be seen. | ||
| + | |||
| + | Log into the device. By default, the username and password are both "// | ||
| + | |||
| + | Note that upon login, a " | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | Check out the dropdowns below for instructions on setting up an internet connection through the corresponding interfaces: | ||
| + | |||
| + | --> | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | **Plug** one end of the ethernet cable into the back of the Analog Discovery Pro and the other end into the router. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | Run the '' | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <-- | ||
| + | |||
| + | -->WiFi# | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | Enter superuser mode by **running** the command '' | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | Plug the USB WiFi dongle into the bottom left USB port. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | In the terminal, run '' | ||
| + | In this case, the WiFi interface is `wlx00c0caad6c4b`, | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | Create the WIF, WSSID, and WPWD environment variables to be used in the following commands. The WIF is the WiFi interface you found in the last step, while the WSSID and WPWD are the name and password of your WiFi network. This can be done as follows: | ||
| + | |||
| + | < | ||
| + | WIF=your-interface | ||
| + | WSSID=your-ssid-here | ||
| + | WPWD=your-password-here | ||
| + | </ | ||
| + | |||
| + | **Note:** //If the SSID or WPWD has ' | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | For a connection that will persist after a system reboot, run the following: | ||
| + | <code bash> | ||
| + | wpa_passphrase " | ||
| + | systemctl enable wpa_supplicant@${WIF}.service | ||
| + | systemctl start wpa_supplicant@${WIF}.service | ||
| + | </ | ||
| + | |||
| + | Note that it may take some time for a WiFi connection to be established when rebooting the device, potentially several minutes. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | For a connection that will only exist until a reboot, run the following: | ||
| + | <code bash> | ||
| + | wpa_supplicant -B -i $WIF -c < | ||
| + | </ | ||
| + | |||
| + | Note that it may take some time for a WiFi connection to be established when rebooting the device, potentially several minutes. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | ===== Final Steps ===== | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | Finally, verify the connection to the internet by running '' | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | ===== Other Resources ===== | ||
| + | For an example of using the networking capabilities of the Analog Discovery Pro, check out [[test-and-measurement: | ||
| + | |||
| + | Check out the [[start|Analog Discovery Pro (ADP3450/ | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||
| + | |||

