Re: Windows CE 5.0

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Paul G. Tobey [eMVP] (ptobey)
Date: 09/02/04


Date: Wed, 1 Sep 2004 17:34:39 -0700

If there is a parity error, perhaps the driver has changed slightly to
return something different. This would probably not be an intentional
thing, but a change in error handling causing a change in the undefined
behavior as a side-effect.

If it were me, I'd return to C/C++ and write a simple program (you already
have the basic code for configuration and read/write; you just have to port
it to C). Verify that the C program has the same problem, then start
looking for error returns. Is ReadFile returning false, for example? If
not, are you sure that you aren't going past the end of the read data (in C,
make sure that the number of bytes returned matches what you are using to
read the data).

Paul T.

"Michael--J" <MichaelJ@discussions.microsoft.com> wrote in message
news:C2367647-C7CA-453E-8059-2237095126A0@microsoft.com...
> Yes, i just did what you told me and the data is wrong from the receive. I
> did this check by examining what byte was read after calling the API
> method
> ReadFile().
>
> What could this mean?
>
> "Paul G. Tobey [eMVP]" wrote:
>
>> Right. The behavior happens, but, "displays the characters it receives",
>> has two parts: receives and displays, right? Is the data wrong from
>> receive? No, I bet it isn't, but I can't tell, from a display of the
>> data,
>> whether it's a receive problem or a display problem; with the debugger,
>> *you
>> can*. When you've done so, tell us...
>>
>> Paul T.
>>
>> "Michael--J" <MichaelJ@discussions.microsoft.com> wrote in message
>> news:3802031F-BF69-40EA-8CE5-598BC87A2C4F@microsoft.com...
>> > Hello Paul,
>> >
>> > What did you mean by "Debug your program"? Which program are you
>> > talking
>> > about? Are you talking about my C# application which i deploy on my
>> > device?
>> > Or are you talking about debugging the OS image? If you meant my C#
>> > app, i
>> > have already tested it on both systems. In 4.2 it works fine, but in
>> > 5.0
>> > the
>> > behaviour i mentioned in my previous post happens. I probably didn't
>> > undestand you... can you please elaborate...
>> >
>> > Also, would having a side-by-side installation of 4.2 and 5.0 have
>> > anything
>> > to do with it?
>> >
>> > Kind Regards,
>> >
>> > Michael--J.
>> >
>> > "Paul G. Tobey [eMVP]" wrote:
>> >
>> >> That doesn't sound like a serial driver thing; more likely a change in
>> >> the
>> >> text mapping or code page. Debug your program and see what you are
>> >> getting
>> >> back. If it's the same in both systems, you can obviously eliminate
>> >> the
>> >> serial I/O...
>> >>
>> >> Paul T.
>> >>
>> >> "Michael--J" <MichaelJ@discussions.microsoft.com> wrote in message
>> >> news:7C70703C-92DC-40DA-B309-3D387043B88C@microsoft.com...
>> >> > Hello,
>> >> >
>> >> > I've upgraded from 4.2 and having quite a bit of trouble getting
>> >> > things
>> >> > to
>> >> > work in 5.0. I am writing an app in C# which uses the Serial class
>> >> > from
>> >> > opennetcf.org. This app will run on an x86 device and basically
>> >> > displays
>> >> > in a
>> >> > text box any characters it receives from a PC. When i have CE 4.2
>> >> > running
>> >> > on
>> >> > the device, the characters are displayed fine.
>> >> >
>> >> > However when i have CE 5.0 running on the device, the app displays
>> >> > in
>> >> > hex
>> >> > the characters f5, f4, and f6. I never had this problem in 4.2. Has
>> >> > anyone
>> >> > encountered similar problems? Would anyone know what is causing
>> >> > this?
>> >> > How
>> >> > much different is the Serial driver in 5.0 compared to that in 4.2?
>> >> > Thanks.
>> >> >
>> >> > Kind Regards,
>> >> >
>> >> > Michael--J.
>> >>
>> >>
>> >>
>>
>>
>>



Relevant Pages

  • Re: Device Drivers
    ... Paul has been doing ... It's a PCMCIA card? ... and device.exe says 'unrecognised card', so type in driver name, No power ... You did the hard reset and immediately after ...
    (microsoft.public.windowsce.embedded)
  • Re: Reading until no more data is available.
    ... Matt Ervin wrote: ... Since I'm fairly new to Windows device driver development I have no idea ... call to ReadFile() never returns. ... Instead the process hangs and I ...
    (microsoft.public.development.device.drivers)
  • Re: Reading until no more data is available.
    ... call to ReadFile() never returns. ... support zero read/zero write semantics. ... I conclude that the OP has two code paths, one for completing the IRP ... The OP should turn on driver verifier, ...
    (microsoft.public.development.device.drivers)
  • Re: Reading until no more data is available.
    ... DDK installation that although I am pending the IRP request for IRP_MJ_READ ... call to ReadFile() never returns. ... support zero read/zero write semantics. ... The OP should turn on driver verifier, ...
    (microsoft.public.development.device.drivers)
  • Re: Tracy engages gearbox before brain...
    ... Tag had some justification for his actions. ... Regardless of who it is, Champ Car should give the offending driver, in this case PT, a few races to cool down before they let him back on the track. ... Should Paul be subjected to a worse penality than historically they have handed down because he is Paul Tracy and has a big mouth at times? ... Legge's incident did not endanger herself or other drvers in the same way Tracy's did. ...
    (rec.autos.sport.cart)