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

From ESS-WIKI
Jump to: navigation, search
Line 12: Line 12:
  
 
==<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 BlueZ5 is installed in rootfs.<br>
+
===Add testing scripts if version 6110 or prior used===
 +
:Download the [[File:imx6LBV6110_bt_testing_scripts.tar.gz]], and perform below command
 +
::<code>$ tar xvf imx6LBV6110_bt_testing_scripts.tar.gz -C <span style="color:#7030a0;">'''${BSP_HOME}'''</span>/sources/meta-advantech/recipes-fsl/images</code>
 +
:Rebuild the sdcard image(click [[IoTGateway/BSP/Linux/iMX6/Yocto_LBV6_User_Guide#Build_Instructions|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]
 +
 
 +
=Testing Operations=
 +
==<span style="color:#0070c0;">Pair the peer device</span>==
 +
:If peer device is not paired ever...
 +
::<code># ./bt_pair.sh <span style="color:#7030a0;">'''${BT_MAC_ADDR}'''</span></code>
 +
:If peer device is paired before, repair it...
 +
::<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>==
 +
: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>

Revision as of 09:01, 14 June 2016

Bluetooth Testing Guide for iMX6 Platform

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 File:Imx6LBV6110 bt testing scripts.tar.gz, and perform below 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 is paired before, 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}