Changes

Jump to: navigation, search

Using WiFi-Bluetooth combo plugin (DIVELK)

6,964 bytes removed, 09:43, 2 May 2018
no edit summary
{{InfoBoxTop}}
{{Applies To DivaAppliesToSBCD}}
{{InfoBoxBottom}}
SBC Diva can be populated with DWM WiFi/Bluetooth combo plugin to easily add wireless connectivity.
In order to enable the bluetooth, the correct device tree configuration must be passed to the kernel.
The sbcd comes with two possible devicetree configurations. The default one enables the UART1 and therefore the bluetooth and wifi module. The while the other configuration instead, enables the can CAN interface and disables the UART1.
[[File:DWM.png|center|alt=DWM module for SBCD]] '''Note:''' make sure In order to pass enable the DWM module, the correct devicetree configurationdevice tree file must be loaded.
== Wifi ==
To enable the wifi, the correct gpio gpio114 pin must be configured. Once this has been done, the wlan0 interface should become accessible.
The gpio pin can be enabled as follow:
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
BSS 20:aa:4b:22:55:5e(on wlan0) TSF: 12265174727 usec (0d, 03:24:25) freq: 2437 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431) signal: -62.00 dBm last seen: 3290 ms ago Information elements from Probe Response frame: SSID: d8738e189d2148f59769 Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0* 36.0 54.0 DS Parameter set: channel 6 ERP: <no flags> ERP D4.0: <no flags> Extended supported rates: 6.0* 9.0 12.0* 48.0 WPA: * Version: 1 * Group cipher: TKIP * Pairwise ciphers: TKIP * Authentication suites: PSK * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c) 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 usecBSS 22:aa:4b:22:55:5f(on wlan0) TSF: 12265175434 usec (0d, 03:24:25) freq: 2437 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431) signal: -62.00 dBm last seen: 3290 ms ago Information elements from Probe Response frame: SSID: daveguest Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0* 36.0 54.0 DS Parameter set: channel 6 ERP: <no flags> ERP D4.0: <no flags> Extended supported rates: 6.0* 9.0 12.0* 48.0 WPA: * Version: 1 * Group cipher: TKIP * Pairwise ciphers: TKIP * Authentication suites: PSK * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c) 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 usecBSS 22:aa:4b:22:55:5c(on wlan0) TSF: 12265173949 usec (0d, 03:24:25) freq: 2437 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431) signal: -62.00 dBm last seen: 3290 ms ago Information elements from Probe Response frame: SSID: davesrl Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0* 36.0 54.0 DS Parameter set: channel 6 ERP: <no flags> ERP D4.0: <no flags/pre> Extended supported rates: 6.0* 9.0 12.0* 48.0 WPA: * Version: 1 * Group cipher: TKIP * Pairwise ciphers: TKIP * Authentication suites: PSK * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c) 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 usecBSS fc:f5:28:cc:03:90(on wlan0) TSF: 55002853 usec (0d, 00:00:55) freq: 2437 beacon interval: 100 TUs capability: ESS ShortPreamble ShortSlotTime (0x0421) signal: -53.00 dBm last seen: 3290 ms ago SSID: ZyXEL Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 DS Parameter set: channel 6 ERP: <no flags> Extended supported rates: 24.0 36.0 48.0 54.0 WMM: * Parameter version 1 * 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 HT capabilities: Capabilities: 0x11cc HT20 SM Power Save disabled RX HT40 SGI TX STBC RX STBC 1-stream Max AMSDU length: 3839 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 8 usec (0x06) HT RX MCS rate indexes supported: 0-15 HT TX MCS rate indexes are undefined HT operation: * primary channel: 6 * secondary channel offset: no secondary * STA channel width: 20 MHz * RIFS: 1 * HT protection: no * non-GF present: 0 * OBSS non-GF present: 0 * dual beacon: 0 * dual CTS protection: 0 * STBC beacon: 0 * L-SIG TXOP Prot: 0 * PCO active: 0 * PCO phase: 0BSS fe:f0:28:cc:03:90(on wlan0) TSF: 55005366 usec (0d, 00:00:55) freq: 2437 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431) signal: -53.00 dBm last seen: 3290 ms ago SSID: SSID_ZyXEL_WPA2 Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 DS Parameter set: channel 6 RSN: * Version: 1 * Group cipher: TKIP * Pairwise ciphers: TKIP * Authentication suites: PSK * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000) ERP: <no flags> Extended supported rates: 24.0 36.0 48.0 54.0 WMM: * Parameter version 1 * BE: CW 15-1023, AIFSN 3 * BK: CW 15-1023, AIFSN 7 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec * VO: CW 3pre class="board-7, AIFSN 2, TXOP 1504 usecBSS e6:a4:71:bb:89:c9(on wlan0) TSF: 998223663 usec (0d, 00:16:38) freq: 2462 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble SpectrumMgmt ShortSlotTime ImmediateBACK (0x8531) signal: -63.00 dBm last seen: 3230 ms ago SSID: DESKTOP-F2C93JD 4556 Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0* 9.0 12.0* 18.0 DS Parameter set: channel 11 TIM: DTIM Count 2 DTIM Period 3 Bitmap Control 0x0 Bitmap[0] 0x0 ERP: <no flagsterminal"> HT capabilities: Capabilities: 0x9a5 RX LDPC HT20 Dynamic SM Power Save RX HT20 SGI TX STBC RX STBC 1-stream Max AMSDU length: 7935 bytes No DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 4 usec (0x05) HT RX MCS rate indexes supported: 0-15 HT TX MCS rate indexes are undefined RSN: * Version: 1 * Group cipher: CCMP * Pairwise ciphers: CCMP * Authentication suites: PSK * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c) Extended supported rates: 24.0* 36.0 48.0 54.0 HT operation: * primary channel: 11 * secondary channel offset: no secondary * STA channel width: 20 MHz * RIFS: 1 * HT protection: non-HT mixed * non-GF present: 1 * OBSS non-GF present: 0 * dual beacon: 0 * dual CTS protection: 0 * STBC beacon: 0 * L-SIG TXOP Prot: 0 * PCO active: 0 * PCO phase: 0 Extended capabilities: Extended Channel Switching, Timing Measurement, 6 WMM: * Parameter version 1 * 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 WPS: * Version: 1.0 * Wi-Fi Protected Setup State: 2 (Configured) * Response Type: 0 * UUID: 5690c55a-3f94-45ff-8989-d9342b703f76 * Manufacturer: Microsoft * Model: Windows * Model Number: 10.0.16299 * Serial Number: 0 * Primary Device Type: 1-0050f200-0 * Device name: DESKTOP-F2C93JD * Config methods: Display, Int. NFC, NFC Intf., Keypad * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20 
root@diva:~# iw wlan0 connect ZyXEL
root@diva:~# [ 669.489889] wlan0: authenticate with fc:f5:28:cc:03:90
round-trip min/avg/max = 2.329/6.109/13.544 ms
</pre>
=== Performance test ===
The following example shows a throughput performance test, carried out with the well-known <code>iperf</code> tool:
<pre class="board-terminal">
root@diva:~# iperf -c 192.168.11.85 -t 100 -i 5
------------------------------------------------------------
Client connecting to 192.168.11.153, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.11.154 port 51484 connected with 192.168.11.85port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 5.0 sec 55.4 MBytes 92.9 Mbits/sec
[ 3] 5.0-10.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 10.0-15.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 15.0-20.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 20.0-25.0 sec 56.0 MBytes 94.0 Mbits/sec
[ 3] 25.0-30.0 sec 56.2 MBytes 94.4 Mbits/sec
[ 3] 30.0-35.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 35.0-40.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 40.0-45.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 45.0-50.0 sec 56.0 MBytes 94.0 Mbits/sec
[ 3] 50.0-55.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 55.0-60.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 60.0-65.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 65.0-70.0 sec 56.0 MBytes 94.0 Mbits/sec
[ 3] 70.0-75.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 75.0-80.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 80.0-85.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 85.0-90.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 90.0-95.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 95.0-100.0 sec 56.1 MBytes 94.2 Mbits/sec
[ 3] 0.0-100.0 sec 1.10 GBytes 94.1 Mbits/sec
</pre>
== Bluetooth ==
170
edits

Navigation menu