Repository navigation
refactor(dragino): align decoders and metadata with official decoder library - #1095
Open
Lance-dragino wants to merge 5 commits into
Open
Lance-dragino wants to merge 5 commits into
Lance-dragino wants to merge 5 commits into
Conversation
…th official decoder Firmware 1.2.0 carries the same payload as 1.1.4 (the changelog lists no payload change for 1.2.0), so the 1.2.0 entry now references ldds75-114-codec. ldds75-codec is restored to the 5-byte format used by firmware <= 1.1.2 and is only referenced by the abp 1.1.1 entry.
… types
Unsupported frame types (bytes[0] >= 0xE0) previously fell through to
{ data: undefined }, so the platform showed neither data nor an error.
They now return { errors: [...] } with the offending frame type.
Payload changed in V1.3.1 (changelog: Increase the maximum wind speed value and average wind speed value). Firmware 1.0-1.3.0 keeps wsc1-l-codec.
This was referenced Nov 17, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align four Dragino devices in
vendor/draginowith the official decoder library,so the decoded output matches the vendor reference field by field.
cpl01LAST_DISCONNECT_DURATION; addNode_typeon fPort 2/4ldds75wsc1-llht52Node_type; unsignedSystimestampBreaking changes
distance→Distance; the 5-byte codec now also emitsBatandInterrupt_statusDATALOGstring instead of a status textDISCONNECT_DURATION→LAST_DISCONNECT_DURATIONNotes
Node_typeis added only on the branches where the official decoder emits it(
cpl01fPort 2/4,lht52all branches,ldds75fPort 2).lht52fPort 3 has no codec example because the decoder formats timestamps inlocal time, which would make validation environment-dependent. Verified manually
with payload
08CD0220 7FFF01 61CD4EDD:The instant is
1640845021; the string reflects the machine's local time(UTC+8 here). CI runs in UTC and renders the same instant as
2021-12-30 06:17:01.wsc1-l1.3.1 is a new firmware entry: V1.3.1 changed the payload by addingthe maximum and average wind speed values. Firmware 1.0–1.3.0 keeps
wsc1-l-codec.Verification
make validate VENDOR_ID=draginopasseserrors