CN113220328A - Upgrading method and device, computer equipment and storage medium - Google Patents

Upgrading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113220328A
CN113220328A CN202110533576.4A CN202110533576A CN113220328A CN 113220328 A CN113220328 A CN 113220328A CN 202110533576 A CN202110533576 A CN 202110533576A CN 113220328 A CN113220328 A CN 113220328A
Authority
CN
China
Prior art keywords
upgrading
upgrade
data packet
vehicle
hotspot
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
CN202110533576.4A
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202110533576.4A priority Critical patent/CN113220328A/en
Publication of CN113220328A publication Critical patent/CN113220328A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides an upgrading method, which is applied to vehicle-mounted equipment and comprises the following steps: receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment; establishing hotspot connection with the terminal equipment according to the hotspot name; and obtaining an upgrade package broadcasted by the terminal equipment through hotspot connection, and upgrading according to the upgrade package. By the method, the vehicle-mounted equipment can be upgraded quickly and conveniently.

Description

Upgrading method and device, computer equipment and storage medium
Technical Field
The present application belongs to the field of intelligent upgrading technology, and in particular, to an upgrading method, apparatus, computer device, and storage medium.
Background
Currently, a large number of vehicle-mounted devices are deployed in various vehicles to perform intelligent control on the vehicles. In the use process of the vehicle-mounted equipment, the problem that the vehicle-mounted equipment needs to be upgraded is inevitably caused. However, the vehicle-mounted device does not usually have a display screen, and the vehicle-mounted device is not convenient to detach after being mounted on a vehicle, so that the upgrading operation of the current vehicle-mounted device is complicated. For example, a common upgrade method at present needs to detach the vehicle-mounted device from the vehicle, and then obtain an upgrade package through a Universal Serial Bus (USB) interface to perform upgrade.
Therefore, a method for rapidly and conveniently upgrading the vehicle-mounted device is needed.
Disclosure of Invention
In view of this, embodiments of the present application provide an upgrade method, an upgrade apparatus, a computer device, and a storage medium, which can quickly and conveniently upgrade a vehicle-mounted device.
A first aspect of an embodiment of the present application provides an upgrade method, which is applied to a vehicle-mounted device, and the upgrade method includes:
receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment;
establishing hotspot connection with the terminal equipment according to the hotspot name;
and obtaining an upgrade package broadcasted by the terminal equipment through hotspot connection, and upgrading according to the upgrade package.
Optionally, the receiving the data packet broadcasted by the terminal device includes:
monitoring a network data packet in a promiscuous mode;
and if the network data packet is monitored to contain the data packet broadcasted by the terminal equipment, receiving the data packet.
Optionally, after obtaining the upgrade package broadcasted by the terminal device through hotspot connection and upgrading according to the upgrade package, the method further includes:
and sending an upgrading result to the terminal equipment.
Optionally, the obtaining an upgrade package broadcasted by the terminal device through hotspot connection, and upgrading according to the upgrade package, includes:
receiving an upgrade package broadcasted by the terminal equipment through hotspot connection;
judging whether the upgrade patch is complete;
and if so, upgrading according to the upgrading packet.
A second aspect of the embodiments of the present application provides an upgrade method, which is applied to a terminal device, and the upgrade method includes:
broadcasting a data packet, wherein the data packet comprises a hotspot name of a terminal device;
and after establishing hotspot connection with the vehicle-mounted equipment based on the data packet, broadcasting an upgrade packet through hotspot connection, wherein the upgrade packet is used for upgrading the vehicle-mounted equipment.
Optionally, before the broadcasting data packet, the method includes:
encrypting the data packet;
prior to said broadcasting the upgrade package over the hotspot connection, comprising:
and encrypting the upgrade package.
Optionally, after broadcasting the upgrade package through the hotspot connection, the method further includes:
and after delaying the preset time, re-executing the step of broadcasting the upgrade package through the hotspot connection.
A third aspect of the embodiments of the present application provides an upgrade apparatus, which is applied to a vehicle-mounted device, and includes:
the receiving module is used for receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment;
the hotspot connection module is used for establishing hotspot connection with the terminal equipment according to the hotspot name;
and the upgrading module is used for acquiring the upgrading packet broadcasted by the terminal equipment through hotspot connection and upgrading according to the upgrading packet.
Optionally, the receiving module includes:
the monitoring unit is used for monitoring the network data packet in the promiscuous mode;
and the first receiving unit is used for receiving the data packet if the network data packet is monitored to contain the data packet broadcasted by the terminal equipment.
Optionally, the upgrading apparatus further includes:
and the sending module is used for sending the upgrading result to the terminal equipment.
Optionally, the upgrade module includes:
the second receiving unit is used for receiving the upgrade package broadcasted by the terminal equipment through hotspot connection;
the judging unit is used for judging whether the upgrade package is complete;
and the upgrading unit is used for upgrading according to the upgrading packet if the upgrade packet is true.
A fourth aspect of embodiments of the present application provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the upgrade method as described above when executing the computer program.
A fifth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the upgrade method as described above.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, the vehicle-mounted equipment can receive a data packet broadcasted by the terminal equipment, the data packet comprises a hotspot name of the terminal equipment, and hotspot connection is established with the terminal equipment according to the hotspot name; at this moment, the vehicle-mounted device can acquire the setting information such as the hotspot name required by establishing the hotspot connection, so that the hotspot connection with the terminal device can be conveniently established, and related personnel do not need to detach the vehicle-mounted device and then establish the communication connection between the vehicle-mounted device and the terminal device in a complex control mode to acquire the upgrade package, thereby greatly improving the efficiency of establishing the hotspot connection for acquiring the upgrade package by the vehicle-mounted device, and further conveniently acquiring the upgrade package through the hotspot connection and upgrading according to the upgrade package.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of an implementation flow of an upgrading method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an implementation of step S101 according to an embodiment of the present application;
fig. 3 is a schematic flow chart of an implementation of another upgrading method provided in the second embodiment of the present application;
fig. 4 is a schematic diagram of an upgrading apparatus provided in the third embodiment of the present application;
FIG. 5 is a schematic diagram of another upgrading device provided in the fourth embodiment of the present application;
fig. 6 is a schematic diagram of a computer device provided in this application embodiment five.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
At present, the upgrade scheme of the vehicle-mounted device generally has the following forms:
1. upgrading is carried out through a USB.
In this scheme, after the vehicle-mounted device is usually detached from the vehicle, an upgrade package is acquired through a Universal Serial Bus (USB) interface to perform upgrade. If the shell of the vehicle-mounted equipment is not reserved with the USB port, the shell of the vehicle-mounted equipment needs to be detached. Therefore, the scheme is feasible in the research and development stage, and after the vehicle-mounted equipment leaves a factory and is loaded, the operation of upgrading the vehicle-mounted equipment is inconvenient and the equipment is easy to damage.
2. And performing Air upgrade by FOTA (Firmware Over-The-Air) cloud upgrade technology.
In this scheme, generally, the vehicle-mounted device is connected to a server providing the upgrade package through a 4G network, and downloads the upgrade package from the server for upgrading. However, the cost of this scheme is high, and developers need to build a server in advance or purchase a third-party service to enable the on-board device to perform 4G network connection, which increases the cost. In addition, downloading the upgrade package requires a large amount of traffic and also requires a large cost. Moreover, after the network is upgraded, for example, from the 4G network to the 5G network, the SIM card in the vehicle-mounted device needs to be replaced, which is also cumbersome.
3. And the vehicle-mounted equipment performs hot spot acquisition and upgrading on the upgrade package.
In the scheme, the mobile phone or the desktop computer used for providing the upgrade package can only be connected with the hot spot of one vehicle-mounted device at one time, when the vehicle-mounted devices required to be upgraded are more, the efficiency is low, the connection between different vehicle-mounted devices and the mobile phone or the desktop computer providing the upgrade package needs to be established repeatedly, the work is complicated, and fatigue is easily caused. In addition, the mobile phone or the desktop computer providing the upgrade package in the scheme has to know the hot roll name and the password of the vehicle-mounted device. If the in-vehicle device is already mounted to the vehicle, it may not be upgraded because it is difficult to determine the hot roll name and password of the in-vehicle device.
Therefore, the operation of the upgrading scheme of the current common vehicle-mounted equipment is often more complicated, and the efficiency is lower.
Through the embodiment of the application, the vehicle-mounted equipment can be upgraded quickly and conveniently.
Specifically, in order to explain the technical means described in the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic view of an implementation flow of an upgrading method provided in an embodiment of the present application, where the upgrading method is applied to a vehicle-mounted device.
The specific model, structure and current state of the vehicle-mounted device are not limited herein. The vehicle-mounted device may be in a development state, an uninstalled state after leaving a factory, or may have been installed in a specified vehicle. In one example, a Telematics Box (TBOX) may be included in the vehicle-mounted device.
As shown in fig. 1, the upgrading method may include the steps of:
step S101, receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment.
And step S102, establishing hotspot connection with the terminal equipment according to the hotspot name.
Step S103, obtaining an upgrade package broadcasted by the terminal equipment through hotspot connection, and upgrading according to the upgrade package.
In step S101, the terminal device may be different from the in-vehicle device. For example, the terminal device may be an Electronic Control Unit (ECU), a server, a desktop computer, a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like. The embodiment of the present application does not set any limit to the specific type of the terminal device.
The data packet may include a hotspot name of the terminal device, and in some examples, the data packet may further include a hotspot password of the terminal device. Through the data packet, the vehicle-mounted equipment can acquire hotspot information capable of establishing hotspot connection with the terminal equipment.
The manner in which the in-vehicle device receives the data packet broadcast by the terminal device is not limited herein. In one example, the in-vehicle device may receive a data packet broadcast by a terminal device in promiscuous mode.
In step S102, the hotspot connection may be a local area network between the vehicle-mounted device and a terminal device such as a mobile phone or a desktop computer, and a server does not need to be connected, which saves the cost of building the server. In addition, data transmission through the hotspot connection does not need to consume flow as in the case of an over-the-air upgrade scheme and the like, so that the hardware cost and other resource consumption are low.
The hot spot in the hot spot connection may be sent by a terminal device such as a mobile phone or a desktop computer. At this time, the number of the vehicle-mounted devices that establish the hotspot connection with the terminal device such as the mobile phone or the desktop computer may not be limited. That is to say, in this example, terminal devices such as a mobile phone or a desktop computer are used as hotspots, hotspot connection can be conveniently established with a plurality of vehicle-mounted devices, and an upgrade package can be simultaneously sent to the plurality of vehicle-mounted devices in a broadcast manner, so that upgrade of the plurality of vehicle-mounted devices is realized, and upgrade efficiency of the plurality of vehicle-mounted devices is greatly improved.
In step S103, after the vehicle-mounted device establishes the hotspot connection, a process of receiving an upgrade package may be started. Specifically, the vehicle-mounted device may initialize a socket to receive the upgrade package, so that the vehicle-mounted device is upgraded through the upgrade package.
Therefore, the following beneficial effects can be achieved through the embodiment of the application:
(1) the vehicle-mounted equipment can receive a data packet broadcasted by the terminal equipment, the data packet comprises a hotspot name of the terminal equipment, and hotspot connection is established with the terminal equipment according to the hotspot name; at this moment, the vehicle-mounted device can automatically acquire the setting information such as the hotspot name required by establishing the hotspot connection, so that the hotspot connection with the terminal device can be conveniently established, relevant personnel do not need to detach the vehicle-mounted device and then establish the communication connection between the vehicle-mounted device and the terminal device in a complex control mode to acquire the upgrade package, and the relevant personnel do not need to acquire the setting mode of the vehicle-mounted device and the operation details such as the hotspot information of the terminal device, so that the efficiency of establishing the hotspot connection for acquiring the upgrade package by the vehicle-mounted device is greatly improved, and the upgrade package can be conveniently acquired through the hotspot connection and upgraded according to the upgrade package.
(2) The vehicle-mounted equipment acquires the upgrade package through hotspot connection, the hotspot connection is a local area network between the vehicle-mounted equipment and terminal equipment such as a mobile phone or a desktop computer, a server does not need to be connected, the cost for building the server is saved, and the data transmission through the hotspot connection does not need to consume flow as the scheme of air upgrade and the like, so that the hardware cost and other resource consumption are low.
(3) And the data packet and the upgrade packet are broadcasted through the terminal equipment. At this moment, the number of the vehicle-mounted devices connected with the terminal device can be unlimited, so that the hotspot connection between one terminal device and a plurality of vehicle-mounted devices can be realized in some scenes, and then the terminal device sends the upgrade package to the plurality of vehicle-mounted devices simultaneously, so that the efficient upgrade of the plurality of vehicle-mounted devices is realized.
In an embodiment, the step S101 of receiving the data packet broadcast by the terminal device includes:
step S201, monitoring a network data packet in a promiscuous mode;
step S202, if the network data packet is monitored to contain the data packet broadcasted by the terminal equipment, the data packet is received.
In the embodiment of the present application, the promiscuous mode (promiscuous mode) refers to a network card of a device being capable of receiving all data streams passing through it, regardless of whether its destination address is the promiscuous mode. In the promiscuous mode, the vehicle-mounted device can monitor network data packets broadcast by terminal devices such as mobile phones and desktop computers, and can search the monitored network data packets for the existence of data required by the vehicle-mounted device.
Wherein, before executing step S201, the in-vehicle apparatus may turn on the promiscuous mode at a specified operation node. For example, in some examples, the in-vehicle device may turn on the promiscuous mode after each power-on, or may turn on the promiscuous mode periodically at preset time intervals (e.g., 3 days, 7 days, or 3 days). The time for the vehicle-mounted device to start the promiscuous mode may be preset by a research and development staff before the vehicle leaves a factory, so that after the vehicle-mounted device is mounted on a specified vehicle, the promiscuous mode may be automatically started at a specified operation node according to preset information, so that the vehicle-mounted device may execute the embodiment of the present application.
In the embodiment of the application, the vehicle-mounted device can actively monitor the network data packet in the hybrid mode, so that the hot connection is actively established according to the hot name of the terminal device in the data packet, an upgrade person is not required to know the name, the password and other information of the hot connection, and the vehicle-mounted device is controlled in a complex control mode to establish the wireless connection. In addition, the promiscuous mode can monitor all network data packets without filtering the network data packets, so that any network data packet cannot be missed, and the data packets broadcasted by the terminal equipment can be monitored in time.
In some embodiments, the step S202 of receiving the data packet if it is monitored that the network data packet includes a data packet broadcasted by the terminal device, includes:
detecting whether the data packet exists in the network data packet or not, wherein the data packet meets a preset identification condition, and the preset identification condition indicates that the head and/or the tail of the data packet contain a preset identification; if the network data packet contains the data packet, initializing a socket, and receiving the data packet through the socket;
and carrying out decryption operation on the data packet to obtain the hotspot name.
In the embodiment of the application, whether the received network data packet is the data packet can be determined by judging whether the packet header and/or the packet tail contain the preset identifier. The preset identifier may be pre-configured by research and development personnel before leaving a factory, and therefore, after the vehicle-mounted device is installed on a designated vehicle, the data packet can be quickly searched according to pre-configured preset identifier information. The size, form, etc. of the preset mark may be various, and are not limited herein.
In some embodiments, the step 102 of establishing a hotspot connection with the terminal device according to the hotspot name includes:
closing the promiscuous mode and socket connection;
and after the hybrid mode and the socket connection are closed, establishing hotspot connection with the terminal equipment according to the hotspot name.
In the embodiment of the application, the hybrid mode and the socket can be closed to reestablish the hotspot connection, so that the interference on subsequent hotspot connection is avoided, and the resource consumption is reduced.
In an embodiment, the step 103 of acquiring an upgrade package broadcasted by the terminal device through a hotspot connection and upgrading according to the upgrade package includes:
receiving an upgrade package broadcasted by the terminal equipment through hotspot connection;
judging whether the upgrade patch is complete;
and if so, upgrading according to the upgrading packet.
In the embodiment of the application, whether the upgrade patch is complete or not can be judged so as to avoid subsequent upgrade errors. And if the upgrade package is not complete, the step of receiving the upgrade package broadcasted by the terminal equipment through the hotspot connection and the subsequent steps can be executed again. In some examples, it may also be determined whether the decrypted upgrade package is complete after the upgrade package is decrypted.
In an embodiment, after step 103 of acquiring an upgrade package broadcasted by the terminal device through a hotspot connection and upgrading according to the upgrade package, the method further includes:
and sending an upgrading result to the terminal equipment.
In this embodiment, the terminal device can acquire the upgrade condition of the vehicle-mounted device by sending the upgrade result to the terminal device, so as to determine whether to continue broadcasting the upgrade package and perform other operations. In addition, the upgrading result can also be sent to the terminal equipment after the upgrading success, so that the terminal equipment receiving the upgrading result reported by the vehicle-mounted equipment changes the relevant information of the vehicle-mounted equipment according to the upgrading condition of the vehicle-mounted equipment.
In a specific example, the specific step of acquiring the upgrade package by the vehicle-mounted device for upgrading may include the following steps:
step A1: a socket is initialized to receive data.
Step A2: and receiving the upgrade package.
Step A3: and decrypting the upgrade package to obtain upgrade data.
Step A4: if the upgrade data is complete data, perform step A5, otherwise perform step A2.
Step A5: the socket is closed.
And A6, upgrading according to the upgrading data and reporting the upgrading result.
Therefore, in the embodiment of the application, the vehicle-mounted device can receive a data packet broadcasted by the terminal device, the data packet comprises a hotspot name of the terminal device, and hotspot connection is established with the terminal device according to the hotspot name; at this moment, the vehicle-mounted device can acquire the setting information such as the hotspot name required by establishing the hotspot connection, so that the hotspot connection with the terminal device can be conveniently established, and related personnel do not need to detach the vehicle-mounted device and then establish the communication connection between the vehicle-mounted device and the terminal device in a complex control mode to acquire the upgrade package, thereby greatly improving the efficiency of establishing the hotspot connection for acquiring the upgrade package by the vehicle-mounted device, and further conveniently acquiring the upgrade package through the hotspot connection and upgrading according to the upgrade package.
Fig. 3 is a schematic view of an implementation flow of an upgrading method provided in the second embodiment of the present application, where the upgrading method is applied to a terminal device.
Wherein the terminal device may be different from the in-vehicle device. For example, the terminal device may be an Electronic Control Unit (ECU), a server, a desktop computer, a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like. The embodiment of the present application does not set any limit to the specific type of the terminal device.
As shown in fig. 3, the upgrade method may include the steps of:
step S301, broadcasting a data packet, wherein the data packet comprises a hotspot name of the terminal equipment.
Step S302, after establishing hotspot connection with the vehicle-mounted equipment based on the data packet, broadcasting an upgrade packet through the hotspot connection, wherein the upgrade packet is used for upgrading the vehicle-mounted equipment.
In step S301, the terminal device may broadcast the data packet. At this time, if the in-vehicle device receives the data packet in a data reception mode such as a promiscuous mode.
In one example, the terminal device may periodically broadcast the data packet at a specified time interval to increase the likelihood that the in-vehicle device receives the data packet broadcast by the terminal device.
In this step S302, if the vehicle-mounted device receives the data packet, the configuration may be performed according to information such as a hotspot name in the data packet, and authentication may be performed on a terminal device, and after the terminal device passes the authentication on the vehicle-mounted device, a hotspot connection may be established with the vehicle-mounted device.
In a specific example, the terminal device may specifically broadcast the data packet by:
step B1: setting a hotspot name and a hotspot password;
step B2: a socket is initialized to send a broadcast.
Step B3: and encrypting the hotspot name and the hotspot password to obtain the data packet.
Step B4: and broadcasting the data packet.
Step B5: and delaying for a specified time.
Step B6: return to performing step B4.
In the embodiment of the application, the terminal device may send a hotspot signal. At this time, the number of the vehicle-mounted devices establishing the hotspot connection with the terminal device may not be limited. That is to say, in this example, terminal devices such as a mobile phone or a desktop computer are used as hotspots, hotspot connection can be conveniently established with a plurality of vehicle-mounted devices, and an upgrade package can be simultaneously sent to the plurality of vehicle-mounted devices in a broadcast manner, so that upgrade of the plurality of vehicle-mounted devices is realized, and upgrade efficiency of the plurality of vehicle-mounted devices is greatly improved.
In some embodiments, prior to the step 301 of broadcasting the data packet, the method comprises:
encrypting the data packet;
prior to step 301 of broadcasting an upgrade package over a hotspot connection, comprising:
and encrypting the upgrade package.
In the embodiment of the application, the data packet and the upgrade packet are encrypted, so that the information transmission safety of the data packet and the upgrade packet can be improved.
In some embodiments, after the step 302 of broadcasting the upgrade package over the hotspot connection, the method further comprises:
and after delaying the preset time, re-executing the step of broadcasting the upgrade package through the hotspot connection.
In the embodiment of the application, the step of broadcasting the upgrade package through hotspot connection can be repeatedly executed at certain intervals, so that the possibility that the vehicle-mounted equipment receives the upgrade package is improved. In addition, the terminal device may also stop executing the step of broadcasting the upgrade package through the hotspot connection after a specified duration, so as to save resources and avoid resource waste.
In some embodiments, the step S301 of broadcasting the data packet includes:
generating at least one upgrade sub-packet according to the total packet number and an upgrade file, wherein the total packet number is determined according to a preset packet length and the file size of the upgrade file, the number of the upgrade sub-packets is the same as the total packet number, the upgrade sub-packets form the upgrade packet, and the packet sequence number of each upgrade sub-packet is determined according to the position of the content of the upgrade sub-packet in the upgrade file;
and broadcasting the at least one upgrade sub-packet according to the packet sequence number of the at least one upgrade sub-packet through the hotspot connection.
In the embodiment of the present application, since the size of a single compression packet of a broadcast may be limited, if the upgrade packet is large, the upgrade packet may be divided into a plurality of upgrade sub-packets to be broadcast respectively. Wherein the preset packet length may be determined according to restriction information of a single compressed packet broadcasted, etc. Of course, in some cases, the upgrade package may be broadcast without being divided.
In the embodiment of the application, each upgrade sub-package of the upgrade package can be obtained by dividing the upgrade file and then packaging and encrypting the upgrade file at the same time, or can be obtained by packaging and encrypting the upgrade sub-packages in sequence according to the sequence of the content of the upgrade file and the sequence of the upgrade sub-packages to be broadcasted in the transmission process.
In some examples, the terminal device may repeatedly broadcast the upgrade packet at a certain period, that is, the terminal device may generate and broadcast each upgrade subpacket at a certain period.
In a specific example, the process of broadcasting the upgrade package by the terminal device may specifically include the following steps:
step C1: a socket is initialized to send broadcasts.
Step C2: and opening the upgrade file.
Step C3: and calculating the total packet number according to the file size of the upgrade file and the preset packet length, and initializing the current packet serial number to be 1.
Step C4: and reading data with a preset length (determined according to a preset packet length) from the upgrade file.
Step C5: and packaging and encrypting the read data with the preset length, the total packet number and the current packet serial number to obtain an upgrade sub-packet.
Step C6: the upgrade subpacket is broadcast.
Step C7: the packet sequence number is incremented by 1.
Step C8: if the end of the file of the upgrade file is reached, step C9 is performed, otherwise step C4 is performed.
Step C9: the current packet sequence number is initialized to 1.
Step C10: and searching the file header of the upgrade file.
Step C11: return to performing step C4.
Therefore, according to the embodiment of the application, the terminal equipment can broadcast the data packet, so that one or even at least two pieces of vehicle-mounted equipment can receive the data packet, and the vehicle-mounted equipment establishes the hotspot connection with the terminal equipment according to the hotspot name in the data packet. At this moment, the number of the vehicle-mounted devices connected with the terminal device can be unlimited, so that the hotspot connection between one terminal device and a plurality of vehicle-mounted devices can be realized in some scenes, and the upgrading packages are simultaneously sent to the plurality of vehicle-mounted devices through the terminal device, so that the high-efficiency upgrading of the plurality of vehicle-mounted devices is realized.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 is a schematic diagram of an upgrading apparatus provided in the third embodiment of the present application, where the upgrading apparatus 4 may be applied to an on-board device. For convenience of explanation, only portions related to the embodiments of the present application are shown.
The upgrade apparatus 4 includes:
a receiving module 401, configured to receive a data packet broadcasted by a terminal device, where the data packet includes a hotspot name of the terminal device;
a hotspot connection module 402, configured to establish a hotspot connection with the terminal device according to the hotspot name;
the upgrading module 403 is configured to obtain an upgrade package broadcasted by the terminal device through hotspot connection, and upgrade according to the upgrade package.
Optionally, the receiving module 401 includes:
the monitoring unit is used for monitoring the network data packet in the promiscuous mode;
and the first receiving unit is used for receiving the data packet if the network data packet is monitored to contain the data packet broadcasted by the terminal equipment.
Optionally, the upgrading apparatus 4 further includes:
and the sending module is used for sending the upgrading result to the terminal equipment.
Optionally, the upgrade module 403 includes:
the second receiving unit is used for receiving the upgrade package broadcasted by the terminal equipment through hotspot connection;
the judging unit is used for judging whether the upgrade package is complete;
and the upgrading unit is used for upgrading according to the upgrading packet if the upgrade packet is true.
Fig. 5 is a schematic diagram of an upgrade apparatus provided in the fourth embodiment of the present application, where the apparatus 5 for broadcasting an upgrade package may be applied to a terminal device. For convenience of explanation, only portions related to the embodiments of the present application are shown.
The upgrade apparatus 5 includes:
a first broadcasting module 501, configured to broadcast a data packet, where the data packet includes a hotspot name of a terminal device;
the second broadcast module 502 is configured to, after establishing a hotspot connection with the vehicle-mounted device based on the data packet, broadcast an upgrade packet through the hotspot connection, where the upgrade packet is used to upgrade the vehicle-mounted device.
Optionally, the upgrading apparatus 5 further includes:
a first encryption unit, configured to encrypt the data packet;
and the second encryption unit is used for encrypting the upgrade package.
Optionally, the upgrading apparatus 5 further includes:
and the delay execution module is used for re-executing the step of broadcasting the upgrade package through the hotspot connection after delaying the preset time length.
Fig. 6 is a schematic diagram of a computer device provided in this application embodiment five. As shown in fig. 6, the computer device 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the various upgrade method embodiments described above, such as the steps 101 to 103 shown in fig. 1, and/or the steps 301 to 302 shown in fig. 3. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the device embodiments, such as the functions of the modules 401 to 403 shown in fig. 3 and/or the functions of the modules 501 to 502 shown in fig. 5.
The computer equipment can be vehicle-mounted equipment and can also be terminal equipment.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the computer device 6. For example, the computer program 62 may be divided into a receiving module, a hot spot connection module, and an upgrading module, and each module has the following specific functions:
the receiving module is used for receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment;
the hotspot connection module is used for establishing hotspot connection with the terminal equipment according to the hotspot name;
and the upgrading module is used for acquiring the upgrading packet broadcasted by the terminal equipment through hotspot connection and upgrading according to the upgrading packet.
Furthermore, the computer program 62 may be divided into a first broadcasting module and a second broadcasting module, and each module has the following specific functions:
the first broadcasting module is used for broadcasting a data packet, and the data packet comprises a hotspot name of the terminal equipment;
and the second broadcasting module is used for broadcasting an upgrading packet through hotspot connection after hotspot connection is established with the vehicle-mounted equipment based on the data packet, and the upgrading packet is used for upgrading the vehicle-mounted equipment.
The computer device 6 may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a computer device 6 and is not intended to limit the computer device 6 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. The memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the computer device 6. The memory 61 is used for storing the computer program and other programs and data required by the computer device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the foregoing upgrade method embodiments.
The embodiments of the present application provide a computer program product, which, when running on a terminal device, enables the terminal device to implement the steps in the foregoing upgrade method embodiments when executed.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An upgrading method is characterized by being applied to vehicle-mounted equipment and comprising the following steps:
receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment;
establishing hotspot connection with the terminal equipment according to the hotspot name;
and obtaining an upgrade package broadcasted by the terminal equipment through hotspot connection, and upgrading according to the upgrade package.
2. The upgrade method according to claim 1, wherein the receiving of the data packet broadcast by the terminal device comprises:
monitoring a network data packet in a promiscuous mode;
and if the network data packet is monitored to contain the data packet broadcasted by the terminal equipment, receiving the data packet.
3. The upgrading method according to claim 1, after obtaining the upgrade package broadcasted by the terminal device through a hotspot connection and upgrading according to the upgrade package, further comprising:
and sending an upgrading result to the terminal equipment.
4. The upgrading method according to any one of claims 1 to 3, wherein the obtaining the upgrade package broadcasted by the terminal device through the hotspot connection and upgrading according to the upgrade package comprises:
receiving an upgrade package broadcasted by the terminal equipment through hotspot connection;
judging whether the upgrade patch is complete;
and if so, upgrading according to the upgrading packet.
5. An upgrading method is applied to terminal equipment, and the upgrading method comprises the following steps:
broadcasting a data packet, wherein the data packet comprises a hotspot name of a terminal device;
and after establishing hotspot connection with the vehicle-mounted equipment based on the data packet, broadcasting an upgrade packet through hotspot connection, wherein the upgrade packet is used for upgrading the vehicle-mounted equipment.
6. The upgrade method according to claim 5, comprising, before the broadcast packet:
encrypting the data packet;
prior to said broadcasting the upgrade package over the hotspot connection, comprising:
and encrypting the upgrade package.
7. The upgrade method according to claim 5 or 6, further comprising, after broadcasting the upgrade package over the hotspot connection:
and after delaying the preset time, re-executing the step of broadcasting the upgrade package through the hotspot connection.
8. The upgrading device is characterized by being applied to vehicle-mounted equipment and comprising:
the receiving module is used for receiving a data packet broadcasted by the terminal equipment, wherein the data packet comprises a hotspot name of the terminal equipment;
the hotspot connection module is used for establishing hotspot connection with the terminal equipment according to the hotspot name;
and the upgrading module is used for acquiring the upgrading packet broadcasted by the terminal equipment through hotspot connection and upgrading according to the upgrading packet.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the upgrade method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the upgrade method according to any one of claims 1 to 7.
CN202110533576.4A 2021-05-17 2021-05-17 Upgrading method and device, computer equipment and storage medium Pending CN113220328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110533576.4A CN113220328A (en) 2021-05-17 2021-05-17 Upgrading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110533576.4A CN113220328A (en) 2021-05-17 2021-05-17 Upgrading method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113220328A true CN113220328A (en) 2021-08-06

Family

ID=77092322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110533576.4A Pending CN113220328A (en) 2021-05-17 2021-05-17 Upgrading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113220328A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938386A (en) * 2021-09-30 2022-01-14 青岛海尔科技有限公司 Firmware upgrading method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533512A (en) * 2013-09-17 2014-01-22 英华达(上海)科技有限公司 Method, device and system for configuring and adding equipment into network group
CN104410969A (en) * 2014-11-07 2015-03-11 广东欧珀移动通信有限公司 Wireless fidelity (WIFI) hotspot hiding method and terminal equipment
CN105450702A (en) * 2014-08-27 2016-03-30 宇龙计算机通信科技(深圳)有限公司 Method and device for information transmission based on vehicle-borne equipment
CN108073407A (en) * 2016-11-10 2018-05-25 法乐第(北京)网络科技有限公司 Automobile data recorder firmware upgrade method and device
WO2019010761A1 (en) * 2017-07-12 2019-01-17 西安中兴新软件有限责任公司 Upgrade method, apparatus and system for internet of things terminal, terminal and storage medium
CN110187905A (en) * 2019-05-08 2019-08-30 Oppo广东移动通信有限公司 Method for updating system and mobile terminal
CN112423321A (en) * 2020-11-11 2021-02-26 浙江大华技术股份有限公司 Upgrading method and device based on wireless broadcast and electronic equipment
CN112732305A (en) * 2021-04-02 2021-04-30 北京新唐思创教育科技有限公司 Intelligent device upgrading method and device, mobile terminal, intelligent device and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533512A (en) * 2013-09-17 2014-01-22 英华达(上海)科技有限公司 Method, device and system for configuring and adding equipment into network group
CN105450702A (en) * 2014-08-27 2016-03-30 宇龙计算机通信科技(深圳)有限公司 Method and device for information transmission based on vehicle-borne equipment
CN104410969A (en) * 2014-11-07 2015-03-11 广东欧珀移动通信有限公司 Wireless fidelity (WIFI) hotspot hiding method and terminal equipment
CN108073407A (en) * 2016-11-10 2018-05-25 法乐第(北京)网络科技有限公司 Automobile data recorder firmware upgrade method and device
WO2019010761A1 (en) * 2017-07-12 2019-01-17 西安中兴新软件有限责任公司 Upgrade method, apparatus and system for internet of things terminal, terminal and storage medium
CN110187905A (en) * 2019-05-08 2019-08-30 Oppo广东移动通信有限公司 Method for updating system and mobile terminal
CN112423321A (en) * 2020-11-11 2021-02-26 浙江大华技术股份有限公司 Upgrading method and device based on wireless broadcast and electronic equipment
CN112732305A (en) * 2021-04-02 2021-04-30 北京新唐思创教育科技有限公司 Intelligent device upgrading method and device, mobile terminal, intelligent device and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938386A (en) * 2021-09-30 2022-01-14 青岛海尔科技有限公司 Firmware upgrading method and device

Similar Documents

Publication Publication Date Title
CN110460573B (en) ECU security upgrade management system and method applied to automobile
CN110856126B (en) Information reporting and receiving method, terminal equipment and storage medium
CN111263352A (en) OTA (over the air) upgrading method and system of vehicle-mounted equipment, storage medium and vehicle-mounted equipment
CN113094062A (en) Upgrading method and device
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
CN107682441B (en) Remote control method, mobile terminal and PC (personal computer) terminal
CN113359674A (en) Vehicle diagnostic system, method, electronic device, and storage medium
CN112672328A (en) Data transmission method, device and equipment and environmental data acquisition method
CN113220328A (en) Upgrading method and device, computer equipment and storage medium
CN113038421A (en) Automobile diagnosis method, automobile diagnosis device and automobile gateway
CN113141582B (en) Log export method and device, computer equipment and storage medium
CN113259494B (en) File storage method and device, electronic equipment and storage medium
CN114567552A (en) Vehicle-mounted V2X equipment upgrading method and device, computer equipment and storage medium
CN106411967A (en) Automobile electronic product remote upgrading method and system
US20030067902A1 (en) Method for providing multiple certified radio modules with a baseband
CN109639555B (en) Link layer message generation method, link layer message generation device and terminal equipment
CN105302617A (en) Method and sever for downloading application program
CN115474181A (en) Bluetooth device identification method and device, electronic device and storage medium
CN104331948A (en) Upgrade information sending method, receiving method, device and system for automobile data recorder
CN107231438A (en) Data-updating method and device
Blanco et al. One firmware to monitor’em all
CN107548058B (en) Equipment access method and intelligent terminal
CN103379472B (en) The method of download file, device and mobile terminal
CN112732606A (en) Information interaction method, system, equipment and computer readable storage medium

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

Application publication date: 20210806

RJ01 Rejection of invention patent application after publication