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
Direct SD Card support #93
Comments
currently I use wifi SDCard with my ESP, would be great to not handle 2 devices. |
On AZSMZ board with Smoothieware connected to PC, the SDCard is automatically visible under windows as a Removable Disk - using Repetier and so M28/M29 to upload file does not work -
The file does not show in windows explorer |
After restarting board the file is present on SD Card - so concurrent access seems working |
Seems depending of how fast is repetier to load files before windows mount the removable disk. From ESP the M20 command never work when SDCard is mounted on window when in repetier is seems working but actually it do not - I guess repetier host cache the information instead of really getting them and so giving wrong files list |
Going to tag in @arthurwolf - arthur, this is some very beta craziness,
|
I didn't know about this project, it's very very nice. Liam Jackson is actually working on something that looks like this, essentially teaching an ESP to do the following :
Because the Smoothieboard is supposed to come soon with a web interface on it's SD card, implementing a pass-through like that to that interface, would probably be a good idea. |
Now thats what I was looking for!
|
Wow, really really nice. On Mon, May 16, 2016 at 3:09 PM, Luc notifications@github.com wrote:
Courage et bonne humeur. |
the web UI has few hook to retrieve specific information in json format (sd files/temperatures/positions/etc..) because it is easier, but it is mostly a pass-through so any serial command will work on web ui - and on any TCP/IP port defined in setting page but where web ui has authentication - TCP/IP port currently do not have authentication like telnet |
but back to original topic - all SD access go through serial pipe instead of direct SD reader connection with ESP. which is not really fast for file upload |
Web upload to SD Card using ESP give me 95000byte/s which is a lot faster than serial transfer I have damaged 2 ESP using external power as may not used proper circuit 😞 orz |
I have been playing with this too, and can confirm that its not power
|
Actually I got 0 issue when doing my test with SDWebserver I was able to upload 9Mb file, several times when I was not able to go over 1.5Mb with my FW - may be was luck , but I was using external power for SD card |
Try downloading the file you just uploaded
|
ok thank you will test that, I did only one way actually |
I only played for an hour or so earlier in the week. Didnt get a
|
I did several tests not during 1h but several minutes : I got few : LmacRxBlk:1, which means too many data are coming on wifi, but this is because I am in debug mode and seems no data corruption as final result is ok Can you share what was your circuit and what size of file did you used ? I would like to reproduce the issue you meet Here my system using 2 usb adapters one for ESP and one for SD Card reader: with https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer/examples/SDWebServer |
Ahh yes, lmacrxblk was what i was getting too. Several, eventually My test setup is a esp12-e, ad over spi. I tried running a http <->
|
I see - webserver is not what you must use if you want to get feedback while uploading as it is a SyncServer and to limit the lmacrxblk you need to use 160Mhz and not default 80Mhz CPU frequency |
Cool!
|
Ok now ESP3D is working well (so far) using SD Card - still need to work on several feature like automount and File manager for SD card and blocking other requests when doing file upload to avoid to overload wifi but on good way finally I also found an issue and reported it : github.com/esp8266/Arduino/issues/2368 but I can workaround easily for the moment |
Sorri |
what is that? it show 404 page not found |
you mixed pin number and GPIO number check page 7 |
thanks, understood the SPI bus. |
Support is ready and will be available later so I close issue |
Hi guys. I have designed a small attachable device that has an ESP-12E with a micro sd card reader directly on the back of it. I have attached the pins as noted above, but it does not seem to see the sd attached to the back. It does see the one on the mainboard through its serial connection, but as file upload, that way is incredibly slow, I want to upload through the direct connection over SPI. Is there something that I need to change from the current version of the ESP3D compilation? I just flashed the most current source code. The board I am using is Smoothieware based. Really appreciate the help guys! |
Well, I have been down this path (months working on this problem) and the answer is probably not one that you will like, summary:
(1) The serial port on the Smoothie was only intended as a console and does not implement resource locking so you get corruptions at high baud rates when multiple things are happening as Smoothie is a co-operative multi-tasking kernel (from MBED) and not a true multi-tasking kernel (the Cortex chips lack the hardware to implement this). While i have implemented serial port resource locking, it is tied up in a bunch of updates that I have not pushed to the Smoothie repo.
(2) The libraries for the ESP-12E do not reliably allow a high through put - I have worked with the Espressif author of said libraries and collectively we were unable to get anywhere near 921600 baud with any degree of reliability using a telnet<->serial bridge mode.
So, this means that until someone figures out how to get the ESP8266 to run really fast, we are stuck; I do note that the ESP8266 has been used to stream video, which is not the same as sending data, getting an acknowledge and sending more data; we have even tried sending entire buffers full of data to minimise the handshaking going one, but it was still too slow :-(
Cheers
Douglas
… On 25/07/2018, at 5:12 PM, griffin-117 ***@***.***> wrote:
Hi guys. I have designed a small attachable device that has an ESP-12E with a micro sd card reader directly on the back of it. I have attached the pins as noted above, but it does not seem to see the sd attached to the back. It does see the one on the mainboard through its serial connection, but as file upload, that way is incredibly slow, I want to upload through the direct connection over SPI. Is there something that I need to change from the current version of the ESP3D compilation? I just flashed the most current source code.
The board I am using is Smoothieware based.
<https://user-images.githubusercontent.com/40618704/43180758-d0df5bbe-8fa7-11e8-8311-ee3f698ccee2.PNG>
Really appreciate the help guys!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#93 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADkh-xRiIXKhPxdzNqz7gh4COV_SM7Vlks5uJ_5JgaJpZM4IfFdO>.
|
Hmm, this was exactly my fear, Douglas. I appreciate the detailed write-up nonetheless! Is direct SD access for Smoothie still out of the picture for general users in the short term? ESP3D has quickly become my goto for a quick and easy web UI for my boards, but can't stand the slow upload over serial. |
I occasionally use direct SD access (the MSD capability from MBED), but it can cause issues when the host computer does things that interfere with Smoothie’s use at the same time (no resource locking on the SPI bus either).
I have looked at adding locking to SPI but so far no client wants to pay for it to be done as it is quite a bit of work and I do not have time to do it in my (haha) spare time.
The slow serial is definitely a problem with the ESP, rather than the serial as I have run the serial at 921600, which is fast enough for most 3D printing :-)
… On 26/07/2018, at 2:52 PM, griffin-117 ***@***.***> wrote:
Hmm, this was exactly my fear, Douglas. I appreciate the detailed write-up nonetheless! Is direct SD access for Smoothie still out of the picture for general users in the short term? ESP3D has quickly become my goto for a quick and easy web UI for my boards, but can't stand the slow upload over serial.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#93 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADkh-xhcEiTzgO6YXkr-KmR0t-c58-sQks5uKS7hgaJpZM4IfFdO>.
|
I know that Roy from Panucatt has a modified version of ESP3D that has direct SD access for his X5 Mini Wifi. It really interests me to have a cheap onboard wifi module especially with the ease of use that ESP3D has. As far as I can tell there is an intermediate buffer that interrupts the SPI bus from the LPC in some way. Makes sense but dunno how exactly it works. What I do know is that the upload speed is quite excellent (Nice work Luc). |
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. |
As suggested by @openhardwarecoza : add direct wires to SD Card reader for file upload
SD Library examples suggest SD card attached to SPI bus as follows:
** MOSI - pin 11
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
The text was updated successfully, but these errors were encountered: