Home› Programming
Discussion
Back to discussions page
newuhe
Posts: 2 Recruit
gripper connected to my pc but can't communicate using modbus rtu protocal |
633 views
|
Answered | |
/ Most recent by carlosjoserg
in Programming
|
3 comments |

in Programming
my pc system is ubuntu14.04, ros version is indigo, and I used robotiq package to control my gripper using this command
I don't understand why it happens, I check my usb port with
Can anybody help me figure the issuem, I'm really confused.
AttributeError: 'ModbusIOException' object has no attribute 'getRegister'</code>rosrun robotiq_c_model_control CModelRtuNode.py /dev/ttyUSB0</pre><div>however I received <br><pre class="CodeBlock"><code>I checked and found the issue is caused by this line of comModbusRtu.py in /home/username/catkin_ws/src/robotiq/robotiq_modbus_rtu/
response = self.client.read_holding_registers(0x07D0, numRegs, unit=0x0009)this line throws 'ModbusIOExcption'.
I don't understand why it happens, I check my usb port with
dmesg | grep tty & lsusband get
[2483608.973947] usb 1-13: FTDI USB Serial Device converter now attached to ttyUSB0
Bus 001 Device 005: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)and the LED in gripper is always red, however when I connect the RS485 to usb cable of gripper to ur robot controller, the LED turns blue and I can control it using polyscope.
Can anybody help me figure the issuem, I'm really confused.
Saw your post on github as well.. did you make sure you have write access to the USB port?
You can do it temporarily with something like:
And you can add permanently with: