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

Remote serial via tcpip #156

Closed
Tracked by #1235
badzz opened this issue Jul 1, 2022 · 3 comments
Closed
Tracked by #1235

Remote serial via tcpip #156

badzz opened this issue Jul 1, 2022 · 3 comments

Comments

@badzz
Copy link
Contributor

badzz commented Jul 1, 2022

Hi
I would like to setup something similar to this
https://www.zigbee2mqtt.io/advanced/remote-adapter/connect_to_a_remote_adapter.html#_1-install-ser2net
But I see that we manipulate rts and DTS lines. Will it work or I need to do something more complicated?
Thanks

@badzz badzz changed the title Remone serial via tcpip Remote serial via tcpip Jul 1, 2022
@Hedda
Copy link
Contributor

Hedda commented Aug 2, 2022

FYI, remote connect to ser2net service with socat and works with Home Assistant's ZHA same way as Zigbee2MQTT

https://www.home-assistant.io/integrations/zha

https://www.zigbee2mqtt.io/advanced/remote-adapter/connect_to_a_remote_adapter.html

This type of tunneling + relay generally happens at the operating system level and is usually transparent to the application:

https://linux.die.net/man/8/ser2net

https://linux.die.net/man/1/socat

@puddly
Copy link
Collaborator

puddly commented Aug 31, 2022

RTS and DTS are not supported over TCP. They are only useful for CC2530 and other hardware that connects them to RST so you can ignore them.

@puddly puddly closed this as completed Aug 31, 2022
@MattWestb
Copy link

MattWestb commented Aug 31, 2022

Our hacked tuya TBGW is using hardware flow control over Eth and looks working.
If the hardware handshake is not working i think the NCP is not sending anything then trying communicating with it and we is only piping the raw commands from the UART to the network and the host (bellows) so is the the firmware on the NCP not working OK (Gary cooked) or is Bellows supporting it over sockets.
(I hacked 2 boxes and one is running my IKEA controllers test setup on it and the other i have enabling tuya app for sniffing my tuya devices behavior).

Edit: We is not using UART hardware for boot loader only software commands.

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

4 participants