Page 1 of 1

modbus rtu and zuno

Posted: 12 Jun 2019 21:09
by Vitali
Hey. I try to solve the problem by integrating z-wave and modbus RTU (RS-485) last 1-2 months. Does anyone have any experience with this? I'm trying to send a simple command to read or write the register, but it does not work. What I am sending is not recognized correctly. How to send a command to read and write? :( :?:

Code: Select all

 if (varState > 0) {
		 sendText = '01030200017984';
		}
	 else {
		 sendText = '0103020000b844';
		}
	 digitalWrite(pin_direction_RX_TX, HIGH);
	 delay(5);
	 Serial.print(sendText, HEX);
	 Serial0.print(sendText, HEX);
	 delay(5);
	 digitalWrite(pin_direction_RX_TX, LOW);

Re: modbus rtu and zuno

Posted: 30 Oct 2019 20:27
by brunoap
Hello,

I'm looking for information about communications between Z-Wave and Modbus, could you get it to work? Would you mind sharing the information?

Thank you very much and best regards, Bruno

Re: modbus rtu and zuno

Posted: 31 Oct 2019 13:02
by PoltoS
Modbus is based on RS485. Check this https://z-uno.z-wave.me/examples/rs-485/

Z-Uno Shield has a built in RS485 hardware.