Эта страница является
переводом страницы
1 Wire. Перевод выполнен на 100%.
1-Wire interface of iRidium server UMC C3 controller
Power supply and digital information via one wire
The documentation was updated on 02.12.2021
Advantages
1-Wire (MicroLan) is a digital interface that allows to send data from several devices at the same time via a twisted pair to the distance of 300 meters. 1-Wire is suitable for home automation. There are inexpensive digital temperature sensors and multichannel input-output modules, etc. on the market.
iRidium server UMC C3 supports devices only with microchips of DS18••• (Dallas Semiconductor) series.
1-Wire interface is optional. Check that your UMC C3 has it.
Connecting 1-Wire devices to UMC C3
Connect 1-Wire devices to the X6 terminal block (in the top part of the body).
Pinout of X6 terminal block (front view)
| Contact |
6 |
5 |
4 |
3 |
2 |
1
|
| Circuit |
- |
- |
GND |
DATA |
5 V |
-
|
Working in iRidium studio
Create a server project.
There are two ways to configure 1-Wire driver in iRidium studio:
- to import tags from the server web-interface,
- to set the driver manually.
Importing Tags from JSON file
1 Go to 1-Wire tab in the server web-interface.
Only UMC C3 controllers have 1-Wire tab.
2 Click Scan, IDs of devices found in 1-Wire bus will appear
3 Export data about devices as a .json file by clicking the Export button.
4 Go to your project in iRidium studio. Click a button to import the .json file (OneWire JSON Files).
5 A set driver with all tags appears in the project device tree. You can rename the tags.
Setting the Driver Manually
1 Add 1-Wire driver.
2 Set ContainerPath parameter - /sys/bus/w1/devices/.
3 Add required tags to the driver. Set a unique ID to each added driver.
Setting Commands and Feedback Channels
To control equipment it is required to set commands (Commands) and feedback channels (Feedbacks). To send a command, drag'n'drop it on a graphic item and enter a value to send. To display feedback value drag'n'drop a feedback channel on a graphic item and choose how to output a value.
Read more about work with graphic items in the
"Types of graphic items" article.