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

Sometime NRSerialPort.connect() never returns after device was rebooted #221

Open
gillesB opened this issue Mar 25, 2022 · 0 comments
Open

Comments

@gillesB
Copy link

gillesB commented Mar 25, 2022

Hello,

I am maintaining an automated test environment, which tests devices, which are using PEI as their serial interface.
One of the tests sends an AT-command to reboot the device and measures the time till it is ready for usage.

With nrjavaserial 5.2.1 on (X)Ubuntu 20.04 64-bit and Java 17 (Corretto 17.0.2.8.1) this test fails about every 100th time (it seems to be every 73, sometimes 74 time).
The problem is that in these cases NRSerialPort.connect() never returns, after the device was rebooted.

Because the behaviour did not occur on our older setup (Windows 7 32-bit and Java 7) with nrjavaserial 3.15.0, I downgraded the newer setup from 5.2.1 to 3.15.0.

This now looks better from 1200 reboot tests only one got stuck. (I will update the numbers after the weekend.)

Update:

  • I setup the same use case with nrjavaserial 5.2.1 on Windows 10 64-bit. About 370 reboot tests were successfully run. No failures, therefore I assume, that the issue is Linux-specific.

Update after weekend:

  • The Linux-3.15.0 setup and the Windows-5.2.1 setup both have above 4000 reboot-tests and no failures.
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