CN107844307A - The method for updating system and electronic equipment of electronic equipment - Google Patents

The method for updating system and electronic equipment of electronic equipment Download PDF

Info

Publication number
CN107844307A
CN107844307A CN201710959402.8A CN201710959402A CN107844307A CN 107844307 A CN107844307 A CN 107844307A CN 201710959402 A CN201710959402 A CN 201710959402A CN 107844307 A CN107844307 A CN 107844307A
Authority
CN
China
Prior art keywords
ota
ota data
data
electronic equipment
operating system
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
CN201710959402.8A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201710959402.8A priority Critical patent/CN107844307A/en
Publication of CN107844307A publication Critical patent/CN107844307A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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 invention discloses the method for updating system of a kind of electronic equipment and a kind of electronic equipment, methods described includes:In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received.Monitor whether the OTA data are transmitted normally, if the OTA data transfers are normal, and after the completion of the OTA data receivers, update the standby operating system of the electronics using the OTA data;If the OTA data transmission exceptions, exit the generation patterns.The present invention greatly reduce due to upgrading unsuccessfully cause electronic product can not normal use risk.

Description

The method for updating system and electronic equipment of electronic equipment
Technical field
The invention belongs to electronic technology field, specifically, is related to the method for upgrading system and one kind of a kind of electronic equipment Electronic equipment.
Background technology
OTA (On the Air, wireless downloading) upgradings refer to download OTA data using wireless network, with to operating system A kind of system upgrade mode being updated.Due to physics data wire need not be connected, turn into very without installing the advantages such as driving The preferred system update mode of polyelectron equipment.
And because current many electronic equipments can not be directly connected to wireless network, it is necessary to by can connect wireless network Other equipment auxiliary carries out system update using OTA modes, specifically, electronic equipment can be established with this kind of updating apparatus first Wireless connection, wireless network is connected by updating apparatus and downloads OTA data, then OTA data are transmitted to electricity by wireless connection Sub- equipment, such as electronic equipment bracelet, helmet etc., it can be established by the short haul connection such as bluetooth mode and mobile phone wireless Connection, can be controlled by mobile phone to electronic equipment, including system update etc..
But because the reliability of wireless connection is poor, if disconnecting, or unstable OTA data transfers would occur The anomalies such as Shi Fasheng packet losses, so as to cause system update to fail, electronic equipment is caused to crash.
The content of the invention
In view of this, the invention provides the method for updating system of a kind of electronic equipment and a kind of electronic equipment, solve Carry out system update when may be interrupted due to wireless connection, or connection it is unstable cause electronic equipment upgrading unsuccessfully can not be normal The technical problem used, greatly reduce due to upgrading unsuccessfully cause electronic product can not normal use risk.
In order to solve the above-mentioned technical problem, the invention provides the method for updating system of a kind of electronic equipment, methods described Including:
In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received;
Monitor whether the OTA data are transmitted normally;
If the OTA data transfers are normal, and after the completion of the OTA data receivers, update institute using the OTA data State the standby operating system of electronics;
If the OTA data transmission exceptions, exit the generation patterns.
Preferably, the OTA data include multiple upgrading data packets;
Whether the monitoring OTA data, which are transmitted, normally includes:
After receiving any upgrading data packet, judge next upgrading data packet whether is received in preset time;
If not receiving next upgrading data packet in the preset time, the OTA data transmission exceptions are determined.
Preferably, it is described receive any upgrading data packet after, judge next liter whether is received in preset time DBMS bag, including;
After receiving any data bag, when starting timer;
According to the timing duration of the timer, judge next upgrading data packet whether is received in preset time;
Methods described also includes:
If receiving next upgrading data packet in the preset time, the timer is resetted with reclocking.
Preferably, if the OTA data transfers are normal, and after the completion of the OTA data receivers, using described The operating system that OTA data update the electronic equipment includes:
If the OTA data transfers are normal, and after the completion of the OTA data receivers, data are carried out to the OTA data Verification;
After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data;
If the operating system update is completed, exit the upgrade mode and run the operating system after renewal.
Preferably, if the OTA data transmission exceptions, are exited after the upgrade mode, methods described is also wrapped Include:
Run the current operating system of the electronic equipment.
The invention provides a kind of electronic equipment, the equipment includes memory and processor, and the memory is used to deposit Computer readable program code is stored up, the processor is used to perform the computer readable program code to realize:
In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received;Described in monitoring Whether OTA data are transmitted normally;If the OTA data transfers are normal, and after the completion of the OTA data receivers, using described OTA data update the operating system of the electronic equipment;If the OTA data transmission exceptions, exit the generation patterns.
Preferably, the OTA data include multiple upgrading data packets;The processor monitors whether the OTA data pass It is defeated to be specifically normally:
After receiving any upgrading data packet, judge next upgrading data packet whether is received in preset time;Such as Fruit does not receive next upgrading data packet in the preset time, determines the OTA data transmission exceptions.
Preferably, after the processor receives any upgrading data packet, judge under whether being received in preset time One upgrading data packet, it is specifically;
After receiving any data bag, when starting timer;According to the timing duration of the timer, judge default Whether next upgrading data packet is received in time;
The processor is additionally operable to:If receiving next upgrading data packet in the preset time, described in reset Timer is with reclocking.
Preferably, if the processor OTA data transfers are normal, and after the completion of the OTA data receivers, utilize The operating system that the OTA data update the electronic equipment is specifically:
If the OTA data transfers are normal, and after the completion of the OTA data receivers, data are carried out to the OTA data Verification;After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data;If institute Operating system update completion is stated, the upgrade mode is exited and runs the operating system after renewal.
Preferably, if the processor OTA data transmission exceptions, exit after the upgrade mode, be additionally operable to: Run the current operating system of the electronic equipment.
Compared with prior art, the present invention can be obtained including following technique effect:
The invention provides the method for updating system of a kind of electronic equipment and a kind of electronic equipment, at the electronic equipment In the case of generation patterns, the OTA data that updating apparatus is sent are received;By monitoring whether the OTA data are transmitted normally, Choose whether that the OTA data for continuing with reception carry out system upgrade.If the OTA data transfers are normal, and the OTA numbers After finishing receiving, the standby operating system of the electronics is updated using the OTA data;If the OTA data transmission exceptions, Exit the generation patterns.So as to greatly reduce due to upgrading unsuccessfully cause electronic product can not normal use risk.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of one embodiment of the method for updating system of a kind of electronic equipment of the embodiment of the present invention;
Fig. 2 is the flow chart of another embodiment of the method for updating system of a kind of electronic equipment of the embodiment of the present invention;
Fig. 3 is the structural representation of one embodiment of the system updating device of a kind of electronic equipment of the embodiment of the present invention Figure;
Fig. 4 is the structural representation of another embodiment of the system updating device of a kind of electronic equipment of the embodiment of the present invention Figure;
Fig. 5 is the structural representation of one embodiment of a kind of electronic equipment of the embodiment of the present invention.
Embodiment
Embodiments of the present invention are described in detail below in conjunction with drawings and Examples, and thereby how the present invention is applied Technological means can fully understand and implement according to this to solve technical problem and reach the implementation process of technical effect.
At present, OTA (On the Air, wireless downloading) upgrading mode is due to that need not connect physics data wire, without peace The advantages such as dress driving turn into the preferred system update mode of many electronic equipments.
OTA upgradings need electronic equipment to download OTA data by wireless network, and the OTA data under carry out system Renewal.But due to electronic equipment (Installed System Memory is too small, not enough power supply, compatibility issue etc.), or OTA data transfers are different Often the reason such as (download is interrupted, OTA loss of datas) causes electronic equipment system update when in generation patterns to fail, and causes electricity Sub- equipment crashes or change brick, can not normal use.
User can be chosen whether by judging the compatibility of the electricity of electronic equipment, memory size and redaction into Row system update, avoid the caused system update failure due to electronic equipment.But for OTA data transmission exception reasons Caused system update failure is then that user can not prejudge.OTA data transmission exceptions, it is often as wireless network company The reliability connect is poor caused, such as passes through bluetooth or BLE (BluetoothLow Energy, Bluetooth Low Energy) and upgrading When equipment connects, bluetooth particularly BLE compatibility is poor to cause network connection unstable, caused OTA data transmission exceptions.Hair A person of good sense has found by a series of researchs, because electronic equipment is when carrying out system update, can not know whether OTA data pass in advance Defeated exception, therefore system update is carried out using the OTA data for transmission abnormality occur, it is the main original for causing system update failure Cause.
In order to solve carry out system update when due to OTA data transmission exceptions cause electronic equipment upgrading failure can not be normal The technical problem used.The method for updating system and a kind of electronic equipment of a kind of electronic equipment are provided in the present invention, described In the case that electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received;It is by monitoring the OTA data No transmission is normal, chooses whether that the OTA data for continuing with reception carry out system upgrade.If the OTA data transfers are normal, And after the completion of the OTA data receivers, update the standby operating system of the electronics using the OTA data;If the OTA numbers According to transmission abnormality, the generation patterns are exited.So as to greatly reduce because upgrading unsuccessfully causes electronic product not make normally Risk.
Technical solution of the present invention is described in detail below in conjunction with accompanying drawing.
Fig. 1 is the flow chart of one embodiment of the method for updating system of a kind of electronic equipment of the embodiment of the present invention, should Method is applied to electronic equipment.
This method can include:
101:In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received.
In actual applications, what electronic equipment can include but is not limited to OTA modes can be supported to carry out system update can Wearable device such as motion bracelet, VR (Virtual Reality, virtual reality) helmet etc., intelligent watch etc..
When user needs to carry out system upgrade to electronic equipment, if the electronic equipment can be directly connected to wireless network Network, then it can enter under system update pattern and OTA data are directly downloaded by wireless network.If the electronic equipment can not be direct Wireless connection can be established by the updating apparatus that can connect wireless network by being connected to wireless network, and nothing is connected by updating apparatus Gauze network simultaneously downloads OTA data, then OTA data are transmitted to electronic equipment by wireless connection.The updating apparatus can be electricity Brain, mobile phone etc. can install wearable device APP (Application, application software) and can be carried out by bluetooth or BLE The intelligent terminal of mutual connection.
102:Monitor whether the OTA data are transmitted normally.
103:If the OTA data transfers are normal, and after the completion of the OTA data receivers, using the OTA data more The standby operating system of the new electronics.
104:If the OTA data transmission exceptions, exit the generation patterns.
Specifically, user can perform the system update operation of the electronic equipment by the APP in updating apparatus, make institute Stating electronic equipment and be updated pattern, the APP connects wireless network by updating apparatus and downloads OTA data, and by the OTA data Sent by updating apparatus to electronic equipment.Whether electronic equipment in OTA data procedures are received, transmit just by monitoring OTA data Often.
During in order to avoid carrying out system update, because OTA data transmission exceptions cause operating system update to fail, by OTA Upgrade function is divided into two stages, and the first stage is the download phase of OTA data, and the main transmission for completing OTA data, electronics is set For during OTA data downloads are carried out, monitor whether the OTA data are transmitted normally, then adopted if there is transmission abnormality Abnormality processing measure is taken, exits generation patterns in time;Second-order can just be entered only in the case of OTA data transfers are normal Section, second stage is the system update stage, the erasable work of the main verification and flash for completing OTA data, utilizes OTA data Complete the renewal of operating system.It can thus avoid, after there are OTA transmission abnormalities, still with the OTA numbers for exception occur According to system update is carried out, electronic equipment can not normal use after causing system update failure.
Alternatively, in certain embodiments, if the OTA data transmission exceptions, exit the upgrade mode it Afterwards, methods described also includes:
Run the current operating system of the electronic equipment.
In the embodiment of the present invention, by monitoring whether the OTA data are transmitted normally, choose whether to continue with reception OTA data carry out system upgrade.If the OTA data transfers are normal, the standby behaviour of the electronics is updated using the OTA data Make system;If the OTA data transmission exceptions, exit the generation patterns.So as to greatly reduce because upgrading is unsuccessfully led Cause electronic product can not normal use risk.
Alternatively, multiple upgrading data packets are included as one embodiment, the OTA data;
Whether the monitoring OTA data, which are transmitted, normally includes:
After receiving any upgrading data packet, judge next upgrading data packet whether is received in preset time;
If not receiving next upgrading data packet in the preset time, the OTA data transmission exceptions are determined.
The OTA data include multiple upgrading data packets, and in OTA data transmission procedures are carried out, updating apparatus is according to biography Defeated agreement, send the plurality of upgrading data packet to electronic equipment in a certain order.Receiving first upgrading data packet Afterwards, that is, start to monitor OTA data whether transmission abnormality, if receiving next upgrading data packet in preset time, after Continuous monitoring;If next upgrading data packet is not received in preset time, then it is assumed that may hair in OTA data transmission procedures Upgrading data packet loss occurs for raw network connection interruption, OTA data transmission exceptions occurs.
In order to realize the monitoring to OTA data transmission exceptions, when can pass through timer, judge whether in preset time Inside receive next upgrading data packet.Alternatively, in certain embodiments, it is described receive any upgrading data packet after, sentence Break and next upgrading data packet whether is received in preset time, including;
After receiving any data bag, when starting timer;
According to the timing duration of the timer, judge next upgrading data packet whether is received in preset time;
Methods described also includes:
If receiving next upgrading data packet in the preset time, the timer is resetted with reclocking.
After the multiple upgrading data packet receives in preset time, determine that the OTA data transfers are normal.
Alternatively, any one upgrading data packet is being received, after starting timer, abnormality processing message can also be generated, And processing of ranking, if receiving next upgrading data packet in preset time, cancel the exception being lined up Message is managed, and resets the timer with reclocking, continues to monitor whether next one upgrading data packet is inscribed in preset time Receive;If not receiving next upgrading data packet in preset time, the abnormality processing message being lined up is performed, is led to Know that electronic product exits current generation patterns in time, avoid enter into second stage, be using the OTA data of transmission abnormality System renewal.
Fig. 2 is the flow chart of another embodiment of the method for updating system of a kind of electronic equipment of the embodiment of the present invention, This method is applied to electronic equipment.
This method can include:
201:In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received.
202:Monitor whether the OTA data are transmitted normally.
203:If the OTA data transfers are normal, and after the completion of the OTA data receivers, the OTA data are carried out Data check.
204:After OTA data verifications success, the operation system of the electronic equipment is updated using the OTA data System.
205:If the operating system update is completed, exit the upgrade mode and run the operation system after renewal System.
206:If the OTA data transmission exceptions, exit the generation patterns.
207:Run the current operating system of the electronic equipment.
After the OTA data transmission exceptions are monitored, electronic equipment directly exits generation patterns, and runs the electronics and set Standby current operating system, avoid and carry out system update using the OTA data of transmission abnormality.
The OTA data transfers are normal, after the completion of OTA data receivers, to OTA data progress data check, and After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data.Can be specifically to pass through The erasable modes of flash, complete the system update function of OTA data.After the operating system update success of the electronic equipment, exit Upgrade mode simultaneously runs the operating system after renewal.
Wherein, the operation of step 201- steps 202 and the behaviour of step 101- steps 102 in Fig. 1 embodiments in the present embodiment Make identical, will not be repeated here.
In the embodiment of the present invention, the system update step of complete electronic equipment is given, is performing OTA more New function mistakes Cheng Zhong, when occurring due to the problems such as reasons such as bluetooth poor compatibility cause OTA data transmission exceptions, OTA can be exited in time Generation patterns.Avoid due to carrying out system update using the OTA data of transmission abnormality, cause OTA generation patterns normal Exit so that electronic product can not normal use the problem of, substantially increase Consumer's Experience.
Fig. 3 is the structural representation of one embodiment of the system updating device of a kind of electronic equipment of the embodiment of the present invention Figure, the device are applied to electronic equipment.
The device can include:
Receiving module 301, in the case of being in generation patterns in the electronic equipment, receive what updating apparatus was sent OTA data.
In actual applications, what electronic equipment can include but is not limited to OTA modes can be supported to carry out system update can Wearable device such as motion bracelet, VR (Virtual Reality, virtual reality) helmet etc., intelligent watch etc..
When user needs to carry out system upgrade to electronic equipment, if the electronic equipment can be directly connected to wireless network Network, then it can enter under system update pattern and OTA data are directly downloaded by wireless network.If the electronic equipment can not be direct Wireless connection can be established by the updating apparatus that can connect wireless network by being connected to wireless network, and nothing is connected by updating apparatus Gauze network simultaneously downloads OTA data, then OTA data are transmitted to electronic equipment by wireless connection.The updating apparatus can be electricity Brain, mobile phone etc. can install wearable device APP and the intelligent terminal of mutual connection can be carried out by bluetooth or BLE.
Monitoring modular 302, for monitoring whether the OTA data are transmitted normally.
Update module 303, if it is normal for the OTA data transfers, and after the completion of the OTA data receivers, utilize The OTA data update the standby operating system of the electronics.
Module 304 is exited, if for the OTA data transmission exceptions, exits the generation patterns.
Specifically, user can perform the system update operation of the electronic equipment by the APP in updating apparatus, make institute Stating electronic equipment and be updated pattern, the APP connects wireless network by updating apparatus and downloads OTA data, and by the OTA data Sent by updating apparatus to electronic equipment.Whether electronic equipment in OTA data procedures are received, transmit just by monitoring OTA data Often.
During in order to avoid carrying out system update, because OTA data transmission exceptions cause operating system update to fail, by OTA The completion of function is divided into two stages, and the first stage is the download phase of OTA data, the main transmission for completing OTA data, electronics Equipment monitors whether the OTA data are transmitted normally, if there is transmission abnormality then during OTA data downloads are carried out Abnormality processing measure is taken, exits generation patterns in time;Second-order can be entered again only in the case of OTA data transfers are normal Section, second stage is the system update stage, the erasable work of the main verification and flash for completing OTA data, completes operating system Renewal.It can thus avoid, after there are OTA transmission abnormalities, system is carried out more still with there are abnormal OTA data Newly, electronic equipment can not normal use after causing system update failure.
Alternatively, in certain embodiments, it is described to exit after module 304, it can also include:
Run module, the operating system current for running the electronic equipment.
In the embodiment of the present invention, by monitoring whether the OTA data are transmitted normally, choose whether to continue with reception OTA data carry out system upgrade.If the OTA data transfers are normal, the standby behaviour of the electronics is updated using the OTA data Make system;If the OTA data transmission exceptions, exit the generation patterns.So as to greatly reduce because upgrading is unsuccessfully led Cause electronic product can not normal use risk.
Alternatively, multiple upgrading data packets are included as one embodiment, the OTA data;
The monitoring modular 302 can include:
First judging unit, after receiving any upgrading data packet, judge under whether being received in preset time One upgrading data packet;
Abnormal determining unit, if not receiving next upgrading data packet in the preset time, determine the OTA Data transmission exception.
The OTA data include multiple upgrading data packets, and in OTA data transmission procedures are carried out, updating apparatus is according to biography Defeated agreement, send the plurality of upgrading data packet to electronic equipment in a certain order.Receiving first upgrading data packet Afterwards, that is, start to monitor OTA data whether transmission abnormality, if receiving next upgrading data packet in preset time, after Continuous monitoring;If next upgrading data packet is not received in preset time, then it is assumed that may hair in OTA data transmission procedures Upgrading data packet loss occurs for raw network connection interruption, OTA data transmission exceptions occurs.
In order to realize the monitoring to OTA data transmission exceptions, when can pass through timer, judge whether in preset time Inside receive next upgrading data packet.Alternatively, in certain embodiments, the abnormal determining unit specifically can be used for;
After receiving any data bag, when starting timer;
According to the timing duration of the timer, judge next upgrading data packet whether is received in preset time;
The monitoring modular 302 can also include:
Reset unit, if receiving next upgrading data packet in the preset time, reset the timer with Reclocking.
After the multiple upgrading data packet receives in preset time, determine that the OTA data transfers are normal.
Alternatively, any one upgrading data packet is being received, after starting timer, abnormality processing message can also be generated, And processing of ranking, if receiving next upgrading data packet in preset time, cancel the exception being lined up Message is managed, and resets the timer with reclocking, continues to monitor whether next one upgrading data packet is inscribed in preset time Receive;If not receiving next upgrading data packet in preset time, the abnormality processing message being lined up is performed, is led to Know that electronic product exits current generation patterns in time, avoid enter into second stage, be using the OTA data of transmission abnormality System renewal.
Fig. 4 is the structural representation of another embodiment of the system updating device of a kind of electronic equipment of the embodiment of the present invention Figure, the device are applied to electronic equipment.
The device can include:
Receiving module 401, in the case of being in generation patterns in the electronic equipment, receive what updating apparatus was sent OTA data.
Monitoring modular 402, for monitoring whether the OTA data are transmitted normally.
Update module 403, if it is normal for the OTA data transfers, and after the completion of the OTA data receivers, utilize The OTA data update the standby operating system of the electronics
The update module 403 can include:
Verification unit 411, if normal for the OTA data transfers, data check is carried out to the OTA data.
Updating block 412, for after OTA data verifications success, updating the electronics using the OTA data and setting Standby operating system.
Unit 413 is completed, if completed for the operating system update, the upgrade mode is exited and runs renewal Operating system afterwards.
Module 404 is exited, if for the OTA data transmission exceptions, exits the generation patterns.
Run module 405, the operating system current for running the electronic equipment.
After the OTA data transmission exceptions are monitored, electronic equipment directly exits generation patterns, and runs the electronics and set Standby current operating system, avoid and carry out system update using the OTA data of transmission abnormality.
The OTA data transfers are normal, after the completion of OTA data receivers, to OTA data progress data check, and After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data.Can be specifically to pass through The erasable modes of flash, complete the system update function of OTA data.After the operating system update success of the electronic equipment, exit Upgrade mode simultaneously runs the operating system after renewal.
In the embodiment of the present invention, the system update step of complete electronic equipment is given, is performing OTA more New function mistakes Cheng Zhong, when occur due to wireless connection is unstable etc. reason causes OTA data transmission exceptions the problems such as when, can exit in time OTA generation patterns.Avoid due to carrying out system update using the OTA data of transmission abnormality, cause OTA generation patterns can not be just Often exit so that electronic product can not normal use the problem of, substantially increase Consumer's Experience.
Fig. 5 is the structural representation of one embodiment of a kind of electronic equipment of the embodiment of the present invention, and the equipment includes Nonvolatile memory 502 and processor 501, the nonvolatile memory 502 are used to store computer readable program code, The processor 501 is used to perform the computer program code to realize:
In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received;Described in monitoring Whether OTA data are transmitted normally;If the OTA data transfers are normal, and after the completion of the OTA data receivers, using described OTA data update the operating system of the electronic equipment;If the OTA data transmission exceptions, exit the generation patterns.
Specifically, user can perform the system update operation of the electronic equipment by the APP in updating apparatus, make institute Stating electronic equipment and be updated pattern, the APP connects wireless network by updating apparatus and downloads OTA data, and by the OTA data Sent by updating apparatus to electronic equipment.Whether electronic equipment in OTA data procedures are received, transmit just by monitoring OTA data Often.
During in order to avoid carrying out system update, because OTA data transmission exceptions cause operating system update to fail, by OTA Upgrade function is divided into two stages, and the first stage is the download phase of OTA data, and the main transmission for completing OTA data, electronics is set For during OTA data downloads are carried out, monitor whether the OTA data are transmitted normally, then adopted if there is transmission abnormality Abnormality processing measure is taken, exits generation patterns in time;It is only normal in OTA data transfers, and the OTA data receivers are completed Afterwards, second stage can be just entered in the case of, second stage is the system update stage, the main verification for completing OTA data and Flash erasable work, the renewal of operating system is completed using OTA data.It can thus avoid, occurring, OTA transmission is different Chang Hou, system update is carried out still with there are abnormal OTA data, electronic equipment can not be normal after causing system update failure Use.
Alternatively, in certain embodiments, if the OTA data transmission exceptions of the processor 501, exit the liter After level pattern, methods described also includes:
Run the current operating system of the electronic equipment.
In the embodiment of the present invention, by monitoring whether the OTA data are transmitted normally, choose whether to continue with reception OTA data carry out system upgrade.If the OTA data transfers are normal, and after the completion of the OTA data receivers, using described OTA data update the standby operating system of the electronics;If the OTA data transmission exceptions, exit the generation patterns.So as to Greatly reduce due to upgrading unsuccessfully cause electronic product can not normal use risk.
Alternatively, multiple upgrading data packets are included as one embodiment, the OTA data;
Whether the processor 501, which monitors the OTA data and transmit, normally includes:
After receiving any upgrading data packet, judge next upgrading data packet whether is received in preset time;
If not receiving next upgrading data packet in the preset time, the OTA data transmission exceptions are determined.
The OTA data include multiple upgrading data packets, and in OTA data transmission procedures are carried out, updating apparatus is according to biography Defeated agreement, send the plurality of upgrading data packet to electronic equipment in a certain order.Receiving first upgrading data packet Afterwards, that is, start to monitor OTA data whether transmission abnormality, if receiving next upgrading data packet in preset time, after Continuous monitoring;If next upgrading data packet is not received in preset time, then it is assumed that may hair in OTA data transmission procedures Upgrading data packet loss occurs for raw network connection interruption, OTA data transmission exceptions occurs.
In order to realize the monitoring to OTA data transmission exceptions, when can pass through timer, judge whether in preset time Inside receive next upgrading data packet.Alternatively, in certain embodiments, the processor 501 receives any ascending series After bag, judge next upgrading data packet whether is received in preset time, including;
After receiving any data bag, when starting timer;
According to the timing duration of the timer, judge next upgrading data packet whether is received in preset time;
The processor 501 specifically can be also used for:
If receiving next upgrading data packet in the preset time, the timer is resetted with reclocking.
After the multiple upgrading data packet receives in preset time, determine that the OTA data transfers are normal.
Alternatively, any one upgrading data packet is being received, after starting timer, abnormality processing message can also be generated, And processing of ranking, if receiving next upgrading data packet in preset time, cancel the exception being lined up Message is managed, and resets the timer with reclocking, continues to monitor whether next one upgrading data packet is inscribed in preset time Receive;If not receiving next upgrading data packet in preset time, the abnormality processing message being lined up is performed, is led to Know that electronic product exits current generation patterns in time, avoid enter into second stage, be using the OTA data of transmission abnormality System renewal.
Alternatively, in certain embodiments, if the OTA data transfers of the processor 501 are normal, using described The operating system that OTA data update the electronic equipment is specifically:
If the OTA data transfers are normal, and after the completion of the OTA data receivers, data are carried out to the OTA data Verification;After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data;If institute Operating system update completion is stated, the upgrade mode is exited and runs the operating system after renewal.
Alternatively, in certain embodiments, if the OTA data transmission exceptions of the processor 501, exit the liter After level pattern, it is additionally operable to:Run the current operating system of the electronic equipment.
After the OTA data transmission exceptions are monitored, electronic equipment directly exits generation patterns, and runs the electronics and set Standby current operating system, avoid and carry out system update using the OTA data of transmission abnormality.
The OTA data transfers are normal, after the completion of OTA data receivers, to OTA data progress data check, and After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data.Can be specifically to pass through The erasable modes of flash, complete the system update function of OTA data.After the operating system update success of the electronic equipment, exit Upgrade mode simultaneously runs the operating system after renewal.
In the embodiment of the present invention, the system update step of complete electronic equipment is given, is performing OTA more New function mistakes Cheng Zhong, when occurring due to the problems such as reasons such as bluetooth poor compatibility cause OTA data transmission exceptions, OTA can be exited in time Generation patterns.Avoid due to carrying out system update using the OTA data of transmission abnormality, cause OTA generation patterns normal Exit so that electronic product can not normal use the problem of, substantially increase Consumer's Experience.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Some vocabulary has such as been used to censure specific components among specification and claim.Those skilled in the art should It is understood that hardware manufacturer may call same component with different nouns.This specification and claims are not with name The difference of title is used as the mode for distinguishing component, but is used as the criterion of differentiation with the difference of component functionally.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer in receivable error range, those skilled in the art can be described within a certain error range solution Technical problem, basically reach the technique effect.In addition, " coupling " one word is herein comprising any direct and indirect electric property coupling Means.Therefore, if the first device of described in the text one is coupled to a second device, representing the first device can directly electrical coupling The second device is connected to, or the second device is electrically coupled to indirectly by other devices or coupling means.Specification Subsequent descriptions for implement the present invention better embodiment, so it is described description be by illustrate the present invention rule for the purpose of, It is not limited to the scope of the present invention.Protection scope of the present invention is worked as to be defined depending on appended claims institute defender.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of elements not only include those key elements, but also including without clear and definite The other element listed, or also include for this commodity or the intrinsic key element of system.In the feelings not limited more Under condition, the key element that is limited by sentence "including a ...", it is not excluded that in the commodity including the key element or system also Other identical element be present
Some preferred embodiments of the present invention have shown and described in described above, but as previously described, it should be understood that the present invention Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations, Modification and environment, and above-mentioned teaching or the technology or knowledge of association area can be passed through in application contemplated scope described herein It is modified., then all should be in this hair and the change and change that those skilled in the art are carried out do not depart from the spirit and scope of the present invention In the protection domain of bright appended claims.

Claims (10)

1. the method for updating system of a kind of electronic equipment, it is characterised in that methods described includes:
In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received;
Monitor whether the OTA data are transmitted normally;
If the OTA data transfers are normal, and after the completion of the OTA data receivers, update the electricity using the OTA data The standby operating system of son;
If the OTA data transmission exceptions, exit the generation patterns.
2. according to the method for claim 1, it is characterised in that the OTA data include multiple upgrading data packets;
Whether the monitoring OTA data, which are transmitted, normally includes:
After receiving any upgrading data packet, judge next upgrading data packet whether is received in preset time;
If not receiving next upgrading data packet in the preset time, the OTA data transmission exceptions are determined.
3. according to the method for claim 2, it is characterised in that it is described receive any upgrading data packet after, judge pre- If next upgrading data packet whether is received in the time, including;
After receiving any data bag, when starting timer;
According to the timing duration of the timer, judge next upgrading data packet whether is received in preset time;
Methods described also includes:
If receiving next upgrading data packet in the preset time, the timer is resetted with reclocking.
4. according to the method for claim 1, it is characterised in that if the OTA data transfers are normal and described After the completion of OTA data receivers, the operating system of the electronic equipment is updated using the OTA data to be included:
If the OTA data transfers are normal, and after the completion of the OTA data receivers, data school is carried out to the OTA data Test;
After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data;
If the operating system update is completed, exit the upgrade mode and run the operating system after renewal.
5. according to the method for claim 1, it is characterised in that if the OTA data transmission exceptions, exit described After upgrade mode, methods described also includes:
Run the current operating system of the electronic equipment.
6. a kind of electronic equipment, it is characterised in that the equipment includes memory and processor, and the memory is based on storing Calculation machine readable program code, the processor are used to perform the computer readable program code to realize:
In the case where the electronic equipment is in generation patterns, the OTA data that updating apparatus is sent are received;Monitor the OTA Whether data are transmitted normally;If the OTA data transfers are normal, and after the completion of the OTA data receivers, utilize the OTA Data update the operating system of the electronic equipment;If the OTA data transmission exceptions, exit the generation patterns.
7. equipment according to claim 6, it is characterised in that the OTA data include multiple upgrading data packets;The place Whether reason device monitors the OTA data and transmits:
After receiving any upgrading data packet, judge next upgrading data packet whether is received in preset time;If Next upgrading data packet is not received in the preset time, determines the OTA data transmission exceptions.
8. equipment according to claim 7, it is characterised in that after the processor receives any upgrading data packet, sentence Break and next upgrading data packet whether is received in preset time, be specifically:
After receiving any data bag, when starting timer;According to the timing duration of the timer, judge in preset time Inside whether receive next upgrading data packet;
The processor is additionally operable to:If receiving next upgrading data packet in the preset time, the timing is resetted Device is with reclocking.
9. equipment according to claim 6, it is characterised in that if the processor OTA data transfers are normal, and After the completion of the OTA data receivers, the operating system that the electronic equipment is updated using the OTA data is specifically:
If the OTA data transfers are normal, and after the completion of the OTA data receivers, data school is carried out to the OTA data Test;After OTA data verifications success, the operating system of the electronic equipment is updated using the OTA data;It is if described Operating system update is completed, and is exited the upgrade mode and is run the operating system after renewal.
10. equipment according to claim 6, it is characterised in that if the processor OTA data transmission exceptions, Exit after the upgrade mode, be additionally operable to:Run the current operating system of the electronic equipment.
CN201710959402.8A 2017-10-16 2017-10-16 The method for updating system and electronic equipment of electronic equipment Pending CN107844307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710959402.8A CN107844307A (en) 2017-10-16 2017-10-16 The method for updating system and electronic equipment of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710959402.8A CN107844307A (en) 2017-10-16 2017-10-16 The method for updating system and electronic equipment of electronic equipment

Publications (1)

Publication Number Publication Date
CN107844307A true CN107844307A (en) 2018-03-27

Family

ID=61661281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959402.8A Pending CN107844307A (en) 2017-10-16 2017-10-16 The method for updating system and electronic equipment of electronic equipment

Country Status (1)

Country Link
CN (1) CN107844307A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882211A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of method, system and the TWS earphone of the upgrading of TWS earphone program
CN109445806A (en) * 2018-12-20 2019-03-08 歌尔科技有限公司 More device updating methods, device, system and terminal based on Ble
CN111104137A (en) * 2019-12-06 2020-05-05 山东信通电子股份有限公司 OTA equipment upgrading method and device
CN109413186B (en) * 2018-10-31 2021-07-30 Oppo广东移动通信有限公司 Application program updating method, terminal, server and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890636A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Firmware upgrade method and system under Android system
CN103984577A (en) * 2014-05-29 2014-08-13 深圳市华信天线技术有限公司 Data radio software updating method and system
CN105159713A (en) * 2015-09-02 2015-12-16 Tcl移动通信科技(宁波)有限公司 Display screen firmware updating method and display screen firmware updating system
CN105573794A (en) * 2015-12-18 2016-05-11 中国电子科技集团公司第三研究所 Long-distance updating method and system for embedded system software
US20160196128A1 (en) * 2013-08-12 2016-07-07 Chigoo Interactive Technology Co., Ltd. Software updating method, system, and device
CN106254035A (en) * 2016-08-08 2016-12-21 青岛海信宽带多媒体技术有限公司 The data receiver method of communication interface and device
CN106959873A (en) * 2017-03-16 2017-07-18 黎万恩 GNSS receiver method for upgrading system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890636A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Firmware upgrade method and system under Android system
US20160196128A1 (en) * 2013-08-12 2016-07-07 Chigoo Interactive Technology Co., Ltd. Software updating method, system, and device
CN103984577A (en) * 2014-05-29 2014-08-13 深圳市华信天线技术有限公司 Data radio software updating method and system
CN105159713A (en) * 2015-09-02 2015-12-16 Tcl移动通信科技(宁波)有限公司 Display screen firmware updating method and display screen firmware updating system
CN105573794A (en) * 2015-12-18 2016-05-11 中国电子科技集团公司第三研究所 Long-distance updating method and system for embedded system software
CN106254035A (en) * 2016-08-08 2016-12-21 青岛海信宽带多媒体技术有限公司 The data receiver method of communication interface and device
CN106959873A (en) * 2017-03-16 2017-07-18 黎万恩 GNSS receiver method for upgrading system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882211A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of method, system and the TWS earphone of the upgrading of TWS earphone program
WO2019237458A1 (en) * 2018-06-15 2019-12-19 歌尔科技有限公司 Method and system for upgrading program of tws headset, and tws headset
US11368777B2 (en) 2018-06-15 2022-06-21 Goertek Technology Co., Ltd. Method and system for upgrading program of TWS headset, and TWS headset
CN109413186B (en) * 2018-10-31 2021-07-30 Oppo广东移动通信有限公司 Application program updating method, terminal, server and system
CN109445806A (en) * 2018-12-20 2019-03-08 歌尔科技有限公司 More device updating methods, device, system and terminal based on Ble
CN111104137A (en) * 2019-12-06 2020-05-05 山东信通电子股份有限公司 OTA equipment upgrading method and device
CN111104137B (en) * 2019-12-06 2023-10-20 山东信通电子股份有限公司 OTA equipment upgrading method and device

Similar Documents

Publication Publication Date Title
CN107844307A (en) The method for updating system and electronic equipment of electronic equipment
CN103676937B (en) Method and device for processing control parameters in controller
CN108427616A (en) background program monitoring method and monitoring device
CN112612661B (en) Chip system level test method, device and system
CN108196846A (en) Home appliance control interface configuration method, terminal and computer readable storage medium
CN112637013B (en) CAN bus message abnormity detection method and device, equipment and storage medium
CN104361871A (en) Display screen debugging method, device and system
CN104238480A (en) Cabinet server BMC startup and shutdown control system and method
CN103825737B (en) Security apparatus, system and method for on-line upgrading of industrial control system
CN107844374A (en) The task executing method of terminal device, device, electronic equipment, storage medium
CN110908875A (en) Inspection method and device based on operation terminal
CN107291621A (en) Processing method, processing unit, medium and the electronic equipment of test case
US9703277B2 (en) Method and apparatus to track changes in an industrial controller
CN108271150A (en) Support while more mobile phones carried out the method and system of brush machine or data dump
CN110413388A (en) Multi-task processing method, device, equipment and storage medium based on operation system
CN107423073A (en) The method for customizing and system of system
CN105260026A (en) Terminal device control method, apparatus and system
JP2016062598A (en) System for predicting abnormality occurrence using plc log data
US11102071B2 (en) Approach to defining computer system configuration definitions
CN104881307A (en) Method and device for realizing downloading
CN104461741B (en) Graphics device interface based computing device optimizing method and device
CN107682153A (en) Method for network access, password method for remote updating, internet of things equipment and system
CN107105327A (en) One kind association method for start-up and shutdown and terminal
CN109597728B (en) Control method and device of test equipment and computer readable storage medium
CN106851002A (en) Network formats system of selection and system

Legal Events

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

Application publication date: 20180327