paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] problem connecting GCS via serial to Tiny v/2.11


From: Árni Þorvaldsson
Subject: Re: [Paparazzi-devel] problem connecting GCS via serial to Tiny v/2.11
Date: Mon, 18 Jun 2012 16:58:06 +0000

Hi Felix

I already tried restarting the link after I plugged in the cable and and it 
seems like the link is running. If I plug the cable first and then start the 
session I don't get any errors.

Run '/home/mav/paparazzi/sw/ground_segment/tmtc/link  -d /dev/ttyUSB0'
Run '/home/mav/paparazzi/sw/ground_segment/tmtc/server '
Run '/home/mav/paparazzi/sw/ground_segment/cockpit/gcs '

seems to be working but still the CGS is blank.

Connections are
GND to GND,
RX to TX
and TX to RX

regards Arni
________________________________
Frá: address@hidden address@hidden fyrir hönd Felix Ruess address@hidden
Sent: 18. júní 2012 16:46
To: address@hidden
Efni: Re: [Paparazzi-devel] problem connecting GCS via serial to Tiny v/2.11

Hi Arni,

so the link is running? In what you previously posted you started the session 
(including link) _before_ you plugged the usb. Of course then link didn't start 
since it can't find the usb device (not plugged yet).
So first plug usb, then start the session or simply restart the link once you 
plugged it in..
Also make sure your serial cable is plugged correctly in your tiny (same as if 
you would connect a XBee).

Cheers, Felix

On Mon, Jun 18, 2012 at 6:39 PM, Árni Þorvaldsson 
<address@hidden<mailto:address@hidden>> wrote:
Hi  Felix
I set the baudrate on the airframe file to 9600 (so the tiny would send at 
9600) and then started the session Flight address@hidden (to set the CGS to 
9600). Thought that would be enaugh.

I am not using xbee's yet, I am only connecting the autopilot with the computer 
throug USB-serial cable.

regards Arni
________________________________
Frá: address@hidden<mailto:address@hidden> 
address@hidden<mailto:address@hidden>] fyrir hönd Felix Ruess 
address@hidden<mailto:address@hidden>]
Sent: 18. júní 2012 16:27
To: address@hidden<mailto:address@hidden>
Efni: Re: [Paparazzi-devel] problem connecting GCS via serial to Tiny v/2.11

Hi,

The baudrate you set on the ground needs to match the baudrate you set in your 
airframe file. So if you start it on the ground with 9600, you have to 
configure it to 9600 on the autopilot as well.
Also your ground xbee already needs to be plugged in when you start the link 
(or you have to (re)start the link once you plugged it in)

http://paparazzi.enac.fr/wiki/Subsystem/telemetry#Set_GCS_baud_rate
http://paparazzi.enac.fr/wiki/FAQ#Why_do_I_only_get_a_blank_.28black.29_GCS

Cheers, Felix

On Mon, Jun 18, 2012 at 3:27 PM, Árni Þorvaldsson 
<address@hidden<mailto:address@hidden><mailto:address@hidden<mailto:address@hidden>>>
 wrote:
Hi all

I am trying to connect to the tiny via serial but I am getting blank GCS.

I am using
Airframe: funjet_example.xml
flight plan: basic.xml
Telemetry: default.xml

Uploading to the board works fine an then I launch
Session Flight address@hidden
get the error
Failure("Error opening modem serial device : fd < 0 (/dev/ttyUSB0)")

I get blank CGS and then plug in the serial to USB using PPZUAV FTDI Utility 
board V1.0
but nothing happens.

I ran sudo|dmesg and got

253220.816059] usb 5-1: USB disconnect, address 13
[253220.816372] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now 
disconnected from ttyUSB0
[253220.816400] ftdi_sio 5-1:1.0: device disconnected
[253245.416020] usb 5-1: new full speed USB device using uhci_hcd and address 14
[253245.618193] usb 5-1: configuration #1 chosen from 1 choice
[253245.626084] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[253245.626140] usb 5-1: Detected FT232RL
[253245.626145] usb 5-1: Number of endpoints 2
[253245.626149] usb 5-1: Endpoint 1 MaxPacketSize 64
[253245.626154] usb 5-1: Endpoint 2 MaxPacketSize 64
[253245.626157] usb 5-1: Setting MaxPacketSize 64
[253245.627225] usb 5-1: FTDI USB Serial Device converter now attached to 
ttyUSB0
[253272.400063] usb 5-1: USB disconnect, address 14
[253272.400312] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now 
disconnected from ttyUSB0
[253272.400344] ftdi_sio 5-1:1.0: device disconnected
[253436.888026] usb 5-1: new full speed USB device using uhci_hcd and address 15
[253437.086607] usb 5-1: configuration #1 chosen from 1 choice
[253437.094533] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[253437.094584] usb 5-1: Detected FT232RL
[253437.094589] usb 5-1: Number of endpoints 2
[253437.094593] usb 5-1: Endpoint 1 MaxPacketSize 64
[253437.094597] usb 5-1: Endpoint 2 MaxPacketSize 64
[253437.094601] usb 5-1: Setting MaxPacketSize 64
[253437.095646] usb 5-1: FTDI USB Serial Device converter now attached to 
ttyUSB0

I have also tried to set the baudrate in airframe to 9600

 <!-- Communication -->
  <subsystem name="telemetry" type="transparent_usb"/>
  <configure name="MODEM_BAUD"    value="B9600"/>

Is there anything I am missing?

regards Arni



_______________________________________________
Paparazzi-devel mailing list
address@hidden<mailto:address@hidden><mailto:address@hidden<mailto:address@hidden>>
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden<mailto:address@hidden>
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]