by albertosatan » Tue Sep 08, 2009 5:07 pm
by albertosatan
Tue Sep 08, 2009 5:07 pm
Hi all,
I'm using a USB2Dynamixel unit to connect the PC to the dynamixel bus. I'm a Linux user and initialy I get a speed of 60 (reads/second) with the ftdi_sio linux driver, half the speed that I get throught the toss mode of de CM-5.
After some inquiries I discover that the latency parameter of the ftdi_sio driver should be changed from the original value (16) to 2. In Linux you can consult the value of your driver doing,
cat /sys/bus/usb-serial/drivers/ftdi_sio/ttyUSB0/latency_timer
changing the ttyUSB0 by the ttyUSB that you use. And you can reprogram this value doing as root,
echo "2" > /sys/bus/usb-serial/drivers/ftdi_sio/ttyUSB0/latency_timer
This way I can get up to 480 reads/second!!! Reprogramming the latency to 1 is possible obtaining a better performance, but sometimes packets get corrupted.
Bests,
Alberto.
Hi all,
I'm using a USB2Dynamixel unit to connect the PC to the dynamixel bus. I'm a Linux user and initialy I get a speed of 60 (reads/second) with the ftdi_sio linux driver, half the speed that I get throught the toss mode of de CM-5.
After some inquiries I discover that the latency parameter of the ftdi_sio driver should be changed from the original value (16) to 2. In Linux you can consult the value of your driver doing,
cat /sys/bus/usb-serial/drivers/ftdi_sio/ttyUSB0/latency_timer
changing the ttyUSB0 by the ttyUSB that you use. And you can reprogram this value doing as root,
echo "2" > /sys/bus/usb-serial/drivers/ftdi_sio/ttyUSB0/latency_timer
This way I can get up to 480 reads/second!!! Reprogramming the latency to 1 is possible obtaining a better performance, but sometimes packets get corrupted.
Bests,
Alberto.