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

Delay after sending frame via tty #59

Closed
embeddman opened this issue May 21, 2020 · 4 comments
Closed

Delay after sending frame via tty #59

embeddman opened this issue May 21, 2020 · 4 comments

Comments

@embeddman
Copy link

Hi!
Faced with trouble when sending frames via tty with parity enabled. RTS changes with gpio via sysfs. The solution was in extending delay after sending frame otherwise RTS changes every time on last byte and corrupt it. Maybe delay was calculated not taking into account that parity add extra bit to frame?

@3cky
Copy link
Owner

3cky commented May 21, 2020

Hi @embeddman, сould you provide some info about the hardware you're using?

@embeddman
Copy link
Author

embeddman commented May 22, 2020

Hi @3cky, I'm using imx6ul from NXP. Also I'm tested with AT91SAMA5D36, the same problem.

@3cky
Copy link
Owner

3cky commented May 22, 2020

@embeddman I've pushed some fixes related to the timing calculations, please test.

@embeddman
Copy link
Author

@embeddman I've pushed some fixes related to the timing calculations, please test.

@3cky Now works fine, even more accurate timing than my solution.
rts

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

2 participants