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

Using serial communication #612

Open
tomuGo opened this issue Sep 17, 2023 · 1 comment
Open

Using serial communication #612

tomuGo opened this issue Sep 17, 2023 · 1 comment

Comments

@tomuGo
Copy link

tomuGo commented Sep 17, 2023

Our project used TCP communication before, and we have implemented LengthFieldBasedFrameDecoder and MessageToByteEncoder to parse and send data. But now we need to use serial communication, but we still want to use the code of LengthFieldBasedFrameDecoder and MessageToByteEncoder. is there any solution? thanks

@fishjimi
Copy link

fishjimi commented Feb 7, 2024

Im going do USB communication , after research the code , I think DotNetty is abstract enough.

bootstrap
    .Group(group)
    /* Maybe you can try to implement your own SerialSocketChannel, and I need to implement my UsbSocketChannel */
    .Channel<TcpSocketChannel>() 
    .....
    .Handler(new ActionChannelInitializer<ISocketChannel>(channel =>
    {
        ...
    }));

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