how i can transfer and receive file in any format over serial port


 
Thread Tools Search this Thread
Top Forums Programming how i can transfer and receive file in any format over serial port
# 1  
Old 08-01-2007
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
# 2  
Old 08-01-2007
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 06:00 AM..
# 3  
Old 08-01-2007
Quote:
Originally Posted by amitpansuria
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
# 4  
Old 08-03-2007
how i can use kermit protocol in my application

Quote:
Originally Posted by porter
(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
# 5  
Old 08-03-2007
Searching on google would have provided links like this one, which will help you along.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

Hello, I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build. The first part is what confuses me -the cabling. I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies

2. Shell Programming and Scripting

Send/receive file through serial using minicom

i have connected with my board through serial interface using minicom and i am running a bash script, which should test ethernet (ping test), USB read/write, RS232 .. I have managed to test ethernet and USB read/write. I test ethernet with ping. I test USB read/write, using dd and verifying... (10 Replies)
Discussion started by: linuxmember
10 Replies

3. Programming

Serial file transfer protocol / checksums

Hello ppl, I'm working on a windows program simulating an existing Unix program, the program is a firmware downloader, it sends a binary firmware file through the serial port (rs232) to a Set-Top Box running under unix system too, as i'm a poor unix user and not a unix programmer i choosed the... (10 Replies)
Discussion started by: nidal
10 Replies

4. Shell Programming and Scripting

file transfer using AWK over serial port

I have a unix system that only has AWK to program with which hooks up to a windows or linux based system with all progamming and software capabilities. The link between the systems is typically a 9600 baud TTY port on the AWK system and COM1 on the other system. I can cat <filenm> from the unix... (4 Replies)
Discussion started by: bobfrog
4 Replies

5. Solaris

How to enable Serial port on ILOM, when Network Port is enabled in parallel

Hi Everyone, In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies

6. SCO

Need some advice concerning file transfer with a serial connection

Hi, I have a SCO Unix ver 5.0.7 from which I need to get some files. The problem is that I'm working remotely (have no physical access) and using Dejawin because this server is only has a serial connection to a Windows machine. Ucopy isn't on the server. What I was thinking is to do a print... (5 Replies)
Discussion started by: spartanboy184
5 Replies

7. Shell Programming and Scripting

Need help with serial port

Hi, I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Discussion started by: charlie.arya
0 Replies

8. SCO

data transfer from serial port

dear sir, pls. can you help me ? , my os is unix sco 5.0.4 and ,server dat derive (1,4gb) not working, now i want to transfer my server data in other machine (unix/other possible) by serial port/other port comminication. thanks pankaj raval (2 Replies)
Discussion started by: pankajbraval
2 Replies

9. HP-UX

SFTP Protocol: How to transfer the file in PC Format

Hi, We are facing issue with files transfered using SFTP in Hp-UX. The transfered files are in Unix Format. That is, file format as UNIX (LF) instead of a PC format (CR & LF). How can we achieve file transfers as PC format using SFTP? Your help and input will be highly appreciated. ... (2 Replies)
Discussion started by: brap45
2 Replies

10. SCO

Serial File Transfer

I need to transfer files from a sco/unix system to a windows xp system and they are only connected via a digiboard serial connection. The terminal emulation software connects and runs a program but I need to transfer files. Anyone know a good solution? (2 Replies)
Discussion started by: chansen
2 Replies
Login or Register to Ask a Question

Featured Tech Videos