Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RADA2B] No errors reported when the A2B bus is lost and does not recover when reconnected. #66

Open
bigcmos opened this issue Sep 27, 2024 · 0 comments

Comments

@bigcmos
Copy link

bigcmos commented Sep 27, 2024

Test:

  1. [t=0m0s] Start recording Audio
  2. [t=0m35s] Disconnected the A2B bus cable between a single mic and the RADA2B
  3. [t=0m45s] Reconnect the A2B cable
  4. [t=1m55s] Disconnect network cable
  5. [t=2m08s] Reconnect network cable
  6. [t=2m17s] Disconnect network cable
  7. [t=2m27s] Reconnect network cable

Expect: While the A2B or network cable is disconnected an error should be reported and no audio data is sent. When the cable is reconnected the error should be cleared and the Audio should resume.

Actual:
[FAIL] After the A2B cable is disconnected no errors are reported. Audio sends the same value continuously for every sample. Audio stream doesn't recover after the A2B cable is reconnected.
[SUCCESS] A disconnect and reconnect error is reported for the network cable.

Code snippet for event filtering that we expect to return errors:

    icsneo::RADA2B *icsneo_pointer;  // Created and initialized elsewhere.
    icsneo::EventCallback callback(
        [this](std::shared_ptr<icsneo::APIEvent> event) { this->event_callback(event); },
        std::make_shared<icsneo::EventFilter>(icsneo_pointer));
    event_callback_id_ = icsneo::EventManager::GetInstance().addEventCallback(callback);

Output of callback messages

I0924 14:47:27.465102 33853 rad_a2b_device.cc:649] Recevied event callback: RAD-A2B AB0154 Warning: The device was disconnected.
I0924 14:47:49.072597 36500 rad_a2b_device.cc:649] Recevied event callback: RAD-A2B AB0154 Warning: The device was disconnected.

Audio Sample during test. Disconnect of A2B bus happens around 35 second mark.
rad_a2b_01.pcm_audio.wav.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant