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

New Display in i3 Mega S not fully supported #4

Closed
ketchup67 opened this issue Jul 4, 2020 · 106 comments
Closed

New Display in i3 Mega S not fully supported #4

ketchup67 opened this issue Jul 4, 2020 · 106 comments

Comments

@ketchup67
Copy link

ketchup67 commented Jul 4, 2020

There is a new display in the i3 Mega S built in. Seems it is the same display like the one which is used in the Anycubic Mega X.
The special menu is not shown anymore.

@knutwurst
Copy link
Owner

Does everything else work as expected or is just the special menu missing? Did you insert an SD Card?

@ketchup67
Copy link
Author

ketchup67 commented Jul 4, 2020 via email

@knutwurst
Copy link
Owner

That's technically impossible. Maybe your firmware update did not succeed? Either the display and the file listing works correctly or not at all, because everything is based on the same code.

Can you verify that you've got the Trigorilla Motherboard with Atmega2560 and not the 32bit "Trigorilla Pro"?

@ketchup67
Copy link
Author

ketchup67 commented Jul 4, 2020 via email

@knutwurst
Copy link
Owner

"Oliver Köster notifications@github.com schrieb am..." -> are you german? ;)

Can you tell me which firmware is shown in the display, when you click on Tools -> More -> Info?

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020 via email

@knutwurst
Copy link
Owner

(In english - maybe someone else is interested in this topic too)

Could you please install the original firmware and show me a photo of the info-screen on the TFT? I'll investigate the issue. "V116" is the custom firmware label, which is provided by marlin but it is commonly ignored by the display, so I didn't change the value. Normally something like "1.1.2" or "1.4.0rc" is shown.

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020 via email

@knutwurst
Copy link
Owner

Can you upload a photo?

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020 via email

@knutwurst
Copy link
Owner

Photos of the tft info screen before and after the update and also a photo of the non-working special menu would be great. I'll dig into it. Since the Anycubic Mega P (Pro) arrived, there is also a new display firmware out there... sadly anycubic didn't want me to have the firmware :(

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020 via email

@knutwurst
Copy link
Owner

Right here, I cannot see any attachments if you reply to an email. You need to log into github and upload the photos there. ;)

@ketchup67
Copy link
Author

Sorry, my mistake.
20200705_100040
20200705_100048
20200705_100103

@knutwurst
Copy link
Owner

Bildschirmfoto 2020-07-05 um 10 18 08

Damn! looks like you got the display from the new "Mega P" which also looks like the "Mega X".
That's weird... I'd really like to see the insides of the printer ;)

Seems that I now need another printer with this particular display to edit the firmware. My hope is, that the file list inside the display uses a sanitiser to get rid of special characters (like the ".." or the "<" of the special menu). Maybe I can work around the issue...

@ketchup67
Copy link
Author

Here the photo after the original firmware update...
Please let me know how i can support you.

After original Anyvubic firmware update

@knutwurst
Copy link
Owner

knutwurst commented Jul 5, 2020

Can you please try this firmware and let me know if you see any differences in the file menu?

mega_s_new_tft_03.hex.zip

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020 via email

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020

Right now i flashed your modified firmware. I would say partly succesfull. Please take a look at the attached photos.
The special menu is showing up now but unfortunately it is not accessable.

20200705_153232
20200705_153428

@knutwurst
Copy link
Owner

Wow.. okay. That's exactly what I was trying to achieve!
Give me some time. I'll do my best to get your screen working ;)

@ketchup67
Copy link
Author

ketchup67 commented Jul 5, 2020 via email

@knutwurst
Copy link
Owner

Oh and I forgot: You need to click on "refresh" instead of print, to accept entries in the special menu. But at this point, you might be stuck inside, because the menu handling is still the old one.

@ketchup67
Copy link
Author

I did - i did the rtfm thing :-P

@knutwurst
Copy link
Owner

knutwurst commented Jul 6, 2020

Could you please try this firmware?
If I am correct, you should see and now use the special menu... and maybe I can create a version, where both displays are supported. Also my goal is to use the "Print" key as "enter".

get_into_special_menu.zip

If it doesn't work, I'll create a testing-firmware, which creates a list of items in the file menu with different (hopefully supported) characters.

As long as I don't have this kind of display, I need you to test everything. "Blind" programming is a bit of PITA ;)

@ketchup67
Copy link
Author

I flashed it right now. The situation is same. No reaction if trying to accept the special menue.

20200706_142903
20200706_142916
20200706_143011

@knutwurst
Copy link
Owner

get_into_special_menu_2.zip

Next one... now with debugging output and hopefully working directory-listing. The missing directories are our problem atm to get the correct index.

@ketchup67
Copy link
Author

Here the debug output

20200706_154000

@knutwurst
Copy link
Owner

Can you make a photo of the file listing when the original sd card is inserted?

@ketchup67
Copy link
Author

Attached the file view of the SD Card with the Windows Explorer and what you can see on the TFT:

Explorer
20200707_092032

@knutwurst
Copy link
Owner

The double entry at the top is weird...
But try this. Maybe you can see folders now.
I really need this touch display to test it properly :/

get_into_special_menu_3.zip

@knutwurst
Copy link
Owner

knutwurst commented Jul 19, 2020

Hmm.. okay. Does this make any difference?
EDIT: Deleted.. doesn't work.

There must be some timing issue. If the output differs from 05 to 06, the display also needs other serial timings :/

@ketchup67
Copy link
Author

ketchup67 commented Jul 19, 2020 via email

@knutwurst
Copy link
Owner

knutwurst commented Jul 20, 2020

new_tft_02.zip

thumbs pressed

EDIT: Updated

@ketchup67
Copy link
Author

ketchup67 commented Jul 20, 2020 via email

@ketchup67
Copy link
Author

Installed now. Here are the pictures.

  1. Cannot navigate into the special menu
  2. arrow scrolling down just shows Dir_.gcode

:(

20200721_193835
20200721_193844
20200721_193849

@knutwurst
Copy link
Owner

Interesting. Maybe I should stop uploading files I didn't test myself :D

@ketchup67
Copy link
Author

ketchup67 commented Jul 22, 2020 via email

@knutwurst
Copy link
Owner

@ketchup67
Copy link
Author

No change - same!

@knutwurst
Copy link
Owner

finally_something_that_works.zip

Babysteps 🕺🏻

@ketchup67
Copy link
Author

ketchup67 commented Jul 24, 2020 via email

@ketchup67
Copy link
Author

ketchup67 commented Jul 25, 2020 via email

@knutwurst
Copy link
Owner

knutwurst commented Jul 25, 2020

Thanks :D
Not all menu items are working at the moment and I need to rework the file handling. Also the menu is ugly AF but I find a solution for that. I promise ;)

Also the folder navigation is a bit tricky, but I do my best.

@ketchup67
Copy link
Author

ketchup67 commented Jul 25, 2020 via email

@knutwurst
Copy link
Owner

knutwurst commented Jul 25, 2020

You are printing via USB don't you?
The firmware is a prototype only for testing the TFT.

I reverted the serial buffer changes and also cleaned the display code. The stuttering should be gone now but it might be that the filenames are scrambled. Let me know if they are.
new_tft_v02.zip

@ketchup67
Copy link
Author

ketchup67 commented Jul 25, 2020 via email

@Thomas0109
Copy link

Ich habe einen Mega X, da habe ich dieses Display Problem nicht, hat der Mega X etwas noch ein anderes Display? Dafür funktioniert die Pause Funktion bei mir aber leider nicht, habe schon mehre Marlin Versionen getestet. Display bleibt mit"command has been send wait for response" hängen.
Bei dieser Version bleibt das Display nicht hängen, da sie die extensible ui nutzt, aber es werden noch nicht alle Funktionen damit unterstützt. Vielleicht hast Du ja eine Idee woran das liegen könnte?

@Thomas0109
Copy link

Ist wohl ein Dgus 2 Display verbaut, wie ich gerade rausgefunden habe. Das sollte sich ja dann sogar flashen lassen.
image

@ketchup67
Copy link
Author

ketchup67 commented Jul 26, 2020

Good morning, i flashed your new release right now. I will make a test print now.
By the way no files from the sd card are shown just the special menu option what is fine for me because of Octoprint.

@knutwurst
Copy link
Owner

@ketchup67 : Files are only shown in the root directory, so maybe this is the issue? When using filenames with a length over 26 characters, the short (DOS 8.3) are used.

@Thomas0109 : Ein DGUS 2 ist es nicht. Höchstens ein Clone davon. Das Display im Mega 3 hat einen USB Port aber keinen cardreader. Außerdem einen Nuvoton NCU120 Prozessor. Das DGUS 2 läuft glaube ich mit einer T5L ASIC 8051 CPU. Flashen kann man es trotzdem, nur bisher habe ich es nicht geschafft einen Firmwaredump zu machen. Und solange Anycubic die Firmware nicht offenlegt oder wir rausfinden, was für ein Display das ist, wird das nichts.

Zu dem von dir geposteten Link ( MarlinFirmware/Marlin#18655 ) kann ich nur sagen, dass "extensible ui" nichts weiter bedeutet, dass man die Funktionen der Marlin Firmware übersetzt und dann die Funktionen des Displays verwendet, um diese darzustellen. Dazu steht bei mir auch etwas in der Readme :) Die Implementierung des "Features" in der Marlin 2.0.6 habe ich mir auch schon angesehen. Das ist ein 1-zu-1 Clone von David Ramiro mit einer Zwischenklasse für ExtUI statt der HardwareSerial Implementierung. Und David hat es komplett von Christian Hopp übernommen. Es ist nichts neues, sondern einfach der Support des i3 Mega Displays in der Firmware.

Schau dir mal die commits an: https://github.com/MarlinFirmware/Marlin/pull/18655/commits

Zugriff auf das Display hat man so leider immer noch nicht.

Was du mit "command has been send wait for response" meinst, kann ich nur ahnen. Du redest von einer Ausgabe im Pronterface oder so? Du kannst nach Pause nicht mehr auf Resume drücken? Ja. Das ist auch ein Bug der Ramiro-Firmware, der scheinbar in die Test-Builds von Marlin übernommen wurde.

@Thomas0109
Copy link

Was du mit "command has been send wait for response" meinst, kann ich nur ahnen. Du redest von einer Ausgabe im Pronterface oder so? Du kannst nach Pause nicht mehr auf Resume drücken? Ja. Das ist auch ein Bug der Ramiro-Firmware, der scheinbar in die Test-Builds von Marlin übernommen wurde.

Ein Fenster mit "Command has been send, wait for response" steht dann auf dem Display und lässt sich nicht wegklicken.
Mit den commits von jba verschwindet dieses Fenster nach einem klick und ich kann auf resume klicken.

Habe den Mega erst seit Freitag, hatte vorher einen A8, deshalb muss ich mich noch ein wenig belesen wie es mit dem Display ist. Mein Display hat die gleich Bezeichnung wie auf dem Dgus 2 und sieht auch genau so aus. ist wohl anscheinend auch im 4Max Pro verbaut.

Einen Firmwaredump würde ich auch gerne hinbekommen, bevor ich versuche etwas am Display zu flashen.
Hast Du das schon gesehen? Ist aus einem Anycubic 4MaxPro
https://drucktipps3d.de/wp-content/uploads/2020/02/DWIN_SET.zip
Wenn das stimmt, sollte es doch möglich sein es über UART auszulesen.
image

@ketchup67
Copy link
Author

The print doesn´t stop anymore and the quality looks really good.
Thank you really very much for your hard work here!

@knutwurst
Copy link
Owner

The print doesn´t stop anymore and the quality looks really good.
Thank you really very much for your hard work here!

@ketchup67: Thanks for the fedback <3
So does the display work as expected or is something scrambled?

@Thomas0109: Ist es möglich, dass wir auf Github auf englisch schreiben? Einfach damit die community erweitert und nicht durch eine Sprachbarriere ausgeschlossen wird ;)

Es gibt allerdings auch eine deutschsprachige offizielle Facebook-Gruppe, falls du bei facebook bist? -> https://www.facebook.com/groups/3094090037303577/

Zum Thema DGUS 2 ... also wenn es bei dir wirklich so ein Display ist, dann hätte ich gern ein paar detaillierte Fotos. Bisher bin ich nämlich davon ausgegangen, dass das Display von der Hardware her das selbe ist, wie in meinem normalen i3 Mega S - und das ist kein DGUS 2.

@ketchup67
Copy link
Author

Nothing scrambled on the display anymore but files in the root like the standard owl_pair ar not shown

@Thomas0109
Copy link

I have only this Picture from my Display.

image
UI ist the same as in Picture from the Mega P

@knutwurst
Copy link
Owner

Wow! That is really a completely different TFT! And it really looks like the DGUS II you mentioned!

In comparison, take a look at the original TFT:
AnycubicTF_01
AnycubicTF_02
AnycubicTF_03
AnycubicTF_04
AnycubicTF_05

@knutwurst
Copy link
Owner

Since the Support for the DGUS II Display is implemented, I'll close this issue now :)

@github-actions
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 and limited conversation to collaborators Sep 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants