paparazzi-devel
[Top][All Lists]
Advanced

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

AW: [Paparazzi-devel] Xbee


From: address@hidden
Subject: AW: [Paparazzi-devel] Xbee
Date: Tue, 16 Mar 2010 15:02:02 +0000 (GMT)

Hi Jesus,

Check the following;
GCS needs to know in which transport protocol to 'talk'..
In the GCS Session datalink field, I use this line to communicate via Xbee:
/usr/share/paparazzi/sw/ground_segment/tmtc/link  -d /dev/ttyUSB0 -transport 
xbee -s 57600

(Notice the -transport and the -s flags.)

While the line for Serial flight looks like this:
/usr/share/paparazzi/sw/ground_segment/tmtc/link  -d /dev/ttyUSB0



Also make sure you have defined the following in the airframe.xml file (From 
the Wiki 
http://paparazzi.enac.fr/wiki/Airframe_Configuration#Configuring_The_Maxstream_API_Protocol
);


(Altough it could work without the first defined in 'misc', I'm not sure)

File: conf/airframes/funjet1.xml

 <section name="MISC">
    ...
    <define name="XBEE_INIT" value="\"ATPL2\rATRN1\rATTT80\r\""/>
<!--    <define name="NO_XBEE_API_INIT" value="TRUE"/> -->
    ...
 </section>

Also use this
File: conf/airframes/funjet1.xml

 
 <section name="DATALINK" prefix="DATALINK_">
    <define name="DEVICE_TYPE" value="XBEE"/>
    <define name="DEVICE_ADDRESS" value="...."/>
  </section>


Hope this solves your issue.

Regards,

Nicola


----Ursprüngliche Nachricht----
Von: address@hidden
Datum: 15.03.2010 23:35
An: <address@hidden>
Betreff: [Paparazzi-devel] Xbee

Hello:
  All my compiling problems are solved :) But, now I have a problem with the
modems. I´ve configurated the modem, with 9600bauds, one as the at
coordinator and the other as the at end device. And in the ariframe code I´m
using this:
#XBEE_MODEM
ap.CFLAGS += -DDOWNLINK -DUSE_UART1 -DDOWNLINK_TRANSPORT=XBeeTransport
-DXBEE_UART=Uart1 -DDATALINK=XBEE -DUART1_BAUD=B9600
ap.srcs += downlink.c $(SRC_ARCH)/uart_hw.c datalink.c xbee.c

I´m using xbee pro series2 of 2,4ghz. And when I start the CGS i use flight
usb-serial 9600 what do you think what would be happening?
  Thanks
  Jesús
_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel








reply via email to

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