We use the same image for both linux access as well as Arduino IDE
The simplicity of Arduino combined with the reliability and history of Siemens makes the SIMATIC IOT2000 series a perfect choice for an industrial gateway in factories and institutions exploring connectivity and retrofitting options.
New sensors on old machines or simply upgrading the sensors currently in use, the SIMATIC IOT2000 series harmonizes, analyzes, and forwards data efficiently with common protocols like MQTT and Modbus.
Based on a Yocto Linux, the SIMATIC IOT2000 series includes the IoT2020 and IoT2040 models which are compatible with most Arduino Sketches and can be uploaded directly from the Arduino IDE.
The IOT2040 is ideal for factories while the IOT2020 is best in educational institutions with its additional peripherals and communication protocols.
The below tutorial demonstrates how to setup the SIMATIC IOT2000 series using the Arduino IDE and a sample code to send an HTTP request to Ubidots for front-end interpretation.
The following steps show how to access the SIMATIC IOT2040 using the static IP to setup the gateway's network. At this point is important to mention that the SIMATIC IOT 2040 brings DHCP Address by default in the Ethernet Port - X2P1, if your desire you can access directly using the IP address assigned.
Power off and Connect one end of the Ethernet Cable to your computer and the other to the Ethernet Port- X1P1 of the SIMATIC IOT2000 device.
CAUTION: Only use a DC 9...36V power supply!
Once the SIMATIC IOT2000 is powered on, you will see the following behavior on the LEDs of the gateway:
PWR: Solid; device turned ON
SD: Intermittent.... then Solid turned OFF
USB: Solid; device turned ON
The SD LED will be intermittent because is resizing the SD-Card, wait until the SD LED change it status to Solid turned OFF to access to the gateway.
3. The SIMATIC IOT2000 lets you access to via Serial, SSH or Telnet; this guide uses the SSH connection.
The SIMATIC IOT2000 has a static IP address by default -> 192.168.200.1 . To establish a SSH connection, your computer have the same subnet as the SIMATIC IOT2000.
If you are working with Microsoft, please reference this getting started guide for how to access the gateway. Linux users please continue with the following steps.
4. Once the network of your computer is configured on the same subnet of the SIMATIC IOT2000, verify its connectivity with a ping:
ping 192.168.200.1
Expected result:
PING 192.168.200.1 (192.168.200.1) 56(84) bytes of data.
64 bytes from 192.168.200.1: icmp_seq=1 ttl=64 time=1.04 ms
64 bytes from 192.168.200.1: icmp_seq=2 ttl=64 time=1.03 ms
64 bytes from 192.168.200.1: icmp_seq=3 ttl=64 time=1.00 ms
If you receive this expected result, your SIMATIC IOT2000 device is properly connected.
5. Access to the gateway running the command below:
ssh root@192.168.200.1
Upon first accessing the Gateway you will be prompted to approve the security message. Send the command yes and press enter to approve and continue. Once access is properly established you will see the following root in your terminal:
root@iot2000:~#
6. As mentioned above, the static IP address of the SIMATIC IOT2000 is set to 192.168.200.1 . Thus, if another static IP address or DHCP address is required, this can be set in the "interfaces" file in the "/etc/network" directory.
To do this, enter to the directory specified with the command below:
cd /etc/network/
Open the interfaces file using nano editor running the following command:
nano interfaces
The content of the interfaces file by default be the same as below.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wired interfaces
auto eth0
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
auto eth1
iface eth1 inet dhcp
As mentioned above, If you are working with the SIMATIC IOT2040 the DHCP Address is configured by default on the second port (X2 P1LAN). Ensure your Ethernet cable is connected to the second Ethernet port and reboot the gateway.