Closed mani-fa closed 1 year ago
Foiled again by the Arduino Framework:
framework-arduinoespressif32/cores/esp32/esp-hal-gpio.c:
extern void ARDUINO_ISR_ATTR __digitalWrite(uint8_t pin, uint8_t val)
{
gpio_set_level((gpio_num_t)pin, val);
}
framework-arduinoespressif32/cores/esp32/esp-hal.h:
#if CONFIG_ARDUINO_ISR_IRAM
#define ARDUINO_ISR_ATTR IRAM_ATTR
#define ARDUINO_ISR_FLAG ESP_INTR_FLAG_IRAM
#else
#define ARDUINO_ISR_ATTR
#define ARDUINO_ISR_FLAG (0)
#endif
framework-arduinoespressif32/tools/sdk/esp32/sdkconfig:
# CONFIG_ARDUINO_ISR_IRAM is not set
I test all problems with 3.6.7 but issues are still there
The fix is in a branch, not 3.6.7
The fix is in a branch, not 3.6.7
Same problem and other issues but... where i can find the righ branch? Or simply a stable version? Can i have the discord link maybe i can find more inf myself...
https://github.com/bdring/FluidNC/tree/Fix797
You will need to compile yourself
I made a test build - https://github.com/bdring/FluidNC/releases/tag/v3.6.8-pre1
I made a test build - https://github.com/bdring/FluidNC/releases/tag/v3.6.8-pre1
I test with 3.6.8-pre1, I don't know this fix is for my cases or not but problem not solved. I test uploading 17mb file for #797 issue and successfully uploaded.
I made a test build - https://github.com/bdring/FluidNC/releases/tag/v3.6.8-pre1
3.6.8 tested, seems to be ok, no crash at all but I loose some step like 1.605mm in 20 minute of working I will try to increase step pulse and dir delay tomorrow cause was set to 2us, pretty strange cause with the 3.6.7 i got some crash but never loose a step...
Tested again and no loosing steps. Maybe ground connection issue. Also no crash at all
Tested again and no loosing steps. Maybe ground connection issue. Also no crash at all
check case 1 please , I tested again and freeze happened again "select a gcode from SD via wifi and webUI, If before closing browser disconnect wifi , then esp32 stop working and freezes (On PC or Phone) , re-connecting may solve the problem but sometimes it crashes and I cannot connect to it , reboot required to back to normal state."
Happened again, also a lot of error in z, loose 16mm during a parallel carving. If I close the webui I have no problem, Crashed again when I pause and stop a work, starting to not respond to all commands and act really slow in responds then completely freeze, restarted Worst issue the loosing of stwp in z but I'm not really sure it caused by the firmware or interferences...
Another things the tep loosing seems to be all at the same time or better In 2/3 times during the parallel.
@Prelo96 Start another issue with you own information instead of using this one. We need the information about your configuration, not the original poster's information.
Problem listed above has been solved in new release? I did not test it yet.
Fix797 is in the latest release.
Fix797 is in the latest release.
thanks I mean #782 problem , "disconnecting from wifi makes machine to stop and random gcode send via micro key and nc file from SD card"
What does "disconnect wifi" mean exactly. Are you unplugging your wifi router, or telling your PC to disconnect from the wifi that it is associated with, or what?
In the future, please file a separate issue for each problem. This issue has 5 separate problems listed, and another person also hijacked it, so figuring out what is going on is very confusing.
What does "disconnect wifi" mean exactly. Are you unplugging your wifi router, or telling your PC to disconnect from the wifi that it is associated with, or what?
I connect to FluidNc wifi AP via PC or Phone and from WebUI I select a file in SD card , machine start to run gcode , If my computer goes to sleep or I restart PC or any other way to cause my PC to disconnect from wifi like you mentioned "telling my PC ot phone to disconnect from the wifi" ,FluidNC stop streaming gcode
I can record a video if you need.
In the future, please file a separate issue for each problem. This issue has 5 separate problems listed, and another person also hijacked it, so figuring out what is going on is very confusing.
Yes your Right, my mistake I was testing FluidNC and faced all these problems , I'll separate next time🙏 sorry for this confusing listed issues.
If you are agree , solve problem 1 and 2 first (they are related) and do the rest in order !
I cannot reproduce the "wifi disconnect freeze" problem. I did this
g21
g91
g1 f5000
Y.1
<13000 more lines of Y.1>
The pause in motion when reconnecting WebUI is caused by serving index.html.gz. When you browse to the FluidNC IP address, the browser fetches the index.html.gz file - the file that implements the WebUI user interface - from the local FLASH filesystem. The ESP32 also uses FLASH for fetching the program instructions. When it is reading index.html.gz from FLASH and sending it to the browser, that competes with the processor for instruction cycles, so motion pauses or stutters during the time that FLASH filesystem access locks out the processor's instruction fetches.
I cannot reproduce the "wifi disconnect freeze" problem. I did this
- Loaded v3.7.0 onto a test machine based on a 6-pack board
- Started WebUI on a PC running Windows 11, under the Chrome browser
- Ran an SD test program consisting of
g21 g91 g1 f5000 Y.1 <13000 more lines of Y.1>
- During the test run, I closed the WebUI browser window. The test program continued tor run.
- I opened another browser window and reconnected to WebUI. There was a pause in the motion while FluidNC responded to the browser's request for index.html.gz - as expected - then the motion resumed.
- I put the PC to sleep via the Windows start menu. Motion continued
- I woke up Windows by typing Shift on the keyboard and logging back in. Motion continued the entire time.
The pause in motion when reconnecting WebUI is caused by serving index.html.gz. When you browse to the FluidNC IP address, the browser fetches the index.html.gz file - the file that implements the WebUI user interface - from the local FLASH filesystem. The ESP32 also uses FLASH for fetching the program instructions. When it is reading index.html.gz from FLASH and sending it to the browser, that competes with the processor for instruction cycles, so motion pauses or stutters during the time that FLASH filesystem access locks out the processor's instruction fetches.
"During the test run, I closed the WebUI browser window. The test program continued tor run."
you're right , closing WebUI before restart or put PC to sleep makes no problem but consider this situation: WebUI is open and suddenly computer restarts or goes to sleep or somehow Wifi disconnects (in all examples WebUI is open)! In this condition FluidNC keep running or stops?
how and when I faced this problem! I always keep WebUI open to see process bar and maybe I needs to switch WiFi from FluidNC AP to my Internet WiFi to continue my work.
freezes or pause for a few second (issue no 2) is OK and can be ignored. I did not test , machine freezes or put itself to pause state! This is just noticable for laser engraving
/I had a similar issue. I launch the G code from the SD card through the smartphone browser, work starts, but after 30 seconds the screen goes blank and the work freezes until I activate the smartphone screen again. I solved it by changing in the browser in the window - GRBL Reports: 🔘None 🔘Auto 50ms 🔵Poll 3 sec . After that, when the screen is off, work continues.
/I had a similar issue. I launch the G code from the SD card through the smartphone browser, work starts, but after 30 seconds the screen goes blank and the work freezes until I activate the smartphone screen again. I solved it by changing in the browser in the window - GRBL Reports: 🔘None 🔘Auto 50ms 🔵Poll 3 sec . After that, when the screen is off, work continues.
let's try it with your settings
I have tracked the problem down to the Arduino websocket library stalling when FluidNC is trying to send a position report. I may have a fix but I have some more work to do before I can release it.
Switching to non-auto status polling does help, at the expense of slower updates of the DRO and visualizer.
Controller Board
2 Axis pen/Laser
Machine Description
2 Axis pen/Laser with a4988 driver
Input Circuits
Configuration file
Startup Messages
User Interface Software
WebUI , LasrGrbl
What happened?
everything works ok when connecting and selecting file from sd card but after selecting a file to work ,if before closing browser I disconnect wifi , then esp32 stop working and freezes (On PC or Phone) , re-connecting may solve the problem but sometimes it crashes and I cannot connect to it , reboot required to back to normal state.
another problem is when connecting again to working machine , it freeses for a second.
I put a push button to run a file from sd card. When It runs and done ,I push it again to do job again, but somehow it crashes and just process bar never ended it goes up and down and just do some gcode randomly. (maybe after 4 or 5 time that I press it). It happens randomly without any reason. As I realize it mostly happens when there is no any Wi-Fi connected and just [MSG:VRB: micropin] massage shows up but it needs to mount SD card like [MSG:VRB: Mount_sd] right after micro pin to run gcode but sometimes it does not show up.
MKSlaser and Atomstack app for android works Ok with FluidNc , I can control and take picture and upload it to SD card , after uploading it ask to start working and by confirming, it shows proccess bar , pause and stop works as well , only part that it worked before and now not supported is showing files on SD card. with these apps anything can be done over phone. Error : [MSG:VRB: Mount_sd] [MSG:VRB: Cannot open file /spiffs/chat] [MSG:VRB: Cannot open file /spiffs/chat.gz] [MSG:VRB: Unmount_sd] As I see it works like refresh in SD card section and just Mount and Unmount state reported it console area and I have no idea about chat.gz!
Z axis is micro servo and I need to set positive_direction: true to false to move opposite direction but after set this parameter to false , servo does not move anymore.
Other Information
No response