OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Printer port to control other devices GPIO
« previous next »
  • Print
Pages: [1]

Author Topic: Printer port to control other devices GPIO  (Read 2987 times)

MozOz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Printer port to control other devices GPIO
« on: December 26, 2017, 08:39:46 am »
how to control the printer port for the use of resetting modems and other devices
and the reading the port for feedback


« Last Edit: December 26, 2017, 09:11:34 am by MozOz »
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Printer port to control other devices
« Reply #1 on: December 26, 2017, 09:14:59 am »
If you are looking for a CLI tool, I usually use minicom for RS-232 communication on Linux - It is available for FreeBSD too:
https://www.freebsd.org/cgi/man.cgi?minicom
It might work with a parallel port too.
Logged

MozOz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Printer port to control other devices GPIO
« Reply #2 on: December 26, 2017, 09:41:16 am »
looked around for minicom parallel port looks like mostly RS232

i found this
https://numato.com/product/8-channel-usb-gpio-module-with-analog-inputs
they also have eg code
maybe can adopt it
https://numato.com/product/8-channel-usb-gpio-module-with-analog-inputs
using Python


Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Printer port to control other devices GPIO
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2