Skip to content
IoTKETI edited this page Jul 19, 2017 · 1 revision

oneM2M Interworking Proxy Entity(IPE): OCF


what is oneM2M OCF IPE?

oneM2M is an IoT server platform standard that supports devices as well as cloud server, while OCF(Open Connectivity Foundation) is an IoT service platform that supports devices. IPE(Interworking Proxy Entity) defined in oneM2M enables OCF devices to work with oneM2M server side platform.



Environment

  • OCF IPE uses IoTivity source code as basis which is aligned with OCF standard. It is implemented in C++ and C.
  • A gateway is requried to run IoTivity core and oneM2M device platform which is implemented in Java or Node.js.

Development Environmental Setup

Compilation

  1. Unzip OCF IPE sample file and get a set of source files & libraries.
  2. Copy all sample source files to "...//resource/examples" folder.
  3. Open SConscript file in "...//resource/examples" folder and add the code at "Source file and Target"
  4. Go to ".../" folder and compile the source with "scons" command line in Ubuntu Terminal.

Execution

In case of testing without real OCF device, we recommend to run [simpleserver] as a virtual OCF light device in “…//out///release/resource/examples” folder. OCF IPE sample code is designed to communicate with Mobius platform using Thyme(&Cube).

  1. Activate a local Mobius platform if you don’t want to use the KETI Mobius-yt.
  2. Activate Thyme after editing configuration file as below.
  3. Activate the “simpleserver” in “…//out/linux//release/resource/examples” folder.
  4. Activate ocf_ipe in “…//out/linux//release/resource/example” folder.
5. Retrieve virtual OCF device status with Mobius-yt API using postman. 6. Control virtual OCF devices with Mobius-yt API using postman.