| Agricultural machinery is a crucial part of agricultural production,and rational use and optimization of farm machinery can improve agricultural production efficiency and increase crop yields.Agricultural machinery operations are concentrated in time and take place in harsh working conditions,and there is a high requirement for timely maintenance.Currently,there are few professional farm machinery maintenance workers,and the process of detecting faults from the maintenance station to the location of the faulty farm machinery,returning to the maintenance station to retrieve replacement components is time-consuming and labor-intensive.To address this problem,this article designs a vehicle-mounted terminal and remote monitoring system based on the Internet of Things,which can collect and process agricultural machinery operating data from the OBD port of the farm machinery,obtain the location information of the farm machinery using a positioning chip,save this information to the cloud through the Internet of Things and database technology,and enable real-time viewing through the web and mobile terminals.The research content includes:Through the study of relevant protocols,current situation,and functional requirements,the STM32F103 ZE was selected as the main control chip,the TJA1050 chip was selected as the CAN transceiver,the communication chip was selected as the SIM800 C,and the satellite positioning chip was selected as the S1216F8.The selection of chips fully considered the development difficulty,hardware cost,and functionality.Based on the chip’s user manual and other related information,the hardware design scheme was determined,and the circuit design of the main control chip,communication chip,satellite positioning chip’s power supply,voltage stabilization,serial communication,and reset circuits were completed,and the circuit board was developed.The lower machine hardware production was completed,and the network performance of the lower machine was verified using the Peanut Shell domain name tool.The lower machine software program was developed,and the lower machine program code based on C language was written,including the main function part,positioning program,CAN communication,and network part.The program realizes the reception and transmission of vehicle running data,obtains satellite positioning information,and uploads data to the cloud server through the GPRS chip.The effective data was filtered and verified through protocol analysis to reduce traffic usage and ensure data accuracy and reliability.The design of the single-chip system was completed in the Keil u Vision5 environment and was simulated and debugged using ST-Link.The My SQL database was developed using the IDEA environment and Java language running on a Linux system server to manage farm machinery operating data.With regard to the required functionality and data volume,My SQL has significant advantages over SQL Server and Access.The server-side program mainly includes data reception,communication,and parameter transfer.The program for the Web end under the VUE2.0 framework was developed in the VS Code environment,which provides management and information for various users.Farm machinery users can monitor and view map data through the Web end,and farm machinery company users can manage agricultural technology stations and user information.Agricultural technology stations can manage farm machinery information in their area.An Android-based mobile APP was developed in the IDEA environment to achieve mobile access and viewing of farm machinery information.Meanwhile,an automatic statistics algorithm for the work area based on satellite positioning technology and the convex hull contour of the planar coordinate point set was designed,and the program on the server-side realized the automatic statistics of the work area.This design underwent experimental testing using tractors and harvesters to validate the performance of the lower-level hardware,software,server,and web components,as well as to test the accuracy of data transmission and reception.According to feedback from the experimental data,each component’s performance met the design requirements.The measurement accuracy of the area statistics algorithm is 97% in the area with good GPS signal.The overall functionality was reliable.The design is capable of automatically obtaining various types of information on agricultural machinery,improving their efficiency and safety,enabling remote positioning,data collection,and automatic calculation of work area,facilitating use for users and agricultural machinery repair personnel,and forming a large amount of agricultural data that can be used as a reference for subsequent optimization and government subsidies for agricultural machinery. |