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.
Screenshots, logs, any other Clues? What exactly are you doing? (should CONTROL > Grbl Settings tab > Select machine from the list > Save and reset)
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?)
! 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.
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.
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.
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
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).
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?
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.
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.