This article explains how to use some USB Wi-Fi adapters on your CORE9G25 Boards

The USB Wi-Fi adapter tested, based on Realtek 8188su or 8188csu chips, are:


Insert the USB dongle

Insert the Wi-Fi USB adapter on your CORE9G25 Board USB port. These messages should appear on the debug port or by typing dmesg command:

USB miniadapter message

usb 2-3: new full-speed USB device number 13 using at91_ohci
usb 2-3: not running at top speed; connect to a high speed hub
usb 2-3: config 1 interface 0 altsetting 0 has 7 endpoint descriptors, different from the interface descriptor's value: 5
usb 2-3: New USB device found, idVendor=148f, idProduct=5370
usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-3: Product: 802.11 n WLAN
usb 2-3: Manufacturer: Ralink
usb 2-3: SerialNumber: 1.0
usb 2-3: reset full-speed USB device number 13 using at91_ohci

If you don't obtain these messages you will probably have to update Kernel uImage file.

When you get the right messages try to type this command:

debarm:~# iwconfig 
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

which provides info about the wireless extensions of each network adapter (in this case wlan0).

Network configuration

run the follow command line to configure the USB Wifi module.

# wpa_passphrase CW-WiFi corewind >>/etc/wpa_supplicant.conf 

The WiFi Router name is CW-WiFi, the password is corewind

Then Edit the /etc/network/interfaces file with the follow word, then you can boot the board with the ethernet preset.

Set the wlan0 for DHCP when booting

auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf

Set the wlan0 for Static IP address when booting

auto wlan0
iface wlan0 inet static
address 192.168.1.142
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
pre-up wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf

Test the Wifi Network

Reboot the board, then it will connect the wifi Router as your configure. run the follow command to test it.

debarm:~# ifconfig
...
wlan0     Link encap:Ethernet  HWaddr 5c:d9:98:a7:3a:fe                         
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0        
          inet6 addr: fe80::5ed9:98ff:fea7:3afe/64 Scope:Link                   
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:4057 errors:0 dropped:0 overruns:0 frame:0                 
          TX packets:327 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:1000                                          
          RX bytes:287147 (280.4 KiB)  TX bytes:21864 (21.3 KiB)          

Related links

关注我们: 微博

销售邮箱:market@armdevs.com
技术支持: support@armdevs.com
销售电话: +86-755-29638421


核风在线支持>
在线时间:09:00-18:00
Copyright @ 2014 to 2020 - 核风智能技术有限公司