Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » CoAP blockwise transfer(Californium 0.18.6 does not handle blockwise transfer correctly)
CoAP blockwise transfer [message #1764508] Tue, 30 May 2017 15:55 Go to next message
Regis DARGENT is currently offline Regis DARGENTFriend
Messages: 3
Registered: November 2016
Junior Member
Hi everybody,
I recently fell on a problem using OneM2M server and CoAP protocol :
When the payload is too high, we have to split the frame into several blocks (CoAP blockwise transfer) ;
The Californium CoAP stack of OneM2M server should then re-assemble the different blocks, but I can see in the logs that it is not done correctly : the headers are lost in the process, so the data is dropped.

I successfully ported the last stable version of californium (1.0.5) to OneM2M :

I changed "californium-0.18.6-final.jar" to "californium-core-1.0.5.jar"
and "element-connector-0.2-final.jar" to "element-connector-1.0.5.jar"
in the 3 files:
org.eclipse.om2m.binding.coap/META-INF/MANIFEST.MF
org.eclipse.om2m.binding.coap/.classpath
org.eclipse.om2m.binding.coap/build.properties

I then modified the attached .java files (I mainly changed the 'import' lines, and changed the name of the CoapServer class to Om2mCoapServerClass, as the previous name is now used in Californium).

I it may be usefull to someone...
Re: CoAP blockwise transfer [message #1764512 is a reply to message #1764508] Tue, 30 May 2017 16:40 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Dear Regis,

Thank you for your valuable feedback.
I will include your patch in our next release ;)

Best regards,
Mahdi
Re: CoAP blockwise transfer [message #1764518 is a reply to message #1764508] Tue, 30 May 2017 18:44 Go to previous message
Thierry Monteil is currently offline Thierry MonteilFriend
Messages: 33
Registered: November 2013
Location: Toulouse - France
Member
Hi Regis,
It is a nice contribution, i suggest you to submit this modification on gerrit to be include in the eclipse OM2M distribution.

Thierry.
Previous Topic:Query in OM2M
Next Topic:om2m
Goto Forum:
  


Current Time: Mon Oct 07 21:46:06 GMT 2024

Powered by FUDForum. Page generated in 0.02871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top