Dear Clarke, dear George,

many thanks for your quick responses.

I'm working in a project with the company BSC which is pushing the EnOcean spec.

We are preparing some hardware and a gateway for the interop meeting next week.

I really like the R Pi example. I started some time ago with Rami's example "IoTivity Development on Raspberry Pi* 3"


I think we will start a server providing ONE device with one to several resources representing a single EnOcean sensors.

What do you think?



One more question - hopefully I will not bother ;-) - since I have been not involved in the iotivity lite topic for a longer time.

At the beginning of the security stuff there were cbor files stored holding the credentials.

Nowadays there are commands like

oc_storage_config("./devicebuilderserver_creds");

oc_storage_config("./devicebuilderserver_creds");


But it seems that e.g. ./devicebuilderserver_credsis displayed as a folder not a file.

Maybe there is a trick behind that ...


@George:
I just tried the multi_device_server_linux.c

The OTGC app displays two devices - unfortunately with the same name "My fridge"

Having onboarded the first device an onboarding of the second device failed.
Was that example tested with the OTGC app and security?

In general there might be the question:
If a server application provides two or more devices: then it can only manage ONE credential folder / file ? Is that the design goal?


Best regards,

Diethelm




Am 03.12.2019 um 20:53 schrieb Clarke Stevens:
Diethelm,

From your example, I think you may just be building a basic OCF device with multiple resources (resources in OCF are fairly atomic and devices contain multiple resources). You might want to look at the Raspberry Pi examples here that have multiple resources on daughter boards. I particularly like the Explorer Hat Pro example because it has both sensors and actuators and there is a nice tutorial (enclosed). Also, the EnOcean bridge specification should be available soon. In the mean time, you can see what a bridge looks like with several other protocols (ZigBee, Z-Wave, U+, oneM2M, AllJoyn and Bluetooth).

https://github.com/openconnectivity/Sample-Raspberry-Pi-Code


If you actually do need a Device to contain other devices, you can do that, but it is not as simple.

Thanks,
-Clarke

On Dec 3, 2019, at 12:11 PM, Prof. Dr.-Ing. Diethelm Bienhaus <diethelm.bienh...@mni.thm.de <mailto:diethelm.bienh...@mni.thm.de>> wrote:

Hi all,

we are building a gateway for EnOcean sensors. The goal is to have a device for each physical device like a button or a sensor. There are EnOcean sensors with e.g. three measurement points like combined temperature / illuminance / presence.

So we want to provide several devices (with one to n resources) from our gateway application. In old days (IoTivity) it was possible to have one server (in one surrounding application) that starts several devices. Is that possible with IoTivity lite too?

If so: could some one send me e.g. a link to an example?


Many thanks in advance.


Best regards,
Diethelm




-------- Weitergeleitete Nachricht --------
Betreff:        RE: IoTivity lite question
Datum:  Tue, 3 Dec 2019 18:49:40 +0000
Von:    Rami Alshafi<ralsh...@vtmgroup.com> <mailto:ralsh...@vtmgroup.com>
An: Prof. Dr.-Ing. Diethelm Bienhaus<diethelm.bienh...@mni.thm.de> <mailto:diethelm.bienh...@mni.thm.de>



Hi,
Yes, I believe it is possible to be accomplished with IoTivity-lite. I do not know for sure but no one complained about it being an issue at all and I work with many developers. Your best bet is to send out your question to the IoTivity developer mailing list (iotivity-dev@lists.iotivity.org <mailto:iotivity-dev@lists.iotivity.org>) and one of the developers will likely respond. The holidays in the US are coming up so maybe responses will be slower.
Thanks,
-Rami
*From:*Prof. Dr.-Ing. Diethelm Bienhaus [mailto:diethelm.bienh...@mni.thm.de]
*Sent:*Tuesday, December 3, 2019 8:17 AM
*To:*Rami Alshafi<ralsh...@vtmgroup.com> <mailto:ralsh...@vtmgroup.com>
*Subject:*IoTivity lite question

Hi Rami,

hopefully you can help us (or push forward our problem):

Using the nice development process (gen.sh -> build.sh -> run.sh) we could generate a server with the desired resources.

OCF Server name : "server_lite_5821"

Intialize Secure Resources

Register Resource with local path "/humidity"

number of Resource Types: 1

Resource Type: "oic.r.humidity"

Default OCF Interface: "oic.if.a"

Register Resource with local path "/keycardswitch"

number of Resource Types: 1

Resource Type: "oic.r.keycardswitch"

Default OCF Interface: "oic.if.a"

Register Resource with local path "/rockerbutton"

number of Resource Types: 1

Resource Type: "oic.r.button"

Default OCF Interface: "oic.if.a"

Register Resource with local path "/sensor_contact"

number of Resource Types: 1

Resource Type: "oic.r.sensor.contact"

Default OCF Interface: "oic.if.a"

Register Resource with local path "/sensor_presence"

number of Resource Types: 1

Resource Type: "oic.r.sensor.presence"

Default OCF Interface: "oic.if.a"

Register Resource with local path "/temperature"

number of Resource Types: 1

Resource Type: "oic.r.temperature"

Default OCF Interface: "oic.if.a"

Successfully installed PKI certificate

Successfully installed intermediate CA certificate

Successfully installed root certificate

OCF server "server_lite_5821" running, waiting on incoming connections.

The goal is to have a device for each physical device like a button or a sensor.

There are EnOcean sensors with e.g. three measurement points:

Light, Temperature and Occupancy Sensor

(A5-08-XX)

        

Temperature value

Temp Unit (by spec

Temp Range (by TYPE spec)

Illumination value

Illumination range (by type spec)

Occupancy

        

oic.r.temperature

oic.r.sensor.illuminance

oic.r.sensor.presence

        

oic.d.sensor

        

Generic Sensor


So we want to provide several devices (with one to n resources) from our gateway application.

In old days (IoTivity) it was possible to have one server (in one surrounding application) that starts several devices. Is that possible with IoTivity lite too?

If not: I started two servers (one and the copy of the executable from the first). When I onboarded the first one successfully onboarding of the second failed.

Our questions:

- is it possible to start two or more servers within one application ?

- How to organise credentials in that case (persistence, etc...)

Many thanks in advance,

Diethelm

--
----------------------------------------------------------
Prof. Dr.-Ing. Dipl.-Wirt. Ing. Diethelm Bienhaus
Fachgebiet Informatik mit Schwerpunkt Ingenieur-lnformatik
Fachbereich Mathematik, Naturwissenschaften und Informatik
Technische Hochschule Mittelhessen
Wiesenstr. 14 - D-35390 Gießen



--
----------------------------------------------------------
Prof. Dr.-Ing. Dipl.-Wirt. Ing. Diethelm Bienhaus

Fachgebiet Informatik mit Schwerpunkt Ingenieur-lnformatik
Fachbereich Mathematik, Naturwissenschaften und Informatik

Technische Hochschule Mittelhessen
Wiesenstr. 14 - D-35390 Gießen


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10307): 
https://lists.iotivity.org/g/iotivity-dev/message/10307
Mute This Topic: https://lists.iotivity.org/mt/65853266/21656
Group Owner: iotivity-dev+ow...@lists.iotivity.org
Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to