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
Change Log Date of change: April 1, 2004 April 15, 2004 December 9, 2004 December 12, 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 December 26, 2004 Page 2 of 16
Table of Contents 1. Telemetry Inputs on KPC-3+... 4 2. Telemetry Range Control... 4 3. Pre-wired Analog Telemetry Inputs... 4 4. Patch Wired Telemetry Inputs... 5 5. Digital Only Telemetry Inputs... 5 6. Telemetry UI Frame... 5 7. Telemetry Input Wiring Configuration Table... 6 8. Control Outputs on KPC-3+... 7 9. Telemetry Input and Control Output Schematic Diagram... 8 10. System Level Diagram... 9 11. Telemetry Breakout Adapter... 10 12. DB-25 Terminal Connector Pin-out... 12 13. Control Breakout Adapter... 13 14. PCB Layout for Attenuator Board... 14 December 26, 2004 Page 3 of 16
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
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 ( b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 ). 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 ( b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 ). 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,b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 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
an2,an3,an5 are the analog telemetry values for the patch wired telemetry channels. b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 are the binary reported values for the telemetry port. The most significant bit, b 7, corresponds to the DTR signal level. b 5, b 3, b 2, b 1, b 0 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 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 AD0 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. AD1 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 W1 to P2-12. Attenuator Board Pad W2 to U5-63 wire pad. Users choice. AD3 Attenuator Board Pad W3 to P2-14. Attenuator Board Pad W4 to U5-65 wire pad. Users choice. 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
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 ON OFF specifies the number of 100 milliseconds pulses to do to the port(s). The valid range is from 1 to 20. specifies to turn on the control output transistor, which will drive the open-drain output to GROUND. 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
9. Telemetry Input and Control Output Schematic Diagram P2- DB25F Serial Port Connector P2-18 (AD0) P2-11 (AD1) B A Circuitry inside this box (except D a, D b, R13 & R27) is already present on the KPC-3+ circuit board. J8 J10 1 2 Install R27 for input scaling. 1 2 Install R13 for input scaling. R24 10K R18 10K KPC-3+ R27 2.4K R13 2.4K D a 6.0V C42.001uF Add Zener Protection Diodes D b 6.0V C35.001uF U5 MC68HC11F1 59 (AN0) (CTLA) 37 61 (AN1) (CTLB) 36 G G A D S B D S C1.001uF C3.001uF P1 - DB9F Radio Port Connector P1-8 (CTLA) P1-4 (CTLB) P2-12 (AD2) W1 A / D Attenuator Board R1 10K R2 2.4K D1 6.0V W2 C1.001uF 63 (AN2) P2-14 (AD3) W3 R3 10K R4 2.4K D2 6.0V W4 C2.001uF 65 (AN3) P2-19 (AD5) W5 R5 10K R6 2.4K D3 6.0V W6 C3.001uF 62 (AN5) Internal +12V (P3-1) 20041212.1 PM December 26, 2004 Page 8 of 16
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. 120 VAC Mains Automatic Transfer Switch 120 VAC Power Supply 13.8 VDC Output KPC-3+ 12 VDC Power Input AD5 Scale: 0-25.5 VDC Range: 0-255 Gen Engine Auto-start Generator 13.8 VDC Battery Float Charged 5VDC Regulator FAT PLUG 120 VAC In 6.0 VDC Out cap filtered FAT PLUG 120 VAC In 6.0 VDC Out cap filtered 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: AD0 Scale: 0-25.5 VDC Range: CTLA Open Drain Output CTLB Open Drain Output DOOR INTRUSION SWITCH 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. December 26, 2004 Page 9 of 16
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 1 2 3 4 5 6 7 8 Chassis GND TxD RxD RTS CTS DSR Signal GND DCD DB25-M 1 2 3 4 5 6 7 8 9 9 10 11 12 13 14 (optional tnc pwr) (AD1 / CTLA) (AD2) (AD3) 10 11 12 13 14 15 15 16 16 17 18 19 20 (AD0 / CTLB) (AD5) DTR 17 18 19 20 21 22 23 24 25 AD0 AD2 DTR GND AD1 AD3 AD5 GND 21 22 23 24 25 WA7ZVY 20041205.1 December 26, 2004 Page 10 of 16
Telemetry Breakout Adapter Telemetry Breakout Adapter Telemetry Breakout Adapter December 26, 2004 Page 11 of 16
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. 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. Logic Ground === TXD <== RXD ==> RTS <== CTS ==> DSR ==> Logic Ground === DCD ==> ( Not Used === ) ( Not Used === ) AD1<== AD2 (A/D Attenuator) <== Jumper Selectable === ==> AD3 (A/D Attenuator) ( === Not Used ) ( === Not Used ) ( === Not Used ) ==> AD0 ==> AD5 (A/D Attenuator) ==> DTR ( === Not Used ) ( === Not Used ) ( === Not Used ) ( === Not Used ) ( === Not Used ) 20040401.2 PM December 26, 2004 Page 12 of 16
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 1 2 3 4 5 6 7 8 9 TX Audio XCD PTT RX Audio GND Optional Power or RESET Optional Ground or RESET CTLB CTLA DB9-M 1 2 3 4 5 6 7 8 9 CTLA GND CTLB GND WA7ZVY 20041212.1 Control Breakout Adapter Control Breakout Adapter December 26, 2004 Page 13 of 16
14. PCB Layout for Attenuator Board 1:1 Bottom View 1:1 Mirrored Bottom View 1.00" 1.75" 1:1 Top View 1:1 Mirrored Top View W6 W5 W4 W3 W2 W1 C3 R5 C2 R3 C1 R1 D3 R6 D2 R4 D1 R2 WG 2004 PM A/D Attenuator 1:1 Composite View W6 W5 W4 W3 W2 W1 C3 R5 D3 R6 C2 R3 D2 R4 C1 R1 D1 R2 WG 2004 PM A/D Attenuator December 26, 2004 Page 14 of 16
2:1 Bottom View 1.00" 1.75" 2:1 Top View W6 W5 W4 W3 W2 W1 C3 R5 C2 R3 C1 R1 D3 R6 D2 R4 D1 R2 WG 2004 PM A/D Attenuator 2:1 Composite View W6 W5 W4 W3 W2 W1 C3 R5 C2 R3 C1 R1 D3 R6 D2 R4 D1 R2 WG 2004 PM A/D Attenuator December 26, 2004 Page 15 of 16
2:1 Mirrored Bottom View 2:1 Mirrored Top View December 26, 2004 Page 16 of 16