[Avila] GW2201 8 port serial card

Mark Kelly mark.kelly at cadre5.com
Thu Dec 20 15:42:58 EST 2007


I can't seem to get this card to work right under linux.

The card is detected fine at bootup:

#dmesg|grep tty

serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
0000:00:01.0: ttyS2 at MMIO 0x48010000 (irq = 28) is a 16550A
0000:00:01.0: ttyS3 at MMIO 0x48010200 (irq = 28) is a 16550A
0000:00:01.0: ttyS4 at MMIO 0x48010400 (irq = 28) is a 16550A
0000:00:01.0: ttyS5 at MMIO 0x48010600 (irq = 28) is a 16550A
0000:00:01.0: ttyS6 at MMIO 0x48010800 (irq = 28) is a 16550A
0000:00:01.0: ttyS7 at MMIO 0x48010a00 (irq = 28) is a 16550A
0000:00:01.0: ttyS8 at MMIO 0x48010c00 (irq = 28) is a 16550A
0000:00:01.0: ttyS9 at MMIO 0x48010e00 (irq = 28) is a 16550A

So I see it at ttyS2 - ttyS9.  Now I have connected a standard NMEA gps
puck to ttyS6 and I'm using setserial to set the port parameters like
this:

#setserial /dev/ttyS6 auto_irq autoconfig

and then I and can use picocom to watch the stream from the puck.  The
stream is 4800 8-N-1 stream and that's what I've set picocom to read.

this is what I see:

0,,17,74,,,23,37,0004,33,000,
$GPGSV,312,25,26,0,11,24,0007,21,000,,16,000,*7DGPGSV,3,3,28,15,000,,09,000,,02,000,,10,000,*73
$GC,204007.5V,,,,,,,207,,*2D
GGA,2040085,,,,,0,00M,0.0,M,,0*5F
$GPGS,1,,,,,,,,,,,,*1E
$MC,204008.,V,,,,,,,207,,*20
GA,204009.5,,,,0,00,,0.0,M,,0004
$GPGSA,,,,,,,,,,,,,*1E
$GP,204009.58,,,,,,,201GGA,204010.,,,,,0,00,,0.0,M,,0051
$GPGSA1,,,,,,,,,,,,*1E
$GC,204010.5V,,,,,,,207,,*2E
GGA,204011.,,,,,0,00,,0.0,M,,0050
$GPGSA1,,,,,,,,,,,,*1E

which is not correct,  Every line should start with a $ and some do and
some don't from that output.  It's almost like a buffer is overfilling
and I'm only getting part of it, or random characters are being
inserted.

I've experimented with about every baud rate I could think of too and
it's either garbage stuff similar to what I see above.

Any ideas what's going on?





More information about the Avila mailing list