Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] CoAP support for Eclipse kura

Hi Cristiano,

I added Californium dependency to kura. Then I started implementing by making a new package as you said before. There are several problems that makes it very hard to implement. I have tried days to implement this protocol without changing to the existing code. I'm on the way of finishing implementing that. But I think It is good to mention the problems.

1. MqttDataTransport implements DataTransportService. it contains connect, disconnect, subscribe, unsubscribe, publish, getUserName methods. but since CoAP is not connection oriented, it does not need connect and disconnect methods. but I had to Implement those. so I included things that should be done at the beginning of a communication and end of a communication to those methods. CoAP have GET, POST, PUT, DELETE methods instead of publish and subscribe. 


2. When the data flow comes from the above layers, most of those methods have inherited mqtt nature. 

For example, when we get a new cloud client in example.publisher by sending APP_ID, CloudServiceImpl have a method publishAppCertificate() which make the topic and  send it to publishLifeCycleMessage() method which send the topic and payload to m_dataService.publish() which is a mqtt method. In making that topic it uses the tokens from CloudServiceOptions (like #account-name, client-id, MQTT/BIRTH). 

so that, implementation on the existing one without changing it is very challenging. up to now I have implemented isConnect(), connect(), disconnect(), and some more methods in an acceptable way. I have to implement subscribe(), unsubscribe(), pulblish().

we can send requests asynchronously and define a handler to invoke when a response comes from the server. I can use that inside subscribe method. but I have no way to change the topic without changing existing code. 

I'm very happy to have a idea about my current situation. 

Thank You.   



Buddhika Dilhan
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.


On Tue, Aug 5, 2014 at 9:50 PM, De Alti, Cristiano <Cristiano.DeAlti@xxxxxxxxxxxx> wrote:
Hi Buddhika,
  Great!
I assume you managed to add the Californium dependency to Kura, didn't you?

Yes, you cannot use SSL and DTLS should be already included in Californium.

For the time being I would skip the security part and I will just try a basic setup without any security features.
These can be added later on.

Let's focus on the simple use case we have agreed on.

Do you have a github repository to take a look to the code?

Ciao,
  Cristiano


On 02/08/2014 07:46, Buddhika Dilhan wrote:
Hi all,

I'm currently implementing the transport layer of eclipse kura with CoAP. I'm very happy if you leave a comment on this.
 
CoAP runs on UDP. so that we cannot use SSL to provide secure connection. Is that right?
We have to use DTLS instead of ssl. Any idea on this?

Thank you very much. 

Buddhika Dilhan
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.


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

--
Cristiano De Alti
Principal Software Engineer

direct:    +39 0433 485468

EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via Fratelli Solari, 3/a | 33020 Amaro UD | Italy | Tel. +39. 0433 485411  | Fax +39. 0433 485499 |
Cap. Soc. 8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 | REA Udine 196115
www.eurotech.com
____________________________________

Il presente messaggio ed ogni suo allegato sono da intendersi inviati esclusivamente agli effettivi destinatari e potrebbero essere soggetti a restrizioni legali. Se avete ricevuto questo messaggio per errore vi invitiamo a darne immediata notifica al mittente e cancellarlo dal vostro sistema. Qualsiasi altro uso di questo messaggio da parte vostra e' strettamente proibito.
 
This e-mail, and any file attached to it, is meant only for the intended recipient of the transmission and may be a communication privileged by law. If you have received it in error, please notify the sender immediately and delete the original from your system. Any other use of this e-mail by you is strictly forbidden.
____________________________________
 
Per favore, pensate all’ambiente prima di stampare questa e-mail. Please consider the environment before printing this e-mail.

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


Back to the top