趣小组
[ MAKE ]
首页
节点
分享
创造
问与答
二手交易
编程
电子
树莓派
Arduino
手工
小玩意
ACG 二次元
科学
文化
电影
宠物
旅行
技术支持
登录
注册
首页
分享
汉朔价签 MCU:TLSR8359老6
alanfans
1.4m
•
2023-04-20
•
2157 次点击
•
1 人感谢
我用的是2.9寸三色屏  > 型号:Steller-L3@ E31A > 板号:HS_EL5120_9M > MCU: TLSR8359F512ET32 > 屏幕:三色/黑白红 **TLSR8359**这个芯片很有意思,芯片**TLSR8359** 官网说明,文档,各种信息都没有说有**bluetooth**,外国大佬逆向发现这soc带低功耗蓝牙**BLE**,这是什么操作??  ## 开始: * 先下载代码和工具:https://github.com/reece15/stellar-L3N-etag  * 用usb转ttl工具得有RTS的,PL2303HX没有RTS,我用的CH340G,第14脚就是RTS  * 价签连线图  #### 编译固件 1. 进入Firmware目录运行命令:`make clean && make`得到bin文件  * windows可以用 ``` makeit.exe clean && makeit.exe -j ``` 2. 打开https://atc1441.github.io/ATC_TLSR_Paper_UART_Flasher.html  * 波特率选择默认 460800,Atime默认,文件选择刚才编译出来的bin文件 * 先点击unlock,再点击write to flush,等待完成。成功后,屏幕会自动刷新,如果不自动刷新可以用RTS线与GND连接一下 * 注意事项:CH340G上可以不焊RTS,刷机时一定要连接,刷机时ttl板会闪蓝灯,价签也会闪蓝灯, * 刷完会有S24_XXXXXX的信息在屏幕上,没有就看固件有没有问题,我这个价签并没有nfc,所以我注释了`app.c`里的`init_nfc()` ```c #include <stdint.h> #include "tl_common.h" #include "app.h" #include "main.h" #include "drivers.h" #include "stack/ble/ble.h" #include "vendor/common/blt_common.h" #include "battery.h" #include "ble.h" #include "flash.h" #include "ota.h" #include "epd.h" #include "etime.h" #include "bart_tif.h" RAM uint8_t battery_level; RAM uint16_t battery_mv; RAM int16_t temperature; // Settings extern settings_struct settings; _attribute_ram_code_ void user_init_normal(void) { // this will get executed one time after power up random_generator_init(); // must init_time(); init_ble(); init_flash(); // init_nfc(); } ``` 3. 蓝牙操作 * 浏览器要打开蓝牙选项不然报错`chrome://flags`  * 浏览器自带的蓝牙调试地址 `chrome://bluetooth-internals/`  * 1. 运行 `cd web_tools && python -m http.server 9000` * 2. 打开 [http://127.0.0.1:9000](http://127.0.0.1:9000/) 后在页面上链接蓝牙  * 3. 愉快上传图片了    4. OTA升级: [https://atc1441.github.io/ATC\_TLSR\_Paper\_OTA\_writing.html](https://atc1441.github.io/ATC_TLSR_Paper_OTA_writing.html)  相关来源: https://www.youtube.com/@atc1441 https://github.com/atc1441/ATC_TLSR_Paper https://github.com/reece15/stellar-L3N-etag http://javabin.cn/2022/epaper.html https://blog.csdn.net/u010752777/article/details/128591045 https://github.com/CursedHardware/hanshow https://oshwhub.com/article/research-of-hanshow-epaper http://wiki.telink-semi.cn/wiki/chip-series/TLSR835x-Series/ http://wiki.telink-semi.cn/doc/ds/DS_TLSR8359-E_Datasheet%20for%20Telink%20ULP%202.4GHz%20RF%20SoC%20TLSR8359.pdf
我用的是2.9寸三色屏

> 型号:Steller-L3@ E31A
> 板号:HS_EL5120_9M
> MCU: TLSR8359F512ET32
> 屏幕:三色/黑白红
**TLSR8359**这个芯片很有意思,芯片**TLSR8359** 官网说明,文档,各种信息都没有说有**bluetooth**,外国大佬逆向发现这soc带低功耗蓝牙**BLE**,这是什么操作??

## 开始:
* 先下载代码和工具:https://github.com/reece15/stellar-L3N-etag

* 用usb转ttl工具得有RTS的,PL2303HX没有RTS,我用的CH340G,第14脚就是RTS

* 价签连线图

#### 编译固件
1. 进入Firmware目录运行命令:`make clean && make`得到bin文件

* windows可以用
```
makeit.exe clean && makeit.exe -j
```
2. 打开https://atc1441.github.io/ATC_TLSR_Paper_UART_Flasher.html

* 波特率选择默认 460800,Atime默认,文件选择刚才编译出来的bin文件
* 先点击unlock,再点击write to flush,等待完成。成功后,屏幕会自动刷新,如果不自动刷新可以用RTS线与GND连接一下
* 注意事项:CH340G上可以不焊RTS,刷机时一定要连接,刷机时ttl板会闪蓝灯,价签也会闪蓝灯,
* 刷完会有S24_XXXXXX的信息在屏幕上,没有就看固件有没有问题,我这个价签并没有nfc,所以我注释了`app.c`里的`init_nfc()`
```c
#include <stdint.h>
#include "tl_common.h"
#include "app.h"
#include "main.h"
#include "drivers.h"
#include "stack/ble/ble.h"
#include "vendor/common/blt_common.h"
#include "battery.h"
#include "ble.h"
#include "flash.h"
#include "ota.h"
#include "epd.h"
#include "etime.h"
#include "bart_tif.h"
RAM uint8_t battery_level;
RAM uint16_t battery_mv;
RAM int16_t temperature;
// Settings
extern settings_struct settings;
_attribute_ram_code_ void user_init_normal(void)
{ // this will get executed one time after power up
random_generator_init(); // must
init_time();
init_ble();
init_flash();
// init_nfc();
}
```
3. 蓝牙操作
* 浏览器要打开蓝牙选项不然报错`chrome://flags`

* 浏览器自带的蓝牙调试地址 `chrome://bluetooth-internals/`

* 1. 运行 `cd web_tools && python -m http.server 9000`
* 2. 打开 [http://127.0.0.1:9000](http://127.0.0.1:9000/) 后在页面上链接蓝牙

* 3. 愉快上传图片了



4. OTA升级: [https://atc1441.github.io/ATC\_TLSR\_Paper\_OTA\_writing.html](https://atc1441.github.io/ATC_TLSR_Paper_OTA_writing.html)

相关来源:
https://www.youtube.com/@atc1441
https://github.com/atc1441/ATC_TLSR_Paper
https://github.com/reece15/stellar-L3N-etag
http://javabin.cn/2022/epaper.html
https://blog.csdn.net/u010752777/article/details/128591045
https://github.com/CursedHardware/hanshow
https://oshwhub.com/article/research-of-hanshow-epaper
http://wiki.telink-semi.cn/wiki/chip-series/TLSR835x-Series/
http://wiki.telink-semi.cn/doc/ds/DS_TLSR8359-E_Datasheet%20for%20Telink%20ULP%202.4GHz%20RF%20SoC%20TLSR8359.pdf
收藏
♥ 感谢
Spoony
小组长
2023-04-21
厉害,多谢分享!
alanfans
1.4m
2023-04-21
价签,闲鱼上买的,类型有很多,汉朔的MCU分很多种MSP430G2553,TLSR8359F512ET32,CC2640R2F
登录
或
注册
后可回复。
›
创客百宝箱