Serial Connection problems between Pelican and Atomboard

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Serial Connection problems between Pelican and Atomboard

kjackson
Hi,

I'm just getting started with the Pelican and trying to figure out how to connect to the Atomboard. I'm running ROS on the Atomboard and using the asctec_drivers. The Atomboard is connected to the autopilot (LL serial 0) with the included serial cable (only 2 pins connected, as referenced here: http://asctec-users.986163.n3.nabble.com/Asctec-Pelican-atom-board-connection-tt2503440.html) I try to start polling data using

roslaunch asctec_proc asctec_driver.launch

And get a string of error messages that looks like:
[ERROR] : Timeout: 0 bytes available 3 bytes requested
[ERROR] : Error Reading Packet Header: Resource temporarily unavailable.
[ERROR] : Read (-1):
[ERROR] : Read failed
[...]

so it looks like it's just not able to connect. Is this likely a hardware problem (i.e. cable is bad) or is there some basic step I'm missing? Digging through the archives, it looks similar to http://asctec-users.986163.n3.nabble.com/ros-asctec-drivers-stack-tt3159818.html, but I can't tell if this was ever fully resolved. I tried lowering the update frequency in the launch file, with no luck. I've also tried both included cables, and I'd be surprised if they're both bad.

Also, if I run ROS on a desktop computer and connect to the vehicle over XBee, asctec_drivers works, and the data updates as expected, so it doesn't seem to be a problem with the vehicle or autopilot.

Any advice? Thanks in advance,

-Kim
Reply | Threaded
Open this post in threaded view
|

Re: Serial Connection problems between Pelican and Atomboard

Bill Morris
Administrator
On Fri, 2011-08-26 at 13:10 -0700, kjackson [via asctec-users] wrote:

> Hi,
>
> I'm just getting started with the Pelican and trying to figure out how
> to connect to the Atomboard. I'm running ROS on the Atomboard and
> using the asctec_drivers. The Atomboard is connected to the autopilot
> (LL serial 0) with the included serial cable (only 2 pins connected,
> as referenced here:
> http://asctec-users.986163.n3.nabble.com/Asctec-Pelican-atom-board-connection-tt2503440.html) I try to start polling data using
>
> roslaunch asctec_proc asctec_driver.launch

You can test the serial connection without using ROS by using Minicom or
Kermit.

Bill

Reply | Threaded
Open this post in threaded view
|

Re: Serial Connection problems between Pelican and Atomboard

kjackson
I had tried connecting with kermit, and the connection would just hang.

Did solve the problem though. I'd been trying to interface the Atomboard with the autopilot on one of my Hummingbirds (as I'd lent the Pelican to a labmate for a day for a flight test). I'd assumed that since the autopilot hardware is the same, the connection would be identical, but apparently not. So my Pelican+Atomboard system is now working, but I'd be interested to know why the Atomboard wouldn't connect to the Hummingbird.

Now I'm just receiving the unexpected packet described earlier, but I can just ignore it.

Thanks,

Kim
Reply | Threaded
Open this post in threaded view
|

Re: Serial Connection problems between Pelican and Atomboard

tarek
Did you find a solution to this? I have exactly the same problem. Im seeing this:


[ERROR] [1386385051.038473160]:     Read (-1):
[ERROR] [1386385051.039492008]:   Read failed
[ERROR] [1386385051.140420454]: Timeout: 0 bytes available 3 bytes requested
[ERROR] [1386385051.141040366]:     Error Reading Packet Header: Resource temporarily unavailable
[ERROR] [1386385051.141724743]:     Read (-1):
[ERROR] [1386385051.142390541]:   Read failed
^C[ERROR] [1386385051.239626746]: Timeout: 0 bytes available 3 bytes requested
[ERROR] [1386385051.240248544]:     Error Reading Packet Header: Resource temporarily unavailable
[ERROR] [1386385051.240958132]:     Read (-1):
[ERROR] [1386385051.241683015]:   Read failed


Would really appreciate any help!