-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
problems with communicating kvh gyro #8
Comments
Do you have a udev rule installed which creates that symlink in /dev/clearpath? If not, you should add one or point the driver at the actual port where the KVH is connected.
…Sent from my pocket computer
On May 11, 2018, at 8:26 PM, frodyteen ***@***.***> wrote:
I am working with ubuntu 14.04 and indigo on the Husky Robot. I am trying to communicate with the kvh dsp3000 gyro. Downloaded the packages from the master branch. compiles and builds successfully. Now, after I plugged in the gyro to my computer, I checked that there is /dev/clearpath/fog path on my system, then I ran roslaunch kvh dsp3000.launch and it gave me the following error.
~/catkin_ws$ roslaunch kvh dsp3000.launch
... logging to /home/administrator/.ros/log/3a32e428-5579-11e8-b31d-c986401ef8c9/roslaunch-dhcp-59-208-2780.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://dhcp-59-208:55395/
SUMMARY
========
PARAMETERS
* /dsp3000/port: /dev/clearpath/fog
* /rosdistro: indigo
* /rosversion: 1.11.13
NODES
/
dsp3000 (kvh/dsp3000)
ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[dsp3000-1]: started with pid [2798]
[ERROR] [1526084024.469802151]: buffer filled without end of line being found (in SerialPort::readLine)
I was wondering if you know anything about this error?
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm not too familiar with udev, but I will look more into it.
Do you mean change the launch file's |
Yup! So if the KVH is connected to ttyUSB2, you would point the launch file at that port. However, you'll probably have to grant permission to access that port. You can do so temporarily using:
Sudo chmod 666 /dev/ttyUSB2
Eventually you'll want to use a udev rule to scan for a unique attribute of your USB to serial adapter (say, product ID and manufacturer ID) and then create a symlink with full permissions. Then you can point your launch file at that symlink.
… On May 11, 2018, at 8:53 PM, frodyteen ***@***.***> wrote:
I'm not too familiar with udev, and I will look more into it.
When you say
point the driver at the actual port where the KVH is connected.
Do you mean change the launch file's value="$(arg port) attribute to the device path of the kvh usb?
In my case, when I plug in kvh, and i do ls /dev/ , then a new path shows up:/dev/ttyUSB2.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@jeff-o wrote:
For serial ports, adding your (Linux) user to the |
True! Though I do prefer using symlinks because a particular USB device won't always connect to the same "ttyUSB#" port every time the computer boots up. A symlink guarantees the device is always accessible at a known port.
…Sent from my pocket computer
On May 12, 2018, at 4:24 AM, G.A. vd. Hoorn ***@***.***> wrote:
@jeff-o wrote:
Eventually you'll want to use a udev rule to scan for a unique attribute of your USB to serial adapter (say, product ID and manufacturer ID) and then create a symlink with full permissions.
For serial ports, adding your (Linux) user to the dialout group typically suffices.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
So, I tried to change the launch file Also, I think there is already an existing clearpath rule under
I checked the ttyUSB1 info to make sure it matches with the clearpath rule, shown below:
Do you guys have any more suggestions on what I should do? |
Can you access the device directly using picocom?
sudo picocom /dev/ttyUSB1
… On May 14, 2018, at 9:30 PM, frodyteen ***@***.***> wrote:
So, I tried to change the launch file value="$(arg port) to value=/dev/ttyUSB1, but I would still get the same error when I run roslaunch kvh dsp3000.
Also, I think there is already an existing clearpath rule under /etc/udev/rules.d shown below:
$: ls /etc/udev/rules.d/
10-microstrain.rules 41-hokuyo.rules 70-persistent-net.rules
41-clearpath.rules 52-ftdi.rules README
Following is the content of the file:
$: cat 41-clearpath.rules
# Recognize our flavoured FTDI cables.
SUBSYSTEM=="tty", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", ATTRS{product}=="Clearpath Robotics /*", MODE="0666", PROGRAM="/bin/echo '%s{product}'", SYMLINK+="clearpath%c{3}"
I checked the ttyUSB1 info to make sure it matches with the clearpath rule, shown below:
:/etc/udev/rules.d$ udevadm info /dev/ttyUSB1
P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
S: clearpath/fog
S: ftdi_FTVIQRP1
S: serial/by-id/usb-FTDI_Clearpath_Robotics__fog_FTVIQRP1-if00-port0
S: serial/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-port0
E: DEVLINKS=/dev/clearpath/fog /dev/ftdi_FTVIQRP1 /dev/serial/by-id/usb-FTDI_Clearpath_Robotics__fog_FTVIQRP1-if00-port0 /dev/serial/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-port0
E: DEVNAME=/dev/ttyUSB1
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB1/tty/ttyUSB1
E: ID_BUS=usb
E: ID_MM_CANDIDATE=1
E: ID_MODEL=Clearpath_Robotics__fog
E: ID_MODEL_ENC=Clearpath\x20Robotics\x20\x2ffog
E: ID_MODEL_FROM_DATABASE=FT232 USB-Serial (UART) IC
E: ID_MODEL_ID=6001
E: ID_PATH=pci-0000:00:1a.0-usb-0:1.1:1.0
E: ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_1_1_0
E: ID_REVISION=0600
E: ID_SERIAL=FTDI_Clearpath_Robotics__fog_FTVIQRP1
E: ID_SERIAL_SHORT=FTVIQRP1
E: ID_TYPE=generic
E: ID_USB_DRIVER=ftdi_sio
E: ID_USB_INTERFACES=:ffffff:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=FTDI
E: ID_VENDOR_ENC=FTDI
E: ID_VENDOR_FROM_DATABASE=Future Technology Devices International, Ltd
E: ID_VENDOR_ID=0403
E: MAJOR=188
E: MINOR=1
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=5901287
Do you guys have any more suggestions on what I should do?
Thank you. @jeff-o @gavanderhoorn
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
after terminal reday , it displays random texts and squares continuously, can't even stop with ctrl c or z. |
can you try each of the following
Does any of that work? |
Oh, and to exit from picocom its control-a then control-q.
…Sent from my pocket computer
On May 15, 2018, at 12:48 AM, geoffviola ***@***.***> wrote:
can you try each of the following
sudo picocom -b 38400 /dev/ttyUSB1
picocom -b 38400 /dev/ttyUSB1
picocom -b 38400 /dev/clearpath/fog
Does any of that work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
oaky, so I tried both:
output from /dev/clearpath/fog:
|
OK, so the device is communicating just fine. Something is tripping up the serial communications though. Is it a newer device? Perhaps its data format has changed ever so slightly since the driver was last tested? |
Here is a picture of the gyro, it is a few years old. Can you point to me where I should check for the data format? I'm not sure if this is important, but I notice that when I checked the baud rate of clearpath/fog and ttyUSB1, it gave me 9600, somehow when I did picocom with
|
Maybe dig into the |
Okay, I will look more into it. I realized, even with the error,
|
Are you certain that there isn't something else running on that computer? Check for processes which have the port open like so:
|
ttyUSB1 shows up when I run the |
There may be an innocuous error printed to screen. I remember there being some tricky serial port behavior. |
I am working with ubuntu 14.04 and indigo on the Husky Robot. I am trying to communicate with the kvh dsp3000 gyro. Downloaded the packages from the master branch. compiles and builds successfully. Now, I plugged in the gyro to the robot PC and checked that there is
/dev/clearpath/fog
path on my system, then I ranroslaunch kvh dsp3000.launch
and it gave me the following error.I was wondering if you know anything about this error?
Thank you.
The text was updated successfully, but these errors were encountered: