KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes Version 20041226.1 December 26, 2004 Paul Messer, WA7ZVY KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes Change Log Date of change: April 1, 2004 April 15, 2004 December 9, 2004 December 12, 2004 December 26, 2004 December 26, 2004 Subject of change: Initial file creation Major additions and changes to entire doc External Telemetry Adapter added Control Output text added External Control Adapter pictures added Page 2 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes Table of Contents 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. Telemetry Inputs on KPC-3+ ...................................................................... 4 Telemetry Range Control ............................................................................. 4 Pre-wired Analog Telemetry Inputs .......................................................... 4 Patch Wired Telemetry Inputs .................................................................... 5 Digital Only Telemetry Inputs .................................................................... 5 Telemetry UI Frame ...................................................................................... 5 Telemetry Input Wiring Configuration Table ......................................... 6 Control Outputs on KPC-3+ ........................................................................ 7 Telemetry Input and Control Output Schematic Diagram ................... 8 System Level Diagram .............................................................................. 9 Telemetry Breakout Adapter ................................................................. 10 DB-25 Terminal Connector Pin-out .................................................... 12 Control Breakout Adapter ...................................................................... 13 PCB Layout for Attenuator Board ....................................................... 14 December 26, 2004 Page 3 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 1. Telemetry Inputs on KPC-3+ There are five analog telemetry inputs possible on the KPC-3+. However, of these five inputs, only two of them are connected to the external input connector pins in an off-the-shelf stock KPC-3+. The other three inputs must be internally patch wired to an external connector to make them available for external usage. The analog telemetry inputs, to the KPC-3+’s CPU, are limited to an input voltage range of 0.0 volts to 5.0 volts. Therefore, to monitor devices or functions that have a higher voltage range, an attenuating resistive divider must be used. The two pre-wired telemetry inputs have a non-populated resistor location available for each of them, to create the attenuators for those channels. Also, a single digital only telemetry input is available by using the Data Terminal Ready input signal. This DTR signal is wired, but not used by the KPC-3+’s software. It is, however, reported to the user in the telemetry data UI frame packet. 2. Telemetry Range Control The later versions of the KPC-3+ software (version 9.0) include a “RANGE” command. This command allows the user to specify how the analog telemetry data will be reported back to the user. The user must still insure that the input signal level stays within the 0.0 volt to 5.0 volt input range. But, by using the “RANGE” command, the user, for example, can specify that a signal going from 0.0 volts to 5.0 volts will report back to the user as 0 to 150. So, for example, if one wanted to measure a 120VDC power supply going from 0 to 150VDC, this would require that an input attenuator with a 30:1 attenuation factor be used. Since it is important to keep the actual voltage levels going into the KPC-3+ at a “safety extra low voltage level” (less than 48 volts, and a lower level is even better), using an external attenuator setup is required. One possible solution would be an external 100k-ohm ½ watt input resistor with an external 3450-ohm pull-down resistor. (However, the input leakage current needs to be factored into any high value resistor usage, as it could significantly affect the accuracy of the sampled signal). No internal pull-down resistor would be used inside the KPC-3+ with this example external attenuator arrangement. 3. Pre-wired Analog Telemetry Inputs The two pre-wired telemetry inputs could be input on either the DB-9 radio port or the DB-25 terminal port. For consistency, and to keep these input signals independent of the control output signals (see Section 9 on page 8), it is recommended that the inputs be setup to use the DB-25 terminal connector input. This way, both the pre-wired inputs and the patch wired inputs would all be on the same DB-25 terminal port connector. The information in the configuration table shows the positions to move jumpers to achieve this setup. December 26, 2004 Page 4 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes Two resistor positions are available at R13 & R27 to act, along with the two 10k ohm input resistors R18 & R24, as an attenuator to allow higher voltage levels to be input into the telemetry inputs. If these resistors locations (R13 & R27) are populated with 2.4k ohm resistors, this will cause the scale for each input to be set such that the telemetry channel will read in 0.1V steps to produce a reading of 050 for a 5V input signal and 120 for a 12V input signal, for example. (The resistive divider is made up of a 10k ohm input resistor with the 2.4k-ohm resistor going to ground). This type of an arrangement might be useful for KPC-3+ units with older software that do not support the “RANGE” command. 4. Patch Wired Telemetry Inputs To use the other three telemetry channels, a small circuit board is constructed with positions for attenuator resistors, zener protection diodes, and small filter capacitors. This small circuit board is sized such that it will fit into the hole that the optional 9V battery utilizes. This small circuit board is wired to the P2 connector (to allow external access) and to the CPU integrated circuit for the actual A/D input signals. 5. Digital Only Telemetry Inputs There is one binary only telemetry input available. This input is the DTR signal input on the DB-25 terminal connector, P2-20. The KPC-3+ manual states, "Although interconnected via a buffer IC to the processor, this line is currently ignored." The high or low state of the DTR input signal is reported in bit 7 of the telemetry binary values ( b7 b6 b5 b4 b3 b2 b1 b0 ). Note: The buffer in this pin's path is an inverter, so the reported signal will be inverted from the actual input level. The five analog telemetry inputs may also be used for binary data inputs. Their state is also reported in the telemetry binary values ( b7 b6 b5 b4 b3 b2 b1 b0 ). The reported signal levels for these five signals are NOT inverted. Note: It may be necessary to remove the pull-down scaling resistor, on the input, to achieve satisfactory signal levels for proper detection of logic 1 levels from typical TTL, LVTTL, or LVCMOS devices. 6. Telemetry UI Frame A telemetry UI frame reports as: T#nnn,an0,an1,an2,an3,an5,b7b6b5b4b3b2b1b0 Where: • nnn is a decimal sequence number that cycles from 000 to 999 and increments upon each transmission of the telemetry frame. At count 999 it returns to 000 on the next increment. • an0,an1 are the analog telemetry values from the pre-wired telemetry channels. December 26, 2004 Page 5 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes • • an2,an3,an5 are the analog telemetry values for the patch wired telemetry channels. b7 b6 b5 b4 b3 b2 b1 b0 are the binary reported values for the telemetry port. The most significant bit, b7, corresponds to the DTR signal level. b5, b3, b2, b1, b0 correspond to the binary logic high or low levels of an5, an3, an2, an1, an0. 7. Telemetry Input Wiring Configuration Table The following table shows information related to the connections necessary to configure the AD0 and AD1 pre-wired telemetry channels and to add the A/D Attenuator Board to the KPC-3+ for telemetry input: Channel AD0 AD1 Wire DB-25F Terminal Connector Pin or Internal Connection Point Add Wire to CPU Pin (note a wire pad is available close to the CPU pin) Voltage or Function Monitored or Controlled Already wired on KPC-3+ PCB. Place jumper on J8 center to pin 2. Connects input to P2-18. Add a 6.0v zener diode at R27 position, anode to ground, cathode to signal line. Add a 2.4K ohm resistor in parallel with the added zener diode. Already wired on KPC-3+ PCB. Users choice. Already wired on KPC-3+ PCB. Place jumper on J10 center to pin 2. Connects input to P2-11. Add a 6.0v zener diode at R13 position, anode to ground, cathode to signal line. Add a 2.4K ohm resistor in parallel with the added zener diode. Already wired on KPC-3+ PCB. Users choice. AD2 Attenuator Board Pad W2 to U5-63 wire pad. Users choice. Attenuator Board Pad W1 to P2-12. AD3 Attenuator Board Pad W4 to U5-65 wire pad. Users choice. Attenuator Board Pad W3 to P2-14. AD5 Attenuator Board Pad W5 to P3-1 (internal) or P2-19 (external). Attenuator Board Pad W6 to U5-62 wire pad. +12V (internal) or users choice (external). Ground Connect Attenuator Board Pad WG to GND pad near R33. December 26, 2004 Page 6 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 8. Control Outputs on KPC-3+ Two open-drain control outputs are available on the KPC-3+’s radio port, P1. The two control pins are capable of sinking a maximum of 200mA continuously, and 500mA pulsed. The voltage level applied to the control pins must be less than +60VDC and it is highly recommended to limit any voltage level to +48VDC or less. Negative voltage levels are not permitted. The two control pins are controlled with the KPC-3+’s “CTRL” command. Command syntax is: CTRL < A | B > [ n | ON | OFF | LONG ] Where: < A | B > selects which control output the command will affect, either CTLA or CLTB. If not specified, both the CTLA and CTLB outputs are affected. [ n | ON | OFF | LONG ] specifies how to affect the selected control output(s). n specifies the number of 100 milliseconds pulses to do to the port(s). The valid range is from 1 to 20. ON specifies to turn on the control output transistor, which will drive the open-drain output to GROUND. OFF specifies to turn off the control output transistor, which will allow the open-drain output to float, or go to any attached pull-up resistor’s positive rail voltage. LONG specifies to turn on the control output transistor for one pulse lasting 1.5 seconds duration. Note: only one LONG pulse can be generated at a time with the CTRL command. December 26, 2004 Page 7 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 9. Telemetry Input and Control Output Schematic Diagram KPC-3+ P2- DB25F Serial Port Connector Circuitry inside this box (except D a, D b, R13 & R27) is already present on the KPC-3+ circuit board. MC68HC11F1 J8 B P1 - DB9F Radio Port Connector U5 R24 10K 1 A 59 (AN0) 2 P2 - 18 (AD0) R27 2.4K Install R27 for input scaling. Da 6.0V C1 .001uF (CTLA) 37 J10 A P2 - 11 (AD1) G S Add Zener Protection Diodes R18 10K 1 B 61 (AN1) 2 Install R13 for input scaling. P1 - 8 (CTLA) D C42 .001uF R13 2.4K Db 6.0V P1 - 4 (CTLB) D C35 .001uF C3 .001uF (CTLB) 36 G S A / D Attenuator Board W1 P2 - 12 (AD2) R1 10K W2 63 (AN2) R2 2.4K W3 P2 - 14 (AD3) R3 10K W5 Internal +12V (P3-1) December 26, 2004 C1 .001uF W4 65 (AN3) R4 2.4K P2 - 19 (AD5) D1 6.0V D2 6.0V R5 10K C2 .001uF W6 62 (AN5) R6 2.4K D3 6.0V C3 .001uF 20041212.1 PM Page 8 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 10. System Level Diagram The system level diagram shows one possible telemetry implementation. This configuration allows the monitoring of power system sources along with the internal power delivery in the KPC-3+. Five inputs and two outputs are available for general monitor and control functions. Note that the two digital control outputs, CTLA and CTLB, are located on the radio port connector, P1. KPC-3+ Automatic 120 VAC Mains Transfer Switch Gen 120 VAC Power Supply 13.8 VDC Output 12 VDC Power Input AD5 Scale: 0-25.5 VDC Range: 0-255 Engine 13.8 VDC Battery Float Charged Auto-start Generator FAT PLUG 120 VAC In 6.0 VDC Out cap filtered FAT PLUG 120 VAC In 6.0 VDC Out cap filtered 5VDC Regulator AD3 Scale: 0-25.5 VDC Range: 0-138 AD2 Scale: 0-25.5 VDC Range: 0-138 AD1 Scale: 0-25.5 VDC Range: CTLA Open Drain Output AD0 Scale: 0-25.5 VDC Range: DOOR INTRUSION SWITCH December 26, 2004 CTLB Open Drain Output DTR (inverting digital only input) Typical: 0-5 VDC Pulled high by a 10K to +5V. To use, pull to GND with an open collector gate, transistor, or switch. Page 9 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 11. Telemetry Breakout Adapter An external breakout adapter, for the telemetry signals, is constructed with a DB25 male plug, a DB25 female socket and a set of side entry vertical screw terminal strips. This allows easy access to the KPC-3+’s telemetry input signals. The adapter unit is built into a DB25 “in-to-out” adapter housing. The male connector of the adapter is plugged into the KPC-3+’s female DB25 serial port connector (P2); and, any serial device normally used with the KPC-3+ is then plugged into the female DB25 socket on the Telemetry Adapter. KPC-3+ EXTERNAL TELEMETRY ADAPTER DB25-F DB25-M 1 Chassis GND 1 2 TxD 2 3 RxD 3 4 RTS 4 5 CTS 5 6 DSR 6 7 Signal GND 7 8 DCD 9 N.C. 10 8 N.C. 9 N.C. N.C. 10 11 N.C. (AD1 / CTLA) 11 12 N.C. (AD2) 12 (optional tnc pwr) 13 13 14 N.C. (AD3) 15 N.C. N.C. 15 16 N.C. N.C. 16 17 N.C. N.C. 17 18 N.C. (AD0 / CTLB) 18 N.C. (AD5) 19 20 N.C. DTR 20 21 N.C. N.C. 21 N.C. 22 N.C. 23 N.C. 24 N.C. 25 19 22 N.C. 23 N.C. 24 N.C. 25 N.C. AD0 AD1 AD2 AD3 DTR AD5 GND GND 14 WA7ZVY 20041205.1 December 26, 2004 Page 10 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes Telemetry Breakout Adapter Telemetry Breakout Adapter Telemetry Breakout Adapter December 26, 2004 Page 11 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 12. DB-25 Terminal Connector Pin-out EIA-232 Industry Standard Pinout with KPC-3+ Signal Names (Green), KPC-3+ Not-used Signals (Blue) and Telemetry Input Signal Overlay (Red) (for reference) Signal Name/Direction Inside KPC-3+ <== is from outside world to KPC's hardware. Logic Ground === Signal Direction At External Connector. Arrow in is from outside world. Arrow out is going to outside world. Signal Name/Direction Inside KPC-3+ ==> is from outside world to KPC's hardware. ==> AD3 (A/D Attenuator) TXD <== ( === Not Used ) RXD ==> ( === Not Used ) RTS <== CTS ==> DSR ==> Logic Ground === DCD ==> ( Not Used === ) ( Not Used === ) AD1<== ( === Not Used ) ==> AD0 ==> AD5 (A/D Attenuator) ==> DTR ( === Not Used ) ( === Not Used ) ( === Not Used ) AD2 (A/D Attenuator) <== ( === Not Used ) Jumper Selectable === ( === Not Used ) 20040401.2 PM December 26, 2004 Page 12 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 13. Control Breakout Adapter An external breakout adapter, for the control signals, is constructed with a DB9 male plug, a DB9 female socket and a set of side entry vertical screw terminal strips. This allows easy access to the KPC-3+’s control output signals. The adapter unit is built into a DB9 “in-to-out” adapter housing. The male connector of the adapter is plugged into the KPC-3+’s female DB9 radio port connector (P1); and, any radio device normally used with the KPC-3+ is then plugged into the female DB9 socket on the Control Adapter. KPC-3+ EXTERNAL CONTROL ADAPTER DB9-F DB9-M 1 TX Audio 1 2 XCD 2 3 PTT 4 3 CTLB N.C. 4 5 RX Audio 5 6 GND 6 7 Optional Power or RESET 8 9 7 CTLA N.C. Optional Ground or RESET 8 9 CTLA GND CTLB GND WA7ZVY 20041212.1 Control Breakout Adapter December 26, 2004 Control Breakout Adapter Page 13 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 14. PCB Layout for Attenuator Board 1:1 Bottom View 1:1 Mirrored Bottom View 1.00" 1.75" 1:1 Top View W6 C3 D3 R6 R5 C2 D2 R4 R3 C1 D1 R2 R1 © 2004 PM W5 W4 W3 W2 W1 WG 1:1 Mirrored Top View A/D Attenuator 1:1 Composite View W6 W5 C3 D3 R6 D2 R5 C2 December 26, 2004 R4 D1 R3 C1 R2 R1 © 2004 PM W4 W3 W2 W1 WG A/D Attenuator Page 14 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 2:1 Bottom View 1.00" 1.75" 2:1 Top View W6 W5 W4 W3 W2 W1 C3 D3 R6 R5 C2 D2 R4 R3 C1 D1 R2 R1 WG A/D Attenuator © 2004 PM 2:1 Composite View W6 W5 W4 C3 D3 R6 R5 C2 D2 © 2004 PM R4 R3 C1 D1 R2 December 26, 2004 W3 W2 W1 R1 WG A/D Attenuator Page 15 of 16 KPC-3+ Telemetry Input and Control Output Standardization Document for Oregon Coast Repeater Group APRS Digi-peaters and Network Nodes 2:1 Mirrored Bottom View 2:1 Mirrored Top View December 26, 2004 Page 16 of 16