Skip to content
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

Did leshan bootstrap server support BLOCKWISE in CoAP #1568

Closed
Bradymu opened this issue Dec 21, 2023 · 1 comment
Closed

Did leshan bootstrap server support BLOCKWISE in CoAP #1568

Bradymu opened this issue Dec 21, 2023 · 1 comment
Labels
question Any question about leshan

Comments

@Bradymu
Copy link

Bradymu commented Dec 21, 2023

Question

we use Leshan bootstrap server in NO security, client connect to Leshan bootstrap server and bootstrap send the DM server information and certificate information to client. but client receive block, but from the log, the two blocks in CoAP packets didn't match for the token being different and so error 4.08 is returned.

wireshark package:
image
tcpdump1221.zip
bootstrap server log below

Send WRITE request on /0/1 using TLV(11542)
/0/1/0 : "coaps://leshan.eclipseprojects.io:5684"
/0/1/1 : false
/0/1/2 : 2
/0/1/3 : 425 Bytes
/0/1/4 : 556 Bytes
/0/1/5 : 138 Bytes
/0/1/6 : 3
/0/1/7 : 0 Bytes

/0/1/8 : 0 Bytes
/0/1/9 : ""
/0/1/10 : 123
/0/1/11 : 1
/0/1/12 : 0
/0/1/15 : 3
Dec 21, 6:08:00.038 PM
receive error response
Receive REQUEST_ENTITY_INCOMPLETE(408)
Dec 21, 6:08:00.638 PM
send write
Send WRITE request on /1/0 using TLV(11542)
/1/0/0 : 123
/1/0/1 : 300
/1/0/2 : 1
/1/0/6 : true
/1/0/7 : "U"
Dec 21, 6:08:00.638 PM
receive success response
Receive CHANGED(204)

@Bradymu Bradymu added the question Any question about leshan label Dec 21, 2023
@jvermillard
Copy link
Contributor

jvermillard commented Dec 21, 2023

the two blocks in CoAP packets didn't match for the token being different and so error 4.08 is returned.

It's a common mistake: two blocks should not share the same token; see:
eclipse-californium/californium#2088

@Bradymu Bradymu closed this as completed Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Any question about leshan
Projects
None yet
Development

No branches or pull requests

2 participants