Welcome to Our Community

Some features disabled for guests. Register Today.

Can’t get blackbox x32 to save updated settings

Discussion in 'Controller Boards' started by vaw, May 8, 2023.

  1. vaw

    vaw New
    Builder

    Joined:
    Apr 6, 2018
    Messages:
    13
    Likes Received:
    0
    I’ve been trying to update the GRBL settings on my new blackbox x32, but I can’t get it to save any settings. Is there something special that needs done? E.g., my calibration of XYZ steps/mm won’t save and I’m not sure my Wi-Fi does either.
     
    #1 vaw, May 8, 2023
    Last edited: May 9, 2023
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,601
    Likes Received:
    4,449
    Screenshots, logs, any other Clues? What exactly are you doing? (should CONTROL > Grbl Settings tab > Select machine from the list > Save and reset)
     
  3. vaw

    vaw New
    Builder

    Joined:
    Apr 6, 2018
    Messages:
    13
    Likes Received:
    0
    That’s exactly what I’m doing (plus hitting hard reset button to make sure); however when I go back in and refresh or look at the console, the settings don’t reflect what was just done. I will try to take a video, but will need to change computers because my CNC machine doesn’t have things like that which might affect it’s primary duties.

    Update: @Peter Van Der Walt - As I was trying to make a video to share I figured out where the problem was occurring. I'm not going to post it because the issue is related to my WiFi password. It seems that if you have an ! in the password then it not only doesn't save that password but it also stops all other changed parameters from being updated. Is that something you can look at ? (maybe it needs some kind of escape?)
     
    #3 vaw, May 9, 2023
    Last edited: May 9, 2023
  4. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    61
    Likes Received:
    63
    ! is the feed hold realtime command. Set $39=0 to disable "printable" realtime commands when part of a $-setting or comment.
    Send $$=39 for more details.
     
  5. vaw

    vaw New
    Builder

    Joined:
    Apr 6, 2018
    Messages:
    13
    Likes Received:
    0
    I'm not quite sure what you're suggesting. I ran $39=0 and then tried to run the update... I also tried setting $75=[wifipw] and neither worked. It still seems to send it into a weird mode where it doesn't write the proper password but instead sets the prompt.
     
  6. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    61
    Likes Received:
    63
    This resets $39 to 1?

    The weird mode is HOLD (feed hold), it blocks most commands, send ~ (cycle start) or a soft reset to exit it.
     
  7. vaw

    vaw New
    Builder

    Joined:
    Apr 6, 2018
    Messages:
    13
    Likes Received:
    0
    No - it still reads the hold message regardless I think.

    [10:32:09] [ $$ ] $39=0 ;Enable printable realtime command characters, boolean

    Then if I run something like: $75=WiFi!123

    It just doesn't return anything, but Controller status goes to Hold. If I then type ~ (since it seems to have picked that up), I get "error: 52 - undefined [ $75=WiFi!123 ]"
    Then this shows up in the console:

    [10:33:29] [ $75=WiFi!123 ] [MSG:]
    [10:33:29] [ ] error: 52 - undefined [ $75=WiFi!123 ]
    [10:33:29] [ ERROR ] error: 52 - undefined [ $75=WiFi!123 ]
    [10:33:29] [ $75=WiFi!123 ] error:52
    [10:33:29] [ ~ ] ok
     
  8. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    61
    Likes Received:
    63
    Minimum allowed password length is 8 - if less than that error 52 (out of range) is returned.

    BTW when I test with $39=0 HOLD mode is not entered on typing ! - this when connected via a terminal emulator (puTTY).
     
  9. vaw

    vaw New
    Builder

    Joined:
    Apr 6, 2018
    Messages:
    13
    Likes Received:
    0
    WiFi!123 is 8 characters... as is my other password. But you're right in that it's deleting that character and thinking it's less than 8.

    [11:18:05] [ connect ] Firmware Detected: grbl version 1.1f on COM4
    [11:18:27] [ $39=0 ] ok
    [11:18:41] [ $75=WiFi!12345678 ] [MSG:]
    [11:18:41] [ $75=WiFi!12345678 ] ok
    .....
    [11:19:02] [ ] $75=WiFi12345678 ;Wifi network PSK

    How can I get it to add a password with an "!" in it?
     
  10. vaw

    vaw New
    Builder

    Joined:
    Apr 6, 2018
    Messages:
    13
    Likes Received:
    0
    For those that might come along later wondering - I don't think there is a way to set it from the command line (without there being some kind of firmware change). Everything from the terminal or from the OpenBuilds Control program seems to strip away the ! instead of include it. It also appears that even with $39=0 it does hold, so I'm not sure if there's a problem with the firmware.

    I was able to work around this though. You can change your wifi password or connect to one that does not have the special characters (and of !~?) and then log into the web GUI. From the web GUI you are able to set a wifi password with any of those characters.
     
  11. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    61
    Likes Received:
    63
    Setting $39=0 works for me from a terminal (puTTY - via USB). However, for the ESP32 driver it fails from a sender - likely due to grblHAL running under FreeRTOS (causing a timing issue) . I'll add a workaround in the next commit.
     
    Peter Van Der Walt likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice