logo elektroda
logo elektroda
X
logo elektroda

[BK7231T] A simple BLE device project using WB2L. Comments and help welcome.

jitsirakowsk 
Hi! In case anyone is interested, here is a simple project to initialize a simple BLE device on WB2L. No Tuya libraries. This is not a fully functional device (in the sense that it does not do anything useful but sends some data to the host). There is a (long) write-up in the doc directory on the project and related topics (overview of BLE, etc.) that my friend and I wrote for a local group of enthusiasts. Apologies for it being too elementary for many of you, some of our participants are students. Also, the original archive had a bz2 extension but the forum only accepts zip files, so the instruction for extraction should read tar xzvf bk_ble.tar.zip.

Andy
Edit: there is a newer version of the project later in this thread with a lot more details.

About Author
jitsirakowsk wrote 8 posts with rating 7 , helped 2 times. Been with us since 2023 year.

Comments

p.kaczmarek2 14 Jul 2023 07:42

Very impressive documentation. Comprehensive and well written. I will have to find some time to analyze it. Are you planning to support N platform as well (BK7231N)? [Read more]

jitsirakowsk 14 Jul 2023 13:16

We are. I think we have `N' powered devices lying around as well so as soon as we hook it up we should be able to get something similar. In the meanwhile we are planning to use Beken's BLE profile api... [Read more]

DeDaMrAz 14 Jul 2023 14:48

Hi Andy, That writeup looks very, very nice and thank you for sharing it with us! Disclaimer - haven't read the paper yet so ignore the question if irrelevant. Have you considered using OpenOCD... [Read more]

p.kaczmarek2 14 Jul 2023 16:06

There was a JTAG config by @xabean somewhere. [Read more]

jitsirakowsk 14 Jul 2023 17:51

Hi! Thanks for the question and the info about JTAG. No, we have not done anything with it but OpenOCD with jtag would be fantastic. If I understand correctly this requires access to SPI pins and a few... [Read more]

p.kaczmarek2 14 Jul 2023 18:18

Here is a guide for SPI flashing of BK7231. It can be used to reconstruct bootloader if it was overwritten: https://www.elektroda.com/rtvforum/topic3931424.html I will, however, note here that WB2L may... [Read more]

jitsirakowsk 14 Jul 2023 22:10

Yes, we have seen the guide (excellent work by the way) and judging by the datasheet for WB2L pins 20-23, as well as reset are exposed as test pins on the back of the pcb. The datasheet also explicitly... [Read more]

jitsirakowsk 21 Sep 2023 18:19

Hi everyone! Here is a new version of the tutorial and the project. Not much new code, although we have reverse engineered three somewhat large functions in the link layer driver. There is a detailed... [Read more]

%}