根据这个教程(50 元内自制短信转发器)过一遍就行,踩坑如下:
- Luattools 要放在第一个文件夹里,点击更新要下载很多东西,应该不更新也行。
- 作者使用的简约版 ESP32C3 其实就是新版,对于 Windows 10 不需要装驱动,它的名字是 USB Serial Device ,视频里是 USB-Enhance-Serial-CH343 ,那个是老版,要额外装驱动。我被误导了,其实简约版什么都不用装。
- 作者的固件可能有问题,我用这里的 LuatOS-SoC_V1001_ESP32C3_USB ,可能它们就是一个东西。
- Luat 官方的邮箱推送或者是他们用的那个服务有问题,邮件好像发不了,最后我用自建 Bark 了。
问题: 虽然适配了长短信,但是还有一些奇奇怪怪的问题,应该是 notify 和 main 有冲突。
[2022-11-13 19:06:06.906] I/user.sms recv 10681982580146303 NN
[g
[2022-11-13 19:06:06.906] 0 22/11/13,19:06:04+32 true 2 2
[2022-11-13 19:06:06.906] I/user.notify got sms 10681982580146303 NN
[g
[2022-11-13 19:06:06.906] 0
[2022-11-13 19:06:06.906] ww 32.71777
[2022-11-13 19:06:06.922] I/user.notify len,offset 5 0
[2022-11-13 19:06:06.922] I/user.notify send to luatos push server 京东客服。
[2022-11-13 19:06:06.922] I/http HTTP GET
[2022-11-13 19:06:07.515] D/http esp_http_client_perform 0
[2022-11-13 19:06:07.515] I/user.notify pushed sms notify 200 table: 3FCACA90 {"code":200,"message":"success","timestamp":1668337568} 10681982580146303
[2022-11-13 19:06:07.515] I/user.notify len,offset2 -35 40
[2022-11-13 19:06:07.515] I/user.notify wait for a new sms~
[2022-11-13 19:06:07.515] zzz 34.68848
[2022-11-13 19:06:18.467] I/user.sms recv 10681982580146303 0 N 琋
0 殞嬃 x N:I/user.air780 found a long sms 2 1
[2022-11-13 19:08:18.472] I/user.notify got sms 10681982580146303 0 NN
0 x N:ww 32.81738
[2022-11-13 19:08:18.472] I/user.notify len,offset 67 0
[2022-11-13 19:08:18.472] I/user.notify send to luatos push server [京东] 验证码为 613056 ,请确认本人操作,切勿泄露给他人,请在找回密码页面中
[2022-11-13 19:08:18.472] I/http HTTP GET
[2022-11-13 19:08:19.029] D/http esp_http_client_perform 0
[2022-11-13 19:08:19.033] I/user.notify pushed sms notify 200 table: 3FCB4430 {"code":200,"message":"success","timestamp":1668337699} 10681982580146303
[2022-11-13 19:08:19.033] I/user.notify len,offset2 27 40
[2022-11-13 19:08:19.040] I/user.notify len,offset 27 40
[2022-11-13 19:08:19.043] I/user.notify send to luatos push server 完成验证,如有问题点击 ihelp.jd.com 联系
[2022-11-13 19:08:19.043] I/http HTTP GET
[2022-11-13 19:08:19.049] I/user.notify pushed sms notify -4 nil nil 10681982580146303
[2022-11-13 19:08:24.073] I/http HTTP GET
[2022-11-13 19:08:24.614] D/http esp_http_client_perform 0
[2022-11-13 19:08:24.614] I/user.notify pushed sms notify 200 table: 3FCAD250 {"code":200,"message":"success","timestamp":1668337705} 10681982580146303
[2022-11-13 19:08:24.614] I/user.notify len,offset2 -13 80