Hi ,
Here I can mention my software requirements as follows.
I need to transfer data between PC (linux/windows based) and linux based hardware board
Method 1 :
Transfer using TCP/IP ( Ethernet card is interface ) protocol :
Here we can transfer data using socket programming .One PC acted as a server and other one as a client . I know this method .
Method 2 :
Transfer using PPP protocols ( RS 232 and serial cable interface) :
I am not very clear about this method. My doubts are as follows.
1) As per my understanding same socket program as I mentioned above can reuse in this case without any modification, because PPP is a data link layer protocol and If I open socket means we are directly communicate with TCP or UDP layer which is above Data link layer. If this is true
a) How I can make sure that in which route data is passing( Either ethernet layer / PPP layer ) ? Defenitely some configuration is required in order to select PPP or ethernet protocol in linux in application program.Assume that I am working only in application layer not in Kernel level.
b) Which is equivalent protocol for PPP if I use ethernet card ?
2) Here one more use case that is in windows. It is as follows.
One PC is running windows based tool , that is connected with linux based hardware.( RS 232 interface) . This is for modem dial up.
when I have press connect button in this tool, Internally source code is using windows RAS API with remote phone number (like RasDial()). As a result of this remote hardware (linux based hardware) will send back its IP address. Once IP address was obtained by windows based tool, it will open a socket and connect to port 2000 of Remote hardware . Here communication medium is RS 232 .
a) Is RAS service in windows make use of PPP protocol ? Here windows is using RAS service for dial up(to connect to remote linux hardware). How I can receive this data in remote linux hardware ? I dont think we can socket program here because I dont have remote linux hardware IP address now. So may be linux also have same kind of RAS service ? please clarify it ?
b) Here also once IP adress received, windows opening a socket and send data to linux hardware . But communication is through serial (PPP). Here how we can select specifically PPP(Normally we use ethernet protocol and ethernet card )
If you know any site regarding this , please forward to me .
Thanks,
Sethu
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









