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

From ESS-WIKI
Jump to: navigation, search
(Testing Operations)
Line 1: Line 1:
<big><big><big>Bluetooth Testing Guide</big></big></big>
+
<big><big><big>Bluetooth Testing Guide for Quark Platform</big></big></big>
 
<!--
 
<!--
 
{| align="right"
 
{| align="right"
Line 6: Line 6:
 
-->
 
-->
 
=Getting Started=
 
=Getting Started=
==Prerequisites==
+
==<span style="color:#0070c0;">Prerequisites</span>==
 
All operations in this guide are based on BlueZ5, please make sure the verion of used BSP is 2011 at lease.<br>
 
All operations in this guide are based on BlueZ5, please make sure the verion of used BSP is 2011 at lease.<br>
  
 
===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 use 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 [[File:quarkLBV2011_convert_to_BlueZ5.tar.gz]], and perform below 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 the image-full by
+
:Rebuild all image files(click [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|this]] for details)
:<code>$ bitbake image-full</code>
+
 
 +
===Bluetooth/WiFi mini-PCIe card===
 +
[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=
([http://172.22.15.134/index.php/IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files])
+
==<span style="color:#0070c0;">Pair the peer device</span>==
([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files]])
+
:The peer device is never paired.
 
+
::<code># ./bt_pair.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
==DOC==
+
:The peer device is paired before, repair it.
===HERE===
+
::<code># ./bt_pair.sh -u <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
 +
==<span style="color:#0070c0;">Send specified file to peer device</span>==
 +
:<code># ./bt_send.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span> <span style="color:#7030a0;">'''${FILE}'''</span></code>

Revision as of 04:00, 8 June 2016

Bluetooth Testing Guide for Quark Platform

Getting Started

Prerequisites

All operations in this guide are based on BlueZ5, please make sure the verion of used BSP is 2011 at lease.

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

EWM-W155H01E

Conventions

${BT_MAC_ADDR}

Bluetooth peer device's MAC address

${FILE}

test file that be sent to peer device

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 specified file to peer device

# ./bt_send.sh ${BT_MAC_ADDR} ${FILE}