Page 1 of 1

PostPosted: Sat Aug 17, 2002 7:59 pm
by weerayuty
Hello Everybody,

I have tried to open the Ir port like as following functions...
char AT_CSCS[9] = {'AT+CSCS?'};
int ret;
char Buffer[255];
pointer pAT_CSCS;
ret = seropenx(0x8001, 9600)
if ( ret != 0 ) {
alert ("Can't open Ir\n");
return -1;
sersenda(pAT_CSCS, 9);
serrecva(Buffer, 3);
return 1;
I was tried to send AT command to mobile phone via Ir but I cann't see any response back from mobile. Normally the mobile will show some activate if have any Ir connection to mobile.
Could you please suggest me? what was I wrong?
How can I do?

Best regards

PostPosted: Sat Aug 17, 2002 10:17 pm
by jstadolnik
Ir capable mobile phones require a special flavor of serial ir protocol, usually IrComm. This protocol handles such things as error checking (checksum) and error recovery (very much like TCP frames).

The seropenx command only exposes raw serial ir (having no protocol support), as such it will not work for communicating with cell phones.

IrComm is actually layered upon raw serial ir, so it technically may be possible to implement the ircomm protocol yourself? See the links in the "additional sources" section of the following web page for more details:


The PToolboxLib guy.

PostPosted: Mon Aug 19, 2002 5:03 am
by weerayuty
Thank a lot Joe

Best regards