User Tools

Site Tools


iut_simulator_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
iut_simulator_guide [2018/02/27 12:50]
Mushfiqul Islam
iut_simulator_guide [2018/07/13 10:27] (current)
Michal Wieckowski [Operate IUT Simulator]
Line 1: Line 1:
-====== IoTivity Build ======+ ====== IoTivity Build ======
 Go to the top (root) directory of ‘IoTivity’ project. Run the below command: Go to the top (root) directory of ‘IoTivity’ project. Run the below command:
     $ git checkout test     $ git checkout test
Line 45: Line 45:
 From the test directoty (<​iotivity_root>/​test),​ go to linux binary folder: From the test directoty (<​iotivity_root>/​test),​ go to linux binary folder:
     $ cd bin/linux/     $ cd bin/linux/
-To run IUT Simulator using default settings( Non-confirmable,​ IPv6, non-secure server):+To run IUT Simulator using default settings( Non-confirmable,​ IPv6, non-secure server, OCF 1.0.0):
     $ ./​IUTSimulator     $ ./​IUTSimulator
 Run IUT Simulator with customize settings: Run IUT Simulator with customize settings:
-    $ ./​IUTSimulator [QoS<​0/​1>​] [IP_Version<​4/​6>​] [Security<​-0/​11/​12/​13/​21/​22/​23/​31/​32/​33/​41/​42/​43>​]+    $ ./​IUTSimulator [QoS<​0/​1>​] [IP_Version<​4/​6>​] [Security<​-0/​11/​12/​13/​21/​22/​23/​31/​32/​33/​41/​42/​43>] [OCF_Version<​1.0.0/​2.0.0>]
 ==== Argument Type: ==== ==== Argument Type: ====
 === QoS: === === QoS: ===
Line 70: Line 70:
     42 = Secured Randompin Server (Old Database, IUT retains the database used last time)     42 = Secured Randompin Server (Old Database, IUT retains the database used last time)
     43 = Secure Manufacturing Certificate Server (Old Database, IUT retains the database used last time)     43 = Secure Manufacturing Certificate Server (Old Database, IUT retains the database used last time)
 +=== OCF_Version:​ ===
 +    Any text input like "​1.0.0",​ "​1.3.0",​ "​2.0.0"​ will mean the chosen version of OCF
 === Example: === === Example: ===
-    $ ./​IUTSimulator 0 4    It’s for, NON-type IPv4 non-secure server/​client +    $ ./​IUTSimulator 0 4    It’s for, NON-type IPv4 non-secure server/​client ​OCF 1.0.0 
-    $ ./​IUTSimulator 1 4    It’s for, CON-type IPv4 non-secure server/​client +    $ ./​IUTSimulator 1 4    It’s for, CON-type IPv4 non-secure server/​client ​OCF 1.0.0 
-    $ ./​IUTSimulator 1 4 11 It’s for, CON-type IPv4 secure justworks client +    $ ./​IUTSimulator 1 4 11 It’s for, CON-type IPv4 secure justworks client ​OCF 1.0.0 
-    $ ./​IUTSimulator 1 6 12  It’s for, CON-type IPv6 secure randompin client +    $ ./​IUTSimulator 1 6 12 2.0.0  ​It’s for, CON-type IPv6 secure randompin client ​OCF 2.0.0 
-    $ ./​IUTSimulator 1 4 21  It’s for, CON-type IPv4 secure justworks server +    $ ./​IUTSimulator 1 4 21 2.0.0  ​It’s for, CON-type IPv4 secure justworks server ​OCF 2.0.0 
-    $ ./​IUTSimulator 1 6 22  It’s for, CON-type IPv6 secure randompin server+    $ ./​IUTSimulator 1 6 22 1.3.0  ​It’s for, CON-type IPv6 secure randompin server ​OCF 1.3.0
 ====== Operate IUT Simulator ====== ====== Operate IUT Simulator ======
   * To start non-secured AirCon Resources, select option 102   * To start non-secured AirCon Resources, select option 102
   * To start secured AirCon Resources, select option 104   * To start secured AirCon Resources, select option 104
   * To start a secured server with only 1 resource, select option 105   * To start a secured server with only 1 resource, select option 105
-  * TO create collection, select option 6 (after selecting 102 or 104)+  * To create collection, select option 6 (after selecting 102 or 104) 
 +  * To create AirPurifier Resource, select option 116 
 +  * To create Network Monitoring with Maintenance Resources, select 117 
 +  * To create Blood Pressure Resources, select 119 
 +  * To create Cloud Resource, create 120 
 +  * To Sign Out with Cloud, select 121 
 +  * To Deregister Cloud, select 122 
 +  * To create Configuration Resource, select 123
   * To update local resource representation (for observe TC - CT1.2.6), select option 34, select the local resource, then provide key & value of the representation to use in POST request   * To update local resource representation (for observe TC - CT1.2.6), select option 34, select the local resource, then provide key & value of the representation to use in POST request
   * For testing with Chomarch CTT, use the supplied PICS file from <​iotivity_root>/​test/​PICS folder   * For testing with Chomarch CTT, use the supplied PICS file from <​iotivity_root>/​test/​PICS folder
Line 89: Line 98:
   * To send Observe request, select option 25 & select desired resource next   * To send Observe request, select option 25 & select desired resource next
   * To send cancel observe request, select option 26 & select desired resource next   * To send cancel observe request, select option 26 & select desired resource next
 +  * To send POST request to Cloud Configuration,​ select option 39
 +
 +
 +====== Use IUT Simulator with CTT ======
 +Select Options -> Network Interface of machine running IUTSimulator
 +=== Use IUT as Server: ===
 +  * Start IUTSimulator with desired options, remember that Security argument have to start with "​2"​
 +  * In CTT, File -> Select IUT, and select detected simulator
 +  * Choose available PICS file, default one are at CTT_location\Configuration\OCF\PICS
 +  * Select desired profile with tests
 +  * Select tests you wish to run and press start button
 +=== Use IUT as Client: ===
 +  * Start IUTSimulator with desired options, remember that Security argument have to start with "​1"​
 +  * In CTT, File -> Select IUT
 +  * In IUTSimulator select option "​12"​
 +  * In CTT select just detected simulator (there should be 2 now, select client one)
 +  * Choose available PICS file, default one are at CTT_location\Configuration\OCF\PICS
 +  * Select desired profile with tests
 +  * Select tests you wish to run and press start button
  
iut_simulator_guide.1519735803.txt.gz · Last modified: 2018/02/27 12:50 by Mushfiqul Islam