Re: Bug in X86 serial port driver in CE.NET 4.2 ?

From: George McCollister (georgem_at_novatech-llc.com)
Date: 09/02/04


Date: Thu, 02 Sep 2004 08:09:29 -0500

Jason wrote:
> Hello Steve,
>
> Yeah I have noticed that too on some UARTs. The chipset I am dealing with
> now is VIA82C686B bolted to a Pentium III. This board is an 'off-the-shelf'
> board from Aaeon. From the behaviour I am seeing with my driver it seems to
> be a software issue. The edge triggered issue has bit me enough I caught
> that for the UART (unmask/mask sequence at end of IST).
>
> The problem has occured at different baud rates and can happen at very low
> data rates. It was one of those 'random' lock-ups of our box. I have not
> been able to tie the data rate to the hang, it can happen in 5 min. or 2
> hours at any data rate.
>
> The application never reads 1 byte at a time but does depend on the hardware
> connected up (system configurable to control different pieces of hardware).
> No flow control (hardware or software), standard N,8,1 no weird stuff with
> DTR, etc. Its basically the most boring serial port application you can
> think of :)
>
> I did notice in the CE source some little 'weird' stuff but I didn't get
> into it enough to know if it was wrong. For example, the 16550 FIFO
> transmit interrupt happens just when there is 'room' in the FIFO, not when
> it is empty, the code in the kernel seemed to assume a 'transmit shift
> register empty' was the same as 'FIFO empty' but that should just cause lost
> data, not a hang.
>
> I cannot think of any other details that might matter at this point, as
> usual when debugging this kind of problem you develop all sorts of
> 'possibly's but nothing solid. The two known issues so far is no hang with
> no serial ports and no hang with my driver. This is a monolithic driver so
> I bypassed an external ISR, etc.
>
> If I think of anything else I will post it.
>
> Thanks,
> Jason
>
>

Our Orion product runs on CE .NET 4.1. We offer configurations with up
to 18 serial ports. We run the standard driver on several ports and a
slightly modified version on the rest. To date, we haven't had any
problems reported, even on configurations running 8 serial ports on a
single IRQ. We have hardware in the field running as high as 115200 bps
and as low as 1200 bps. We have systems communicating over direct serial
cable, 485 loops, fiber (direct and loops), radio, dial up modem and
leased line modem.

We are running on x86 hardware at 66mhz.

Regards,
George McCollister
NovaTech LLC
www.novatech-llc.com



Relevant Pages

  • Re: Accessing peripherals from a managed application
    ... You call the Win32 APIs for serial ports. ... beitman AT applieddata DOT net ... Maybe you open the driver with CreateFile, ... Call on the imported functions to access the hardware. ...
    (microsoft.public.windowsce.app.development)
  • Re: [REVIEW] move tty lock/initial up in the stack
    ... Well, the hardware doesn't know, but the state of the hardware does ... :>: The major difference is that serial ports are rapidly headed into ... The serial layer is a spigot. ... I'll plow forward on the cyclades driver I'm working on then. ...
    (freebsd-arch)
  • Re: [PATCH] Exar quad port serial
    ... The two on-board serial UARTs were being detected along with the first two ... The last two Exar UARTs were not showing up and neither was ... four serial ports and get all four of the Exar UARTs to show up. ... If that doesn't work and you do need a special driver, ...
    (Linux-Kernel)
  • Re: Pro 95 and USB Programming
    ... >I>My new computer lacks serial ports. ... I have a USB-Serial converter, ... A USB port, when you install the driver for a USB->serial converter, ... driver for RS-232 hardware and the driver for USB hardware. ...
    (rec.radio.scanner)
  • Re: xPC Serial Communication Problems
    ... We're using the serial ports that come on the CPU ... The older serial block you're using uses the kernel resident driver ... Is the receiving machine executing at the 'same' 50 ms rate? ... does it wait until there are at least 15 characters in the ...
    (comp.soft-sys.matlab)