Ai-Thinker-Open / Telink_sig_mesh
Telink 蓝牙芯片SIG Mesh SDK,可对接天猫精灵,小爱同学等
Stars: ✭ 56
Programming Languages
c
50402 projects - #5 most used programming language
Projects that are alternatives of or similar to Telink sig mesh
Fruitymesh
FruityMesh - The first completely connection-based open source mesh on top of Bluetooth Low Energy (4.1/5.0 or higher)
Stars: ✭ 229 (+308.93%)
Mutual labels: mesh, ble
Unity Procedural Mesh Bezier Curve
Unity Procedural Mesh Bezier Curve Tutorial
Stars: ✭ 50 (-10.71%)
Mutual labels: mesh
Opengeode
Open source framework for representing and manipulating geometric models
Stars: ✭ 46 (-17.86%)
Mutual labels: mesh
Saberlight
Collection of tools to control some "smart" BLE bulbs [Mirror]
Stars: ✭ 36 (-35.71%)
Mutual labels: ble
Ancs4linux
iOS/iPadOS notification service client for Linux desktop (notifications on your desktop, over Bluetooth Low Energy)
Stars: ✭ 47 (-16.07%)
Mutual labels: ble
Nerf unity
Unity project for nerf_pl (Neural Radiance Fields)
Stars: ✭ 27 (-51.79%)
Mutual labels: mesh
Yggdrasil Go
An experiment in scalable routing as an encrypted IPv6 overlay network
Stars: ✭ 1,007 (+1698.21%)
Mutual labels: mesh
Miflora
Node.js package for the Xiaomi Plant Sensor Flower Care (Mi Flora)
Stars: ✭ 38 (-32.14%)
Mutual labels: ble
Pts
Quantized Mesh Terrain Data Generator and Server for CesiumJS Library
Stars: ✭ 36 (-35.71%)
Mutual labels: mesh
Creature unity
2D Skeletal Animation Unity Runtimes for Creature
Stars: ✭ 50 (-10.71%)
Mutual labels: mesh
Node Red Contrib Generic Ble
A Node-RED node set for providing access to generic BLE peripheral GATT characteristics.
Stars: ✭ 20 (-64.29%)
Mutual labels: ble
Flutter wechat ble
ble 4.0 with wechat style api for flutter. flutter版微信api风格的低功耗蓝牙
Stars: ✭ 41 (-26.79%)
Mutual labels: ble
Meshcnn
Convolutional Neural Network for 3D meshes in PyTorch
Stars: ✭ 1,032 (+1742.86%)
Mutual labels: mesh
Telink SIG Mesh SDK
Telink 泰凌位 蓝牙Mesh芯片软件开发套件
使用方法
获取TC32编译工具链(文档仅适用于Linux)
目前仅测试了linux及Mac OS系统,Windows系统仅提供了编译工具链,需自行设置环境变量
Mac OS版本获取编译工具链
git clone https://github.com/flyskywhy/tc32 -b macos
Windows 版本工具链下载地址
https://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32-win.rar
linux版本获取编译工具链
wget https://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32_gcc_v2.0.tar.bz2
解压到opt文件夹 (也可解压到其他文件夹)
sudo tar -xvjf tc32_gcc_v2.0.tar.bz2 -C /opt/
添加工具链到环境变量(以解压到/opt为例)
export PATH=$PATH:/opt/tc32/bin
测试是否搭建成功
tc32-elf-gcc -v
如果搭建成功将打印如下信息:
Using built-in specs.
COLLECT_GCC=tc32-elf-gcc
COLLECT_LTO_WRAPPER=/opt/tc32/lib/gcc/tc32-elf/4.5.1.tc32-elf-1.5/lto-wrapper
Target: tc32-elf
Configured with: ../../gcc-4.5.1/configure --program-prefix=tc32-elf- --target=tc32-elf --prefix=/opt/tc32 --enable-languages=c --libexecdir=/opt/tc32/lib --with-gnu-as --with-gnu-ld --without-headers --disable-decimal-float --disable-nls --disable-mathvec --with-pkgversion='Telink TC32 version 2.0 build' --without-docdir --without-fp --without-tls --disable-shared --disable-threads --disable-libffi --disable-libquadmath --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp --disable-libssp -v --without-docdir --enable-soft-float --with-newlib --with-gcc --with-gnu- --with-gmp=/opt/tc32/addontools --with-mpc=/opt/tc32/addontools --with-mpfr=/opt/tc32/addontools
Thread model: single
gcc version 4.5.1.tc32-elf-1.5 (Telink TC32 version 2.0 build)
获取SDK
git clone https://github.com/Ai-Thinker-Open/Telink_SIG_Mesh.git
编译
进入examples/8258_mesh工程目录
cd Telink_SIG_Mesh/examples/8258_mesh
执行下列编译指令:
make all
输出类似如下信息说明编译成功:
Invoking: Print Size
tc32-elf-size -t / ... /Telink_SIG_Mesh/examples/8258_mesh/out/8258_mesh.elf
text data bss dec hex filename
134720 2724 14160 151604 25034 / ... /Telink_SIG_Mesh/examples/8258_mesh/out/8258_mesh.elf
134720 2724 14160 151604 25034 (TOTALS)
Finished building: sizedummy
烧录程序到芯片
安信可自主开发了串口烧录工具,无需官方烧录器即可使用,前提是要先将安信可bootloader烧录到模块中。
串口烧录接线方式如下(安信可TB-02模块):
串口 | 模块 |
---|---|
VCC | 3V3 |
GND | GND |
TX | RX |
RX | TX |
RTS | RST |
DTR | PA1 |
注意:PA1为boot选择引脚,为低电平进入下载模式,为高电平进入运行模式
烧录指令:
make flash
其他指令:
make erase_fw //擦除固件
make erase_key //擦除Mesh相关数据
make monitor //打开串口监控
python3 ../../make/Telink_Tools.py -p /dev/ttyUSB0 burn_triad 1345 78da07fa44a7 221746e805ac0e6269bd4d3e55f1145c //烧录三元组
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].