Re: Windows CE 5.0
From: Paul G. Tobey [eMVP] (ptobey)
Date: 09/02/04
- Next message: Michael--J: "Re: Windows CE 5.0"
- Previous message: Martin Massé: "Re: Device Emulator problems vith VS 2005 B2"
- In reply to: Michael--J: "Re: Windows CE 5.0"
- Next in thread: Michael--J: "Re: Windows CE 5.0"
- Messages sorted by: [ date ] [ thread ]
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.
>> >>
>> >>
>> >>
>>
>>
>>
- Next message: Michael--J: "Re: Windows CE 5.0"
- Previous message: Martin Massé: "Re: Device Emulator problems vith VS 2005 B2"
- In reply to: Michael--J: "Re: Windows CE 5.0"
- Next in thread: Michael--J: "Re: Windows CE 5.0"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|