C Code - File transfer from BB-XM to PC via Serial

Hi,

I need to transfer files from BB to my host PC via serial.

I know that usually zmodem is used, but

  1. how to know if zmodem is installed?

  2. Which is the C code in order to execute the file transfer process?

Thank you in advance,
Pietro

Hi,

I need to transfer files from BB to my host PC via serial.

I know that usually zmodem is used, but

1) how to know if zmodem is installed?

Take a look at the lrzsz package. I've seen the command line utilities
installed as "lrz" and "lsz" or just as "rz" and "sz" depending on the
Linux distro.

Ok, but how to know if BeagleBoard can send/receive a file from my PC?
Which are the ways to do it?
I’m using the serial as stdout.
And then, which is the C code to do that?

Thank you, really

Ok, but how to know if BeagleBoard can send/receive a file from my PC?

Maybe I'm not understanding your question, but the lrz/lsz utilities
run on Linux so they'll run on the BeagleBoard once you've installed
them. They send or receive over stdout and stdin. On the PC side, you
either run lrz/lsz, or if you're running Windows, your terminal
program probably supports ZMODEM.

Which are the ways to do it?
I'm using the serial as stdout.
And then, which is the C code to do that?

I've never tried to integrate ZMODEM code directly into a program of
mine. It seems easier to have your program start up lrz or lsz when
they're needed.

Frank

Frank is perfectly right. If u _need_ ZMODEM.
But ZMODEM is only supported in modern Systems for backwards compatibility.
If your serial connection to BB-XM is USB on Win 7/8 host then much more
reliable options are available.
Maybe you tell us a bit more about your setup and what you call "serial".

If your connection is RS232 or similar, then ZMODEM is still a good option.

Sorry,
but I need to transfer an ASCII text from Beagle Board to any location on my PC.
So, could you help me to find a fast solution?

Thank you…