CN114244398A - Equipment upgrading method, system, device and computer readable storage medium - Google Patents

Equipment upgrading method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN114244398A
CN114244398A CN202111276780.9A CN202111276780A CN114244398A CN 114244398 A CN114244398 A CN 114244398A CN 202111276780 A CN202111276780 A CN 202111276780A CN 114244398 A CN114244398 A CN 114244398A
Authority
CN
China
Prior art keywords
connection gap
equipment
upgrade
target
upgraded
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.)
Granted
Application number
CN202111276780.9A
Other languages
Chinese (zh)
Other versions
CN114244398B (en
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Optical 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 Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202111276780.9A priority Critical patent/CN114244398B/en
Publication of CN114244398A publication Critical patent/CN114244398A/en
Application granted granted Critical
Publication of CN114244398B publication Critical patent/CN114244398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/7156Arrangements for sequence synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a device upgrading method, a system, a device and a computer storage medium, which are applied to a second device paired with a first device, wherein the device upgrading method comprises the following steps: receiving a connection gap expansion request sent by first equipment, wherein the connection gap expansion request comprises a target connection gap; expanding the current connection gap into a target connection gap, and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded; and when an upgrade request packet sent by the first device is received, executing write-in operation, wherein the write-in operation comprises writing the upgrade data in the upgrade request packet into the target flash, and the time of the write-in operation is less than the target connection gap. The method and the device can avoid that the pause running time of the MCU of the second equipment is greater than the connection gap of the MCU, ensure that the MCU of the second equipment can respond to the timed interruption at every time, and avoid the problem that the first equipment and the second equipment are out of synchronization in the upgrading process.

Description

Equipment upgrading method, system, device and computer readable storage medium
Technical Field
The present application relates to the field of device upgrade, and in particular, to a device upgrade method, system, apparatus, and computer readable storage medium.
Background
In the VR (Virtual Reality) technology, the HMD and the handle are mostly communicated using a 2.4G frequency band, and since the HMD and the handle are located between 2.400 GHz to 2.480GHz frequency bands, the frequency band has the advantages of strong anti-interference performance and long transmission distance, and is therefore widely used. In VR, in order to track a handle well, an HMD (Head Mounted Display) needs to report IMU (Inertial Measurement Unit) data of the handle to the HMD with high frequency and low delay, so as to achieve a good tracking effect. Because the minimum connection interval of BLE (bluetooth Low Energy) is 7.5ms, and the private protocol can be 2ms or even lower, so in VR, to achieve better tracking effect of the handle, the private protocol is a necessary trend.
When using proprietary protocols for OTA (Over-the-air technology) upgrades, frequency hopping schemes are used, because if the user's usage environment is too severely interfered by some fixed channels, the handle cannot be upgraded by OTA directly without using the frequency hopping scheme. In the OTA upgrading process, the HMD only needs to transmit the upgrading package to the handle, the flash of the HMD is not needed to be erased, the flash of the handle needs to be erased when the upgrading package sent by the HMD is received, and the MCU (micro controller Unit) is paused in the erasing process because the flash is erased on the MCU. MCU pause duration is greater than the connection clearance of handle, can lose the timing interruption that a certain amount was used for calculating the hopping channel, resumes the operation back at MCU, can lead to the hopping channel of calculating not conform with the reality, and then leads to wearing and handle communication unusual, appears in OTA upgrading in-process handle and wear disconnected problem with the head.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a device upgrading method, a device and a computer storage medium, which can avoid the condition that the pause time of the MCU of the second device is greater than the connection gap of the MCU, ensure that the MCU of the second device can respond to the timing interruption every time, and avoid the problem that the first device and the second device are disconnected due to asynchronous frequency hopping in the upgrading process.
In order to solve the above technical problem, the present application provides an apparatus upgrading method, which is applied to a second apparatus paired with a first apparatus, and the apparatus upgrading method includes:
receiving a connection gap expansion request sent by the first equipment, wherein the connection gap expansion request comprises a target connection gap;
expanding the current connection gap to the target connection gap, and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded;
and when an upgrade request packet sent by the first device is received, executing a write operation, wherein the write operation comprises writing the upgrade data in the upgrade request packet into a target flash, and the time of the write operation is less than the target connection gap.
Optionally, before receiving the request for enlarging the connection gap sent by the first device, the device upgrading method further includes:
and when an upgrade start package sent by the first device is received, erasing all the multiple pages of the flash in the backup area, wherein the multiple pages of the flash in the backup area comprise the target flash.
Optionally, the target connection gap is determined according to the number of bytes of valid upgrade data in the upgrade request packet.
Optionally, when the n second devices are the second devices to be upgraded, n is an integer greater than 1, the target connection gaps of each second device to be upgraded are the same, and the actual connection gap between the first device and each second device to be upgraded is 1/n of the target connection gap.
Optionally, the process of expanding the current connection gap to the target connection gap includes:
expanding the current connection gap to the target connection gap at the appointed time;
the process that the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded comprises the following steps:
and the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded at the appointed time.
Optionally, the first device is a head display, and the second device is a handle.
In order to solve the above technical problem, the present application further provides an equipment upgrading system, which is applied to a second device paired with a first device, and the equipment upgrading system includes:
a receiving module, configured to receive a connection gap expansion request sent by the first device, where the connection gap expansion request includes a target connection gap;
the expansion module is used for expanding the current connection gap into the target connection gap and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded;
and the upgrading module is used for executing write-in operation when an upgrading request packet sent by the first device is received, wherein the write-in operation comprises writing upgrading data in the upgrading request packet into a target flash, and the time of the write-in operation is less than the target connection gap.
Optionally, the first device is a head display, and the second device is a handle.
In order to solve the above technical problem, the present application further provides an apparatus upgrading apparatus, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the equipment upgrading method of any upper item when the computer program is executed.
To solve the above technical problem, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the device upgrade method according to any one of the above.
The application provides an equipment upgrading method, when first equipment needs to upgrade second equipment matched with the first equipment, a connection gap of the second equipment is enlarged to a target connection gap, the connection gap between the first equipment and the second equipment to be upgraded is enlarged, the target connection gap of the second equipment is larger than the time for writing upgrading data in flash, accordingly, the fact that the pause running time of an MCU of the second equipment is larger than the connection gap of the MCU is avoided, the MCU of the second equipment can respond to timing interruption every time, and the problem that the first equipment and the second equipment are disconnected due to asynchronous frequency hopping in the upgrading process is avoided. The application also provides an equipment upgrading system, an equipment upgrading device and a computer storage medium, and the equipment upgrading method has the same beneficial effects as the equipment upgrading method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments 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 that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart illustrating steps of a method for upgrading a device according to the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus upgrading system provided in the present application.
Detailed Description
The core of the application is to provide a device upgrading method, a system, a device and a computer storage medium, which can avoid that the pause time of the MCU of the second device is larger than the connection gap, ensure that the MCU of the second device can respond to the timing interruption every time, and avoid the problem that the first device and the second device are disconnected due to asynchronous frequency hopping in the upgrading process.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an apparatus upgrading method provided in the present application, where the apparatus upgrading method includes:
s101: receiving a connection gap expansion request sent by first equipment, wherein the connection gap expansion request comprises a target connection gap;
first, a first device and a second device are described, where the first device and the second device are in a pairing relationship, one first device may be paired with multiple second devices, and the first device sends an upgrade request to the second device to be upgraded, respectively.
Specifically, when the first device receives a request of upgrading the second device from the user, the first device sends a request for enlarging a connection gap to each of the second devices paired with the first device, where the request for enlarging the connection gap includes a target connection gap, and the target connection gap is determined according to the number of bytes of valid upgrade data in the upgrade request packet, and it is required to ensure that the target connection gap is longer than the time for writing the upgrade data.
S102: expanding the current connection gap into a target connection gap, and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded;
s103: and when an upgrade request packet sent by the first device is received, executing write-in operation, wherein the write-in operation comprises writing the upgrade data in the upgrade request packet into the target flash, and the time of the write-in operation is less than the target connection gap.
Specifically, after receiving the request for enlarging the connection gap sent by the first device, the second device enlarges the current connection gap to a target connection gap, so that the second device can complete receiving and transmitting actions in one connection gap, and has sufficient time to complete writing operation, thus ensuring that the MCU in the second device can respond to the timing interruption every time, and avoiding the problem of asynchronous update frequency bands.
Assuming that the target connection gap in the received request for expanding the connection gap is 6ms and the current connection gap is 2ms, the connection gap of the device itself is adjusted from 2ms to 6ms, and the target connection gap is determined according to the byte number of the effective upgrade data in the upgrade request packet, so that the second device can be ensured to write the upgrade data in the expanded target connection gap, and the problem that the write flash duration is longer than the connection gap of the second device to cause loss of timing interruption is avoided. Furthermore, after the second device sets the connection gap of itself, the second device sends response information to the first device, so that the first device enlarges the actual connection gap between itself and the second device to be upgraded, the connection gap between the first device and the second device not to be upgraded is not adjusted, the target connection gap of each second device is matched with the actual connection gap of the first device, and therefore, in different connection gaps, the two parties performing data transmission can synchronously hop frequency according to the frequency bands in the communication list.
As an optional embodiment, when all the n second devices are to-be-upgraded second devices, n is an integer greater than 1, the target connection gaps of all the to-be-upgraded second devices are the same, and the actual connection gaps between the first device and each of the to-be-upgraded second devices are 1/n target connection gaps.
Assuming that the first device has two paired second devices, wherein the second device a is a second device to be upgraded and the second device B does not need to be upgraded, if the connection gap between the first device and the second device a is 1ms and the connection gap between the first device and the second device B is 1ms during normal data transmission, in the upgrading process, the connection gap between the first device a and the second device B is adjusted to be a target connection gap of 6ms, and the connection gap between the first device and the second device a needs to be expanded to be 5ms, while the connection gap between the first device and the second device B remains unchanged and still remains to be 1ms, correspondingly, assuming that the second device a and the second device B are both devices to be upgraded, after the connection gap between the first device a and the second device B is adjusted to be the target connection gap of 6ms, the connection gap between the first device and the second device a needs to be expanded to be 3ms, the connection gap of the first device and the second device B is also enlarged to 3ms to ensure the matching of the connection gap. Under the second scheme, because the first device and the second device to be upgraded are relatively independent in each connection gap, a plurality of second devices to be upgraded can be upgraded simultaneously.
Of course, the setting of the connection gap needs to be determined according to the number of effective upgrade data bytes in the upgrade package, and if the number of effective upgrade data bytes in the upgrade package is too large, the connection gap can be set to be larger.
It can be seen that, in this embodiment, when a first device needs to upgrade a second device paired with the first device, a connection gap of the second device is expanded to a target connection gap, and the connection gap between the first device and the second device to be upgraded is expanded, and the target connection gap of the second device is greater than a time for writing upgrade data in a flash, so that a pause time of an MCU of the second device is prevented from being greater than the connection gap, it is ensured that the MCU of the second device can respond to a timer interrupt every time, and a problem of disconnection due to asynchronous frequency hopping of the first device and the second device in an upgrading process is prevented.
On the basis of the above-described embodiment:
as an optional embodiment, before receiving the request for enlarging the connection gap sent by the first device, the device upgrading method further includes:
and when an upgrade start package sent by the first equipment is received, erasing all the multiple pages of the flash in the backup area, wherein the multiple pages of the flash in the backup area comprise the target flash.
Specifically, when the upgrade is started, the first device firstly issues an upgrade start packet, the second device immediately erases all the multiple pages of flash in the backup area after receiving the packet, after the erase is completed, the first device and the second device have the problem of frequency band asynchronization, then the first device and the second device are disconnected and connected back to back, the backup area is completely erased before the formal upgrade is not started, and then the disconnection and connection back to back is currently used for avoiding the problem that the flash is erased in the upgrade process, so that the synchronous frequency hopping cannot be realized. Further, the upgrade start packet may also be issued only to the second device to be upgraded.
As an alternative embodiment, the process of expanding the current connection gap to the target connection gap includes:
expanding the current connection gap to a target connection gap at appointed time;
the process that the first device enlarges the actual connection gap between the first device and the second device to be upgraded comprises the following steps:
and the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded at the appointed time.
Specifically, when the first device receives an upgrade command sent by the AP, the first device sends the command to the second device paired with the first device, and when the second device receives the command, the respective connection gap is set to the target connection gap, and the two devices synchronously switch the size of the connection gap at regular time and after a predetermined time, so as to achieve the purpose of synchronous frequency hopping. When part of second equipment is upgraded, after synchronous frequency hopping, the first equipment starts to transmit an upgrade request packet to the second equipment to be upgraded, the second equipment which is not upgraded normally reports feedback data, and the infrared lamp is normally synchronized, so that the first equipment can still normally track the second equipment which is not upgraded, and a user can still normally use the second equipment which is not upgraded.
The OTA upgrading process at VR product can be used to the scheme that this application provided, and wherein, first equipment can be for the head shows, and the second equipment is the handle, when needs carry out OTA, adopts the scheme of this application not only to realize that the handle upgrades simultaneously about, has improved upgrading efficiency, make full use of in addition the joint gap time, makes whole OTA time shorten greatly. In addition, a user can set one handle or two handles to be upgraded according to selection in the upgrading process, if only one handle is upgraded, the other handle can be normally used, and the user experience effect is improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an apparatus upgrading system provided in the present application, and the apparatus upgrading system is applied to a second apparatus paired with a first apparatus, and includes:
a receiving module 1, configured to receive a connection gap expansion request sent by a first device, where the connection gap expansion request includes a target connection gap;
the expanding module 2 is used for expanding the current connection gap into a target connection gap and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded;
and the upgrading module 3 is configured to execute a write operation when receiving an upgrading request packet sent by the first device, where the write operation includes writing upgrading data in the upgrading request packet into the target flash, and a time of the write operation is less than a target connection gap.
It can be seen that, in this embodiment, when a first device needs to upgrade a second device paired with the first device, a connection gap of the second device is expanded to a target connection gap, and the connection gap between the first device and the second device to be upgraded is expanded, and the target connection gap of the second device is greater than a time for writing upgrade data in a flash, so that a pause time of an MCU of the second device is prevented from being greater than the connection gap, it is ensured that the MCU of the second device can respond to a timer interrupt every time, and a problem of disconnection due to asynchronous frequency hopping of the first device and the second device in an upgrading process is prevented.
As an alternative embodiment, the first device is a head display and the second device is a handle.
As an optional embodiment, before receiving the request for enlarging the connection gap sent by the first device, the device upgrading method further includes:
and when an upgrade start package sent by the first equipment is received, erasing all the multiple pages of the flash in the backup area, wherein the multiple pages of the flash in the backup area comprise the target flash.
As an alternative embodiment, the target connection gap is determined based on the number of bytes of valid upgrade data in the upgrade request packet.
As an optional embodiment, when all the n second devices are to-be-upgraded second devices, n is an integer greater than 1, the target connection gaps of all the to-be-upgraded second devices are the same, and the actual connection gaps between the first device and each of the to-be-upgraded second devices are 1/n target connection gaps.
As an alternative embodiment, the process of expanding the current connection gap to the target connection gap includes:
expanding the current connection gap to a target connection gap at appointed time;
the process that the first device enlarges the actual connection gap between the first device and the second device to be upgraded comprises the following steps:
and the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded at the appointed time.
On the other hand, the present application further provides an apparatus upgrading device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the equipment upgrading method described in any one of the upper-level embodiments when executing the computer program.
Specifically, the memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor, when executing the computer program stored in the memory, may perform the following steps: receiving a connection gap expansion request sent by first equipment, wherein the connection gap expansion request comprises a target connection gap; expanding the current connection gap into a target connection gap, and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded; and when an upgrade request packet sent by the first device is received, executing write-in operation, wherein the write-in operation comprises writing the upgrade data in the upgrade request packet into the target flash, and the time of the write-in operation is less than the target connection gap.
It can be seen that, in this embodiment, when a first device needs to upgrade a second device paired with the first device, a connection gap of the second device is expanded to a target connection gap, and the connection gap between the first device and the second device to be upgraded is expanded, and the target connection gap of the second device is greater than a time for writing upgrade data in a flash, so that a pause time of an MCU of the second device is prevented from being greater than the connection gap, it is ensured that the MCU of the second device can respond to a timer interrupt every time, and a problem of disconnection due to asynchronous frequency hopping of the first device and the second device in an upgrading process is prevented.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: and when an upgrade start package sent by the first equipment is received, erasing all the multiple pages of the flash in the backup area, wherein the multiple pages of the flash in the backup area comprise the target flash.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: and determining the target connection gap according to the byte number of the effective upgrading data in the upgrading request packet.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: when the n second devices are all to-be-upgraded second devices, n is an integer larger than 1, the target connection gaps of the second devices to be upgraded are set to be the same, and the actual connection gaps of the first devices and the second devices to be upgraded are 1/n target connection gaps.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: expanding the current connection gap to a target connection gap at appointed time; and the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded at the appointed time.
On the basis of the above embodiment, as a preferred embodiment, the device upgrading apparatus further includes:
and the input interface is connected with the processor and used for acquiring computer programs, parameters and instructions imported from the outside and storing the computer programs, the parameters and the instructions into the memory under the control of the processor. The input interface may be coupled to an input device for receiving parameters or instructions manually input by a user. The input device can be a touch layer covered on a display screen, and can also be a key, a track ball or a touch pad arranged on a terminal shell.
And the display unit is connected with the processor and is used for displaying the data sent by the processor. The display unit may be a liquid crystal display or an electronic ink display, etc.
And the network port is connected with the processor and is used for carrying out communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
In another aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the device upgrade method as in any one of the above.
In particular, the computing storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: receiving a connection gap expansion request sent by first equipment, wherein the connection gap expansion request comprises a target connection gap; expanding the current connection gap into a target connection gap, and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded; and when an upgrade request packet sent by the first device is received, executing write-in operation, wherein the write-in operation comprises writing the upgrade data in the upgrade request packet into the target flash, and the time of the write-in operation is less than the target connection gap.
It can be seen that, in this embodiment, when a first device needs to upgrade a second device paired with the first device, a connection gap of the second device is expanded to a target connection gap, and the connection gap between the first device and the second device to be upgraded is expanded, and the target connection gap of the second device is greater than a time for writing upgrade data in a flash, so that a pause time of an MCU of the second device is prevented from being greater than the connection gap, it is ensured that the MCU of the second device can respond to a timer interrupt every time, and a problem of disconnection due to asynchronous frequency hopping of the first device and the second device in an upgrading process is prevented.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: and when an upgrade start package sent by the first equipment is received, erasing all the multiple pages of the flash in the backup area, wherein the multiple pages of the flash in the backup area comprise the target flash.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: and determining the target connection gap according to the byte number of the effective upgrading data in the upgrading request packet.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: when the n second devices are all to-be-upgraded second devices, n is an integer larger than 1, the target connection gaps of the second devices to be upgraded are set to be the same, and the actual connection gaps of the first devices and the second devices to be upgraded are 1/n target connection gaps.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: expanding the current connection gap to a target connection gap at appointed time; and the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded at the appointed time.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A device upgrade method, applied to a second device paired with a first device, includes:
receiving a connection gap expansion request sent by the first equipment, wherein the connection gap expansion request comprises a target connection gap;
expanding the current connection gap to the target connection gap, and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded;
and when an upgrade request packet sent by the first device is received, executing a write operation, wherein the write operation comprises writing the upgrade data in the upgrade request packet into a target flash, and the time of the write operation is less than the target connection gap.
2. The device upgrade method according to claim 1, wherein before receiving the request for enlarging connection gaps sent by the first device, the method further comprises:
and when an upgrade start package sent by the first device is received, erasing all the multiple pages of the flash in the backup area, wherein the multiple pages of the flash in the backup area comprise the target flash.
3. The device upgrade method according to claim 1, wherein the target connection gap is determined according to a number of bytes of valid upgrade data in the upgrade request packet.
4. The device upgrading method according to claim 1, wherein when n pieces of the second devices are the second devices to be upgraded, n is an integer greater than 1, a target connection gap of each second device to be upgraded is the same, and an actual connection gap between the first device and each second device to be upgraded is 1/n of the target connection gap.
5. The device upgrade method according to any one of claims 1 to 4, wherein the process of expanding the current connection gap to the target connection gap comprises:
expanding the current connection gap to the target connection gap at the appointed time;
the process that the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded comprises the following steps:
and the first equipment enlarges the actual connection gap between the first equipment and the second equipment to be upgraded at the appointed time.
6. The device upgrade method according to claim 5, wherein the first device is a head-up display and the second device is a handle.
7. An apparatus upgrade system applied to a second apparatus paired with a first apparatus, the apparatus upgrade system comprising:
a receiving module, configured to receive a connection gap expansion request sent by the first device, where the connection gap expansion request includes a target connection gap;
the expansion module is used for expanding the current connection gap into the target connection gap and sending response information to the first equipment so that the first equipment can expand the actual connection gap between the first equipment and the second equipment to be upgraded;
and the upgrading module is used for executing write-in operation when an upgrading request packet sent by the first device is received, wherein the write-in operation comprises writing upgrading data in the upgrading request packet into a target flash, and the time of the write-in operation is less than the target connection gap.
8. The device upgrade system according to claim 7, wherein the first device is a head-up display and the second device is a handle.
9. An apparatus upgrade device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the device upgrade method according to any one of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the device upgrade method according to any one of claims 1 to 6.
CN202111276780.9A 2021-10-29 2021-10-29 Equipment upgrading method, system, device and computer readable storage medium Active CN114244398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111276780.9A CN114244398B (en) 2021-10-29 2021-10-29 Equipment upgrading method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111276780.9A CN114244398B (en) 2021-10-29 2021-10-29 Equipment upgrading method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114244398A true CN114244398A (en) 2022-03-25
CN114244398B CN114244398B (en) 2023-02-24

Family

ID=80743379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111276780.9A Active CN114244398B (en) 2021-10-29 2021-10-29 Equipment upgrading method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114244398B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246628A1 (en) * 2011-03-25 2012-09-27 Hon Hai Precision Industry Co., Ltd. Firmware updating system and method
US20130007183A1 (en) * 2011-06-30 2013-01-03 Sorenson Iii James Christopher Methods And Apparatus For Remotely Updating Executing Processes
US20160098443A1 (en) * 2014-10-01 2016-04-07 Juergen Specht Data Access Management During Zero Downtime Upgrade
CN110688648A (en) * 2019-09-29 2020-01-14 北京小米移动软件有限公司 Security chip firmware updating method and device
CN112732305A (en) * 2021-04-02 2021-04-30 北京新唐思创教育科技有限公司 Intelligent device upgrading method and device, mobile terminal, intelligent device and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246628A1 (en) * 2011-03-25 2012-09-27 Hon Hai Precision Industry Co., Ltd. Firmware updating system and method
US20130007183A1 (en) * 2011-06-30 2013-01-03 Sorenson Iii James Christopher Methods And Apparatus For Remotely Updating Executing Processes
US20160098443A1 (en) * 2014-10-01 2016-04-07 Juergen Specht Data Access Management During Zero Downtime Upgrade
CN110688648A (en) * 2019-09-29 2020-01-14 北京小米移动软件有限公司 Security chip firmware updating method and device
CN112732305A (en) * 2021-04-02 2021-04-30 北京新唐思创教育科技有限公司 Intelligent device upgrading method and device, mobile terminal, intelligent device and medium

Also Published As

Publication number Publication date
CN114244398B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
US10575340B2 (en) Radio communication apparatus and radio communication method
US20180248414A1 (en) Data processing method, charging device and mobile terminal
CN109271125A (en) Screen display control method, device and the storage medium of split type terminal device
EP3258737B1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN108923819B (en) Communication connection method, equipment and system
CN110996265B (en) Wireless communication device, wireless communication method, and storage medium
CN111163387B (en) TWS earphone upgrading method and device, charging box and storage medium
CN104239097A (en) Method and system for upgrading fitting by virtue of mobile terminal, and mobile terminal
CN109344098A (en) Data manipulation method and device between master-slave equipment
CN104461631A (en) OTA (over-the-air) technology based system upgrading method and OTA technology based system upgrading device
WO2017049549A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN114244398B (en) Equipment upgrading method, system, device and computer readable storage medium
CN103744478A (en) Bluetooth wireless display and control method thereof
JP6741047B2 (en) Wireless communication device, wireless communication method, and program
CN110850737A (en) Socket and timing method, system and computer readable storage medium
CN111615030A (en) Upgrading method, device and medium for novel TWS earphone
CN111701232A (en) Game picture processing method and device and electronic device
CN110995462B (en) Cloud host function expansion method, system, equipment and computer storage medium
EP2835712A1 (en) Wireless extension card and method for data storage
CN114222370A (en) Networking communication time slot allocation method, device and system
CN104581352B (en) The method and system of fast positioning in a kind of TV box
CN101998691B (en) Method, system and device for data transmission
CN114007278B (en) Multi-device pairing method, system, device and computer readable storage medium
JP7095444B2 (en) Wireless communication equipment, wireless communication systems, wireless communication methods, and programs
US20150282193A1 (en) Method and apparatus for avoiding communication interference in wireless communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221213

Address after: No. 500 Songling Road, Laoshan District, Qingdao City, Shandong Province, 266100

Applicant after: GOERTEK TECHNOLOGY Co.,Ltd.

Address before: 261031 workshop 1, phase III, Geer Photoelectric Industrial Park, 3999 Huixian Road, Yongchun community, Qingchi street, Weifang High tech Zone, Weifang City, Shandong Province

Applicant before: GoerTek Optical Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant