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

How do I read from ttyCH343USB0? #26

Open
UltraSBe opened this issue Nov 8, 2023 · 1 comment
Open

How do I read from ttyCH343USB0? #26

UltraSBe opened this issue Nov 8, 2023 · 1 comment

Comments

@UltraSBe
Copy link

UltraSBe commented Nov 8, 2023

Hi,

I added the driver to my embedded linux device and tried to communicate with a CH9101 chip.

Setting up the communication and sending data to the CH9101 chip (either via echo in command line or via write call in c++ code) works fine.

But reading doesn't work at all. I tried different methods (e.g. cat on the tty device, read call in c++). The CH9101 device communication works fine out of the box with windows.

I locally added multiple debug prints to this driver: In the transfer buffers the correct data can be read but it is not written to ttyCH343USB0.

Is there a code example on how to read the data or some sort of tutorial/explanation available.

Thanks :)

@WCHSoftGroup
Copy link
Owner

Hello, you can try this demo:
https://github.com/WCHSoftGroup/tty_uart

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