User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.7.2. WIFI connection test
Please do not connect to WIFI by modifying the /etc/network/interfaces configuration file. There will be problems connecting to the WIFI network in this way.

3.7.2.1 The server image connects to WIFI through commands

When the development board is not connected to Ethernet, not connected to HDMI display, but only connected to the serial port, it is recommended to use the commands demonstrated in this section to connect to the WIFI network. Because nmtui can only display characters in some serial port software (such as minicom), and cannot display the graphical interface normally. Of course, if the development board is connected to an Ethernet or HDMI display, you can also use the commands demonstrated in this section to connect to the WIFI network.

  • 1) First log in to the linux system, there are the following three ways

    a. If the development board is connected with a network cable, SSH remote login development board under Ubuntu

    b. If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system

    c. If the development board is connected to the HDMI display, you can log in to the linux system through the terminal displayed on the HDMI

  • 2) First use the nmclidevwificommand to scan the surrounding WIFI hotspots

    orangepi@orangepi:~$ nmcli dev wifi



    Img 3.278

  • 3) Then use the nmcli command to connect to the scanned WIFI hotspot, where:

    a. wifi_name Need to replace it with the name of the WIFI hotspot you want to connect to

    b. wifi_passwdNeed to change to the password of the WIFI hotspot you want to connect to

    
    orangepi@orangepi:~$ sudo nmcli dev wifi connect wifi_name password wifi_passwd
    Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.

  • 4) You can view the IP address of wifi through the ip addr show wlan0 command
    
    orangepi@orangepi:~$ ip a s wlan0
     11: wlan0:  mtu 1500 qdisc pfifo_fast
    state UP group default qlen 1000
    link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
    valid_lft 259192sec preferred_lft 259192sec
    inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic
    noprefixroute
    valid_lft 259192sec preferred_lft 172792sec
    inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
    valid_lft forever preferred_lft forever 

  • 5) Use the ping command to test the connectivity of the wifi network, and the ping command can be interrupted through the shortcut key Ctrl+C
    
    orangepi@orangepi:~$ ping www.orangepi.org -I wlan0
    PING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of
    data.
     64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=1 ttl=52 time=43.5 ms
     64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=2 ttl=52 time=41.3 ms
     64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=3 ttl=52 time=44.9 ms
     64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms
     64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms
    ^C
    --- www.orangepi.org ping statistics ---
     5 packets transmitted, 5 received, 0% packet loss, time 4006ms
    rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
    

    3.7.2.2 The server image connects to WIFI in a graphical way

  • 1) First log in to the linux system, there are the following three ways

    a. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh

    b. If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the linux system (please use MobaXterm for the serial port software, and the minicom cannot display the graphical interface)

    c. If the development board is connected to the HDMI display, you can log in to the linux system through the HDMI display terminal

  • 2) Then enter the nmtui command in the command line to open the wifi connection interface
    orangepi@orangepi:~$ sudo nmtui

  • 3) Enter the nmtui command to open the interface as shown below


    Img 3.34

  • 4) Select Activateaconnect and press Enter


    Img 3.35

  • 5) Then you can see all the searched WIFI hotspots


    Img 3.36

  • 6) Select the WIFI hotspot you want to connect to, then use the Tab key to position the cursor on Activate and press Enter


    Img 3.37

  • 7) Then a dialog box for entering a password will pop up, enter the corresponding password in Password and press Enter to start connecting to WIFI


    Img 3.38

  • 8) After the WIFI connection is successful, a "*" will be displayed in front of the connected WIFI name


    Img 3.39

  • 9) You can view the IP address of wifi through the ip aswlan0 command

    orangepi@orangepi:~$ ip a s wlan0
    

  • 11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 24:8c:d3:aa:76:bbbrd ff:ff:ff:ff:ff:ff inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0 valid_lft 259069sec preferred_lft 259069sec inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute valid_lft 259071sec preferred_lft 172671sec inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute valid_lft forever preferred_lft forever
  • 10) Use the ping command to test the connectivity of the wifi network, and the ping

    ^C --- ping statistics ---

  • 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms

    3.7.2.3 Test method of desktop image

  • 1) Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)


    Img 3.40

  • 2) Click 'More networks' in the pop-up drop-down box to see all scanned WIFI hotspots, and then select the WIFI hotspot you want to connect to


    Img 3.41

  • 3) Then enter the password of the WIFI hotspot, and then click Connect to start connecting to WIFI


    Img 3.42

  • 4) After connecting to WIFI, you can open the browser to check whether you can access the Internet. The entrance of the browser is shown in the figure below


    Img 3.43

  • 5) If you can open other web pages after opening the browser, it means that the WIFI connection is normal


    Img 3.44

     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122