Difference between revisions of "IoTGateway/BSP/Linux/Quark/Bluetooth Testing Guide"
From ESS-WIKI
(→Conventions) |
|||
Line 7: | Line 7: | ||
=Getting Started= | =Getting Started= | ||
==<span style="color:#0070c0;">Conventions</span>== | ==<span style="color:#0070c0;">Conventions</span>== | ||
− | <span style="color:purple">'''${BSP_HOME}'''</span> : the directory BSP pack extracted to | + | :<span style="color:purple">'''${BSP_HOME}'''</span> : the directory BSP pack extracted to |
− | :e.g. ~/LBV2011/meta-clanton_v1.2.0 | + | ::e.g. ~/LBV2011/meta-clanton_v1.2.0 |
− | <span style="color:purple">'''${BT_MAC_ADDR}'''</span> : Bluetooth peer device's MAC address | + | :<span style="color:purple">'''${BT_MAC_ADDR}'''</span> : Bluetooth peer device's MAC address |
− | <span style="color:purple">'''${FILE}'''</span> : test file that be sent to peer device | + | :<span style="color:purple">'''${FILE}'''</span> : test file that be sent to peer device |
==<span style="color:#0070c0;">Prerequisites</span>== | ==<span style="color:#0070c0;">Prerequisites</span>== |
Revision as of 11:48, 14 June 2016
Bluetooth Testing Guide for Quark Platform
Contents
Getting Started
Conventions
- ${BSP_HOME} : the directory BSP pack extracted to
- e.g. ~/LBV2011/meta-clanton_v1.2.0
- ${BT_MAC_ADDR} : Bluetooth peer device's MAC address
- ${FILE} : test file that be sent to peer device
Prerequisites
All operations in this guide are based on BlueZ5, please make sure the verion of BSP is V2.011 at least.
Convert BlueZ4 to BueZ5 if BSP quarkLBV2011 used
In LBV2011 the BlueZ4 is used by default, it is necessary to do the following precedures to convert to BlueZ5.
- Download the File:QuarkLBV2011 convert to BlueZ5.tar.gz, and perform below command
$ tar xvf quarkLBV2011_convert_to_BlueZ5.tar.gz -C ${BSP_HOME}
- Rebuild all image files(click this for details)
Bluetooth/WiFi mini-PCIe card
Testing Operations
Pair the peer device
- The peer device is never paired.
# ./bt_pair.sh ${BT_MAC_ADDR}
- The peer device is paired before, repair it.
# ./bt_pair.sh -u ${BT_MAC_ADDR}
Send the specified file to the peer device
# ./bt_send.sh ${BT_MAC_ADDR} ${FILE}