CN108170457A - Firmware upgrade method, device and VR head-mounted displays - Google Patents

Firmware upgrade method, device and VR head-mounted displays Download PDF

Info

Publication number
CN108170457A
CN108170457A CN201711440905.0A CN201711440905A CN108170457A CN 108170457 A CN108170457 A CN 108170457A CN 201711440905 A CN201711440905 A CN 201711440905A CN 108170457 A CN108170457 A CN 108170457A
Authority
CN
China
Prior art keywords
firmware
area
application
upgrade
packetized data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711440905.0A
Other languages
Chinese (zh)
Inventor
李强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN201711440905.0A priority Critical patent/CN108170457A/en
Publication of CN108170457A publication Critical patent/CN108170457A/en
Pending legal-status Critical Current

Links

Abstract

An embodiment of the present invention provides a kind of firmware upgrade method, device and VR head-mounted displays, this method to include:The nonvolatile memory that VR head-mounted displays include is divided into firmware working area, firmware parameters area, BootLoader areas and firmware application area;Multiple packetized datas that receiving host is sent, each packetized data are written to the firmware working area, and update the upgrade flag in the firmware parameters area;Start the BootLoader programs in BootLoader areas, the current application firmware in firmware application area is wiped, and by the packetized data programming in firmware working area to firmware application area to obtain update application firmware;The update application firmware is performed to complete firmware upgrade.The firmware upgrade scheme, by carrying out region division to storage medium, each region performs firmware upgrade correlation function, internal functionalization is optimized respectively, improves firmware upgrade efficiency.

Description

Firmware upgrade method, device and VR head-mounted displays
Technical field
The present invention relates to technical field of electronic equipment, are worn in particular to a kind of firmware upgrade method, device and VR Formula display.
Background technology
With the continuous development of VR technologies, people are higher and higher to experience requirements, need to carry out the firmware of VR equipment and When upgrade to improve usage experience.Existing VR all-in-one machines are divided into host and display, due to its data processing of display one end Ability is weaker, and the division of internal module function is indefinite, leads to display one end less efficient, serious shadow when carrying out firmware upgrade Ring user's experience.Therefore, how to solve the above problems is problem urgently to be resolved hurrily at present.
Invention content
In view of this, the object of the present invention is to provide a kind of firmware upgrade method, device and VR head-mounted displays with It solves the above problems.
The embodiment of the present invention provides a kind of firmware upgrade method, applied to VR head-mounted displays, the method includes:
By the nonvolatile memory that the VR head-mounted displays include be divided into firmware working area, firmware parameters area, BootLoader areas and firmware application area;
Multiple packetized datas that receiving host is sent, each packetized data is written to the firmware working area, and more The upgrade flag in the new firmware parameters area;
Start the BootLoader programs in the BootLoader areas, the current application firmware in the firmware application area is wiped Remove, and by the packetized data programming in the firmware working area to the firmware application area with obtain update application firmware;
The update application firmware is performed to complete firmware upgrade.
Optionally, in the above-mentioned methods, multiple packetized datas that the receiving host is sent, each packetized data is write The step of entering to the firmware working area, including:
The packetized data that receiving host is sent, cache pool is temporarily stored in by the packetized data received;
When the cache pool has been expired, the packetized data kept in the cache pool is written to the firmware working area, It is further continued for receiving the packetized data that the host is sent and is temporarily stored in the cache pool, until needed for the update application firmware Until all packetized datas receive and preserve and finish.
Optionally, in the above-mentioned methods, described the step of being written each packetized data to the firmware working area, packet It includes:
The packetized data received is temporarily stored in cache pool, is connect in all packetized datas needed for the update application firmware After receiving and keeping in, all packetized datas kept in the cache pool are written to the firmware working area.
Optionally, in the above-mentioned methods, before the step of multiple packetized datas that the receiving host is sent, the method It further includes:
After the firmware upgrade request of host transmission is received, upgrade mode is switched to from current operation mode, and to institute It states host and feeds back the first back message, so that the host returns to firmware updating information;
The firmware updating information that the host is sent is received, the firmware updating information is preserved and is fed back to the host Second back message, so that the host sends packetized data to the VR head-mounted displays.
Optionally, in the above-mentioned methods, it is described by each packetized data be written to the step of the firmware working area it Afterwards, the method further includes:
After the data transmission for receiving the host transmission finishes message, in detection write-in to the firmware working area Whether the information of packetized data is consistent with the firmware updating information received, and the update firmware parameters area is performed if consistent The step of upgrade flag, if inconsistent, exits upgrade mode.
Optionally, in the above-mentioned methods, it is described start the BootLoader areas BootLoader programs the step of it Afterwards, the method further includes:
The upgrade flag in the firmware parameters area is read, when the upgrade flag is characterized as true, is performed the firmware The step of current application firmware in application area is wiped, otherwise jumps directly to the firmware application area to perform the firmware application The current application firmware in area.
Optionally, in the above-mentioned methods, it is described start the BootLoader areas BootLoader programs the step of it Afterwards, the method further includes:
The packetized data in the firmware working area is read, and verifies the correctness of the packetized data, if being verified, The step of wiping the current application firmware in the firmware application area is then performed, if verification does not pass through, is jumped directly to described Firmware application area is to perform the current application firmware in the firmware application area.
Another embodiment of the present invention provides a kind of device for upgrading firmware, applied to VR head-mounted displays, the firmware liter Stage arrangement includes:
Division module, the nonvolatile memory for the VR head-mounted displays to be included are divided into firmware and keep in Area, firmware parameters area, BootLoader areas and firmware application area;
For multiple packetized datas that receiving host is sent, each packetized data is written to described solid for receiving module Part working area, and update the upgrade flag in the firmware parameters area;
For starting the BootLoader programs in the BootLoader areas, the firmware application area is worked as starting module Preceding application firmware erasing, and by the packetized data programming in the firmware working area to the firmware application area to be updated Application firmware;
Execution module, for performing the update application firmware to complete firmware upgrade.
Another embodiment of the present invention provides a kind of VR head-mounted displays, including:
Memory;
Processor;And
Device for upgrading firmware, the software for being stored in the memory and being performed by the processor including one or more Function module, the device for upgrading firmware include:
Division module, the nonvolatile memory for VR head-mounted displays to be included are divided into firmware working area, consolidate Part parameter region, BootLoader areas and firmware application area;
For multiple packetized datas that receiving host is sent, each packetized data is written to described solid for receiving module Part working area, and update the upgrade flag in the firmware parameters area;
For starting the BootLoader programs in the BootLoader areas, the firmware application area is worked as starting module Preceding application firmware erasing, and by the packetized data programming in the firmware working area to the firmware application area to be updated Application firmware;
Execution module, for performing the update application firmware to complete firmware upgrade.
Another embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage There is instruction, when executed, realize above-mentioned firmware upgrade method.
Firmware upgrade method provided in an embodiment of the present invention, device and VR head-mounted displays, by the way that storage is situated between in advance Matter is divided into firmware working area, firmware parameters area, BootLoader areas and firmware application area, in point for receiving host transmission During bag data, packetized data is written to firmware working area, and updates the upgrade flag in firmware parameters area.Start BootLoader The BootLoader programs in area wipe the current application firmware in firmware application area, and by the packetized data in firmware working area Programming to firmware application area with obtain update application firmware.It is final to perform update application firmware to complete firmware upgrade.The firmware Upgrading scheme, by carrying out region division to storage medium, each region performs firmware upgrade correlation function respectively, to built-in function Change is optimized, and improves firmware upgrade efficiency.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range, for those of ordinary skill in the art, without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the application scenarios schematic diagram of firmware upgrade method provided in an embodiment of the present invention.
Fig. 2 is the structure diagram of VR head-mounted displays provided in an embodiment of the present invention.
Fig. 3 is the flow chart of firmware upgrade method provided in an embodiment of the present invention.
Fig. 4 divides schematic diagram for non-volatile memory provided in an embodiment of the present invention.
Fig. 5 is another flow chart of firmware upgrade method provided in an embodiment of the present invention.
Interaction flow schematic diagrames of the Fig. 6 between VR head-mounted displays provided in an embodiment of the present invention and host.
Fig. 7 is the functional block diagram of device for upgrading firmware provided in an embodiment of the present invention.
Icon:100-VR head-mounted displays;110- microcontrollers;120-USB transmission control unit (TCU)s;130- communication interfaces; 140- nonvolatile memories;150- device for upgrading firmware;151- division modules;152- receiving modules;153- starting modules; 154- execution modules;200- hosts.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be configured to arrange and design with a variety of different herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing Go out all other embodiments obtained under the premise of creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need to that it is further defined and explained in subsequent attached drawing.Meanwhile the present invention's In description unless specifically defined or limited otherwise, term " installation ", " setting ", " connection " should be interpreted broadly, for example, can To be to be fixedly connected or be detachably connected or be integrally connected;Can be mechanical connection or electrical connection;It can It to be to be connected directly, can also be indirectly connected by intermediary, can be the connection inside two elements.For this field For those of ordinary skill, the concrete meaning of above-mentioned term in the present invention can be understood with concrete condition.
Referring to Fig. 1, for a kind of application scenarios schematic diagram of firmware upgrade method provided in an embodiment of the present invention.The scene Including VR head-mounted displays 100 and host 200, the VR head-mounted displays 100 can be by wireless with the host 200 Connection, can also be by wired connection, and connecting need to keep reliable and stable.In the present embodiment, the VR head-mounted displays It can be by USB (Universal Serial Bus, universal serial bus) connections, certainly between 100 and the host 200 It can be attached by other physical connection mediums.In the present embodiment, the host 200 can be and the VR wear-types The mating host 200 of display 100 or other desktop computers with USB interface.
Referring to Fig. 2, the VR head-mounted displays 100 include microcontroller 110, USB transmission controller 120, communication Interface 130 and nonvolatile memory 140.It the USB transmission controller 120, communication interface 130 and described non-volatile deposits Reservoir 140 is coupled with the microcontroller 110.The USB transmission controller 120 can be in the controller of the microcontroller 110 Data transmission and the interaction between the host 200 are realized by the communication interface 130 down.In the present embodiment, it is described It is directly or indirectly electrically connected between each other between nonvolatile memory 140 and the microcontroller 110, to realize data Transmission or interaction.For example, these elements can electrically be connected between each other by one or more communication bus or signal wire realization It connects.It is stored in nonvolatile memory 140 in the form of software or firmware (Firmware) and is stored in described non-volatile deposit Software function module in reservoir 140, the microcontroller 110 are stored in soft in nonvolatile memory 140 by operation Part program and module, such as the device for upgrading firmware 150 in the embodiment of the present invention, so as to perform various functions application and data The firmware upgrade method in the embodiment of the present invention is realized in processing.
It is appreciated that structure shown in Fig. 2 is only to illustrate, the VR head-mounted displays 100 may also include than institute in Fig. 2 Show more either less components or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 may be used firmly Part, software or combination are realized.
Referring to Fig. 3, it is a kind of firmware liter applied to above-mentioned VR head-mounted displays 100 provided in an embodiment of the present invention The flow chart of grade method.It should be noted that method provided by the invention is not limited with Fig. 3 and particular order as described below System.Each step shown in Fig. 3 will be described in detail below.
The nonvolatile memory 140 that the VR head-mounted displays 100 include is divided into firmware and kept in by step S101 Area, firmware parameters area, BootLoader areas and firmware application area.
In the present embodiment, it in order to which the subsequently convenient firmware packetized data sent to host 200 is stored and handled, carries The nonvolatile memory 140 that the VR head-mounted displays 100 include can be divided into four by high firmware upgrade efficiency in advance Area:Firmware working area, firmware parameters area, BootLoader areas and firmware application area, as shown in Figure 4.
Further, function division can be carried out to each region, such as firmware working area can be used for preserving new version firmware Data, the bootable application firmware in Bootloader areas start, complete the tasks such as application firmware update, and firmware parameters area can be used for protecting The acquisition firmware version of host 200 can be responded by depositing the required mark value of upgrading and other related datas, firmware application area program This, upgrading start, upgrade terminate, the requests such as data check.In this way, subsequently being interacted with host 200 to complete firmware liter During grade, each module can Each performs its own functions and cooperates to improve upgrading efficiency.
Step S102, multiple packetized datas that receiving host 200 is sent, each packetized data is written to the firmware Working area, and update the upgrade flag in the firmware parameters area.
Referring to Fig. 5, in the present embodiment, it is described before the step of multiple packetized datas of the transmission of receiving host 200 Firmware upgrade method is further comprising the steps of:
After the firmware upgrade request of the transmission of host 200 is received, upgrading is switched to from current operation mode by step S201 Pattern, and the first back message is fed back to the host 200, so that the host 200 returns to firmware updating information.
Step S202 receives the firmware updating information that the host 200 is sent, by the firmware updating information preserve and to The host 200 feeds back the second back message, so that the host 200 sends packetized data to the VR head-mounted displays 100。
Before firmware upgrade is carried out, original application firmware is in the application firmware area of VR head-mounted displays 100 In operation, after VR head-mounted displays 100 receive the firmware upgrade request of the transmission of host 200, current operation mode is cut Upgrade mode is changed to, while the first back message is fed back to the host 200, to notify the 200 current VR wear-types of host Display 100 has upgraded ready.Also, stop other work flows, with the upgrading institute that receiving host 200 is waited for send The packetized data needed.
The host 200 is responded in the characterization upgrading ready first for receiving the feedback of VR head-mounted displays 100 After message, firmware updating information is sent to the VR head-mounted displays 100.Wherein, the firmware updating information includes upgrading Firmware data form, such as frame head, unit type, command word, repeating transmission number, Bale No., total packet number, data length, data and verification Code.
In the present embodiment, optionally, the frame head is 2 bytes, and the unit type is 1 byte, and the command word is 1 Byte, described to retransmit number and the Bale No. is 1 byte, total Bale No. and the data length are 2 bytes, the data For N byte, i.e. multibyte.The check code is 1 byte.Wherein, the command word can be used for representing different command, the verification Code can be used for verifying this message.
After the VR wear-types are shown in the firmware updating information for receiving the transmission of host 200, using default verification side Formula verifies the firmware updating information, such as is calibrated with calibration or CRC (Cyclic Redundancy Check), This present embodiment is not specifically limited.After verification passes through, VR head-mounted displays 100 are responded to the feedback of host 200 second Message is to show that this information has verified that success, the host 200 to be notified to send the packetized data needed for upgrading.It also, will The firmware updating information received is stored.In the present embodiment, if the firmware updating information checking fails, the VR Head-mounted display 100 does not make any processing.
The host 200 receive VR head-mounted displays 100 feedback characterization firmware updating information checking by After second back message, the packetized data of its request is sent to the VR head-mounted displays 100.In the present embodiment, firmware Packetized data needed for upgrading to be multiple, VR head-mounted displays 100 can requesting host 200 send multiple packetized datas successively, Such as host 200 sends the first packet packetized data to VR head-mounted displays 100, VR head-mounted displays 100 get host After 200 the first packet packetized datas sent, it is temporarily stored in the buffer pool that VR head-mounted displays 100 are opened up, then to host 200 feedbacks are to ask to send the second packet packetized data, until receiving last packet packetized data.
After VR head-mounted displays 100 receive packetized data, packetized data is temporarily stored in cache pool, and detection is slow in real time Deposit whether pond has expired.
In one case, the VR head-mounted displays 100 packetized data that receiving host 200 is sent successively, and temporarily There are in cache pool, if the packetized data received has occupied all memory spaces of the cache pool, but firmware upgrade institute The packetized data needed does not receive also, then first the packetized data kept in cache pool can be written to the firmware working area, It is further continued for receiving the packetized data that the host 200 is sent and is temporarily stored in the cache pool, until all needed for firmware upgrade Until packetized data receives and preserves and finish.
In another scenario, the packetized data that receiving host 200 is sent successively of VR head-mounted displays 100, if currently The packetized data received has been last bag data, i.e., all packetized datas needed for firmware upgrade have received, then may be used It directly will be in the packetized data that kept in current cache pond all write-in to the firmware working area.
In the present embodiment, it is written by each subpackage number to the firmware working area, the firmware upgrade method is also Include the following steps:
After the data transmission for receiving the transmission of host 200 finishes message, detection write-in to the firmware working area In packetized data information it is whether consistent with the firmware updating information received, the update firmware parameters are performed if consistent The step of upgrade flag in area, if inconsistent, exits upgrade mode.
Further, host 200 can be transmitted after all packetized datas are sent to VR head-mounted displays 100 Data transmission finishes message to VR head-mounted displays 100 to inform that packetized data has been sent.VR head-mounted displays 100 After data transmission message is received, it is detected according to the packetized data that the firmware updating information butt joint of above-mentioned storage receives, To verify whether the information of packetized data received is consistent with firmware updating information, such as total packet number, data length and data Etc. information it is whether consistent.If consistent, follow-up process is can proceed with, if inconsistent, exits upgrade mode, to terminate to upgrade Process.
In the present embodiment, VR head-mounted displays 100 are receiving packetized data, and after being verified to it, The upgrade flag in the firmware parameters area may be updated, such as original upgrade flag 0 is updated to upgrade flag 1, to show The new firmware data received needs to restart with the new firmware of programming.And echo message is fed back to show firmware to host 200 All packetized datas needed for upgrading have received.
Step S103 starts the BootLoader programs in the BootLoader areas, the firmware application area is current Application firmware is wiped, and the packetized data programming in the firmware working area to the firmware application area is applied with obtaining update Firmware.
Step S104 performs the update application firmware to complete firmware upgrade.
In the present embodiment, VR head-mounted displays 100 by all packetized datas needed for firmware upgrade be written to Behind firmware working area, the BootLoader programs in the BootLoader areas can be started, to force itself microcontroller 110 again Start.When the microcontroller 110 of the VR head-mounted displays 100 restarts, following steps are can perform:
The upgrade flag in the firmware parameters area is read, when the upgrade flag is characterized as true, is performed the firmware The step of current application firmware in application area is wiped, otherwise jumps directly to the firmware application area to perform the firmware application The current application firmware in area.
The firmware parameters area can be read in restarting in the microcontroller 110 of the VR head-mounted displays 100 Upgrade flag determines whether to have received new firmware data by the upgrade flag in firmware parameters area.For example, in the liter When grade is labeled as 1, shows currently to have received new firmware data, new firmware programming can be carried out.If upgrade flag is 0, table It is bright can programming currently without new firmware data.If currently without new firmware data, can jump directly to the firmware should With area to perform the current application firmware in the firmware application area, to realize normal work.
Further, if being currently received new firmware data, following steps be can perform:
The packetized data in the firmware working area is read, and verifies the correctness of the packetized data, if being verified, The step of wiping the current application firmware in the firmware application area is then performed, if verification does not pass through, is jumped directly to described Firmware application area is to perform the current application firmware in the firmware application area.
In the present embodiment, it also needs to test the correctness of firmware data before the programming for carrying out new firmware data Card, for example, whether total packet number of statistics packetized data is correct or whether data format meets preset format or new firmware number According to whether being adapted to VR head-mounted displays 100 unit type of itself etc..It should be appreciated that can also detect by other means point The correctness of bag data, this is no longer going to repeat them.
If after the packetized data in the firmware working area is verified, it can should consolidate the firmware application area is current Part wipe, and by packetized data programming in the firmware working area to the firmware application area with obtain update application firmware.
Further, VR head-mounted displays 100 jump to the firmware application after new application firmware programming success Firmware upgrade process is so far completed to perform the update application firmware in area.And it sends upgrading to the host 200 and completes to confirm Message, to inform the new application firmware of host 200 programming success and complete to upgrade.
In order to make those skilled in the art that firmware upgrade scheme provided by the present invention, the present embodiment be more clearly understood In interactive process between the VR head-mounted displays 100 and the host 200 be described, incorporated by reference to referring to Fig. 6.
Host 200 can detect the current application firmware of the VR head-mounted displays 100 after new application firmware is obtained Version, can be to the VR head-mounted displays 100 after judgement VR head-mounted displays 100 need to carry out application firmware upgrading Send firmware upgrade request.After VR head-mounted displays 100 receive firmware upgrade request, liter is converted to from current operation mode Grade pattern, and show to upgrade ready first back message to the host 200 feedback.The host 200 responds VR heads The first back message that head mounted displays 100 are sent, and firmware updating information is sent to the VR head-mounted displays 100.VR After head-mounted display 100 receives firmware updating information, firmware updating information is verified, and after being verified, protected The firmware updating information is deposited, and the second back message is sent to the host 200.And the VR head-mounted displays 100 The packetized data request message for the packetized data that request is returned needed for firmware upgrade is sent to host 200.
Multiple packetized datas are sent to VR successively and worn by the host 200 after packetized data request message is received Formula display 100.The packetized data received is temporarily stored in the cache pool opened up by VR head-mounted displays 100, in cache pool After having expired or having had received last packet packetized data, the packetized data in cache pool is written to firmware working area.It is main Machine 200 is after all packetized datas of firmware upgrade have been sent, to 100 transmission data end of transmission report of VR head-mounted displays Text, VR head-mounted displays 100 detect upon receipt packetized data in firmware working area whether the firmware upgrade with storage Information is consistent.If inconsistent, upgrade mode is exited.If consistent, start the BootLoader journeys in the BootLoader areas Sequence is so that microcontroller 110 is restarted.And whether the upgrade flag in the firmware parameters area is detected with true, if true, then again Whether the packetized data detected in the firmware working area is correct, if correctly, the current application in the firmware application area is consolidated Part wipe, and by the packetized data programming in firmware working area to the firmware application area with obtain update application firmware.It redirects Update application firmware is performed to the application firmware area to complete firmware upgrade.And it sends upgrading to the host 200 and completes really Message is recognized, to inform that the upgrading of host 200 is completed.
Referring to Fig. 7, for a kind of firmware liter applied to above-mentioned VR head-mounted displays 100 provided in an embodiment of the present invention The functional block diagram of stage arrangement 150.The device for upgrading firmware 150 includes division module 151, receiving module 152, starts mould Block 153 and execution module 154.
The division module 151 is used to divide the nonvolatile memory 140 that the VR head-mounted displays 100 include For firmware working area, firmware parameters area, BootLoader areas and firmware application area.The division module 151 can be used for performing Step S101 shown in Fig. 3, specific operating method can refer to the detailed description of step S101.
The receiving module 152 is used for multiple packetized datas that receiving host 200 is sent, and each packetized data is written To the firmware working area, and update the upgrade flag in the firmware parameters area.The receiving module 152 can be used for performing Fig. 3 Shown in step S102, specific operating method can refer to the detailed description of step S102.
The starting module 153 is used to start the BootLoader programs in the BootLoader areas, should by the firmware Wiped with the current application firmware in area, and by the packetized data programming in the firmware working area to the firmware application area with To update application firmware.The starting module 153 can be used for performing the step S103 shown in Fig. 3, and specific operating method can With reference to the detailed description of step S103.
The execution module 154 is used to perform the update application firmware to complete firmware upgrade.The execution module 154 Available for performing the step S104 shown in Fig. 3, specific operating method can refer to the detailed description of step S104.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, can refer to preceding method in corresponding process, no longer excessively repeat herein.
Through the above description of the embodiments, those skilled in the art can be understood that the embodiment of the present invention The mode of necessary general hardware platform can also be added to realize by software by hardware realization.Based on such understanding, The technical solution of the embodiment of the present invention can be embodied in the form of software product, the software product can be stored in one it is non- Volatile storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in, it is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc.) performs the method described in each implement scene of the present invention.
In conclusion firmware upgrade method provided in an embodiment of the present invention, device and VR head-mounted displays 100, pass through Storage medium is divided into firmware working area, firmware parameters area, BootLoader areas and firmware application area in advance, is being received During the packetized data that host 200 is sent, packetized data is written to firmware working area, and update the upgrading mark in firmware parameters area Note.Start the BootLoader programs in BootLoader areas, the current application firmware in firmware application area is wiped, and firmware is temporary The packetized data programming in area is deposited to firmware application area to obtain update application firmware.It is final to perform update application firmware to complete Firmware upgrade.The firmware upgrade scheme, by carrying out region division to storage medium, each region performs firmware upgrade correlation respectively Internal functionalization is optimized in function, improves firmware upgrade efficiency.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown Architectural framework in the cards, function and the behaviour of devices in accordance with embodiments of the present invention, method and computer program product Make.In this regard, each box in flow chart or block diagram can represent a part for a module, program segment or code, institute The part for stating module, program segment or code includes the executable instruction that one or more is used to implement defined logic function. It should also be noted that at some as in the realization method replaced, the function that is marked in box can also be to be different from attached drawing The sequence marked occurs.For example, two continuous boxes can essentially perform substantially in parallel, they sometimes can also be by Opposite sequence performs, this is depended on the functions involved.It is also noted that each box in block diagram and/or flow chart, And the combination of the box in block diagram and/or flow chart, function as defined in performing or the dedicated of action can be used to be based on hardware System realize or can be realized with the combination of specialized hardware and computer instruction.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or equipment including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or equipment institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including institute State in process, method, article or the equipment of element that also there are other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exists Similar terms are represented in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of firmware upgrade method, which is characterized in that applied to VR head-mounted displays, the method includes:
By the nonvolatile memory that the VR head-mounted displays include be divided into firmware working area, firmware parameters area, BootLoader areas and firmware application area;
Multiple packetized datas that receiving host is sent, each packetized data are written to the firmware working area, and update institute State the upgrade flag in firmware parameters area;
Start the BootLoader programs in the BootLoader areas, the current application firmware in the firmware application area wiped, And by the packetized data programming in the firmware working area to the firmware application area with obtain update application firmware;
The update application firmware is performed to complete firmware upgrade.
2. firmware upgrade method according to claim 1, which is characterized in that multiple subpackage numbers that the receiving host is sent According to, the step of each packetized data is written to the firmware working area, including:
The packetized data that receiving host is sent, cache pool is temporarily stored in by the packetized data received;
When the cache pool has been expired, the packetized data kept in the cache pool is written to the firmware working area, followed by Continued access receives the packetized data that the host is sent and is temporarily stored in the cache pool, until all needed for the update application firmware Until packetized data receives and preserves and finish.
3. firmware upgrade method according to claim 1, which is characterized in that described that each packetized data is written to institute The step of stating firmware working area, including:
The packetized data received is temporarily stored in cache pool, is received simultaneously in all packetized datas needed for the update application firmware After temporary, all packetized datas kept in the cache pool are written to the firmware working area.
4. firmware upgrade method according to claim 1, which is characterized in that multiple subpackage numbers that the receiving host is sent According to the step of before, the method further includes:
After the firmware upgrade request of host transmission is received, upgrade mode is switched to from current operation mode, and to the master Machine feeds back the first back message, so that the host returns to firmware updating information;
The firmware updating information that the host is sent is received, the firmware updating information is preserved and feeds back second to the host Back message, so that the host sends packetized data to the VR head-mounted displays.
5. firmware upgrade method according to claim 4, which is characterized in that described that each packetized data is written to institute After the step of stating firmware working area, the method further includes:
After the data transmission for receiving the host transmission finishes message, detection write-in to the subpackage in the firmware working area Whether the information of data is consistent with the firmware updating information received, and the upgrading for updating the firmware parameters area is performed if consistent The step of label, if inconsistent, exits upgrade mode.
6. firmware upgrade method according to claim 1, which is characterized in that the startup BootLoader areas After the step of BootLoader programs, the method further includes:
The upgrade flag in the firmware parameters area is read, when the upgrade flag is characterized as true, is performed the firmware application Otherwise the step of current application firmware in area is wiped jumps directly to the firmware application area and is worked as with performing the firmware application area Preceding application firmware.
7. firmware upgrade method according to claim 1, which is characterized in that the startup BootLoader areas After the step of BootLoader programs, the method further includes:
The packetized data in the firmware working area is read, and verifies the correctness of the packetized data, if being verified, is held It is about to the step of current application firmware in the firmware application area is wiped, if verification does not pass through, jumps directly to the firmware Application area is to perform the current application firmware in the firmware application area.
8. a kind of device for upgrading firmware, which is characterized in that applied to VR head-mounted displays, the device for upgrading firmware includes:
Division module, the nonvolatile memory for the VR head-mounted displays to be included are divided into firmware working area, consolidate Part parameter region, BootLoader areas and firmware application area;
Receiving module for multiple packetized datas that receiving host is sent, each packetized data is written temporary to the firmware Area is deposited, and updates the upgrade flag in the firmware parameters area;
Starting module, for starting the BootLoader programs in the BootLoader areas, the firmware application area is current Application firmware is wiped, and the packetized data programming in the firmware working area to the firmware application area is applied with obtaining update Firmware;
Execution module, for performing the update application firmware to complete firmware upgrade.
9. a kind of VR head-mounted displays, which is characterized in that including:
Memory;
Processor;And
Device for upgrading firmware, the software function for being stored in the memory and being performed by the processor including one or more Module, the device for upgrading firmware include:
Division module, the nonvolatile memory for VR head-mounted displays to be included are divided into firmware working area, firmware ginseng Number area, BootLoader areas and firmware application area;
Receiving module for multiple packetized datas that receiving host is sent, each packetized data is written temporary to the firmware Area is deposited, and updates the upgrade flag in the firmware parameters area;
Starting module, for starting the BootLoader programs in the BootLoader areas, the firmware application area is current Application firmware is wiped, and the packetized data programming in the firmware working area to the firmware application area is applied with obtaining update Firmware;
Execution module, for performing the update application firmware to complete firmware upgrade.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has instruction, when Described instruction is performed, and realizes the firmware upgrade method described in claim 1-7 any one.
CN201711440905.0A 2017-12-27 2017-12-27 Firmware upgrade method, device and VR head-mounted displays Pending CN108170457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711440905.0A CN108170457A (en) 2017-12-27 2017-12-27 Firmware upgrade method, device and VR head-mounted displays

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711440905.0A CN108170457A (en) 2017-12-27 2017-12-27 Firmware upgrade method, device and VR head-mounted displays

Publications (1)

Publication Number Publication Date
CN108170457A true CN108170457A (en) 2018-06-15

Family

ID=62522067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711440905.0A Pending CN108170457A (en) 2017-12-27 2017-12-27 Firmware upgrade method, device and VR head-mounted displays

Country Status (1)

Country Link
CN (1) CN108170457A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874433A (en) * 2018-09-21 2018-11-23 歌尔科技有限公司 A kind of firmware upgrade method of head-mounted display apparatus, system and storage medium
CN109683967A (en) * 2018-12-13 2019-04-26 深圳创维数字技术有限公司 Firmware supports method, apparatus, mobile terminal and readable storage medium storing program for executing
CN110427207A (en) * 2019-08-07 2019-11-08 成都易明半导体有限公司 A kind of LED road lamp controller updating firmware program method based on central controller
CN110569049A (en) * 2019-07-26 2019-12-13 厦门爱陆通通信科技有限公司 Equipment serial high-speed upgrading method
CN111741344A (en) * 2020-06-30 2020-10-02 歌尔科技有限公司 Video display method of VR equipment and VR equipment
CN113238789A (en) * 2021-05-27 2021-08-10 闻泰通讯股份有限公司 Electronic equipment, firmware upgrading method and device thereof and computer readable storage medium
CN113608771A (en) * 2021-06-20 2021-11-05 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for quickly programming FPGA firmware and readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007996A (en) * 2014-06-16 2014-08-27 南京融教科技有限公司 Reliable firmware upgrading realizing method for distributed control system
CN105094903A (en) * 2015-07-16 2015-11-25 广州飞米电子科技有限公司 Method and device for upgrading firmware
CN106293621A (en) * 2016-08-01 2017-01-04 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007996A (en) * 2014-06-16 2014-08-27 南京融教科技有限公司 Reliable firmware upgrading realizing method for distributed control system
CN105094903A (en) * 2015-07-16 2015-11-25 广州飞米电子科技有限公司 Method and device for upgrading firmware
CN106293621A (en) * 2016-08-01 2017-01-04 飞天诚信科技股份有限公司 A kind of firmware upgrade method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874433A (en) * 2018-09-21 2018-11-23 歌尔科技有限公司 A kind of firmware upgrade method of head-mounted display apparatus, system and storage medium
CN108874433B (en) * 2018-09-21 2022-08-26 歌尔光学科技有限公司 Firmware upgrading method and system for head-mounted display equipment and storage medium
CN109683967A (en) * 2018-12-13 2019-04-26 深圳创维数字技术有限公司 Firmware supports method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109683967B (en) * 2018-12-13 2022-06-10 深圳创维数字技术有限公司 Firmware support method, device, mobile terminal and readable storage medium
CN110569049A (en) * 2019-07-26 2019-12-13 厦门爱陆通通信科技有限公司 Equipment serial high-speed upgrading method
CN110427207A (en) * 2019-08-07 2019-11-08 成都易明半导体有限公司 A kind of LED road lamp controller updating firmware program method based on central controller
CN111741344A (en) * 2020-06-30 2020-10-02 歌尔科技有限公司 Video display method of VR equipment and VR equipment
CN113238789A (en) * 2021-05-27 2021-08-10 闻泰通讯股份有限公司 Electronic equipment, firmware upgrading method and device thereof and computer readable storage medium
CN113238789B (en) * 2021-05-27 2023-06-27 闻泰通讯股份有限公司 Electronic device, firmware upgrading method and device thereof and computer readable storage medium
CN113608771A (en) * 2021-06-20 2021-11-05 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for quickly programming FPGA firmware and readable medium

Similar Documents

Publication Publication Date Title
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
CN106095620B (en) A kind of development approach of built-in Linux partition holding
CN104007996A (en) Reliable firmware upgrading realizing method for distributed control system
CN106572372A (en) Set-top box upgrading method and set-top box
CN105262627A (en) Firmware upgrade method, device and system
CN109284117A (en) Firmware upgrade method and system and flash memory microcontroller based on flash memory microcontroller
CN107908417B (en) Firmware upgrading method and electronic equipment
CN104978223B (en) The method for realizing Web mode updating apparatus firmwares
CN101957765B (en) A kind of method and system, equipment realizing equipment firmware and upgrade
CN101883254A (en) IP unicast loading upgrading device and method for interactive television set top box
CN107643898A (en) Terminal staging method and device
CN112947977A (en) Software online upgrading method and system
CN108270626A (en) A kind of method, apparatus, equipment and the readable storage medium storing program for executing of upgrade server firmware
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN107463341A (en) Method for deleting, device and the mobile terminal of FLASH chip
CN102880478B (en) Oftware updating method
CN113608772A (en) Application program upgrading method and device
EP3136238A1 (en) Method and apparatus for recovering system software of intelligent terminal
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN105740015A (en) Upgrade method for firmware of HMD device
CN107515757A (en) Software program upgrade method and system, terminal
CN110457058A (en) Control node online upgrading method, apparatus, host computer, system and electronic equipment
CN107436778A (en) A kind of high reliability upgrade method of unmanned systems
CN109597639A (en) A kind of method for upgrading software, device, equipment and medium

Legal Events

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

Application publication date: 20180615