Search found 4 matches

by anichang
Fri Dec 31, 2021 2:20 pm
Forum: Programs, Libraries and Tools
Topic: aioble connection management
Replies: 1
Views: 14688

aioble connection management

I have the following listener asyncio task: # Serially wait for connections. Don't advertise while a central is connected. async def _pListen(self): while True: print("\nBLE advertising") async with await aioble.advertise( BLE_ADV_INTERVAL_MS, name=self.name, services=[s.uuid for s in self.service],...
by anichang
Tue Dec 07, 2021 5:38 pm
Forum: ESP32 boards
Topic: BLE REPL, example code not working (not advertising?)
Replies: 0
Views: 2135

BLE REPL, example code not working (not advertising?)

EDIT: I can't get the device popping up as a uart in windows, linux, iphone and android. Kind of works using python's ble-serial, but I've to manually set read and write characteristics, and first attempt to connect always fails with timeout. Hi, I've uploaded to device: - ble_advertising.py - ble_...
by anichang
Tue May 11, 2021 3:32 am
Forum: ESP32 boards
Topic: multi-threading question
Replies: 19
Views: 14511

Re: multi-threading question

I'm pretty sure the answer is no: MicroPython runs on one core and FreeRTOS on the other. Indeed we are using core0 only. Currently core1 is unused by default. From ports/esp32/mphalport.h (v1.15): // The core that the MicroPython task(s) are pinned to. // Until we move to IDF 4.2+, we need NimBLE ...
by anichang
Sun May 09, 2021 1:08 am
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 30
Views: 19119

Re: LVGL and SD Card won't share SPI bus

Looks like no fix has been mainlined. I tried to change the python driver by adding a sharedspi flag to the init functions, which would skip the gpios setup and spi master init but, if the sharedspi flag is set to true, the subsequent call spi_bus_add_device() fails with ret = 259 (0x103, ESP_ERR_IN...