I am currently working with BLE beacons -only iBeacons for now- with Espressif’s
esp-idf
libraries. The aim is to use the ESP32 as a gateway to published
detected beacons to an MQTT broker. It was surprisingly easy and I will write
something about that when the
code will be more polished.
Anyway, by curiosity and to speed up development, I wanted to try
microPython port to ESP32, and I did. Unfortunately, BLE support is not yet
reliable enough and a lot of advertisements were lost with 4 to 6 beacons. This
post is to keep track of my work and, hopefully, use in the future when
microPython port will be more reliable :-)
This blog is powered by Ghost, and I just migrated it from the version 0.9.x to the version 1.6.1.
The main drawback is that comments disappeared, I am working on it.
Also, posts ID changed so all RSS readers might consider them as new; sorry for the inconvenience.
I recently wanted to setup a repository for some custom OpenWrt packages for
Respeaker. It seems that it is not so well documented, or at least, I did not
found it and I have been helped on
OpenWrt forum. Also, it is
better to sign packages so…here we go!
Step by step guide to do a custom USB HID device on STM32 using ST CubeMX. There
is already
one page
addressing it but without any details for beginners.
I will use my custom board based on STM32L0,
but any Nucleo can be used by wiring a USB cable to 5V, GND, USB_D+, USB_D-.
For a project, I need media keys (play, volume, mute, …) and a way to lock a
computer under Windows (Windows+L keys). There is a lot of HID keyboard
descriptors on the Internet, some are for keyboards + media but all contain at
least one unused byte… Not a good thing for embedded systems with constraint
memory. Why? The descriptor can be found in
USB-IF example (Appendix B)
and describe a boot compatible keyboard. So unless you need your keyboard in
boot menus, this byte can be dropped. Also, the example defines 6 simultaneous
keys, I decreased it to three as I don’t need more.