Open main menu

DAVE Developer's Wiki β

XUELK-AN-001: Using WiFi-Bluetooth combo plugin with SBC Lynx

Revision as of 15:11, 11 August 2016 by U0010 (talk | contribs)

Info Box
SBC Lynx-top.png Applies to SBC Lynx

Contents

HistoryEdit

Version Date XUELK version Notes
1.0.0 1.0.0 August 2016 First public release

IntroductionEdit

SBC Lynx can be populated with DWM WiFi/Bluetooth combo plugin to easily add wireless connectivity.

This application note describes how to enable these interfaces when working with XUELK 1.0.0

LimitationsEdit

DWM wireless module shares some signals with mezzanine board connector J53. Thus, when DWM module is used, the following signals must be left floating:

  • J53.1 (UART2_RX_DATA)
  • J53.2 (UART2_nRTS)
  • J53.3 (UART2_TX_DATA)
  • J53.4 (UART2_nCTS).

WiFiEdit

Enable of interface

root@sbc-lynx:~# ifconfig wlan0 down
wlcore: down
root@sbc-lynx:~# ifconfig wlan0 up
wlcore: firmware booted (Rev 6.3.10.0.133)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

Scan of AP

root@sbc-lynx:~# iw wlan0 scan
BSS ca:d7:19:92:f9:17(on wlan0)
        TSF: 36464451691 usec (0d, 10:07:44)
        freq: 2412
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -97.00 dBm
        last seen: 2820 ms ago
        Information elements from Probe Response frame:
        SSID: davesrl2
        Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
        DS Parameter set: channel 1
        ERP: <no flags>
        ERP D4.0: <no flags>
        RSN:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: TKIP
                 * Authentication suites: PSK
                 * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
        Extended supported rates: 6.0 9.0 12.0 48.0
        WMM:     * Parameter version 1
                 * u-APSD
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec

BluetoothEdit

root@sbc-lynx:~# echo 135 > /sys/class/gpio/export
root@sbc-lynx:~# echo out > /sys/class/gpio/gpio135/direction
root@sbc-lynx:~# echo 1 > /sys/class/gpio/gpio135/value
root@sbc-lynx:~# hciattach -t 60 /dev/ttymxc1 texas 115200
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_7.6.15.bts
Loaded BTS script version 1
texas: changing baud rate to 3000000, flow control to 1
Device setup complete
root@sbc-lynx:~# hciconfig hci0 up
root@sbc-lynx:~# hcitool scan
Scanning ...
        00:02:72:C6:40:16       virt