Sferalabs Strato Pi Base Advanced Configuration Manual

Pi logic controller
Hide thumbs Also See for Strato Pi Base:

Advertisement

Quick Links

Strato Pi Logic Controller
Advanced Configuration Guide
October 2019
Revision 006
MCU firmware version 4.1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Strato Pi Base and is the answer not in the manual?

Questions and answers

Summary of Contents for Sferalabs Strato Pi Base

  • Page 1 
 Strato Pi Logic Controller Advanced Configuration Guide October 2019 Revision 006 MCU firmware version 4.1 
...
  • Page 2: Table Of Contents

    Introduction Command syntax Raspbian software serial implementations RS-485 control commands XSMn - RS-485 TX-Enable Mode (*) XSPrbps - RS-485 communication parameters (*) Shutdown parameters XPEn - shutdown enable mode (*) XPWnnnnn - shutdown wait time (*) XPOnnnnn - power-off time (*) XPUnnnnn - power-up delay (*) XPPn - power-up mode (Strato Pi UPS only) (*) Watchdog parameters...
  • Page 3 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.
  • Page 4: Introduction

    Introduction This document describes the features of the PIC MCU firmware version 4.0 used in the following Strato Pi versions: • Strato Pi Base • Strato Pi UPS • Strato Pi CAN • Strato Pi CM • Strato Pi CM Duo.
  • Page 5: Command Syntax

    This serial protocol is implemented over two of the Pi's GPIO pins, one used as the TX line and the other as RX. The GPIO pins are specific for each Strato Pi version. Pi TX Pi RX MCU TX MCU RX Base GPIO13 GPIO19...
  • Page 6: Raspbian Software Serial Implementations

    There is a 5 seconds character timeout when receiving commands. If a character is not received for 5 seconds since the previous character, the command buffer will be reset, and the PIC will start looking for a new "X" ASCII command header character. All commands use upper case characters only.
  • Page 7: Xsprbps - Rs-485 Communication Parameters (*)

    Command Description Reply XSMA Set TX-Enable automatic mode (factory default) XSMA XSMP Set TX-Enable passive mode XSMP XSMF Set TX-Enable fixed speed mode. In this mode, TX-Enable XSMF timing is based on speed, number of bits, parity and number of stop bits set using the control protocol XSM? Return current mode...
  • Page 8: Shutdown Parameters

    [p] parameter Description Reply No parity (factory default) XSPrbNs Even parity XSPrbEs Odd parity XSPrbOs Description Reply 1 stop bit (factory default) XSPrbp1 2 stop bits XSPrbp2 Shutdown parameters You can start a delayed power-cycle by rising Raspberry Pi’s ShutdownEnable pin. When ShutdownEnable is set to high for at least one second, Strato Pi will wait 60 seconds (configurable with the XPWnnnnn command) and then power off the Pi board for at least 5 seconds (configurable with the XPOnnnnn command).
  • Page 9: Xpwnnnnn - Shutdown Wait Time (*)

    Command Description Reply XPEI When ShutdownEnable is set to high, Strato Pi will immediately XPEI initiate the power-cycle, wait 60 seconds (configurable with XPWnnnnn) and then power off the Pi board for at least 5 seconds (configurable with XPOnnnnn) (factory default) XPEA Setting ShutdownEnable high will arm the shutdown procedure, XPEA...
  • Page 10: Xppn - Power-Up Mode (Strato Pi Ups Only) (*)

    XPPn - power-up mode (Strato Pi UPS only) (*) Set the power-up mode. If the ShutdownEnable pin is set to high when the main power is not present, the Raspberry Pi and the whole Strato UPS board will be powered down after the shutdown wait time, and turned on again only when the main power is restored.
  • Page 11: Xwen - Watchdog Enable Mode (*)

    XWEn - watchdog enable mode (*) Set the watchdog enable mode. Command Description Reply XWED Watchdog is normally disabled (factory default) XWED XWEA Watchdog is always enabled XWEA XWE? Return current watchdog enable mode XWEn XWHnnnnn - watchdog heartbeat timeout (*) Set the watchdog heartbeat timeout.
  • Page 12: Ups Parameters (Strato Pi Ups Only)

    UPS Parameters (Strato Pi UPS only) In its factory default configuration, Strato Pi UPS doesn't automatically power down the Raspberry Pi when the main power source is not available. It is the user application that, after being notified that the it is running on battery power via the BatteryPower pin, will have to initiate a delayed power-cycle setting the ShutdownEnable pin to high.
  • Page 13: Dual Microsd Cards Routing (Strato Pi Cm Duo Only)

    Dual microSD cards routing (Strato Pi CM Duo only) Strato Pi CM Duo allows the two SD interfaces of the Raspberry Pi Compute Module Lite to be routed to two external microSD cards. The primary SD interface of the Raspberry Pi Compute Module Lite is called SDX. This interface is used for the SD card where the boot partition must be found to boot the system, and must remain connected to SD card at all times while the OS is running.
  • Page 14: Xsdrn - Run-Time Sdx/Sd1 Interfaces Routing

    XSDRn - run-time SDX/SD1 interfaces routing Immediately set the SDX/SD1 interfaces routing switch (RA4) to SDA/SDB. This command can be used only with CMs with embedded eMMC, and only when the SD card routed to SD1 is not mounted. The CM Lite versions running Linux would not tolerate a hot swap of the root file system SD card.
  • Page 15: Xsd1N - Sd1 Enable (*)

    Command Description Reply XSD01 enable SDX (RA5 = H) (factory default) XSD01 XSD00 disable SDX (RA5 = L) XSD00 XSD0? return SDX enable status XSD0n XSD1n - SD1 enable (*) Immediately enable/disable the SD1 interface (RC0). Command Description Reply XSD11 enable SD1 (RC0 = H) XSD11 XSD10...
  • Page 16: Firmware Upload

    <m> is the major version number, <n> is the minor version number, <h> is the numeric hardware model code Hardware model Code Strato Pi Base rev. < 3.0 Strato Pi UPS rev. < 3.0 Strato Pi CAN Strato Pi CM Strato Pi Base rev.
  • Page 17: Xboot - Enter Boot Loader Mode

    firmware will not be executed, effectively disabling all the features in Strato that are controlled by the MCU. Note that the Raspberry Pi in Strato Pi Base, UPS and CAN will be switched off while the MCU is reset.
  • Page 18: The Strato Pi Icsp Header

    The Strato Pi ICSP header The Strato Pi Base, UPS, CAN and CM have a programming header that can be used to flash the MCU firmware. The MCU can be powered from the ICSP header at 3.3V, otherwise the Strato Pi board must be powered through its power supply input.
  • Page 19: Document Revision History

    Document revision history • 001 - Nov 24, 2018 - Fw. 3.1 • Initial public release • 002 - Jan 4, 2019 - Fw. 3.2 • New XFW? command: returns the firmware version • New XPEn command: shutdown enable mode •...

This manual is also suitable for:

Strato pi upsStrato pi canStrato pi cmStrato pi cm duo

Table of Contents