Project

General

Profile

DomotiGa Modbus TCP

Added by takodapache almost 2 years ago

Hello to everyone, excuse English.
I have a problem with the modbus TCP, if I configure the instance 1 with tcp it remains serial, if I configure another instance eg. 2 domodiGa crashes and closes as in the attached picture.
if I'm not clear, please excuse me!

Ps. I'm using linux Ubuntu 64 downloaded from the domotiGa site
Thanks so much!

ITALIANO
Salve a tutti, scusate l'inglese.
ho un problema con il modbus TCP , se configuro l'istanza 1 con tcp lei resta seriale , se configuro un altra istanza eg. 2 domodiGa va in crash e si chiude come nella foto allegata.
se non sono stato chiaro scusatemi!

Ps. Sto usando linux Ubuntu 64 scaricato dal sito di domotiGa

Grazie mille!


Replies (7)

RE: DomotiGa Modbus TCP - Added by rdnzl almost 2 years ago

Hi,

I have looked at your issue, and fixed it I think.
It's committed over the latest branch, so you can simply download and copy over the program files.
Regards.

RE: DomotiGa Modbus TCP - Added by takodapache almost 2 years ago

It works perfectly!!!
Another question in what form should the address be placed?

RE: DomotiGa Modbus TCP - Added by rdnzl almost 2 years ago

The address has two parts before the : is the slave address between 1 and 247 in hex with trailing 0
01-F7 followed by the register (offset) 0-65535 in hex 0-FFFF
Example: "02:FF" is slave 2 register 255.
The Modbus modules contains only very basic support so I hope you can read your device values.

RE: DomotiGa Modbus TCP - Added by takodapache almost 2 years ago

I think it works almost!
Could you help me?
2017/11/01 08:39:52 [Modbus] Slave ID: 01
2017/11/01 08:39:52 [Modbus] Register: 2
2017/11/01 08:39:52 [Modbus] Function: 03
2017/11/01 08:39:52 [Modbus] Address: 1:2
h1. 2017/11/01 08:39:52 [Modbus] Checksum Recv: 0200
2017/11/01 08:39:52 [Modbus] Checksum Calc: 20F0
2017/11/01 08:39:52 [Modbus] ERROR: Invalid Checksum, discarding

RE: DomotiGa Modbus TCP - Added by takodapache almost 2 years ago

2017/11/01 08:56:58 [Modbus] > 01 03 00 02 00 02 65 CB
2017/11/01 08:56:58 [Modbus] ERROR : WriteCommand 'Null object' at 'CModbus.WriteCommand.903'

    (1-7/7)