background image

Software installation and configuration

All features of Iono Pi are controlled via dedicated GPIO pins, the I

2

C bus and the SPI 

interface, and can be used with any operating system, programming language or 
framework compatible with Raspberry Pi.

The following software installation notes are based on the Raspberry Pi OS (formerly 
Raspbian) operating system.

Installing the Real Time Clock software

The RTC is based on the Microchip MCP79410 module and is connected to the Raspberry 
Pi via its I

2

C serial bus.

Before downloading the installation utility, you should enable I

2

C and install the “i2c-tools” 

package.

To enable I

2

C, run the “raspi-config” configuration utility:

sudo raspi-config 

Then go to "Interfacing Options" (or "Advanced Options" on older Raspbian versions), 
"I2C" and select "Yes" to enable the I

2

C interface.

To install the "i2c-tools" package:

sudo apt-get update  

sudo apt-get install i2c-tools

 

With these prerequisite installs completed, you should download and run Iono Pi’s RTC 
installation script:

cd 

wget http://sferalabs.cc/files/strato/rtc-install

 

chmod 755 rtc-install 

sudo ./rtc-install

 

If the script completes with no errors, delete the installation script and reboot:

rm rtc-install 

sudo reboot

 

Testing the Real Time Clock

Assuming you are connected to the Internet and your Pi was able to reach a public NTP 
(Network Time Protocol) server, you should see the current date and time using the “date” 
command:

date 

Thu Dec 10 18:02:32 CET 2015 

Also check the date and time stored in the hardware clock:

sudo hwclock -r 

Thu 10 Dec 2015 06:03:01 PM CET  -0.546570 seconds 

22

Iono Pi User Guide

Summary of Contents for IPBB20R

Page 1: ...ono Pi board IPMB20R Iono Pi with Raspberry Pi 3 Model B IPMB20RP Iono Pi with Raspberry Pi 3 Model B IPMB20R41 Iono Pi with Raspberry Pi 4 Model B 1GB IPMB20R42 Iono Pi with Raspberry Pi 4 Model B 2G...

Page 2: ...ts 16 AIx Analog inputs 16 Ox Relays 17 L1 On board application LED 17 TTL1 1 Wire input output 17 TTLx DIx TTL input output or generic digital inputs 18 OCx DIx Open collector outputs or generic digi...

Page 3: ...ions 31 Dimensions 33 Disposal 34 Installation and use restrictions 34 Standards and regulations 34 Safety instructions 34 Set up 34 Conformity Information 35 EU 35 USA 35 CANADA 36 RCM AUSTRALIA NEW...

Page 4: ...s 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...

Page 5: ...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 s...

Page 6: ...stalled and operated properly Follow all applicable electrical safety standards guidelines specifications and regulations for installation wiring and operations of this product The Raspberry Pi board...

Page 7: ...ttery 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 r...

Page 8: ...me and building automation as well as access control hotel room control solutions environmental monitoring and many others Software development is pure Raspberry Pi with the constantly growing list of...

Page 9: ...s and open collector outputs 1 Wire and Wiegand support real time clock with replaceable CR1025 Lithium Manganese Dioxide back up battery embedded Microchip ATECC608A secure element chip 2 on board LE...

Page 10: ...ION EXAMPLE Device identification The device can be identified with the information provided in the rating and identification plate permanently attached to the side of the case EXAMPLE RATING AND IDEN...

Page 11: ...no need to open the case unless you have to change the position of the jumpers that select the voltage level of the TTL DI inputs see below or to replace the internal battery The Micro SD card not pro...

Page 12: ...on 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...

Page 13: ...supply and low power input output connections The maximum conductor cross section is 1 5 mm2 16 AWG or 0 5 mm2 when using ferrules highly recommended Recommended stripping length is 5 mm Screw thread...

Page 14: ...ximum conductor cross section is 2 5 mm2 12 AWG Recommended stripping length is 7 mm Screw thread is M3 Never exceed 0 6 Nm torque when tightening the screws THE IONO PI CIRCUIT BOARD 13 Iono Pi User...

Page 15: ...L1 GPIO4 in out 1 Wire Wiegand or generic TTL I O TTL2 GPIO26 in out 1 Wire Wiegand or generic TTL I O TTL3 GPIO20 in out 1 Wire Wiegand or generic TTL I O TTL4 GPIO21 in out 1 Wire Wiegand or generic...

Page 16: ...and open collector outputs it could provide up to 3 5A at 5V to the Raspberry Pi Because Iono Pi has a 2 2A resettable fuse polyfuse on the power supply line the maximum current that its regulator can...

Page 17: ...nput impedance is approximately 200kOhm For convenience a separate analog ground connection A GND is avaliable on the terminal block next to AI1 A GND should be used to connect the ground reference of...

Page 18: ...Note that depending on the Raspberry Pi operating system s configuration the GPIO line may be in a high state by default on startup causing the LED to turn on before your application takes control of...

Page 19: ...ATA1 line of a Wiegand interface in combination with TTL1 or any other generic TTL I O function TTL3 DI2 configured as TTL I O can be used as the DATA0 line of a second Wiegand interface or any other...

Page 20: ...I3 INPUT MODE SELECTION JUMPERS POSITION To use the TTLx DIx lines as generic inputs the corresponding jumper see table below should be set across the two pins closer to the terminal block Set the jum...

Page 21: ...ositive voltage up to the VS power supply voltage When used to detect the status of dry contacts it is recommended to use VSOUT as the voltage reference The DI4 DI6 front end circuits have 2 2kOhm pul...

Page 22: ...ve restore AES 128 encrypt decrypt Galois field multiply for GCM Networking key management support Turnkey PRF HKDF calculation for TLS 1 2 1 3 Ephemeral key generation and key agreement in SRAM Small...

Page 23: ...Interfacing Options or Advanced Options on older Raspbian versions I2C and select Yes to enable the I2C interface To install the i2c tools package sudo apt get update sudo apt get install i2c tools W...

Page 24: ...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 l...

Page 25: ...Bluetooth HCI UART driver sudo systemctl disable hciuart To disable the WiFi one convenient solution on Raspbian distributions is to blacklist the WiFi driver Edit etc modprobe d raspi blacklist conf...

Page 26: ...Print the version number of the ionoPi library led on Turn on the green LED led off Turn off the green LED o n open Open relay output o n n 1 4 o n close Close relay output o n n 1 4 oc n open Open op...

Page 27: ...e connected to an analog to digital converter chip using the SPI protocol Analog inputs notes The AI1 and AI2 analog inputs on the terminal block and the AI3 and AI4 pins on the on board analog inputs...

Page 28: ...significant amount of time The following charts show the thermal behaviour of Iono Pi in different conditions in a typical installation with the device under test installed in a standard not ventilate...

Page 29: ...35C AMBIENT TEMPERATURE LOW CPU LOAD 35C AMBIENT TEMPERATURE HIGH CPU LOAD 28 Iono Pi User Guide...

Page 30: ...45C AMBIENT TEMPERATURE LOW CPU LOAD 45C AMBIENT TEMPERATURE HIGH CPU LOAD 29 Iono Pi User Guide...

Page 31: ...Block diagram IONO PI BLOCK DIAGRAM 30 Iono Pi User Guide...

Page 32: ...d 500mA All relays ON add 50mA Actual current consumption may vary based on working conditions Raspberry platform compatibility Pi 4 Model B Pi 3 Model B Pi 3 Model B Pi 2 Model B tested with Pi 4 Mod...

Page 33: ...with backup lithium battery Only use CR1025 Lithium Manganese Dioxide Li MnO2 batteries Expected battery life without main power supply 2 years 15 pin terminal block characteristics Maximum conductor...

Page 34: ...Dimensions DIMENSIONS mm 33 Iono Pi User Guide...

Page 35: ...body to gain access to the Iono Pi circuit board Always remove the battery before disposing of this product Installation and use restrictions Standards and regulations The design and the setting up o...

Page 36: ...ential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio commu...

Page 37: ...USA Raspberry Pi 3 Model B FCC IDENTIFIER 2ABCB RPI32 Raspberry Pi 3 Model B FCC IDENTIFIER 2ABCB RPI3BP Raspberry Pi 4 Model B FCC IDENTIFIER 2ABCB RPI4B The antenna s used for this transmitter must...

Page 38: ...doit pas produire de brouillage et 2 l utilisateur de l appareil doit accepter tout brouillage radio lectrique subi m me si le brouillage est susceptible d en compromettre le fonctionnement 37 Iono P...

Reviews: