Note:
This article is related to an older version of the Red Pitaya OS. With the latest image Red Pitaya has improved the configuration. The step-by-step instructions can be found here: http://redpitaya.com/quick-start/


Since a few days I’m a proud owner of a Red Pitaya (Homepage). Getting this neat little device up and running is relatively straight forward (extract the ZIP-file containing the OS on a microSD-card, insert the card into the Red Pitaya and power it on).

RedPitaya

Using the Red Pitaya with an USB WLAN dongle is not as intuitive as the previous mentioned setup. Below I’ve detailed the steps required to correctly setup the device as a WLAN client, which I think is the most common used setup.

As recommended in the Red Pitaya user manual I’m using a Edmiax EW-7811Un WIFI dongle.

Note: When working via SSH the content of the microSD-card (as shown on the desktop computer) is available under /opt.

  1. Insert the microSD-card into the computer (or connect to the device using SSH)
  2. Open /etc/network/wpa_suplicant.conf (when directly accessing the microSD-card) or /opt/etc/network/wpa_supplicant.conf (when working over SSH) in your favourite editor and enter the WLAN configuration details (esp. SSID and PSK).For a WLAN with WPA2 this looks like:
    ctrl_interface=/var/run/wpa_supplicant
    
    # WPA configuration example
    network={
           ssid="YOUR_WLAN_ACCESSPOINT_SSID"
           scan_ssid=1
           proto=WPA2 RSN
           key_mgmt=WPA-PSK
           pairwise=CCMP TKIP
           group=CCMP TKIP
           psk="TOPSECRECTPASSWORD"
    }
  3. Enable WLAN by changing the wlan0 entry in the file /etc/network/inferface (microSD-card) or /opt/etc/network/interface (SSH) to
    ################################
    # wlan0: Wireless USB adapter  #
    ################################
    
    auto wlan0
    iface wlan0 inet dhcp
        pre-up wpa_supplicant -B -D wext -i wlan0 -c /opt/etc/network/wpa_supplicant.conf
        post-down killall -q wpa_supplicant
        udhcpc_opts -t7 -T3
  4. By default the Red Pitaya is configured as WLAN accesspoint. To change this edit /etc/network/config (microSD-card) or /opt/etc/network/config (SSH) and change the WIFI entry as follows:
    # WiFi configuration
    #
    # WiFi on Red Pitaya can act either as a:
    # client) Network client, connecting Red Pitaya to your existing LAN.
    # ap)     Access Point (AP) allowing your PC/tablet/smartphone to
    #         connect directly to Red Pitaya. This mode implements a
    #         router between the Red Pitaya WiFi (LAN) and its 1000Base-T
    #         Ethernet (WAN) as well. This allows you to access the
    #         Internet from the Red Pitaya WiFi network.
    #
    WIFI=client
  5. Remove the microSD-card from the computer, insert it into the Red Pitaya, power it up and wait a few seconds to let it connect to the configured WLAN access point