Re: Debugging CE App using Emulator to Actual Device

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

r_z_aret_at_pen_fact.com
Date: 08/03/04


Date: Tue, 03 Aug 2004 18:50:04 -0400

On Fri, 30 Jul 2004 19:08:35 -0400, CeNewbie <CeNewbie@fake.com>
wrote:

>Since there is no answer after I posted this question, so I want to put
>the question from a different standpoint. Hopefully someone could answer
>it for me.
>
>I already have a WinXP application that are successfully talk to the
>device via the COM2 port. Now I ported the app to the evc++ 4.0 and
>intend to use the Pocket PC 2003. However, before I got myself a real
>PPC, I want to debug it using the emulator.
>
>I configured my emulator startup server's serial 1 to COM2, that didn't
>work. That I tried setting serial 2 to COM2, and that didn't work
>either. Somehow, my WinCE app couldn't talk to the deivce.
>
>My question is, is there any changes that I need to take care of for the
>COM interface from porting between the WinXP or PPC 2003 app?

For one thing, the device names include trailing colons for CE. For
example
COM1:
vs
COM1
Also, ce does not support overlapped i/o. Otherwise, serial
communication is very much the same for CE and "big" Windows.

You will also need to deal with UNICODE, because most Windows CE
string functions take UNICODE, not ASCII, arguments. For more info,
use google (http://groups.google.com/advanced_group_search)to look up
unicode windows ce

You may have trouble getting a CE device to communicate with a
peripheral via USB. I know older CE devices did not support USB host
mode, and thus wouldn't talk to peripherals. I don't deal with USB as
a programmer, so I have no more info on this topic

I've never tried to use a real device with my app under an emulator.
So I can't help.

>
>TIA.
>
>CeNewbie wrote:
>> Hi All,
>>
>> I have a card reader device that could communicate to my XP either via
>> serial or USB. I need to write a pocket pc app (GUI) that will connect
>> to the device in order to configure its settings and obtain data from it.
>>
>> I like to first debugging the app on my XP using the emulator (under
>> evc++ 4.0), with the actual device attached to its serial port. Could it
>> be done this way? For example, if I configure the emulator's target
>> server to set the serial port 2 to my com2, would that work?
>>
>> Also, if I am going to communicate to the device via the USB using the
>> emulator, do I need to write a USB driver for my amulator app in order
>> to talk to it?
>>
>> Sorry I asked a bunch of loaded questions, but I like to know before I
>> attempt to tackle the problem.
>>
>> Thanks in advanced.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com



Relevant Pages

  • Re: Hardware musings
    ... then the emulator would also have the boot ROM! ... entire RWTS setup on a microcontroller and simply communicate this back ... protection, and it remains to be seen whether or not this is feasible ... some point I can study the USB specs and see what's feasible. ...
    (comp.sys.apple2)
  • Debugging CE App using Emulator to Actual Device
    ... I have a card reader device that could communicate to my XP either via ... I like to first debugging the app on my XP using the emulator (under ... with the actual device attached to its serial port. ... if I am going to communicate to the device via the USB using the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Debugging CE App using Emulator to Actual Device
    ... I want to debug it using the emulator. ... I configured my emulator startup server's serial 1 to COM2, ... my WinCE app couldn't talk to the deivce. ... > serial or USB. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Help With Basic Windows Mobile App
    ... I'm appreciative of your help and I don't like scope creep, but I'm having issues with my 6.0 Pro Emulator. ... "\MilkMonitor.sdf" to find the file in the same folder as the app, ... Private Const DB_CONNECTION_STRING As String = "Data ... The sdf file is there in the app folder, so I know it got deployed, but the application just doesn't see it, even if I execute the deployed app directly from the emulator and not in VS debug mode. ...
    (microsoft.public.sqlserver.ce)
  • Re: Do you still use "RS232" or something else?
    ... The point is that you can communicate with your device via layer 2 mac/ ... Ethernet II frame = DIX frame - most used ... Windows Vista do not support the networking parts of the USB CDC, ...
    (comp.arch.embedded)