汉朔价签 MCU:TLSR8359老6

alanfans 1.4m2023-04-201161 次点击1 人感谢
我用的是2.9寸三色屏

![image.png](https://s2.loli.net/2023/04/20/r2UeWtAb8pQBMsq.png)

> 型号:Steller-L3@ E31A
> 板号:HS_EL5120_9M
> MCU: TLSR8359F512ET32
> 屏幕:三色/黑白红

**TLSR8359**这个芯片很有意思,芯片**TLSR8359** 官网说明,文档,各种信息都没有说有**bluetooth**,外国大佬逆向发现这soc带低功耗蓝牙**BLE**,这是什么操作??
![unt403a.pngc23fc86f6e3db5ec9911611d92bac170.png](https://s2.loli.net/2023/04/20/53vBoNEkqcrUFCQ.png)

## 开始:

* 先下载代码和工具:https://github.com/reece15/stellar-L3N-etag
![image.png](https://s2.loli.net/2023/04/20/x2MmzTi4o7tlp5J.png)
* 用usb转ttl工具得有RTS的,PL2303HX没有RTS,我用的CH340G,第14脚就是RTS
![image.png](https://s2.loli.net/2023/04/20/q41UteOzsIKPYBv.png)
* 价签连线图
![2023-04-20_13-41.png](https://s2.loli.net/2023/04/20/ANopEmKTeQRgxSk.png)
#### 编译固件

1. 进入Firmware目录运行命令:`make clean && make`得到bin文件
![image.png](https://s2.loli.net/2023/04/20/q4SJeoxlp36D5HM.png)

* windows可以用

```
makeit.exe clean && makeit.exe -j
```

2. 打开https://atc1441.github.io/ATC_TLSR_Paper_UART_Flasher.html
![image.png](https://s2.loli.net/2023/04/20/rlZTunhjDaSGitK.png)

* 波特率选择默认 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`

![image.png](https://s2.loli.net/2023/04/20/VgwTksmQEKIhoDZ.png)

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

![image.png](https://s2.loli.net/2023/04/20/lzsCm3MAuSpQxhB.png)

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

![image.png](https://s2.loli.net/2023/04/20/FzYMUDk83hRl79O.png)

* 3. 愉快上传图片了

![image.png](https://s2.loli.net/2023/04/20/bT6mBOcLnheiCAM.png)

![image.png](https://s2.loli.net/2023/04/20/WgEd3jvrBlaLIkb.png)

![image.png](https://s2.loli.net/2023/04/20/cuxjlD1gEykrvL9.png)

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

![image.png](https://s2.loli.net/2023/04/20/KgmXzwG1MUO7HVy.png)

相关来源:
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

登录注册 后可回复。