-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to get down block size for BLOCK1 #371
Comments
First at all: To your question: If to want to "patch", the mapping from LWM2M to CoAP is implemented in the module Though I only use /5/0/1, my "constrainded" client just provides its preferred blocksize using block2 in the request. |
You can configure the block size to use at startup but this will affect all resources and all devices. If you are using
Leshan uses the Californium "magical/transparent" block wise implementation. And this is not implemented. Maybe this should be added to californium. About using coap blockwise to send firmware package, you should have look at this issue too : #367 (comment). |
I open an issue on scandium : eclipse-californium/californium#395 |
Question: is there any possibility for Californium to handle different block1 sizes on different connections - e.g. can one lwm2m device signal a small block size for the BlockLayer handling while another have a larger block-size. My thinking is that devices could have attributes that tell the LWM2M server what sizes to use for block1 as it is too late to tell when a large block already arrived. (I know this kind of is a Californium question - but as this thread moved over there also I guess it is still also relevant here). |
So, what are you trying? If you want to use LWM2M for firmware updates successfully, I recommend to use "/5/0/1" and block2 :-). |
No possibility if you're using transparent block-wised.
This works well with block2, for block1 we should implement #395.
AFAK, the only thing which looks like that in CoAP spec is what you described before .... If you want working solution now, you should follow boaks' advice. |
The certificate chain sent in a CERTIFICATE message should not contain certificates representing authorities trusted by the peer (as indicated in its CERTIFICATE_REQUEST message). The filtering of such certificates from the chain has been erroneously done on the certificates' issuer DN instead of using the subject DN. This has been fixed.
would you give me a firmware upload demo use 5/0/0? I can not get good idea. always get respose "Unable to write resource /5/0/0 for 4IP53OBZ0GGOORI : 400 Invalid request:Unable to convert hexastring [] to byte array for resource /5/0/0" |
@joakimeriksson, just in case you're still interested in this. I created a PR about this : eclipse-californium/californium#1357 |
I am testing some firmware upload code where i add a large hex-string to the leshan server's GUI and do a write (on the firmware object). But Leshan sends of with a block size of 512 and I would like to get it down to 256 or 128. Base on the RFC 7959 the recommended approach is to respond with a ENTITY TOO LARGE response code and set the SIZE1 option to the size i prefer. Is this implemented in Leshan? It just showed me a failure - "Unable to write resource /5/0/0 for abcde : 500 Invalid Response:Client [abcde] returned unexpected response code [4.13] for [WriteRequest...".
Is this a known issue or am I doing something wrong?
The text was updated successfully, but these errors were encountered: