suchmememanyskill / CYD-Klipper

An implementation of a wireless Klipper status display on an ESP32 + screen
https://suchmememanyskill.github.io/CYD-Klipper/
GNU General Public License v3.0
259 stars 34 forks source link

Failed to connect #121

Closed fylhtq7779 closed 4 months ago

fylhtq7779 commented 4 months ago

Hi, I'm trying to connect with CYD to my printer, but I get the error "Failed to connect" Sometimes the connection happens, I get into the CYD interface, but after a couple of seconds the connection disappears I tried adding IP addresses to the moonraker whitelist, but it didn't help I also did not understand how to find out the ip of the CYD itself Help :c

suchmememanyskill commented 4 months ago

Logs?

(You can get logs via the installer prompt, there's an option to open the terminal)

fylhtq7779 commented 4 months ago

Logs?

(You can get logs via the installer prompt, there's an option to open the terminal)

[  8962][E][WiFiGeneric.cpp:1578] hostByName(): DNS Failed for suchmememanyskill.github.io
OTA Update Result: 1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
Failed to fetch printer data: -1
[ 24314][E][WiFiClient.cpp:268] connect(): socket error on fd 48, errno: 113, "Software caused connection abort"
Failed to fetch printer data: -1
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
Hello World
Config version: 6
Screen init done
Connecting to Interneta net with a password length of 9
WiFi Status: Disconnected
[  8937][E][WiFiGeneric.cpp:1578] hostByName(): DNS Failed for suchmememanyskill.github.io
suchmememanyskill commented 4 months ago

HTTPC_ERROR_CONNECTION_REFUSED

Btw, you can view the ip of cyd klipper on your router.

fylhtq7779 commented 4 months ago

HTTPC_ERROR_CONNECTION_REFUSED

Btw, you can view the ip of cyd klipper on your router.

The problem is that I don't see this device in the router settings. The message WiFi Status: Disconnected appears in the logs immediately after I connect to wifi

fylhtq7779 commented 4 months ago

Hello again I managed to fix it, but I'm not sure how In the router settings, I set the standard DNS 8.8.8.8 and 8.8.4.4, and I was also able to find the MAC address and made it static

Thank you for your help and for your project!