vfs11 VFD and USB001Z usb interface
03 Jun 2015 07:00 #59362
by gandalf
vfs11 VFD and USB001Z usb interface was created by gandalf
Hi,
someone use vfs11 VFD driver and the USB001Z (original?)
I loaded the usb driver using the command
modprobe ftdi_sio vendor=0x0403 product=0xe040
but whene the hal driver is loading I got the error:
ERROR: modbus_rtu_set_serial_mode(0)
Looking into the source (git.linuxcnc.org/gitweb?p=linuxcnc.git;a...a5;hb=refs/heads/2.6) it seems it has problem with the USB interface, I get the same error even if I disconnect the rj45 cable from the VFD.
Someone can share his experience with this configuration?
someone use vfs11 VFD driver and the USB001Z (original?)
I loaded the usb driver using the command
modprobe ftdi_sio vendor=0x0403 product=0xe040
but whene the hal driver is loading I got the error:
ERROR: modbus_rtu_set_serial_mode(0)
Looking into the source (git.linuxcnc.org/gitweb?p=linuxcnc.git;a...a5;hb=refs/heads/2.6) it seems it has problem with the USB interface, I get the same error even if I disconnect the rj45 cable from the VFD.
Someone can share his experience with this configuration?
Please Log in or Create an account to join the conversation.
04 Jun 2015 06:35 #59411
by gandalf
Replied by gandalf on topic vfs11 VFD and USB001Z usb interface
Hi,
I recompiled libmodbus 3.1.2 and I'm using the custom interface on breadboard.
I also setup all debug information and I have continuously the errors below:
ERROR CRC received 0x80 != CRC calculated 0x70A0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><00><00><00><00>
ERROR CRC received 0x0 != CRC calculated 0x71C0
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
<00><02><00><00><80>
ERROR CRC received 0x80 != CRC calculated 0x70A0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><00><00><00><00>
ERROR CRC received 0x0 != CRC calculated 0x71C0
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
<00><02><00><12><E0>
ERROR CRC received 0x12E0 != CRC calculated 0x70A0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><00><00><00><00>
ERROR CRC received 0x0 != CRC calculated 0x71C0
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
<00><00><00><FA><00>
ERROR CRC received 0xFA00 != CRC calculated 0x71C0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><04><02><00><04><FE><00>
ERROR CRC received 0xFE00 != CRC calculated 0x8533
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
Now I'm pretty sure that driver is connected because if I disconnect the cable I get connection timeouts.
Any idea?
I recompiled libmodbus 3.1.2 and I'm using the custom interface on breadboard.
I also setup all debug information and I have continuously the errors below:
ERROR CRC received 0x80 != CRC calculated 0x70A0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><00><00><00><00>
ERROR CRC received 0x0 != CRC calculated 0x71C0
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
<00><02><00><00><80>
ERROR CRC received 0x80 != CRC calculated 0x70A0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><00><00><00><00>
ERROR CRC received 0x0 != CRC calculated 0x71C0
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
<00><02><00><12><E0>
ERROR CRC received 0x12E0 != CRC calculated 0x70A0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><00><00><00><00>
ERROR CRC received 0x0 != CRC calculated 0x71C0
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
<00><00><00><FA><00>
ERROR CRC received 0xFA00 != CRC calculated 0x71C0
vfs11_vfd: read_initial: modbus_read_registers(0x0012): Invalid CRC
write_data: cmd1_reg=0xC440 old cmd1_reg=0x0000
[00][06][FA][00][C4][40][EB][F3]
Waiting for a confirmation...
<00><04><02><00><04><FE><00>
ERROR CRC received 0xFE00 != CRC calculated 0x8533
[00][03][00][12][00][01][25][DE]
Waiting for a confirmation...
Now I'm pretty sure that driver is connected because if I disconnect the cable I get connection timeouts.
Any idea?
Please Log in or Create an account to join the conversation.
04 Jun 2015 08:31 #59414
by andypugh
Replied by andypugh on topic vfs11 VFD and USB001Z usb interface
CRC errors normally mean garbled garbled data (due to signal noise), but actually in this case there are sometimes consistencies in the CRC received and expected but with no match
I don't know anything (literally, I know nothing) about modbus, but this looks like a mis-matche between data packet sizes or bit or byte ordering. It might even be the case that there is more than one way to calculate the CRC.
I don't know anything (literally, I know nothing) about modbus, but this looks like a mis-matche between data packet sizes or bit or byte ordering. It might even be the case that there is more than one way to calculate the CRC.
The following user(s) said Thank You: gandalf
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds