| Data usually are stored on the local storage of limited space by traditional low-reliable data acquisition system and video monitoring system, so there are potential accidents such as data loss, man-made damage, hardware failures, which are urgent to be solved. Cloud storage can be taken advantage of to solve the problems effectively, with the strength of high-reliable, high-performance, space-extensible and configurable.In this paper an embedded acquisition and monitoring system based on cloud storage is designed and implemented and the collected data and image are uploaded to the cloud storage system to save them, thus guaranteeing the security of the data. This paper chiefly completed the following work:design the electric circuit between DS18B20digital temperature sensor and the MINI2440development board, and develop the character device driver for DS18B20under Linux operating system; use V4L2to capture images through the USB camera of MINI2440development board; a basic research on the common moving target detection algorithms is done and the background difference method is realised with openCV; register as a baidu developer and create an application and apply for permission to use the PCS API; transplant libcurl, openssl and zlib to the development board, and then use C language and libcurl encapsulate the baidu PCS API; carry through the uploading time and speed test; use the multithreading technology to integrate the modules of data acquisition and video capture with the API based on libcurl for the baidu PCS and upload the collected data to the baidu cloud storage system.Test shows that this system is workable. And it can be an important supplementary function for the traditional data acquisition and video monitoring system. |