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);
	 Serial.print(sendText, HEX);
	 Serial0.print(sendText, HEX);
	 digitalWrite(pin_direction_RX_TX, LOW);