Ticket #77 (closed defect: fixed)

Opened 4 years ago

Last modified 18 months ago

Devices: Declaration to Cambridge 302 fails

Reported by: rob@… Owned by: scottp@…
Priority: high Milestone:
Component: Other Version: 5.0.9 Beta
Keywords: Cc:

Description

Task Declaration from XCSoar to the Cambridge 302 fails. (XCSoar 5.1.6)
I ran a trace on the com port activity running Cambridge's software talking to
the 302 and have attached the requests/responses. I've also attached a
relevant part of Cambridge's documentation which describes the data format for
task declaration (available in full at  http://www.cambridge-
aero.com/manuals/dataport_300_sv517_rev21.pdf)



COM PORT TRACE: DECLARING TASK to 302 USING CAMBRIDGE SOFTWARE:
(this task is 6 waypoints, starting and ending at Blairstown)
Port opened by process "3UTPC256.exe" (PID: 3020)

Request: 2/19/2008 12:08:30 AM.12164 (+34.5462 seconds)

03 .

Answer: 2/19/2008 12:08:30 AM.18164 (+0.0601 seconds)

0D 0A 0A 43 6F 6D 6D 61 6E 64 20 50 6F 72 74 0D ...Command Port.
0A 0A 63 6D 64 3E ..cmd>

Request: 2/19/2008 12:08:30 AM.18164 (+0.0000 seconds)

03 .

Answer: 2/19/2008 12:08:30 AM.25164 (+0.0701 seconds)

0D 0A 0A 43 6F 6D 6D 61 6E 64 20 50 6F 72 74 0D ...Command Port.
0A 0A 63 6D 64 3E ..cmd>

Request: 2/19/2008 12:08:30 AM.25164 (+0.0000 seconds)

64 6F 77 20 31 0D dow 1.

Answer: 2/19/2008 12:08:30 AM.32264 (+0.0701 seconds)

64 6F 77 20 31 0D 0A 0A 44 6F 77 6E 6C 6F 61 64 dow 1...Download
20 50 6F 72 74 0D 0A 0A 64 6E 3E Port...dn>

Request: 2/19/2008 12:08:31 AM.41264 (+0.0901 seconds)

64 2C 31 32 38 2C 34 30 35 38 2E 33 30 30 30 4E d,128,4058.3000N
2C 30 37 34 35 39 2E 39 30 30 30 57 2C 42 6C 61 ,07459.9000W,Bla
69 72 73 74 6F 77 6E 20 20 2C 30 2C 7E 32 37 37 irstown ,0,~277
35 0D 5.

Answer: 2/19/2008 12:08:31 AM.46264 (+0.0501 seconds)

09 16 39 0D 0A 0A 64 6E 3E ..9...dn>

Request: 2/19/2008 12:08:31 AM.54264 (+0.0801 seconds)

64 2C 31 32 39 2C 34 30 35 30 2E 37 30 30 30 4E d,129,4050.7000N
2C 30 37 35 33 38 2E 32 30 30 30 57 2C 42 65 6C ,07538.2000W,Bel
74 7A 76 69 6C 6C 65 20 20 2C 30 2C 7E 32 37 35 tzville ,0,~275
35 0D 5.

Answer: 2/19/2008 12:08:31 AM.60264 (+0.0601 seconds)

09 0E 39 0D 0A 0A 64 6E 3E ..9...dn>

Request: 2/19/2008 12:08:31 AM.68264 (+0.0801 seconds)

64 2C 31 33 30 2C 34 30 33 30 2E 32 30 30 30 4E d,130,4030.2000N
2C 30 37 35 34 37 2E 32 33 33 33 57 2C 4B 75 74 ,07547.2333W,Kut
7A 74 6F 77 6E 20 20 20 20 2C 30 2C 7E 32 36 34 ztown ,0,~264
36 0D 6.

Answer: 2/19/2008 12:08:31 AM.74264 (+0.0601 seconds)

09 00 39 0D 0A 0A 64 6E 3E ..9...dn>

Request: 2/19/2008 12:08:31 AM.82264 (+0.0801 seconds)

64 2C 31 33 31 2C 34 30 32 30 2E 31 31 36 36 4E d,131,4020.1166N
2C 30 37 35 31 34 2E 36 31 36 36 57 2C 50 47 43 ,07514.6166W,PGC
20 20 20 20 20 20 20 20 20 2C 30 2C 7E 32 31 35 ,0,~215
32 0D 2.

Answer: 2/19/2008 12:08:31 AM.87264 (+0.0501 seconds)

09 46 39 0D 0A 0A 64 6E 3E .F9...dn>

Request: 2/19/2008 12:08:31 AM.96264 (+0.0901 seconds)

64 2C 31 33 32 2C 34 30 32 39 2E 30 35 30 30 4E d,132,4029.0500N
2C 30 37 35 30 35 2E 39 38 33 33 57 2C 56 61 6E ,07505.9833W,Van
20 53 61 6E 74 20 20 20 20 2C 30 2C 7E 32 35 31 Sant ,0,~251
30 0D 0.

Answer: 2/19/2008 12:08:31 AM.01364 (+0.0501 seconds)

09 68 39 0D 0A 0A 64 6E 3E .h9...dn>

Request: 2/19/2008 12:08:31 AM.09364 (+0.0801 seconds)

64 2C 31 33 33 2C 34 30 35 38 2E 33 30 30 30 4E d,133,4058.3000N
2C 30 37 34 35 39 2E 39 30 30 30 57 2C 42 6C 61 ,07459.9000W,Bla
69 72 73 74 6F 77 6E 20 20 2C 30 2C 7E 32 37 37 irstown ,0,~277
31 0D 1.

Answer: 2/19/2008 12:08:31 AM.14364 (+0.0501 seconds)

09 18 39 0D 0A 0A 64 6E 3E ..9...dn>

Request: 2/19/2008 12:08:31 AM.14364 (+0.0000 seconds)

64 2C 32 35 35 2C 7E 33 30 30 0D 64 2C 32 35 35 d,255,~300.d,255
2C 7E 33 30 30 0D ,~300.

Answer: 2/19/2008 12:08:32 AM.34464 (+0.1802 seconds)

09 1B 39 0D 0A 0A 64 6E 3E ..9...dn>

Request: 2/19/2008 12:08:32 AM.34464 (+0.0000 seconds)

03 .

Answer: 2/19/2008 12:08:33 AM.40464 (+0.0601 seconds)

0D 0A 0A 43 6F 6D 6D 61 6E 64 20 50 6F 72 74 0D ...Command Port.
0A 0A 63 6D 64 3E ..cmd>

Port closed



Cambridge Documentation excerpt - declaring task to the 302:

  1. DOWNLOAD MODE

When this mode is entered, the words "Download Port" (followed by CRLF) are
transmitted. This is followed by the Download Port prompt. To exit this mode,
type Ctrl-C.
To enter Download Port mode from the Command Port, the user issues the DOWNLOAD
command, which may take an argument:
DOW 0 (or DOW with no argument) enables echoing
DOW 1 disables echoing
Note: When using this mode at baud rates of 19200 and higher, use of the
echoing feature is recommended.
In Download mode, the 302 accepts data from the terminal device. Information
is downloaded line-by-line (i.e. data followed by a CR, followed by a new
prompt). The user should wait for the new prompt before sending the next line.
The type of information being downloaded is called the "message type" and is
identified by the first character of the line (the "message identifier"). The
message identifier is an alphabetic character and may be in upper or lower
case. Messages consist of displayable ASCII characters, and fields within a
message are delimited by commas.
Here is a summary of the messages:

Identifier Type


C Waypoint
D Declaration
G Polar
O Pilot
A detailed description of each message follows.

....................

DOWNLOAD MESSAGE D: DECLARATION
Message format:
A: D,ord+128,latitude,longitude,NAME,Elevation (Enters a turnpoint)
B: D,255 (Saves the declaration)
Here are the rules:

  1. Declaring a task is a two step process. First, use format A above to

enter the individual turnpoints. Second, use format B above to save the
declaration (Declare the Task)

  1. The Turnpoints must be entered in order starting with 128 (128 is ordinal

0).

  1. The task is not declared until format B is sent.
  2. Latitude is always ten characters: DDMM.MMMMH, where H is 'N' or 'S',

and must be in upper case.

  1. Longitude is always eleven characters: DDDMM.MMMMH, where H is 'E' or

'W', and must be in upper case.

  1. Name is up to 12 characters and can consist of any displayable

characters. If Name is less than 12 characters it is padded with spaces.

  1. Elevation is optional. If entered the units are meters. Elevation is not

part of the declaration, it used for 303 navigational purposes only.
Example Declaration using the D Message:
D,128,4404.8000N,07200.5000W,Dean Memorl
D,129,4411.7000N,07145.0000W,Franconia
D,130,4310.7000N,07303.3000W,Manchester
D,131,4415.5000N,07122.5000W,Mt Wash Hotl
D,132,4404.8000N,07200.5000W,Dean Memorl
D 255

Change History

comment:1 Changed 2 years ago by Turbo

  • Summary changed from Declaration to Cambridge 302 fails to Devices: Declaration to Cambridge 302 fails

comment:2 Changed 18 months ago by RobD

  • Status changed from new to closed
  • Resolution set to fixed

This was fixed in 5.2.4.

Note: See TracTickets for help on using tickets.