Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [hono-dev] Regarding the integration with other Eclipse project

The "add_lwm2m" branch was indeed a very quick and dirty attempt to get LWM2M support running in Hono. We used this for a tutorial at last year's EclipseCon Europe.

So, if you just want to "get it up and running" this might work for you. However, be aware of the fact that you will need to manually create observations on resources of connected devices using leshan's Demo Web UI, i.e. there will be no telemetry data flowing downstream unless you start observing resources on the CoAP devices ...


Mit freundlichen Grüßen / Best regards

Kai Hudalla
Chief Software Architect

Bosch Software Innovations GmbH
Schöneberger Ufer 89-91
10785 Berlin
GERMANY
www.bosch-si.com

Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B;
Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn

From: hono-dev-bounces@xxxxxxxxxxx <hono-dev-bounces@xxxxxxxxxxx> on behalf of Thong Q. Nguyen <quocthong.ng@xxxxxxxxx>
Sent: Wednesday, June 28, 2017 16:18
To: hono developer discussions
Subject: Re: [hono-dev] Regarding the integration with other Eclipse project
 
Hello,

I found a branch called "add_lwm2m" on Hono github which is an experimental protocol adapter for LWM2M. It "supports the forwarding of notifications for observed resources on LWM2M clients to Hono's telemetry API. It is built on top of Eclipse Leshan and uses Californium for CoAP communication with clients", so is it also considered as a CoAP adapter for Hono ? If I want to connect a CoAP device to Hono through Leshan (only in telemetry direction), is this adapter sufficient ? You mentioned that lwm2m adapter should be put in the northbound, while this lwm2m adapter seems to be in the southbound, am I wrong?

Thank you very much for your thorough responses till now. They really helps me understand alot about a large scale project like Hono as well as Eclipse IoT.

Your sincerely,
T. Nguyen 

2017-06-26 18:08 GMT+02:00 Hudalla Kai (INST/ECS4) <kai.hudalla@xxxxxxxxxxxx>:

Hi,


ad 1) the link you are referring to points to the original project _proposal_ page. A lot has changed since then and you should not use if for reference. All relevant information can be found on the Hono website [1].


ad 2) Having a CoAP protocol adapter is something I would appreciate. Personally, I would indeed build it using Californium. Take a look at the existing protocol adapters in order to get started with it. They all are based on "org.eclipse.hono.service.AbstractProtocolAdapterBase" which already provides the connection to the Device Registry and Hono Messaging component so that you can focus on implementing the device connectivity.


ad 3) yes, the Protocol Adapters always connect directly to the Hono Messaging component whereas the consumers connect to the AMQP 1.0 Messaging Network. See [2] for details


[1] https://www.eclipse.org/hono

[2] https://www.eclipse.org/hono/architecture/component-view/Component-View/


Mit freundlichen Grüßen / Best regards

Kai Hudalla
Chief Software Architect

Bosch Software Innovations GmbH
Schöneberger Ufer 89-91
10785 Berlin
GERMANY
www.bosch-si.com

Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B;
Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn

From: hono-dev-bounces@xxxxxxxxxxx <hono-dev-bounces@xxxxxxxxxxx> on behalf of Thông Nguyễn Quốc <quocthong.ng@xxxxxxxxx>
Sent: Monday, June 26, 2017 14:39
To: hono developer discussions
Subject: Re: [hono-dev] Regarding the integration with other Eclipse project
 
Hi,

I have some questions regarding your last answer (sorry for asking a bit late on this matter), I hope you can clarify them for me: 

ad 1) We definitely want to add more protocol adapters. In particular we would like to employ the code/artifacts from other Eclipse IoT projects for that purpose. The most obvious thing to do is adding a CoAP protocol adapter based on Eclipse Californium. A LWM2M protocol adapter probably doesn't make much sense since the "management" of the devices already constitutes an application in the Hono sense, i.e. LWM2M would probably better be implemented "northbound" of Hono. However, it would require the command & control direction, which is not (yet) available.

1)  As you mentioned, LWM2M / Eclipse Leshan should be implemented in the northbound of Hono. However, in this drawing here on the Eclipse Hono project page [1], LWM2M is at the southbound of Hono. Therefore it makes me a quite confused about the position of LWM2M / Leshan in "the big picture" of Hono,

2) I want to connect a device to Hono through CoAP, but at the current state of Hono, it doesn't have an official protocol adapter for CoAP. Is it technically possible to implement Californium into Hono sender blueprint  [2] as a temporary implementation of CoAP adapter ?

3) As I noticed, the Hono sender blueprint [2] does not implement the qdrouter as in Hono consumer [3], it connect directly to Hono instead (through Hono host and port). Are protocol adapters (HTTP, MQTT) the same with Hono sender and they connect directly to Hono without AMQP network ?  

Thank you in advance. I hope to receive your response soon.




Best regards,
T. Nguyen

2017-06-06 14:32 GMT+02:00 Hudalla Kai (INST/ECS4) <kai.hudalla@xxxxxxxxxxxx>:

Hi,


ad 1) We definitely want to add more protocol adapters. In particular we would like to employ the code/artifacts from other Eclipse IoT projects for that purpose. The most obvious thing to do is adding a CoAP protocol adapter based on Eclipse Californium. A LWM2M protocol adapter probably doesn't make much sense since the "management" of the devices already constitutes an application in the Hono sense, i.e. LWM2M would probably better be implemented "northbound" of Hono. However, it would require the command & control direction, which is not (yet) available.


ad 2, 3) There is no need to install/use a separate MQTT broker in order to connect devices to Hono using MQTT. Hono's MQTT protocol adapter implements those parts of the MQTT protocol which are necessary for clients to connect and publish their telemetry or event messages. Please take a look at the MQTT adapter documentation [1] for details.


[1] https://www.eclipse.org/hono/component/mqtt-adapter/


Mit freundlichen Grüßen / Best regards

Kai Hudalla
Chief Software Architect

Bosch Software Innovations GmbH
Schöneberger Ufer 89-91
10785 Berlin
GERMANY
www.bosch-si.com

Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B;
Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn

From: hono-dev-bounces@xxxxxxxxxxx <hono-dev-bounces@xxxxxxxxxxx> on behalf of Thông Nguyễn Quốc <quocthong.ng@xxxxxxxxx>
Sent: Tuesday, June 6, 2017 14:09
To: hono developer discussions
Subject: [hono-dev] Regarding the integration with other Eclipse project
 
Hi there,

I am doing a study on the integration of Hono and other Eclipse IoT projects like Mosquitto, Leshan, and HawkBit. I come up with several questions:

1. As I noticed in the description, currently Hono only support MQTT connection through its MQTT adapter and HTTP connection through REST adapter. Is that possible that Hono can integrate with Leshan despite not having a LWM2M adapter ?

2. As far as I try to install Hono and Mosquitto on the same host, they don't work together well. Mosquitto broker cannot process subscribe/publish message on the host where Hono is running on. When I disable Hono, Mosquitto broker functions normally. This seems petty weird because they use two different ports. Meanwhile, when that host acts as an MQTT client and subscribe/publish to the MQTT broker on the other host (Hono is not installed), it works fine.

3. Are all the protocol adapters supposed to represent for other IoT projects. I mean that if Hono already has an adapter for MQTT, it doesn't need Mosquitto? Or these adapters are just the "link" between Hono and other IoT projects ?

Sincerely,
T. Nguyen

_______________________________________________
hono-dev mailing list
hono-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/hono-dev



_______________________________________________
hono-dev mailing list
hono-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/hono-dev



Back to the top