Search found 169 matches

by Christian Walther
Thu Oct 31, 2019 12:06 pm
Forum: General Discussion and Questions
Topic: Does a serial device know when it is being connected to or read from?
Replies: 4
Views: 3145

Re: Does a serial device know when it is being connected to or read from?

What could be happening is that opening the device in pyserial does something with the hardware handshake lines that causes the microcontroller to reset, hence you get the boot output on every new connection. (I don’t know the details offhand about how to configure that in pyserial and how the usual...
by Christian Walther
Thu Oct 24, 2019 11:20 am
Forum: ESP32 boards
Topic: Updating main.py with infinite loop
Replies: 5
Views: 2732

Re: Updating main.py with infinite loop

By “no longer have access to the REPL”, do you mean that you explicitly detached the UART from stdin/out (using dupterm )? Because if not, you can just send a control-C through the UART and that will break out of your infinite loop and drop you in the REPL – same as in CPython on the desktop. And ye...
by Christian Walther
Mon Oct 21, 2019 7:33 pm
Forum: ESP32 boards
Topic: Full List of Args for network.WLAN(network.AP_IF)
Replies: 3
Views: 3839

Re: Full List of Args for network.WLAN(network.AP_IF)

I don’t know if there is a better “consolidated place” – I usually just use the search function of the documentation – but the WLAN auth modes are documented at WLAN.scan() , and one can assume that they are the same for WLAN.config() . The documentation there just states “see module constants”, whi...
by Christian Walther
Wed Oct 09, 2019 11:02 am
Forum: Other Boards
Topic: Loding microPython onto Adafruit Feather M0 Adalogger
Replies: 1
Views: 1963

Re: Loding microPython onto Adafruit Feather M0 Adalogger

Can you post the full link to the guide you used? Abbreviated like this it’s not much use. (I’m confused because I’m not aware of any official release of MicroPython for SAMD21 yet. Any reason why you want MicroPython, not CircuitPython on that board?) Are you sure tty.usbmodem411 is the right port ...
by Christian Walther
Sun Sep 15, 2019 9:19 am
Forum: General Discussion and Questions
Topic: displaying byte data with REPL
Replies: 3
Views: 2213

Re: displaying byte data with REPL

Code: Select all

>>> import ubinascii
>>> ubinascii.hexlify(b'9\x9f', ' ')
b'39 9f'
by Christian Walther
Sat Sep 14, 2019 8:12 am
Forum: General Discussion and Questions
Topic: Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator
Replies: 3
Views: 2903

Re: Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator

Or a NumWorks , which even comes with source code for both firmware and hardware. Unfortunately I don’t know the answers to your questions because I stopped pursuing them myself after I got the NumWorks (which I haven’t done much with either). I suspect you are going to have some trouble adapting Sc...
by Christian Walther
Sun Sep 08, 2019 8:25 pm
Forum: ESP32 boards
Topic: How to use usb mass storage in ESP32?
Replies: 5
Views: 8164

Re: How to use usb mass storage in ESP32?

So, you don’t want the ESP to act as a mass storage device, but you want it to use another mass storage device? Regardless, that won’t work either due to the missing USB. I’m not sure if any MicroPython platform has drivers for that, even those that do have USB. Assuming that your RS232 interface is...
by Christian Walther
Tue Aug 06, 2019 7:33 pm
Forum: ESP8266 boards
Topic: Micropython crashing and rebooting every 9seconds
Replies: 26
Views: 16364

Re: Micropython crashing and rebooting every 9seconds

There is, if you want to rebuild the firmware (it’s done in ports/esp8266/modules/inisetup.py called from _boot.py), but I’m not sure you need to – you can just disable it on the REPL after flashing, and it will stay off.
by Christian Walther
Tue Aug 06, 2019 7:21 pm
Forum: General Discussion and Questions
Topic: ESP32: How to send files from internal flash to PC
Replies: 14
Views: 15699

Re: ESP32: How to send files from internal flash to PC

Did you make more progress with https://github.com/micropython/micropython/pull/3034#issuecomment-492205467 This sounds like it would be really useful for the device-initiated case described here? Yes, you are right, if the PC can be online all the time that could be used too. No, I haven’t spent a...
by Christian Walther
Tue Aug 06, 2019 2:33 pm
Forum: General Discussion and Questions
Topic: ESP32: How to send files from internal flash to PC
Replies: 14
Views: 15699

Re: ESP32: How to send files from internal flash to PC

If you can live with initiating the transfer from the PC side (it sounds like you want the opposite), the WebREPL is the easiest way to transfer files wirelessly from and to ESP boards, using either the HTML or command-line client. If you need to initiate the transfer from the microcontroller side, ...