CFSerialIO dll question

A

agus

Hi I'm trying to do something with serial port in Windows Mobile 2003
second edition. I just download the CFSerialIO dll to do some test. I
try to use the infrared port to capture the signal sends by a TV
control remote. But nothing happend. Is it posible to do that with
CFSerialIO dll?
I just run the C# example in http://www.hardandsoftware.net/ and
change the port number so it's open the ir port (COM2). Is there any
other solution to do that.
I'm working on my degree thesis an I need to do that so, If somebody
can help me I'll be very thankful.

Thanks
 
G

Guest

Commercial IR remotes don't send serial data, so no. You'd have to capture
the raw IR and decode it manually.

-Chris
 
D

Dick Grier

Hi,

A TV Ir message is not a standard asynchronous data stream. Neither
CFSerialIO, nor the serial class from www.opennetcf.org will work for this
purpose.

There are some articles online that describe how this might be done (see
google), but I haven't seen any examples in managed code.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
A

agus

Hi, thanks for give me a hand. I didn't know that things. I have some
friend that has developed a C++ embedded program and he could capture
this TV Control Remote signal, so I thought that maybe I would have
been able to do that in Compact Framework. The things is that I have
some beacons (a device that send the same infrared signal repeatedly),
and I want to capture the signal that it sends. I'ts a byte. May be I
could use my friend dll from my application. Is there any example that
shows how to do that?

Thanks
 
D

Dick Grier

Hi,
May be I
could use my friend dll from my application. Is there any example that
shows how to do that?
<<

You would use PlatformInvoke (P/Invoke) to call the dll. There are examples
online that show the syntax for different APIs. Some should be similar to
that needed for your dll. Take a look at:

http://www.microsoft.com/downloads/...AA-ADA2-42D4-8B70-95DC7D8F678C&displaylang=en

http://www.paulyao.com/resources/tools/pinvoke.asp

http://www.codeproject.com/netcf/compframe2.asp

and other resources (google).

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top