Search found 761 matches

by Roberthh
Mon Nov 13, 2017 5:00 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 422

Re: Tool uPyLoader for MP on esp32

sys.stdout.write normally expects str. However mycropython is more tolerant. Just for interest I enabled buffer in the pycom port, by adding the line: #define MICROPY_PY_SYS_STDIO_BUFFER (1) to mpconfigport.h and rebuilt the firmware. That's all what's needed, but for you this is hardly suitable, be...
by Roberthh
Mon Nov 13, 2017 2:24 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 422

Re: Tool uPyLoader for MP on esp32

There is a config option called MICROPY_PY_SYS_STDIO_BUFFER. I'll try to set that to 1. Sometimes that's all that is needed, sometimes the option is still there, but the code is missing. Personally I would spend the time in a transparent encoding, which make the least possible assumption on transpar...
by Roberthh
Mon Nov 13, 2017 2:02 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 422

Re: Tool uPyLoader for MP on esp32

The ususal stdin/stdout is not transparent, in that it replaces characters (e.g. \r by \n) and tries to do a simple uft-8 conversion. The buffer versions are transparent. The difference in code the is minor. So I could try a PR for Pycom. Alternatively you could try to encode the data such it fits i...
by Roberthh
Fri Nov 10, 2017 12:06 pm
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 422

Re: Tool uPyLoader for MP on esp32

Hello @profra, I responded already to your question in the pycom.io board. The answer can be found in the makefile applicatio.mk, which also controls flashing: BOOT_OFFSET = 0x1000 PART_OFFSET = 0x8000 APP_OFFSET = 0x10000 You do not need to flash wipy.bin. If you want to see, how the call fopr espt...
by Roberthh
Fri Nov 10, 2017 6:34 am
Forum: General Discussion and Questions
Topic: How to obtain a list of importable modules?
Replies: 15
Views: 939

Re: How to obtain a list of importable modules?

You might need to update. It works on my PyBoard:
(sysname='pyboard', nodename='pyboard', release='1.9.3', version='v1.9.3-11-gb9580b8-dirty on 2017-11-07', machine='PYBv1.1 with STM32F405RG')
by Roberthh
Wed Nov 08, 2017 8:14 pm
Forum: General Discussion and Questions
Topic: ENOMEM and tcp sockets?
Replies: 2
Views: 73

Re: ENOMEM and tcp sockets?

You get that error if you have a socket open and the perform a warm boot (Ctrl_D) or try otherwise to re-uses these.. You have either to close the sockets or do a hard reset to release the sockets.
by Roberthh
Wed Nov 08, 2017 11:26 am
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 422

Re: Tool uPyLoader for MP on esp32

in the esp32/boards subdirectory there is a path for each board, including a file called pins.csv. From what I understand, a new board directory has to be made (e.g. LOLIN32) as the copy of WIPY and the respective files have to be edited. Their content seems pretty obvious.
by Roberthh
Wed Nov 08, 2017 6:18 am
Forum: ESP32 boards
Topic: Tool uPyLoader for MP on esp32
Replies: 19
Views: 422

Re: Tool uPyLoader for MP on esp32

I use the WiPY 2 software myself on a Lolin32 module, because it is much more convenient to use (built-in USB). WiPy is not just a ESP32, power supply, antenna switch and RGB led on a module. The only physical difference to the Lolin32 is the external antenna switch, which you can ignore on the LoLi...
by Roberthh
Wed Nov 08, 2017 6:09 am
Forum: ESP8266 boards
Topic: FTP Server
Replies: 25
Views: 5160

Re: FTP Server

Thanks a lot. And yes, the timeout mechanism you describe looks like a suitable implementation. If it works, you're right. The try/except mechanism of python is made for situations like that, intended and unintended specific conditions.