I am attempting to birth an edge of network node, and am running into error messages that I don’t understand.
This is the message that shows up in Ignition’s logs.
ProtocolProcessor 28Feb2023 06:15:19 content <{“timestamp”:“1601-01-02T22:35:56.4830889”,“metrics”:[{“name”:“bdSeq”,“timestamp”:“1601-01-02T22:35:56.4830889”,“dataType”:“Uint64”,“value”:6},{“name”:“Node Control/Rebirth”,“timestamp”:“1601-01-02T22:35:56.4830889”,“dataType”:“Boolean”,“value”:false}],“seq”:0}>
Shortly after a warning appears in the logs and an error message.
The only variable with a value of 0 is the seq variable. Page 58 of the Sparkplug B Specification version 2.2 requires the seq value to be set to 0 on an NBIRTH message. Not finding the same wording anywhere in Sparkplug B Specification version 3, I tried setting that value to 1 instead (valid 0 through 255). That resulted in a the same warning and a different error.
ProtocolProcessor 28Feb2023 06:35:03 content <{“timestamp”:“1601-01-02T22:35:56.6101828”,“metrics”:[{“name”:“bdSeq”,“timestamp”:“1601-01-02T22:35:56.6101828”,“dataType”:“Uint64”,“value”:7},{“name”:“Node Control/Rebirth”,“timestamp”:“1601-01-02T22:35:56.6101828”,“dataType”:“Boolean”,“value”:false}],“seq”:1}>
Sorry, I’m new and only allowed to include one picture. The text of the second error message when the seq is set to 1 instead of 0 is:
com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.
com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.