|
| 1 | +# **Prepare the IOT2050** |
| 2 | + |
| 3 | +## **Installing Example-Image & First commissioning** |
| 4 | + |
| 5 | +Follow [SIMATIC_IOT2050_Setting_up.md](https://github.com/SIMATICmeetsLinux/IOT2050-SmartFarming-Application/blob/main/docs/SIMATIC_IOT2050_setting_up.md) for the following steps: |
| 6 | + |
| 7 | +- Installing the SD-Card Example Image (in this example the image V1.1.1 was used) |
| 8 | +- First commissioning of the SIMATIC IOT2050: Remote access with Putty SSH Connection (login as root) |
| 9 | +- Network connection to open Node-Red |
| 10 | + |
| 11 | +## **Adjust Peripherals on IOT2050 Basic** |
| 12 | + |
| 13 | +Use the following command to get into the setup: |
| 14 | + |
| 15 | + iot2050setup |
| 16 | + |
| 17 | +Perform the following steps: |
| 18 | + |
| 19 | + Peripherals -> Configure External COM Ports -> RS485 -> Select "Turn on terminate resistor" (spacebar) -> Confirm with "Ok" -> Confirm the Changes -> Exit setup-menu and reboot the IOT2050 |
| 20 | + |
| 21 | +## **Adjust Peripherals on IOT2050 Advanced** |
| 22 | + |
| 23 | +Use the following command to get into the setup: |
| 24 | + |
| 25 | + iot2050setup |
| 26 | + |
| 27 | +Perform the following steps: |
| 28 | + |
| 29 | + Peripherals -> Configure External COM Ports -> RS485 -> Select "Turn on terminate resistor" (spacebar) -> Confirm with "Ok" |
| 30 | + |
| 31 | +The setup- and hold-values must be adjusted as follows (0x0005): |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + Confirm with "Ok" -> Cornfim again with "Ok" |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +**Important:** After the changes to the **IOT2050 Advanced**, it is **essential to perform a manual reboot**: To do this, disconnect the power cable from the device for a few seconds and reconnect it. A conventional reboot is not sufficient for this! |
| 40 | + |
| 41 | +## **Connect the hardware-devices** |
| 42 | + |
| 43 | +Connect the computer and the IOT2050 using the USB to serial converter. Make sure that the pins are assigned correctly. The pin assignment on the IOT2050 is as follows: |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +For more information please visit the [SIMATIC IOT2050 support page](https://support.industry.siemens.com/cs/document/109779016/simatic-iot2050). |
| 48 | + |
| 49 | +**Important:** Please also pay attention to the pinout of your converter! |
| 50 | + |
| 51 | +## **Import Node-Red Flow** |
| 52 | + |
| 53 | +On the Example Image version 1.1.1 (used in this manual) Node-Red is already preinstalled and autostart is enabled. To access it, open a browser on your PC connected to the IOT2050 and open the URL `http://<IP of the IOT2050>:1880/`. |
| 54 | + |
| 55 | +Download the ready-made JSON-File: [iot2050-example-serial-modbus-connection.json](../src/iot2050-example-serial-modbus-connection.json) |
| 56 | +Import the flow and press the "deploy-button": |
| 57 | + |
| 58 | + Menu -> Import -> Select a file to import -> Press the Import-Button |
| 59 | + |
| 60 | +If all configurations are set correctly, the flow will look like the following. |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +Depending on the IOT2050 (basic or advanced) used, the appropriate flow must be selected and activated: |
| 65 | + |
| 66 | + Double-Click on the basic-/advanced-tab -> Change "Disabled" to "Enabled" -> Click Done -> Press Deploy to apply the changes |
| 67 | + |
| 68 | +## **Other documents** |
| 69 | + |
| 70 | +- [**Application-Overview**](../README.md) |
| 71 | +- [**Example 1: Sending ASCII-characters using a serial connection**](README-Example-1.md) |
| 72 | +- [**Example 2: Sending array-packages using modbus-protocol**](README-Example-2.md) |
0 commit comments