Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

560
Vistas
Linux command to send binary file to serial port with HW flow control?

I need to send binary file to rs232 device (printer) which not always can accept data and so it has BUSY output signal, which i connect to CTS pin.

I try to use it with minicom, and hardware flow control works just fine. But i can't send raw file using minicom, it works wrong ant i think minicom not loves zeroes in file.

At other hand, i try to use cat file > /dev/ttyS5, along with stty -F /dev/ttyS5 clocal or stty -F /dev/ttyS5 crtscts. None of this work: HW control not work at all, data transfer just stops (often at middle of byte when space state on TXD stucks!) and never continues after release of BUSY. Behavior not depends on clocal or crtscts i use. And also cat file > /dev/ttyS5 never wait, even if BUSY was active before this command.

Please note, using minicom, i ensure that i have correct connections, support for RTS/CTS in kernel and in RS232 PCI-E board, etc.

So the question is, how i can do correct binary file transfer from command line using HW flow control? Thanks.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Here is a guy who says he has a solution for transferring binary data with minicom: http://www.dannysung.com/wmain/linux/tips/sending-binary-files-via-minicom/

I don't understand why his little script is different from cat file >/dev/ttySX but maybe you can give it a try.

over 4 years ago · Santiago Trujillo Denunciar

0

When I made those sort of test (20 years ago) I used unix dd command. Find a similar one in your linux flavor.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda