Welcome to Our Community

Some features disabled for guests. Register Today.

Openbuilds Control with ESP32. Control cannot find controller via wifi

Discussion in 'Control Software' started by robbieD31, Nov 12, 2024.

  1. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Hello,
    I have a custom Plasma Table build using Openbuilds Control with an ESP32 controller. I have setup grbl on the controller while it was connected to my computer via USB. I have entered the SSID of my wifi and the password. after rebooting, I see my dhcp server has given it an IP address and I see the ip address in Control also. I can ping the ESP32. When I disconnect the USB from my computer and power via a usb brick [power supply] and try to scan the netowork with Control, it never finds the ESP32 on the network. I have $70=7 to enable telnet, i have disabled the windows firewall where Control is installed [2 different computers]. I cannot connect via putty with telnet and port 23.

    Any thoughts?

    Thank You
    Rob
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,049
    Likes Received:
    4,313
  3. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Should I have asked "any direction" instead of "thoughts"? I don't expect you to spend a lot of time on your free software, but any direction would be appreciated.

    Rob
     
  4. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    What flavour of GRBL have you installed? (GRBL HAL, FluidNC, GRBL_ESP32, other?)

    What is the WiFi operating mode of the controller set to?

    Have you set up the relevant ports on the controller to use Telnet? (somewhere $310 to $317 on GRBL_Hal, I think, but I don't use it)

    (I use GBBL_ESP32 set to 'Client Station' and OB Control detects it on the network and can connect via WiFi without problems.)
     
  5. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Thank you for your time! Firmware is grblHAL, wifi operating mode is set to client station [$73=1], Telnet port is 23 [$325=23]. If I knew how Control actually scans [I think it is looking for anything answering telnet port 23] I may be able to figure this out. Or if there was a way to manually create a port?

    More info... I am able to telnet via powershell as admin using telnet>open 192.168.3.123 23. I get the GrblHAL 1.1f ['$' or '$HELP'] prompt. i enter $help and get the help topics. $$ shows all settings. Just tried running Openbuilds Control as admin and scanning network. still get "Network Scan completed. Found 0 devices"
     
  6. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    I just tried on a laptop that has version 1.0.370 of Control. I selected to not update now. scanned network and it found both ESP32's on the network. selected one of them and connected immediately. I then tried to uninstall Control on the other 2 computers I have Control on, installed version 1.0.370, chose not to update now, scanned network, I get "network scan completed. Found 0 devices". Both laptops in my shop are Windows 10. Both have the same security software, but the one I scanned with 1.0.370 found the ESP32's. I then let it update to 1.0.376, run scan, and it finds the ESP32's.
     
  7. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    I guess Control is crashing on the 2 computers when I click "scan network". Not sure what is different between the 1 laptop that scans properly and the 2 that control crashes on.
     
  8. JustinTime

    JustinTime Veteran
    Builder

    Joined:
    Dec 18, 2013
    Messages:
    784
    Likes Received:
    259
    Robbie, I wonder why would you expect control to 'see' the ESP32 on the WiFi? I have a clock, that I made, with a ESP32 that checks the time via the WiFi. I can't detect it with any of my devices like my phone or my computer.
    On my Teensy4.1, with GRBLHal, which drives my CNC via Control, I don't see the Teensy either when I have the WiFi turned on on it. Yes, I run it through a USB cable.
    What I'm trying to say is; is it possible you are missing some steps before the WiFi marriage can work?
     
  9. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    JustinTime, That is why I am here. To see what i am missing. Turns out, Control is crashing when I click on "Scan Network". I just cannot figure out why on the laptop I use on my plasma table, control crashes. And on a different older laptop, Control can scan the network and find the ESP32 successfully.
     
  10. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    Potentially annoying suggestion: Make sure that there aren't any windows updates pending install - IME this can cause weird networking problems.
     
  11. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,049
    Likes Received:
    4,313
    Make sure you have one connected network card/interface, no weird Virtual NICs, etc on the weird PC. Dump a ipconfig /all for review
     
  12. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Misterg, as of yesterday, windows updates were up to date. currently manually updating all firmware for the Surface Book [Original Surface Book].

    Peter, as of yesterday, I removed all vpn software [mobile vpn software for Watchguard and Dell]. Both of their miniport nics were removed. there is still the default Windows 10 miniport nics. I uninstalled those and tried again, but, no luck. ipconfig /all shows wifi nic as well as 2 LAN adapters [must be hidden]. I used to use a USB3.0 to ethernet adapter when this was my daily laptop, maybe those are still there and hidden. I will go find those and remove.

    Thank you both for your time!!!

    Rob
     
  13. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Windows updates up to date. Surfacebook firmware up to date. All VPN software uninstalled. All hidden NIC's uninstalled. All Miniport NIC's uninstalled. ipconfig /all shows only my Marvell Wireless NIC. Click on scan network, I get "Disconnected. OpenBuilds Control Probably quit or crashed". I have uninstalled and re-installed Control. I can ping the ESP32 and I can telnet into ESP32 from this Surfacebook.

    Again, Thank you for your time!

    Rob
     
  14. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,049
    Likes Received:
    4,313
    Lets see if theres anything else in a ipconfig /all
    At the moment the computer crashes the backend server process, we can look at the error too:

    1) Right click the CONTROL shortcut, and copy the Target path

    upload_2024-11-13_20-0-12.png

    In a CMD 'set DEBUGCONTROL=true' and then run the copied path (Note the Console Debugging Enabled log entry)

    upload_2024-11-13_20-2-36.png

    When it crashes, will hopefully log why and exit back to command prompt
     
    David the swarfer likes this.
  15. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Peter,
    here is ipconfig /all....

    ipconfig.jpg

    And the cmd prompt after clicking "scan network" the first time. after it crashed and I waited for Control to recover, i got 2 lines of "New IO Connection"

    scan command.jpg

    This is after waiting for Control to recover and clicking "scan network" again.

    scan command2.jpg

    Do you know what the [10032:1113/201724.985:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is error is?

    Thank you!!!

    Rob
     
  16. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,049
    Likes Received:
    4,313
    Not related to your issue

    Io connection is just frontend talking to backend, i see no backend crash there


    Define crash then as it seems the application keeps running
     
  17. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    My definition of "crashed" is that when I click on "scan network", I get the Windows spinning blue circle when the mouse is hovered over the Control program, then if I click on the program header [at the top of the program window], it whites out and gives me a popup saying "Openbuilds is not responding", If I click on wait, it will recover and give me the "Network scan completed. Found 0 Devices" after 4 minutes or so. If I don't click on program whilst "scanning", I just get the serial log saying "Disconnected. Openbuilds Control probably quit or crashed". It then recovers and gives results of 0.

    see pics of each stage....

    crash.jpg

    crash2.jpg
     
  18. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,049
    Likes Received:
    4,313
    Unresponsive then :)

    Reformat will probably fix that - provided that PC has OK-ish specs, not CONTROL itself doing that.

    Disconnected websocket is if the websocket heartbeat times out. The assumption is the backend crashed and went away but also happens if PC is just too slow to keep up with heartbeats while doing everything else (webgl, queue manager etc running in background) - and we didn't see the backend die in the CMD log, so assumption is performance. CPU specs and GPU info of that one? Post a Speccy (free version) Download Speccy | Find your computer specs, free! > File > Save snapshot or Save to TXT
     
  19. robbieD31

    robbieD31 New
    Builder

    Joined:
    Mar 7, 2024
    Messages:
    11
    Likes Received:
    0
    Reformat? Will probably fix that? A little bit of an extreme solution for a possible fix at this point. If I have the time in the next few days, I may just do that. The
    laptop is a 6 ish year old M$ Surfacebook with a core i5 and 8 GB RAM. It ran my business for years and my plasma table for the last year via bluetooth just fine. I upgraded to the ESP32 and the bluetooth chip seems to be inferior to the arduino bluetooth add on chip. So I was hoping to go wifi.

    Funny thing is, a dilapidated craptastic 10+ year old Best Buy HP laptop finds the ESP32 in about 4 or 5 seconds. but I haven't run any gcode thru it yet. I may have to build a bigger tray to hold the old thing on my plasma table. I just like that crappy laptop on my toolbox because the screen is big.

    But, beyond all that, Thank you for the help! I greatly appreciate it!

    Rob
     

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