为了加强对终端进行集中专业的管理及保证数据通信的可靠性,提出并实现了智能车载终端与中国移动M2M平台的通信方法,完成了终端与监控中心通过M2M平台透传数据功能及终端支持M2M平台管理功能.根据终端需求,硬件上采用STM32作为终端微控制器,SIM900A作为GPRS通讯模块;软件上区别于直接与监控中心通信,终端要与M2M平台的口进行连接,实现与M2M平台GPRS数据收发,在此基础上与M2M平台通过WMMP报文数据交互实现通信功能.采用上述方式时,终端与M2M平台信息交互较频繁、信息量较大,因此采用阻塞与非阻塞结合方式进行处理,以减少对终端其他功能执行速度的影响.经测试,终端能够实现所要求的功能,且稳定性好、工作效率高.
In order to strengthen centralized and professional management of the terminal and ensure the reliability of the data communication, a communication method of intelligent vehicle terminal with China Mobile M2M platform is proposed and implemented. The function of communication be tween the terminal and the monitoring center by China Mobile M2M platform is achieved. And the terminal supports the management function by the M2M platform. According to the requirements of the terminal, STM32 is used as the microcontroller and SIM900A is used as GPRS communication module on the hardware. On the software, being different from directly communicating with the mo nitoring center, the terminal connects with the 2M platform IP and sends GPRS data to the M2M platform and receives that from the M2M platform. On this basis, the terminal realizes the communi cation with the M2M platform through the WMMP packet data exchange. Using the above method, the terminal exchanges information with the M2M platform more frequently and information is large. In order to reduce the effect of execution speed of other functions, the method of combination of blocking and nonblocking is processed. After the test, the terminal achieves the required functions with stability and high efficiency.