Modbus
hi,
i made projects in tha past, inexperienced in protocoll work except serial.print command feeding data via usb.
here question. i'd connect sensor (and interface sensor not problem) feed engine control unit. engine control unit has following data shown on webpage:
modbus 57600 baud
8n1 format
no hardware handshaking
total 47 bytes per packet
- byte 0 = slave address = 0x01
- byte 1 = command = 0x03 (read holding registers)
- byte 2 = word count = 21 (there 21 word values gauges log)
- bytes 3 44 = actual data
- bytes 45 , 46 = crc (can used data integrity, or can ignored).
can give me hint how implement arduino? :~
i made projects in tha past, inexperienced in protocoll work except serial.print command feeding data via usb.
here question. i'd connect sensor (and interface sensor not problem) feed engine control unit. engine control unit has following data shown on webpage:
modbus 57600 baud
8n1 format
no hardware handshaking
total 47 bytes per packet
- byte 0 = slave address = 0x01
- byte 1 = command = 0x03 (read holding registers)
- byte 2 = word count = 21 (there 21 word values gauges log)
- bytes 3 44 = actual data
- bytes 45 , 46 = crc (can used data integrity, or can ignored).
can give me hint how implement arduino? :~
it appear each time device sends data, sends 47 bytes. so, wait there 47 bytes or more read, read 47 bytes.
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Modbus
arduino
Comments
Post a Comment