ed-chemnitz / qmodbus

GNU General Public License v2.0
279 stars 128 forks source link

data splitting #1

Open tobydox opened 10 years ago

tobydox commented 10 years ago

Original report by E.Kalinowski at old bug tracker at SourceForge:

the data from tty device (/dev/ttyUSB0, COM<->USB adapter) will be spitted. example. i send into the serial interface 0xf0 0x3 0x0 0x0 0x0 0x24 0x50 0xf0 (address 240, function code 3) but program splits this message to two parts: 0xf0 0x3 0x0 0x0 0x0 and 0x24 0x50 0xf0 the checksum will be calculated for this two parts, of course wrong, separated. possible the problem is in the receive_msg() function.