Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.53k stars 5.32k forks source link

Raspberry ON/OFF heater control error (Scheduled digital out event will exceed max_duration) #5561

Closed cinadr closed 2 years ago

cinadr commented 2 years ago

Hi! I have a 220V infrared heater in my cabinet. It is connected through a relay on my raspberry PI 4B gpio20 port. It is basically only an on/off heater. I have configured klipper to recognize it as a generic heater and klipper starts with the config without error. When I try to PID calibrate or turn it on, klipper shuts down with a message: "MCU 'host' shutdown: Scheduled digital out event will exceed max_duration". I've found this message in klipper source where I can only understand that some timing error is the probable cause. The GPIO list is the following:

gpiochip0 - 58 lines:                                                         
        line   0:     "ID_SDA"       unused   input  active-high              
        line   1:     "ID_SCL"       unused   input  active-high              
        line   2:       "SDA1"       unused   input  active-high              
        line   3:       "SCL1"       unused   input  active-high              
        line   4:  "GPIO_GCLK"       unused   input  active-high              
        line   5:      "GPIO5"   "shutdown"   input  active-high [used]       
        line   6:      "GPIO6"       unused  output  active-high              
        line   7:  "SPI_CE1_N"   "spi0 CS1"  output   active-low [used]       
        line   8:  "SPI_CE0_N"   "spi0 CS0"  output   active-low [used]       
        line   9:   "SPI_MISO"       unused   input  active-high              
        line  10:   "SPI_MOSI"       unused   input  active-high              
        line  11:   "SPI_SCLK"       unused   input  active-high              
        line  12:     "GPIO12"       unused   input  active-high              
        line  13:     "GPIO13"       unused   input  active-high              
        line  14:       "TXD1"       unused   input  active-high              
        line  15:       "RXD1"       unused   input  active-high              
        line  16:     "GPIO16"   "dht11@10"   input  active-high [used]       
        line  17:     "GPIO17"       unused   input  active-high              
        line  18:     "GPIO18"       unused   input  active-high              
        line  19:     "GPIO19"       unused   input  active-high              
        line  20:     "GPIO20"    "klipper"  output  active-high [used]       
        line  21:     "GPIO21"  "moonraker"  output   active-low [used]       
        line  22:     "GPIO22"       unused   input  active-high              
        line  23:     "GPIO23"       unused   input  active-high              
        line  24:     "GPIO24"       unused   input  active-high              
        line  25:     "GPIO25" "ads7846_pendown" input active-high [used]     
        line  26:     "GPIO26"       unused   input  active-high              
        line  27:     "GPIO27"       unused   input  active-high              
        line  28: "RGMII_MDIO"       unused   input  active-high              
        line  29:  "RGMIO_MDC"       unused   input  active-high              
        line  30:       "CTS0"       unused   input  active-high              
        line  31:       "RTS0"       unused   input  active-high              
        line  32:       "TXD0"       unused   input  active-high              
        line  33:       "RXD0"       unused   input  active-high              
        line  34:    "SD1_CLK"       unused   input  active-high              
        line  35:    "SD1_CMD"       unused   input  active-high              
        line  36:  "SD1_DATA0"       unused   input  active-high              
        line  37:  "SD1_DATA1"       unused   input  active-high              
        line  38:  "SD1_DATA2"       unused   input  active-high              
        line  39:  "SD1_DATA3"       unused   input  active-high              
        line  40:  "PWM0_MISO"       unused   input  active-high              
        line  41:  "PWM1_MOSI"       unused   input  active-high              
        line  42: "STATUS_LED_G_CLK" "led0" output active-high [used]         
        line  43: "SPIFLASH_CE_N" unused input active-high                    
        line  44:       "SDA0"       unused   input  active-high              
        line  45:       "SCL0"       unused   input  active-high              
        line  46: "RGMII_RXCLK" unused input active-high                      
        line  47: "RGMII_RXCTL" unused input active-high                      
        line  48: "RGMII_RXD0"       unused   input  active-high              
        line  49: "RGMII_RXD1"       unused   input  active-high              
        line  50: "RGMII_RXD2"       unused   input  active-high              
        line  51: "RGMII_RXD3"       unused   input  active-high              
        line  52: "RGMII_TXCLK" unused input active-high                      
        line  53: "RGMII_TXCTL" unused input active-high                      
        line  54: "RGMII_TXD0"       unused   input  active-high              
        line  55: "RGMII_TXD1"       unused   input  active-high              
        line  56: "RGMII_TXD2"       unused   input  active-high              
        line  57: "RGMII_TXD3"       unused   input  active-high              

I upload the log here: klippy.log

I configured my DHT temperature source described here. I made two separate temperature files one for the fan and one for the heater (content is the same to share the sensor) but the error is still the same if I comment out the fan section and only the heater is activated.

github-actions[bot] commented 2 years ago

It looks like this ticket is a request for help (or similar). Many helpful people will not see your message here and you are unlikely to get a useful response. Instead, see the contact directions at: https://www.klipper3d.org/Contact.html

We use github to share the results of work done to improve Klipper. We don't use github for requests. (In particular, we don't use github for feature requests, to answer questions, nor to help diagnose problems with a printer.)

Please follow the directions at: https://www.klipper3d.org/Contact.html

This ticket will be automatically closed.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

Sineos commented 2 years ago

As already stated when you opened the ticket: Issues here are for development only. Please be so kind to place your support / feature request on Klipper Discourse