Skip to content

The shortest NMEA sentence can be less than 32 #56

Closed
@lesamouraipourpre

Description

@lesamouraipourpre

Currently in _read_sentence() the code waits for at least 32 bytes before processing

def _read_sentence(self):
    # Only continue if we have at least 32 bytes in the input buffer
    if self.in_waiting < 32:
        return None

The shortest sentence I can find referenced in a datasheet is 15 bytes long:
$PMTK501,2*28<CR><LF>

I can find no definitive shortest sentence, but theoretically, there could be a sentence 11 bytes long:
$XXXXX*ZZ<CR><LF>
where the talker/sentence_type or proprietary_message is the message and needs no extra data.

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