bigtreetech / BIGTREETECH-TouchScreenFirmware

support TFT35 V1.0/V1.1/V1.2/V2.0/V3.0, TFT28, TFT24 V1.1, TFT43, TFT50, TFT70
GNU General Public License v3.0
1.3k stars 1.65k forks source link

Onboard SD and Autolevel not available until reset #842

Closed Thijsvanzwam closed 3 years ago

Thijsvanzwam commented 4 years ago

Description

onboard SD and autolevel not available until reset

Steps to reproduce

  1. switch on power supply, printer starts up
  2. wait for "no printer attached" disasters and "ready" shows up
  3. All functions are available except onboard SD and autolevel

Expected behavior All function available

Actual behavior When pressing reset button on the TFT, functions will become available

Hardware Variant

BTT TFT 3,5 v3.0

TFT Firmware Version & Main Board Firmware details

Most recent

Additional Information

Mainboard is BTT SKR 1,4 running on Marlin 2.0.5.3 Issue occurs on marlin bug fix and older versions too

Problem only occurs in touch mode. When running TFT in Marlin mode, all functions are available as expected.

Tygrys-1 commented 4 years ago

You may try to turn off this autodetect "feature" ;-) Put in the config.ini

onboard_sd_support:1

See #775 and #770

Thijsvanzwam commented 4 years ago

did that but no effect

radek8 commented 4 years ago

Do you have this option in Mrlin?

define SDCARD_CONNECTION ONBOARD

Thijsvanzwam commented 4 years ago

Do you have this option in Mrlin?

define SDCARD_CONNECTION ONBOARD

yes, it is enabled

oldman4U commented 4 years ago

Could you remove the display from the metal enclosure and try it again.

Thijsvanzwam commented 4 years ago

metal enclosure?

oldman4U commented 4 years ago

How have you mounted the display? Plate, frame, enclosure and is this made of metal or wood or??

Thijsvanzwam notifications@github.com schrieb am So. 19. Juli 2020 um 18:44:

metal enclosure?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/issues/842#issuecomment-660674178, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZDTC77CVPG4VPO2XHLR4MPG5ANCNFSM4OZPVZLQ .

Thijsvanzwam commented 4 years ago

The display is mounted, but in a printed enclosure made of PLA.

Thijsvanzwam commented 4 years ago

took it out of the enclosure today but no difference. When I just normally boot up the printer by turning on the power switch, no onboard and autolevel is available. Pressing the reset button and it all works.

oldman4U commented 4 years ago

I asked because there have been some users with shortage issues installing this TFT into the Ender 3 standard metal frame causing different strange issues.

Thijsvanzwam notifications@github.com schrieb am Mo. 20. Juli 2020 um 12:12:

took it out of the enclosure today but no difference. When I just normally boot up the printer by turning on the power switch, no onboard and autolevel is available. Pressing the reset button and it all works.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/issues/842#issuecomment-660937496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZEIA3IZ7KMB2MDNYPDR4QKCNANCNFSM4OZPVZLQ .

Thijsvanzwam commented 4 years ago

I can imagine... I guess it is a software issue. Still trying to find out what the reason is.

oldman4U commented 4 years ago

Not sure this is software. Have you tried to change the serial cable?

Thijsvanzwam commented 4 years ago

yep, tried that, two times... one time with original cable and second using Dupont cables. no effect found out that when I switch from touch mode to marlin mode and back both functions are available.

When I press reset, is it the same as turning off and on the power switch or is there a difference? Reset the thing by pressing the button and it works, switch off power and turn it back on and it does not work.

oldman4U commented 4 years ago

Unfortunately i do not know if this is the same. I am a user like you.

Finally this sounds like a hardware problem to me.

πŸ₯Ί

Thijsvanzwam notifications@github.com schrieb am Mi. 22. Juli 2020 um 10:41:

yep, tried that, two times... one time with original cable and second using Dupont cables. no effect found out that when I switch from touch mode to marlin mode and back both functions are available.

When I press reset, is it the same as turning off and on the power switch or is there a difference? Reset the thing by pressing the button and it works, switch off power and turn it back on and it does not work.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/issues/842#issuecomment-662325402, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZHSWX4TGAWL7ZK2X5TR42Q4JANCNFSM4OZPVZLQ .

radek8 commented 4 years ago

Try it with cables to the EXP connector disconnected.

Thijsvanzwam commented 4 years ago

no luck. tried it but no difference.

traffic-light commented 4 years ago

I don't know if you use the wifi module. But removing the wifi module solved my problem....

I think the reset helped because the WiFi module stays on and doesn't reconnect or anything else....

Thijsvanzwam commented 4 years ago

Yes, I use the Wifi module. It sounds plausible about the module staying on when doing a reset. So perhaps both the wifi module and the mainboard are simultaneously telling the tft their info, resulting in one of them not being heard at initial startup. If what you say is the problem, would delaying the startup of the wifi module then be the trick? is there a way of doing that, my knowledge of writing code is quite limited...

radek8 commented 4 years ago

I use a wifi module and I don't have this problem

traffic-light commented 4 years ago

Yes, I use the Wifi module. It sounds plausible about the module staying on when doing a reset. So perhaps both the wifi module and the mainboard are simultaneously telling the tft their info, resulting in one of them not being heard at initial startup. If what you say is the problem, would delaying the startup of the wifi module then be the trick? is there a way of doing that, my knowledge of writing code is quite limited...

I don't know how the wifi module works. I can take a look at it. I don't know when I have time for it.

For now I don't use it. (The wifi module doesn't give me enough options and upload is slow)

radek8 commented 4 years ago

I also don't use it to print or transfer files, but to test it. If I need to connect a PC via the Pronterface app. The SD card is the most reliable for printing

oldman4U commented 4 years ago

@Thijsvanzwam

Any news related to the reported issue?

I also use the WIFI module on the TFT also only for Pronterface and play aroud with an SD Cloud at the moment.

Thijsvanzwam commented 4 years ago

Nope, no news yet. I really think that some way of delaying the startup of the wifi module would make a difference. Just cannot find a way of doing that. (because my lack of knowledge about writing this kind of code) For now I just accept it. Autolevel is done by the startcode of each print so that just works. I use the SD card in the TFT, the one on the mainboard is only used for flashing the firmware now and the wifi I hardly use because of its limitations.

Hopefully the wifi gets more options in the future and perhaps an option to delay startup as well...

traffic-light commented 4 years ago

I found a command that you can use when you connect to your esp via a terminal.

* Delay command
[ESP290]<delay in ms>[pwd=<user password>]

I'll try this. When this works I will give a short guide how to do it. I hope it works. Sometimes it's ease, for example when using the m503 command, to use the webui.

traffic-light commented 4 years ago

What version do you use on your ESP? I use 2.1.0.c26.

When u use atleast version 3.0 you can change it in the settings of your esp3d

Link to solution: https://github.com/luc-github/ESP3D/issues/329

I tried to get it working. But uploading new firmware through the webinterface isn't working. So it should be done through a, for example, a BTT writer.

I takes to much time for me so I'll try it another moment. But with version 3.0 it should be possible to set a timedelay in esp3d.h

oldman4U commented 4 years ago

I am also using v2 and failed to upload v3 because of me i guess;-) But i am able to use wifi and abl without reset so not sure why i would need a delay to get it work.

traffic-light commented 4 years ago

Because we have that issue :stuck_out_tongue_winking_eye:

oldman4U commented 4 years ago

Which one😎

But i believe you are looking for the wrong solution. Which serial ports have you defined and in which order? I use only one and this is β€ž2β€œ.

traffic-light commented 4 years ago

I've placed the WiFi module in de dedicated port on my TFT35-E3-V3.0

And serial ports on the mainboard or on the tftscreen?

oldman4U commented 4 years ago

Me2

Mainboard

Peter van Weeterloo notifications@github.com schrieb am Di. 4. Aug. 2020 um 16:30:

I've placed the WiFi module in de dedicated port on my TFT35-E3-V3.0

And serial ports on the mainboard or on the tftscreen?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/issues/842#issuecomment-668630652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZB2UHURTIQWDXMOWLDR7ALOVANCNFSM4OZPVZLQ .

traffic-light commented 4 years ago

Okay. These are my Serial settings:

#define SERIAL_PORT -1

/**
 * Select a secondary serial port on the board to use for communication with the host.
 * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
 */
#define SERIAL_PORT_2 0

These where recomended

radek8 commented 4 years ago

@Thijsvanzwam Can you disconnect WIFI and see if the problem persists? Something that is probably not related to your problem is being addressed here

Thijsvanzwam commented 4 years ago

I'll try that later, not at home right now. enjoying the good weather on the boat at the moment...

traffic-light commented 4 years ago

@radek8 I don't know if @Thijsvanzwam is getting the same. But when I switch to Accespoint mode instead of Clientstation I don't need to reset for ABL etc.

EDIT: I deactivated all M117 messages and now it connects with Wi-Fi and the ABL works without reset. Screenshot_20200804_221256

oldman4U commented 4 years ago

On my SKR E3 DIP I use the following serials.

define SERIAL_PORT 2

*/ //#define SERIAL_PORT_2 -1

I can print from On Board and TFT SD card and USB stick, have the WIFI connection and Autolevel.

It is a long time ago and I can not remember why I finally used this setting, but it works. Maybe another setting is needed for the mini, but at least it is worth to give it a try.

oldman4U commented 4 years ago

Any news?

Thijsvanzwam commented 4 years ago

nope, tried all but no luck. Just accepted it for now...

github-actions[bot] commented 6 months ago

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.