Difference between revisions of "Using WiFi-Bluetooth combo plugin (DIVELK)"

From DAVE Developer's Wiki
Jump to: navigation, search
(Bluetooth)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{InfoBoxTop}}
 
{{InfoBoxTop}}
{{Applies To Diva}}
+
{{AppliesToSBCD}}
 
{{InfoBoxBottom}}
 
{{InfoBoxBottom}}
  
Line 23: Line 23:
 
SBC Diva can be populated with DWM WiFi/Bluetooth combo plugin to easily add wireless connectivity.
 
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.  
 
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 sbcd comes with two possible devicetree configurations. The default one enables the UART1 and therefore the bluetooth and wifi module while the other enables the CAN interface and disables the UART1.
The other configuration instead, enables the can interface and disables the UART1.
 
  
'''Note:''' make sure to pass the correct devicetree configuration.
+
[[File:DWM.png|center|alt=DWM module for SBCD]]
 +
 
 +
'''Note:''' In order to enable the DWM module, the correct device tree file must be loaded.
  
 
== Wifi ==
 
== Wifi ==
To enable the wifi, the correct gpio pin must be configured. Once this has been done, the wlan0 interface should become accessible.  
+
To enable the wifi, the gpio114 pin must be configured. Once this has been done, the wlan0 interface should become accessible.  
  
 
The gpio pin can be enabled as follow:
 
The gpio pin can be enabled as follow:
Line 129: Line 130:
 
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
 
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
 
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 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)
+
</pre>
        freq: 2437
+
<pre class="board-terminal">
        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 usec
 
BSS 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 usec
 
BSS 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>
 
        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 usec
 
BSS 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: 0
 
BSS 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 3-7, AIFSN 2, TXOP 1504 usec
 
BSS 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 flags>
 
        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:~# iw wlan0 connect ZyXEL
 
root@diva:~# [  669.489889] wlan0: authenticate with fc:f5:28:cc:03:90
 
root@diva:~# [  669.489889] wlan0: authenticate with fc:f5:28:cc:03:90
Line 355: Line 153:
 
round-trip min/avg/max = 2.329/6.109/13.544 ms
 
round-trip min/avg/max = 2.329/6.109/13.544 ms
 
</pre>
 
</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 ==
 
== Bluetooth ==
The bluetooth can also be configured by enabling the correct gpios:
+
 
 +
The bluetooth can also be configured by enabling the correct gpios:
  
 
<pre>
 
<pre>

Latest revision as of 09:43, 2 May 2018

Info Box
SBC-DIVA-02.png Applies to SBC DIVA

History[edit | edit source]

Version Date Divelk version Hardware Part Nr Notes
4.0.0 Apr 2018 DIVELK 4.0.0 DIVELK 4.0.0

Introduction[edit | edit source]

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 while the other enables the CAN interface and disables the UART1.

DWM module for SBCD

Note: In order to enable the DWM module, the correct device tree file must be loaded.

Wifi[edit | edit source]

To enable the wifi, the gpio114 pin must be configured. Once this has been done, the wlan0 interface should become accessible.

The gpio pin can be enabled as follow:

echo 114 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio114/direction
echo 1 > /sys/class/gpio/gpio114/value

E.g

root@diva:~# echo 114 > /sys/class/gpio/export
root@diva:~# echo out > /sys/class/gpio/gpio114/direction
root@diva:~# echo 1 > /sys/class/gpio/gpio114/value
root@diva:~# [  109.511538] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
[  109.538676] mmc1: new SDIO card at address 0001
[  109.565955] PM: Cannot get wkup_m3_ipc handle
[  109.929840] wlcore: loaded
[  110.616596] wlcore: firmware booted (Rev 6.3.10.0.133)
[  110.647936] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

Scan and connection test:

root@diva:~# ifconfig wlan0 192.168.11.10
root@diva:~# iw wlan0 scan
BSS ca:d7:19:92:f9:16(on wlan0)
        TSF: 12272295971 usec (0d, 03:24:32)
        freq: 2412
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -89.00 dBm
        last seen: 3360 ms ago
        SSID: daveguest2
        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
BSS ca:d7:19:92:f9:17(on wlan0)
        TSF: 12272293743 usec (0d, 03:24:32)
        freq: 2412
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -89.00 dBm
        last seen: 3360 ms ago
        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
BSS c8:d7:19:92:f9:15(on wlan0)
        TSF: 12272295195 usec (0d, 03:24:32)
        freq: 2412
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -88.00 dBm
        last seen: 3360 ms ago
        SSID: d8738e189d2148f59769-2
        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
......
root@diva:~# iw wlan0 connect ZyXEL
root@diva:~# [  669.489889] wlan0: authenticate with fc:f5:28:cc:03:90
[  669.507747] wlan0: send auth to fc:f5:28:cc:03:90 (try 1/3)
[  669.523177] wlan0: authenticated
[  669.528427] wlan0: associate with fc:f5:28:cc:03:90 (try 1/3)
[  669.545913] wlan0: RX AssocResp from fc:f5:28:cc:03:90 (capab=0x421 status=0 aid=1)
[  669.571713] wlcore: Association completed.
[  669.582367] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  669.588971] wlan0: associated

root@diva:~# ping 192.168.11.243
PING 192.168.11.243 (192.168.11.243): 56 data bytes
64 bytes from 192.168.11.243: seq=0 ttl=64 time=13.544 ms
64 bytes from 192.168.11.243: seq=1 ttl=64 time=2.456 ms
64 bytes from 192.168.11.243: seq=2 ttl=64 time=2.329 ms
^C
--- 192.168.11.243 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 2.329/6.109/13.544 ms

Performance test[edit | edit source]

The following example shows a throughput performance test, carried out with the well-known iperf tool:

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

Bluetooth[edit | edit source]

The bluetooth can also be configured by enabling the correct gpios:

echo 114 > /sys/class/gpio/export
echo 115 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio114/direction
echo out > /sys/class/gpio/gpio115/direction
echo 1 > /sys/class/gpio/gpio114/value
echo 1 > /sys/class/gpio/gpio115/value

E.g

root@diva:~# echo 115 > /sys/class/gpio/export
root@diva:~# echo out > /sys/class/gpio/gpio115/direction
root@diva:~# echo 1 > /sys/class/gpio/gpio115/value
root@diva:~# rfkill list
0: phy0: wlan
        Soft blocked: no
        Hard blocked: no

Attaching the device:

root@diva:~# hciattach  /dev/ttyS1 texas 30000000 flow
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

Once the device has been attached using hciattach the hci0 interface should become visible:

root@diva:~# rfkill list
0: phy0: wlan
        Soft blocked: no
        Hard blocked: no
1: hci0: bluetooth
        Soft blocked: no
        Hard blocked: no

Bluetooth scan example:

root@diva:~# hciconfig hci0 up
root@diva:~# hcitool scan
Scanning ...
        18:F0:E4:E1:DC:F8       Redmi
        C8:94:BB:A0:7C:1F       wifi mp

The devices have been successfully recognized.