> Provided that an infra-red connection has already been established from my > PC to the Palm, what is the minimum data I have to send in order to install > a .prc onto Palm?
The easy way to install a prc onto a Palm via infrared is to use the IrOBEX protocol on the sending device. Set the filename in the IrOBEX object to something that ends in ".prc". The IrOBEX exchange library will receive the object, buffering it in a FileStream, and then route it to Launcher. Launcher will call ExgDBRead to convert the buffered prc into a database. You say you already have a connection. Which protocol is this connection made with? If you're using the (New) Serial Manager, it's probably IrCOMM. If you're using the IR Library, it's probably IrLAP, IrLMP, or IrTTP (Tiny TP). In any of these cases, you can call ExgDBRead yourself to convert the incoming data into a database. You may need to buffer the data first, in which case a File Stream is probably your best bet. > For example, I want to know something like: > > 1. maybe send 2 byte of FF to Palm as a leading code > 2. send n byte of 00 to Palm to indicate install is taking place > 3. send the actual byte pattern of the .prc file to Palm > 4. send the AppInfo block to Palm > 5. send n byte of ?? to Palm to indicate end of install... > ... etc etc. See the Palm File Format Specification at http://www.palmos.com/dev/support/docs/ to learn how prc files are formatted. The app info block, if any, is included in the file. You shouldn't need to know about this though - just use ExgDBRead to parse the prc file. One thing to watch out for is multiple prc files. Don't just concatenate them. You'll need a length prefix for each prc file if you want to send multiple files. -- Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
