User manual

PoKeys user manual
62
www.poscope.com
8.15. 1-wire
1-Wire is a device communications bus system designed by Dallas Semiconductor Corp. that provides
low-speed data, signaling, and power over a single signal. 1-Wire is similar in concept to I²C, but with
lower data rates and longer range. It is typically used to communicate with small inexpensive devices
such as digital thermometers and weather instruments.
PoKeys56E/57E devices support communication with 1-Wire slave devices (without parasitic power
supply), connected to the pin 55 with external pull-up resistor (of approximately 5 k). In PoKeys57
series devices, pin for 1-wire communication can be changed.
Protocol can be tested via PoKeys configuration software. Click on Peripherals > 1-Wire bus test...
The following dialog appears.
The DS18B20 test is deprecated in PoKeys57 series devices. Use EasySensors instead.
Figure 25: 1-Wire protocol test dialog
Applicable PoKeys library commands
1-wire device configuration and status commands
prot1WireSetStatus
prot1WireGetStatus
Activate or deactivate 1-wire bus support on pin 55
Retrieves 1-Wire bus activation status
prot1WireStartWriteAndRead
prot1WireGetReadStatus
Initiates write and read process to/from 1-wire device
Read status of write and read command and retrieve data if
command was executed