In recent years,the smart care industry has become more and more popular,and the smart home care has become a hot topic of public concern,among which the most important is how to provide all kinds of high-quality services for the home elderly.Based on the existing smart pension cloud platform system,this thesis draws on the current mature life service provision and security monitoring platform,and puts forward the design and implementation of a service management module suitable for the smart pension cloud platform.This thesis synchronizes the service status of each client inside and between each other,so as to realize the life service process and out-of-office monitoring process of multiple clients,and use the crossplatform framework Flutter to develop the client,reduce the development and maintenance cost,and improve the performance and improve the user experience with Flutter.For the acquired location data,the offline compression algorithm is optimized by threshold adjustment and key point screening mechanism.The main work of this thesis is as follows:1.The process of home care and the monitoring process are designed,and a new mechanism for collecting location data is proposed.In order to improve the use experience,this thesis designs a complete set of life service provision process to provide different requirements for different groups,and realize the synchronization of the service status within each client.In order to ensure the safety of users,this thesis designs a set of external location monitoring process,which can display the real-time or historical location information of users,and introduce dynamic real-time location acquisition mechanism,change the acquisition time interval according to the different movement state of users,and save the electronic fence.2.Develop clients using the cross-platform framework Flutter.Flutter Development efficiency is high,the performance is also better,for the Android end and iOS end can basically achieve one-time development,in the two ends of the page effect is basically no difference.With the rich external library environment of Flutter,convenient development is realized.At the same time,Baidu Map Flutter Plug-in Library is introduced to further develop on the basis of map components to achieve relevant display effects.In addition,with the help of Provider components and Websocket external library,the client realizes internal and mutual state synchronization,and improves the user experience.3.In order to alleviate the storage pressure of trajectory data on the smart pension cloud platform,this thesis proposes an adaptive threshold TD-TR algorithm based on the first feature point,based on TD-TR algorithm,and further optimizes and improves it.In order to eliminate the artificial participation in the process of threshold selection,the algorithm uses the idea of adaptive threshold,and in order to reduce the running time in the process of adaptive selection,introduces the method of adjusting the threshold with multiple coefficients to achieve the purpose of quickly locating to the final threshold,and realizes the initial selection of the threshold through the general relationship between the relative threshold and the spatial similarity in the process of track compression,further reducing the number of iterations.In the way of retaining the key points,the method of retaining the first feature point is adopted to reduce the time complexity of a single compression.The results show that the proposed optimization algorithm achieves the automatic selection of the compression threshold and greatly reduces the running time.Overall,it alleviates the pressure of smart pension cloud platform on track data storage. |