当前自动售货机由于机械结构复杂、易出故障、分布广泛且易缺货等自身缺点制约着整个行业的发展,结合自动售货机和GSM的自身特点,设计了基于GSM短消息的自动售货机监控终端,并给出了系统的架构及运行原理;针对消息内容PDU代码串的编码和解码的应用开发难点,给出了技术性的说明和相关算法,最后给出了用AT指令控制下的短信收发流程及相关算法代码,通过该系统,运营商能及时地了解自动售货机当前的运行状态和存货状态。
The shortcomings of vending machine, such as mechanical structure complex and easy to fault, widely distributed and easy to out-of-stock and so on, restrict the development of the industry nowadays. According to the characteristic of vending machine and GSM network, a monitoring terminal based on GSM short message in vending machine is designed, and the system's structure and of principle of operation is also given. As how to encode the message in PUD mode and decode the message from PUD are the difficulties in SMS terminal developing, solutions and algorithms are given to SOLVE them. At last the process of sending and receiving short message under the control of AT command and the related algorithm code are given. According this system, the operators can know vending machine current running status and the goods in stock condition in time.