🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    GRBL data transmission limit.

    Modules
    3
    5
    4.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      ochoadavid
      last edited by

      Hi!

      I'm trying to configure correctly a GRBL module using a Core2 in UiFlow but I'm having problems to get current configuration values using this simple program:
      0_1667602438533_29f4e991-088e-41ed-997a-45894aeaf586-image.png
      It seems that there is some limit in the quantity of information (chars) that can be received by Read GRBL return message. ¿Do anyone have a tip or work around to this specific issue?

      Thanks,
      David Ochoa

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        Have you looked into the GRBL GitHub's as they are more helpful with dealing with GRBL specific functions

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • O
          ochoadavid
          last edited by

          I've some experience with GRBL already. The $$ command should return a list of parameters and the corresponding values. The command works in the module and the GRBL returns the values. However, it seems that the message is truncated. I suspect that maybe some buffer limit in the i2c connection or something like that and I wonder if it could be fixed in Core2 side.

          The number of chars received correctly is stable (usually the message is truncated at the same place) and there is some random chars at the end.

          1 Reply Last reply Reply Quote 0
          • P
            Peti73
            last edited by

            @ochoadavid
            Hi, David

            maybe you can help me, my problem : how a hell I can send the "Ctrl X" to the GRBL with the "Write G-code" block? I spent 2 hours with different approach without any success. Thanks to any idea.

            Best regards,
            Péter

            1 Reply Last reply Reply Quote 0
            • O
              ochoadavid
              last edited by ochoadavid

              Hi. You have to send "\x18" unescaped:
              0_1675875216554_6ecb980e-d679-47d3-a589-6324f2f8e21d-image.png

              In python: grbl.g_code('\x18')

              Hope it helps.
              David

              1 Reply Last reply Reply Quote 0
              • First post
                Last post