WIFI-2 - OEM WiFi USB module

WIFI-2 is IEE802.11 b/g/n, USB 2.0, Wi-Fi compliant module designed on a RaLink RT5370N chip. This chip is fully supported on the latest Kernel Linux versions.

WIFI-2 is an OEM module thought to be used directly on a PCB instead of plugged in a USB port. It works at 3.3V (not 5 volt !) and can be configured in Access Point mode.

It is available in two model:

  • WIFI-2 which needs an external RF antenna plugged on the i-PEX MHF receptacle
  • WIFI-2-IA without the i-PEX MHF receptacle using the onboard PCB antenna
Don't use the WIFI-2-IA model with Arietta G25 board because it hangs the CPU. Use the WIFI-2 instead

Both models are available with a 6 pin pitch 2mm solded on semi-holes to be plugged on a female connector or welded directly on the PCB.

Module pinout

Pin # Signal Description
1 TX RF ON/OFF control. Low level activated to OFF
2 3V3 Power supply 3.3 VDC
3 D- USB data -
4 D+ USB data +
5 GND Ground
6 LED Module working status led output
7 WPS WPS function. Low level activated

Datasheet and test reports

Related links

Using the WIFI-2 module on Arietta G25

Arietta has a placement for an IEE802.11 b/g/n, USB 2.0 OEM WiFi adapter using a RaLink RT5370N chip. This chip is fully supported on the latest Kernel Linux versions and can be used to work in Access Point mode.

WiFi module placement

As shown below Arietta has a placement for 6 strip pitch 2mm where it is possible to place a WiFi module. The WiFi module has a 6 pin male strip already soldered on the bottom side. On Arietta it is possible to place a female connector or to weld the WiFi module directly in case you don't need to remove the module and need instead to save more <space.

On this pad are presents the USB B host port signals, the power supply line at 3.3 volt DC, and some GPIO used to manage some module function.

Pin # Signal Dir Description
7 WPS OUT WSP function. Low level activated. Wired to PC16
6 LED N.C. WiFi module activity led. Not used
5 GND Signal ground GND
4 USB B D+ USB Host B D+
3 USB B D- USB Host B D-
2 VCC 3.3V DC OUT Output from the internal regulator from 5 to 3.3 volt
1 WiFi TXEN OUT RF on/off control. Low level activated to off. Wired to PC30


When the WiFi module is mounted the USB port B signals on J4.16 (D+) and J4.18 (D-) are not usable for other purposes.

Setting the WPS and TXEN lines

To activate the WPS mode

# echo 80 > /sys/class/gpio/export
# echo out > /sys/class/gpio/pioC16/direction
# echo 0 > /sys/class/gpio/pioC16/value

To de-activate the WPS mode

# echo 1 > /sys/class/gpio/pioC16/value

To turn off the WiFI TX

# echo 94 > /sys/class/gpio/export
# echo out > /sys/class/gpio/pioC30/direction
# echo 0 > /sys/class/gpio/pioC30/value

To turn-on the WiFi TX

# echo 1 > /sys/class/gpio/pioC30/value

Linux Kernel configuration

This are the driver to enable inside the Linux Kernel to support the WIFI-2 module:

  • Debian users will use the make ARCH=arm menuconfig command.
  • Buildroot users will use the make linux-menuconfig command.
Device Drivers  --->
  [*] USB support  ---> 
    <*> USB Wireless Device Management support
Device Drivers > 
  Network device support > 
    Wireless LAN [*]
     <*>   Ralink driver support (NEW)  --->
       <*>   Ralink rt2501/rt73 (USB) support
       --- Ralink driver support
            < >   Ralink rt2500 (USB) support
            < >   Ralink rt2501/rt73 (USB) support
            <*>   Ralink rt27xx/rt28xx/rt30xx (USB) support
            [*]     rt2800usb - Include support for rt33xx devices (NEW)
            [*]     rt2800usb - Include support for rt35xx devices (EXPERIMENTAL) (NEW)
            [*]     rt2800usb - Include support for rt53xx devices (EXPERIMENTAL)
            [ ]     rt2800usb - Include support for rt55xx devices (EXPERIMENTAL) (NEW)
            [ ]     rt2800usb - Include support for unknown (USB) devices (NEW)
            [ ]   Ralink debug output
       
       

Package installation

A closed firmware made by RaLink need to be installed. This firmware will be loaded on the module at startup

Debian users
# apt-get update
# apt-get install firmware-ralink
Buildroot users

In make menuconfig enable these flags:

Target packages --->
        Hardware handling --->
            Firmware --->
                [*] linux-firmware
                    WiFi firmware  --->
                        [*] Ralink rt27xx/rt28xx/rt30xx 

We need also to install some utilities like iw and wpa_supplicant.

Debian users

Install iw and wpasupplicant using make menuconfig:

~# apt-get install wpasupplicant
~# apt-get install iw
Buildroot users

Install iw and wpasupplicant using make menuconfig:

Target packages  --->
    Networking applications  ---> 
        [*] iw
        [*] wpa_supplicant
        [*]   Enable AP mode
        [*]   Install wpa_passphrase binary 

Network configuration to get access to a WPA-WPA2-protected Wi-Fi

Add inside the file /etc/network/interfaces the configuration for the wlan0 network adapter to add Wi-Fi Protected Access (WPA) or Wi-Fi Protected Access II (WPA2).

auto wlan0
iface wlan0 inet dhcp
    wireless-essid any
    pre-up wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
    post-down killall -q wpa_supplicant

If, for example, my access point is called "acme" and the password is "ariettag25" write inside /etc/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1

network={
    ssid="acme"
    psk="ariettag25"
    scan_ssid=1
    proto=WPA RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
}

It is possible to hide the password using wpa_phassphrase

# wpa_passphrase acme ariettag25
network={
        ssid="acme"
        #psk="ariettag25"
        psk=ae6a6e81dc55b2c769a36ebe7405a222cf26876515b7bfa4c17ad9db95a39d57
}

and use the ae6a6e81dc55b2c769a36ebe7405a222cf26876515b7bfa4c17ad9db95a39d57 in place of ariettag25.

Restart wlan0:

arietta:~# ifdown wlan0
arietta:~# ifup wlan0

After a while if the dhcp are working well you will obtain your interface up.


WIFI-2-IA
EUR 7.00


WiFi USB module (Internal Antenna)

OEM Small USB 2.0 IEEE 802.11 b/g/n Wi-Fi compliant module based on the RaLink RT5370N chip. It works at 3.3V and can be configured also in Access Point mode.

This model uses the internal PCB antenna. The operative range of this solution is limited to few meters (2-3 mt). If you need a greater distance evaluate the model with external antenna.

Don't use the WIFI-2-IA model with Arietta G25 board because it hangs the CPU. Use the WIFI-2 instead

WIFI-2
EUR 7.00


WiFi USB module

OEM Small USB 2.0 IEEE 802.11 b/g/n Wi-Fi compliant module based on the RaLink RT5370N chip. It works at 3.3V and can be configured also in Access Point mode.

This model requires an external antenna model AN-WIFI-01 or AN-WIFI-02.

AN-WIFI-01
EUR 3.50


WiFi pcb external antenna

WiFi PCB antenna with 11 cm cable and UMC 2mm connector to be plugged on WIFI-2 module.

| Antenna datasheet |

AN-WIFI-02
EUR 7.00


WiFi external antenna with SMA cable
  • RF cable with panel mountable SMA connector and UMC 2mm connector to be plugged on a WIFI-2 module.
  • WiFi rubber antenna

| Antenna datasheet | Cable datasheet |

DWA-131
EUR 24.00


WiFi dongle

D-Link USB WiFi mini adapter.

The packaging could be different than in photo.

| How to use it | Product info