Irda

S

Shane Wilson

Has anyone sucessfully connected to an irda printer or
other pocket pc from a .net compact framework app.

I can discover the devices but never connect to it as the
connection is refused. There seesm toa lot of post about
this subject but few answers.

Help Anyone ? Please
 
S

Shane Wilson

Thanks for the reply

Im trying to use a Citizen CMP10 printer
I can discover it and I can print to it properly using a
serial port but when I try to connect it via an infrared
socket connection it refuses me.
 
D

Dave Wasden

I had that problem until I added the correct service name to the connect
method. Here is some code:

IrDAClient client = null;
try {
client = new IrDAClient();
IrDADeviceInfo[] irDevices = client.DiscoverDevices(1);
client.Connect(this.myServiceName);
....

I have limited experience so I hope I am not steering you wrong.
 
J

Jose

Hi ,
I am having similar problems, can you please tell what is the service
name that works in your case?
Thanks in advance.
Kind regards,
Jose
Dave Wasden said:
I had that problem until I added the correct service name to the connect
method. Here is some code:

IrDAClient client = null;
try {
client = new IrDAClient();
IrDADeviceInfo[] irDevices = client.DiscoverDevices(1);
client.Connect(this.myServiceName);
...

I have limited experience so I hope I am not steering you wrong.

Thanks for the reply

Im trying to use a Citizen CMP10 printer
I can discover it and I can print to it properly using a
serial port but when I try to connect it via an infrared
socket connection it refuses me.
 

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