Alternatively, use the following steps to install a service that, at boot, enables and
calibrates the RTC and aligns the system clock.
Enable the I
2
C bus using the "raspi-config" configuration utility:
$ sudo raspi-config
Go to "Interfacing options" > "I2C" and select "Yes".
Install the "i2c-tools" package:
$ sudo apt install i2c-tools
You may want to remove the "fake-hwclock" to avoid conflicts:
$ sudo apt autoremove --purge fake-hwclock
Download and run the installation script:
$ wget https://sferalabs.cc/files/ionopimax/rtc-install
$ chmod 755 rtc-install
$ sudo ./rtc-install
After completion, delete the installation script and reboot:
$ rm rtc-install
$ sudo reboot
On the first usage or after replacing the RTC backup battery, set the correct date/time of
the RTC as follows.
If you are connected to the Internet and the system was able to reach an NTP (Network
Time Protocol) server, you should see the current date and time using the "date"
command:
$ date
Thu Sep 10 15:39:31 BST 2020
To set the RTC time to the current system time:
$ sudo hwclock -w
To check the date and time stored in the hardware RTC:
$ sudo hwclock -r
2020-09-10 15:39:40.158855+01:00
For other features and advanced configurations of the hardware RTC, as clock calibration
and usage of the embedded EEPROM, refer to the Microchip MCP79410 documentation.
Raspberry Pi OS SocketCAN driver
Following are the instructions to install a driver for using the CAN controller (MCP2518FD)
of Iono Pi Max with the SocketCAN framework.
Further details and updated instructions are available at:
https://github.com/sfera-labs/iono-pi-max-can-driver
Download and install:
$ sudo apt install git raspberrypi-kernel-headers
$ git clone --depth 1 https://github.com/sfera-labs/iono-pi-max-can-driver
$ cd iono-pi-max-can-driver
22
Iono Pi Max User Guide
Need help?
Do you have a question about the Iono Pi Max Series and is the answer not in the manual?