Search found 163 matches

by MostlyHarmless
Sat Nov 07, 2020 12:40 am
Forum: Pyboard D-series
Topic: unable to access webrepl when main script is running
Replies: 14
Views: 2190

Re: unable to access webrepl when main script is running

750ms to read sensors sounds like a lot. Can you give more details on that?


Jan
by MostlyHarmless
Thu Nov 05, 2020 7:04 pm
Forum: Pyboard D-series
Topic: unable to access webrepl when main script is running
Replies: 14
Views: 2190

Re: unable to access webrepl when main script is running

MrRobot wrote:
Thu Nov 05, 2020 4:33 pm
Hi I've tried putting in a small sleep in every loop.

But until I kill the main process running I can't access the webrepl.

I can only enter a password, it won't accept it

Please help me if you can
Have you actually tried it with a 20ms sleep?


Jan
by MostlyHarmless
Mon Nov 02, 2020 6:27 pm
Forum: General Discussion and Questions
Topic: Asyncio and WebREPL
Replies: 2
Views: 661

Re: Asyncio and WebREPL

It works here, and not only that. I have a picoweb application with 4 additional uasyncio tasks plus webrepl, utelnetserver and uftpd all running happily together on one ESP32. Are you sure that webrepl is being started? The setup normally just tacks the import and start() at the end of boot.py. If ...
by MostlyHarmless
Sat Oct 31, 2020 2:04 pm
Forum: ESP32 boards
Topic: (ADC) Unclear: Attenuation changes the physical or the digital range of the ADC?
Replies: 5
Views: 811

Re: (ADC) Unclear: Attenuation changes the physical or the digital range of the ADC?

According to the ESP32 Datasheet the maximum High Level input voltage is VDD+0.3V, which makes it 3.6V since the supply voltage is 3.3V. It is my understanding that this is the maximum input voltage no matter what the attenuation is. The attenuation only affects the range, in which the ADC will prod...
by MostlyHarmless
Sat Oct 31, 2020 1:29 am
Forum: Pyboard D-series
Topic: unable to access webrepl when main script is running
Replies: 14
Views: 2190

Re: unable to access webrepl when main script is running

It appears that such a busy loop will block all the polling background services, like uftpd, utelnetserver and webrepl. Inserting a small sleep_ms into it will give them time to react: import utime while True: utime.sleep_ms(20) That said I haven't found a way to deliver a KeyboardInterrupt (^C) whe...
by MostlyHarmless
Fri Oct 30, 2020 5:13 am
Forum: Other Boards
Topic: [NUCLEO-L476RG] How to compile main.py and send to board
Replies: 6
Views: 1037

Re: [NUCLEO-L476RG] How to compile main.py and send to board

EPERM means you don't have permission to access something. My guess is that you need to run this as administrator. That is really just a guess as I never use Windows for any of this.


Regards, Jan
by MostlyHarmless
Fri Oct 30, 2020 3:58 am
Forum: General Discussion and Questions
Topic: Bind with Ethernet Port Only
Replies: 1
Views: 392

Re: Bind with Ethernet Port Only

The usocket module perfectly supports bind((<IP>, <PORT>)). When using '0.0.0.0' (AKA INADDR_ANY) for IP, the server socket will accept connections on all active interfaces. To limit it to one specific interface you should obtain that IP address via WLAN.ifconfig() and use it in the bind() call. You...
by MostlyHarmless
Fri Oct 30, 2020 1:42 am
Forum: ESP32 boards
Topic: Add Terminal to webpage
Replies: 1
Views: 365

Re: Add Terminal to webpage

Have you thought about incorporating the term.js of WebREPL into the website, served by the ESP32? That should give you a ready to use terminal.


Best Regards, Jan
by MostlyHarmless
Thu Oct 29, 2020 5:43 pm
Forum: ESP32 boards
Topic: Upload file of 250kB or more
Replies: 10
Views: 1426

Re: Upload file of 250kB or more

BL007, FTP is a protocol. The File Transfer Protocol, to be specific. Having an FTP server on the device doesn't mean that the user has to fiddle with some separate FTP client program. There are FTP client libraries for pretty much every language and platform. Using them will become part of your end...
by MostlyHarmless
Thu Oct 29, 2020 4:15 am
Forum: Other Boards
Topic: [NUCLEO-L476RG] How to compile main.py and send to board
Replies: 6
Views: 1037

Re: [NUCLEO-L476RG] How to compile main.py and send to board

humberto ontiveros wrote:
Thu Oct 29, 2020 3:25 am
Hi, i am having the same problem wiht a STM32 NUCLEO-L432KC, were you able to solve it wiht pyborad.py? and by the way what IDE do you use for develop yours scripts for this board?
Another option to transfer files to boards that have a USB based REPL is ampy.