klipper-dgus/src
functionpointer 2dc20c011d ds18b20: Allow some read errors
Allows a limited number of DS18B20 read failures
before stopping the printer. This is designed to
tolerate spurious read errors, while still stopping
for serious issues.

The printer will stop when the sensor

fails to report a value five times in a row.

Implementation works as follows:
The MCU reports any read errors using a new "fault"
parameter in its answers.
The Python code tracks the number of errors
and triggers the shutdown. This paves the way for
more sophisticated error handling in the future,
as well as an example for other sensors to follow.

Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
2022-06-08 12:39:12 -04:00
..
atsam atsam: Fix typo in sam4e_afec 2022-03-28 10:19:58 -04:00
atsamd stepper: Add support for stepping on both edges of a step pulse 2021-11-04 12:06:27 -04:00
avr stepper: Make step pulse duration customizable at run-time 2021-11-04 12:06:27 -04:00
generic armcm_reset: Add a armcm_reset.h header file for try_request_canboot() 2022-06-04 11:52:39 -04:00
linux ds18b20: Allow some read errors 2022-06-08 12:39:12 -04:00
lpc176x lpc176x: Fix serial ordering of initialization 2022-03-01 12:55:06 -05:00
pru misc: Import misc.h in all files defining console_sendf() 2022-05-13 11:22:47 -04:00
rp2040 flash_usb: use sudo for rp2040 flashing 2022-01-31 11:10:02 -05:00
simulator command: Fix handling of buffer passing in args[] on 64bit mcu 2020-10-30 14:04:12 -04:00
stm32 stm32: Enable Automatic retransmission feature to avoid data loss caused by bus conflict for STM32G0B1 fdcan (#5550) 2022-06-06 10:59:18 -04:00
Kconfig Kconfig: Move CANBUS_FREQUENCY definition from src/stm32/Kconfig to src/Kconfig 2022-06-04 11:56:59 -04:00
Makefile sensor_angle: Add support for bulk querying of spi angle sensors 2022-03-29 20:34:46 -04:00
adccmds.c adccmds: Run gpio_adc_setup() before oid_alloc() 2019-01-13 11:03:30 -05:00
basecmd.c mcu: Make a minor change to the protocol to require mcu update 2021-11-06 18:47:44 -04:00
basecmd.h stepper: Use a reusable interface to the "move queue" 2020-12-04 16:10:13 -05:00
buttons.c buttons: initialize mcu buttons based on inverted state 2019-07-05 20:01:07 -04:00
byteorder.h byteorder: Add a header file defining common byteswap functions 2018-05-21 09:44:40 -04:00
command.c command: Make command_add_frame() and command_encodef() static 2021-10-21 01:25:17 -04:00
command.h command: Make command_add_frame() and command_encodef() static 2021-10-21 01:25:17 -04:00
compiler.h compiler.h: Check if __aligned and __section macros are already defined 2016-06-13 23:18:59 -04:00
ctr.h ctr: Encode negative integers in normal hex notation 2019-08-22 13:06:44 -04:00
debugcmds.c debugcmds: Remove start/end_group commands 2021-05-07 13:53:47 -04:00
endstop.c trsync: Introduce new "trigger synchronization" support 2021-06-09 18:58:35 -04:00
gpiocmds.c gpiocmds: Merge digital output and soft pwm code 2020-12-10 12:06:26 -05:00
i2ccmds.c command: Add command_decode_ptr() helper 2020-10-30 14:04:08 -04:00
initial_pins.c initial_pins: Add ability to configure output pins at mcu startup 2019-03-17 20:56:25 -04:00
initial_pins.h initial_pins: Add ability to configure output pins at mcu startup 2019-03-17 20:56:25 -04:00
lcd_hd44780.c lcd_st7920: Check CONFIG_MACH_AVR for slow mcus 2021-07-04 10:11:02 -04:00
lcd_st7920.c lcd_st7920: Check CONFIG_MACH_AVR for slow mcus 2021-07-04 10:11:02 -04:00
neopixel.c neopixel: Fix neopixel_result message so that it contains an oid 2020-11-05 11:40:34 -05:00
pulse_counter.c pulse_counter: Use "clock" suffix instead of "time" in commands 2021-04-30 11:40:37 -04:00
pwmcmds.c pwmcmds: Use move queue for hard PWM 2020-12-04 16:10:13 -05:00
sched.c sched: Move last_insert check for improved gcc code layout 2021-11-09 20:20:24 -05:00
sched.h pru: Support config_reset command to manually reset mcu 2017-09-03 23:16:38 -04:00
sensor_adxl345.c adxl345: Compress each sample from 6 bytes to 5 bytes 2021-08-30 12:25:50 -04:00
sensor_angle.c sensor_angle: Support TLE5012b frame counter for timing 2022-03-29 20:34:46 -04:00
spi_software.c spi_software: Remove unused include file 2019-08-17 13:49:03 -04:00
spi_software.h spi_software: Implementation of software spi 2019-02-13 11:52:20 -05:00
spicmds.c spicmds: Allow inversion of CS pin for SPI busses 2022-04-22 13:25:03 -04:00
spicmds.h sensor_angle: Add support for bulk querying of spi angle sensors 2022-03-29 20:34:46 -04:00
stepper.c stepper: Move min_next_time check to stepper_event_full() 2021-11-04 12:06:27 -04:00
stepper.h trsync: Introduce new "trigger synchronization" support 2021-06-09 18:58:35 -04:00
thermocouple.c thermocouple: Define thermocouple types using enumerations 2019-03-17 19:38:18 -04:00
tmcuart.c command: Add command_decode_ptr() helper 2020-10-30 14:04:08 -04:00
trsync.c trsync: Introduce new "trigger synchronization" support 2021-06-09 18:58:35 -04:00
trsync.h trsync: Introduce new "trigger synchronization" support 2021-06-09 18:58:35 -04:00