CN108874433B - Firmware upgrading method and system for head-mounted display equipment and storage medium - Google Patents

Firmware upgrading method and system for head-mounted display equipment and storage medium Download PDF

Info

Publication number
CN108874433B
CN108874433B CN201811108486.5A CN201811108486A CN108874433B CN 108874433 B CN108874433 B CN 108874433B CN 201811108486 A CN201811108486 A CN 201811108486A CN 108874433 B CN108874433 B CN 108874433B
Authority
CN
China
Prior art keywords
head
mounted display
display device
firmware
mode
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.)
Active
Application number
CN201811108486.5A
Other languages
Chinese (zh)
Other versions
CN108874433A (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 Inc
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 CN201811108486.5A priority Critical patent/CN108874433B/en
Publication of CN108874433A publication Critical patent/CN108874433A/en
Application granted granted Critical
Publication of CN108874433B publication Critical patent/CN108874433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a firmware upgrading method of a head-mounted display device, which is applied to the head-mounted display device based on a PC (personal computer), the whole upgrading process is divided into a plurality of sub-steps, a control terminal (namely the PC) sends a next step of execution command to the head-mounted display device only after the head-mounted display device finishes the last step and returns relevant confirmation information, namely in the whole firmware upgrading process, the head-mounted display device is controlled by the control terminal, the upgrading process is completely transparent and visible, faults possibly occurring in any process are easier to locate and quickly complete and repair, various problems possibly occurring in the whole upgrading process which is finished only by the head-mounted display device alone can be obviously reduced, and the user experience is better. The application also discloses a firmware upgrading system and a computer readable storage medium of the head-mounted display device, and the beneficial effects are achieved.

Description

Firmware upgrading method and system for head-mounted display equipment and storage medium
Technical Field
The present disclosure relates to the field of firmware update technologies, and in particular, to a firmware update method and system for a head-mounted display device, and a computer-readable storage medium.
Background
With the development of integrated circuit technology, electronic devices are gradually developing towards function diversification and miniaturization, and with the development and application of VR (Virtual Reality) technology and AR (Augmented Reality) technology, various head-mounted display devices based on the two technologies are gradually appearing in the field of vision of the public, which generally present a magic picture in front of a user in a shape similar to a helmet, assisted by a special display screen and a signal source.
When firmware is upgraded, the head-mounted display device based on the PC generally needs to establish connection with the control terminal, acquire the latest version of firmware through data connection established with the control terminal, and independently complete the upgrading process after acquiring the latest version of firmware.
The upgrading mode is completely opaque in the upgrading process, and whether the upgrading is finished or not and how the upgrading condition is finished can be judged only based on the feedback result after the upgrading is finished. Meanwhile, the upgrading process is only completed by the head-mounted display device, so that the whole upgrading process is completely uncontrollable, the possibility that the equipment is unavailable after the upgrading is failed is greatly increased, and the user experience is very influenced.
Disclosure of Invention
The application aims to provide a firmware upgrading method of a head-mounted display device, which is applied to the head-mounted display device based on a PC (personal computer), the whole upgrading process is divided into a plurality of sub-steps, a control terminal (namely the PC) sends a next step of execution command to the head-mounted display device only after the head-mounted display device finishes the last step and returns relevant confirmation information, namely in the whole firmware upgrading process, the head-mounted display device is under the control of the control terminal, the upgrading process is completely transparent and visible, faults possibly occurring in any process are more easily positioned and quickly repaired, various problems possibly occurring in the whole upgrading process which is only finished by the head-mounted display device alone can be remarkably reduced, and the user experience is better.
Another object of the present application is to provide a firmware upgrade system and a computer-readable storage medium for a head-mounted display device.
In order to achieve the above object, the present application provides a firmware upgrading method for a head-mounted display device, where the head-mounted display device establishes a data connection with a control terminal, and the firmware upgrading method includes:
the control terminal checks the availability of the latest firmware according to the received firmware upgrading instruction;
when the availability of the latest firmware passes the verification, the control terminal sends a mode query instruction to the head-mounted display equipment;
the head-mounted display equipment returns to the current mode according to the mode query instruction; wherein the modes comprise an upgrade mode and a working mode;
when the control terminal determines that the head-mounted display equipment is currently in the upgrading mode, the control terminal sends a firmware upgrading packet carrying the latest firmware to the head-mounted display equipment;
the head-mounted display equipment burns each data file in the firmware upgrade package under a preset directory, and returns a completion signal to the control terminal after all burning is completed;
the control terminal sends a working mode change instruction to the head-mounted display equipment according to the completion signal;
and the head-mounted display equipment changes the current mode to the working mode according to the working mode change instruction.
Optionally, before the head-mounted display device burns each data file in the firmware upgrade package under a preset directory, the method further includes:
the head-mounted display equipment verifies the integrity and the availability of the received firmware upgrade package;
and when the integrity and availability check of the firmware upgrade package is not passed, returning an error signal that the firmware upgrade package is unavailable through a first path.
Optionally, the firmware upgrading method further includes:
when the control terminal determines that the head-mounted display device is currently in the working mode, the control terminal sends an upgrading mode changing instruction to the head-mounted display device;
and the head-mounted display equipment changes the current mode to the upgrading mode according to the upgrading mode changing instruction.
Optionally, the firmware upgrading method further includes:
and when the head-mounted display equipment fails to enter the upgrading mode successfully according to the upgrading mode change instruction, returning an error signal that the equipment is not ready for firmware upgrading through a second path.
Optionally, the burning, by the head-mounted display device, each data file in the firmware upgrade package in a preset directory includes:
and the head-mounted display equipment sequentially burns each data file in the firmware upgrade package in the preset directory.
Optionally, before all data files in the firmware upgrade package are completely burned, the method further includes:
and if any data file in the firmware upgrade package has an error in the burning process, stopping the subsequent burning operation of other data files, and returning an error signal carrying a data file burning log through a third path.
Optionally, the changing, by the head-mounted display device, the current mode to the working mode according to the working mode changing instruction includes:
and the head-mounted display equipment executes the operation mode restarting operation according to the operation mode changing instruction so as to restart the operating system according to the starting process of the operation mode and enter the operation mode.
Optionally, after all the burning is completed and before a completion signal is returned to the control terminal, the method further includes:
the head-mounted display equipment pre-runs the burnt latest firmware;
judging whether the time length of the latest firmware successfully pre-running exceeds a preset time length or not;
if not, returning an error signal of failure of pre-operation through a fourth path.
In order to achieve the above object, the present application further provides a firmware upgrading system for a head-mounted display device, including a control terminal and a head-mounted display device, where the head-mounted display device is connected to the control terminal through a data connection, and the firmware upgrading system includes:
the control terminal is used for verifying the availability of the latest firmware according to the received firmware upgrading instruction; after the availability of the latest firmware passes the verification, sending a mode query instruction to the head-mounted display equipment; when the head-mounted display equipment is determined to be in an upgrading mode currently according to the information returned by the head-mounted display equipment, sending a firmware upgrading packet carrying the latest firmware to the head-mounted display equipment; sending a working mode change instruction to the head-mounted display equipment according to the received completion signal;
the head-mounted display equipment is used for returning to the current mode according to the mode query instruction; burning each data file in the received firmware upgrade package in a preset directory, and returning a completion signal to the control terminal after all burning is completed; changing the current mode to the working mode according to the working mode changing instruction;
wherein the modes of the head mounted display device include the upgrade mode and the working mode.
To achieve the above object, the present application also provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the firmware upgrade method for a head-mounted display device as described above.
Obviously, the firmware upgrading method for the head-mounted display device provided by the application is applied to the head-mounted display device based on the PC, the whole upgrading process is divided into a plurality of sub-steps, the control terminal (namely the PC) sends a next step of execution command to the head-mounted display device only after the head-mounted display device finishes the last step and returns the related confirmation information, namely in the whole firmware upgrading process, the head-mounted display device is under the control of the control terminal, the upgrading process is completely transparent and visible, faults possibly occurring in any process are more easily positioned and quickly repaired, various problems possibly occurring in the whole upgrading process which is only completed by the head-mounted display device alone can be remarkably reduced, and the user experience is better. The application also provides a firmware upgrading system and a computer readable storage medium of the head-mounted display device, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a firmware upgrading method for a head-mounted display device according to an embodiment of the present disclosure;
fig. 2 is a timing diagram of a firmware upgrading method for a head-mounted display device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a firmware upgrading system of a head-mounted display device according to an embodiment of the present disclosure.
Detailed Description
The core of some embodiments of the present application is to provide a firmware upgrading method and system for a head-mounted display device, and a computer-readable storage medium, which are applied to a PC-based head-mounted display device, and divide the whole upgrading process into a plurality of sub-steps, where a control terminal (i.e., a PC) sends a next step execution command to the head-mounted display device only after the head-mounted display device completes a previous step and returns relevant confirmation information, that is, in the whole firmware upgrading process, the head-mounted display device is under the control of the control terminal, and the upgrading process is completely transparent and visible, so that a fault that may occur in any process is easier to locate and complete quickly to repair, various problems that may occur in the whole process when the head-mounted display device completes upgrading alone can be significantly reduced, and user experience is better.
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.
Example one
With reference to fig. 1, fig. 1 is a flowchart of a firmware upgrading method for a head-mounted display device according to an embodiment of the present application, and the present application provides a method for a head-mounted display device that needs to be collocated with a control terminal to participate in a firmware upgrading process together with the head-mounted display device, which specifically includes the following steps:
s101: the control terminal checks the availability of the latest firmware according to the received firmware upgrading instruction;
the step aims to verify the availability of the latest firmware by a control terminal (namely a PC), and the purpose of verifying the availability is to judge whether the latest firmware is unavailable due to various possible unexpected conditions in the transmission process and the storage process, such as storage errors, damage and the like, so as to prevent the unavailable latest firmware from being directly issued to head-mounted display equipment without verification in the step, and further to cause a series of upgrading failure problems due to source data errors.
Specifically, the availability check may be implemented in various ways, for example, by using a check method of an MD5 value, using a check method of whether attribute information is complete, using a test run method, and the like, which are not specifically limited herein, as long as the purpose of availability check can be achieved, and a person skilled in the art may give various specific check methods in combination with different practical application scenarios under the guidance of the idea of this step, and details are not repeated.
S102: when the availability of the latest firmware passes the verification, the control terminal sends a mode query instruction to the head-mounted display equipment;
on the basis that the usability check in step S101 passes, the control terminal in this step sends a mode query instruction to the head-mounted display device, aiming to select a corresponding subsequent processing step according to the mode in which the head-mounted display device is currently located. It should be noted that the head-mounted display device provided in the present application has two modes, namely an upgrade mode and a working mode, where the working mode indicates that the device can implement a corresponding display function in a normal use mode, and the upgrade mode is a system environment dedicated for firmware upgrade and is a special system environment independent of the system environment of the working mode, and has the characteristic of not exiting the upgrade mode until a mode change instruction for changing the upgrade mode into the working mode is not received, so as to ensure that the device still enters the upgrade mode after the last upgrade is interrupted, so as to prevent the upgrade terminal from affecting the system files in the working mode, and the mode change instruction is generated and issued by the control terminal after a completion message returned after the head-mounted display device completes one firmware upgrade, therefore, the influence on the normal use of the head-mounted display equipment after the midway upgrading failure caused by various unexpected factors can be effectively isolated.
S103: the head-mounted display equipment returns to the current mode according to the mode query instruction;
on the basis of S102, in this step, the head-mounted display device queries the current mode of the head-mounted display device according to the received mode query instruction, and returns current mode information to the control terminal.
S104: when the control terminal determines that the head-mounted display equipment is currently in an upgrading mode, the control terminal sends a firmware upgrading packet carrying the latest firmware to the head-mounted display equipment;
this step is established on the basis that the firmware in the upgrade mode is obtained by the query in S103 and returned to the control terminal, so that the control terminal can determine that the head-mounted display device in the upgrade mode has met the firmware upgrade condition, and therefore, a firmware upgrade packet carrying the latest firmware is sent to the head-mounted display device, so that the head-mounted upgrade device realizes firmware upgrade according to the firmware upgrade packet. The firmware upgrade package may further include some other auxiliary configuration files or data in addition to the latest firmware, so that the head-mounted display device completes the use of the latest firmware according to the parameters provided in the files or data.
S105: the head-mounted display equipment burns each data file in the firmware upgrade package under a preset directory, and returns a completion signal to the control terminal after all burning is completed;
on the basis of the step S104, the head-mounted display device burns each data file in the received firmware upgrade package in the preset directory, and returns a completion signal to the control terminal after all burning is completed. The latest firmware in the firmware upgrade package may be composed of a plurality of data files, or a plurality of data files may be packaged into one large file in a packaging manner, and the plurality of data files may need to be respectively burned into different directories to finally achieve the purpose of firmware upgrade, and generally, the burning of the data files does not have a mutual dependency relationship, so that the burning can be performed sequentially or simultaneously in a serial or parallel manner. Furthermore, if the recording of any data file is abnormal in the recording process, the recording of other subsequent data files can be suspended, and corresponding error information or recording work logs can be generated and fed back to the control terminal, so that corresponding operation can be performed according to subsequent instructions given by the control terminal.
Specifically, it may be tried to repeatedly issue a firmware upgrade package to see whether the problem that occurs before the burning can be solved by performing the burning again, and if the problem cannot be solved by this method, it is indicated that the problem is not caused by an accidental factor, and other information needs to be combined to determine a specific error cause, such as whether a storage medium has a bad track.
It should be noted that the preset directory where the data file burning operation is performed in the upgrade mode is different from the location of the original firmware when the device normally works, so as to prevent, in an isolated manner, the problem that the device cannot be normally used due to the influence of various factors on the normal original firmware.
Furthermore, when the head-mounted display device receives the latest firmware, the availability and integrity of the latest firmware can be checked again to ensure that the received latest firmware is completely consistent with the latest firmware issued by the control terminal.
Furthermore, before returning the completion signal to the control terminal, the burned latest firmware may be pre-run in the upgrade mode for a certain time to find whether the latest firmware is successfully applicable to the specific device, and the completion signal may be returned to the control terminal only after the successful pre-run time exceeds the preset time, and if the unsuccessful pre-run time exceeds the preset time, the problems and errors occurring therein may be fed back to the control terminal.
S106: the control terminal sends a working mode change instruction to the head-mounted display equipment according to the completion signal;
s107: and the head-mounted display equipment changes the current mode to the working mode according to the working mode change instruction.
On the basis of S105, in S106, the control terminal that receives the completion signal sends an operating mode change instruction to the head-mounted display device, so that the head-mounted display device changes the upgrade mode in which the head-mounted display device is currently located to the operating mode under the operating mode change instruction in S107, and the control terminal can formally provide a corresponding function for the user based on the upgraded firmware after the mode change is completed.
In some embodiments, the mode change scheme may specifically be: the head-mounted display device executes the operation mode restart operation according to the operation mode change instruction, so as to restart the operating system according to the start flow of the operation mode and enter the operation mode, that is, by sending a special restart instruction, the head-mounted display device selects a branch entering the operation mode in the next restart process, rather than continuing to go to a branch entering the upgrade mode. Of course, there are head-mounted display devices that can perform system environment switching without restarting, and adaptive changes are possible.
Furthermore, when the current mode cannot be successfully converted due to various possible reasons, the error can be fed back to the control terminal through a preset path, so that the control terminal can timely know the fault occurrence position and adopt a corresponding repairing means.
It should be noted that there may be another case different from S104, that is, the head-mounted display device is currently in the working mode, and therefore, the mode of the head-mounted display device needs to be changed to the upgrading mode to perform the subsequent firmware upgrading step. The mode change method is referred to the above method for changing from the upgrade mode to the working mode, except that the method is similar to the method for changing from the working mode to the upgrade mode, and thus, the description is omitted.
It should be noted that, when any one of the following abnormal conditions occurs due to various possible influencing factors in the above steps, the same or different information transmission paths may be selected to return corresponding error signals to the control terminal according to actual conditions, so that the control terminal may quickly determine the current abnormal problem according to different error signals received in the same path or the same error signals received in different paths, and timely repair the abnormal problem by using corresponding means.
The abnormal conditions include: the usability verification of the firmware upgrade package fails, the head-mounted display device fails to enter an upgrade mode or a normal mode according to the success, an error occurs in any data file in the firmware upgrade package in the burning process, and the time length of the latest firmware which is successfully pre-run does not exceed the preset time length.
Based on the technical scheme, the firmware upgrading method for the head-mounted display device is applied to the head-mounted display device based on the PC, the whole upgrading process is divided into a plurality of sub-steps, the control terminal (namely the PC) sends a next step of execution command to the head-mounted display device only after the head-mounted display device finishes the last step and returns relevant confirmation information, namely in the whole firmware upgrading process, the head-mounted display device is under the control of the control terminal, the upgrading process is completely transparent and visible, faults possibly occurring in any process are easier to locate and quickly complete repair, various problems possibly occurring in the whole upgrading process which is only completed by the head-mounted display device alone can be remarkably reduced, and the user experience is better.
Example two
With reference to fig. 2 and fig. 2, a timing diagram of a firmware upgrade method for a head-mounted display device according to an embodiment of the present disclosure is shown, where this embodiment describes, on the basis of the first embodiment, an interaction occurring between a control terminal and the head-mounted display device by using the timing diagram in combination with branches that may occur in an entire firmware upgrade process, and specifically includes the following steps:
01-check availability of the latest firmware: the execution main body of the step is a control terminal, the availability of the latest firmware to be issued to the head-mounted display equipment is checked locally at the control terminal, and the step is skipped to the step 02 after the availability is checked;
02-pattern query instruction: in the step, the control terminal sends a mode query instruction to the head-mounted display equipment so as to execute different subsequent processing operations according to the current mode returned by the head-mounted display equipment, and finally, firmware upgrading is realized;
03-query current mode: the main execution body of this step is a head-mounted display device, and after receiving a mode query instruction issued by a control terminal, the main execution body queries the current mode of the display device, and there are two possibilities: a working mode or an upgrade mode;
04-1-the current mode is the working mode: in the step, the head-mounted display equipment returns the information of the current working mode to the control terminal;
04-2-the current mode is the upgrade mode: in the step, the head-mounted display equipment returns the information that the head-mounted display equipment is currently in the upgrading mode to the control terminal;
step 04-1 and step 04-2 are two conflicting steps, only one of which will exist at a time.
05-1-upgrade mode change instruction: this step is established on the basis that the control terminal confirms that the head-mounted display device is currently in the working mode according to the received information (which is a response made by the control terminal according to step 04-1), the control terminal sends an upgrade mode change instruction to the head-mounted display device, so as to enable the head-mounted display device currently in the working mode to change the current mode of the head-mounted display device to the upgrade mode, so as to upgrade the firmware;
06-1-change the current mode to the upgrade mode: the main execution body of the step is head-mounted display equipment, which is an operation executed by the head-mounted display equipment in response to the upgrade mode change instruction sent in the step 05-1, namely, the head-mounted display equipment changes the current mode of the head-mounted display equipment to the upgrade mode according to the received upgrade mode change instruction, and the operation goes to the step 04-2 after the change is completed;
05-2-firmware upgrade package: the step is established on the basis that the control terminal confirms that the head-mounted display equipment is currently in the upgrading mode according to the received information (the control terminal responds according to the step 04-2), and the control terminal issues a firmware upgrading packet carrying the latest firmware to the head-mounted display equipment;
06-2-checking the firmware upgrade package: the main execution body of the step is head-mounted display equipment, which is the operation executed by the head-mounted display equipment in response to the firmware upgrade package sent in the step 05-2, namely, the head-mounted display equipment verifies the received firmware upgrade package again so as to eliminate the influence of the data caused by the abnormity in the transmission process;
07-1-check fail signal: this step is established on the basis that the head-mounted display device fails to verify the received firmware upgrade package in the step 06-2, and it is indicated that the received latest firmware may be inconsistent with the original latest firmware due to various interference factors in the data transmission process, so the head-mounted display device needs to feed back a verification failure signal to the control terminal to let the control terminal know the error reason in time;
07-2-burning new firmware after verification passes: this step is established on the basis that the head-mounted display device passes the verification when the received firmware upgrade package is verified in step 06-2, which indicates that the latest firmware in the firmware upgrade package is consistent in the whole data transmission process, so that the burning conditions of the latest firmware are met, that is, the latest firmware is to be burned in the preset directory of the head-mounted display device;
08-1 burning error signal: this step is established on the basis that the head-mounted display device has an error in the process of burning the new firmware in the step 07-2, which indicates that the data file is wrongly burned or is not successfully burned into the preset directory in the burning process, so that the head-mounted display device needs to feed back a burning error signal to the control terminal to enable the control terminal to know the error reason in time;
pre-running after the 08-2 burning is finished: on the basis that errors occur in the whole burning process of the new firmware in the step 07-2, the head-mounted display device shows that the latest firmware is smoothly burned in the preset directory of the head-mounted display device, so that next pre-operation can be performed, namely, the head-mounted display device pre-operates the latest firmware burned in the local to observe the operation condition of the latest firmware on the head-mounted display device;
09-1-Pre-run error Signal: on the basis that errors occur in the process that the head-mounted display device pre-runs the latest firmware in the step 08-2, it is indicated that the errors are found or the pre-running is not successful in the pre-running process and exceeds the preset time length, and the expected pre-running requirement is not met, so that the head-mounted display device needs to feed back a pre-running error signal to the control terminal to enable the control terminal to know the error reason in time;
09-2-upgrade complete signal: the method comprises the following steps that on the basis that no error occurs in the process of pre-running the latest firmware by the head-mounted display device in the step 08-2 or the running time of the latest firmware is successfully longer than the preset time, namely the pre-running condition meets the expected pre-running requirement, the latest firmware can be completely burnt and can be successfully run by the step, namely the firmware upgrading work of the head-mounted display device is completed, namely an upgrading completion signal representing the completion of firmware upgrading is returned to the control terminal by the head-mounted display device;
10-operating mode change instruction: the execution main body of the step is a control terminal, the control terminal is used for responding to the upgrade completion signal sent by the step 09-2, and in order to finish the whole firmware upgrade process, the head-mounted display device provides corresponding functions based on the latest firmware in a working mode, and the control terminal sends a working mode change instruction to the head-mounted display device in the step;
11-change the current mode to the working mode: the main execution body of this step is the head-mounted display device, which is the operation executed by the head-mounted display device in response to the working mode change instruction sent in step 10, and in this step, the head-mounted display device changes the current upgrading mode of the head-mounted display device itself to the working mode according to the received working mode change instruction, so that the latest firmware can provide the service of the corresponding function for the user in the system environment normally used by the user.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a firmware upgrading system of a head-mounted display device according to an embodiment of the present disclosure, where the system includes a control terminal and the head-mounted display device, and the head-mounted display device establishes a data connection with the control terminal, and the firmware upgrading system may include:
a control terminal 10 for verifying availability of the latest firmware according to the received firmware upgrade instruction; when the availability verification of the latest firmware passes, sending a mode query instruction to the head-mounted display device 20; when determining that the head-mounted display device 20 is currently in the upgrade mode according to the information returned by the head-mounted display device 20, sending a firmware upgrade package carrying the latest firmware to the head-mounted display device 20; sending a working mode change instruction to the head-mounted display device 20 according to the received completion signal;
the head-mounted display device 20 is used for returning to the current mode according to the mode inquiry instruction; burning each data file in the received firmware upgrade package in a preset directory, and returning a completion signal to the control terminal 10 after all burning is completed; changing the current mode to the working mode according to the working mode changing instruction;
the modes of the head-mounted display device 20 include an upgrade mode and an operation mode.
In actual operation, instructions can be executed on behalf of the head-mounted display device 20 by an MCU (Microcontroller Unit, chinese name micro control Unit) provided in the head-mounted display device 20, and corresponding information can be generated and returned to the control terminal 10 (usually expressed as a PC). Specifically, when the control terminal 10 and the head mounted display device 20 perform availability check on the firmware, the availability check may also be performed based on the CRC check code, the version number, the source information, and the like stored in each preset location of the firmware, so as to prevent subsequent firmware upgrade operations using wrong and unofficial firmware, and thus avoid a series of possible consequences. Meanwhile, the control terminal 10 responds to various information and signals sent by the head-mounted display device 20, and the head-mounted display device 20 responds to various instructions and signals sent by the control terminal 10, so that the practical operation can be realized by utilizing the flag bits with multiple states, wherein each state represents different meanings, so as to judge the current scene according to the specific flag in the received information and enter a subsequent processing branch under the scene to execute the subsequent operation.
The number of flag bits and whether each standard may include multiple states may be flexibly set according to the number and conditions of the determination logic included in the actual application scenario except that provided in the above embodiments of the present application, for example, before the firmware upgrade step is executed, whether the MCU is reset or not and the specific reason for the reset may be distinguished and determined by using the corresponding flag bits, so as to determine whether the upgrade step may be entered or the firmware upgrade operation may be abandoned because the most basic condition of firmware upgrade is not satisfied.
The full English spelling of CRC is Cyclic Redundancy Check, the Chinese name is Cyclic Redundancy Check, the CRC is a hash function for generating short fixed digit Check codes according to data such as network data packets or computer files, and the like, and the CRC is mainly used for detecting or checking errors which may occur after data transmission or storage.
One specific way to make a firmware availability determination may be: when the firmware is compiled and generated, a header area (header area) is included in the compiled and generated firmware by calling a tool in the control terminal 10, and a first CRC check value calculated for the firmware by using a CRC algorithm is put into the header area. After the head-mounted display device 20 is powered on and operates and receives the firmware upgrade package containing the latest firmware sent by the control terminal 10, the MCU in the head-mounted display device 20 recalculates the received latest firmware by using the same CRC algorithm to obtain a second CRC check value, and if and only if the second CRC check value is consistent with the first CRC check value, the received latest firmware meets the usability conclusion.
In addition, the data connection between the control terminal 10 and the head-mounted display device 20 can be established by using various feasible data transmission lines, such as a USB connection line, an ethernet line, etc., and is not limited in particular. When the data connection between the head-mounted display device 20 and the control terminal 10 is established by using the USB connection line, a data transmission process and a corresponding execution process may be represented as: when the control terminal 10 sends a screen opening instruction to the head-mounted display device 20 through the USB connection line (which is equivalent to the PC sending the screen opening instruction to the MCU of the head-mounted display device through the USB interface), the MCU disposed in the head-mounted display device 20 executes a corresponding screen opening operation after receiving the instruction.
Based on the technical scheme, the firmware upgrading method of the head-mounted display device provided by the embodiment of the application is applied to the head-mounted display device based on the PC, the whole upgrading process is divided into a plurality of sub-steps, the control terminal (namely the PC) sends a next step of execution command to the head-mounted display device only after the head-mounted display device finishes executing the previous step and returns relevant confirmation information, namely in the whole firmware upgrading process, the head-mounted display device is controlled by the control terminal, the upgrading process is completely transparent and visible, faults possibly occurring in any process can be positioned more easily and quickly repaired, various problems possibly occurring in the whole process of upgrading only being completed by the head-mounted display device can be obviously reduced, and the user experience is better.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by an execution terminal or processor, can implement the steps provided by the above-mentioned embodiments. The 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 principle and the implementation of the present application are described herein by applying specific examples, and in order to make the various embodiments have a progressive relationship, each embodiment focuses on the differences from the other embodiments, and the same and similar parts among the various embodiments may be referred to each other. For the apparatus disclosed in the embodiments, reference is made to the corresponding method section. The above description of the embodiments is only intended to help understand the method of the present application and its core ideas. It will be apparent to those skilled in the art that various changes and modifications can be made in the present invention without departing from the principles of the invention, and these changes and modifications also fall within the scope of the claims of the present application.
It should also be noted that, in this 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 the process, method, article, or apparatus that comprises the element.

Claims (5)

1. A firmware upgrading method for a head-mounted display device is characterized in that a data connection is established between the head-mounted display device and a control terminal, and comprises the following steps:
the control terminal checks the availability of the latest firmware according to the received firmware upgrading instruction;
when the availability of the latest firmware passes the verification, the control terminal sends a mode query instruction to the head-mounted display equipment;
the head-mounted display equipment returns to the current mode according to the mode query instruction; wherein the modes include an upgrade mode and a working mode;
when the control terminal determines that the head-mounted display equipment is currently in the upgrading mode, the control terminal sends a firmware upgrading packet carrying the latest firmware to the head-mounted display equipment;
the head-mounted display equipment sequentially burns each data file in the firmware upgrade package under a preset directory, and returns a completion signal to the control terminal after all burning is completed;
the control terminal sends a working mode change instruction to the head-mounted display equipment according to the completion signal;
the head-mounted display equipment changes the current mode to the working mode according to the working mode change instruction;
before all data files in the firmware upgrade package are completely burnt, the method further comprises the following steps:
if any data file in the firmware upgrade package has an error in the burning process, stopping the subsequent burning operation of other data files, and returning an error signal carrying a data file burning log through a third path;
before the head-mounted display device sequentially burns each data file in the firmware upgrade package under a preset directory, the method further includes:
the head-mounted display equipment verifies the integrity and the availability of the received firmware upgrade package;
when the integrity and availability check of the firmware upgrade package is not passed, an error signal that the firmware upgrade package is unavailable is returned through a first path;
the firmware upgrading method further comprises the following steps:
when the control terminal determines that the head-mounted display device is currently in the working mode, the control terminal sends an upgrading mode changing instruction to the head-mounted display device;
the head-mounted display equipment changes the current mode to the upgrading mode according to the upgrading mode changing instruction;
the firmware upgrading method further comprises the following steps:
and when the head-mounted display equipment fails to enter the upgrading mode successfully according to the upgrading mode change instruction, returning an error signal that the equipment is not ready for firmware upgrading through a second path.
2. The firmware upgrading method according to claim 1, wherein the head-mounted display device changes the current mode to the working mode according to the working mode changing instruction, and the method comprises the following steps:
and the head-mounted display equipment executes the operation mode restarting operation according to the operation mode changing instruction so as to restart the operating system according to the starting process of the operation mode and enter the operation mode.
3. The firmware upgrading method according to claim 2, further comprising after the completion of all burning and before returning a completion signal to the control terminal:
the head-mounted display device pre-runs the latest firmware after burning;
judging whether the time length of the latest firmware which is successfully pre-run exceeds a preset time length or not;
if not, returning an error signal of failure of the pre-operation through a fourth path.
4. The utility model provides a wear-type display device's firmware upgrade system, includes control terminal and wear-type display device, its characterized in that, wear-type display device and control terminal establish have data connection, include:
the control terminal is used for verifying the availability of the latest firmware according to the received firmware upgrading instruction; after the availability of the latest firmware passes the verification, sending a mode query instruction to the head-mounted display equipment; when determining that the head-mounted display equipment is currently in an upgrading mode according to the information returned by the head-mounted display equipment, sending a firmware upgrading packet carrying the latest firmware to the head-mounted display equipment; sending a working mode change instruction to the head-mounted display equipment according to the received completion signal;
the head-mounted display equipment is used for returning to the current mode according to the mode query instruction; sequentially burning each data file in the received firmware upgrade package under a preset directory, and returning a completion signal to the control terminal after all burning is completed; changing the current mode to the working mode according to the working mode changing instruction;
wherein the modes of the head mounted display device include the upgrade mode and the working mode;
the head-mounted display equipment is further used for stopping the subsequent burning operation of other data files if any data file in the firmware upgrade package has an error in the burning process, and returning an error signal carrying a data file burning log through a third path;
before the head-mounted display device sequentially burns each data file in the firmware upgrade package under a preset directory, the head-mounted display device is further used for verifying the integrity and the usability of the received firmware upgrade package; when the integrity and availability check of the firmware upgrade package is not passed, an error signal that the firmware upgrade package is unavailable is returned through a first path;
wherein when the control terminal determines that the head-mounted display device is currently in the working mode, the control terminal is further configured to send an upgrade mode change instruction to the head-mounted display device; the head-mounted display equipment is also used for changing the current mode to the upgrading mode according to the upgrading mode changing instruction; the head-mounted display device is further configured to return an error signal that the device is not ready for firmware upgrade via a second path when the head-mounted display device fails to enter the upgrade mode successfully according to the upgrade mode change instruction.
5. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the method for firmware upgrade of a head-mounted display device according to any one of claims 1 to 3.
CN201811108486.5A 2018-09-21 2018-09-21 Firmware upgrading method and system for head-mounted display equipment and storage medium Active CN108874433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811108486.5A CN108874433B (en) 2018-09-21 2018-09-21 Firmware upgrading method and system for head-mounted display equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811108486.5A CN108874433B (en) 2018-09-21 2018-09-21 Firmware upgrading method and system for head-mounted display equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108874433A CN108874433A (en) 2018-11-23
CN108874433B true CN108874433B (en) 2022-08-26

Family

ID=64324674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811108486.5A Active CN108874433B (en) 2018-09-21 2018-09-21 Firmware upgrading method and system for head-mounted display equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108874433B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678771A (en) * 2017-10-23 2018-02-09 无锡恩吉威新能源有限公司 A kind of method for optimizing battery management system online upgrading
CN107748668A (en) * 2017-11-27 2018-03-02 北京奇安信科技有限公司 A kind of method and device of application program updating
CN107832065A (en) * 2017-10-24 2018-03-23 广州力浦高科技有限公司 Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN108170457A (en) * 2017-12-27 2018-06-15 上海闻泰电子科技有限公司 Firmware upgrade method, device and VR head-mounted displays

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678771A (en) * 2017-10-23 2018-02-09 无锡恩吉威新能源有限公司 A kind of method for optimizing battery management system online upgrading
CN107832065A (en) * 2017-10-24 2018-03-23 广州力浦高科技有限公司 Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN107748668A (en) * 2017-11-27 2018-03-02 北京奇安信科技有限公司 A kind of method and device of application program updating
CN108170457A (en) * 2017-12-27 2018-06-15 上海闻泰电子科技有限公司 Firmware upgrade method, device and VR head-mounted displays

Also Published As

Publication number Publication date
CN108874433A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN105912356B (en) A kind of optical module firmware program on-line upgrading method for supporting version rollback
CN111104315A (en) Test script generation method and device and computer readable storage medium
CN113434328B (en) Logic configuration compiling error correction method and system for distributed control system
CN111309524A (en) Distributed storage system fault recovery method, device, terminal and storage medium
CN109460268B (en) Application parameter configuration method, device and system
CN111078274A (en) Code development method and device, electronic equipment and computer storage medium
CN110633101A (en) Program code management method, device and equipment and readable storage medium
US10180892B2 (en) Evaluation system, non-transitory storage medium storing thereon evaluation program, and evaluation method
CN112153134A (en) Disaster tolerance drilling method, device, equipment and storage medium of disaster tolerance cloud host
CN108874433B (en) Firmware upgrading method and system for head-mounted display equipment and storage medium
CN111400166A (en) Real-time communication service testing method, device and system and electronic equipment
CN111143181A (en) Server maintenance method, system, equipment and computer readable storage medium
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN111984524A (en) Fault injection method, fault simulation method, fault injection device, and storage medium
CN114237722B (en) System starting method, device, equipment and engineering vehicle
CN114995852A (en) Equipment upgrading method, equipment and computer readable storage medium
CN115034173A (en) Test method of chip simulation model
CN111026667B (en) Script execution method and device and electronic equipment
CN108415721B (en) Node equipment program upgrading method and related device
CN112711575A (en) Deployment method, system and related device of database cluster
CN112765041A (en) Game automatic testing method and device and electronic equipment
JP2007079651A (en) Programming device for programmable controller
CN112463438B (en) Configuration information generation method and device of storage product and readable storage medium
JPH0588933A (en) Parallel processing system with debugging function

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: 20201012

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 266100 Qingdao, Laoshan District, North House Street investment service center room, Room 308, Shandong

Applicant before: GOERTEK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221124

Address after: 261031 No. 268 Dongfang Road, hi tech Industrial Development Zone, Shandong, Weifang

Patentee after: GOERTEK Inc.

Address before: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Patentee before: GoerTek Optical Technology Co.,Ltd.