Search found 97 matches

by prem111
Mon Nov 23, 2020 2:06 pm
Forum: Programs, Libraries and Tools
Topic: BLE data - buffer.
Replies: 3
Views: 280

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

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

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

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

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

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?
by prem111
Sat Nov 14, 2020 5:24 pm
Forum: Programs, Libraries and Tools
Topic: PWM - different frequences.
Replies: 3
Views: 490

PWM - different frequences.

Hi, im using esp32 for control servos and esc. Due to the standard machine_pwm not supporting different frequencies on different PWM channels, I modified machine_pwm according to the following: https://github.com/micropython/micropython-esp32/pull/245/commits/753763b92f6df46ea9449b3bf04e509bea4a8acd...
by prem111
Sat Nov 14, 2020 9:51 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamWriter in two async loops.
Replies: 2
Views: 652

Re: uasyncio - StreamWriter in two async loops.

Everything ok, I did it in queue. Thanks.
by prem111
Thu Nov 12, 2020 7:28 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamWriter in two async loops.
Replies: 2
Views: 652

uasyncio - StreamWriter in two async loops.

Hi. How to use uasyncio.StreamWriter in two asynchronous loops in the same time? Sometimes when he wants to write to uart at the same time, not everything comes up. Thanks for help!
by prem111
Thu Oct 29, 2020 8:07 am
Forum: Development of MicroPython
Topic: 1.13 - import libs is slower than 1.12 ?
Replies: 4
Views: 518

Re: 1.13 - import libs is slower than 1.12 ?

Board is esp32. But it is like that with every boot. The difference can be seen when importing e.g. uasyncio.