top of page

OneWire Bus Commands

f1w - Find attached OneWire devices

Purpose

This will scan the OneWire bus looking for attached devices. When a new device is found it will be setup and added as a new channel.


Syntax

f1w


Examples

> f1w
< Finding OneWire Devices....
< Found DS18B20 dev 1 type 40 [0x28]h  Chan [26] Address [01:3C:CF]
< Found DS18B20 dev 2 type 40 [0x28]h  Chan [27] Address [FF:3C:A4]
< Found 2 devices

Channels & Vars

Each of the devices found will be allocated the channels the require automatically. Their readings will appear in the gt command etc.



l1w - List devices on the OneWire bus

Purpose This command will list all of the devices on the OneWire bus.

Syntax l1w

Examples

> l1w < Chan Name Addr Hex Mode Type Units Raw Value Errors < 26 Temp 01:3C:CF 1 DS1820_Temp C 21 21.81 0 < 27 Temp FF:3C:A4 1 DS1820_Temp C 22 22.19 0


rst1w - Reset the devices on the OneWire bus

Purpose This command will reset all of the channels of devices on the OneWire bus.

Syntax rst1w

Examples rst1w OneWire Chans Reset


s1woff - Disable the OneWire bus on port C pin 5

Purpose

Turn off the OneWire us on port C5 and return it to it's default state.

Syntax

s1woff

Examples

s1woff


s1won - Enable the OneWire bus on port C pin 5.

Purpose

Setup pin C5 as the OneWire bus so you can connect 1wire devices to it.

Syntax

s1won

Examples

s1won




bottom of page