We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.1
1.8.1
DUE
Windows 10 x64
Communiction with a CAR ecu that talks modbus. It's working, the problem is that I get malformed requests sometimes
This is my code:
void readModbusRegister() { ecu.readHoldingRegisters(4097, 6); //read 6 registers beginning from offest 4097 if (result == ecu.ku8MBSuccess) //if transmission is good, decode Data { decodeModbusRegister(); } } void decodeModbusRegister() //read word registers and write into data array { for (j = 0; j < 6; j++) { data[j] = ecu.getResponseBuffer(j); } printValues(); //after decoding, print data }
Request is sent for 6 registers.
Its working but sometimes the request packets are malformed:
01 03 10 01 00 06 90 C8 <--- Good request 01 03 10 01 00 06 90 C8 <--- Good request 01 03 10 01 00 06 90 C8 <--- Good request 00 00 00 00 00 00 00 00 01 03 10 01 00 06 90 C8 <--- malformed request
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ModbusMaster version
2.0.1
Arduino IDE version
1.8.1
Arduino Hardware
DUE
Platform Details
Windows 10 x64
Scenario:
Communiction with a CAR ecu that talks modbus. It's working, the problem is that I get malformed requests sometimes
Steps to Reproduce:
This is my code:
Expected Result:
Request is sent for 6 registers.
Actual Result:
Its working but sometimes the request packets are malformed:
The text was updated successfully, but these errors were encountered: