[App_rpt-users] Parallel printer port output pins?
K&R Yoksh
yokshs at sbcglobal.net
Mon Apr 11 03:01:12 UTC 2011
Hello Chuck,
I have had great luck with the parallel port under app_rpt.
First thing to try is: (Make sure Asterisk is controlling the
parallel port!)
# lsof /dev/parport0
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
asterisk 25664 root 24u CHR 99,0 1010 /dev/parport0
Next, make sure parallel port pins 18-25 are grounded. Some ports are quite
picky about this.
Here is my usbradio.conf template for using an IRLP/PLRI board:
[usb1234]
rxchannel=usb1234
;
pp3 = ptt ; Parallel port settings
pp11 = cor
pp4=out0 ; in, cor or ctcss
pp5=out0 ; multiple pins can be set to PTT if desired
pp6=out0 ; pins 4,5,6 are AUX 1,2,3, default off
;
hdwtype=0
rxboost=1
txboost=0
rxctcssrelax=1
txctcssdefault=100.0
rxctcssfreqs=100.0
txctcssfreqs=100.0
carrierfrom=ppinvert
ctcssfrom=no
rxdemod=speaker
txprelim=no
txlimonly=no
txtoctype=no
txmixa=voice
txmixb=no
invertptt=0
duplex=0
rxondelay=0
rxnoisefiltype=0
eeprom=0
Next, here's a little script to control parallel pins from a prompt:
#!/bin/bash
# Script to control PLRI Aux ports from prompt
# by Kyle Yoksh January 2011
#
# Usage: pport [node no] [parallel port pin] [logic state]
#
# Example, pport 2211 2 1 turns pp pin 2 on
#
asterisk -r -x "rpt cmd $1 cop 61,PP$2"="$3 0"
One last thought, I've noticed that app_rpt will not reliably control the
parallel port if you have a node configured in rpt.conf for
"rxchannel=Radio/usbxxxx" without a fob present.
73 for now. Good luck.
Kyle
K0KN
--- Original Message ---
I am trying to use the parallel printer port output pins on an Intel ATOM
D510MO mother board. I have included below my usbradio.conf file.
For testing there is a board with LED's attached to the port and on POST it
displays various patterns then nothing until fully booted when it shows only
pin 4 active.
I have tried this with the pport commented out and with the pbase commented
out and the same result. I have tried each of the options available in the
BIOS setup for the parallel port and same result.
The only lines found in the log files that seem to relate to the parport are
the following...
Apr 10 13:26:10 server8 kernel: parport: PnPBIOS parport detected.
Apr 10 13:26:10 server8 kernel: parport0: PC-style at 0x378, irq 7 [PCSPP]
Apr 10 13:26:10 server8 kernel: lp0: using parport0 (interrupt-driven).
Apr 10 13:26:12 server8 asterisk[2548]: VERBOSE[2548]: -- Parallel port
is /dev/parport0
Does anyone have any suggestions as to how I can troubleshoot this or what
might be the problem?
Chuck
- - - - - cut here - - - - -
; Usbradio channel driver Configuration File
[general]
; General config options that apply to entire channel driver.
pport=/dev/parport0 ; Specify parport device (optional)
pbase=0x378 ; Specify printer port I/O address (if not using
parport driver) (optional)
[usb27722]
; set default output pin states
pp2=out0 ; 1 to select low power, 0 to select high power transmit
pp3=out1 ; 1 to enable aux input on repeater
pp4=out0 ; 1 to disable repeater transmitter
pp5=out1 ; 1 to select AC operation 0 to select battery test
operation
pp6=out0 ; 1 to enable space heater
pp7=out0 ; 1 to light yellow test LED
pp8=out1 ; 1 to light red test LED
pp9=out1 ; 1 to light green test LED
;
hdwtype=0
rxboost=1
txboost=1
rxctcssrelax=1
txctcssdefault=103.5
rxctcssfreqs=103.5
txctcssfreqs=103.5
;rxctcssoverride=0
carrierfrom=dsp
ctcssfrom=dsp
rxdemod=flat
txprelim=yes
txlimonly=no
txtoctype=no
txmixa=composite
txmixb=voice
invertptt=0
duplex=1
rxondelay=0
rxnoisefiltype=0
eeprom=0
More information about the App_rpt-users
mailing list