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

fix: decouple reading the serialport from handling the data #5737

Merged
merged 2 commits into from
May 3, 2023

Conversation

AlCalzone
Copy link
Member

fixes: #5024

It seems that serialport v10 on Windows behaves differently than on Linux and older serialport versions on Windows - possibly lagging the event loop or something similar. After the upgrade, the state machine was sometimes still in the old state and hasn't progressed yet. This caused some message tests to use the old state and fail / consider the message unsolicited/unexpected.

After delaying the data handling using setImmediate, I can no longer reproduce the issue - so I hope this is actually fixed now.

@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

zwave-js-bot
zwave-js-bot previously approved these changes May 3, 2023
@zwave-js-bot zwave-js-bot enabled auto-merge (squash) May 3, 2023 11:31
@zwave-js-bot zwave-js-bot merged commit 633ad77 into master May 3, 2023
@zwave-js-bot zwave-js-bot deleted the decouple-serialport branch May 3, 2023 11:58
AlCalzone added a commit that referenced this pull request May 3, 2023
### Features
* Implemented a `mock-server` binary to expose a simulated controller via TCP for application testing (#5714)

### Bugfixes
* Several fixes and polishing for `Window Covering CC` (#5735, #5741)
* Fixed a race condition on Windows systems between the serial port and state machine that could cause the communication with the Z-Wave stick to fail (#5737)
* When no other actuator CCs are supported, `Basic CC` is now queried even if not advertised (#5730)
* The daily Entry Lock schedule is now only parsed if any weekday is selected (#5732)
* Support inicoming `Transport Service CCs` with unequal fragment sizes (#5731)
* Do not encapsulate CRC16 or Transport Service in Security S0/S2 (#5731)
* Disconnects of TCP sockets are detected again (#5715)

### Config file changes
* Disable periodic refresh for Shenzhen Neo NAS-PD03Z (#5739)
* Add missing parameter 9 to Logic Group ZDB5100 (#5690)
* Add new parameters 10-13 to Zooz ZEN04 (#5689)
* Force-add Battery CC support for EcoNet Controls EV100 (#5712)

### Changes under the hood
* Fixed the `watch` task on Windows systems
* Add compat flag to disable periodic value refreshes (#5738)
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

Successfully merging this pull request may close these issues.

AeonStick getting error on Windows 11
2 participants