OmniRemote™ Technical FAQ (Frequently Asked Questions)

Note:Our General FAQ answers the majority of questions Pacific Neo-Tek receives. This Technical FAQ answers programming and other technically-oriented questions.  

  1. When I try to install the new version of the OmniRemote™ Library it doesn't work, the old version is still there. Why?

  2. How do I send/receive raw IRDA bytes?

  3. What is the format for OmniRemote's database file?



When I try to install the new version of the OmniRemote™ Library it doesn't work, the old version is still there. Why?
PalmOS versions below V3.1 will not install a library (by beaming or HotSyncing) if one with the same name already exists. Delete the old library before installing the new one.

How do I send/receive raw IRDA bytes?
The example below sends the message "Test string..." using 9600 baud IRDA.

Receiving bytes works the same way, but you use SerReceive instead of SerSend. Sending and receiving at the same time is always impossible with IRDA because reflections can cause the Palm to see itself.

UInt16	serRefNum=0;
Err	err;

// Find serial library
	err = SysLibFind("Serial Library", &serRefNum); 
	if (err)
	{ 
		ErrDisplay("Open: Error on Ser:SysLibFind."); 
		serRefNum = 0;   
	} 

// Open serial port at 9600 baud
	err = SerOpen(serRefNum, 0, 9600L); 
	if (err)
	{ 
		if(err==serErrAlreadyOpen) 
		{ 
			ErrDisplay("SerOpen serErrAlreadyOpen"); 
		}
		else if (err==serErrBadParam)
		{ 
			ErrDisplay("SerOpen serErrBadParam"); 
		}
		else if (err==memErrNotEnoughSpace)
		{ 
			ErrDisplay("SerOpen memErrNotEnoughSpace"); 
		}
		else
		{ 
			ErrDisplay("Open: Error on SerOpen."); 
		} 
	} 

// Switch to IRDA mode	
	SerControl(serRefNum, serCtlIrDAEnable, 0L, 0L);


// Send raw IRDA bytes
	SerSend(serRefNum, "Test string...", 14, &err);


// Close the serial port before end of application
	SerClose(serRefNum);

What is the format for OmniRemote's database file?
This information is available in a file called FileFormat10.txt which is part of the OmniRemote development kit. The Development kit is available for free download.


[Home]   [Products]   [Download]   [Orders]   [Contact]

 

Palm Pilot™ is a trademark of 3Com Corporation.