From 1722f5ed4ef769d6cc861322cfd69e5350eff7e4 Mon Sep 17 00:00:00 2001 From: lankamadan Date: Tue, 6 Oct 2015 17:16:23 +0900 Subject: [PATCH] [easy-setup] Fix for IOT-785 - Fix in Arduino build instructions Change-Id: Iba558c43f118f6a449202f0d354a8fee0bf19174 Signed-off-by: lankamadan Reviewed-on: https://gerrit.iotivity.org/gerrit/3603 Tested-by: jenkins-iotivity (cherry picked from commit d37d85cb0f850ed1d9169e62d43e38926de7a3ec) Reviewed-on: https://gerrit.iotivity.org/gerrit/3689 --- service/easy-setup/Build_Instructions_Android_Arduino.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/service/easy-setup/Build_Instructions_Android_Arduino.txt b/service/easy-setup/Build_Instructions_Android_Arduino.txt index 6fad77e..3f761ef 100755 --- a/service/easy-setup/Build_Instructions_Android_Arduino.txt +++ b/service/easy-setup/Build_Instructions_Android_Arduino.txt @@ -103,25 +103,26 @@ Steps to build and deploy Easysetup Mediator in Arduino platform c) Prerequisite exports for Arduino export ARDUINO_HOME= d) Start Arduino IDE. Select ""Tools->Port->Programming port" - e) scons TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI + e) scons service TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI - With debug or logging - scons TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 + scons service TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 - With installation to Arduino - scons TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 UPLOAD=true - NOTE: BOARD=arduino_due_x_dbg|arduino_due_x. Default is arduino_due_x_dbg. + scons service TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 UPLOAD=true + NOTE: 1) BOARD=arduino_due_x_dbg|arduino_due_x. Default is arduino_due_x_dbg. + 2) For Mega board, please use the following options. BOARD=mega & TARGET_ARCH=avr Possible values for are: -> IP : - $ scons TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 + $ scons service TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 -> BLE : - $ scons TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=WIFI RELEASE=0 + $ scons service TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=BLE RELEASE=0 Note :- Only single transport can be built at a time for Arduino f) The above command will build sample. The "enrollee.hex" can be found at "out/arduino/arm/release/service/easy-setup/sampleapp/enrollee/arduino" g) After building sample, script will try to install on "/dev/ttyACM0" port in 'sudo' mode. To skip installation, set command line argument 'UPLOAD=false' or without UPLOAD option h) To set BLE Shield Name, include the option DEVICE_NAME during scons build. - -> $ scons TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=BLE RELEASE=0 DEVICE_NAME=OIC + -> $ scons service TARGET_OS=arduino BOARD=arduino_due_x_dbg TARGET_ARCH=arm SHIELD=BLE RELEASE=0 DEVICE_NAME=OIC Specified Device name length MUST be less than 10 characters. RBL Library has this limitation. By Default DEVICE_NAME=OIC-DEVICE, if device name option is not specified -- 2.7.4