linux - Send raw serial stream to printer device -


i have problem sending raw serial stream usb printer:

i've connected null modem cable pc raspberry pi, next connected printer usb port of rapberry , installed printer driver on windows choosing install printer on port com1 (this option legacy devices). have on raspberry steram of raw data printer driver. ask how send stream on pi printer serial port.

i know filesystem path usb port follows:

  • /dev/bus/usb/001/012
  • /dev/usb/lp0
  • /dev/usb/lp1

but cant send directly them ex:

  • socat /dev/tty /dev/usb/lp0

i searched while subject , think because usb device has many edpoints , interfaces. question how send serial stream specyfic endpoint?

my environment:

  • printer
  • pc windows 10
  • raspberry pi raspbian


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -