为了满足在一些场所的溢水监测需求,利用GSM网络的短信业务实现水浸报警并采用一种算术平均值滤波的软件数字滤波方法抑制电磁干扰。硬件设计中,系统以MSP430单片机为控制器核心,以TC35模块为短信无线收发器,并与水浸检测模块构成了系统的硬件平台。软件设计中,单片机通过UART串口向TC35模块配置AT指令来控制短信的接收与发送,采集水浸检测模块的电压值并存储到单片机寄存器中作为触发报警的条件。实现了短信方式的水浸报警,控制系统的水浸灵敏度调节,添加或删除用户手机号码,以及自定义报警提示内容。系统满足了溢水情况的短信报警需求,具有控制灵活、远程报警的特点。
In order to meet requirements of flood alarm in some occasions,the short messaging service(SMS) of GSM is adopted to implement the flooding alarm.A method of digital filtering with software,filtering of arithmetic mean value,is also adopted to restrain electromagnetic interference.In design of hardware,MSP430 is taken as the core for MCU module,TC35 module as the wireless transceiver of short messages,and then the hardware platform is formed with the flooding monitoring module and the two modules mentioned above.In design of software,short messages are controlled by AT instruction from MCU's UART to TC35 module.As a condition of alarm,some values of voltage are collected and stored in MCU's memories.By the way of short message,the flood alarm,the sensitivity control of flooding,adding or removing user's phone number and definition of short message are achieved.The system meets the requirements of flood alarm by short message,and has features of flexible control and long-distance alarm as well.