PDA

View Full Version : Sending files between PC and PPC


Solonn
06-19-2006, 10:06 AM
Since i'm a real noob at this i'd ask for a little help. For my GHC program I'm thinking about a system to exchange file between pc and ppc or ppc and ppc.
My problem is: i know this may be done via comm (serial comunication) or tcp/ip, but i do not have any clue on how to do this. I've taken a look into winsock and comm examples in the ppl diretcory, but i do really need a basical tutorial on all of this.
PLEASE! I'll be really greatfull for every bit of help!

P.S.: a simple code to send a file will be enough!

kornalius
06-19-2006, 03:59 PM
Well right now there is the RAPI library that can be used. I am not sure if the PocketPC can talk to the PC using these functions though. Do a search about the RAPI, I can assist you in implementing the library in PPL if you want.

Solonn
06-19-2006, 05:54 PM
I've taken a look to the RAPI library, but it appears to be only used for action taken from the pc to the PocketPC. I'm actually reading on msdn about the rs 232 interface, using the rs232.ppl file as a starting point. At the moment the program seems to do absolutely nothing. I'm really missing something...

kornalius
06-19-2006, 09:00 PM
I haven't touched RS232 serial transfer in years. Do you have a serial cable?

The best thing I think, is to build a PC server app and have a PPC client program. Use winsock connection, that can work over WIFI or cradle.

Solonn
06-20-2006, 07:26 AM
Yes, that was my first idea, the problem is: will the client/server system work between two ppc? Regarding the serial connection I was thinking about serial over bluetooth, i.e.: I would connect the pc to the ppc or two ppc with bluetooth serial port and then send data between the two.
The Winsock would be my first choice if i could understand how it works.

kornalius
06-20-2006, 02:35 PM
Yes, you can run the server on a PPC and the other PPC's can connect to it.

Check around the net, there are quite a bit of sample source codes to show you how it works. Applying it to PPL won't be hard.

Solonn
06-21-2006, 06:48 PM
As soon as i'll have same spare time, i'll start looking in the winsock world!
I'm actually cheking the winsock demo that cmes with ppl, but it doesn't seem to work for me...