Search found 166 matches

by MostlyHarmless
Sun Jul 11, 2021 10:38 pm
Forum: Programs, Libraries and Tools
Topic: ntpclient - uasyncio based NTP synchronization
Replies: 15
Views: 9838

Re: ntpclient - uasyncio based NTP synchronization

Sorry for the delay, had limited time for a while and hobbies had to take a back seat. Hello, 1. i use ntpclient in my esp8266 board, Why do the following errors occur? Traceback (most recent call last): File "uasyncio/core.py", line 1, in run_until_complete File "ntpclient_base.py", line 120, in _a...
by MostlyHarmless
Sun Jul 11, 2021 3:04 am
Forum: ESP32 boards
Topic: IR transmitter/receiver
Replies: 31
Views: 30489

Re: IR transmitter/receiver

On a side note, by try and error I found that a lot of devices have IR functions, that are not available from their original remotes. Like dedicated power on/off signals, where the remote can only send the power toggle signal. This means that if you can only use a remote "learn & repeat" system in o...
by MostlyHarmless
Sun Jul 11, 2021 2:47 am
Forum: ESP32 boards
Topic: IR transmitter/receiver
Replies: 31
Views: 30489

Re: IR transmitter/receiver

I read this post because I like to do transceiver for my Air conditioner, it is an older model of Samsung and I read all documentation about this Air conditioner but can't find any info about protocol it used... If anyone knows or deal with SAMSUNG, please let e know the PROTOCOL, or is not necessa...
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: 9599

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: 9599

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: 2246

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: 3094

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: 9599

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: 3959

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: 1469

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...