CN113721961A - Equipment upgrading method and device, storage medium and electronic equipment - Google Patents

Equipment upgrading method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113721961A
CN113721961A CN202111039070.4A CN202111039070A CN113721961A CN 113721961 A CN113721961 A CN 113721961A CN 202111039070 A CN202111039070 A CN 202111039070A CN 113721961 A CN113721961 A CN 113721961A
Authority
CN
China
Prior art keywords
terminal
processed
upgrading
upgrade
light sensation
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.)
Withdrawn
Application number
CN202111039070.4A
Other languages
Chinese (zh)
Inventor
郑嵘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111039070.4A priority Critical patent/CN113721961A/en
Publication of CN113721961A publication Critical patent/CN113721961A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading

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)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides an equipment upgrading method, an equipment upgrading device, a computer readable storage medium and electronic equipment, and relates to the technical field of electronic equipment. The equipment upgrading method comprises the following steps: acquiring an upgrade package corresponding to a terminal to be processed according to an access request, and storing the upgrade package to a specified path; if the light sensation value of the terminal to be processed meets the light sensation condition, downloading the upgrade package to the terminal to be processed from the specified path through a wireless network; and if the color state of the terminal to be processed is the switching identification state, upgrading the terminal to be processed according to the upgrading packet. The technical scheme of the embodiment of the disclosure can improve the convenience and reliability of equipment upgrading.

Description

Equipment upgrading method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic device technologies, and in particular, to a device upgrade method, a device upgrade apparatus, a computer-readable storage medium, and an electronic device.
Background
The production line is connected to a computer USB interface through a mobile phone data line, and after the production line is connected with a mobile phone through an upgrading tool in the computer, a mobile phone system is upgraded, namely, a line brush is carried out.
In the related technology, when a system is upgraded through a mobile phone data line, more computers and data lines are required to be occupied, and the resource occupation is large; resource loss of a computer port and a data line is easily caused by a large amount of data line plugging and unplugging actions and power supply switching for a long time; the operation steps of plugging and unplugging a large number of data wires are more, so that the periphery of the end of the product is easily scratched, and the product yield is influenced.
Disclosure of Invention
The present disclosure provides an apparatus upgrading method, an apparatus upgrading device, a computer-readable storage medium, and an electronic apparatus, thereby overcoming, at least to some extent, the problem of untimely abnormal alarm of the apparatus.
According to an aspect of the present disclosure, there is provided a device upgrade method, including: acquiring an upgrade package corresponding to a terminal to be processed according to an access request, and storing the upgrade package to a specified path; if the light sensation value of the terminal to be processed meets the light sensation condition, downloading the upgrade package to the terminal to be processed from the specified path through a wireless network; and if the color state of the terminal to be processed is the switching identification state, upgrading the terminal to be processed according to the upgrading packet.
According to an aspect of the present disclosure, there is provided an apparatus upgrading apparatus including: the storage module is used for acquiring an upgrade package corresponding to the terminal to be processed according to the access request and storing the upgrade package to a specified path; the download module is used for downloading the upgrade package to the terminal to be processed from the specified path through a wireless network if the light sensation value of the terminal to be processed meets the light sensation condition; and the upgrading module is used for upgrading the terminal to be processed according to the upgrading packet if the color state of the terminal to be processed is the switching identification state.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a device upgrade method as described in any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the device upgrade method of any of the above via execution of the executable instructions.
In the technical solutions provided by some embodiments of the present disclosure, the upgrade package is stored to a designated path, and the designated path is accessed through a wireless network, so that the upgrade package is obtained from the designated path and downloaded to a terminal, and batch upgrade is performed according to the downloaded upgrade package. On one hand, the data transmission capability of the wireless network is utilized to replace the original wired transmission mode, and due to the fact that no USB port is plugged in the whole process, the risk of abnormal interruption possibly occurring in the data line transmission process is avoided, a large amount of computer resources and data lines are not occupied, and resource consumption and quality risks are reduced. On the other hand, the specified path is accessed through the wireless network, so that the operation that the system is upgraded by accessing a computer through a data line is avoided, the operation steps are reduced, the operation convenience is improved, the downloading speed is improved, the quality yield is improved, and the reliability is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 is a schematic diagram illustrating an application scenario to which an apparatus upgrading method or an apparatus upgrading apparatus according to an embodiment of the present disclosure may be applied;
FIG. 2 illustrates a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure;
FIG. 3 schematically shows a flow chart of a device upgrade method according to an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a block diagram of a target wireless device in an embodiment of the disclosure;
FIG. 5 shows a detailed block diagram of a target wireless device in an embodiment of the disclosure;
FIG. 6 is a flow chart illustrating displaying of exception information in an embodiment of the present disclosure;
FIG. 7 shows a detailed flow chart of device upgrade in an embodiment of the present disclosure;
fig. 8 schematically shows a block diagram of an apparatus upgrading device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, all of the following terms "first" and "second" are used for distinguishing purposes only and should not be construed as limiting the present disclosure.
The embodiment of the disclosure provides a device upgrading method. Fig. 1 is a schematic diagram illustrating an application scenario to which the device upgrade method or the device upgrade apparatus according to the embodiment of the present disclosure may be applied.
The device upgrading method can be applied to any device upgrading and flashing scenes, as shown in fig. 1, and can be particularly applied to the process of flashing the terminal 101 by using the server 103. The terminal 101 may be various types of electronic devices, for example, a smart phone or a wireless speaker, a tablet computer, a notebook computer, etc., as long as it can be connected to a wireless network. The server 103 may be any type of server, such as a local server or a remote server, and may be a server with an information processing function or a client, such as a portable computer, a desktop computer, a smart phone, and the like, for performing a batch upgrade on the terminal, so as to perform a flash operation. Network 102 may include various connection types such as wireless communication links and the like, with communication links provided over a wireless network.
In the embodiment of the disclosure, the server firstly sends the access request to the internal server, acquires the upgrade package corresponding to the terminal to be upgraded, and stores the downloaded upgrade package to the designated path corresponding to the server. In the upgrading mode, the specified path is accessed through a wireless network so as to download the upgrading packet to the terminal to realize batch upgrading.
It should be noted that the device upgrade method provided by the embodiment of the present disclosure may be completely executed by the server.
FIG. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. It should be noted that the electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
FIG. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. The terminal of the present disclosure may be configured in the form of an electronic device as shown in fig. 2, however, it should be noted that the electronic device shown in fig. 2 is only one example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
The electronic device of the present disclosure includes at least a processor and a memory for storing one or more programs, which when executed by the processor, cause the processor to implement the method of the exemplary embodiments of the present disclosure.
FIG. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. It should be noted that the electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device of the present disclosure includes at least a processor and a memory for storing one or more programs, which when executed by the processor, cause the processor to implement the preview image processing method of the exemplary embodiments of the present disclosure.
Specifically, as shown in fig. 2, the electronic device 200 may include: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, a mobile communication module 250, and a wireless communication module 260.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the Processor 210 may include an Application Processor (AP), a modem Processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband Processor, and/or a Neural Network Processor (NPU), and the like. The different processing units may be separate devices or may be integrated into one or more processors. Additionally, a memory may be provided in processor 210 for storing instructions and data.
The USB interface 230 is an interface conforming to the USB standard specification, and may specifically be a MiniUSB interface, a microsusb interface, a USB type c interface, or the like. The USB interface 230 may be used to connect a charger to charge the electronic device 200, and may also be used to transmit data between the electronic device 200 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface can also be used for connecting other electronic equipment and the like.
The charge management module 240 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. The power management module 241 is used for connecting the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives the input of the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display 290, the wireless communication module 260, and the like.
The wireless communication function of the electronic device 200 may be implemented by the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 200.
The Wireless Communication module 260 may provide a solution for Wireless Communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs) (e.g., Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like.
The electronic device 200 implements a display function through the GPU, the display screen 290, the application processor, and the like. The GPU is an image-blurring microprocessor, connected to the display screen 290 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
Internal memory 221 may be used to store computer-executable program code, including instructions. The internal memory 221 may include a program storage area and a data storage area. The external memory interface 222 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200.
The keys 294 include a power-on key, a volume key, and the like. The keys 294 may be mechanical keys. Or may be touch keys. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc.
The electronic device of the present disclosure includes at least a processor and a memory for storing one or more programs, which when executed by the processor, cause the processor to implement the device upgrade method of the exemplary embodiments of the present disclosure.
The present application also provides a computer-readable storage medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device.
A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable storage medium may transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The computer-readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Fig. 3 schematically shows a flowchart of a device upgrade method according to an exemplary embodiment of the present disclosure, which may be applied in an application scenario in which a terminal is booted. Referring to fig. 3, the device upgrade method may include steps S310 to S330, with the server as the execution subject, and the following details are described:
in step S310, an upgrade package corresponding to the terminal to be processed is obtained according to the access request, and the upgrade package is stored to the designated path.
In the embodiment of the present disclosure, the access request refers to a connection request sent by the server to the internal server. The internal servers may be workshops or servers inside a factory, each workshop may correspond to one server, and the internal servers of different workshops may be the same or different, and are not limited herein. In the embodiment of the disclosure, the server may be a local server, and may be specifically implemented by an industrial personal computer. The industrial personal computer comprises a gigabit network card and is used for realizing a flashing function.
The terminal may be disposed in a shielding device, the shielding device may be a shielding cabinet including a plurality of layers of shielding boxes, and the shielding boxes may be disposed in a drawer type. The shielding device is used for isolating the terminal to be processed so as to avoid the terminal not to be interfered by other signals. The shielding case includes external antenna, and external antenna is connected with wireless access point, therefore wireless access point is the same with external antenna and shielding case's quantity. The wireless access point may be a wireless route. Referring to fig. 4, each shielding box is connected to one wireless access point, and one shielding box includes an external antenna therein, and the external antenna is connected to a terminal placed in the shielding box, so as to implement communication connection between the wireless access point and the terminal. And the server and the terminal adopt an http protocol or a point-to-point protocol for data transmission. It should be noted that each wireless access point AP is connected to at most two terminals, and the adjacent wireless access points AP are wirelessly isolated from each other, so as to avoid signal interference among multiple wireless access points. And the plurality of wireless access points are connected with the switch and are used for carrying out communication connection on the terminal in the shielding box and the local server. In addition, the local server is connected with the workshop internal server so as to download the upgrade package from the workshop internal server and store the upgrade package to the specified path.
A maximum of two terminals may be included in each shielded enclosure to improve efficiency. All terminals in the shielding boxes can simultaneously execute upgrading operation without interference, so that the terminal to be processed can be one or more terminals to be refreshed, and the terminal can be a mobile phone. Based on this, the disclosed embodiment can perform batch upgrading on one or more terminals.
The upgrade package refers to upgrade software corresponding to a system installed in the terminal, and the upgrade packages corresponding to different types of terminals are different. The designated path is used for indicating a location for storing the upgrade package, and the designated path may be a path determined in the local server in advance, so as to perform uniform storage and uniform management on all the upgrade packages. Specifically, the local server sends an access request to an internal server corresponding to the factory through the intranet to access the internal server. And when the access is successful, the model of the terminal to be processed can be obtained, the upgrade package corresponding to the model is determined, and the upgrade package is downloaded to the specified path.
After the upgrade package is downloaded to the designated path, an upgrade mode may be entered. Specifically, the mobile phone may enter an upgrade mode in response to operation information corresponding to the start operation, where the upgrade mode refers to a mobile phone flashing mode, that is, a mobile phone flashing work mode is entered. The opening operation can be in a manual mode or an instruction mode, wherein the manual mode is that an apk (Android package) Android installation package is manually opened, and the instruction mode is that an adb (Android Debug Bridge, Android phone auxiliary toolkit) instruction is triggered. The adb toolkit is an android mobile phone auxiliary toolkit, and equipment or a mobile phone can be managed by the adb toolkit, so that the mobile phone can be connected with a PC (personal computer) terminal, and the mobile phone can be operated on a computer at will. The operation information is a signal generated by the local server when the opening operation is received, and is used for identifying the executed opening operation. And if the upgrade mode is failed to be started within the duration, the upgrade mode is restarted in response to the operation information of the starting operation. The duration may be any duration, such as 10 seconds or 20 seconds, etc. If the upgrading mode is not entered within 10 seconds, the machine-refreshing working die is exited, and the machine-refreshing working die is entered again in a manual mode or an instruction mode when the upgrading mode needs to be started next time, so as to avoid misoperation.
In step S320, if the light sensation value of the to-be-processed terminal satisfies the light sensation condition, the upgrade package is downloaded to the to-be-processed terminal from the designated path through the wireless network.
In the embodiment of the disclosure, after the upgrade mode is started, the light sensation value of the terminal to be processed can be acquired. The light sensation value refers to a front-located dark and dark light sensation value of the terminal to be processed and is used for describing the light sensation value of the terminal to be processed in a dark environment so as to facilitate brightness matching of the terminal to be processed. Because the signals of the wireless networks from the wireless access points are the same, the wireless networks can be connected only by arranging the terminal to be processed in the shielding box, so that the terminal to be processed is prevented from being connected with other networks. Through obtaining the leading dark light sense value of pending terminal, can confirm accurately whether pending terminal is in the shielded cell to avoid the interference of other signals. And if the pre-dark light sensation values obtained continuously and repeatedly are all in the light sensation range, determining that the pre-dark light sensation value of the terminal to be processed meets the light sensation condition.
Fig. 5 schematically shows a flow chart for determining the light sensation condition, and referring to fig. 5, the method mainly comprises the following steps:
in step S510, a front-end dark light sensitivity value of the terminal to be processed is obtained. Wherein the acquisition may be once for a fixed duration. For example, the fixed duration may be 1 second or 2 seconds, etc.
In step S520, it is determined whether the pre-dark light sensation value is within the light sensation range; if yes, go to step S530; if not, step S510 is executed again. The light sensation range may be in the range of 0-20.
In step S530, it is determined whether the number of times of obtaining the pre-dark light sensitivity value is greater than a preset number of times, if so, the process goes to step S540; if not, go to step S510. The preset number of times may be 3 times, 5 times, etc., and 3 times are exemplified here.
In step S540, it is determined that the front dark light sensation value of the terminal to be processed satisfies the light sensation condition.
In the embodiment of the disclosure, the method mainly comprises the following steps: acquiring a preposed dark light sensation value of a terminal to be processed for the first time, and acquiring the preposed dark light sensation value for the second time if the preposed dark light sensation value acquired for the first time is within a light sensation range; if the pre-dark light sensation value obtained for the second time is within the light sensation range, obtaining the pre-dark light sensation value for the third time; and if the pre-dark light sensation value acquired for the third time is within the light sensation range, the pre-dark light sensation value is considered to meet the light sensation condition. The front dark light sensation value is determined to meet the light sensation condition through the fact that the front dark light sensation value is in the light sensation range continuously for multiple times, and accuracy and stability can be improved. Therefore, the terminal to be processed can be ensured to be in a shielding environment for isolating wireless signals, which is formed by the shielding box before being connected with the wireless network, the interference of other signals is avoided, and the stability of the signals is improved.
When the light sensation value of the terminal to be processed meets the light sensation condition, the terminal to be processed can be determined to be in the shielding box. When the terminal to be processed is determined to be in the shielding box, the wireless network can be started, so that the terminal to be processed can only be connected with the started network, and communication connection is established between the terminal to be processed and the local server through the started wireless network, so that the terminal to be processed can access the specified path of the local server through the wireless network. And further downloading the upgrade package corresponding to the terminal to be processed from the specified path after accessing the specified path. The wireless network may be a sixth generation wireless network technology WiFi6, or may be other types of wireless networks. Specifically, the wireless network WiFi6 may be turned on, so that the terminal to be processed automatically searches for the fixed IP address, and then downloads the upgrade package corresponding to the terminal to be processed by searching for the specified path of the local server through the fixed IP address. In the embodiment of the disclosure, the plugging operation of the USB port is avoided when the upgrade package is downloaded, the risk of abnormal interruption possibly occurring in the data line transmission process is also avoided, a large amount of computer resources and data lines are not required to be occupied, the resource consumption is reduced, and the reliability is improved.
In step S330, if the color status of the terminal to be processed is the switching identifier status, the terminal to be processed is upgraded in batch according to the upgrade package.
In the embodiment of the disclosure, after the upgrade package is downloaded, the color state of the terminal to be processed can be adjusted, so that the installation and flashing process can be started conveniently. Specifically, the color state of the screen background of the terminal to be processed may be adjusted to be the switching identifier state, and the switching identifier state may be green. Based on the method, the industrial and modular system starts the installation and flashing process, and the background of the screen of the terminal to be processed is bright green. And if the color state of the terminal to be processed is detected to be green, starting upgrading operation. The upgrading operation refers to a flashing operation, namely, system updating is carried out on the terminal. When the number of the terminals to be processed is one, upgrading operation can be carried out on one terminal to be processed; when the number of the terminals to be processed is multiple, the terminals to be processed can be upgraded in batch. And a plurality of to-be-processed terminals can be placed in the shielding box at the same time, so that batch upgrading is carried out on the plurality of to-be-processed terminals, and batch flashing operation is realized.
According to the technical scheme in the embodiment of the disclosure, OTA (Over-the-Air Technology ) upgrading operation is performed in a mode of downloading the upgrading packets in batches through the wireless network WiFi6, and the upgrading method is different from a line brush used in the related Technology and an OTG (Over-the-Air) upgrading mode of connecting an external device by using a USB (universal serial bus) interface, so that contact of product ports is avoided in the whole process, and the downloading rate and the quality yield are improved.
In addition, the method may further include: and responding to the feedback information corresponding to the color state of the terminal to be processed sent by the shielding box, and if other terminals exist in the shielding box, continuously downloading the upgrading packages corresponding to the other terminals so as to carry out batch upgrading on the other terminals. Specifically, the color status may be a screen status of the terminal to be processed, a color sensor may be disposed in the shielding box, and the color status of the terminal to be processed may be detected by the color sensor. The feedback information refers to a signal which is sent to the local server when the color sensor in the shielding box detects the color state of the terminal to be processed and is used for representing the color state. For example, when it is detected that the color state of the terminal to be processed is green, the feedback information may be a prompt signal, specifically, an audio prompt or a signal light prompt, and the like.
When receiving the feedback information, it may first be determined whether the terminal to be processed is taken out of the shielded enclosure, and it is detected whether there are other terminals in the shielded enclosure. Can take out pending terminal and put into other terminals through manual mode, also can take out pending terminal and put into other terminals through equipment modes such as arms, realize whole unmanned operation's automated processing process, improve the simple operation nature. The other terminal may be a terminal to be upgraded, and the model of the other terminal may be the same as or different from the model of the terminal to be upgraded, and is not limited herein. And if the other terminals exist in the shielded box, accessing the internal server of the factory through the intranet, and downloading the upgrade packages corresponding to the other terminals to the specified path. Further, if the preset dark light sensation values of other terminals are detected to be within the light sensation range of 0-20 for three times continuously, the WiFi wireless network is started, so that the other terminals automatically search for the fixed IP address and connect to access the specified path of the local server, and the upgrade package is downloaded to the other terminals from the specified path to upgrade the other terminals.
Fig. 6 schematically shows a specific flowchart of device upgrade, which, with reference to fig. 6, mainly includes the following steps:
in step S601, the flush mode is entered.
In step S602, a front-end dark light sensitivity value of the terminal to be processed is obtained.
In step S603, it is determined whether the pre-dark light sensation value is within the light sensation range, such as within a range of 0-20. If yes, go to step S604. If not, the step S603 is continuously executed.
In step S604, the number of times of determining whether the pre-dark light sensation value is within the light sensation range is marked as n, and the value of n is updated.
In step S605, it is determined whether the number of times is greater than a preset number of times, where the preset number of times is 3. If yes, go to step S606; if not, go to step S607.
In step S606, the upgrade package is downloaded.
In step S607, 1 second is delayed. And go to step S603 to continue execution.
In step S608, it is determined that the terminal to be processed is a green screen.
In step S609, an upgrade operation is performed on the terminal to be processed.
According to the technical scheme, the data transmission capability of the wireless network is utilized to replace a wired transmission mode in the related technology, due to the fact that no USB port is plugged in and pulled out in the whole process, the risk of abnormal interruption possibly occurring in the data line transmission process is avoided, a large number of computer resources and data lines are not occupied, and resource consumption and quality risks are reduced. Due to the fact that the appointed path is accessed through the wireless network, the operation that a computer is accessed through a data line to conduct system upgrading is avoided, operation steps are reduced, operation convenience is improved, downloading speed is improved, quality yield is improved, and reliability is improved.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Fig. 7 schematically illustrates a block diagram of a device upgrade apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 7, the device upgrade apparatus 700 may include the following modules:
the storage module 701 is used for acquiring an upgrade package corresponding to a terminal to be processed according to an access request and storing the upgrade package to a specified path;
a downloading module 702, configured to download the upgrade package to the terminal to be processed from the specified path through a wireless network if the light sensation value of the terminal to be processed meets the light sensation condition;
the upgrading module 703 is configured to, if the color state of the terminal to be processed is the switching identifier state, perform upgrading operation on the terminal to be processed according to the upgrade package.
In an exemplary embodiment of the present disclosure, the obtaining an upgrade package corresponding to a terminal to be processed includes: and transmitting the access request to an internal server, and downloading an upgrade package corresponding to the terminal to be processed from the internal server.
In an exemplary embodiment of the present disclosure, the method further comprises: acquiring a front-end dark light sensitivity value of the terminal to be processed; and if the pre-dark light sensation value obtained continuously and repeatedly is within the light sensation range, determining that the pre-dark light sensation value of the terminal to be processed meets the light sensation condition.
In an exemplary embodiment of the present disclosure, the downloading the upgrade package from the designated path to the to-be-processed terminal through a wireless network includes: controlling the terminal to be processed to automatically search a fixed address through the wireless network and connecting the fixed address so as to access the specified path through the fixed address; and acquiring the upgrade package in the specified path, and downloading the upgrade package to the terminal to be processed.
In an exemplary embodiment of the present disclosure, the terminal to be processed is located in a shielding box, and the shielding boxes are isolated from each other.
In an exemplary embodiment of the present disclosure, the method further comprises: and if the upgrade mode fails to be started within the duration, the upgrade mode is restarted in response to the operation information of the starting operation.
In an exemplary embodiment of the present disclosure, the method further comprises: and responding to the state information of the terminal to be processed sent by the shielding box, and if other terminals exist in the shielding box, continuously downloading the upgrading package corresponding to the other terminals so as to carry out batch upgrading on the other terminals.
Since each functional module of the device upgrading apparatus according to the embodiment of the present disclosure is the same as that in the embodiment of the device upgrading method, it is not described herein again.
Fig. 8 schematically illustrates a block diagram of a device upgrade system of an exemplary embodiment of the present disclosure. Referring to FIG. 8, a device upgrade system 800 may include the following modules:
an internal server 801;
a switch 802 communicatively coupled to the server and the wireless access point;
a plurality of shielding boxes 803, in which the terminal to be processed is disposed, for providing a wireless isolation environment for the terminal to be processed;
the wireless access point 804 is used for performing communication connection on the terminals to be processed in the shielding boxes and the switch;
and a server 805, communicatively connected to the internal server and the switch, configured to download an upgrade package from the internal server and perform batch upgrade on the to-be-processed terminals according to the upgrade package.
The technical scheme in fig. 8 utilizes the data transmission capability of the wireless network, avoids the risk of abnormal interruption which may occur in the data line transmission process, does not need to occupy a large amount of computer resources and data lines, and reduces resource consumption and quality risk. Due to the fact that the appointed path is accessed through the wireless network, the operation that a computer is accessed through a data line to conduct system upgrading is avoided, operation steps are reduced, operation convenience is improved, downloading speed is improved, quality yield is improved, and reliability is improved.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (10)

1. A method for upgrading a device, comprising:
acquiring an upgrade package corresponding to a terminal to be processed according to an access request, and storing the upgrade package to a specified path;
if the light sensation value of the terminal to be processed meets the light sensation condition, downloading the upgrade package to the terminal to be processed from the specified path through a wireless network;
and if the color state of the terminal to be processed is the switching identification state, upgrading the terminal to be processed according to the upgrading packet.
2. The device upgrading method according to claim 1, wherein the obtaining of the upgrade package corresponding to the terminal to be processed according to the access request includes:
and transmitting the access request to an internal server, and downloading an upgrade package corresponding to the terminal to be processed from the internal server.
3. The device upgrade method according to claim 1, further comprising:
acquiring a front-end dark light sensitivity value of the terminal to be processed;
and if the pre-dark light sensation value obtained continuously and repeatedly is within the light sensation range, determining that the pre-dark light sensation value of the terminal to be processed meets the light sensation condition.
4. The device upgrading method according to claim 1, wherein the downloading the upgrade package from the designated path to the terminal to be processed through a wireless network comprises:
controlling the terminal to be processed to automatically search a fixed address through the wireless network and connecting the fixed address so as to access the specified path through the fixed address;
and acquiring the upgrade package in the specified path, and downloading the upgrade package to the terminal to be processed.
5. The equipment upgrading method according to any one of claims 1 to 4, characterized in that the terminal to be processed is located in a shielding box, and a plurality of shielding boxes are isolated from each other.
6. The device upgrade method according to claim 1, further comprising:
and if the upgrade mode fails to be started within the duration, the upgrade mode is restarted in response to the operation information of the starting operation.
7. The device upgrade method according to claim 1, further comprising:
and responding to the feedback information corresponding to the color state of the terminal to be processed sent by the shielding box, and if other terminals exist in the shielding box, continuously downloading the upgrading packages corresponding to the other terminals so as to carry out batch upgrading on the other terminals.
8. An apparatus upgrade device, comprising:
the storage module is used for acquiring an upgrade package corresponding to the terminal to be processed according to the access request and storing the upgrade package to a specified path;
the download module is used for downloading the upgrade package to the terminal to be processed from the specified path through a wireless network if the light sensation value of the terminal to be processed meets the light sensation condition;
and the upgrading module is used for upgrading the terminal to be processed according to the upgrading packet if the color state of the terminal to be processed is the switching identification state.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the device upgrade method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the device upgrade method of any one of claims 1-7 via execution of the executable instructions.
CN202111039070.4A 2021-09-06 2021-09-06 Equipment upgrading method and device, storage medium and electronic equipment Withdrawn CN113721961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111039070.4A CN113721961A (en) 2021-09-06 2021-09-06 Equipment upgrading method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111039070.4A CN113721961A (en) 2021-09-06 2021-09-06 Equipment upgrading method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113721961A true CN113721961A (en) 2021-11-30

Family

ID=78681864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111039070.4A Withdrawn CN113721961A (en) 2021-09-06 2021-09-06 Equipment upgrading method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113721961A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610341A (en) * 2022-03-22 2022-06-10 Oppo广东移动通信有限公司 Production line flashing method and device, electronic equipment, chip and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811524A (en) * 2015-04-15 2015-07-29 广东欧珀移动通信有限公司 Method and device for testing radio frequency performance of terminal
CN110764851A (en) * 2018-07-27 2020-02-07 Oppo广东移动通信有限公司 Application update reminding method and device, storage medium and electronic equipment
CN112188434A (en) * 2020-09-21 2021-01-05 西安墨科通讯科技有限公司 OTA (over the air) upgrading method and system
CN112988484A (en) * 2021-03-10 2021-06-18 长鑫存储技术有限公司 Memory device testing method and device, readable storage medium and electronic equipment
US20210216637A1 (en) * 2020-01-10 2021-07-15 Beijing Xiaomi Mobile Software Co., Ltd. Firmware upgrade method and device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811524A (en) * 2015-04-15 2015-07-29 广东欧珀移动通信有限公司 Method and device for testing radio frequency performance of terminal
CN110764851A (en) * 2018-07-27 2020-02-07 Oppo广东移动通信有限公司 Application update reminding method and device, storage medium and electronic equipment
US20210216637A1 (en) * 2020-01-10 2021-07-15 Beijing Xiaomi Mobile Software Co., Ltd. Firmware upgrade method and device, and storage medium
CN112188434A (en) * 2020-09-21 2021-01-05 西安墨科通讯科技有限公司 OTA (over the air) upgrading method and system
CN112988484A (en) * 2021-03-10 2021-06-18 长鑫存储技术有限公司 Memory device testing method and device, readable storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610341A (en) * 2022-03-22 2022-06-10 Oppo广东移动通信有限公司 Production line flashing method and device, electronic equipment, chip and storage medium

Similar Documents

Publication Publication Date Title
US10474452B2 (en) Firmware upgrade through GPIO port via UART protocol
US10412207B2 (en) Mobile terminal, power adapter, and upgrade method thereof
CN107205041B (en) Audio device upgrading method, audio device and intelligent sound box
JP5710680B2 (en) System and method for reducing factory program time for wireless devices
EP2784661B1 (en) Computer program product, information processing method, and information processing apparatus
US20150363188A1 (en) Information Processing Device and Information Processing System
CN104468260A (en) Recognition method, device and system for mobile terminal device
US20190197010A1 (en) Data transmission method and mobile terminal
KR20200031900A (en) Apparatus and method for controlling protocol data unit session
US9971591B2 (en) Mobile terminal, power adapter, and upgrade method thereof
CN113721961A (en) Equipment upgrading method and device, storage medium and electronic equipment
WO2024114796A1 (en) Vehicle usb firmware upgrade method and device, and vehicle
CN112311818B (en) Method, device, terminal and storage medium for downloading applet data packet
CN110336712B (en) Method and device for capturing empty packet by mobile terminal, storage medium and mobile terminal
CN109413714B (en) User agent information processing method, device, storage medium and terminal
CN111866278B (en) Electric quantity display method, device, equipment and storage medium of wireless earphone
CN106445594B (en) System application installation method and device and terminal equipment
CN112965746A (en) Application engineering construction method and device, equipment and computer readable storage medium
CN112256506B (en) Wide area network phased array antenna upgrading and debugging terminal based on cloud service
CN114995893B (en) Firmware management method, flash memory, host and storage medium
CN114372002B (en) Automatic test method, test box and test system
CN108288373B (en) Infrared configuration system and operation method and application thereof
CN115086822A (en) Earphone charging box software updating method and device, electronic equipment and storage medium
CN117914841A (en) Vehicle-end application management method, system, equipment, controller, medium and vehicle
CN116419371A (en) Method, apparatus, device, storage medium and program product for establishing communication connection

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20211130

WW01 Invention patent application withdrawn after publication