Difference between revisions of "IoTGateway/BSP/Linux/Quark/Bluetooth Testing Guide"

From ESS-WIKI
Jump to: navigation, search
(Prerequisites)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<big><big><big>Bluetooth Testing Guide for Quark Platform</big></big></big>
+
{{DISPLAYTITLE:Bluetooth Testing Guide for Quark Platform}}
 
<!--
 
<!--
 
{| align="right"
 
{| align="right"
Line 6: Line 6:
 
-->
 
-->
 
=Getting Started=
 
=Getting Started=
 +
==<span style="color:#0070c0;">Conventions</span>==
 +
:<span style="color:purple">'''${BSP_HOME}'''</span> : the directory BSP pack extracted to
 +
::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">'''${FILE}'''</span> : test file that be sent to peer device
 +
 
==<span style="color:#0070c0;">Prerequisites</span>==
 
==<span style="color:#0070c0;">Prerequisites</span>==
 
All operations in this guide are based on BlueZ5, please make sure the verion of BSP is V2.011 at least.<br>
 
All operations in this guide are based on BlueZ5, please make sure the verion of BSP is V2.011 at least.<br>
Line 11: Line 19:
 
===Convert BlueZ4 to BueZ5 if BSP quarkLBV2011 used===
 
===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.<br>
 
In LBV2011 the BlueZ4 is used by default, it is necessary to do the following precedures to convert to BlueZ5.<br>
:Download the [[File:quarkLBV2011_convert_to_BlueZ5.tar.gz]], and perform below command
+
:Download the [[Media:QuarkLBV2011_convert_to_BlueZ5.tar.gz|QuarkLBV2011_convert_to_BlueZ5.tar.gz]], and execute the following command:
::<code>$ tar xvf quarkLBV2011_convert_to_BlueZ5.tar.gz -C <span style="color:#7030a0;">'''${BSP_HOME}'''</span></code>
+
::<code>$ tar xvf QuarkLBV2011_convert_to_BlueZ5.tar.gz -C <span style="color:#7030a0;">'''${BSP_HOME}'''</span></code>
 
:Rebuild all image files(click [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|this]] for details)
 
:Rebuild all image files(click [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|this]] for details)
  
 
===Bluetooth/WiFi mini-PCIe card===
 
===Bluetooth/WiFi mini-PCIe card===
[http://www.advantech.com/products/1-2r51yz/ewm-w155h/mod_26cc4a99-311c-4d34-982a-bbe3d46372e1 EWM-W155H01E]
+
:[http://www.advantech.com/products/1-2r51yz/ewm-w155h/mod_26cc4a99-311c-4d34-982a-bbe3d46372e1 EWM-W155H01E]
 
 
==<span style="color:#0070c0;">Conventions</span>==
 
<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
 
  
 
=Testing Operations=
 
=Testing Operations=
 
==<span style="color:#0070c0;">Pair the peer device</span>==
 
==<span style="color:#0070c0;">Pair the peer device</span>==
:The peer device is never paired.
+
:If peer device is not paired ever...
 
::<code># ./bt_pair.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
 
::<code># ./bt_pair.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
:The peer device is paired before, repair it.
+
:If peer device has paired, repair it...
 
::<code># ./bt_pair.sh -u <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
 
::<code># ./bt_pair.sh -u <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
 +
 
==<span style="color:#0070c0;">Send the specified file to the peer device</span>==
 
==<span style="color:#0070c0;">Send the specified file to the peer device</span>==
:<code># ./bt_send.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span> <span style="color:#7030a0;">'''${FILE}'''</span></code>
+
:While the configuration of the peer device is ready...
 +
::<code># ./bt_send.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span> <span style="color:#7030a0;">'''${FILE}'''</span></code>

Latest revision as of 08:28, 9 August 2016

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 QuarkLBV2011_convert_to_BlueZ5.tar.gz, and execute the following 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

EWM-W155H01E

Testing Operations

Pair the peer device

If peer device is not paired ever...
# ./bt_pair.sh ${BT_MAC_ADDR}
If peer device has paired, repair it...
# ./bt_pair.sh -u ${BT_MAC_ADDR}

Send the specified file to the peer device

While the configuration of the peer device is ready...
# ./bt_send.sh ${BT_MAC_ADDR} ${FILE}