Nvidia jetson nano wifi

Jetson Nano USB Headless WiFi Setup (Edimax EW-7811Un)

The easiest way to setup a Jetson Nano for headless WiFi is to use a USB adapter. The EdiMax EW-7811Un is popular for use with the Raspberry Pi. It can also be used with a Nano, but requires a command line setting to get it to act reliably. I will show you how to do that below.

Where to buy

You can find the EdiMax EW-7811Un Wi-Fi USB Adapter here (affiliate link):

BTW, just because it says «Nano» in the title is just a coincidence, as far as I know.

Add to a desktop or start totally headless?

These instructions are for adding a WiFi adapter to a new or existing desktop setup. As of Jetpack 4.2.1 you can set things up completely headless (no monitor, keyboard or mouse). If you’d like to do a completely headless setup from scratch, see my article: Jetson Nano Headless WiFi Setup. But if you want to work from a desktop or have an existing desketop setup, follow the steps below.

Step 1. Setup the Jetson Nano for WiFi

  • Plug the EdiMax into one of the USB ports
  • Plug in an HDMI monitor, USB keyboard and mouse
  • Plug in a power adapter
    • If you need help with a power adapter, see my article: Jetson Nano Power Supply (Barrel vs MicroUSB)

    Once you’ve setup and logged into the desktop with your username and password, proceed to the next step.

    Step 2. Open the Desktop Settings menu

    Step 3. Open the Systems Settings dialog box

    Step 4. Setup the WiFi connection

    • Click the Network dialog in the dialog box
    • Setup your network connection

    Step 5. Turn off power save mode (for stability)

    Even though my Nano was sitting right next to my router it kept dropping the connection. I fixed the problem with the command below to turn power save off.

    • Right-click the desktop and select Open Terminal
    • Type in the following command and then press Enter:
    sudo iw dev wlan0 set power_save off 

    Step 6. Reboot

    After making changes you should reboot.

    Step 7. ssh from another computer

    Once the Nano reboots, do the following on another computer that is on the same network:

    • Open up a terminal window or command prompt
    • Type the following in the command line (substituting user and hostname) and press Enter:
    • For example, my user name is mitch and my Nano hostname is jet1 . So I do the following to connect over WiFi:
    • If prompted with RSA key fingerprint is . Are you sure you want to continue connecting (yes/no)? — select Yes
    • Enter your password

    Step 8. Shutdown the Nano

    Whenever possible, try to avoid just pulling the plug on your Nano.
    Once you are done.

    Step 9. Disconnect the peripherals

    If you want to just use the Nano headless:

    • Shutdown the Nano using the previous step
    • Disconnect the power cord
    • Disconnect the HDMI monitor, keyboard and mouse

    Step 10. Start the Nano headless

    • Verify the USB WiFi adapter is still plugged in to the Nano
    • Reconnect the power cord
    • Wait 30 to 90 seconds for the Nano to boot up

    Step 11. Login again

    Using ssh again, login to the now headless Nano over WiFi.

    Step 12. Run some updates

    At this point it’s a good idea to run some updates. You can do that by entering the commands below on the Nano.

    sudo apt-get update sudo apt-get upgrade 

    Troubleshooting

    If you are having issues with a dropped connection, see this thread.

    WiFi Command Line Utilities

    To view your current setup and debug issues, you may find some of these command line utilities helpful.

    • lsusb — List info on your USB wifi adapter
    • nmcli device wifi list — List info on your wifi signal
    • nmcli connection show — List connections
    • iwconfig — List info your your wifi connections
    • ifconfig wlan0 — List info about the wlan0 wifi connection
    • Jetson Nano Headless WiFi Setup
    • Jetson Nano Power Supply (Barrel vs MicroUSB)
    • My post on Jetson Nano USB Login shows how to establish a headless connection without WiFi
    • How to add a dual WiFi Bluetooth card to a Jetson Nano (Intel 8265)
    • My frequently updated Jetson Nano Resource Guide — check it out if you need things like a wireless keyboard and trackpad that fits into a pocket

    References

    • Started with the NVIDIA Jetson Nano Developer Kit [1] — has some tips on getting remote desktop working
    • Jetson Nano + Intel Wifi and Bluetooth [2]
    • Jetson Nano — Headless Setup [3] — shows how as of Jetpack 4.2.1 you can set things up completely headless

    Источник

    Jetson Nano Headless WiFi Setup

    In this article I show you how to perform a headless WiFi setup of a Jetson Nano. No monitor, keyboard or mouse required.

    In order for these steps to work, you should be using a recent version of JetPack.

    Step 1. Gather the parts

    For the steps in this article you will need the following:

    • Jetson Nano
    • 5V 4A Barrel Jack Power Supply
    • Micro USB cable
    • SD Card (64GB or 128GB)
    • Network card or Edimax EW-7811Un
    • Header jumper — which should be supplied with the most recent versions

    Step 2. Download the Nano SD card image

    This article was tested on a Jetson Nano (B01) using this image:

    You can download it from here:

    Step 3. Flash the image to the SD card

    Flash the image to the SD card using balenaEtcher.

    I recommend using at least a 64GB card, such as this one:

    Once the image is flashed to the hard-drive, you may see a message like I did on my Mac that says The disk you inserted was not readable by this computer. In that case, click Eject.

    Remember that on a Mac this isn’t a physical eject. It’s a software eject. Which means it’s safe to pull the SD card and its adapter out of your computer.

    Step 4. Install your network card or dongle

    To test this article I’m using this WiFi adapter plugged into one of the USB ports:

    You also have the option of setting up with no network card.

    Step 5. Insert the microSD card

    The microSD card goes in the back, just under the heatsink.

    If you are looking down on the Nano the contacts must be face up.

    The card reader has a spring so you have to gently push the card info the device.

    On a B01 especially, make sure you don’t bend the nearby header pins.

    Step 6. Set the power jumper

    The jumper may be there, but it may not be set on both posts.

    If for some reason the jumper is missing you can buy more here:

    Step 7. Connect the Micro-USB cable

    • Use a cable from a Raspberry Pi or an Android phone
    • Plug the Micro-USB cable into the Jetson Nano
    • Plug the other end into your computer or laptop

    Step 8. Plug in the power jack

    • Plug one end of the 5V 4A power supply into the barrel jack on the Jetson Nano
    • Plug the other end into a wall socket or power strip

    Step 9. Wait for the Jetson Nano to boot up

    • Wait for a drive to appear on your desktop
    • It may be labeled LT4-README.

    Step 10. Look for the new device

    You should see a device like this:

    /dev/cu.usbmodem14231190531643 

    If you see multiple devices that start with /dev/cu.usbmodem, unplug the Micro-USB cable from the Nano so you can figure out which one it is.

    Step 11. Connect over USB

    If you have only one device you can connect to the Jetson Nano from the terminal using this command:

    screen /dev/cu.usbmode* 115200 -L 

    If you had multiple devices, replace the wildcard with the full name.

    Step 12. Fill in the config info

    You should now see a screen like this:

    System Configuration ┌────┤ License For Customer Use of NVIDIA Software ├─────┐ │ │ │ Welcome to Jetson Initial Configuration │ │ │ │ │ │ │ └────────────────────────────────────────────────────────┘ 
    • If Ok isn’t highlighted, press Tab
    • Press Enter
    • Accept the license agreement (Press Tab / Enter)
    • Select your language (in my case English / Tab / Enter)
    • Select your country (in my case United States / Tab / Enter)
    • Select your timezone (in my case Eastern / Tab / Enter)
    • Select UTC (the recommendation is to select Yes / Enter)
    • Select a new user name (in my case mitch / Enter)
    • Select a password (enter something unique then Enter)
    • Confirm the password (enter it again, then press Enter)
    • APP Partition Size (I use the recommended default)

    Network configuration

    • If you aren’t concerned about networking right now, select dummy0: Unknown interface (note that DHCP will fail later, but you can skip that)
    • If you are using a network card (in this case I’m using the Edimax) select wlan0: Wireless ethernet (802.11x)
    • For Wireless ESSID for wlan0 enter your network name
    • In my case for Network configuration I selected WPA/WPA2 PSK
    • When prompted enter the pass phrase for your network
    • For hostname, backout the default string and enter your desired hostname (I chose jet2)

    At this point you will be prompted to login with your username. But the connection may be in a weird state after you are done with the configuration. The easiest thing to do is to just kill the current Terminal window and open up a new one.

    Note: When trying to setup networking on one attempt I ran into a failure. I tried again with the exact same credentials and it succeeded.

    Step 13. Login over USB

    screen /dev/cu.usbmode* 115200 -L 

    Step 14. Shutdown the Jetson Nano

    • Enter your password for the Nano
    • Wait for the lights on the Nano to go out
    • Disconnect the barrel jack power connector
    • Disconnect the micro USB cable

    A this point you can put away the micro-USB connector. You won’t need it for the rest of this article.

    Step 15. Test over WiFi

    You may find that after the last step your Terminal window is again in a weird state.

    Just close it and open up a new one.

    • Plug the barrel power jack back into the Nano
    • Wait a minute or two for it to boot up
    • From a laptop on the same network login over WiFi via ssh

    Since my user name is mitch and my Jetson Nano hostname is jet2, I would login like this (adjust for your username and hostname):

    If you get a warning

    Because I run through these steps multiple times using the same hostname, I sometimes get a warning like this:

    You may see it too if you are trying again with the same hostname.

    If you see that error, try this (substituting YOUR-HOSTNAME):

    ssh-keygen -R YOUR-HOSTNAME.local 

    Step 16. Run some updates

    At this point it’s a good idea to run some updates. You can do that by entering the commands below on the Nano.

    sudo apt-get update sudo apt-get upgrade 

    Step 17. Create a swap file

    I borrowed these swap file steps from the JetBot wiki.

    sudo fallocate -l 4G /var/swapfile sudo chmod 600 /var/swapfile sudo mkswap /var/swapfile sudo swapon /var/swapfile sudo bash -c 'echo "/var/swapfile swap swap defaults 0 0" >> /etc/fstab' 

    Step 18. Turn on the fan

    To see the current status:

    sudo /usr/bin/jetson_clocks --show 
    sudo /usr/bin/jetson_clocks --fan 

    The —fan flag is now required to turn the fan on.

    Step 19. Shutdown properly

    Once you are done, you can shut down the Jetson Nano with this command:

    Conclusion

    In this article you learned:

    • what hardware is required to perform a headless WiFi setup
    • how to connect from your computer to a brand new Jetson Nano
    • how to remotely login to a Jetson Nano over WiFi
    • how to create a swap file
    • how to turn on the fan

    Here is a list of additional articles that I’ve written up for the Jetson Nano:

    • Jetson Nano Power Supply (Barrel vs MicroUSB) — When you get a Jetson Nano Developer Kit, the first thing you need to figure out is how to power it. Should you use the Micro USB port with the same 5V 2.5A power supply you use on a Raspberry Pi? Or should you invest in a 5V 4A barrel jack power supply? In this article I answer that question.
    • Jetson Nano USB Headless WiFi Setup (Edimax-EW-7811UN) — The easiest way to setup a Jetson Nano for headless WiFi is to use a USB adapter. The EdiMax EW-7811Un is popular for use with the Raspberry Pi. It can also be used with a Nano, but requires a command line setting to get it to act reliably. In this article I show you how to set it up
    • How to add a dual WiFi Bluetooth card to a Jetson Nano (Intel 8265) — In this post I show advanced users how to upgrade to an Intel Dual Band Wireless card that will also provide Bluetooth functionality
    • My frequently updated Jetson Nano Resource Guide — check it out if you need things like a wireless keyboard and trackpad that fits in your pocket

    References

    Источник

    Читайте также:  Узнать пароль своего вайфая виндовс 10
Оцените статью
Adblock
detector