-
Notifications
You must be signed in to change notification settings - Fork 12
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
Expose flow_control paramater from zigpy #52
base: dev
Are you sure you want to change the base?
Conversation
I have not yet tested this myself, as I first wanted to know if anything else is needed here. I am in process of building the z-stack library with hardware flow control, but need something to test with, chicken and egg. I think this exposes everything correctly to zigpy, but I wasn't 100% sure. So this is also a 'verification step' to check if this patch is correct at all. I will report later if this works or not, where the second bit will be hardware. Is my Z-Stack patch broken, did I forget to flip the switch, or is zigpy-cli not doing it for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments. I think this is a good addition, thanks!
If you run zigpy-cli in verbose mode ( |
So first test shows the option to be working as expected.
(yes, I am aware that None wasn't a valid string to begin with, but I wanted to trigger the error/see what happens :p) / # zigpy -vvv radio --baudrate=115200 --flow-control=hardware znp /dev/ttyUSB0 info / # zigpy -vvv radio --baudrate=115200 --flow-control=software znp /dev/ttyUSB0 info
|
0c2c22d
to
872e6b3
Compare
I think this is more explicit. There's various option, but the only accepted flag is passed. No room for ambiguity. Upstream does something similar as well anyway. |
|
Sure, but this is also what users potentially expect/look for? Eg z2mqtt talks only about rtscts, but zha uses hw/sw. I think this simply one of those QoL things ...
|
They can always run |
While I generally agree with you; I think here it does make sense to alias the values, to go with the common namings. Which is what zigpy itself even does; rename hardware to rtscs. However, you are the boss; so I'll drop the aliases. |
Certain boards (such as the Sonoff Zigbee 3.0 USB Dongle Plus P) have a hardware switch that allows for turning on hardware flow control (given the correct firmware is flashed). This requires of course that zigpy-cli also allows for setting this flag to be able to communicate with the dongle. Zigpy and zigpy-znp already support hardware flow control fully. No wit is time that zigpy-cli also offers this option. Signed-off-by: Olliver Schinagl <[email protected]>
Certain boards (such as the Sonoff Zigbee 3.0 USB Dongle Plus P) have a hardware switch that allows for turning on hardware flow control (given the correct firmware is flashed). This requires of course that zigpy-cli also allows for setting this flag to be able to communicate with the dongle.
Zigpy and zigpy-znp already support hardware flow control fully. No wit is time that zigpy-cli also offers this option.