luc-github / ESP3D

FW for ESP8266/ESP8285/ESP32 used with 3D printer
GNU General Public License v3.0
1.73k stars 465 forks source link

How can I faster the transmission speed of the sd-card (upload) without using the wifi-sd. #224

Closed wrh1995 closed 6 years ago

wrh1995 commented 6 years ago

Thank a lot. I wanna to make the speed approach 1M/s . Could you give me some advice. 10K/s....now

luc-github commented 6 years ago

the only solution is to connect your SD reader directly to ESP sharing it with your main board and not use the upload that go thrue the printer board FW

This is what Azteeg do http://www.panucatt.com/azteeg_X5_mini_reprap_3d_printer_controller_p/ax5mini.htm

wrh1995 commented 6 years ago

That means the ESP doesn't work...I wanna use the WiFi to upload the gcode. Shall I use the DMA or IIS make this project into reality.The reference are as follows:

  1. https://github.com/lhartmann/esp8266_reprap
luc-github commented 6 years ago

ESP works very well, upload are fast if ESP is connected to SD card by SPI like I said , if it is a daughter board, or like in project you linked, if it is a main board for 3D printer

But ESP by serial connected to 3D printer board => upload are slow like hell - no improvement using the M28/M29 upload protocol

Per my experience ESP8266 as main mcu for 3D printer is not best choice because it has only one core, or you need to develop a very optimized FW like GRBL

For 3D printer, ESP32 is a better choice, enough power and 2 cores, and have already marlin support

luc-github commented 6 years ago

I close issue as not related to ESP3D

wrh1995 commented 6 years ago

THANKS

asmallbee commented 6 years ago

Hi, I am going to build a new RAMPS-like PCB with SD Card built-in as well as the ESP8266. Would you please advise how should I connect the SD Card on the ESP8266? The default SPI with a CS? Can you please share your schematic when you were testing upload Gcode file to the SD card directly connected to ESP8266? Thank a lot!

luc-github commented 6 years ago

I do not have any schematics - I am not electronician - connecting ESP to a SD card is following normal way: cs ck miso mosi EP8266 provide code for this : https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer/examples/SDWebServer

asmallbee commented 6 years ago

Thanks! Is that already implemented in the current version of ESP3D? How can I try upload gcode to the SD card connected to ESP8266 with ESP3D?

luc-github commented 6 years ago

No it is not, because once file is on SD it is useless, unless ESP3D act as host and this is for ESP3D 2.x I am currently rewriting and will need esp32 as esp8266 has not enough power for this

Connected like this, SD is not accessible from Printer FW

asmallbee commented 6 years ago

I will be patient to wait for ESP3D 2.x with ESP32. Thank you very much for your efforts.

probonopd commented 6 years ago

will need esp32 as esp8266 has not enough power for this

I have been using https://github.com/probonopd/WirelessPrinting to output GCODE from a SD card attached to the ESP8266 to the printer, and have not experienced "not enough power". So maybe the part that takes the GCODE and sends it to the printer could be taken from my code?

luc-github commented 6 years ago

For just sending GCODE of course ESP8266 can do it - but for sending GCODE + handling properly any wifi +web request - it is not working not properly / reliablely per my experiments - ESP8266 cannot already doing anything when uploading, So with all ESP3D features - still no for me.

github-actions[bot] commented 3 years ago

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.