Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] CoAP support in Kura through Eclipse Californium

Hi Dilhan,
   Please see my comments below.

On 30/05/2014 04:46, Buddhika Dilhan wrote:
Hi all,

First of all I'm thanking to you for giving me a helping hand to make this project success. thanks to david there are no errors in examples. I'm posting my current progress below.

There were about 30 warnings saying that “Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment. ” so, I corrected it by modifing the java build path to my current jre 1.7.0_25.


then there were about 30 plugin problems saying that “The JRE container on the classpath is not a perfect match to the 'JavaSE-1.6' execution environment ”. so I had to modify the manifest file of every project to

Bundle-RequiredExecutionEnvironment: JavaSE-1.7

then another 30 problems were emerged saying that I have to modify the build properties. After modifing the build properties by adding the line

jre.compilation.profile = JavaSE-1.6

I could remove those.


You should not do that.
The way we understand it is that the minimal environment is JavaSE-1.6.
Please do not change it and live with the Eclipse warning for now.

Alternatively, it looks like that multiple values can be specified for Bundle-RequiredExecutionEnvironment, e.g.:

Bundle-RequiredExecutionEnvironment: JavaSE-1.6, JavaSE-1.7

We will discuss this internally.

Also, in Eclipse go to Preferences | Compiler and select the Compiler compliance level to 1.6

There are were errors in org.eclipse.kura.linux.usb. Importing following packages to javaxUsb.java class fixed that.

import javax.usb.*;

import com.ibm.jusb.*;


I pulled the latest changes today and these appear to already contain these imports:

import javax.usb.*;
import javax.usb.util.*;

import com.ibm.jusb.*;
import com.ibm.jusb.os.*;
import com.ibm.jusb.util.*;

still there are 109 errors and 273 warnings to go. :D


There are errors in org.eclipse.kura.core project. The import  org.eclipse.paho cannnot be resolved.

org.eclipse.paho.* packages are exported by the mqtt-client_0.4.0.jar bundle in target-definition/equinox_3.8.1/repository/plugins.

In Eclipse expand Plug-in Dependencies in the Kura core project. It should be present.

Please attach a screenshot of your Project Explorer in Eclipse expanding the problematic items.

There are errors in org.eclipse.kura.protocol.can project. The import de.entropia.can cannot be resolved.

all the remaining errors are in that two projects. 



The entropia issue can be fixed by building the 'can' profile:

https://github.com/eclipse/kura/issues/3#issuecomment-43920427

and reimporting org.eclipse.kura.protocol.can in the workspace

These are the replies for previous messages.


>I assume that building Kura with Maven succeeded and you have problems/errors after importing the projects in Eclipse.

Is this correct?

Yes, the build was a success. But when importing it to workspace it gave bunch of errors.


>Can you describe your environment in detail (OS/Java/Maven/Eclipse versions)?

I'm using ubuntu 14.04

oracle jdk 1.7.0_25

maven 3.0.5

eclipse juno EE (not SE) – does that the problem


I use Juno too on Ubuntu 12.04. This is my configuration:

 mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /opt/apache-maven-3.0.4
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /opt/jdk1.7.0_45/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-54-generic", arch: "amd64", family: "unix"

java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

> Other errors are saying that it cannot resolve the import. I'm working on that. If you have any idea

> please tell me.


>Please try pulling the latest changes from github and see if they fix the issue.

I tried it for several time, but the errors remained same.


I tried very hard to get this project running. but still there are some errors. I'm very glad if you can give me some help.


I've cloned a fresh kura repository today and used a new Eclipse workspace and, other than for the can project, I don't have any errors in Eclipse.

Did you import the kura projects with Import | Maven | Existing Maven Projects?

Did you set the target platform in Eclipse? Try setting it again and clean and rebuild the projects from Eclipse.

Try cloning the kura repository again and use a new Eclipse workspace

Thanks.



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


On Fri, May 30, 2014 at 8:02 AM, Buddhika Dilhan <buddhika.dilhan5@xxxxxxxxx> wrote:
Hi all,

First of all I'm thanking to you for giving me a helping hand to make this project success. thanks to david there are no errors in examples. I'm posting my current progress below.

There were about 30 warnings saying that “Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment. ” so, I corrected it by modifing the java build path to my current jre 1.7.0_25.


then there were about 30 plugin problems saying that “The JRE container on the classpath is not a perfect match to the 'JavaSE-1.6' execution environment ”. so I had to modify the manifest file of every project to

Bundle-RequiredExecutionEnvironment: JavaSE-1.7

then another 30 problems were emerged saying that I have to modify the build properties. After modifing the build properties by adding the line

jre.compilation.profile = JavaSE-1.6

I could remove those.


There are were errors in org.eclipse.kura.linux.usb. Importing following packages to javaxUsb.java class fixed that.

import javax.usb.*;

import com.ibm.jusb.*;


still there are 109 errors and 273 warnings to go. :D


There are errors in org.eclipse.kura.core project. The import  org.eclipse.paho cannnot be resolved.

There are errors in org.eclipse.kura.protocol.can project. The import de.entropia.can cannot be resolved.

all the remaining errors are in that two projects. 


These are the replies for previous messages.


>I assume that building Kura with Maven succeeded and you have problems/errors after importing the projects in Eclipse.

Is this correct?

Yes, the build was a success. But when importing it to workspace it gave bunch of errors.


>Can you describe your environment in detail (OS/Java/Maven/Eclipse versions)?

I'm using ubuntu 14.04

oracle jdk 1.7.0_25

maven 3.0.5

eclipse juno EE (not SE) – does that the problem


> Other errors are saying that it cannot resolve the import. I'm working on that. If you have any idea

> please tell me.


>Please try pulling the latest changes from github and see if they fix the issue.

I tried it for several time, but the errors remained same.


I tried very hard to get this project running. but still there are some errors. I'm very glad if you can give me some help.


Thanks.



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


On Wed, May 28, 2014 at 6:16 AM, David Woodard <david.woodard@xxxxxxxxxxxx> wrote:
Hi Buddhika,

The errors in the org.eclipse.kura.example.* projects are likely from some recent refactoring. We moved all of the example projects into a folder called "examples" and manage this as a separate Maven project. In the Eclipse package explorer, you should see the folder called "examples", if not, you should import it. You can delete the individual org.eclipse.kura.example.* projects from the Eclipse workspace.

You should not see the org.eclipse.soda.dk package in your workspace. Be sure when you import the Maven projects that you browse to the kura/kura directory in your Git repository. If you only browse to kura, you may import projects from the target-platform, which will cause problems.

Thanks,
--Dave



On 5/26/14, 7:13 AM, Cristiano De Alti wrote:
Hi Buddhika,
   I'm posting your issues and questions to the kura_dev list because they may be of interest to others.
If you find bugs in Kura or have troubles building it, please file a bug to:

https://bugs.eclipse.org/bugs/describecomponents.cgi?product=Kura

> I built the project from the information I got from the readme file from Git. It had 189 errors.
> Those were in
> org.eclipse.kura.example.project
> org.eclipse.kura.example.publisher
> org.ecliple.kura.example.serial.publisher
> org.eclipse.kura.soda.dk.comm
> from those, in org.eclipse.kura.soda.dk.comm had some package naming errors.
> For example, package org.eclipse.soda.dk.comm was there inside the classes of the
> org.eclipse.soda.dk package but it was the name of the project so it gave error. Those errors were
> fixed.
I assume that building Kura with Maven succeeded and you have problems/errors after importing the projects in Eclipse.
Is this correct?

Can you describe your environment in detail (OS/Java/Maven/Eclipse versions)?
Did you follow the steps described in the project README? Did you need changing something?
Try importing the projects in Eclipse as Java projects instead of Maven projects. Does this help?
I see you are on Linux. I'm on Linux too so I should be able to help.

Also, it's very important that, if you fix a problem, you share the information on how you did it.

> Other errors are saying that it cannot resolve the import. I'm working on that. If you have any idea
> please tell me.

Please try pulling the latest changes from github and see if they fix the issue.

> I'm going to run Kura emulator on my PC as you suggested. If you can give me an idea how to begin
> it, that would be nice.

The first step is to fix the compile errors in the Eclipse workspace.
After that you could connect the Kura emulator to some MQTT broker like the one at Eclipse IoT:

http://iot.eclipse.org/sandbox.html

and learn how to publish and subscribe and the format and encoding (KuraPayload) of the MQTT payload used by Kura.
In order to connect to the Eclipse IoT MQTT broker you have to set the broker URL in the MqttDataTransport configuration.
Usually you don't need to manually edit the Kura configuration but you use the Kura Web UI to do that.
Unfortunately the project is still waiting for IP approval of one of its dependencies.
For the time being you can copy the file in {kura_repository}/kura/distrib/src/main/resources/raspberry-pi-nn/snapshot_0.xml
to /tmp/kura/snapshots/ (create the directory if it does not exist) and set the Eclipse IoT broker URL in the MqttDataTransport element:

            <esf:property name="broker-url" array="false" encrypted="false" type="String">
                <esf:value>mqtt://iot.eclipse.org:1883/</esf:value>
            </esf:property>

Also set the following DataService configuration property to true (default: false):

           <esf:property name="connect.auto-on-startup" array="false" encrypted="false" type="Boolean">
                <esf:value>true</esf:value>
            </esf:property>

If you start the emulator it should be able to connect to the broker.
After connecting to the broker you can install some example project in the framework and familiarize with the Kura CloudService and KuraPayload.

> I searched for californium examples and I could find some. So I'm going to run those and get an
> idea.
Great. There is an CoAP server at Eclipse IoT.

Let's keep posting our progress here on the kura_dev ML.

Ciao,
  Cristiano

On 22/05/2014 06:43, Buddhika Dilhan wrote:
Hi cristiano,

I'm sending my email as a work document so that you can make changes to my comments and I think it is easier you to reply like that. 

hope you don't angry with me. :)



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


On Mon, May 12, 2014 at 12:28 PM, Cristiano De Alti <cristiano.dealti@xxxxxxxxxxxx> wrote:
Hi Buddhika,
  I think we can start our project.
If you have not done it yet I advice you fork your own copy of the Kura repository on github:

https://github.com/eclipse/kura

You should then commit your changes on your copy.
Then your changes could be applied upstream using git's pull requests.

How to start with Kura. Have you already tried running the Kura emulator on your PC?
To better understand and have a feeling with the Kura remote device management over MQTT I will
create a test account for you on our EC sandbox.

Do you have a plan on how to start trying integrating CoAP in Kura.
Did you run any Californium examples/tutorials?

Please send me an update with your comments,

Ciao,
  Cristiano

On 28/04/2014 06:37, Buddhika Dilhan wrote:
Hi Cristiano,
It is ok as my second year final exams also going these days which ends May 4th. :)

Thanks.

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


On Fri, Apr 25, 2014 at 8:17 PM, De Alti, Cristiano <Cristiano.DeAlti@xxxxxxxxxxxx> wrote:

Hi Buddhika,

    I'm out of offfice until May, 2th.

I'll get in touch with you when I'm back in the office.


Ciao,

Cristiano


Da: Buddhika Dilhan <buddhika.dilhan5@xxxxxxxxx>
Inviato: venerdì 25 aprile 2014 11.11
A: De Alti, Cristiano
Oggetto: Re: CoAP support in Kura through Eclipse Californium
 
Hi Cristiano,
Thanks for the support you given in the GSoC application process. Hope to hear from you soon. Better to inform me about a future communication media. And also it would be better if you can give me some clues to start the project ASAP. 

thanks,

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


On Thu, Apr 17, 2014 at 3:25 PM, Buddhika Dilhan <buddhika.dilhan5@xxxxxxxxx> wrote:
Hi Cristiano, 
I'm studying the code base these days. If you have any special suggestions please give me. 

cheerrs, 
buddhika


On Fri, Mar 21, 2014 at 6:17 PM, Buddhika Dilhan <buddhika.dilhan5@xxxxxxxxx> wrote:
hi,
It's ok. But it is good if you can tell me some rough idea and a point to start my project. so that I can have a look at them early :) 

thaks,
buddhika


On Fri, Mar 21, 2014 at 6:12 PM, Cristiano De Alti <cristiano.dealti@xxxxxxxxxxxx> wrote:
Hi Buddhika,
  Thanks for submitting the proposal. I wanted to explain more details about it but I could not find the time this week (distracted by some "emergencies").
I'll let you know more next week.

Regards,
  Cristiano


On 21/03/2014 12:46, Buddhika Dilhan wrote:
hi, 
Thank you very much for encouraging me to submit the proposal.
I submit a proposal but I  feel it doesn't contain much information I'm sorry if that so. If I could contact you more often, I could have improve the proposal more. However that will not be a problem when we start the project. :) 

Thank you very much,
Buddhika Dilhan


On Thu, Mar 20, 2014 at 1:49 PM, Cristiano De Alti <cristiano.dealti@xxxxxxxxxxxx> wrote:
Hi,
   You need to submit your project proposal into the Google dedicated system *before the end of the week*.

Thanks,
  Cristiano


-------- Original Message --------
Subject: Re: CoAP support in Kura through Eclipse Californium
Date: Fri, 14 Mar 2014 17:32:36 +0100
From: Cristiano De Alti <cristiano.dealti@xxxxxxxxxxxx>
To: Buddhika Dilhan <buddhika.dilhan5@xxxxxxxxx>


Hi,
  Thanks for your interest. I'm sorry for the late answer.
We will provide you more information early next week.

Best Regards,
  Cristiano

On 08/03/2014 19:07, Buddhika Dilhan wrote:
Hello,

I am a BSc(Eng) Undergraduate from University of Moratuwa Srilanka studying Computer Science and Engineering.
 
I have been quite attracted  by this project idea. I am a proficient java developer and I want to get involved in this developer community. 

It is very helpful if you can provide some information about the project so that I can start on the project soon.

 
Regards
Buddhika Dilhan

--
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.




--
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.





--
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.


--
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
https://dev.eclipse.org/mailman/listinfo/kura-dev




_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
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.

Back to the top