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

modbus: Custom command without CRC #2701

Open
skinkie opened this issue Apr 26, 2024 · 4 comments
Open

modbus: Custom command without CRC #2701

skinkie opened this issue Apr 26, 2024 · 4 comments

Comments

@skinkie
Copy link

skinkie commented Apr 26, 2024

Describe the problem you have/What new integration you would like
I am using a non-modbus RS485 device which has a custom protocol. I would like te reuse the existing modbus integration but with the payload exactly as provided, and parsing the data using a lambda function.

Since disable_crc already exists for receiving messages (ignore_crc would have been a better description) having the ability not to append it does not seam to far fetched. https://github.com/esphome/esphome/blob/dev/esphome/components/modbus/modbus.cpp#L212

Please describe your use case for this integration and alternatives you've tried:
Reimplementing this device using the UART interface seems to be too 'low-level', I would like to have the flow control and message handling from the existing modbus controller code.

An another alternative would be to actually implement this protocol for this range of devices. It works in a similar way as modbus.

Additional context
The device I am trying to interface with is a Depolox RESIDUAL ANALYZER.

@nagyrobi
Copy link
Member

Maybe you could look at the pzem energy meters. One of them is actually modbus, but with a dedicated implementation.

@Nistp
Copy link

Nistp commented May 2, 2024

@skinkie if you could provide me with the RS485 manual, which I can't seem to find on Evoqua's website for some reason, I'd be happy to take a stab at implementing the protocol with UART as a back-end.

@skinkie
Copy link
Author

skinkie commented May 2, 2024

@Nistp at this point we have quite some difficulty to get our device talking at all. It does not even reply with a simple python version.

@Nistp
Copy link

Nistp commented May 3, 2024

@skinkie I'm sorry to hear that :(

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

3 participants