jfraire / Device-Modbus

Perl distribution to implement Modbus communications
Artistic License 2.0
8 stars 1 forks source link

default speed breaking up RBPI Tongdy IAQ #5

Closed sparvu closed 8 years ago

sparvu commented 8 years ago

Im not sure I do understand yet but I see the following, if I set in my client the device default speed, 19200 my client almost never succeeds in getting any values from the device, but rather some sporadic errors:

If I set on my client 9600, Im starting to see light:

$VAR1 = bless( {
                 'crc' => 57400,
                 'unit' => 1,
                 'message' => bless( {
                                       'function' => 'Read Input Registers',
                                       'bytes' => 24,
                                       'values' => [
                                                     17360,
                                                     0,
                                                     16585,
                                                     39322,
                                                     16859,
                                                     13107,
                                                     16901,
                                                     39322,
                                                     416,
                                                     63,
                                                     274,
                                                     334
                                                   ],
                                       'code' => 4
                                     }, 'Device::Modbus::Response' )
               }, 'Device::Modbus::RTU::ADU' );
sparvu commented 8 years ago

ok. It seems the device speed was modified a bit earlier to 9600.