Results 1 to 3 of 3

Thread: How to transfer a binary file via minicom?

  1. #1
    Join Date
    Mar 2008
    Beans
    4

    Unhappy How to transfer a binary file via minicom?

    Hi folks,

    I am trying to transfer a binary file via minicom but in its "send file" options only there are only five options: zmodem, xmodem, ymodem, kermit, and ascii. In Windows XP, I can use "File->Send file" in Tera Term Pro terminal software and check its "Binary" checkbox.

    Is there any body who knows how to do it? Thanks in advance.


    Cuthbert

  2. #2
    Join Date
    Dec 2006
    Beans
    483
    Distro
    Hardy Heron (Ubuntu Development)

    Re: How to transfer a binary file via minicom?

    Quote Originally Posted by cuthbertkao View Post
    Hi folks,

    I am trying to transfer a binary file via minicom but in its "send file" options only there are only five options: zmodem, xmodem, ymodem, kermit, and ascii. In Windows XP, I can use "File->Send file" in Tera Term Pro terminal software and check its "Binary" checkbox.

    Is there any body who knows how to do it? Thanks in advance.


    Cuthbert
    Could you just mount the device to a location on your HD, then cp it over? I'm asking and suggesting at the same time!

    Russo
    Macbook Pro C2D
    Ubuntu 8.04

  3. #3
    Join Date
    Jul 2007
    Location
    usa: inland northwest
    Beans
    80
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to transfer a binary file via minicom?

    Quote Originally Posted by cuthbertkao View Post
    I am trying to transfer a binary file via minicom but in its "send file" options only there are only five options: zmodem, xmodem, ymodem, kermit, and ascii. In Windows XP, I can use "File->Send file" in Tera Term Pro terminal software and check its "Binary" checkbox.
    I just had to do this: I ignored minicom and catted the file directly to the serial port:

    Code:
    cat binfile > /dev/ttyUSB0
    (if your user doesn't have permissions to access the serial port (i.e. you can only access the serial port in minicom by running as root or with sudo), you'll probably get an error; try something like "cat binfile | sudo tee /dev/ttyUSB0")

    You can test this before sending your binary file by echoing a command to the serial port that you expect will generate some sort of response in minicom. So, for example, I needed to send the command 'update' in minicom before uploading the file. Instead of typing "update" in minicom, I can "echo update > /dev/ttyUSB0" and the device on the serial port (seen through minicom) responded with the "send update file:" prompt that I expected to see.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •