Search found 111 matches

by prem111
Sat Feb 20, 2021 8:35 am
Forum: General Discussion and Questions
Topic: BLE init long time problem.
Replies: 6
Views: 730

Re: BLE init long time problem.

How to fix this problem in v.1.12? Is the only solution to going to core 0? (sometimes I have a crash panic) I noticed that in the latest 1.14 for esp32 there is "MicroPython and NimBLE tasks to core 0" How can you do that only when bluetooth is on?
by prem111
Fri Feb 19, 2021 6:48 pm
Forum: Development of MicroPython
Topic: 1.14 or 1.13 - import libs is slower than 1.12 ? (test)
Replies: 8
Views: 716

Re: 1.13 - import libs is slower than 1.12 ?

in version 1.13 or 1.14 it is just as slower when importing the same libraries. nobody suggested that it was faster on 1.12? v.1.12: >>> time.ticks_ms();import uasyncio;time.ticks_ms() 2008736 2008754 sys.path.append('libs') >>> time.ticks_ms();from system_devices import *;time.ticks_ms() 2068585 20...
by prem111
Thu Feb 11, 2021 2:32 pm
Forum: General Discussion and Questions
Topic: Update *.py files.
Replies: 3
Views: 114

Re: Update *.py files.

Thanks. I have one more question. If we have the same files, eg "ctrl.py" in the firmware (frozen) and in the filesystem, is it possible to force it to use ctrl.py with the firmware?
by prem111
Thu Feb 11, 2021 6:42 am
Forum: General Discussion and Questions
Topic: Update *.py files.
Replies: 3
Views: 114

Update *.py files.

My project is based on communication between the phone and ESP32 (miropython) via bluetooth. I have all my software compiled in frozen code on micropython firmware. I plan to implement updating files on esp32 from the phone via BLE. The basic question is whether to update individual files or all at ...
by prem111
Mon Nov 23, 2020 2:06 pm
Forum: Programs, Libraries and Tools
Topic: BLE data - buffer.
Replies: 3
Views: 323

Re: BLE data - buffer.

Yes apeend is set to True, but there is one more thing. When I have the buffer set to len = 100, I will send a packet which has e.g. 80 bytes, then it will send another 80 bytes packet, I receive that 80 bytes will come, 20 from the next packet is added/append, and the rest of the second, i.e. 60, d...
by prem111
Mon Nov 23, 2020 8:29 am
Forum: Programs, Libraries and Tools
Topic: BLE data - buffer.
Replies: 3
Views: 323

BLE data - buffer.

Hi. When transmitting BLE data, sending separately one by one: "abcdef" "abcdef" Sometimes they go to the buffer in this form: b'abcdefabcdef ' Should I use some sort of separator / delimiter? If so, what exactly? I was thinking about "\n" or "#" but in the future I want to transfer files so I don't...
by prem111
Thu Nov 19, 2020 10:25 am
Forum: Programs, Libraries and Tools
Topic: uasyncio StreamReader uart problem.
Replies: 2
Views: 738

Re: uasyncio StreamReader uart problem.

Ok. Reduce worst-case blocking times it helped. Thanks for the explanation.
by prem111
Wed Nov 18, 2020 8:05 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio StreamReader uart problem.
Replies: 2
Views: 738

uasyncio StreamReader uart problem.

Hi. How to solve simultaneous get data from UART, and a task in another async function. I have a problem because when another function that is quite heavy on the system is looping etc, the data from the UART is truncated. I am using one StreamWriter. Thanks.
by prem111
Mon Nov 16, 2020 1:50 pm
Forum: Programs, Libraries and Tools
Topic: Panic/reboot in modbluetooth, assertion ringbuf.
Replies: 0
Views: 807

Panic/reboot in modbluetooth, assertion ringbuf.

Hi. What happened ? i use bluetooth, never had this error before. assertion "ringbuf_avail(ringbuf) >= n_u16 * 2 + n_u8 + (bytes_addr ? 6 : 0) + n_b + n_i8 + (uuid ? 1 : 0) + (bytes_data ? 1 : 0)" failed: file "../../extmod/modbluetooth.c", line 781, function: ringbuf_extract abort() was called at P...
by prem111
Sun Nov 15, 2020 8:07 am
Forum: Programs, Libraries and Tools
Topic: PWM - different frequences.
Replies: 3
Views: 550

Re: PWM - different frequences.

I used HIGH for esc and LOW for servos. What do you mean by avoid flicker ?, that at e.g. 50hz it can cause more servo vibration than at e.g. 100hz?