Urgent: usbserial driver problems with GPS card, where to find help?
From: Kevin Lamonte (lamonte_at_gerg.tamu.edu)
Date: 10/25/04
- Next message: Pete Zaitcev (OTID1): "Re: Why use copy_from_user/copy_to_user ?"
- Previous message: Peter T. Breuer: "Re: When I try to copy (or ftp) huge file, I am getting below error, any idea why?"
- Next in thread: Pete Zaitcev (OTID1): "Re: Urgent: usbserial driver problems with GPS card, where to find help?"
- Reply: Pete Zaitcev (OTID1): "Re: Urgent: usbserial driver problems with GPS card, where to find help?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Oct 2004 09:37:27 -0500
I'm having several serious problems with the usbserial driver in
conjuction with a NovAtel GPS receiver card (OEM4-G2 model).
Questions:
1) Can anyone point me to the appropriate forum to ask the actual
usbserial developers?
2) Does the serial port speed affect the usbserial driver at all? Does
it really alter the rate that data can be read from the USB device?
3) Can the usbserial.c from 2.4.27 be retrofitted to 2.4.22-ac4 safely?
I see that if I copy usb-serial.h and usbserial.c to
drivers/usb/serial, the 'make modules' command succeeds. Are there any
other changes between 2.4.22-ac4 and 2.4.27 that need to be included?
Problems:
1) We are losing *some* data sent from the card to the PC104. Last
night I powered up the GPS card and PC104 and left it on. At midnight
my reader program shutdown and was re-started (by design). The second
instance of the reader immediately started seeing data loss on
/dev/ttyUSB0. After the PC104 rebooted, however, it started working fine.
2) If we shutdown the GPS card while leaving the computer on, AND a
reader is on /dev/ttyUSB[0-2], the usbserial driver OOPSes. I've seen
this described and several patches for the behavior that seem to
culminate in the 2.4.27 driver.
3) If the reader does not get to /dev/ttyUSBx quickly enough, that
particular device fails until the GPS card is power cycled. For
example, if the reader waits two minutes before opening /dev/ttyUSB1, it
will immediately read about two kilobytes of data and then nothing more,
even though the card is configured to emit about 100 bytes every two
seconds. /dev/ttyUSB0 still works fine, however. I cannot determine if
this problem is in usbserial or the NovAtel card.
Setup:
Kernel version: 2.4.22-ac4
Custom compile with usb-ohci, usbserial loaded as modules
The PC is a PC104 with the ZFMicro ZFx86 chipset. The USB controller is
on the same silicon as the 100Mhz 486 CPU; it is recongized as a Compaq
OHCI chipset.
The NovAtel GPS card is custom mounted with a cable that provides USB
connectivity and input power.
The usbserial driver is loaded as a module so I can pass in the vendor
and product IDs. After loading the usbserial driver and providing power
to the NovAtel, three devices are successfully "connected" to
/dev/ttyUSB0, /dev/ttyUSB1, and /dev/ttyUSB2.
I can use minicom to communicate with the NovAtel card. My program can
read data from the card, and 'cat /dev/ttyUSB0' works. However, we get
problems after leaving it on for a few hours.
The ports are being run at 19200, 8N1, set via tcsetattr().
- Next message: Pete Zaitcev (OTID1): "Re: Why use copy_from_user/copy_to_user ?"
- Previous message: Peter T. Breuer: "Re: When I try to copy (or ftp) huge file, I am getting below error, any idea why?"
- Next in thread: Pete Zaitcev (OTID1): "Re: Urgent: usbserial driver problems with GPS card, where to find help?"
- Reply: Pete Zaitcev (OTID1): "Re: Urgent: usbserial driver problems with GPS card, where to find help?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|