Redefinition of Macro removed
[platform/upstream/iotivity.git] / resource / csdk / connectivity / samples / tizen / README.txt
1 Procedure to Execute Sample App:
2 ================================
3     1) Copy the generated rpm(com-oic-ca-sample-0.1-1.armv7l.rpm) to Tizen Device
4        (say /opt/usr/media/xxx/)
5     2) sdb shell
6     3) su
7     4) cd  /opt/usr/media/xxx/
8
9     5) change-booting-mode.sh --update
10
11     6) Install casample(console app). It contains Interface API libs and OIC-CORE Libs
12         i) rpm -Uvh com-oic-ca-sample-0.1-1.armv7l.rpm --force --nodeps
13
14     7) RPM will be installed in "/usr/apps/"
15        Execute the sample app by below commands
16         i) cd /usr/apps/com.oic.ca.sample/bin
17         ii) ./ca_sample (for CA Sample)
18
19 Apply smack rule[ONLY for WIFI]
20 ===============================
21
22     1) After installing the RPMs, apply the following smack rule
23         a) chsmack -a "net-config" /usr/apps/com.oic.ca.sample/bin/ca_sample
24         b) chsmack -e "net-config" /usr/apps/com.oic.ca.sample/bin/ca_sample
25
26     Note: EDR adapter will give permission issues if these rules are applied.
27           So to test EDR adapter, delete the "/usr/apps/com.oic.ca.sample" folder
28           and again install the RPMs.
29
30 Install Dependent RPMS(Only for EDR Adapter Testing)
31 ====================================================
32
33     1) In su(super user) mode, install Bluetooth related RPMs present in
34     "connectivity/lib/tizen/edr/rpms" on Tizen v2.3 mobile device
35     (Currently only SM Z910F Device is supported).
36     2) Install the Sample as given above in "Procedure to Execute Sample App"
37
38 Install Dependent RPMS(Only for BLE Adapter Testing)
39 ====================================================
40
41     1) Flash the system image present in connectivity/lib/tizen/ble/image/ folder on SM Z910F Tizen v2.3
42     2) In su(super user) mode, Install Bluetooth related rpms Present in connectivity/lib/tizen/ble/rpms on
43     Tizen v2.3 mobile device (Currently only SM Z910F Device is supported)
44     3) Install the Sample as given above in "Procedure to Execute Sample App" [ Till Step 6 ]
45     4) Open another sdb shell, in su (super user) mode follow the below steps:
46             (i)   cd /var/lib/bluetooth
47             (ii)  Turn off Bluetooth in the device
48             (iii) rm -rf *
49             (iv)  Run the command ./usr/lib/bluetooth/bluetoothd -ndE &. for OIC Server device and
50             run the command ./usr/lib/bluetooth/bluetoothd -nd &. for OIC Client device.
51             (v)   Turn on the Bluetooth.
52     5) Run the sample as given in Step 8 of "Procedure to Execute Sample App"
53