Skip to content

Help configure waveshare modbus CTS_602 hmi #99

Answered by veista
Martin21186 asked this question in Q&A
Discussion options

You must be logged in to vote

The waveshare device you have might not be a "bridge" it might only be a repeater.

A bridge translates modbus RTU messages (rs485 in this case) to Modbus TCP and vice versa. These are two different protocols which the device should bridge.

If you only have a repeater (I do not know) your waveshare device will send Modbus RTU messages over TCP. In this case you have to edit the code to support this.

Easier if you edit the config_flow.py file:

Replace line: self.data.update({"com_type": "tcp"})

With: self.data.update({"com_type": "rtuovertcp"})

This way you can receive updates without modifying the file every time.

Replies: 4 comments 21 replies

Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
18 replies
@Martin21186
Comment options

@veista
Comment options

@Martin21186
Comment options

@veista
Comment options

Answer selected by veista
@veista
Comment options

@Martin21186
Comment options

@veista
Comment options

@veista
Comment options

Comment options

You must be logged in to vote
3 replies
@Martin21186
Comment options

@samupa
Comment options

@veista
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants