Ir Serial Comms

G

Guest

Hello All,

I am a VB programmer and I am looking to create a simple Ir comms program
for a PDA. .net appears to have IrDA components but I can not get a sensible
serial connection for transfer of ASCII characters. I do not know where to
start now, does any one have any suggestions it would be nice if I could just
hack some code together from some other resources, as this is a simple but
essential pre cursor to a WiFi connection.

Thanks in advance
 
G

Guest

Thanks Alex,

I have looked at using IrDA however i am comunicating with a bespoke piece
of equipment this uses a serial connection translated directly into Ir which
does not recognise IrDA attributes an literally vomits information out in the
form of an ASCII data stream. This means i have no connection properties just
an Ir stream based on data rate and port number. i believe i can create a
virtual port and i can complete serial comms. however i am missing something
the ability to link the serial comms to the Ir port. Is there a way to use
the IrDA constructs but tailor them to except streams regardless of
connection.
a programme such as hyperterminal is a good approximation of the type of app
i am trying to create however once again the link to the Ir port is out side
my understanding.
My other problem may be that i am unable to translate ASCII chars sent and
recieved correctly i thought this would be simple but i have no way of
checking what gets delievered.

Any suggestions.
 
D

Dick Grier

Hi,

For this you should be able to simply open the port (usually Com3) using
standard serial communications APIs (System.IO.Port in VS 2005, or something
like CFSerialIO from my homepage, or SDF Serial from www.opennetcf.org).
Enable OnComm events, and receive the serial data in that event routine.

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.
 
G

Guest

Dick,

This is great i have discovered a whole world of serial comms info however i
seem to have to a much covered question...
On using the .net compnent serialPort i have found the read an write
function difficult to handle i.e. it throws an IO exception when i try to
write to the port. either in strings or bytes any ideas.

many thanks forthe responses they are very useful.

Russ
 

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