CN112104501A - Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment - Google Patents

Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment Download PDF

Info

Publication number
CN112104501A
CN112104501A CN202010972061.XA CN202010972061A CN112104501A CN 112104501 A CN112104501 A CN 112104501A CN 202010972061 A CN202010972061 A CN 202010972061A CN 112104501 A CN112104501 A CN 112104501A
Authority
CN
China
Prior art keywords
software
internet
upgrading
agricultural machinery
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010972061.XA
Other languages
Chinese (zh)
Inventor
孙瑞瑞
孔志刚
郝凤琦
程广河
李娟�
尹亚南
孟庆龙
韩路跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Computer Science Center National Super Computing Center in Jinan
Original Assignee
Shandong Computer Science Center National Super Computing Center in Jinan
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Computer Science Center National Super Computing Center in Jinan filed Critical Shandong Computer Science Center National Super Computing Center in Jinan
Priority to CN202010972061.XA priority Critical patent/CN112104501A/en
Publication of CN112104501A publication Critical patent/CN112104501A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/05Agriculture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0826Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes

Abstract

A method for remotely upgrading software of terminal equipment of an agricultural machinery subsoiling Internet of things comprises the following steps: server and agricultural machinery thing networking terminal, the server is the HTTP server, agricultural machinery thing networking terminal is the terminal that uploads data through the GPRS module, wherein loading program includes in the agricultural machinery thing networking terminal: BootLoader terminal bootstrap program and app application program; the latest version of the app application program is placed in the HTTP server, and an upgraded version detection function module is added in the app application program; the version detection function module is used for judging whether the executed app program needs to be backed up or not by comparing the new version number with the old version number, and if the backup is needed, the upgraded software and the version number are backed up simultaneously. According to the invention, through optimization of hardware and software, a conventional HTTP server is continuously used, so that a new server is not required to be built again when the software is remotely upgraded, and development and maintenance costs are reduced.

Description

Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
Technical Field
The invention relates to the fields of agricultural data acquisition, agricultural machine monitoring, industrial embedded equipment and the like, in particular to a method for remotely upgrading software of agricultural machine deep scarification Internet of things terminal equipment.
Background
With the rapid development of the internet of things, the relevance and adaptation between a terminal unit in the internet of things and a network are referred to as the direction concerned by technicians in the field, and whether an operation terminal can be upgraded in time directly affects the scale limitation, the function limitation and the intercommunication limitation of the internet of things. The situation is more prominent in the field of agricultural machinery internet, and agricultural machinery internet terminals are mostly installed on specific agricultural machinery, and operating personnel of agricultural machinery are not necessarily familiar with debugging or maintenance of agricultural machinery internet terminal equipment, so that once the situation that agricultural machinery interconnection or agricultural machinery monitoring fails due to the problem of terminal upgrading occurs, the application of the agricultural machinery internet of things is inevitably influenced. In addition, because the distribution of agricultural machinery internet of things terminal equipment is wide, it is not practical to simply rely on professional technicians to conduct field guidance or debugging to conduct software upgrading.
In conclusion, how to find a method for upgrading terminal software of the agricultural machinery internet of things is a key point of continuous research of technical personnel in the field, and the technical idea has higher requirements on upgrading efficiency, accuracy and integrity.
For example: chinese patent document CN102163157A provides a non-intelligent terminal upgrading method, a non-intelligent terminal and an application server, where the non-intelligent terminal upgrading method includes: sending upgrading request information containing the software version number to an application server; receiving a software upgrading package sent by an application server according to a software version number, wherein the software upgrading package comprises upgrading calling interface address mapping information generated according to a calling interface address mapping table corresponding to the software version number; and storing the software upgrading package in a storage unit so that the operating system calls the software upgrading package. Although the non-intelligent terminal comprises an upgrade request module, a software receiving module and a storage indication module, if the non-intelligent terminal is applied to the agricultural machinery internet of things terminal, the terminal cannot request the upgrade information from the application server because the latest software version information is not contained in the terminal.
Chinese patent document CN104850422A discloses a method for remotely updating a terminal device program, which includes first obtaining a version to be updated of a terminal device from a data server through a communication server, then feeding back current version information by the terminal device and generating a confirmation version information, and finally confirming an updated program version according to the information, then sending data of the program version to the terminal device, and the terminal device receiving and rewriting the program to complete a process of remotely updating the terminal device program. According to the scheme, the versions are not confused by generating a plurality of pieces of confirmation information and judging, but two servers are required to communicate with the terminal, and if the scheme is applied to the agricultural machinery Internet of things terminal, the flow consumption is high due to the fact that an interaction protocol is complex.
Chinese patent document CN110647337A provides an internet of things MCU air firmware upgrading method, which includes the following steps: providing an Internet of things MCU (microprogrammed control unit) air firmware upgrading system, wherein the Internet of things MCU air firmware upgrading system comprises a cloud control platform and a plurality of equipment groups, and each equipment group comprises a plurality of Internet of things terminals which are of the same type, provided with MCUs and in communication connection with the cloud control platform; the cloud control platform is additionally provided with the upgrading requirement of the Internet of things MCU firmware; the terminal of the Internet of things uploads the current MCU firmware version to the cloud control platform after being awakened; the cloud control platform selects one or two Internet of things terminals for upgrading verification; after judging whether each Internet of things terminal needs to be upgraded or not, the cloud control platform sends a corresponding MCU firmware upgrade address to the Internet of things terminal needing to be upgraded for batch upgrade; and the Internet of things terminal downloads the MCU firmware, then upgrades the MCU firmware and reports the result to the cloud control platform. Compared with the related technology, the method for upgrading the Internet of things MCU aerial firmware can reduce enterprise recall cost. According to the scheme, the MCU adopts the cloud platform to send the upgrading instruction, so that the method is suitable for the online condition of the terminals of the Internet of things in batches, and if the method is applied to the terminals of the Internet of things of agricultural machines, the terminals of the Internet of things of agricultural machines are in a dispersed and offline state, so that the terminals of the Internet of things miss the upgrading condition.
In addition, the technical field can solve the problem that the equipment realizes remote software upgrading through a wireless transport technology in the operation process by utilizing the OTA technology. In the existing GPRS terminal equipment market, particularly in the Internet of things equipment market of industry and agriculture, the OTA function has the defects of low practicability, low flexibility, no support of breakpoint continuous transmission, high failure rate, complex interaction protocol, high flow consumption, incapability of ensuring data integrity and the like.
Disclosure of Invention
Aiming at the defects of the prior art, the invention discloses a method for remotely upgrading software of terminal equipment of an agricultural machinery subsoiling Internet of things.
The detailed technical scheme of the invention is as follows:
a method for remotely upgrading software of agricultural machinery subsoiling Internet of things terminal equipment is disclosed, wherein the method comprises an OTA system, and is characterized in that the OTA system comprises: the agricultural machine Internet of things terminal is a terminal for uploading data through a GPRS module, and the GPRS module adopts a network transparent transmission mode and requests the data to the HTTP server through a serial port simulation HTTP protocol frame format; wherein the loading program in the agricultural machinery thing networking terminal includes: BootLoader terminal bootstrap program and app application program; the BootLoader terminal bootstrap program is a main program part for realizing remote upgrading; the app application program is a software part which is actually required to be remotely upgraded by a user, the latest version of the app application program is placed in the HTTP server, and an upgraded version detection function module is added in the app application program; the version detection function module is used for judging whether the executed app program needs to be backed up or not by comparing the new version number with the old version number, and if the backup is needed, the upgraded software and the version number are backed up simultaneously. Preferably, the GPRS module is preferably a domestic "manned" GPRS module, and it is noted that: the GPRS module only supports FTP remote upgrading and does not support HTTP remote upgrading.
By designing the firmware, the invention has the advantages that the OTA adopted for upgrading the Internet of things software in the technical field realizes online upgrading through the network or the GPRS, and the whole transmission technical scheme is hidden even if the upgrading software data is sent in an http mode, so that technicians in the field cannot upgrade and manage the agricultural Internet of things terminal software by adopting the content of the prior art, and the technical inspiration for improving and upgrading a domestic control terminal for reference is absent.
According to the invention, a software version management interaction platform is preferably also loaded in the HTTP server of the OTA system and is used for maintaining the app application program. The software version management interaction platform can limit password access to only software maintainers and administrators.
According to the preferable selection of the invention, the specific method for remotely upgrading the software of the agricultural machinery subsoiling Internet of things terminal device comprises the following steps:
after the agricultural machinery internet of things terminal is powered on, configuring the domain name and the port number of a GPRS module as the domain name and the port number of a remotely-upgraded HTTP server;
sending a version request frame to an HTTP server, and returning the latest version number to the agricultural machinery Internet of things terminal by the HTTP server according to the request instruction;
the agricultural machinery internet of things terminal compares the latest version number with a locally stored version number: if the version numbers are the same, upgrading is not needed; if the version numbers are different, upgrading is needed;
when upgrading is needed, the agricultural machinery Internet of things terminal sends an upgrading data request frame to the HTTP server, and the HTTP server packs corresponding data according to the initial position and the number of bytes of the request data and replies the packed data to the agricultural machinery Internet of things terminal;
the agricultural machinery Internet of things terminal checks after receiving the data: if the data verification of the current packet fails, reapplying the packet data until the verification is successful; and continuing to request the next data packet until the terminal requests all the upgrading data.
According to the invention, preferably, in the process of software remote upgrade, if the software upgrade fails due to bad signals, the processing is carried out according to the preset threshold value of failure times: and if the failure times exceed the failure time threshold, giving up upgrading of the agricultural machinery Internet of things terminal, and directly jumping to the standby app for execution. As shown in fig. 1.
According to the preferable selection of the invention, the method for remotely upgrading the software of the agricultural machinery subsoiling Internet of things terminal equipment further comprises the following steps:
in the process of software remote upgrading, the serial port interacts with the GPRS module at a default baud rate: and if the information interaction is not successful, sequentially changing the baud rate to communicate with the GPRS module until the serial port can normally communicate with the GPRS module. Preferably, in order to reduce the adaptation time, the commonly used baud rates (e.g., 115200, 9600, etc.) may be preferentially placed in the front alignment; if the communication is carried out, the upgrading can be continued at the baud rate of the communication.
The technical advantages of the invention include:
(1) according to the invention, through optimization of hardware and software, a conventional HTTP server is continuously used, so that a new server is not required to be built again when the software is remotely upgraded, and development and maintenance costs are reduced.
(2) The invention improves the domestic GPRS module in the prior art, so that even if the GPRS module does not support HTTP remote upgrade, the network transparent transmission mode of the GPRS module can be adopted after improvement, and data can be requested to a server by simulating the frame format of the HTTP protocol through a serial port.
The invention can realize the integration and upgrade of the existing domestic device (especially the internet of things terminal with a domestic GPRS module) to meet the requirement of software upgrade, and the improved scheme is as follows: adding a new software upgrading interface in a software management window of a software product management platform, and providing the authority for logging in, uploading and maintaining an app application program. Secondly, customizing a special BootLoader, wherein the customized content mainly comprises the following steps: and planning a storage area according to the FLASH resources of the CPU, customizing a proprietary upgrade domain name according to the type of the newly added upgrade software, and customizing the domain name and the port of the application server according to the actual app application requirement. And thirdly, adding a version detection function package at the app application program end, and correspondingly changing the operation starting address of the program.
(3) In order to improve the flexibility of the server side software version management, the invention adds a software management window on the product management platform, so that operation and maintenance personnel can upload the latest software upgrade version in time without requesting at a request side.
(4) In order to reduce flow consumption, whether software upgrading is needed or not can be checked only by actively requesting version information by the agricultural machinery Internet of things terminal in the early stage, the protocol is simple, and the version checking work is more efficient.
(5) In order to improve the accuracy and the high efficiency of remote upgrading work, the invention designs a breakpoint continuous transmission function, when the upgrading data is larger, the upgrading data is divided into a plurality of small packets for data request, so that the situation that the whole upgrading data needs to be requested again due to data loss caused by poor signals or long connection is avoided; the function of breakpoint resume is such that: even if the data request of the packet fails, the previously requested packet data is not lost, and only the failed packet data is repeatedly requested.
(6) In order to improve the integrity of data, the invention adds data verification to each packet of data continuously transmitted at the breakpoint so as to ensure the integrity of each packet of data and improve the success rate of the whole upgrade.
(7) The invention aims to enhance the applicability of the practical application of remote upgrading and increase an upgrading fault-tolerant mechanism. The fault tolerance mechanism comprises: if the server cannot be connected due to poor signals in the upgrading process, if repeated connection threshold times are unsuccessful, the server is considered to be failed in upgrading, and the server jumps to the standby version to operate, so that the crash condition caused by unsuccessful upgrading can be avoided. Secondly, the serial port is configured by 115200 baud rate as a default during upgrading, but if the GPRS baud rate is modified in an application program, the serial port cannot be upgraded normally, and a fault-tolerant mechanism of self-adaptive baud rate is designed to solve the problem. The self-adaptive baud rate means that the serial port interacts with the GPRS module at a default baud rate in the upgrading process, if the serial port does not interact with the GPRS module, the baud rate is sequentially changed to communicate with the GPRS module until the serial port can normally communicate with the GPRS module, wherein in order to reduce self-adaptive time, the common baud rates (such as 115200, 9600 and the like) can be preferentially compared in front; if the communication is carried out, the upgrading can be continued at the baud rate of the communication. Before remote upgrading, whether the version number of the server is the same as that of the locally stored version number needs to be detected, upgrading is carried out only if the version numbers are different, and upgrading is not needed if the version numbers are the same. The version number cannot be stored to the local when the upgrade fails, the version number cannot be stored until the upgrade succeeds, otherwise, the version number cannot be upgraded again due to the same version. The solution of the invention is: and storing the updated new version into the standby area at the BootLoader, detecting whether the version is changed in the application program after the update is successful and the jump is successful to the application program, and changing the running version number if the version is changed. And fourthly, in order to adapt to the server domain name and the port required by the application program, the domain name and the port are configured for GPRS before jumping from the BootLoader terminal bootstrap program to the app application program, the domain name and the port are suitable for the domain name and the port actually used in the app application program, and a user can customize the special BootLoader terminal bootstrap program according to different product requirements.
(8) In order to meet the actual application requirements, the invention also adds the parameter configuration function of the GPRS module, and has the technical advantages that when the factory default configuration of the GPRS module does not conform to the configuration required by remote upgrade, or when the configuration of the GPRS module is changed by an app application program due to service needs, the upgrade fails due to the mismatch between the GPRS configuration and the remote upgrade configuration, and the added parameter configuration function can automatically update the GPRS configuration parameters.
Drawings
FIG. 1 is a software remote upgrade workflow diagram of the present invention;
FIG. 2 is a flowchart of the boot program of the BootLoader terminal in the present invention;
FIG. 3 is a flowchart of the version detection backup operation of the app application in the present invention;
FIG. 4 is a pictorial view of a subsoiling monitoring terminal, as embodied in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a software product management platform interface in accordance with the present invention;
FIG. 6 is a diagram of a modify software information dialog of the present invention.
Detailed Description
The invention is described in detail below with reference to the following examples and the accompanying drawings of the specification, but is not limited thereto.
Examples of the following,
A method for remotely upgrading software of agricultural machinery subsoiling Internet of things terminal equipment is realized, wherein the method comprises an OTA system, and the OTA system comprises: the agricultural machine Internet of things terminal is a terminal for uploading data through a GPRS module, and the GPRS module adopts a network transparent transmission mode and requests the data to the HTTP server through a serial port simulation HTTP protocol frame format; wherein the loading program in the agricultural machinery thing networking terminal includes: BootLoader terminal bootstrap program and app application program; the BootLoader terminal bootstrap program is a main program part for realizing remote upgrading; the app application program is a software part which is actually required to be remotely upgraded by a user, the latest version of the app application program is placed in the HTTP server, and an upgraded version detection function module is added in the app application program; the version detection function module is used for judging whether the executed app program needs to be backed up or not by comparing the new version number with the old version number, and if the backup is needed, the upgraded software and the version number are backed up simultaneously. Preferably, the GPRS module is preferably a domestic "manned" GPRS module, and it is noted that: the GPRS module only supports FTP remote upgrading and does not support HTTP remote upgrading.
And a software version management interaction platform is also mounted in the HTTP server of the OTA system and used for maintaining the app application program. The software version management interaction platform can limit password access to only software maintainers and administrators.
The specific method for remotely upgrading the software of the agricultural machinery subsoiling Internet of things terminal device comprises the following steps:
after the agricultural machinery internet of things terminal is powered on, configuring the domain name and the port number of a GPRS module as the domain name and the port number of a remotely-upgraded HTTP server;
sending a version request frame to an HTTP server, and returning the latest version number to the agricultural machinery Internet of things terminal by the HTTP server according to the request instruction;
the agricultural machinery internet of things terminal compares the latest version number with a locally stored version number: if the version numbers are the same, upgrading is not needed; if the version numbers are different, upgrading is needed;
when upgrading is needed, the agricultural machinery Internet of things terminal sends an upgrading data request frame to the HTTP server, and the HTTP server packs corresponding data according to the initial position and the number of bytes of the request data and replies the packed data to the agricultural machinery Internet of things terminal;
the agricultural machinery Internet of things terminal checks after receiving the data: if the data verification of the current packet fails, reapplying the packet data until the verification is successful; and continuing to request the next data packet until the terminal requests all the upgrading data.
According to the invention, preferably, in the process of software remote upgrade, if the software upgrade fails due to bad signals, the processing is carried out according to the preset threshold value of failure times: and if the failure times exceed the failure time threshold, giving up upgrading of the agricultural machinery Internet of things terminal, and directly jumping to the standby app for execution. As shown in fig. 1.
The method for remotely upgrading the software of the agricultural machinery deep scarification Internet of things terminal equipment further comprises the following steps:
in the process of software remote upgrading, the serial port interacts with the GPRS module at a default baud rate: and if the information interaction is not successful, sequentially changing the baud rate to communicate with the GPRS module until the serial port can normally communicate with the GPRS module. Preferably, in order to reduce the adaptation time, the commonly used baud rates (e.g., 115200, 9600, etc.) may be preferentially placed in the front alignment; if the communication is carried out, the upgrading can be continued at the baud rate of the communication.
Application examples 1,
The embodiment of the method for remotely upgrading the software of the agricultural machinery subsoiling internet of things terminal device is described, wherein the agricultural machinery subsoiling internet of things terminal device is the subsoiling monitoring terminal shown in fig. 4.
The flash parameters of the agricultural machinery Internet of things terminal are defined as follows:
bootloader (terminal boot loader), APP1 (executing application), APP2 (standby application), APP1_ Version (currently executing program Version number), APP2_ Version (latest Version number saved at the time of upgrade), APP1_ Len (APP1 program length), APP2_ Len (APP2 program length), FailedTimes (number of upgrade failures).
The working flow of the BootLoader terminal bootstrap program is shown in fig. 2, the BootLoader terminal bootstrap program is executed first after the agricultural machinery internet of things terminal is powered on, and the specific execution steps are as follows:
1) initializing a serial port, communicating with a GPRS module, and configuring the GPRS module into relevant configurations required by upgrading, such as an HTTP domain name and a port number;
2) connecting an HTTP server to download the latest version number, and recording the latest version number as V _ HTTP; if the connection with the server fails, the number of failed times of upgrading is increased by 1, when the failed times is 3, the upgrading failure is judged, the GPRS configuration is changed into a server address required by an APP application program, meanwhile, the spare area APP2 program is assigned to the APP1, and finally, the execution is carried out by jumping to the APP 1;
3) reading a local current Version number, and recording the local current Version number as APP1_ Version;
4) comparing whether the V _ http is the same as the APP1_ Version;
5) if the versions are the same, upgrading is not needed, GPRS configuration is changed into a server address required by an APP application program, and the APP1 is skipped to execute;
6) if the versions are different, starting upgrading;
7) connecting an HTTP server to download a new version of app program, wherein data downloading is completed by adopting breakpoint continuous transmission and data verification: if the connection with the server fails, the number of failed times of upgrading is increased by 1, when the failed times is 3, the upgrading failure is judged, the GPRS configuration is changed into a server address required by an APP application program, meanwhile, the spare area APP2 program is assigned to the APP1, and finally, the execution is carried out by jumping to the APP 1;
8) after downloading the APP program, writing a new APP program into an APP1 area, writing a new Version number into an APP2_ Version area, and writing a new program length into an APP1_ Len area.
9) After the new program, the new version number and the program length are backed up, the GPRS module is configured and changed into a server address required by the APP application program, the APP1 is skipped to execute, and whether skipping is successful needs to be judged under the condition that skipping fails;
10) if the skip is successful, the upgrade is successful;
11) if the jump fails, the number of upgrade failure times FailedTimes is increased by 1, when the FailedTimes is 3, the upgrade failure is judged, the GPRS module configuration is changed into the server address required by the APP application program, meanwhile, the spare area APP2 program is assigned to the APP1, and finally, the jump is executed to the APP 1.
Application examples 2,
As shown in fig. 3, the working steps of the application-side version detection backup function are as follows:
1) reading an APP1_ Version number and an APP2_ Version number from the flash;
2) comparing whether the two version numbers are the same;
3) if the two are the same, ending;
4) if not, backup version number: the process ends with APP1 being given to APP2, APP2_ Version being given to APP1_ Version, APP1_ Len being given to APP2_ Len.
Application examples 3,
As shown in fig. 5, the method for executing software management by using a software product management window, the displayed information content includes:
newly adding software: the user can increase the software type according to the actual product type, and the user is a system administrator or a software maintenance person;
wherein, appid: the appid of each product is a unique identification code;
name: the software name can be self-defined;
version: the software is automatically generated when being newly added, the software is automatically added from 1, the software cannot be changed when the software is automatically added by 1 when one version is updated, and the version downloaded by remote upgrade is the value of the version number.
Version number: where the software maintainer customizes the format and content.
Updating time: the upload time of the latest version is displayed.
Version description: the software maintainer uploads a detailed description of the version.
Downloading (): the number of times the version was downloaded is shown in brackets and clicking on the button can download the software locally.
Updating: click on the pop-up modification software dialog box as shown in fig. 6.
And (3) deleting: the software product is deleted and can only be deleted by the administrator.
Logging: all change records of the product software are recorded.

Claims (5)

1. A method for remotely upgrading software of agricultural machinery subsoiling Internet of things terminal equipment is disclosed, wherein the method comprises an OTA system, and is characterized in that the OTA system comprises: the agricultural machine Internet of things terminal is a terminal for uploading data through a GPRS module, and the GPRS module adopts a network transparent transmission mode and requests the data to the HTTP server through a serial port simulation HTTP protocol frame format; wherein the loading program in the agricultural machinery thing networking terminal includes: BootLoader terminal bootstrap program and app application program; the BootLoader terminal bootstrap program is a main program part for realizing remote upgrading; the app application program is a software part which is actually required to be remotely upgraded by a user, the latest version of the app application program is placed in the HTTP server, and an upgraded version detection function module is added in the app application program; the version detection function module is used for judging whether the executed app program needs to be backed up or not by comparing the new version number with the old version number, and if the backup is needed, the upgraded software and the version number are backed up simultaneously.
2. The method for remotely upgrading software of the agricultural machinery subsoiling Internet of things terminal device according to claim 1, characterized in that a software version management interaction platform is further installed in an HTTP server of the OTA system and used for maintaining an app application program.
3. The method for remotely upgrading the software of the agricultural deep scarification internet-of-things terminal device according to claim 1 or 2, wherein the specific method for remotely upgrading the software of the agricultural deep scarification internet-of-things terminal device comprises the following steps:
after the agricultural machinery internet of things terminal is powered on, configuring the domain name and the port number of a GPRS module as the domain name and the port number of a remotely-upgraded HTTP server;
sending a version request frame to an HTTP server, and returning the latest version number to the agricultural machinery Internet of things terminal by the HTTP server according to the request instruction;
the agricultural machinery internet of things terminal compares the latest version number with a locally stored version number: if the version numbers are the same, upgrading is not needed; if the version numbers are different, upgrading is needed;
when upgrading is needed, the agricultural machinery Internet of things terminal sends an upgrading data request frame to the HTTP server, and the HTTP server packs corresponding data according to the initial position and the number of bytes of the request data and replies the packed data to the agricultural machinery Internet of things terminal;
the agricultural machinery Internet of things terminal checks after receiving the data: if the data verification of the current packet fails, reapplying the packet data until the verification is successful; and continuing to request the next data packet until the terminal requests all the upgrading data.
4. The method for remotely upgrading the software of the agricultural machinery subsoiling Internet of things terminal device according to claim 1, characterized in that in the process of remotely upgrading the software, if the software fails to be upgraded due to bad signals, the software is processed according to a preset threshold value of failure times: and if the failure times exceed the failure time threshold, giving up upgrading of the agricultural machinery Internet of things terminal, and directly jumping to the standby app for execution.
5. The method for remotely upgrading the software of the agricultural subsoiling internet of things terminal device according to claim 1, wherein the method for remotely upgrading the software of the agricultural subsoiling internet of things terminal device further comprises adaptive baud rate:
in the process of software remote upgrading, the serial port interacts with the GPRS module at a default baud rate: and if the information interaction is not successful, sequentially changing the baud rate to communicate with the GPRS module until the serial port can normally communicate with the GPRS module.
CN202010972061.XA 2020-09-16 2020-09-16 Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment Pending CN112104501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010972061.XA CN112104501A (en) 2020-09-16 2020-09-16 Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010972061.XA CN112104501A (en) 2020-09-16 2020-09-16 Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment

Publications (1)

Publication Number Publication Date
CN112104501A true CN112104501A (en) 2020-12-18

Family

ID=73760464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010972061.XA Pending CN112104501A (en) 2020-09-16 2020-09-16 Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment

Country Status (1)

Country Link
CN (1) CN112104501A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822254A (en) * 2020-12-31 2021-05-18 山东向明环保科技有限公司 Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN112910714A (en) * 2021-03-05 2021-06-04 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN113850941A (en) * 2021-09-08 2021-12-28 深圳柏成科技有限公司 Unattended access control system remote upgrading method
CN114189440A (en) * 2021-11-01 2022-03-15 深圳拓邦股份有限公司 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium
CN114995848A (en) * 2021-12-08 2022-09-02 荣耀终端有限公司 IoT device upgrading method, IoT device and computer-readable storage medium
CN115686586A (en) * 2022-11-16 2023-02-03 深圳市拓邦自动化技术有限公司 Terminal device program upgrading method and device and electric equipment
CN115904457A (en) * 2023-03-01 2023-04-04 江苏安世朗智能科技有限公司 Internet of things-based computer firmware remote upgrading system and method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158817A1 (en) * 2001-03-19 2004-08-12 Yuji Okachi Software updating system, software updating method, and software updating program
WO2008110088A1 (en) * 2007-03-09 2008-09-18 Huawei Technologies Co., Ltd. Method and system for automatically updating mobile terminal software, mobile terminal and software managing server
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
US20140304697A1 (en) * 2011-12-01 2014-10-09 Tencent Technology (Shenzhen) Company Limited Method and system for upgrading software
CN104486428A (en) * 2014-12-18 2015-04-01 长安大学 Road waterlogging monitoring system and method based on cloud server
CN105549517A (en) * 2016-03-03 2016-05-04 广州白云空港设备技术发展有限公司 Boarding bridge and bridge equipment remote monitoring device based on flight information
CN208257838U (en) * 2018-06-20 2018-12-18 云南追溯科技有限公司 A kind of intelligent networking gateway based on STM32
CN111163179A (en) * 2020-01-15 2020-05-15 江铃汽车股份有限公司 System and method for remotely upgrading automobile terminal electronic control module software
CN111273937A (en) * 2020-01-18 2020-06-12 四川九洲空管科技有限责任公司 Remote upgrading method based on STM32F746 processor

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158817A1 (en) * 2001-03-19 2004-08-12 Yuji Okachi Software updating system, software updating method, and software updating program
WO2008110088A1 (en) * 2007-03-09 2008-09-18 Huawei Technologies Co., Ltd. Method and system for automatically updating mobile terminal software, mobile terminal and software managing server
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
US20140304697A1 (en) * 2011-12-01 2014-10-09 Tencent Technology (Shenzhen) Company Limited Method and system for upgrading software
CN104486428A (en) * 2014-12-18 2015-04-01 长安大学 Road waterlogging monitoring system and method based on cloud server
CN105549517A (en) * 2016-03-03 2016-05-04 广州白云空港设备技术发展有限公司 Boarding bridge and bridge equipment remote monitoring device based on flight information
CN208257838U (en) * 2018-06-20 2018-12-18 云南追溯科技有限公司 A kind of intelligent networking gateway based on STM32
CN111163179A (en) * 2020-01-15 2020-05-15 江铃汽车股份有限公司 System and method for remotely upgrading automobile terminal electronic control module software
CN111273937A (en) * 2020-01-18 2020-06-12 四川九洲空管科技有限责任公司 Remote upgrading method based on STM32F746 processor

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822254A (en) * 2020-12-31 2021-05-18 山东向明环保科技有限公司 Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN112910714A (en) * 2021-03-05 2021-06-04 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN112910714B (en) * 2021-03-05 2022-04-22 中国电子科技集团公司第三十八研究所 Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN113850941A (en) * 2021-09-08 2021-12-28 深圳柏成科技有限公司 Unattended access control system remote upgrading method
CN114189440A (en) * 2021-11-01 2022-03-15 深圳拓邦股份有限公司 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium
CN114995848A (en) * 2021-12-08 2022-09-02 荣耀终端有限公司 IoT device upgrading method, IoT device and computer-readable storage medium
CN114995848B (en) * 2021-12-08 2023-04-28 荣耀终端有限公司 IoT device upgrade method, ioT device, and computer-readable storage medium
CN115686586A (en) * 2022-11-16 2023-02-03 深圳市拓邦自动化技术有限公司 Terminal device program upgrading method and device and electric equipment
CN115904457A (en) * 2023-03-01 2023-04-04 江苏安世朗智能科技有限公司 Internet of things-based computer firmware remote upgrading system and method
CN115904457B (en) * 2023-03-01 2024-01-30 江苏安世朗智能科技有限公司 Remote upgrading system and method for computer firmware based on Internet of things

Similar Documents

Publication Publication Date Title
CN112104501A (en) Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
US7003767B2 (en) System and method for remotely updating software applications
US9485134B2 (en) Managing configurations of system management agents in a distributed environment
JP3167522B2 (en) Software remote automatic update system and method
CN105183515B (en) The method and device of holder firmware upgrade
US20120117557A1 (en) Method and system for upgrading wireless data card
US20090013317A1 (en) Software Management for Software Defined Radio in a Distributed Network
US20050055689A1 (en) Software management for software defined radio in a distributed network
US20040015940A1 (en) Intelligent device upgrade engine
CN113946358A (en) Automatic driving vehicle software remote upgrading method based on vehicle management system
CN105072398B (en) A kind of device updating method and device
CN110912728B (en) Operating system patch batch automatic update management method and system
CN108616391A (en) Method and system for upgrading equipment firmware at server side
CN111736876A (en) Client update control method, device, storage medium and server
CN103546563B (en) terminal software intelligent updating method and system
CN112199283A (en) Program test control and execution method and corresponding device, equipment and medium
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
CN111367740B (en) BMC debugging system and method and computer readable storage medium
CN115529301A (en) Firmware upgrading method based on cloud edge cooperation, server side and edge gateway side
CN109933353B (en) Embedded Web-based controller firmware upgrading method
CN111666085A (en) Method for upgrading vending machine software
CN112000352A (en) Terminal device upgrading method and management platform
CN112685048A (en) Application program packaging method, electronic device and storage medium
CN109669699A (en) Application program distribution method, AC, AP and Radio Network System
CN109542488A (en) A kind of software version configuration method and relevant apparatus, system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201218