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

Help with SDM630-MODBUS and Sonoff Basic #3205

Closed
6 tasks done
hahmann opened this issue Jul 12, 2018 · 3 comments
Closed
6 tasks done

Help with SDM630-MODBUS and Sonoff Basic #3205

hahmann opened this issue Jul 12, 2018 · 3 comments

Comments

@hahmann
Copy link

hahmann commented Jul 12, 2018

Make sure these boxes are checked [x] before submitting your issue - Thank you!

STATUS 0 OUTPUT HERE
22:32:17 CMD: status 0
22:32:17 MQT: stat/irrigation_valve_2/STATUS = {"Status":{"Module":1,"FriendlyName":["irrigation_valve_2"],"Topic":"irrigation_valve_2","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}

I'm trying to connect SDM630-MODBUS to Sonoff Basic, I have the following configuration for gpio:
22:33:52 CMD: gpio
22:33:52 MQT: stat/irrigation_valve_2/RESULT = {"GPIO1":"78 (SDM630 Rx)","GPIO3":"77 (SDM630 Tx)","GPIO4":"0 (None)","GPIO14":"0 (None)"}

But could not find anything on the wiki showing the connection between SDM630 and sonoff serial interface, so not sure I'm missing any hardware to do the RS485 to serial on sonoff.

Really appreciate any help here.

Thanks,
Gabriel.
@Frogmore42
Copy link
Contributor

RS-485 defines the voltage levels, so you absolutely need to have an RS-485 to TTL converter. There are some ways to do some things without one, but they lose the noise immunity of rs-485 and you have to know what you are doing or get lucky to make them work.

@hahmann
Copy link
Author

hahmann commented Jul 16, 2018

Perfect, thank you @Frogmore42 and @Jason2866, I managed to make the connection work using a MAX3486 I had here and did my own adapter with automatic TX/RX, it is working properly and as expected reporting to sonoff-tasmota.

@hahmann hahmann closed this as completed Jul 16, 2018
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