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

From ESS-WIKI
Jump to: navigation, search
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
<big><big><big>Bluetooth Testing Guide for iMX6 Platform</big></big></big>
+
{{DISPLAYTITLE:Bluetooth Testing Guide for iMX6 Platform}}
 
<!--
 
<!--
 
{| align="right"
 
{| align="right"
Line 6: Line 6:
 
-->
 
-->
 
=Getting Started=
 
=Getting Started=
 +
==<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
 +
 
==<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 V6.000 at least.<br>
+
=== Add testing scripts if version 6110 or prior used ===
  
===Add package expect if BSP quarkLBV6000 used===
+
:Download the [[Media:Imx6LBV6110_bt_testing_scripts_1.zip|Imx6LBV6110_bt_testing_scripts_1.zip]], and execute the following command:
There is no package expect installed in imx6LBV6000, it is necessary to do the following precedures to make the expect installed.<br>
+
::<code>$ tar xvf Imx6LBV6110_bt_testing_scripts.tar.gz -C <span style="color:#7030a0">'''${BSP_HOME}'''</span>/sources/meta-advantech/recipes-fsl/images</code>
:Download the [[File:quarkLBV2011_convert_to_BlueZ5.tar.gz]], and perform below command
+
:Rebuild the sdcard image(click [[IoTGateway/BSP/Linux/iMX6/Yocto_LBV6_User_Guide#Build_Instructions|this]] for details)
::<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)
 
  
 
===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>==
+
=Testing Operations=
<span style="color:purple">'''${BT_MAC_ADDR}'''</span>
+
==<span style="color:#0070c0;">Pair the peer device</span>==
:Bluetooth peer device's MAC address
+
:If peer device is not paired ever...
 +
::<code># ./bt_pair.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
 +
:If peer device has paired, repair it...
 +
::<code># ./bt_pair.sh -u <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
  
<span style="color:purple">'''${FILE}'''</span>
+
==<span style="color:#0070c0;">Send the specified file to the peer device</span>==
:test file that be sent to peer device
+
: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 03:10, 19 December 2019

Getting Started

Conventions

${BT_MAC_ADDR} : Bluetooth peer device's MAC address
${FILE} : test file that be sent to peer device

Prerequisites

Add testing scripts if version 6110 or prior used

Download the Imx6LBV6110_bt_testing_scripts_1.zip, and execute the following command:
$ tar xvf Imx6LBV6110_bt_testing_scripts.tar.gz -C ${BSP_HOME}/sources/meta-advantech/recipes-fsl/images
Rebuild the sdcard image(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}