Skip to content

Example_FSG

Rolf Obrecht edited this page Jun 4, 2023 · 11 revisions

Raspberry Pi in a control device / replacing a control device (FSG)

If you are missing a CCU (FSG) or your CCU is defective, it is also possible to mimic/replace the CCU behaviour via piTelex in a special mode, so that you can connect a current loop teleprinter directly to piTelex and use it with full CCU functionality.

Hardware

  • The relay for switching the loop polarity is replaced by a power relay switching the mains power for the teletype (230 volts).

  • Furthermore, three additional pushbuttons, connected to the RPi's GPIO, take over the functionality of AT, ST and LT buttons of the CCU.

  • The state of the CCU can be indicated via the LEDs LED_A (line active), LED_WB (ready to dial, "WählBereit"), LED_LT (local mode).

  • ALternatively you may concentrate all that to a minimalistic single pushbutton 1T which will cycle through the states, and one dual color LED LED_status_R(red terminal) and LED_status_G(green terminal).

  • If you want to dial via number switch, connect it to a pin pin_number_switch of the RPi.

For the current loop power supply, a voltage of about 24V= will be sufficient, because we only have to feed the TTY's receiver coil, no CCU in line.

Software

See TW39 Raspberry Pi

telex.json has to reflect the missing CCU, and must configure piTelex for this special mode. This is done by modifying the RPiTTY device enries a bit and, most important, activating the RPiCtrl device which allows to specify the pushbuttons and LEDs mentioned above. For Details see SW_DevRPiCtrl

Example 1

This example uses the same hardware as the example "TW39 Raspberry Pi" except using a SSR for power switching.

The FL/A connector as solderes on the Raspberry Pi Zero W to connect an external antenne - a metal case is not WLAN-friendly.

Power

Two industrial power supplies are added to source 5 volt for the RPi and 24 volt for the current loop.

Note: For a teletype without a real control device (FSG) in line a loop voltage is adequate.

Pin Connection for RPi
  • TXD = Pin 11 (GPIO 17)
  • RXD = Pin 13 (GPIO 27)
  • Number Switch = Pin 31 (GPIO 6)
  • AT-Button = Pin 24 (GPIO 8)
  • ST-Button = Pin 26 (GPIO 7)
  • Show Sign = Pin 15 (GPIO 22) over NPN-transistor to 24 volts
  • GND = Pin 6 and/or 9, 14, 20, 25, 30, 34, 39
  • 5V = Pin 2 or 4

Note: All buttons/switches connected to GND

Note: These are the default pins. Other combinations can be set in telex.json file.

RPi Pinout

Interface Connection

Example 2

This is a fully DYI solution with a custom circuit layout. DSCF1654 DSCF1655

Schematics

pitelex

Sections RPiTTYand RPiCtrlof telex.json:

(used pins are not always standard...)

    "RPiTTY": {
      "type": "RPiTTY",
      "enable": true,
      "pin_txd": 27,
      "pin_rxd": 17,
      "inv_rxd": false,
      "pin_relay": 6,
      "inv_relay": false,
      "pin_number_switch": -1, # we use the definition in RPiCtrl, therefore deactivate it here
      "baudrate": 50,
      "coding": 0,
      "loopback": true,
      "use_observe_line": false 
    },
    "RPiCtrl": {
      "type": "RPiCtrl",
      "enable": true,
      "pin_number_switch": 5,
      "inv_number_switch": false,
      "pin_button_1T": 0, # we use explicit AT,ST,LT buttons
      "pin_button_AT": 25,
      "pin_button_ST": 7,
      "pin_button_LT": 8,
      "pin_LED_A": 23,
      "pin_LED_WB": 24,
      "pin_LED_LT": 16,
      "pin_LED_status_R": 0, # unused
      "pin_LED_status_G": 0, # unused
    },
Clone this wiki locally