NetBSD-Users archive

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

Re: Problems with uplcom/ucom



Hej Giles,

I made some tests with the dtyU0 device to see if it works. Here are the
results:

wiesel# ktrace gpsbabel -i garmin -w -f /dev/dtyU0 -o gpx -F myfile.gpx
[ERROR] GPS_Packet_Read: Timeout.  No data received.
GARMIN:Can't init /dev/dtyU0

kdump
  ...
   328      1 gpsbabel CALL  break(0x815a000)
   328      1 gpsbabel RET   break 0
   328      1 gpsbabel CALL  open(0xbfbfeb1d,2,0x30)
   328      1 gpsbabel NAMI  "/dev/dtyU0"
   328      1 gpsbabel RET   open 3
   328      1 gpsbabel CALL  ioctl(3,TIOCGETA,0x8159004)
   328      1 gpsbabel GIO   fd 3 read 44 bytes
       "\^B+\0\0\a\0\0\0\0K\0\0\M-K\^E\0\0\^D\M^?\M^?\^?\^W\^U\^R\M^?\^C\^\\^Z\
        \^Y\^Q\^S\^V\^O\^A\0\^T\M^?\0\0\0\0\M^@%\0\0"
   328      1 gpsbabel RET   ioctl 0
   328      1 gpsbabel CALL  ioctl(3,TIOCSETA,0xbfbfe880)
   328      1 gpsbabel GIO   fd 3 wrote 44 bytes
       "\0\0\0\0\0\0\0\0\0\M-K\0\0\0\0\0\0\^D\M^?\M^?\^?\^W\^U\^R\M^?\^C\^\\^Z\
        \^Y\^Q\^S\^V\^O\^A\0\^T\M^?\M^@%\0\0\M^@%\0\0"
   328      1 gpsbabel RET   ioctl 0
   328      1 gpsbabel CALL  ioctl(3,TIOCFLUSH,0xbfbfe8b0)
   328      1 gpsbabel GIO   fd 3 wrote 4 bytes
       "\^C\0\0\0"
   328      1 gpsbabel RET   ioctl 0
   328      1 gpsbabel CALL  break(0x815b000)
   328      1 gpsbabel RET   break 0
   328      1 gpsbabel CALL  write(3,0x8157150,3)
   328      1 gpsbabel GIO   fd 3 wrote 3 bytes
       "\^P\M-~\0"
   328      1 gpsbabel RET   write 3
   328      1 gpsbabel CALL  write(3,0x815a000,0)
   328      1 gpsbabel GIO   fd 3 wrote 0 bytes
       ""
   328      1 gpsbabel RET   write 0
   328      1 gpsbabel CALL  write(3,0x8157158,3)
   328      1 gpsbabel GIO   fd 3 wrote 3 bytes
       "\^B\^P\^C"
   328      1 gpsbabel RET   write 3

...


   328      1 gpsbabel CALL  gettimeofday(0xbfbfe848,0)
   328      1 gpsbabel RET   gettimeofday 0
   328      1 gpsbabel CALL  write(2,0x80db24c,8)
   328      1 gpsbabel GIO   fd 2 wrote 8 bytes
       "[ERROR] "
   328      1 gpsbabel RET   write 8
   328      1 gpsbabel CALL  write(2,0xbfbfe094,0x2c)
   328      1 gpsbabel GIO   fd 2 wrote 44 bytes
       "GPS_Packet_Read: Timeout.  No data received."
   328      1 gpsbabel RET   write 44/0x2c
   328      1 gpsbabel CALL  write(2,0x8106f7b,1)
   328      1 gpsbabel GIO   fd 2 wrote 1 bytes
       "
       "
   328      1 gpsbabel RET   write 1
   328      1 gpsbabel CALL  write(2,0xbfbfe144,0x1d)
   328      1 gpsbabel GIO   fd 2 wrote 29 bytes
       "GARMIN:Can't init /dev/dtyU0
       "
   328      1 gpsbabel RET   write 29/0x1d
   328      1 gpsbabel CALL  exit(1)


if I am using /dev/ttyU0 the output looks like yours:

kdump
 ...

  1372      1 gpsbabel CALL  break(0x8159000)
  1372      1 gpsbabel RET   break 0
  1372      1 gpsbabel CALL  break(0x815a000)
  1372      1 gpsbabel RET   break 0
  1372      1 gpsbabel CALL  open(0xbfbfeb1d,2,0x30)
  1372      1 gpsbabel NAMI  "/dev/ttyU0"
  1372      1 gpsbabel RET   open -1 errno 4 Interrupted system call


Uli

Attachment: pgpWxvORo9cGE.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index