Vehicle-mounted positioning terminal automatic remote upgrading method based on http protocol

Through the automatic remote upgrade method of vehicle positioning terminal based on the http protocol, the terminal device actively informs the version number and receives the new version of the software, solving the problem of the upgrade method relying on preconditions and omissions in the existing technology, and achieving automated upgrades and full coverage.

CN120215978APending Publication Date: 2025-06-27XIAN LONGVIEW ELECTRONICS ENG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510271490.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-08
Publication Date
2025-06-27

Smart Images

  • Figure CN120215978A_ABST
    Figure CN120215978A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of computers. The invention provides a vehicle-mounted positioning terminal automatic remote upgrading method based on an http protocol. According to the embodiment of the invention, the terminal equipment actively and regularly informs the server side of the version number of the terminal equipment, the server side determines and informs whether the terminal equipment needs to be upgraded or not, if the terminal equipment needs to be upgraded, the downloading request is sent to the server side, the server side replies the software content of the new version to the equipment, and the format is converted and the original program is replaced if verification is correct after the equipment receives the software content. According to the method, automatic upgrading of the equipment is realized, required software and hardware facilities are reduced, the server side can master access upgrading conditions of numerous equipment, and omission is avoided in the upgrading process.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the related art, when the in-vehicle positioning terminal upgrades the embedded software version, common methods include importing the new version of the software through serial communication, sending hexadecimal upgrade instructions to the terminal through 8900 transparent transmission of the 808 protocol, and sending a short message upgrade instruction to the SIM card in the terminal device to complete the upgrade of the embedded software version, etc. Among these methods, serial communication requires the computer and the terminal device to be connected by a data cable. The latter two methods require the terminal management platform to support the protocol or the SIM card of the device to support the short message function, and both require the management platform or the mobile phone short message to actively send the upgrade instruction to the device, and also require a server storing the new version of the upgrade program. All three upgrade methods need to meet certain preconditions, and when the number of devices is relatively large, it will cause an increase in workload, possible omissions, and does not meet the requirements of automatic upgrade.

[0003] Therefore, it is necessary to improve one or more problems existing in the above-mentioned related technical solutions.

[0004] It should be noted that the information disclosed in the above background art section is only used to strengthen the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0005] The purpose of the embodiments of the present disclosure is to provide an automatic remote upgrade method for an in-vehicle positioning terminal based on the http protocol, so as to at least overcome one or more problems caused by the limitations and defects of the related art to a certain extent.

[0006] According to the first aspect of the embodiments of the present disclosure, an automatic remote upgrade method for an in-vehicle positioning terminal based on the http protocol is provided. The method includes: Select a new version of the program file suitable for different device models and listen to the dedicated upgrade port; Receive a comparison request, and extract the device number, the embedded program version number, and the device type in the comparison request; Judge whether it belongs to the upgrade model according to the device type; if so, record the device number, judge whether the terminal needs to be upgraded, and generate and send a corresponding comparison request reply; Receive and respond to the download request, verify the device number, read the content of the corresponding new version of the program file, generate a download request reply and return it; Receive the new comparison request sent after the upgrade is completed, and record the upgrade success or failure status according to the version comparison result.

[0007] Furthermore, judge whether it belongs to the upgrade model according to the device type. If not, do not reply to the comparison request.

[0008] Further, if the current program version is the same as the new program version, a comparison request reply indicating no upgrade is required is generated; if the current program version is different from the new program version, it is marked for upgrade and a comparison request reply containing the device number, the new program version number, and the upgrade identifier is generated.

[0009] Further, if the device number verification fails, the download request is not restored.

[0010] According to a second aspect of the embodiments of the present disclosure, a method for automatically remotely upgrading an in-vehicle positioning terminal based on the http protocol is provided. The method includes: Periodically sending a comparison request; Receiving a comparison request reply and determining whether an upgrade is required based on the comparison request reply; if an upgrade is required, a download request containing the device number is generated and sent; Receiving the returned download request reply and verifying the download request reply; If the verification fails, the upgrade is terminated and the periodic sending of the comparison request is maintained; If the verification is successful, the content of the new program file in the download request reply is converted into a program file format and replaces the original program file to complete the upgrade, and a new comparison request is immediately sent to feedback the upgrade status.

[0011] Further, it is determined whether an upgrade is required according to the comparison request reply. If no upgrade is required, a new comparison request is sent.

[0012] Further, if the returned download request reply is not received, the download request is regenerated and sent.

[0013] According to a third aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method for automatically remotely upgrading an in-vehicle positioning terminal based on the http protocol described in any one of the above embodiments are implemented.

[0014] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including: A processor; and A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the steps of the method for automatically remotely upgrading an in-vehicle positioning terminal based on the http protocol described in any one of the above embodiments by executing the executable instructions.

[0015] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In the embodiments of the present disclosure, through the above-mentioned method for automatically remotely upgrading a vehicle-mounted positioning terminal based on the HTTP protocol, on the one hand, the terminal device actively notifies the server of its own version number at regular intervals, allowing the server to decide and inform whether it needs to be upgraded. If an upgrade is required, a download request is sent to the server, and the server replies with the software content of the new version to the device. After the device receives it and verifies it without error, it converts the format and replaces the original program. On the other hand, this method realizes automatic device upgrade, reduces the required software and hardware facilities, enables the server to master the access and upgrade situations of numerous devices, and will not cause omissions during the upgrade process.

[0016] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1 A step diagram showing a method for automatically remotely upgrading a vehicle-mounted positioning terminal based on the HTTP protocol in an exemplary embodiment of the present disclosure; Figure 2 A step diagram showing another method for automatically remotely upgrading a vehicle-mounted positioning terminal based on the HTTP protocol in an exemplary embodiment of the present disclosure; Figure 3 A communication schematic diagram showing a method for automatically remotely upgrading a vehicle-mounted positioning terminal based on the HTTP protocol in an exemplary embodiment of the present disclosure; Figure 4 An overall flowchart showing a method for automatically remotely upgrading a vehicle-mounted positioning terminal based on the HTTP protocol in an exemplary embodiment of the present disclosure; Figure 5 An operation effect diagram showing a server program for automatically upgrading the embedded software of a vehicle-mounted positioning terminal based on the HTTP protocol in an exemplary embodiment of the present disclosure; Figure 6 A schematic diagram showing a program product in an exemplary embodiment of the present disclosure; Figure 7 A schematic diagram showing an electronic device in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0019] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0020] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0021] In this example embodiment, an automatic remote upgrade method for an in-vehicle positioning terminal based on the http protocol is first provided. This method can be applied to a terminal device, such as a mobile terminal like a mobile phone, personal digital assistant, laptop computer, tablet computer, smart watch, etc.

Flexibly adjust according to specific circumstances, such as if the terminal device is a server, etc.

[0022] Through the above vehicle-mounted positioning terminal automatic remote upgrade method based on the HTTP protocol, on the one hand, the terminal device actively notifies the server of its version number at regular intervals, allowing the server to decide and inform whether it needs to be upgraded. If an upgrade is required, a download request is sent to the server, and the server replies with the software content of the new version to the device. After the device receives it and verifies it without error, it converts the format and replaces the original program. On the other hand, this method realizes automatic device upgrade, reduces the required software and hardware facilities, enables the server to master the access and upgrade situations of numerous devices, and will not cause omissions during the upgrade process.

[0023] Next, reference will be made to Figure 1 to describe each step of the above method in the present exemplary embodiment in more detail.

[0024] In step S101, a new version program file applicable to different device models is selected, and the dedicated upgrade port is listened to.

[0025] Specifically, several new version embedded program files applicable to different device models and their applicable device models are selected as the device models to be upgraded this time and the program versions they need to be upgraded to. The service is started, and the server begins to listen to the port.

[0026] In step S102, a comparison request is received, and the device number, embedded program version number, and device type in the comparison request are extracted.

[0027] Specifically, when the server receives a comparison request (request type POST) sent by a certain device, it obtains its device model, device number, and current version number. It checks whether the device model is included in the selected device models. If not, it means that this device does not need to be upgraded this time, and this comparison request is not replied; if so, it proceeds to step S103.

[0028] In step S103, it is determined whether it belongs to an upgrade model according to the device type; if so, the device number is recorded, it is determined whether the terminal needs to be upgraded, and a corresponding comparison request reply is generated and sent.

[0029] Specifically, the server compares the current version number with the upgrade version number applicable to the current device type. If the versions are the same, this device does not need to be upgraded; if the versions are different, this device needs to be upgraded. The server retrieves and finds that this device is accessing the server for the first time, records the device number of this device and whether it needs to be upgraded. The server returns the device number, upgrade version number, and whether it needs to be upgraded as a reply to the terminal device.

[0030] In step S104, a download request is received and responded to. After verifying the device number, the content of the corresponding new version program file is read, a download request reply is generated and returned.

[0031] Specifically, when the server receives a download request, it first verifies the device number. If the device has been recorded and needs to be upgraded, the server starts to read the new version program file applicable to the device and returns it as a download request reply to the terminal device.

[0032] In step S105, receive the new comparison request sent after the upgrade is completed, and record the upgrade success or failure status according to the version comparison result.

[0033] Specifically, after the server receives the comparison request, it verifies the device model and device number, and finds that it is a second access. It compares the device program versions. If they are the same, the server records that the device upgrade is successful. If they are different, the server records that the device upgrade fails and starts over from step S102.

[0034] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be executed in that specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. Also, it is easily understood that these steps may be executed synchronously or asynchronously, for example, in multiple modules / processes / threads.

[0035] Furthermore, in the present exemplary embodiment, an automatic remote upgrade method for an in-vehicle positioning terminal based on the http protocol is also provided. Referring to Figure 2 shown in, this method may include the following steps: Step S201: Send a comparison request at regular intervals; Step S202: Receive the comparison request reply, and determine whether an upgrade is needed according to the comparison request reply; if an upgrade is needed, generate and send a download request including the device number; Step S203: Receive the returned download request reply and verify the download request reply; Step S204: If the verification fails, terminate the upgrade and continue to send the comparison request at regular intervals; Step S205: If the verification is successful, convert the content of the new version program file in the download request reply into the program file format and replace the original program file to complete the upgrade, and immediately send a new comparison request to feedback the upgrade status.

[0036] In step S201, send a comparison request at regular intervals.

[0037] Specifically, the terminal device sends a comparison request to the server at regular intervals. If the device model selected by the server does not include the access device model, the server does not reply. Otherwise, proceed to the next step.

[0038] In step S202, receive the comparison request reply, and determine whether an upgrade is required based on the comparison request reply; if an upgrade is required, generate and send a download request including the device number.

[0039] Specifically, after the terminal device receives the comparison request reply from the server, it first verifies the device number, and then checks whether an upgrade is required. If no upgrade is required, it keeps sending comparison requests to the server at regular intervals; if an upgrade is required, it immediately sends a download request (request type GET) to the server and attaches the device number.

[0040] In steps S203 to S105, receive the returned download request reply, and verify the download request reply; if the verification fails, terminate the upgrade and keep sending comparison requests at regular intervals; if the verification is successful, convert the content of the new version program file in the download request reply into the program file format and replace the original program file to complete the upgrade, and immediately send a new comparison request to feedback the upgrade status.

[0041] Specifically, after the terminal device receives the reply content of the download request, it performs content verification to check its integrity and correctness. If the verification fails, it deletes the content and then keeps sending comparison requests to the server at regular intervals; if the verification is successful, it converts the content into a program file in the correct format, replaces the original program file, the upgrade is successful, and then it immediately sends a new comparison request to the server.

[0042] In a specific embodiment, the comparison request is a POST request sent by the device to the server, and the request parameters are the device number, the embedded program version number, and the device type. After receiving the comparison request, the server will decide whether to record the device number and whether to reply based on the comparison of the device type. If a reply is required, it will decide whether the device needs to be upgraded based on the comparison of the embedded program version number. The fields included in the comparison request reply are the device number, the new version program version number, and whether an upgrade is required. The device sends comparison requests at regular intervals and decides whether to reply and whether to upgrade based on the results, which can ensure reducing the occupancy of the server bandwidth when the device realizes automatic upgrade.

[0043] In a specific embodiment, the download request is a GET request sent by the device to the server, and the attached parameter is the device number. The device will send a download request only when the server notifies the device that an upgrade is required through the comparison request reply. After receiving the download request and verifying the device number, the server reads the content of the new version program and uses it as the download request reply to return to the terminal device.

[0044] In a specific embodiment, content verification is an operation in which a device verifies the verification codes in program files. The program files are all binary files, and a unique verification code is added to the beginning and end of each version of the program file to distinguish it from other versions. When the device receives a download request response, it will verify the verification codes at the beginning and end to check their integrity and correctness. Only when the content verification is passed will the content be converted into the target file format and replace the original program file to complete the upgrade.

[0045] In a specific embodiment, as Figure 3 shown, when the embedded software of a terminal device needs to be remotely and automatically upgraded, the communication process between the terminal and the server in Figure 3 is as follows: "The terminal sends a comparison request" -> "The server replies to the comparison request" -> "The terminal sends a download request" -> "The server replies to the download request". As Figure 4 and Figure 5 shown, in the overall process steps, the main steps include the following: Select several new versions of embedded program files applicable to different device models and their applicable device models as the device models to be upgraded this time and the program versions to which they need to be upgraded, start the service, and the server starts listening on the port.

[0046] The terminal device periodically sends a comparison request to the server. If the device model selected by the server does not include the access device model, the server will not reply, otherwise it will proceed to the next step; When the server receives a comparison request (request type POST) sent by a device, it obtains its device model, device number, and current version number. Checks whether its device model is included in the selected device models. If not, it means that this device does not need to be upgraded this time and does not reply to this comparison request; if so, it proceeds to the next step.

[0047] The server compares the current version number with the upgrade version number applicable to the current device type. If the versions are the same, this device does not need to be upgraded; if the versions are different, this device needs to be upgraded. The server retrieves and finds that this device is accessing the server for the first time, records the device number of this device and whether it needs to be upgraded. The server returns the device number, upgrade version number, and whether it needs to be upgraded as a reply to the terminal device.

[0048] After the terminal device receives the comparison request reply from the server, it first verifies the device number, and then checks whether it needs to be upgraded. If it does not need to be upgraded, it keeps periodically sending comparison requests to the server; if it needs to be upgraded, it immediately sends a download request (request type GET) to the server and attaches the device number, and proceeds to the next step; Upon receiving a download request, the server first verifies the device number. If the device has been recorded and needs to be upgraded, the server starts to read the new version program file applicable to the device and returns it as a reply to the download request to the terminal device. After receiving the reply content of the download request, the terminal device performs content verification to check its integrity and correctness. If the verification fails, the content is deleted, and then the terminal device keeps sending comparison requests to the server at regular intervals. If the verification is successful, the content is converted into a program file in the correct format to replace the original program file, and the upgrade is successful. Then, the terminal device immediately sends a comparison request to the server again.

[0049] After receiving the comparison request, the server verifies the device model and device number, and finds that it is a secondary access. It compares the device program versions. If they are the same, the server records that the device upgrade is successful. If they are different, the server records that the device upgrade fails and sends a comparison request to the server again.

[0050] Through the above-mentioned method for automatic remote upgrade of in-vehicle positioning terminals based on the http protocol, on the one hand, the terminal device actively and regularly informs the server of its version number, enabling the server to decide and inform whether it needs to be upgraded. If an upgrade is required, the terminal device sends a download request to the server, and the server replies with the software content of the new version to the device. After receiving it and verifying it without errors, the device converts the format and replaces the original program. On the other hand, this method realizes automatic device upgrade, reduces the required software and hardware facilities, enables the server to master the access and upgrade situations of numerous devices, and there will be no omissions during the upgrade process.

[0051] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored. When the program is executed by a processor, it can implement the steps of the method for automatic remote upgrade of in-vehicle positioning terminals based on the http protocol described in any one of the above embodiments. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to make the terminal device execute the steps according to various exemplary embodiments of the present invention described in the above part of the method for automatic remote upgrade of in-vehicle positioning terminals based on the http protocol in this specification.

[0052] Reference Figure 6 As shown, a program product 300 for implementing the above method according to an embodiment of the present invention is described. It can use a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device.

[0053] The program product may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0054] The computer-readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable storage medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0055] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, executed as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0056] In an exemplary embodiment of the present disclosure, an electronic device is further provided, which may include a processor and a memory for storing executable instructions of the processor. Wherein, the processor is configured to execute the steps of the method for automatically remotely upgrading an in-vehicle positioning terminal based on the http protocol described in any one of the foregoing embodiments by executing the executable instructions.

[0057] Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, method, or program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to herein as "circuit", "module", or "system".

[0058] Reference is now made to Figure 7 to describe the electronic device 600 according to this embodiment of the present invention. Figure 7 The illustrated electronic device 600 is merely an example and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.

[0059] As Figure 7 shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.

[0060] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present invention described in the above-mentioned part of the vehicle-mounted positioning terminal automatic remote upgrade method based on the http protocol in this specification. For example, the processing unit 610 can execute the steps as shown in Figure 1 shown.

[0061] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and / or a cache storage unit 6202, and may further include a read-only storage unit (ROM) 6203.

[0062] The storage unit 620 may further include a program / utilities 6204 having a set (at least one) of program modules 6205. Such program modules 6205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment.

[0063] The bus 630 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0064] The electronic device 600 can also communicate with one or more external devices 700 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 650. Moreover, the electronic device 600 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 660. The network adapter 660 can communicate with other modules of the electronic device 600 through the bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0065] From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by the way of software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above-mentioned method for automatically remotely upgrading an in-vehicle positioning terminal based on the http protocol according to the embodiments of the present disclosure.

[0066] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the appended claims.

Claims

1. A method for automatic remote upgrade of a vehicle-mounted positioning terminal based on the http protocol, characterized in that: The method includes: Select new program files suitable for different device models and monitor the dedicated upgrade port; Receive a comparison request, and extract the device number, embedded program version number, and device type in the comparison request; Determine whether it is an upgraded model based on the device type; if so, record the device number and determine whether the terminal needs to be upgraded, and generate and send a corresponding comparison request response; Receive and respond to download requests, verify the device number and read the corresponding new version of the program file, generate a download request reply and return it; Receive a new comparison request sent after the upgrade is completed, and record the upgrade success or failure status based on the version comparison result.

2. According to claim 1, the method for automatic remote upgrade of vehicle positioning terminal based on http protocol is characterized in that: Determine whether it is an upgraded model based on the device type. If not, do not respond to the comparison request.

3. According to the method for automatic remote upgrade of vehicle positioning terminal based on http protocol in claim 1, it is characterized in that: If the current program version is consistent with the new program version, a comparison request response is generated that does not require upgrading; if the current program version is inconsistent with the new program version, an upgrade is marked and a comparison request response is generated that includes the device number, the new program version number and the upgrade identifier.

4. According to claim 1, the method for automatic remote upgrade of vehicle positioning terminal based on http protocol is characterized in that: If the device number verification fails, the download request will not be resumed.

5. A method for automatic remote upgrade of a vehicle-mounted positioning terminal based on the http protocol, characterized in that: The method includes: Send comparison requests regularly; Receive a comparison request reply, and determine whether an upgrade is required based on the comparison request reply; if an upgrade is required, generate and send a download request containing the device number; Receive the returned download request response and verify the download request response; If the verification fails, the upgrade is terminated and the comparison request is sent regularly; If the verification is successful, the new version of the program file content in the download request reply is converted into the program file format and replaces the original program file to complete the upgrade, and a new comparison request is immediately sent to feedback the upgrade status.

6. The method for automatic remote upgrade of a vehicle-mounted positioning terminal based on the http protocol according to claim 5, characterized in that: Determine whether an upgrade is required based on the comparison request reply. If an upgrade is not required, send a new comparison request.

7. The method for automatic remote upgrade of a vehicle-mounted positioning terminal based on the http protocol according to claim 5, characterized in that: If no download request reply is received, a download request is regenerated and sent.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for automatic remote upgrading of a vehicle-mounted positioning terminal based on the http protocol as described in any one of claims 1 to 4 are implemented.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the steps of the method for automatic remote upgrading of a vehicle-mounted positioning terminal based on the http protocol as described in any one of claims 1 to 4 by executing the executable instructions.