Strato Sfera Labs Strato Pi cm Duo User guide

Type
User guide
!
Strato Pi CM Duo User Guide
September 2019
Revision 001
SCMD10XS Strato Pi CM Duo Solo
SCMD10XPL Strato Pi CM Duo 3+ Lite
SCMD10XP1 Strato Pi CM Duo 3+ 8GB
SCMD10XP2 Strato Pi CM Duo 3+ 16GB
SCMD10XP3 Strato Pi CM Duo 3+ 32GB
!
Safety information 4
Qualified personnel 4
Hazard levels 4
Safety instructions 5
General safety instructions 5
Battery 6
Introduction 7
Features 8
Device identification 9
Hardware Installation 9
Opening the case 10
Closing the case 10
Raspberry Pi Compute Module installation 10
How to flash the eMMC 11
microSD installation 11
Replacing the RTC backup battery 12
Terminal block 14
Power supply 14
Dedicated GPIO pins 15
Software installation and configuration 16
Installing the Strato Pi utility on Raspbian 16
Installing the Strato Pi kernel module 16
Enabling the second SD interface 17
Installing the Real Time Clock software 17
Testing the Real Time Clock 17
Using Strato Pi CM Duo 19
Real Time Clock 19
RS-485 serial port 19
SD matrix 20
USB ports power management 22
ATECC608A secure element 23
Push button 24
LED 24
Hardware watchdog 24
Reset cycle 25
Advanced configuration 25
1
Strato Pi CM Duo User Guide
Block diagram 27
Technical specifications 28
Dimensions 29
Disposal 30
Installation and use restrictions 30
Standards and regulations 30
Safety instructions 30
Set-up 30
Conformity Information 31
EU 31
USA 31
CANADA 32
RCM AUSTRALIA / NEW ZEALAND 32
2
Strato Pi CM Duo User Guide
Be sure to always remove the power supply before inserting or
removing the Raspberry Pi Compute Module from the Strato Pi CM Duo.
Follow all applicable electrical safety standards, guidelines,
specifications and regulations for installation, wiring and operations of
Strato Pi CM Duo.
Carefully and fully read this Strato Pi CM Duo user guide before
installation.
Strato Pi CM Duo is not authorised for use in safety-critical applications where a failure of
the product would reasonably be expected to cause personal injury or death. Safety-critical
applications include, without limitation, life support devices and systems, equipment or
systems for the operation of nuclear facilities and weapons systems. Strato is neither
designed nor intended for use in critical military or aerospace applications or environments
and for automotive applications or environment. Customer acknowledges and agrees that
any such use of Strato Pi CM Duo is solely at Customer's risk, and that Customer is solely
responsible for compliance with all legal and regulatory requirements in connection with
such use.
Sfera Labs S.r.l. may make changes to specifications and product descriptions at any time,
without notice. The product information on the web site or materials is subject to change
without notice.
Please download and read the Sfera Labs Terms and Conditions document available at:
https://www.sferalabs.cc
Strato and Sfera Labs are trademarks of Sfera Labs S.r.l. Other brands and names may be
claimed as the property of others.
"
Copyright © 2019 Sfera Labs S.r.l. All rights reserved.
3
Strato Pi CM Duo User Guide
Safety information
Carefully and fully read this user guide before installation and retain it for future reference.
Qualified personnel
The product described in this manual must be operated only by personnel qualified for the
specific task and installation environment, in accordance with all relevant documentation
and safety instructions. A qualified person should be capable of fully identifying all
installation and operation risks and avoid potential hazards when working with this product.
Hazard levels
This manual contains information you must observe to ensure your personal safety and
prevent damage to property. Safety information in this manual are highlighted by the safety
symbols below, graded according to the degree of danger.
Indicates a hazardous situation which, if not avoided, will result in death or serious
personal injury.
Indicates a hazardous situation which, if not avoided, may result in death or serious
personal injury.
Indicates a hazardous situation which, if not avoided, can result in minor or moderate
personal injury.
Indicates a situation which, if not avoided, can result in damage of property.
DANGER
WARNING
CAUTION
NOTICE
4
Strato Pi CM Duo User Guide
WARNING
WARNING
NOTICE
5
Strato Pi CM Duo User Guide
Battery
This product uses a small lithium non-rechargeable battery to power its internal real time
clock (RTC).
Improper handling of lithium batteries can result in an explosion of the batteries and/or
release of harmful substances.
Worn-out or defective batteries can compromise the function of this product.
Replace the RTC lithium battery before it is completely discharged. The lithium battery
must be replaced only with an identical battery. See the "Replacing the RTC backup
battery" section for instructions.
Do not throw lithium batteries into fire, do not solder on the cell body, do not recharge, do
not open, do not short-circuit, do not reverse polarity, do not heat above 100°C and protect
from direct sunlight, moisture and condensation.
Dispose of used batteries according to local regulations and the battery manufacturer's
instructions."
WARNING
6
Strato Pi CM Duo User Guide
Introduction
Strato Pi CM Duo is an extremely powerful and compact industrial server based on the
Raspberry Pi Compute Module, suitable for use in professional and industrial applications
where reliability and service continuity are key requirements, and housed in a compact 2
modules DIN rail case.
It is available in several versions. Strato Pi CM Duo 3+ ships with a Raspberry Pi Compute
Module 3+ (8GB, 16GB or 32GB eMMC versions) pre-installed, while Strato Pi CM Duo
Solo doesn't include the Compute Module and is compatible with all current versions of the
Compute Module: 1, 3, 3 Lite, 3+ and 3+ Lite.
The information contained in this manual covers both Strato Pi CM Duo 3+ and Strato Pi
CM Duo Solo. Besides the fact that Strato Pi CM Duo 3+ has the Compute Module pre-
installed, all versions are otherwise identical.
This manual generally refers to all products as Strato Pi CM Duo.
7
Strato Pi CM Duo User Guide
Features
Strato Pi CM Duo, all versions:
compatible with Raspberry Pi Compute Module 1, Raspberry Pi Compute Module 3,
Raspberry Pi Compute Module 3 Lite, Raspberry Pi Compute Module 3+ 8GB,
Raspberry Pi Compute Module 3+ 16GB, Raspberry Pi Compute Module 3+ 32GB,
Raspberry Pi Compute Module 3+ Lite
9-28Vdc power supply, with surge and reverse polarity protection, and 1.1A resettable
fuse
up to 1.9A max continuous current (3A peaks) to the 5V Raspberry Pi Compute Module
power supply input pins (at 24Vdc)
real time clock with replaceable CR1220 Lithium / Manganese Dioxide back-up battery
standard RS-485 interface to the Raspberry Pi serial line, with opto-isolator and
electrostatic discharge protection
10/100 Ethernet port
two USB 2.0 type-A ports, with individual power control and fault detection
dual microSD card architecture. Strato Pi CM routes its two microSD card holders to
the Compute Module through a high-speed switching matrix, controlled by the on-board
micro-controller. Each SD card can be set as the boot card, with the other available as
additional storage. This enables for separate OS/data storage, SD redundancy and in-
field full-system upgrades. The microSD slots are hidden, and can be accessed
opening the case
hardware watchdog implemented in the Strato Pi CM Duo micro-controller, fully
independent from the Raspberry Pi Compute Module, controlled via the GPIO pins of
the Raspberry Pi board and acting on the Raspberry Pi Compute Module hardware
reset line. The hardware watchdog can also control the microSD switch matrix,
swapping the boot card in case the watchdog is triggered
integrated boot loader for the Strato Pi micro-controller, allowing in-field firmware
upgrades directly from the Raspberry Pi
embedded Microchip ATECC608A secure element chip
front-panel LEDs for power supply, serial line activity, and one GPIO-controlled LED
recessed push-button, hidden behind the front-panel, connected to a GPIO pin
power supply and serial connections on a pluggable terminal block
packaged in a compact 2 modules DIN rail case.
Strato Pi CM Duo 3+:
pre-installed and tested Raspberry Pi Compute Module 3+, Lite, 8GB, 16GB or 32GB
eMMC versions.
8
Strato Pi CM Duo User Guide
9
Strato Pi CM Duo User Guide
NOTICE
10
Strato Pi CM Duo User Guide
NOTICE
11
Strato Pi CM Duo User Guide
WARNING
BR1220 batteries (Lithium Poly-carbonmonofluoride) can also be used, for improved shelf and
1
service life.
12
Strato Pi CM Duo User Guide
Replace the RTC lithium battery before it is completely discharged. Replace the battery
every 5 years even if the battery is still working properly. The lithium battery must be
replaced only with an identical CR1220 or BR1220 battery.
Do not throw lithium batteries into fire, do not solder on the cell body, do not recharge, do
not open, do not short-circuit, do not reverse polarity, do not heat above 100°C and protect
from direct sunlight, moisture and condensation.
Dispose of used batteries according to local regulations and the battery manufacturer's
instructions.
Before opening the Strato Pi Base case, disconnect all power sources and any connection
to external devices, including USB cables.
Use a non-conductive pin or small tool to help extract the battery from its holder. Insert the
new battery with a gentle push. You don't need tools to insert the battery. The battery is
held into place by a spring contact.
Be sure to insert the battery so that the negative (-) terminal is facing the vertical circuit
board, and touches the contact pad at the center of the battery holder, as shown in the
photo below.
Reversing the battery polarity may damage the product.
The real time clock will reset its time immediately when the RTC backup battery is
disconnected.
RTC BACKUP BATTERY HOLDER
RTC BACKUP BATTERY INSTALLED
NOTICE
13
Strato Pi CM Duo User Guide
FUSE marks the level where the polyfuse opens to limit input current; REG is the voltage
2
regulator's thermal protection limit.
14
Strato Pi CM Duo User Guide
GPIO pin
Direction
Description
GPIO2/SDA
I
2
C SDA line for the real time clock
GPIO3/SCL
I
2
C SCL line for the real time clock
GPIO14/TXD
out
serial TX line
GPIO15/RXD
in
serial RX line
GPIO32
out
cycle high/low for watchdog heartbeat
GPIO39
out
set to high to enable the watchdog
GPIO17
in
high on watchdog timeout
GPIO18
out
set to high to enable the shutdown cycle
GPIO16
out
set to high to turn on LED L1
GPIO38
in
high when P1 button pressed
GPIO37
out
soft serial TX for Strato MCU configuration
GPIO33
in
soft serial RX for Strato MCU configuration
GPIO30
out
set to low to enable USB1 (bottom) power
GPIO0
in
low on USB1 fault
GPIO31
out
set to low to enable USB2 (top) power
GPIO1
in
low on USB2 fault
GPIO6
out
expansion bus enable (reserved for future use)
GPIO34
in/out
expansion bus aux/act line (reserved for future use)
15
Strato Pi CM Duo User Guide
Software installation and configuration
All features of Strato Pi CM Duo are controlled via dedicated GPIO, the I
2
C bus and a soft
serial RX/TX interface to the embedded micro-controller and can be used with most
operating systems and programming languages.
The following software installation notes are based on the Raspbian operating system.
Installing the Strato Pi utility on Raspbian
The Strato Pi utility is a simple command-line script to control some of Strato Pi’s basic
functions.
Run the following commands to download and install the Strato Pi utility:
$ cd /usr/local/bin
$ sudo wget http://sferalabs.cc/files/stratocmduo/strato
$ sudo chmod 755 strato
You can run the Strato Pi utility without arguments to print its options:
$ strato
Usage: strato led on|off|length_millis|length_millis pause_millis repeats
strato usb1|usb2 on|off|fault
strato expbus on|off
strato watchdog enable|disable|heartbeat|timeout
strato reset
All commands should be run as superuser, so always use sudo to run strato.
Installing the Strato Pi kernel module
The Strato Pi kernel module can be used to easily access all of Strato Pi CM Duo control
features via a sysfs file system.
Run the following commands to download and install the Strato Pi kernel module (see
https://github.com/sfera-labs/strato-pi-kernel-module for detailed installation instructions):
$ sudo apt-get install git-core
$ git clone --recursive https://github.com/sfera-labs/strato-pi-kernel-
module.git
$ sudo apt-get install raspberrypi-kernel-headers
$ cd strato-pi-kernel-module
$ make
$ sudo make install
To have the module automatically loaded at boot add stratopi in /etc/modules:
$ sudo sh -c "echo 'stratopi' >> /etc/modules"
Optionally, to be able to use the /sys/ files not as super user, create a new group "stratopi"
and set it as the module owner group by adding an udev rule:
$ sudo groupadd stratopi
$ sudo cp 99-stratopi.rules /etc/udev/rules.d/
16
Strato Pi CM Duo User Guide
17
Strato Pi CM Duo User Guide
If the returned date and time is not correct, or “hwclock” returns an error, use the “-w”
option to set the hardware clock to the current time:
$ sudo hwclock -w
Then recheck the time stored in the hardware clock to ensure it matches. Linux may have
failed to automatically update the hardware clock after the last reboot if its internal
registers contained invalid values.
If the RTC still doesn’t work, you should check if the Pi sees the RTC chip on the I
2
C bus.
Run these two commands:
$ sudo modprobe -r rtc_ds1307
$ sudo i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 6f
70: -- -- -- -- -- -- -- —
You should see “6f” in the address list. This is the address of the RTC.
If the RTC address is detected, double check your software installation for issues at the
Linux modules level.
Run the “lsmod” command to list the loaded modules and check that “i2c_dev” and
“i2c_bcm2708” are both listed.
If the RTC address is not detected, the cause could be a hardware problem, on the Strato
board or the Raspberry Pi. If you have another Pi or Strato board, try swapping them to
isolate the faulty board.
18
Strato Pi CM Duo User Guide
Using Strato Pi CM Duo
Real Time Clock
Strato Pi CM Duo has a hardware real time clock with a dedicated long-life non-
rechargeable back-up battery.
Once the RTC modules and configuration files are properly installed, you will simply use
the date and time commands to control the hardware clock.
RS-485 serial port
Strato Pi CM Duo uses the Raspberry Pi standard UART TX/RX pins on the GPIO
connector to implement a standard RS-485 port.
The RS-485 port is isolated from the Raspberry Pi’s serial lines using dedicated opto-
couplers and from the main power supply with a high-efficiency DC-DC converter. This
configuration should prevent ground loops between devices connected through the serial
line.
The RS-485 TX/RX switching is implemented automatically in the Strato Pi’s micro-
controller, based on speed and number of bits detection, and is completely transparent to
the software controlling the UART on Raspberry Pi. It can also be manually configured to
work with fixed communication parameters (speed, bits, parity, stop bits) or in passive
mode (refer to the "Strato Pi Logic Controller Advanced Configuration Guide" document for
additional information).
The RS-485 line has 620 Ohm pull-up and pull-down resistors on lines A and B. The
biasing resistors ensure that, during idle periods the data lines are kept at a stable voltage
level and prevent false triggering of receiver input. These resistors can be disabled by
removing jumpers JP1 and JP2 respectively.
A 100 Ohm termination resistor between A and B is connected when the J1 micro-switch is
moved toward the terminal block.
RS-485 JUMPERS AND SWITCH SCHEMATIC
19
Strato Pi CM Duo User Guide
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33

Strato Sfera Labs Strato Pi cm Duo User guide

Type
User guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI