Raspberry PI Support
From D2000 version v12, the installation program is available for the operating system Raspbian for Raspberry PI platform (models 2 and higher) and for computers built on Raspberry Compute Module (for example, Techbase NPE X500 M3 inudstrial computer).
A full D2000 system image for Raspberrry PI can be for simplification directly downloaded from https://d2000.ipesoft.com/download/#raspberry (950 MB, after unziping 3.5 GB). The image does not contain a graphic interface (to keep the image small), but it can be installed.
To obtain the D2000 installers for Raspberry PI platform and to obtain the images for the Techbase NPE X500 M3 industrial computer, please contact Ipesoft sales department.
Installing and configuring the image for Raspberry PI:
Download the system image from https://d2000.ipesoft.com/download/#raspberry and unzip it.
Insert a free micro SD card with a size of at least 4GB to the card reader for transfer of the image.
Using the Win32DiskImager utility (in the Windows environment) or using the command dd (in Linux) copy the image to a micro SD card.
Figure: after running Win32DiskImager, simply select the downloaded image (1), the target micro SD card inserted into the card reader (2) and write the image to the micro SD card with Write button (3).Insert the micro SD card into the Raspberry PI and connect the power supply. Raspberry PI boots from the SD card.
Log in as the default user pi with password raspberry (for security reasons it is recommended to change the password).
run a command:
sudo raspi-config
to start Raspberry Configuration Tool. In the menu, select "7 Advanced Options" and then "A1 Expand Filesystem". Confirm "OK" and select "Finish" from the main menu to exit the tool. Select reboot. Upon reboot, the file system expands so it can use all the free space on the micro SD card.after reboot and repeated logging in as a user pi identify the IP address and a network mask with a command:
ifconfig eth0
Example of listing in which the IP address 172.16.0.108 and the network mask 255.255.0.0 can be seen:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.16.0.108 netmask 255.255.0.0 broadcast 172.16.255.255 inet6 fe80::d2bb:4bde:c49a:5f97 prefixlen 64 scopeid 0x20<link> ether b8:27:eb:a7:f2:5e txqueuelen 1000 (Ethernet) RX packets 5175309 bytes 748932223 (714.2 MiB) RX errors 0 dropped 92287 overruns 0 frame 0 TX packets 1726640 bytes 739692537 (705.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Note: If you do not have a DHCP server on the network (or if you want to use a fixed IP address), set the fixed IP address and network mask by editing the /etc/dhcpcd.conf file.
To insert the IP address and network mask into the /opt/d2000/instance.properties configuration file, edit it with the command:
sudo nano /opt/d2000/instance.propertiesChange the IP address in the row
IPAddr1 = 172.16.0.108
and mask in the row
IPMask = 255.255.0.0
If you have configured a WiFi interface, you can also edit the line with IpAddr2.Save the file with the keyboard shortcut Ctrl+O and exit the editor by pressing Ctrl+X.
Standard Raspberry PI does not contain a real-time clock (RTC). If your Raspberry PI doesn't have access to preconfigured NTP server (212.82.32.26 t.j. darkstar.sanet.de), then you have to specify a custom NTP server:
sudo nano /etc/systemd/timesyncd.confEdit the row in the [Time] section with the NTP server IP address and enter IP address of a custom NTP server:
NTP=212.82.32.26
Save the file with the keyboard shortcut Ctrl+O and exit the editor by pressing Ctrl+X . Restart the NTP server by the command
sudo systemctl restart systemd-timesyncd
Shortly, the date command should display the current time.
Then restart Raspberry PI by command
sudo rebootThe installation includes the D2000 with preconfigured application myapp. You can log in remotely using D2000 HI, D2000 CNF, GrEdit, Sysconsole, etc. using a default name and password (SystemD2000/SystemD2000), which we also recommend to change. When running the tools, it is necessary to specify the parameter /S<ip_raspberry> e.g. /S172.16.0.11
After signing in to the D2000 HI, the default scheme S.RPI_main is automatically opened. The statuses of the configured I/O tags are displayed in the scheme:
I/O tag | BCM pin | Description of configuration and functionality (for identification of BCM pins see https://pinout.xyz) |
|---|---|---|
M.RPI_22_DI_UP | 22 | The pin configured as a digital input with a pull-up resistor (unconnected is 1, after connecting to the ground 0). |
M.RPI_23_TRIGGER_UP | 23 | The pin configured as a counter of signal changes with 100-ms filter with pull-up rezistor. The trigger measures number of rising and falling signal edges (0V→3.3V and 3.3V → 0V). |
M.RPI_24_TRIGGER_UP_TOON | 24 | The pin configured as a counter of rising edges with 100-ms filter with pull-up resistor. The trigger measures number of rising signal edges (0V→3.3V). |
M.RPI_25_TRIGGER_UP_TOOFF | 25 | The pin configured as a counter of falling edges with 100-ms filter with pull-up resistor. The trigger measures number of falling signal edges.(3.3V → 0V). |
M.RPI_26_DO | 26 | The pin configured as a digital output (values True sets at the output to 3.3 V, value Frue sets at the output to 0 V). |
M.RPI_27_PWM | 27 | The pin configured as a pulse-impulse output whose width is configurable by writing a value (values 0-255 correspond to 0-100%) |
M.RPI_REVISION | - | Returns the value of the hardware revision (number from "Revision" row, from file /proc/cpuinfo). |