Search found 52 matches
- Sun Sep 22, 2019 11:52 pm
- Forum: ESP32 boards
- Topic: Using BASH script to upload files
- Replies: 27
- Views: 13440
Re: Using BASH script to upload files
Hi, ok, that did the trick, now that I reflashed MicroPython and rebooted everything. I guess my system was somehow confused because I had run ampy and rshell so many times. The rshell file transfer that @kevinkk525 suggested works just fine! I also tried reflashing before I rebooted the laptop and ...
- Sun Sep 22, 2019 11:30 pm
- Forum: ESP32 boards
- Topic: Using BASH script to upload files
- Replies: 27
- Views: 13440
Re: Using BASH script to upload files
Hi, ok, thanks muchly for all the feedback. It seems I am getting unexpected results, so I'm going to re-flash MicroPython on the ESP32, reboot everything, and start over. Hopefully this will eliminate any extraneous system issues I may be experiencing.
Tks All, AB
Tks All, AB
- Sat Sep 21, 2019 11:53 pm
- Forum: ESP32 boards
- Topic: Using BASH script to upload files
- Replies: 27
- Views: 13440
- Sat Sep 21, 2019 9:26 pm
- Forum: ESP32 boards
- Topic: Using BASH script to upload files
- Replies: 27
- Views: 13440
Re: Using BASH script to upload files
Hi @kevinkk525, I tried that line of code you provided in my BASH script, but it just hung with "Trying to connect to REPL", so I'm wondering if there is anything else that needs to precede the line of code that actually uploads the files?
Tks, AB
Tks, AB
- Sat Sep 21, 2019 9:03 pm
- Forum: ESP32 boards
- Topic: Using BASH script to upload files
- Replies: 27
- Views: 13440
Re: Using BASH script to upload files
Hi, wow, 2 great answers, thanks very much - this is so helpful.
It looks like I was using rshell with the wrong syntax, so I'll try that again.
Pyboard is new to me, so I will definitely check that out. I didn't realize there was something built into MP that could actually upload files.
Cheers, AB
It looks like I was using rshell with the wrong syntax, so I'll try that again.
Pyboard is new to me, so I will definitely check that out. I didn't realize there was something built into MP that could actually upload files.
Cheers, AB
- Sat Sep 21, 2019 7:30 pm
- Forum: ESP32 boards
- Topic: Using BASH script to upload files
- Replies: 27
- Views: 13440
Using BASH script to upload files
Hi, I'm trying to create a BASH script on my Ubuntu machine that will upload a file set to an ESP32 running MicroPython. I'm having a problem with AMPY in that it will only execute a single command. After that, when I try to execute another command (like PUT), it fails with the "cannot enter repl mo...
- Wed Feb 13, 2019 5:42 pm
- Forum: ESP32 boards
- Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
- Replies: 21
- Views: 14576
Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Hi Peter, thank you very much for your reply; it is very much appreciated.
I will follow your advice and study the Python syntax. My main problem was the de-bouncing, and that async approach of yours works like a charm.
Best Regards, AB
I will follow your advice and study the Python syntax. My main problem was the de-bouncing, and that async approach of yours works like a charm.
Best Regards, AB
- Tue Feb 12, 2019 6:10 pm
- Forum: ESP32 boards
- Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
- Replies: 21
- Views: 14576
Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Hi Peter, I'm surprised that it seems so difficult to monitor inputs and run a web server at the same time; I would have thought a lot of folks would want to do that. I'll keep working on it, studying the code to figure out the polling. I'm also going to try and get that fully fledged web server run...
- Mon Feb 11, 2019 5:55 pm
- Forum: ESP32 boards
- Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
- Replies: 21
- Views: 14576
Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Hi Peter, thanks for your reply. I agree that I should try to get the async approach working, but I can't seem to get any of the socket code working. I tried that more complex server code, but immediately got an error: File "a8.py", line 15, in <module> ValueError: cannot perform relative import I a...
- Sun Feb 10, 2019 10:09 pm
- Forum: ESP32 boards
- Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
- Replies: 21
- Views: 14576
Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Hi Peter, one other thought I had was to put the button press code into an interrupt timer, and leave the socket code as is. Do you think that might work? It would foil the attempt at a full async solution, but I'm feeling a bit leery of the polling socket code as so much of my code is involved with...