The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Serial port configuration munirh SCO 1 04-22-2008 06:09 AM
Communicating with Serial Port netsavant UNIX for Advanced & Expert Users 4 03-15-2008 01:19 PM
Serial Port Datalogger uryuu SUN Solaris 1 09-26-2007 02:22 AM
Serial File Transfer chansen SCO 2 04-13-2007 07:37 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2007
Registered User
 

Join Date: Jul 2007
Posts: 52
how i can transfer and receive file in any format over serial port

helo
i m using fedora core 6 o.s.
i want to develop application using c,c++ which transfer file in any format(like pdf,txt,doc etc) over the serial port and i want to receive the same file from the serial port
please guide me.
amit
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-01-2007
ilko_partizan's Avatar
Registered User
 

Join Date: Apr 2007
Location: EU, Bulgaria
Posts: 33
The below how-to describes serial ports communication and its POSIX implementation.

Serial Programming Guide for POSIX Operating Systems

Best regards,
Iliyan Varshilov

Last edited by ilko_partizan; 08-01-2007 at 01:00 AM.
Reply With Quote
  #3 (permalink)  
Old 08-01-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by amitpansuria View Post
which transfer file in any format
(a) serial ports are not reliable, characters can get dropped and bits corrupted so you need a protocol that will handle error detection and retries

(b) this has all been done before, either choose an implementation that already works and move onto things that have not been done, or choose an existing protocol and implement that, hence you will be able to work with other machines already using those protocols.

(c) Have a look at UUCP, XMODEM, Kermit

(d) Have a look at SLIP, PPP
Reply With Quote
  #4 (permalink)  
Old 08-02-2007
Registered User
 

Join Date: Jul 2007
Posts: 52
how i can use kermit protocol in my application

Quote:
Originally Posted by porter View Post
(a) serial ports are not reliable, characters can get dropped and bits corrupted so you need a protocol that will handle error detection and retries

(b) this has all been done before, either choose an implementation that already works and move onto things that have not been done, or choose an existing protocol and implement that, hence you will be able to work with other machines already using those protocols.

(c) Have a look at UUCP, XMODEM, Kermit

(d) Have a look at SLIP, PPP
thx for replying me.
Sir actually i m new in this serial port communication.
now suppose i want to transfer any format file over serial port using kermit protocol then how can i use it in my application. i mean how can i implement kermit protocol
and how i use in my c++ application
Regards,
Amit
Reply With Quote
  #5 (permalink)  
Old 08-02-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Searching on google would have provided links like this one, which will help you along.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0