RevPi Connect SE and Modbus RTU
Posted: 07 Sep 2023, 16:24
Hello,
I'm trying to connect a weather station to my RevPi Connect SE via Modbus RTU.
I'm a bit confused when following this guide:
https://revolutionpi.com/tutorials/modb ... rtu-master
On the picture in this, there is a Revpi Core. Do I still need to add the virtual device on the RevPi Connect? (As it have a connection built in for rs485? )
I've tried to add it like in the documentation, opened extended data and added:
Slave addr. 1, read holding register, register address 40001, quantity 40, interval 1000, device value Input_Word_1
Here is the output from piTest -d:
piTest -d
Found 2 devices:
Address: 0 module type: 105 (0x69) RevPi Connect V1.0
Module is present
input offset: 0 length: 6
output offset: 6 length: 5
Address: 64 module type: 24580 (0x6004) ModbusRTU Master Adapter V0.0
Module is present
input offset: 11 length: 101
output offset: 112 length: 73
And here is the output from piTest -1 -q- r Input_Word_1:
piTest -1 -q -r Input_Word_1
0
It doesn't look quite right?
Also, I would rather use Node-RED and the node-red-contrib-modbus node to collect my Modbus data. Should I do anything with regards to activation of Modbus Master in services on the RevPi web page and in Pictory then, or should all those settings be disabled when using Node-RED directly?
- frodes-bre
I'm trying to connect a weather station to my RevPi Connect SE via Modbus RTU.
I'm a bit confused when following this guide:
https://revolutionpi.com/tutorials/modb ... rtu-master
On the picture in this, there is a Revpi Core. Do I still need to add the virtual device on the RevPi Connect? (As it have a connection built in for rs485? )
I've tried to add it like in the documentation, opened extended data and added:
Slave addr. 1, read holding register, register address 40001, quantity 40, interval 1000, device value Input_Word_1
Here is the output from piTest -d:
piTest -d
Found 2 devices:
Address: 0 module type: 105 (0x69) RevPi Connect V1.0
Module is present
input offset: 0 length: 6
output offset: 6 length: 5
Address: 64 module type: 24580 (0x6004) ModbusRTU Master Adapter V0.0
Module is present
input offset: 11 length: 101
output offset: 112 length: 73
And here is the output from piTest -1 -q- r Input_Word_1:
piTest -1 -q -r Input_Word_1
0
It doesn't look quite right?
Also, I would rather use Node-RED and the node-red-contrib-modbus node to collect my Modbus data. Should I do anything with regards to activation of Modbus Master in services on the RevPi web page and in Pictory then, or should all those settings be disabled when using Node-RED directly?
- frodes-bre