Coder Social home page Coder Social logo

sms_forwarder_air780_esp32's Introduction

Air780E短信转发

利用ESP32驱动Air780E实现短信转发,兼容合宙ESP32S3和ESP32C3。

⚠ 仅支持联通、移动网络,不支持电信网络 ⚠

功能

  • 自动转发收到的短信,短信内容支持多种语言(其实就是ASCII和UCS-2字符集),目前已测试过英文、中文、日语、俄语字符
  • 支持多个推送平台,目前接入:

使用方法

硬件组装

  • 短接POW键上方的焊盘实现通电即开机

  • 按照下图方向为Air780e和ESP32焊上排针和排座。注意合宙不送排座,需要自己买。
Air780E ESP32S3
  • 按图示方向插入SIM卡

  • 按图示方向将Air780E和ESP32组合

修改脚本,刷入ESP32

  • 修改config.lua
    • 修改config.board_type为正确的型号,可选值见注释
    • 修改config.wifi,填入无线网络的SSID和密码
    • 修改config.notification_channel,将要启用的通知通道的enabled配置置为true,并填写推送平台相关配置
  • 烧录脚本
    • firmware目录中对应的固件烧入开发板
    • 将所有lua脚本下载至开发板
    • 将开发板上电开机,等待初始化完成后,即可转发短信到配置的通知通道

LED灯状态含义

  • ESP32
    • C3的D4或S3的LED A为初始化状态灯,闪烁代表正在初始化,常亮代表初始化完成,准备转发短信
    • C3的D5或S3的LED B为工作状态灯,平时长灭,收到新短信后高频闪烁,转发完成后熄灭
ESP32C3 ESP32S3
  • Air780
    • POW灯为电源指示灯,通电后常亮。注意,这个LED不代表开机状态,只要板子有电这个灯就会亮
    • NET灯为网络状态指示灯,长亮短灭代表正在初始化蜂窝网络,短亮长灭代表网络注册成功,可以接收短信

Firmware目录下的文件说明

  • LuatOS-SoC_V1004_ESP32C3_classic.soc对应ESP32C3 经典款
  • LuatOS-SoC_V1004_ESP32C3_lite.soc对应ESP32C3 简约款
  • LuatOS-SoC_V1004_ESP32S3.soc对应ESP32S3

固件均通过合宙云编译精简掉了不需要的功能,以保证内存空间充足。LuaTools自动下载的固件不能用,系统启动之后内存就不够用了,发不出去HTTP请求。

目前固件包含gpiouartpwmwdtcryptortcnetworksntptlswlanpmcjsonntpshelldbg

致谢

本项目参考低成本短信转发器而来,尤其是PDU相关代码,没有chenxuuu的这份项目和50元内自制短信转发器(Air780E+ESP32C3)这篇文章,我不会这么快就完成开发。

赞助

支付宝 微信 Bitcoin
3H8yBE359vkbpvC4nSP5xwafWThUh4JvGB

sms_forwarder_air780_esp32's People

Contributors

boris1993 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.