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

Missing 1.5 stop bits #48

Open
reconbot opened this issue Sep 23, 2018 · 7 comments
Open

Missing 1.5 stop bits #48

reconbot opened this issue Sep 23, 2018 · 7 comments

Comments

@reconbot
Copy link
Contributor

This will change the data type of stop from an octet to something else, but this is a fairly common
(although not as common as 1 or 2) setting with hardware devices.

https://electronics.stackexchange.com/questions/78788/what-is-the-meaning-of-half-bit-in-this-context

@reillyeon
Copy link
Collaborator

How is support for 1.5 stop bits handled in cross-platform software? It appears that this mode is only supported in the POSIX API for devices operating with 5 data bits. It doesn't clear from the Windows documentation whether there is a similar restriction.

@DarDoro
Copy link

DarDoro commented Jul 22, 2021

https://docs.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-dcb
ONE5STOPBITS =1.5 without any further restrictions.

For the receving party declared as 1 stop bit it wiil be looking like slight delay between bytes.
But for writing 2 stop will be needed or performing write byte by byte to simulate slight delay.

How is support for 1.5 stop bits handled in cross-platform software?

As a case corner : 1, 2, 15 ?

@reillyeon
Copy link
Collaborator

Is this actually used in practice? On Windows it looks like it is only supported when using 5 data bits, a similarly unusual configuration. Can you point at any hardware out there that requires it?

@DarDoro
Copy link

DarDoro commented Jul 23, 2021

Can you point at any hardware out there that requires it?

No

This requires zero to minimal effort, as 1,2 already must be converted to native platform enums.
And it was reported by reconbot ...

@reillyeon
Copy link
Collaborator

Writing code is never zero effort and the lack of cross-platform support for this mode makes me very reluctant to specify. If a developer came to me with an example of a device which required this mode then I could look at the ecosystem that device was part of to get a better understanding of how this configuration is managed despite the apparent lack of cross-platform support and that would provide the background I feel I need in order to add this to the specification. Without that I am working in the dark and that tends not to go well.

@larsgk
Copy link
Collaborator

larsgk commented Jul 23, 2021 via email

@reconbot
Copy link
Contributor Author

I ain't fighting for it, but there's a lot of old hardware out there that people need to keep working.

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