You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently unable to discovery iotivity-constrained sample
applications, e.g. port/linux/simpleserver with OTGC.
I built iotivity-constrained using:
make DEBUG=1 SECURE=1
and started port/linux/simpleserver and the OTGC application on the
same machine.
OTGC didn't give many any useful error reports, it only stated that
discovery failed. I therefore observed the communication between OTGC
and iotivity-constrained with wireshark and made the following
observations:
iotivity-constrained seems to use CoAP block (RFC 7959) for the /oic/res resource.
The initial discovery request is sent by OTGC from the link local
IPv6 address of my interface to the OCF multicast group.
iotivity-constrained response with the first of two Block 2
responses.
OTGC requests the second block from the global IPv6 address of the
interface.
iotivity-constrained is not able to map this IPv6 address to an
initiated block transfer, prints a initiating block-wise transfer with request for block_num > 0 error message and sends a RST
response to OTGC.
I consider this a bug in OTGC as it should use the same IPv6 source
address for the request to the multicast group and the request for
receiving additional CoAP block2 blocks.
In the meantime a dirty workaround is to disable the source address
check in iotivity constrained. For instance using the following patch:
With this workaround I was able to discovery the iotivity-constrained
server. I was, however, not able to use the generic client
functionality and pressing the RFNOP button in the GUI still causes an
error to be emitted by OTGC. If you any hints on how to fix that I would
be very glad to hear them.
The text was updated successfully, but these errors were encountered:
Dear @nmeum ,
OCF plans to upload to this public repo a new OTGC version shortly. Please, try to test again once this happens. This version includes logs at IoTivity level (note that OTGC is based on IoTivity and not on IoTivity-Constrained or -Lite).
Thanks!
Regards,
Diego B.
I am currently unable to discovery iotivity-constrained sample
applications, e.g.
port/linux/simpleserver
with OTGC.I built iotivity-constrained using:
and started
port/linux/simpleserver
and the OTGC application on thesame machine.
OTGC didn't give many any useful error reports, it only stated that
discovery failed. I therefore observed the communication between OTGC
and iotivity-constrained with wireshark and made the following
observations:
/oic/res
resource.IPv6 address of my interface to the OCF multicast group.
responses.
interface.
initiated block transfer, prints a
initiating block-wise transfer with request for block_num > 0
error message and sends a RSTresponse to OTGC.
I consider this a bug in OTGC as it should use the same IPv6 source
address for the request to the multicast group and the request for
receiving additional CoAP block2 blocks.
In the meantime a dirty workaround is to disable the source address
check in iotivity constrained. For instance using the following patch:
With this workaround I was able to discovery the iotivity-constrained
server. I was, however, not able to use the generic client
functionality and pressing the
RFNOP
button in the GUI still causes anerror to be emitted by OTGC. If you any hints on how to fix that I would
be very glad to hear them.
The text was updated successfully, but these errors were encountered: