zigpy-znp icon indicating copy to clipboard operation
zigpy-znp copied to clipboard

Remote serial via tcpip

Open badzz opened this issue 2 years ago • 1 comments

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 avatar Jul 01 '22 07:07 badzz

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

Hedda avatar Aug 02 '22 15:08 Hedda

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 avatar Aug 31 '22 18:08 puddly

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.

MattWestb avatar Aug 31 '22 18:08 MattWestb