EmbeddedRelated.com
Forums

ftp client or ppp over serial communication

Started by a s December 30, 2003
I am working on a project which requires communication between client and server,
I can use two methods  ftp client or  ppp over serial communication;
My question is when i have to send and recieve data via modem, what should be required to do, whther i transfer serial data by modem using PPP or by sockets. remebere i am using RCM3100 core.
I want to understand basic difference between twos.
Thanks
 



HELP please

a s <x...@yahoo.com> wrote:
I am working on a project which requires communication between client and server,
I can use two methods  ftp client or  ppp over serial communication;
My question is when i have to send and recieve data via modem, what should be required to do, whther i transfer serial data by modem using PPP or by sockets. remebere i am using RCM3100 core.
I want to understand basic difference between twos.
Thanks
 



r...@egroups.com


Yahoo! Groups Links
To



You're mixing apples and oranges...
 
Sockets is the programming interface to TCP/IP communication, while PPP is (one) way to establish a TCP/IP connection between two hosts. This is rather too simplified, but could help you to understand the problem.
 
So. you would use sockets in your program to initiate FTP client connection to or from your application. This connection could be initiated over ethernet, or over PPP connection. If you have both of them established, TCP/IP stack will determine (based on additional information like routing tables etfc) which way to route packets.
 
If the only application you're looking at is modem, and if you can control both sides of connection, I would recommend you not to deal with TCP/IP stuff - this means bringing in PPP as well, with a whole new array of problems... Whenewer possible, keep the things simple.
 
Regards,
 
George
-----Original Message-----
From: a s [mailto:x...@yahoo.com]
Sent: Tuesday, December 30, 2003 1:20 PM
To: r...@yahoogroups.com
Subject: [rabbit-semi] ftp client or ppp over serial communication

I am working on a project which requires communication between client and server,
I can use two methods  ftp client or  ppp over serial communication;
My question is when i have to send and recieve data via modem, what should be required to do, whther i transfer serial data by modem using PPP or by sockets. remebere i am using RCM3100 core.
I want to understand basic difference between twos.
Thanks
 



r...@egroups.com


Yahoo! Groups Links
To


Thanks Georges
Yes, There was some confusion.
I am not using TCP/IP. I have used Sockets to initiate FTP client connection by initiating serial over PPP connection. 
 
I am new in this field so i have some ambiguities. one of them is:
In the embedded card i have CTS/RTS flow control with modem, While establishing PPP connection i have mentioned about CTS RTS pins in ifconfig(....) function.
whether i have to use commands like serBflowcontrolOn() or just i can skip it as i am using ftp client download and upload procedure.
 
Regards
Alain
 
 

 

 

 


George Georgiev <g...@sbcglobal.net> wrote:
You're mixing apples and oranges...
 
Sockets is the programming interface to TCP/IP communication, while PPP is (one) way to establish a TCP/IP connection between two hosts. This is rather too simplified, but could help you to understand the problem.
 
So. you would use sockets in your program to initiate FTP client connection to or from your application. This connection could be initiated over ethernet, or over PPP connection. If you have both of them established, TCP/IP stack will determine (based on additional information like routing tables etfc) which way to route packets.
 
If the only application you're looking at is modem, and if you can control both sides of connection, I would recommend you not to deal with TCP/IP stuff - this means bringing in PPP as well, with a whole new array of problems... Whenewer possible, keep the things simple.
 
Regards,
 
George
-----Original Message-----
From: a s [mailto:x...@yahoo.com]
Sent: Tuesday, December 30, 2003 1:20 PM
To: r...@yahoogroups.com
Subject: [rabbit-semi] ftp client or ppp over serial communication

I am working on a project which requires communication between client and server,
I can use two methods  ftp client or  ppp over serial communication;
My question is when i have to send and recieve data via modem, what should be required to do, whther i transfer serial data by modem using PPP or by sockets. remebere i am using RCM3100 core.
I want to understand basic difference between twos.
Thanks
 



r...@egroups.com


Yahoo! Groups Links
To





Yahoo! Groups Links
To