|
| Re: "Beaming" over Bluetooth, or... serial? |
 |
Mon, 21 May 2007 18:12:40 +010 |
Luc Le Blanc wrote:
> Neil Whitworth wrote:
>
>> You can write a shared library to handle sending data via the
>> serial link. It must have the same interface as all the other
>> exchange libraries. (see ExgLib.h for details). We have had to do
>> this for our mail application to handle sending attachments.
>
> Such a library does not already exist? Does it has to be a shared library
to be supported by the Exchange Manager? If I write such a library, do you think
I have to manually launch reception on the receiving side, or would my app be
called with the sysAppLaunchCmdExgAskUser and sysAppLaunchCmdExgReceiveData
launch codes when data is received?
>
>
> Luc Le Blanc
>
>
Several exchange libraries are provided by default (beam, local,
Bluetooth, versamail) but as far as I know none exists for using the
serial port of the palm. The library is just acting as a transport layer
to move data between the two devices. Your application does not need
changing, as it will still recieve
sysAppLaunchCmdExgAskUser/sysAppLaunchCmdExgReceiveData launch commands
no matter which library is used to transport the data. At the remote end
the exchange library tells the exchange manager that it has data, and
the exchange manager will send the approprate launch codes the the
application to recieve that data.
the sequance of events is:-
1) Sending application inialises ExgSocket, optionaly specifying which
library to use
2) Sending application calls ExgPut
2a) Sending exchange manager looks for registed libray, and prompts if
more that one is registed for the requested scheme (i.e. "_send")
2b) Sending Exchange mananger calls ExgLibPut for selected exchange library
2c) Sending Exchange library initialtes connection to remote end
3) Sending app calls ExgSend
3a) Sending Exchange manager calls ExgLibSend for selected exchange library
3b) Sending Exchange libray sends data to remote end
3c) Recieving Exchange library saves data for later use
4) Sending app calls ExgDisconnect
4a) Sending Exchange manager calls ExgLibDisconect for selected exchange
library
4b) Sending Exchange library Disconects from remote end and cleans up
5) Recieving Exchange Library calls ExgNotifyReceive
5a) Recieveing Exchange manager sends
sysAppLaunchCmdExgAskUser/sysAppLaunchCmdExgReceiveData to registered
application.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|