Skip to content

LimeSDR-XTRX GNSS UART test never terminates on a read timeout #394

Open

Description

@dmitrymmm

The port is configured with VMIN = 0 / VTIME = 10, so read() returns 0 after a one-second timeout with no data. The loop treats that as progress-free success:

for (int b = 0; b < bytesToRead;)
{
    int bread = read(tty_fd, inMessage + b, sizeof(16));
    if (bread < 0) { ... return OpStatus::Error; }
    b += bread;
}

A silent GNSS UART hangs the OEM test forever. Two more problems in the same block: sizeof(16) is 4, not the intended 16-byte chunk, and the open() of the uart node is never checked.

Activity

  1. dmitrymmm commented on Aug 3, 2026

    @dmitrymmm
    ContributorAuthor

    Fix submitted in #376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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