Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
round-trip min/avg/max
</pre>
====Performance test====
The following example shows a throughput performance test, carried out with the well-known [https://iperf.fr/ <code>iperf</code> tool]:
<pre>
</pre>
===Bluetooth===To enable Blutooth interface, <code>gpio135</code> must be set to 1 first:
<pre>
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
</pre>
Then it is possible to attach the physical device to <code>BlueZ stack</code> and start using it via HCI tools:
<pre>
root@sbc-lynx:~# hciattach -t 60 /dev/ttymxc1 texas 115200
Found a Texas Instruments' chip!
Scanning ...
00:02:72:C6:40:16 virt
</pre>
====Performance tests====
The following examples show two throughput performance tests, run at L2CAP layer. The connection has been established with a PC equipped with Bluetooth USB dongle TBD
 
In the first test data originates at the SBC Lynx and is sent to the host PC that is configured as follows:
<pre>
[ 4012.910755] Bluetooth: RFCOMM TTY layer initialized
[ 4012.910760] Bluetooth: RFCOMM socket layer initialized
[ 4012.910765] Bluetooth: RFCOMM ver 1.11
devel@devel-VirtualBox:~$ sudo modprobe -v btusb
devel@devel-VirtualBox:~$ sudo su
root@devel-VirtualBox:/home/devel# echo "0b05 17cb" >> /sys/bus/usb/drivers/btusb/new_id
root@devel-VirtualBox:/home/devel# hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:02:72:C6:40:16 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1194 acl:0 sco:0 events:69 errors:0
TX bytes:1556 acl:0 sco:0 commands:69 errors:0
 
root@devel-VirtualBox:/home/devel# hciconfig hci0 up
root@devel-VirtualBox:/home/devel# hciconfig hci0 name virt
root@devel-VirtualBox:/home/devel# hciconfig hci0 class 0x6e0100
root@devel-VirtualBox:/home/devel# hcitool dev
Devices:
hci0 00:02:72:C6:40:16
root@devel-VirtualBox:/home/devel# hciconfig hci0 piscan
root@devel-VirtualBox:/home/devel# l2test -r -b 10000 -O 10000 -I 10000
l2test[1795]: Waiting for connection on psm 4113 ...
</pre>
Configuration of SBC Lynx:
<pre>
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:~# 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
root@sbc-lynx:~# hcitool dev
Devices:
hci0 1C:45:93:5C:DC:69
root@sbc-lynx:~# l2test -s 00:02:72:c6:40:16 -b 10000 -O 10000 -I 10000
l2test[717]: Connected to 00:02:72:C6:40:16 (bredr, psm 4113, scid 64)
l2test[717]: Local device 1C:45:93:5C:DC:69 (bredr, psm 4097, scid 64)
l2test[717]: Options [imtu 10000, omtu 10000, flush_to 65535, mode 0, handle 1, class 0x6e0100, priority 0, rcvbuf 163840]
l2test[717]: Sending ...
</pre>
These are the results, as reported on host side:
<pre>
l2test[1822]: Connect from 1C:45:93:5C:DC:69 [imtu 10000, omtu 10000, flush_to 65535, mode 0, handle 12, class 0x001f00, priority 0, rcvbuf 212992]
l2test[1822]: Receiving ...
l2test[1822]: 10000 bytes in 0.08 sec, 125.63 kB/s
l2test[1822]: 10000 bytes in 0.06 sec, 165.19 kB/s
l2test[1822]: 10000 bytes in 0.07 sec, 133.54 kB/s
l2test[1822]: 10000 bytes in 0.07 sec, 131.60 kB/s
l2test[1822]: 10000 bytes in 0.08 sec, 127.59 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 191.97 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 196.78 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 195.44 kB/s
l2test[1822]: 10000 bytes in 0.08 sec, 128.06 kB/s
l2test[1822]: 10000 bytes in 0.04 sec, 226.70 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 196.70 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.15 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.58 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 199.52 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 196.94 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 191.98 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 200.49 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.34 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.49 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 200.19 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 196.10 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 191.87 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 200.53 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 188.93 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 200.21 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.42 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 198.11 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.39 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 197.82 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 192.40 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 198.15 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 200.03 kB/s
l2test[1822]: 10000 bytes in 0.05 sec, 190.55 kB/s
</pre>
 
To test the other direction (host -> SBC Lynx), the PC has to configured as follows:
<pre>
root@devel-VirtualBox:/home/devel# l2test -s 1C:45:93:5C:DC:69 -b 10000 -O 10000 -I 10000
l2test[1829]: Connected [imtu 10000, omtu 10000, flush_to 65535, mode 0, handle 12, class 0x000000, priority 0, rcvbuf 212992]
l2test[1829]: Sending ...
</pre>
The target has to be configured in receiving mode:
<pre>
root@sbc-lynx:~# hciconfig hci0 piscan
root@sbc-lynx:~# l2test -r -b 10000 -O 10000 -I 10000
l2test[719]: Waiting for connection on psm 4113 ...
l2test[720]: Connect from 00:02:72:C6:40:16 (bredr, psm 4113, dcid 64)
l2test[720]: Local device 1C:45:93:5C:DC:69 (bredr, psm 0, scid 64)
l2test[720]: Options [imtu 10000, omtu 10000, flush_to 65535, mode 0, handle 1, class 0x6e0100, priority 0, rcvbuf 163840]
l2test[720]: Receiving ...
l2test[720]: 10000 bytes in 0.08 sec, 118.66 kB/s
l2test[720]: 10000 bytes in 0.06 sec, 157.15 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 256.54 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 249.19 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.00 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 256.44 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 259.77 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.03 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 265.94 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.42 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 265.25 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 256.81 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.66 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 240.65 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 258.23 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.03 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.44 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.21 kB/s
l2test[720]: 10000 bytes in 0.04 sec, 257.61 kB/s
</pre>
4,650
edits