Search found 35 matches

by Beta_Ravener
Mon Nov 13, 2017 4:51 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 4227

Re: Tool uPyLoader for MP on esp32

You're right, I just rewrote the protocol to use base64, so it's more standard. However, it was crashing anyway. Interestingly, once I switched from `bytes` to `str` in `sys.stdout.write`, it stopped crashing, so there might be some issue (which I couldn't reproduce with simpler setup).
by Beta_Ravener
Mon Nov 13, 2017 2:20 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 4227

Re: Tool uPyLoader for MP on esp32

I see. So the reason why it's crashing is probably when attempting to do that extra work. I will try to reproduce the behavior with simpler code so I can fill in bug, but making the PR for buffers in WiPy would be probably the best.
by Beta_Ravener
Mon Nov 13, 2017 1:41 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 4227

Re: Tool uPyLoader for MP on esp32

Hi @Roberthh, I have had success with rewriting the scripts to work with `sys` module instead of UART. However, this has broken the support for the other FW (WiPy 2), as it seems it has no buffer objects on stdin and stdout. I have tried using read and write directly on the stdin and stdout, but thi...
by Beta_Ravener
Fri Nov 10, 2017 6:58 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 53
Views: 21952

Re: uPyLoader - simple file transfer and communication

I haven't seen the EPERM error code before, but results on google suggest problem with filesystem. Probably flashing firmware again or choosing some older version might help? On the other note, the transfer scripts are currently being rewritten to work with ESP32, so it may solve your issue even if ...
by Beta_Ravener
Sun Nov 05, 2017 1:36 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 4227

Re: Tool uPyLoader for MP on esp32

Hi, thanks for the useful info. I will try to experiment a little and see if I can make it work with sys module. I would just like to know, is there some reasoning why the UART became reserved?
by Beta_Ravener
Sat Jul 08, 2017 8:28 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 53
Views: 21952

Re: uPyLoader - simple file transfer and communication

In fact, I managed to put that Linux executable together just now. I'd be glad if some Linux users could test it on their machines and report any problems. Got it working on my system but Linux environment is much more diverse than Windows. Releases with executables may be found here: https://github...
by Beta_Ravener
Sat Jul 08, 2017 6:31 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 53
Views: 21952

Re: uPyLoader - simple file transfer and communication

Hi. I'm not sure why you got the error, but my wild guess is that python3 is incorrect link and actually points to version 2. I have seen it happen few times and you can check that by actually invoking python3 in console (it should output python version in first few lines). Anyway to prevent further...
by Beta_Ravener
Fri Jun 09, 2017 6:15 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 53
Views: 21952

Re: uPyLoader - simple file transfer and communication

Hi, sorry for not replying I stopped monitoring this thread some time ago. The uPyLoader was intended for ESP8266, mainly because that's the only micropython capable device I have. These transfer scripts are used to create separate connection from REPL, through which the files are sent using simple ...
by Beta_Ravener
Fri Jun 02, 2017 10:34 pm
Forum: ESP8266 boards
Topic: Using persisting bytes array efficientlly
Replies: 9
Views: 2827

Re: Using persisting bytes array efficientlly

Well, now you're creating 500 temporary lists, and for each its bytes representation. Did you try something really simple like:

arr = bytearray(1000)
for i in range(0, 1000):
...arr = (i%2)+1
by Beta_Ravener
Fri Jun 02, 2017 9:12 pm
Forum: ESP8266 boards
Topic: Using persisting bytes array efficientlly
Replies: 9
Views: 2827

Re: Using persisting bytes array efficientlly

I don't have device around to play with, but I guess it depends how it's implemented in micropython. First of all, [1,2]*500 is not really a good idea because that call creates temporary list that is then converted to bytesarray. Probably because the constructor sees list of integers, it unpacks eve...