New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smoothieware support #92
Comments
Got the card AZSMZ that support ESP01 connection natively 😄 so no delay to connect - I used ESP01 with 1M/128k SPIFFS, it use 65% of capacity
currently I plan to add a TARGET_FW define (REPETIER/MARLIN/SMOOTHY) to sort these changes at compilation time,once done I will see if runtime change does not impact performances to give more flexibility |
Hi luc, What I like about your code is that the web server gui is available as a fall back if someone does not like the web-based model of CP/ LW or does not have internet access. These are the things that I would like to address, it seems they have been brought up before:
Let me know if any of this has been done already, or what it would take to make this happen. |
Hi Roy, about your points: 2 - do you mean to upload file to smoothie SDCARD but not using M28 / M29 commands that take sooo much time ? At least for 3D print file which can be about several Mb, I do not know for laser files - I am still looking in smoothie FW sources - but not sure it is possible without Smoothie FW modification - still need to dig in 3 - Yes will do - this is my first "real" contact with smoothie world and it is interesting, I plan to do a CNC or Laser encraver but need to build the frame and find the components |
We are using our own web interface, therefore the 'want' for a websocket With the esp12e we can talk directly to the SD card over SPI (and you can
|
Hi peter yes I remember the discussion we had that is why it is in my todo, but as I mentioned the A to Z is not clear to me yet as never play with laserweb, did not build a laser machine to understand the constraints, etc... About SPI and talking to SD I know, but this a more complex situation than connect Esp01 to AZSMZ lcd or Azteeg 5X mini |
hi Luc,I used you ESP code and I thought you used websocket to read and send commands to cnc controller, I'm supersized you are not implemented yet , however I also test Markus transparent links and it so fast and clean , why don't you use his prototype |
@mkeyno pls read again my post 😄 Currently I am porting my fw, working with repetier/marlin FW, to work with smoothie FW. but I am also more than open to implement additionnal features if they are well defined. 😃 there are always many ways to reach the target |
@raykholo I think this is what you are looking for https://github.com/nailbuster/esp8266FTPServer It is in my todo list to add it but was not urgent as I already have a webuploader for the SPIFFS, but that was in my plan to upload big gcode files to SDCARD, but my first approach was not like @openhardwarecoza suggested, hard wire the sdcard to ESP, but using the serial pipe, so I delayed this part. In addition to explain my delay I currently use wifi SDCard (flashair) on all my 3D printers, so uploading files was never a problem to me - but it is in my list to avoid to handle 2 devices |
@luc-github Thank you for the responses. I have not had time yet to run your code on an ESP so I apologize if I have said something incorrect. To clarify a few points: I was talking about websocket in general: I wanted to be able to stream gcode from the control app, like the others are suggesting, but I was also hoping to add other commands for the ESP, not the smoothie - such as "save this entire job", "run job". But for those I wanted to save the file directly on the ESP, not use M28/29. I am not sure if we would be able to fit a several mb file (or larger) on the ESP due to memory constraints. @openhardwarecoza would it be possible for the ESP and Smoothie to share a single SD card? I am not as optimistic about having to put 2 microsd sockets on my board. I will have to get better acquainted with your code Luc. There are different levels of success here. I would be very happy with just implementing the websocket serial bridge (this seems to be what the others are suggesting) into here so that we can use that with CP/ LW but then your GUI is available as a fallback option if someone does not have internet access. @Cinezaster please see this thread. |
@raykholo yes everything is possible - I already use some specific commands for ESP [ESP] About serial/Websocket most of the code is already available, Markus provided it "as it is" so may need some adjustment : Links2004/arduinoWebSockets#61 (comment) About SD card sharing - should be possible - this is actually what a wifi sdcard do - but need to avoid concurrent access in same time And about futur, that is the beauty of coding, the limit is your imagination - so everything is possible 😄 |
Anyone has a basic html page or App to test the websocket /serial bridge ? If not I will build the HTML/ javascript page for reference |
https://github.com/chilipeppr/widget-spjs This is how CP communicates with Serial Port JSON Server. I think the protocols are quite specific to that but you may be able to borrow some code or use it as a starting point. |
thanks - seems Markus provided it : https://github.com/Links2004/arduinoWebSockets/blob/master/tests/webSocket.html so should be Ok to check first |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
got smoothieware compatible board - will check compatibility
The text was updated successfully, but these errors were encountered: