Cann't connect to Ir connection.

Postby weerayuty on Sat Aug 17, 2002 7:59 pm

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
Posts: 2
Joined: Sat Aug 17, 2002 7:58 pm

Postby jstadolnik on Sat Aug 17, 2002 10:17 pm

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.
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby weerayuty on Mon Aug 19, 2002 5:03 am

Thank a lot Joe

Best regards
Posts: 2
Joined: Sat Aug 17, 2002 7:58 pm

Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 1 guest