[IOT-2057] Updating README file for tizen enrollee sample. 43/19043/5
authorHarry <h.marappa@samsung.com>
Tue, 18 Apr 2017 16:09:06 +0000 (21:39 +0530)
committerUze Choi <uzchoi@samsung.com>
Tue, 2 May 2017 05:56:41 +0000 (05:56 +0000)
Change-Id: Ic0e754afd3bfef91fa4340a6536b84303de47022
Signed-off-by: Harry <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19043
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/sampleapp/enrollee/tizen-sdb/README.txt

index 45878c1..680384d 100644 (file)
@@ -25,41 +25,50 @@ Build Procedure
    Note: Default build server URL for Tizen is set in gbs configuration file @ iotivity/tools/tizen/.gbs.conf.
          If needed, same can be modified as per appropriate target.
 
-2) Go to "iotivity/" folder.
+2) Go to "iotivity" folder.
 
 3) Execute following command(s) to start build based on some build flags required :
 
-# scons -f service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/SConscript TARGET_OS=tizen TARGET_TRANSPORT=IP ROUTING=EP RELEASE=0 LOGGING=true ES_TARGET_ENROLLEE=tizen SECURED=1 WITH_TCP=false WITH_CLOUD=false
+   # EXEC_MODE=true ./prep.sh
+   # scons -f service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/SConscript TARGET_OS=tizen TARGET_TRANSPORT=IP ROUTING=EP RELEASE=0 LOGGING=true ES_TARGET_ENROLLEE=tizen SECURED=0 WITH_TCP=false WITH_CLOUD=false
 
-4) If built for security mode:
-        After installing sample RPM on device, copy required .dat files and other applications to the same path where enrollee_wifi(executable) is available
+   NOTE: If needed, modify the build arguments value accordingly (Ex: To enable security, set SECURED=1).
+         If there are any permission issues occured while running "scons" command then run with "sudo" permissions.
+
+4) On successful build RPMs will be generated at path "~/GBS-ROOT-OIC/local/repos/<target>/<arch>/RPMS"
 
-(If needed, modify the parameters accordingly)
-Note :- Upon successful execution of above command(s) RI library and sample console application(for tizen enrollee)
-        will be generated at path "~/GBS-ROOT-OIC/local/repos/<target>/armv7l/RPMS".
 
 Procedure to Execute Sample App:
 ================================
-    1) Copy the generated rpms(iotivity-1.0.0-0.armv7l.rpm,iotivity-devel-1.0.0-0.armv7l.rpm,iotivity-service-1.0.0-0.armv7l.rpm,com-oic-es-sample-0.1-1.armv7l.rpm) to Tizen Device
-       (say /opt/usr/media/xxx/)
+    1) Copy generated rpms to tizen device (For example: /opt/usr/media/enrollee/)
+       a) iotivity-1.3.0-0.armv7l.rpm
+       b) iotivity-devel-1.3.0-0.armv7l.rpm
+       c) iotivity-service-1.3.0-0.armv7l.rpm
+       d) com-oic-es-sample-1.3.0-0.armv7l.rpm
+
     2) sdb shell
+
     3) su
-    4) cd /opt/usr/media/xxx/
+
+    4) cd /opt/usr/media/enrollee/
+
     5) change-booting-mode.sh --update
 
     6) Install the rpms using the following commands:
-        a) rpm -Uvh iotivity-1.0.1-0.armv7l.rpm --force --nodeps
-        a) rpm -Uvh iotivity-devel-1.0.1-0.armv7l.rpm --force --nodeps
-        a) rpm -Uvh iotivity-service-1.0.1-0.armv7l.rpm --force --nodeps
-        b) rpm -Uvh com-oic-es-sample-0.1-1.armv7l.rpm --force --nodeps
+        a) rpm -Uvh iotivity-1.3.0-0.armv7l.rpm --force --nodeps
+        b) rpm -Uvh iotivity-devel-1.3.0-0.armv7l.rpm --force --nodeps
+        c) rpm -Uvh iotivity-service-1.3.0-0.armv7l.rpm --force --nodeps
+        d) rpm -Uvh com-oic-es-sample-1.3.0-0.armv7l.rpm --force --nodeps
+
     7) For IP transport, apply net-config smack rules using below command:
         a) chsmack -a "net-config" /usr/apps/com.oic.es.sample/bin/*
         b) chsmack -e "net-config" /usr/apps/com.oic.es.sample/bin/*
-    7) RPM will be installed in "/usr/apps/"
-       Execute the sample app by below commands
-        i) cd /usr/apps/com.oic.es.sample/bin
-        If executing with secure mode enabled then do the below step (no. ii)
-        ii) cp /usr/lib/oic_svr_db_server.dat .
-
-        Execute the application
-        ./enrollee_wifi
+
+    8) Enrollee sample will be installed in "/usr/apps/"
+        a) cd /usr/apps/com.oic.es.sample/bin
+        b) If executing with secure mode enabled then copy the .dat file
+           cp /usr/lib/oic_svr_db_server.dat .
+
+    9) Execute console application
+       ./enrollee_wifi
+