Thursday, March 13, 2008

Data Transformation Between PC and PDA (Mobile Device) Using .Net

This articlie explains you how to check connection between PDA and PC and how to transfer data between PC and PDA application using .net
You can establish connection between PC and PDA using Microsoft active sync and the details you could get from microsoft sites
OpenNETCF.Desktop.CommunicationThis is a DLL having features to echeck communication between PC Application and PDA Application and transferring the data .You can reference this DLL by using add reference.
For more details :http://www.opennetcf.com/
RAPI class:
It’s the Remote API class available in “OpenNETCF.Desktop.Communication ”Dll and having great features such as
1)Getting connection status between PC and PDA .
2) You could create Directories in PDA Device
3)You could transfer files from PDA to PC as well as PC to PDA
RAPI class features:
1)Events:
Events that help to monitor The connection status between PC and PDA
1) RAPI.ActiveSync.Active --Connected
2) RAPI.ActiveSync.Disconnect--Disconnected
3) RAPI.ActiveSync.Listen-Not connected
4) RAPI.ActiveSync.Answer—connecting
2)Some Methods :By using the following methods you could transfer the data between PC and PDA as well as PDA and PC
RAPI.DeviceFileExists():It’s one of the method of RAPI class which checks,whether particular directory is available at specified path in PDA device or not and returns the bool value
Ex: RAPI.DeviceFileExists(“\\My Documents\\Invoice\\PO”)
RAPI. CreateDeviceDirectory():This is another method of rapi class and creates the dirctory at specified path in PDA
Ex: RAPI. CreateDeviceDirectory (“\\My Documents\\Invoice\\MI”)
RAPI .CopyFileToDevice():This methos is used to transfer data from PC to PDA and it takes two aregumnts
1)PC folder address 2)PDA Folder Adress
Ex: RAPI. CopyFileToDevice(“\\My Documents\\PC\”,”\\My Documents\\PDA\\MI”)
RAPI.CopyFileFromDevice():this moethod is used to transfer data from PDA to PC and it takes two arguments
1)PC folder address 2)PDA Folder Adress
Ex: RAPI. CopyFileFromDevice (“\\My Documents\\PC\”,”\\MyDocuments\\PDA\\MI”)
RAPI.DeleteDeviceFile():This methos is used to delete the particular file from PDA device at the specified path.

RAPI. CopyFileFromDevice (“\\My Documents\\PC\”,”\\MyDocuments\\PDA\\MI”)




No comments: