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

serial port drops characters #13

Open
mithro opened this issue May 19, 2017 · 7 comments
Open

serial port drops characters #13

mithro opened this issue May 19, 2017 · 7 comments

Comments

@mithro
Copy link
Member

mithro commented May 19, 2017

From @CarlFK on March 22, 2016 5:50

When I send characters too fast, most of them get dropped.

I think the problem was described as: there is no flow control.

Seems like there have been more than one work around.

Can this be fixed on the device side?

Copied from original issue: timvideos/HDMI2USB-litex-firmware#219

@mithro
Copy link
Member Author

mithro commented May 19, 2017

I assume you mean on the Opsis board?

@mithro
Copy link
Member Author

mithro commented May 19, 2017

This will be improved (but not totally eliminated) by the FX2 code refactor at timvideos/HDMI2USB-litex-firmware#149

We can't implement hardware flow control as the pins needed are not connected. Software flow control wouldn't fix the problem you are encountering either, as cat wouldn't use it.

@paddatrapper
Copy link

The Debconf video team had this problem on the opsis boards. Our work-around was to send each character slower (using a python script if I recall)

@CarlFK
Copy link

CarlFK commented May 19, 2017

im curious about 2 things.

  1. the 'right' fix is to implement something that can consume the input faster than it is coming in, right?

  2. how does baud rate affect this? is 115200 enforced, or how is that number relevant?

@mithro
Copy link
Member Author

mithro commented May 21, 2017

The best solution at the moment is to use hdmi2usbd as it also solves the problem of having multiple people connected to the serial port.

@CarlFK
Copy link

CarlFK commented May 21, 2017

I understand we have a solution, but, I'd like an answer to my questions so that I have enough understanding to be able to talk intelligently to people who might be interested in working on it.

and I am just curious.

@CarlFK
Copy link

CarlFK commented Mar 24, 2019

man cstream — direct data streams, with bandwidth limiting, FIFO, audio, duplication and extended reporting support.

printf "video_matrix connect pattern encoder\r" | cstream -t 60 -b 1 > /dev/ttyACM0
Connecting pattern to encoder

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

No branches or pull requests

3 participants