Printer not connected (Baudrate Marlin problem on BeePrint MKS WiFi)

Home Forums The projects hosted on the site MKS WiFi firmware and BeePrint web interface Printer not connected (Baudrate Marlin problem on BeePrint MKS WiFi)

Viewing 14 reply threads
  • Author
    Posts
    • #26412
      llisboa
      Participant

        Hi, I’ve installed a MKS Wifi on my Two Trees printer running Marlin on Robin Nano board.
        I’ve loaded Beeprint to my MKS Wifi and it was successful.
        I can open the pages, I did setup to my wifi and the interface is working fine.
        The problem I have is that when I open the browser it opens a popup at the bottom saying “Printer Connected”, however in all widgets it says “NOT CONNECTED” and every command is disabled.

        Is there anything that needs to be done in the printer firmware to make it work?

        Thanks,
        Leonardo

      • #26413
        llisboa
        Participant

          As an additional information, I’ve tried reloading with beeprint 1.5 and mkswifi 1.2, however I still face the same issue.

          Thanks.

        • #26522
          Renzo Mischianti
          Keymaster

            Hi Leonardo,
            sorry for the late response.
            I can’t understand what the problem is, can you check the browser console if there are some messages that can help?
            Thanks Renzo

          • #27182
            T23lol
            Participant

              I think I have the same problem. I am connected to web UI but it looks like WIFI-BOARD can not connect to Printer_Board.

              I can not control my printer, webUI shows that printers is not connected. It is the same in Cura where it connects plugin to wifi board but it says printer is not connected.

              I think that there might be some problem with comunication WIFI >>> PRINTER

              I use MARLIN on my printer and I enabled serial port but I dont know what speed / baudrate should I set for this serial port …

              #define SERIAL_PORT_2 1
              //#define BAUDRATE_2 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE

              • #28461
                NikopolCZ
                Participant

                  Beeprint has hardcoded baudrate 115200. I belive we all have the same problem. Beeprint has baudrate 115200 and modern printers have 250000.

                  To Renzo:
                  I saw on your github that you don´t have time to code button for changing baudrate, but could you tell us what lines should we change in your code to change the hardcoded baudrate? I can´t code but i would be able to compile and flash new version with 250000 baudrate.

              • #28462
                Renzo Mischianti
                Keymaster

                  Hi NikoloCZ,
                  thanks for your clarification. So the only 2 options are 115200 and 250000?
                  Or are there multiple options??
                  Bye Renzo

                  • #28463
                    NikopolCZ
                    Participant

                      115200 used to be the default option in marlin firmware. They have changed it to 250000 few years ago. Those two are the most prevalent but all the supported baudrates are:

                      2400
                      9600
                      19200
                      38400
                      57600
                      115200
                      250000
                      500000
                      1000000

                      https://marlinfw.org/docs/gcode/M575.html

                  • #28465
                    Renzo Mischianti
                    Keymaster

                      Ok, but by default, can we consider that 90% of all firmware is 115200 and 250000?
                      Thanks RM

                    • #28466
                      NikopolCZ
                      Participant

                        Yes

                      • #28467
                        Carontes
                        Participant

                          Hi, in my Marlin configuration I’ve set the baudrate to 115200 but my printer is “not connected” according to the widgets, while the blue notification in the bottom-right corner says printer connected. I use Marlin 2.1.x bugifix and the latest version of BeePrint

                        • #28468
                          NikopolCZ
                          Participant

                            And have you defined serial port in marlin?

                            Also you have to define separate baudrates for the usb and wifi.

                            Here is more info:
                            https://marlinfw.org/docs/setting/hardware.html

                            • This reply was modified 1 year, 10 months ago by NikopolCZ.
                            • This reply was modified 1 year, 10 months ago by NikopolCZ.
                            • #28471
                              Carontes
                              Participant

                                Yes I did. I tried the ESP3D project firmware and it works with my printer. So I don’t think there’s something wrong with Marlin

                            • #28476
                              Renzo Mischianti
                              Keymaster

                                Hi build a specified version with Serial at 250000, without any dynamic management, I attach the firmware.
                                Please give me a feedback.
                                Bye Renzo

                                • #28480
                                  NikopolCZ
                                  Participant

                                    Sorry, but doesn´t work for me.
                                    Beeprint: situation is still the same:“not connected” according to the widgets, while the blue notification in the bottom-right corner says printer connected
                                    Prusaslicer: Could not connect to MKS: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection fail because host has failed to respond (this is a new error).
                                    Cura: Send file to printer failed. Check printer SD card. (also a new error)

                                    Now also does not work with the old marlin (ive checked that for a good measure). Errors are the same except for prusaslicer.
                                    Prusaslicer: “Connection to MKS works correctly” but after clicking ok i get: Error uploading to print host: HTTP 409:409 Conflict.

                                • #28479
                                  Carontes
                                  Participant

                                    Still “not connected”. Maybe there’s something wrong in my Marlin firmware?

                                    #define SERIAL_PORT 1
                                    #define BAUDRATE 250000
                                    #define SERIAL_PORT_2 3
                                    #define BAUDRATE_2 250000

                                    Other than that I don’t think there’s something else to activate in Marlin I guess, since as I said ESP3D works with those settings. A feature I like about ESP3D is that it shows you the IP address of the printer on its screen, so you don’t have to search it in the router page. If there’s something else I need to do let me know

                                  • #28596
                                    Renzo Mischianti
                                    Keymaster

                                      Hi all,
                                      I think the problem isn’t only the baud rate, but the communication protocol also.
                                      So It’s more complex work, but if you can find the protocol and generate the key to do the relative request, I can try to generate a version for your 3D printer.

                                      Here is the protocol info for MKS
                                      MKS WIFI for Makerbase Robin: communication protocol and Cura plugin – 3

                                      Bye Renzo

                                      • #28614
                                        Carontes
                                        Participant

                                          Thanks for your reply, but I don’t understand what I have to do, the steps aren’t clear. I don’t understand which software to use and whether I have to send G-code commands (and which) to the printer or not

                                        • #28618
                                          Renzo Mischianti
                                          Keymaster

                                            Hi,
                                            in this file is the command I send to the printer firmware from MKS WiFi
                                            commands.js

                                            and here is where I was processing the response from the printer
                                            realtimeUpdate.js

                                            If the Marilin firmware uses a different protocol, the MKS WiFi can’t communicate, so we must change these commands and keywords to enable communication.

                                            Bye Renzo

                                          • #28624
                                            Carontes
                                            Participant

                                              But now how do I use those two files? Do I have to send them to the printer or I have to use them in a different way? Do I have to use a specific software? Do I have to use the command prompt or something else? That’s what I don’t understand. Thank you

                                          • #28637
                                            Renzo Mischianti
                                            Keymaster

                                              Hi Carontes,
                                              these 2 files describe the commands sent and received; if you want Beeprint to communicate with Marilin, I think these commands must be changed in the function of the Marilin protocol.
                                              But first of all, you must know the basic usage of NodeJS and its relative programming environment.
                                              Bye Renzo

                                              • #28836
                                                Carontes
                                                Participant

                                                  I guess I can’t use your software on my MKS Robin nano 1.2 since I don’t know how to use NodeJS. Thank you anyway for your help

                                              • #30868
                                                Douglas
                                                Participant

                                                  Hi, Renzo!
                                                  Thanks for your havy efforts.
                                                  A Doubt: Is there any version with Marlin 2.X protocol compatible?
                                                  How Can I buy a coffee for you?

                                                • #30872
                                                  Renzo Mischianti
                                                  Keymaster

                                                    Hi all,

                                                    @Nunu00
                                                    seems to fix the problem here.

                                                    BeePrint partially works with Ghost 5 and Marlin

                                                    Ask to him for more information, I don’t have Marlin.
                                                    Bye Renzo

                                                Viewing 14 reply threads
                                                • You must be logged in to reply to this topic.
                                                Exit mobile version