Skip to content

Sometimes the last character is missing when I query an SDI12 sensor when using the command with CRC (aMC! ) #160

@ionel-dragomirescu

Description

@ionel-dragomirescu

Hello,

I am using the SDI-12 library, version 2.3.0. I am working on a SAMD21 processor board, similar in hardware to the SARA SFF variant from Sodaq. I am able to query SDI12 sensors and I have tried with several types of sensors: Teros21 (Meter), SI431 (Apogee), TRWS224 (MPS).

I noticed that when I want to query the data using the command with CRC, i.e. aMC!, sometimes the last character in the response is missing, i.e. the last character in the CRC. The first 2 characters in the CRC are correct, but the library fails to read the last character. If I retry, sometimes it succeeds in reading the entire message, sometimes not.

Has anyone else encountered this?

Interestingly, if I use the command without CRC, i.e. aM!, it reads the entire message from the first query and there is no need to retry. What is different in the library when using aMC! instead of aM! and can it lead to "losing" the last character in the response?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions