I have gateway with node-red installed
and i need to make a flow that should send a HEX data frame to a sensor via RS485
this is the frame i should send to the sensor,
If the gateway has RS485 ports then you should(?) be able to identify the ports using the modbus node I suggested. I think it would be difficult to configure the communications using a serial node.on your first project. Use a Modbus-Read node with Function Code 3 to read from your sensor. You will need to know serial communication settings for your sensor (Baud rate, stop bits etc)
Hi,
To write you can start taking inspiration from the attached code, clearly you have to adjust the configurations of your serial port and be sure of the hardware wiring (A-B).
Are you sure that to query the tool you only have to send the CRC?
To simplify your work, also try to see if it is possible to configure your instrument for the continuous sending of the data string without having to request it via message.