Janz Tec emPC-A/RPI4 Hardware And Software Manual

Embedded pc
Table of Contents

Advertisement

Quick Links

PROPRIETARY NOTICE
All rights reserved by Janz Tec AG.
No parts of this technical manual may be modified, copied, or reproduced
in any form or by any means for commercial use without the prior written
permission of Janz Tec AG, Germany.
All instructions, information and specification contained in this manual
are for reference only and remain subject to change without
announcement.
emPC-A/RPI4
embedded PC
(Hardware and Software Manual)
Version 1.0
refers to product revision no.
1.1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the emPC-A/RPI4 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Janz Tec emPC-A/RPI4

  • Page 1 PROPRIETARY NOTICE All rights reserved by Janz Tec AG. No parts of this technical manual may be modified, copied, or reproduced in any form or by any means for commercial use without the prior written permission of Janz Tec AG, Germany.
  • Page 2 Title: emPC-A/RPI4 embedded PC File: j:\as\entwicklung\projekte\hw\empc\empc-arpi4\doc\manual_empc-arpi4.doc Pattern: \\ntserv5\janzgrp\as\entwicklung\formulare\entwicklung (ew)\ew_manual.dot Created: Stefan Althöfer, 06.03.2015 Last Update: Stefan Althöfer, 04.12.2024 © Janz Tec AG 2024 Im Dörener Feld 8 D-33100 Paderborn, Germany Tel.: +49-5251-1550-0 FAX: +49-5251-1550-190 email: support@janztec.com Internet: www.janztec.com...
  • Page 3: Table Of Contents

    6.2.2.2 sc16is7xx : Serial RS232/RS485 driver ..............21 6.2.2.3 mcp251xfd : CAN driver...................22 6.2.2.4 rv8803: RTC ......................22 Janz Tec AG Linux Image for emPC-A/RPI4 ..............23 General Information ......................23 Optional Software.......................23 6.5.1 CODESYS Control for Raspberry Pi SL Information ............23 6.5.1.1 Information .......................24 6.5.1.2...
  • Page 4 (Hardware and Software Manual) • Contents User LEDs ..........................25 I2C Bus ..........................25 7.2.1 I2C-0 (ID) ........................25 7.2.2 I2C-1 ..........................25 SPI Bus ..........................26 CAN ............................26 Serial Port (RS232/RS485) ....................26 Digital IO ..........................27 Console RS232 ........................27 Power Supply Monitor ......................28 7.8.1 Timing Diagrams ......................29...
  • Page 5 (Hardware and Software Manual) • Contents List of Figures figure 1: emPC-A/RPI4 block diagram ..................... 6 figure 2: emPC-A/RPI4 mounting options: Desk-top and DIN Rail ............10 figure 3: Multi connector for IO (Power Supply Pins highlighted) ............11 figure 4: RS485 signaling ........................14 figure 5: digital IO detailed schematic ....................15...
  • Page 6: About This Manual

    (Hardware and Software Manual) • Contents About this Manual This is the hardware manual for the emPC-A/RPI4 embedded PC. Conventions If numbers are specified in this manual, they will be either decimal or hexadecimal. We use C-notation to identify hexadecimal numbers (the 0x prefix).
  • Page 7: Introduction

    (Hardware and Software Manual) • Introduction 1 - 5 Introduction Features • Raspberry Compute Module 4 BCM2711 quad core Cortex-A72 processor @ 1.5 GHz Up to 8 GB SDRAM with ECC Optional WLAN/Bluetooth with external antenna • 2 x USB 2.0 •...
  • Page 8: Functional Overview

    (Hardware and Software Manual) • Introduction 1 - 6 Functional Overview The processing core of the emPC-A/RPI4 is the Raspberry Pi Compute Module 4. A Janz Tec specific baseboard implements the specific features. Refer to figure 1 for the block diagram. 26pin IO header : int.
  • Page 9: Safety Instructions

    (Hardware and Software Manual) • Safety Instructions 2 - 7 Safety Instructions Refer to page iv for explanation of the warning notice system. The product described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation for the specific task, in particular its warning notices and safety instructions.
  • Page 10: Ambient And Environmental Conditions

    (Hardware and Software Manual) • Safety Instructions 2 - 8 Ambient and Environmental Conditions CAUTION: Damage Do not operate the product beyond the specified ambient conditions DANGER: Explosive Risk Do not operate the product in potentially explosive atmosphere. NOTICE: EMI This product is a class A device.
  • Page 11: Intended Use

    Janz Tec electronic products are labelled with the crossed-out trash can. This means that the products must not be disposed into the domestic garbage. Used Janz Tec products have to be recycled properly. If in doubt, you can return them to Janz Tec at your own expense. Refer to https://www.janztec.com/recycling or contact Janz Tec under recycling@janztec.com for more instructions how and where to return the products.
  • Page 12: Installation

    The product can be operated with DC power supply from 9 to 34 V.32 Mounting The emPC-A/RPI4 is intended for 35mm DIN-rail mount. It can as well be used on the desktop. Refer to figure 2 for the recommended mounting orientation.
  • Page 13: Connectors And Operators

    (Hardware and Software Manual) • Installation 4 - 11 Connectors and Operators The 24 pin multi connector provides interface to many of the emPC-A/RPI4 interfaces that are described later. screw locking lock-and- release locking figure 3: Multi connector for IO (Power Supply Pins highlighted) A suitable mating connector with lock-and-release levers is Phoenix Contact order number 1790580.
  • Page 14: Graphics Connector (Hdmi)

    (Hardware and Software Manual) • Installation 4 - 12 4.2.2 Graphics connector (HDMI) A single HDMI type A (Standard Size) connector is available to attach monitors. Data2+ 11 GND 12 Clock- Data2- 13 CEC Data1+ 14 N.C. Data1- 16 SCL...
  • Page 15: Micro Usb Slave Interface (Service Only)

    (Hardware and Software Manual) • Installation 4 - 13 4.2.5 Micro USB slave interface (service only) A micro USB port is available for service purpose. It allows to configure the CM4 module when a blank eMMC or SDcard is installed, or to perform updates.
  • Page 16: Can

    (Hardware and Software Manual) • Installation 4 - 14 Transmitter Transmitter Startbit Databit 0 tristate idle 1 = Mark 0 = Space 1 = Mark "0V" figure 4: RS485 signaling Note that D+ corresponds to pin “A” of the transceiver chip. However this is signal B according to the EIA-485 or Profibus standards.
  • Page 17: Digital Io

    (Hardware and Software Manual) • Installation 4 - 15 4.2.9 Digital IO Digital input (DI1-DI4) and output (DO1-DO4) ports are provided on the multi IO connector (refer to table 9). GND-IO VIO (10..34 VDC) 10 DI1 table 9: Digital IO connector pins...
  • Page 18: Wlan Antenna

    (Hardware and Software Manual) • Installation 4 - 16 4.2.10 WLAN Antenna If option is installed. Antenna Input/Output GND (Return) RP-SMA WARNING: Health Impact The antenna of this product must not be installed closer than 20 cm (0,2 m) to human bodies.
  • Page 19: Maintenance

    Orange marked figure 6: emPC-A/RPI4 micro SDcard/SIM location figure 7: emPC-A/RPI4 screws for case opening 2032 J101 J102 J111 card figure 8: emPC-A/RPI4 jumper and battery location on PCB after case opening. Heatsink face down. Rev. 1.0 © Janz Tec AG...
  • Page 20: Micro Sdcard Replacement

    (Hardware and Software Manual) • Maintenance 5 - 18 Micro SDcard Replacement NOTICE Power must be turned off before removing or inserting the micro SDcard Refer to figure 6 to identify the location of the Micro SDcard. Remove the DIN rail clip if installed.
  • Page 21: Battery Replacement

    2. Disconnect the power supply from the power inlet and disconnect any external devices. 3. Disassemble the housing (refer chapter 5) and locate the battery on the Janz Tec board. 4. Remove the battery from the holder (See figure 9) 5.
  • Page 22: Operating System And Drivers

    For more information, refer to 6.2. Of course, you can order the emPC-A/RPI4 without software, so you can choose a Raspberry PI 4 compatible operating system of your choice and install it manually on a µSD card. (Raspberry PI OS recommended) Refer to 6.1.1 on how to install an image from the official Raspberry Pi website.
  • Page 23: Empc-A/Rpi4 Driver Installation Script

    This script is only compatible to Raspbian based installations! To automatically install all configuration entries and drivers to enable the additional features of the emPC-A/RPI4 (RTC, CAN, RS232, RS485, TPM and LTE), we provide an installation script and installation instructions available at: https://github.com/janztec/empc-arpi4-linux-drivers...
  • Page 24: 6.2.2.3 Mcp251Xfd : Can Driver

    ~$ canbusload can0@1000000 -r -t -b -c 6.2.2.4 rv8803: RTC The emPC-A/RPI4 driver installation script installs the RTC service, so that the RTC automatically sets the system time on every boot during the initramfs execution. Reading the RTC time:...
  • Page 25: Janz Tec Ag Linux Image For Empc-A/Rpi4

    Even with the standard Raspberry PI OS without any modifications, the CODESYS Control for Raspberry Pi SL can control all digital IOs on the emPC-A/RPI4 by using the GPIO device already included in the CODESYS device repository. (Red and green LED also controllable by this GPIO device).
  • Page 26: 6.5.1.1 Information

    (Hardware and Software Manual) • Operating System and Drivers 6 - 24 CODESYS Features Standard Raspberry PI OS Raspberry PI OS + emPC-A/RPI4 driver package CAN/CANopen *1 not supported supported (using SocketCAN) Modbus RTU Master *2 console (RS232, 2wire)
  • Page 27: Programming Information

    This chapter gives technical information on how to program, or adapt existing Linux drivers to the emPC-A/RPI4 hardware and is intended for users familiar with creating own Linux kernels and drivers. For standard Linux users, optionally our emPC-A/RPI4 driver package (chapter 6.2) is available and this already includes all required drivers, therefore no driver programming is needed to use the emPC- A/RPI4 hardware and it’s interfaces.
  • Page 28: Spi Bus

    (Hardware and Software Manual) • Programming Information 7 - 26 SPI Bus The emPC-A/RPI4 utilizes the CM4 SPI-6 bus to connect CAN, UART and TPM. Type Device Chip Select Interrupt SPI CLK (max) CAN-FD MCP2518FD CE0# (GPIO18) GPIO25 17 MHz...
  • Page 29: Digital Io

    (Hardware and Software Manual) • Programming Information 7 - 27 Digital IO The digital inputs and outputs are controlled by Raspberry PI GPIO signals. GPIO GPIO4 GPIO5 GPIO6 GPIO7 GPIO12 (PWM capable) GPIO13 (PWM capable) GPIO22 GPIO23 To turn digital output on (drive VIO to the output), set the GPIO to high state. All other states (low, high-Z or weak pullup) will turn the digital output off.
  • Page 30: Power Supply Monitor

    (Hardware and Software Manual) • Programming Information 7 - 28 Power Supply Monitor The power supply monitor unit (PMON) can be used to monitor the input voltage, and to program thresholds, at which the power supply is turned off (under voltage lockout). Refer to figure 11 for a block diagram of the PMON.
  • Page 31: Timing Diagrams

    (Hardware and Software Manual) • Programming Information 7 - 29 7.8.1 Timing Diagrams Assumes VS is above Vs0+Hyst all the time Hyst. Hyst. Vin0 <Tin00 Hyst. Vin1 Hyst. Vin2 Tin00 no P-BTN required, system starts Tin00 automatically after power is applied...
  • Page 32: State Machine

    (Hardware and Software Manual) • Programming Information 7 - 30 7.8.2 State Machine In figure 14 you find the basic state machine of the power management CPU. It is shown here to allow a better understanding of operation. POWER=on (!)
  • Page 33: I2C Communication

    (Hardware and Software Manual) • Programming Information 7 - 31 7.8.3 I2C Communication The I2C interface is used to transfer data between main CPU and PMON. Note that PMON always acts as slave in I2C communication. Refer to section Fehler! Verweisquelle konnte nicht gefunden werden.
  • Page 34 (Hardware and Software Manual) • Programming Information 7 - 32 TIN11 TIN21 TWUP 26..29 Reserved WDOG WDOGINI 32..255 Reserved Indicated register settings can be internally saved to EEPROM. These values will then be restored upon power on of PMON. The EEPROM has a limited endurance of 50000 save operations.
  • Page 35 (Hardware and Software Manual) • Programming Information 7 - 33 CONTROL Pointer 1 (16bit, ro) VSR IXP NOA VSB RESET: Restored from EEPROM VSBTNMODE If this bit is set, the VS input (mid contact on power connector) act as a power button input.
  • Page 36 (Hardware and Software Manual) • Programming Information 7 - 34 CMDCODE RESET: CMDCODE To trigger functions in the PMON firmware, write the corresponding command code into this register. Once the command has completed, the register is cleared to zero by the PMON firmware.
  • Page 37 (Hardware and Software Manual) • Programming Information 7 - 35 VIN2 RESET: Restored from EEPROM VIN2 If the power supply voltage level is below VIN2, the power supply is immediately turned off. This state can be left if input voltage level is above VIN2+VHYST for longer than TIN21.
  • Page 38 (Hardware and Software Manual) • Programming Information 7 - 36 When VS is below the VS0 threshold for longer than TS0, then a system shutdown is triggered. If VS passed VS0+VHYST before TS0 expires, then no action is taken.
  • Page 39: Command Codes

    (Hardware and Software Manual) • Programming Information 7 - 37 PMON is in the power off state and is waiting for a start event for longer than TWUP seconds. WDOG Pointer 30 (16bit, wo) reserved WDDATA System-POWERON: loaded from WDOGINI...
  • Page 40: I2C Timing

    (Hardware and Software Manual) • Programming Information 7 - 38 supported operating value. No checks are made on the timing parameters. RESET_ERR Reset the PMON MCU reset and watchdog information in the STATUS register. POWERCYC Trigger a power cycle (forcing power down and up again).
  • Page 41: Appendices

    (Hardware and Software Manual) • Appendices 8 - 39 Appendices Technical Data Only CM4 features usable on emPC-A/RPI4 are listed. Processing Core BCM2711, up to 1500MHz quad-core 64bit ARMv8 Cortex A72 Memory Main Memory Up to 8 GB SDRAM...
  • Page 42 (Hardware and Software Manual) • Appendices 8 - 40 Inrush Current (max) Power Dissipation External Load Capabilities +5V (USB) Max. 500 mA per USB port, max 750 mA for all USB ports Environmental Specifications Ambient Temperature -20 .. +TBD °C (vertical orientation / wall and DIN rail mounting) operating -20 ..
  • Page 43: References

    (Hardware and Software Manual) • Appendices 8 - 41 References These references direct you to manuals and specifications that you might need to know when you attempt to program the product. Most of the documents can be downloaded from the Internet. Look for the WWW servers of the component/chip manufacturers.
  • Page 44: Dimensions

    (Hardware and Software Manual) • Appendices 8 - 42 Dimensions Refer to figure 16 for the housing dimensions. 35,0 mm 93,5 mm Rail Clip 2,6 mm 11 mm 10 mm figure 16: housing dimensions © Janz Tec AG Rev. 1.0...
  • Page 45: Cm4 Gpio Usage

    (Hardware and Software Manual) • Appendices 8 - 43 CM4 GPIO Usage GPIO Signal Remarks ID-SD ID-SC SDA1 Internal I2C devices SCL1 Internal I2C devices Digital Input Digital Input Digital Input Digital Input SPI0_CE0 Expansion Connector, use as SPI0/I2C4/UART4...
  • Page 46: Port Expander Usage

    (Hardware and Software Manual) • Appendices 8 - 44 Port Expander Usage The I2C port expander MCP23018 has the functions as described below. After reset all port expander outputs are in “1” state (=high zero on output). Port Function...
  • Page 47: Expansion Connector

    (Hardware and Software Manual) • Appendices 8 - 45 Expansion Connector To allow adding external expansions without opening the case, an expansion connector was added. NOTICE The connector uses a proprietary pinout. Damage to equipment is likely when you insert a standard PCIe card into this slot.
  • Page 48 (Hardware and Software Manual) • Appendices 8 - 46 I2C1 was only added for detection purposes (to read a HAT like EEPROM). If you want to add I2C expansions, you should prefer I2C4 or I2C5. Remember that I2C1 must be forced to bit-bang mode and thus has increased CPU overhead.
  • Page 49: Emc Cable Installation

    (Hardware and Software Manual) • Appendices 8 - 47 EMC Cable Installation In figure 19 we show the EMC shield (PE) connection that we utilized during EMC compatibility tests to pass industrial level immunity: • DIN rail is connected to PE •...
  • Page 50: Empc-Arpi2/3 Vs Empc-Arpi4

    (Hardware and Software Manual) • Appendices 8 - 48 emPC-ARPI2/3 vs emPC-ARPI4 The emPC-ARPI4 tries to follow the emPC-ARPI3 in some aspects (basic form-factor, interfaces). However, some internals have been changed to make optimum use of the new possibilities of the CM4’s BCM2711 SoC IO features.
  • Page 51: Product History

    (Hardware and Software Manual) • Appendices 8 - 49 Product History Version Release Name Changes Date • Early engineering samples • First prototypes • Compared to the PRE samples, the LTE_VBUS_EN has changed polarity: Must be set to 0 to enable modem USB.

Table of Contents