luc-github / ESP3D

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

[BUG] SD stream failed: 1 #1053

Closed piotr-go closed 3 weeks ago

piotr-go commented 3 weeks ago

Describe the bug To Reproduce

Sending a "[ESP700]/SD/test.gcode" in web gui terminal gives me:

[ESP700]/SD/test.gcode ok error: stream failed: 1

Expected behavior no error

ESP3D Firmware:

ESP3D v3

Target Firmware:

Marlin 2.1.x

Board used (please complete the following information):

ESP32-S3 (4MB flash, 2MB PSRAM) SKR-Mini E3 v1.2

Additional context

I checked what serial output looks like, and there is no '\n' after command. If i fake "ok" answer with serial terminal (ESP32---uart---PC ), i sill got "error: stream failed: 1". It seems there is no reaction to incoming data.

Two way terminal communication in web gui is working. Two way telnet-uart also OK.

github-actions[bot] commented 3 weeks ago

Thank your for submiting, please be sure you followed template or your issue may be dismissed. if you deleted the template it is here

luc-github commented 3 weeks ago

1 - Streaming is not implemented yet for Marlin only for grbl and it is very basic only ping/pong streaming: https://github.com/luc-github/ESP3D/issues/243

2 - it seems there is no SD connected to your ESP because error says file cannot be opened

3 - the Ok means command received, not command executed, that is why you have a error after

piotr-go commented 3 weeks ago
  1. I don't understand, I thought that communication with Marlin is basic ping/pong streaming?
  2. I uploaded this file over wifi. Missing file is error 12, error 1 is answer timeout.

File read is OK. I see first command over UART. Command have no '\n' ending.

luc-github commented 3 weeks ago

1 not really webui send commands and analyse serial from Marlin 2 you upload to which sd ? your above description does not mention any

luc-github commented 3 weeks ago

you should read this: https://esp3d.io/ESP3D/Version_3.X/documentation/sdtransfer/

piotr-go commented 3 weeks ago
  1. to ESP_DIRECT_SD, file is there, i confirmed. MD5 sum mach, no errors.
luc-github commented 3 weeks ago

ok so you have direct connection to sd but content is not visible from printer and streaming feature is not yet available there is no print button in webui, right ?

piotr-go commented 3 weeks ago

Yes. So no SD streaming in v3 for now?

luc-github commented 3 weeks ago

not in v3 yet, streaming properly is not that easy ESP3D-TFT has basic Marlin ping pong streaming but it is slow on small movement, must add buffered streaming to be good. so still some work to do will be same.for V3

piotr-go commented 3 weeks ago

Is it possible to run v2 on esp32-s3 (or s2) ? Is SD streaming supported in v2?

luc-github commented 3 weeks ago

sd streaming is not supported in v2, direct sd upload is even not supported in v2

piotr-go commented 3 weeks ago

OK, Thank You for your answers. I do have couple more question, but not SD related so i open new thread.

luc-github commented 3 weeks ago

have look to https://esp3d.io/ there are a lot of information

github-actions[bot] commented 1 week 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.