Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No IP Address on LCD/TFT of printer #986

Closed
firepower9966 opened this issue Jan 1, 2024 · 33 comments
Closed

[BUG] No IP Address on LCD/TFT of printer #986

firepower9966 opened this issue Jan 1, 2024 · 33 comments

Comments

@firepower9966
Copy link

Describe the bug

No IP Address shown on LCD / TFT of printer in STA Mode.
When in AP Mode it shows IP address and status messages.

Turn on or reset 3D Printer does not show IP address when connects in STA mode.

Display IP address on start up

Screenshots

ESP3D Firmware:

  • ESP3D FW version: FW: 2.1.3b0
  • ESP3D-WebUI Version: UI: 2.1b77
  • Wifi mode: STA
  • Flash method: [PlatformIO] Have used both, Arduino IDE 2.2.1 {to set FS size and full erase when got json error}
    If you build with Arduino:
    • Arduino ESP8266 package version: [e.g. 2.5.2]
      Generic ESP8266

Target Firmware:
Marlin bugfix-2.1.x (Jan 1 2024 23:40:20)

Board used (please complete the following information):

  • MCU:[ESP8266 ESP12S]
  • Name:[MKS Wifi]
  • Flash size: [4M: 2M/2M]

Additional context
I previously had IP address shown using ESP8266 D1 mini and ramps 1,4 Atmega2560 with LCD 12864 / LCD 2004
I am now using MKS Wifi with MKS Robin Nano V3,1 and TS35 V2,0 but no IP address, but everything else works fine
have tried with and without #define DISABLE_CONNECTING_MSG
have tried changing Delay esp3d.h and still not IP, using 12s as it allows it to start and show firmware boot message in console of ESP3D.

esp3d.zip

Copy link

github-actions bot commented Jan 1, 2024

Thank your for submiting, please be sure you followed template or your issue may be dismissed. if you deleted the template it is here

@luc-github
Copy link
Owner

luc-github commented Jan 2, 2024

Does the IP appear on TFT if you do an [ESP444]RESTART in webui terminal ?
What is the zip file for ?

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

Zip File contains my config.h and esp3d.h so you can check my setting.

@luc-github
Copy link
Owner

image
no you put wrong file, you put config.cpp not .h

@firepower9966
Copy link
Author

here correct file.
esp3d.zip

@luc-github
Copy link
Owner

Does the IP appear on TFT if you do an [ESP444]RESTART in webui terminal ?

@firepower9966
Copy link
Author

I currently printing , I will update later in about half an hour to complete print.

@luc-github
Copy link
Owner

also does any command work from WEBUI to monitor / control printer ?

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

[ESP444]RESTART show disconnected on TFT
even when reconnects and i read sdcard or send command.
all commands work , gcode, mcode and [ESPcodes]
I can homee, set and monitor temp, fan, read and upload and print from sdcard/
everything seems to work ok , just no ip address on start up or reset
I can send text to TFT using M117 from ESP3D console of webui

@luc-github
Copy link
Owner

does [ESP111]M117 display the IP ?

@luc-github luc-github reopened this Jan 2, 2024
@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

Only in Webui console
[ESP111]M117
M117192.168.1.11
I have already tried to do same as custom command sent from printer, but not display

#define CONFIG_MENU_ITEM_1_DESC "Wifi IP ?"
#define CONFIG_MENU_ITEM_1_GCODE "M118 [ESP111]"

and even adding M117 but no display on TFT but shows IP on console or/and echo:Unknown command: in webui console.

@luc-github
Copy link
Owner

what about : M117 192.168.1.11 from webUI terminal

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

Yes that displays 192.168.1.1 on TFT
M117 works from console no problem.

@firepower9966
Copy link
Author

would adding space character before IP address allow M117 to show IP
[ESP111]M117
M117192.168.1.11 change to this M117 192.168.1.1

@luc-github
Copy link
Owner

yes you can add space to end
[ESP111]M117

@firepower9966
Copy link
Author

that shows in console
[ESP111]M117
M117192.168.1.11

and no IP on TFT/LCD

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

I like to get IP to show on LCD, but if it cant its ok, I can get IP from router if neeeded, and DHCP saves it for a time also.

Also it shows IP in AP when doing fiirst setup to upload index.html.gz

I dont want to give you head ache from this or waste your time,
I happy to test to get it to work but but if it cant it no great problem.
ESP3D works fine and the MKS file transfer is great compared to the glacial slow transfer of standard serial wifi.
I mainly just use to send console commands when configuring options for marlin firmware updates.

@luc-github
Copy link
Owner

luc-github commented Jan 2, 2024

I am checking on it because the code is very old, I am adding possible solution now, 2.1 use HK wifi method not serial solution for emulating MKS WiFi module so I may missed that in 2.1

but I do not understand :

ESP3D works fine and the MKS file transfer is great compared to the glacial slow transfer of standard serial wifi.

ESP3D 2.1 does not support MKS file transfert only ESP3D 3.0 so I do not understand : how can you have fast file transfert on 2.1 ?

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

Its seems to work you have the option in config.h
//MKS TFT WIFI support see Wiki for wiring
#define MKS_TFT_FEATURE

I can not get ESP3D 3.0 to work no wifi comms have tried twice,but ESP3D 2,0 work well

what the main differences of 2.1 vs 3.0 ?

@luc-github
Copy link
Owner

MKS_TFT_FEATURE just allow MKS TFT to get IP in settings and so make the communication active, it does not do anything on file upload

3.0 is a complete rewrite and has native support of MKS WIFI

@luc-github
Copy link
Owner

luc-github commented Jan 2, 2024

I think it is fixed now I have tested with your config

@firepower9966
Copy link
Author

Maybe it just placebo , lol
I use USB stick for transfer as my PC is next to my printer.

@firepower9966
Copy link
Author

I will reflash firmware with MKS TFT WIFI disabled. maybe thats the issue
//MKS TFT WIFI support see Wiki for wiring
//#define MKS_TFT_FEATURE

@luc-github
Copy link
Owner

if you do this the TFT may think there is not WIFI module, just download the FW on git I have already pushed the fix
460a145

@firepower9966
Copy link
Author

Thats it now see IP
now shows
Wifi ssid
disconnect
IP

@firepower9966
Copy link
Author

MY wifi in on mainboard
I will update to latest 2.1 ?

@luc-github
Copy link
Owner

yes or change the code I have linked to esp3d.cpp

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

Working OK
see IP on TFT
Thank you for you help fixing this.
very happy.

@luc-github
Copy link
Owner

cool thank you for reporting it 😺

@luc-github
Copy link
Owner

I close issue then

@firepower9966
Copy link
Author

firepower9966 commented Jan 2, 2024

yes thank you.

@luc-github
Copy link
Owner

for more info you can check here : https://esp3d.io/esp3d/v3.x/index.html

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants