Skip to content

Unexpected error when arming #57

@coretl

Description

@coretl

Somehow we hit this TEST_OK while doing *PCAP.ARM:

/* If data capture is not enabled then we can safely expect the
* buffer status to be idle. */
TEST_OK(!read_buffer_status(data_buffer, &readers, &active)) ?:

Causing ERR: Unexpected error at .../data_server.c:220. This was the ID panda that @glennchid upgraded, so I guess this was the 3.0 release, rather than @EmilioPeJu's latest changes, although I can't see anything in them that touches this code.

There are 2 parts of the code that connect to a PandA:

  • One makes a connection to PandA and sets some parameters
  • The second makes a connection to PandA, sets some parameters, opens the data port, and as soon as it says "OK" sends "*PCAP.ARM"

Inserting a 1 second sleep between the two fixes the problem. Inserting a 0.1s sleep does not.

I have yet to reproduce this outside the application they were using, but before I do, do you know what might trigger this?

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