onewiresmoketest

package
v3.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

'onewire-testboard' smoke test

Verifies that a 1-wire bus with two devices can be searched and that a DS18b20 temperature sensor as well as a ds2431 eeprom can be accessed. Typically used with the periph-tester board.

Example output running on a C.H.I.P.:

chip4 ~> sudo ./periph-smoketest -v onewire-testboard -i2cbus 1
05:47:18.561821 Using drivers:
05:47:18.562864 - allwinner-gpio
05:47:18.563359 - chip
05:47:18.563783 - sysfs-gpio
05:47:18.564144 - sysfs-i2c
05:47:18.564491 - sysfs-led
05:47:18.564830 - sysfs-spi
05:47:18.565161 - sysfs-thermal
05:47:18.565470 Drivers skipped:
05:47:18.566169 - allwinner-gpio-pl: A64 CPU not detected
05:47:18.566265 - bcm283x-gpio: bcm283x CPU not detected
05:47:18.566336 - odroid-c1: Hardkernel ODROID-C0/C1/C1+ board not detected
05:47:18.566403 - pine64: dependency not loaded: "allwinner-gpio-pl"
05:47:18.566466 - rpi: dependency not loaded: "bcm283x-gpio"
05:47:18.569578 onewire-smoke: random number seed 1481694438569396253
05:47:18.655117 onewire-smoke: found 2 devices 0xaf000001318c0128 0x28000014f3f0c52d
05:47:18.920729 onewire-smoke: temperature is 28.50°C
05:47:18.921942 Test onewire-testboard successful

Documentation

Overview

Package onewiresmoketest is leveraged by periph-smoketest to verify that a 1-wire bus search returns two devices, that a ds18b20 temperature sensor can be read, and that a ds2431 eeprom can be written and read.

This assumes the presence of the periph-tester board, which includes these two devices. See https://github.com/periph/periph-tester

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmokeTest

type SmokeTest struct {
}

SmokeTest is imported by periph-smoketest.

func (*SmokeTest) Description

func (s *SmokeTest) Description() string

Description implements the SmokeTest interface.

func (*SmokeTest) Name

func (s *SmokeTest) Name() string

Name implements the SmokeTest interface.

func (*SmokeTest) Run

func (s *SmokeTest) Run(f *flag.FlagSet, args []string) error

Run implements the SmokeTest interface.

func (*SmokeTest) String

func (s *SmokeTest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL