Irda

  • Thread starter Thread starter Shane Wilson
  • Start date Start date
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
 
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.
 
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.
 
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.
 
Back
Top