[go: up one dir, main page]

CN111400080A - Method and device for setting shipping mode of electronic product and electronic equipment - Google Patents

Method and device for setting shipping mode of electronic product and electronic equipment Download PDF

Info

Publication number
CN111400080A
CN111400080A CN202010197432.1A CN202010197432A CN111400080A CN 111400080 A CN111400080 A CN 111400080A CN 202010197432 A CN202010197432 A CN 202010197432A CN 111400080 A CN111400080 A CN 111400080A
Authority
CN
China
Prior art keywords
shipping mode
electronic product
module
entering
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010197432.1A
Other languages
Chinese (zh)
Other versions
CN111400080B (en
Inventor
臧英
韩振朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
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 Inc filed Critical Goertek Inc
Priority to CN202010197432.1A priority Critical patent/CN111400080B/en
Publication of CN111400080A publication Critical patent/CN111400080A/en
Application granted granted Critical
Publication of CN111400080B publication Critical patent/CN111400080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a method and a device for setting shipping mode of electronic product, electronic equipment and a computer readable storage medium. The method comprises the following steps: s1: receiving an instruction of entering a shipping mode sent by an upper computer; s2: executing the operation of entering the shipping mode and starting timing of preset time; s3: when the timing of the preset time is over, judging whether the electronic product enters a shipping mode, and when the electronic product does not enter the shipping mode, starting to execute the operation of entering the shipping mode and the timing of the preset time again; s4: repeating the step S3 for a preset number of times until the electronic product enters the shipping mode; if the electronic product does not enter the shipping mode after repeating the preset times, marking the instruction execution failure. And finally, sending the message of the instruction execution failure to the upper computer according to the test message sent by the upper computer. The invention can reduce the time consumed in the process of repeatedly issuing the command by the upper computer, thereby improving the production efficiency of a production line.

Description

Method and device for setting shipping mode of electronic product and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for setting an shipping mode of an electronic product, an electronic device, and a computer-readable storage medium.
Background
Before an electronic product leaves a factory, in order to keep the electric quantity of the electronic product in the transportation process, the electronic product is adjusted to be in a shipping mode, a power supply module of the electronic product does not supply power to other power consumption components inside the electronic product any more in the shipping mode, so that the electronic product is in a physical power-off state, all communication with the outside is cut off, the electric quantity of the electronic product in the transportation and storage processes is saved, the problems of abnormal starting and the like of the electronic product are prevented, when a user takes the electronic product, a box opening action is carried out to trigger the power supply module inside the electronic product to start power supply, and then the electronic product can be normally used.
In the prior art, before an electronic product leaves a factory, a factory end issues a serial port instruction entering a shipping mode to the electronic product through an upper computer test system, the electronic product executes a corresponding operation of entering the shipping mode once according to the serial port instruction to realize the state that the electronic product enters the shipping mode, but not all the electronic products can successfully enter the shipping mode at one time, and when the upper computer test system sends a test instruction for testing whether the electronic product successfully enters the shipping mode or not to the electronic product after a preset time period, if the upper computer test system can also receive response information of the electronic product, the state that the electronic product does not successfully enter the shipping mode is indicated. If the operation of entering the shipping mode is executed once by the electronic product is unsuccessful, the factory end screens the electronic product, and in other time periods, the serial port instruction entering the shipping mode is issued to the electronic product again through the upper computer test system to repeatedly execute the operation until the response information of the electronic product can still be received by sending the test instruction through the upper computer test system after multiple attempts are made, and the factory end intercepts the electronic product if the electronic product does not meet the factory requirements.
According to the method for setting the electronic product to enter the shipping mode, the factory side repeatedly issues the operation of setting the electronic product to enter the shipping mode to the same factory side for multiple times through the upper computer test system in different time periods, so that time is consumed in the process of issuing and receiving the instruction, and the production efficiency is reduced.
Disclosure of Invention
The invention aims to provide a method and a device for setting shipping mode of an electronic product, electronic equipment and a computer-readable storage medium. The problem of the electronic product get into shipping mode need the mill end through host computer test system in different time quantums to the same mill end repeated issue set up get into shipping mode's operation many times to instruction and the in-process of receiving are consumed time under down, electronic product production efficiency is low is solved.
According to a first aspect of the present invention, there is provided a method for setting shipping mode of electronic product, comprising the steps of:
s1: receiving an instruction of entering a shipping mode sent by an upper computer;
s2: executing the operation of entering the shipping mode and starting timing of preset time;
s3: when the timing of the preset time is over, judging whether the electronic product enters a shipping mode, and when the electronic product does not enter the shipping mode, starting to execute the operation of entering the shipping mode and the timing of the preset time again;
s4: repeating the step S3 for a preset number of times until the electronic product enters a shipping mode; and if the electronic product does not enter the shipping mode after the preset times are repeated, marking that the instruction execution fails.
Optionally, after step S1, the method further includes:
and sending response information to the upper computer according to the command for entering the shipping mode.
Optionally, in step S3, the step of determining whether the electronic product enters the shipping mode includes:
when the timing of the preset time is over, if the electronic product does not receive a feedback signal of the end of timing, the electronic product is judged to enter a shipping mode, otherwise, the electronic product is judged not to enter the shipping mode.
Optionally, in step S3, before the operation of entering the shipping mode and the timing of the predetermined time are started again, the method further includes:
and resetting a power supply module of the electronic product.
Optionally, in step S4, the method further includes:
and receiving a test message sent by an upper computer, and sending the message of instruction execution failure to the upper computer.
According to a second aspect of the present invention, there is provided an apparatus for setting shipping mode of electronic products, comprising:
the receiving module is used for receiving an instruction sent by the upper computer to enter a shipping mode;
the execution module is used for responding to the instruction for entering the shipping mode to execute the operation for entering the shipping mode;
the timing module is used for timing the operation of entering the shipping mode started by the execution module for preset time;
the judging module is used for judging whether the electronic product enters a shipping mode or not when the timing of the preset time of the timing module is finished, and triggering the executing module to execute the operation of entering the shipping mode again and triggering the timing module to time the preset time again when the electronic product does not enter the shipping mode;
the counting module is used for counting the operation of entering a shipping mode and the timing of the preset time;
and the marking module is used for marking the instruction execution failure when the counting module reaches a preset counting value.
Optionally, the apparatus further comprises:
and the resetting module is used for resetting the power supply module of the electronic product after the judging module judges that the electronic product does not enter the shipping mode.
Optionally, the receiving module is further configured to receive a test message sent by the upper computer;
the device further comprises: and the sending module is used for sending the message of the instruction execution failure marked by the marking module to the upper computer.
According to a third aspect of the present invention, there is provided an electronic apparatus comprising:
the device for setting the shipping mode of the electronic product according to the second aspect of the invention; or,
a processor and a memory for storing executable instructions for controlling the processor to perform a method of electronic product shipping mode setting according to the first aspect of the invention.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of electronic product shipping mode setting according to the first aspect of the present invention.
According to the embodiment of the invention, a factory end sends an instruction for entering a shipping mode through an upper computer, an electronic product executes operation for entering the shipping mode and starts timing of preset time after receiving the instruction for entering the shipping mode, the electronic product configures preset time overtime and then executes operation for resetting a power supply module and calls a function interface for entering the shipping mode, when the timing of the preset time is over, if the electronic product receives a feedback signal of the end of timing, namely the prompt message of the timing overtime is received, which indicates that the electronic product does not enter the shipping mode, the operation for entering the shipping mode and the timing of the preset time are started according to the configuration, if the electronic product does not enter the shipping mode after repeating the preset times, the instruction for entering the shipping mode is marked to be failed to execute, and according to a test message sent by the upper computer, the information of the instruction execution failure is sent to the upper computer, so that the repeated issuing of the instructions entering the shipping mode and the test at the factory end is reduced, the time consumed in the process of issuing the instructions and receiving the instructions is shortened, and the production efficiency of a production line is improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram of a hardware configuration structure of an electronic device that can be used to implement an embodiment of the present invention.
Fig. 2 is a flowchart of the steps of a method for setting shipping mode of an electronic product according to an embodiment of the invention.
Fig. 3 is a block diagram of an apparatus for setting a shipping mode of an electronic product according to an embodiment of the present invention.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a block diagram showing a configuration of hardware of an electronic apparatus 1000 that can implement an embodiment of the present invention.
The electronic device 1000 may be a laptop, a headset, a mobile phone, a tablet computer, etc.
As shown in fig. 1, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. The processor 1100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is capable of wired or wireless communication, for example, and may specifically include WiFi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device 1500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. A user can input/output voice information through the speaker 1700 and the microphone 1800.
The electronic device shown in fig. 1 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the electronic device 1000 is used for storing instructions for controlling the processor 1100 to operate so as to execute any method for setting the shipping mode of the electronic product provided by the embodiment of the present invention. It will be appreciated by those skilled in the art that although a plurality of means are shown for the electronic device 1000 in fig. 1, the present invention may relate to only some of the means therein, e.g. the electronic device 1000 may relate to only the processor 1100 and the storage means 1200. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
The power supply module of the electronic product does not supply power to other power consumption components in the electronic product any more in the shipping mode, so that the electronic product is in a physical power-off state, and all communication with the outside is cut off, thereby saving the electric quantity of the electronic product in the transportation and storage processes and preventing the problems of abnormal starting and the like.
The invention provides a method for setting an electronic product shipping mode, which comprises the steps of executing operation of entering the shipping mode after an electronic product receives a serial port instruction of entering the shipping mode sent by a factory end upper computer, starting a timer in the electronic product, timing according to preset time, configuring the electronic product after the preset timing is finished, and if the timer sends a feedback message of finishing timing to a main chip, the main chip sends an instruction to a power supply module to execute operation of resetting the power supply module and operation of entering the shipping mode. The method comprises the following specific steps:
referring to fig. 2, which is a flowchart illustrating steps of a method for setting a shipping mode of an electronic product according to an embodiment of the present invention, the method for setting a shipping mode of an electronic product may be implemented by an electronic device, such as the electronic device 1000 shown in fig. 1.
In step S1, a command to enter the shipping mode is received from the upper computer. Specifically, the operation of the electronic product entering the shipping mode requires that an upper computer sends an instruction entering the shipping mode to trigger an interface in the electronic product for executing the operation, the upper computer is a computer capable of directly sending out a control command, and various signal changes are displayed on a screen. The communication connection between the electronic product and the upper computer is required to be established, the communication connection can be wireless communication connection such as Bluetooth and wifi, when the communication connection is established between the electronic product and the upper computer, the upper computer sends a serial port instruction to the electronic product, the sending can be that the same serial port instruction is sent to a plurality of electronic products at one time, the serial port instruction can also be sent to the next electronic product at intervals of a preset time, so that a main chip in the electronic product is triggered to call a relevant interface, the instruction is sent to a power supply module of the electronic product, and the power supply module is controlled to execute physical power-down operation.
In one embodiment, the electronic product is a TWS (wireless bluetooth) headset, the TWS headset is connected with an upper computer through a UART bus (a universal serial data bus for asynchronous communication), so as to realize full-duplex transmission and reception of the upper computer and the TWS headset, the upper computer sends a serial port instruction entering an shipping mode to the TWS headset, an MCU (micro control processing unit) of the TWS headset receives the serial port instruction, analyzes the instruction through a factory test software module, and executes a corresponding operation.
After the electronic product receives an instruction sent by the upper computer to enter the shipping mode, the method further comprises the following steps:
and sending response information to the upper computer according to the command for entering the shipping mode. Specifically, the response information is used for detecting whether the communication between the electronic product and the upper computer is normal or not, if the upper computer sends the electronic product the response information for executing the operation of entering the shipping mode for a period of time, the upper computer receives the response information from the electronic product, the communication between the electronic product and the upper computer is normal, the response information is preset response information which can be a section of characters or a prompt tone, and the reason for setting is that the situation that the electronic product cannot receive external information due to the communication problem of the electronic product and cannot execute corresponding operation, and the electronic product is judged to have successfully entered the shipping mode in a test link is avoided.
In step S2, an operation to enter the shipping mode is performed and the timing of a predetermined time is started. Specifically, after the electronic product performs step S1, the MCU (main control chip) of the electronic product analyzes the content of the instruction to enable the electronic product to enter the shipping mode, and the MCU of the electronic product sends the instruction to the power supply module according to a function interface that is internally installed and calls the function interface that enters the shipping mode, so as to control the power supply module to perform the operation of entering the shipping mode, even if the power supply module is physically powered off. After the power supply module of the electronic product is physically powered down, the power supply module does not supply power to internal components of the electronic product any more, and the electronic product stops working and cuts off all communication with the outside.
The method for setting the electronic product to enter the shipping mode in the prior art stops at the steps, and the invention starts the timing operation with the preset time length when the MCU of the electronic product calls the function interface for entering the shipping mode, wherein the timing operation is started to judge whether the electronic product successfully enters the shipping mode or not, and the related operation for entering the shipping mode is continuously executed after the feedback signal is set. After the timing operation is started and configured for the preset time length, when the electronic product does not successfully enter the shipping mode, a cycle operation can be started according to a feedback signal given by the timer, wherein the cycle operation is related to the execution of the operation of entering the shipping mode. It should be noted that the time for the started timing operation is set to be longer than the time for the electronic product to enter the shipping mode, and the reason for this setting is to avoid the situation that the timer sends a feedback signal to the MCU of the electronic product when the step of entering the shipping mode is not yet completed, so that the operation of the electronic product entering the shipping mode is confused, and the judgment of the upper computer is affected.
In step S3, when the timing of the predetermined time is over, it is determined whether the electronic product enters a shipping mode, and when the electronic product does not enter the shipping mode, the operation of entering the shipping mode and the timing of the predetermined time are started again. Specifically, after one timing of the timer is finished, the electronic product needs to internally and automatically judge whether the electronic product enters the shipping mode, if the electronic product does not enter the shipping mode, the electronic product needs to perform the operation of entering the shipping mode again, and if the electronic product successfully enters the shipping mode, the electronic product does not need to perform subsequent operations. And when the electronic product is judged not to successfully enter the shipping mode, executing the related operation of entering the shipping mode again according to the configuration of the starting timer. Which comprises the following steps: and calling the function interface entering the shipping mode, controlling a power supply module of the electronic product to execute the operation of entering the shipping mode, and starting timing of a preset time again. And if the operation of entering the shipping mode of the electronic product for the second time fails, continuing to execute the circulating operation until the preset times are reached, and stopping executing the operation of entering the shipping mode.
In one embodiment, the method further comprises: the step of judging whether the electronic product enters the shipping mode comprises the following steps:
when the timing of the preset time is over, if the electronic product receives a feedback signal of the end of timing, the electronic product is judged not to enter the shipping mode, otherwise, the electronic product is judged to have entered the shipping mode. Specifically, the feedback signal may be a prompt tone or a prompt character, and when the first predetermined time is over, if the MCU of the electronic product receives a prompt tone or a prompt character from the timer, it determines that the electronic product has not successfully entered the shipping mode, otherwise, it determines that the electronic product has successfully entered the shipping mode.
In one embodiment, before the operation of entering the shipping mode and the timing of the predetermined time are started again, the method further comprises:
and resetting a power supply module of the electronic product. Specifically, if the electronic product fails to enter the shipping mode successfully at one time, the MCU of the electronic product issues a command to reset the power supply module, so as to achieve self-detection. The starting means of the reset circuit is different, namely, the reset operation is immediately carried out when the circuit is electrified; secondly, manual operation can be carried out when necessary; and thirdly, the operation is automatically carried out according to the requirements of a program or a circuit. The reset operation of the power supply module is implemented according to a third means. Certainly, there are many reasons for the electronic product failing to enter the shipping mode, but the electronic product failing to enter the shipping mode due to other reasons can be found only by special detection, if the electronic product failing to enter the shipping mode due to other reasons, it is also described that the electronic product does not meet the factory requirements, the electronic product is intercepted by the factory end, and after the interception, the factory end performs a corresponding test to detect the problem that the electronic product failing to enter the shipping mode.
In one embodiment, the MCU is built in most of the electronic products, and if the electronic products are powered by dry batteries or rechargeable batteries, the battery voltage will drop continuously, or if the electronic products are powered by commercial power, the voltage will fluctuate and the power will interfere with each other. The instability of the power supply voltage is one of the important reasons for causing the confusion and even the crash of the MCU execution program, and the power supply module of the electronic product is reset to restore the power supply module to the initial state.
In step S4, repeating step S3 a predetermined number of times until the electronic product enters a shipping mode; and if the electronic product does not enter the shipping mode after the preset times are repeated, marking that the instruction execution fails. Specifically, the electronic product continuously tries to perform the operation of entering the shipping mode according to the preset time and times, and the timer counts and counts the time for performing the operation of entering the shipping mode. Under the condition that the electronic product only sends the instruction of entering the shipping mode once by the upper computer, the operation of entering the shipping mode can be executed for multiple times, the situation that the electronic product is controlled to execute the operation of entering the shipping mode by repeatedly issuing the operation instruction by a factory end is avoided, the time loss of issuing and receiving is reduced, and the production efficiency of the product is improved. And if the operation frequency reaches the preset frequency after the electronic product repeatedly executes the operation of entering the shipping mode, stopping executing the operation of entering the shipping mode.
In one embodiment, after step S4, the method further comprises:
and receiving a test message sent by an upper computer, and sending the message of instruction execution failure to the upper computer. Specifically, in order to detect whether the electronic product successfully enters the shipping mode, the upper computer is required to send an instruction for detecting whether the electronic product successfully enters the shipping mode to the electronic product, if the electronic product enters the shipping mode, the electronic product is in a physical power-down state, and no communication is performed with the outside, so that after the upper computer sends a test message to the electronic product, the electronic product cannot give any feedback information to the upper computer; if the electronic product still cannot enter the shipping mode after repeatedly executing the operation of entering the shipping mode for a preset number of times, the instruction execution failure of entering the shipping mode is marked, after the upper computer sends a test message, the message of the instruction execution failure is sent to the upper computer, the factory can obtain the states of all electronic products before leaving the factory through the display of the upper computer, the electronic products which do not successfully enter the shipping mode are intercepted and not leave the factory, and further detection is waited.
In one embodiment, the user can open the box after taking the electronic product to trigger the internal power supply circuit to supply power to the electronic product, and then the electronic product can be normally used. The box opening action refers to the operation of taking the electronic product out of the charging box and then putting the electronic product back into the charging box to enable the electronic product to exit the shipping mode and enter the normal use mode.
In another embodiment of the present invention, there is also provided an apparatus 2000 for setting a shipping mode of an electronic product, as shown in fig. 3, the apparatus 2000 for setting a shipping mode of an electronic product includes:
a receiving module 12, an executing module 14, a timing module 16, a judging module 18, a counting module 20 and a marking module 22.
The receiving module 12 is configured to receive an instruction sent by the upper computer to enter a shipping mode;
the execution module 14 is configured to execute the operation of entering the shipping mode in response to the instruction of entering the shipping mode received by the receiving module 12;
the timing module 16 is used for timing the operation of entering the shipping mode started by the execution module 14 for a preset time;
the judging module 18 is configured to judge whether the electronic product enters a shipping mode when the timing of the predetermined time by the timing module 16 is over, and when the electronic product does not enter the shipping mode, trigger the executing module 14 to perform the operation of entering the shipping mode again and trigger the timing module 16 to perform the timing of the predetermined time again;
the counting module 20 is configured to count the operation of entering the shipping mode and the timing of the predetermined time;
the marking module 22 is configured to mark the instruction execution failure when the counting module 20 reaches a predetermined count value.
In one embodiment, the apparatus further includes a reset module (not shown), and the reset module performs a reset operation on the power supply module after the determination module 18 determines that the electronic product does not enter the shipping mode. MCU is all built-in to present majority electronic product, if electronic product adopts dry battery or rechargeable battery power supply, then there is the problem of battery voltage incessant decline, if adopt commercial power supply, then there is the problem of voltage fluctuation and power supply interference. The instability of the power supply voltage is one of the important reasons for causing the confusion and even the crash of the MCU execution program, the power supply module of the electronic product is reset to restore the power supply module to the initial state, and the starting means of the reset module is different. Firstly, when the circuit is electrified, the reset operation is immediately carried out; secondly, manual operation can be performed when necessary; and thirdly, the operation is automatically carried out according to the requirements of a program or a circuit. The present invention is implemented according to a third means for resetting the power supply module.
In one embodiment, the apparatus further includes a sending module (not shown in the figure), and when the receiving module receives a test message sent by the upper computer, the sending module sends a message indicating that the instruction execution fails to the upper computer.
According to still another embodiment of the present invention, there is also provided an electronic apparatus, and the electronic apparatus 3000 may be the electronic apparatus 1000 shown in fig. 1. Is a block diagram of the structure of an electronic device of an embodiment of the present invention.
In one aspect, the electronic device 3000 may include the aforementioned apparatus for setting an electronic product shipping mode, so as to implement the method for setting an electronic product shipping mode according to any embodiment of the present invention.
On the other hand, as shown in fig. 4, the electronic device 3000 may include a memory 3200 and a processor 3400, the memory 3200 being for storing executable instructions; the instructions are used to control the processor 3400 to perform the aforementioned method for setting the shipping mode of the electronic product.
In this embodiment, the electronic device 3000 may be any electronic product having the memory 3200 and the processor 3400, such as a mobile phone, an earphone, a tablet computer, a palm computer, a notebook computer, a game machine, and the like.
Finally, according to yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method for electronic product shipping mode setting according to any of the embodiments of the present invention.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including AN object oriented programming language such as Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (10)

1. A method for setting shipping mode of electronic products is characterized by comprising the following steps:
s1: receiving an instruction of entering a shipping mode sent by an upper computer;
s2: executing the operation of entering the shipping mode and starting timing of preset time;
s3: when the timing of the preset time is over, judging whether the electronic product enters a shipping mode, and when the electronic product does not enter the shipping mode, starting to execute the operation of entering the shipping mode and the timing of the preset time again;
s4: repeating the step S3 for a preset number of times until the electronic product enters a shipping mode; and if the electronic product does not enter the shipping mode after the preset times are repeated, marking that the instruction execution fails.
2. The method of claim 1, wherein after step S1, the method further comprises:
and sending response information to the upper computer according to the command for entering the shipping mode.
3. The method of claim 1, wherein the step of determining whether the electronic product enters the shipping mode in step S3 comprises:
when the timing of the preset time is over, if the electronic product receives a feedback signal of the end of timing, the electronic product is judged not to enter the shipping mode, otherwise, the electronic product is judged to have entered the shipping mode.
4. The method of claim 1, wherein, in step S3, before the starting the execution of the operation of entering the shipping mode again and the timing of the predetermined time, the method further comprises:
and resetting a power supply module of the electronic product.
5. The method of claim 1, wherein after step S4, the method further comprises:
and receiving a test message sent by an upper computer, and sending the message of instruction execution failure to the upper computer.
6. An apparatus for setting shipping mode of electronic product, comprising:
the receiving module is used for receiving an instruction sent by the upper computer to enter a shipping mode;
the execution module is used for responding to the instruction for entering the shipping mode to execute the operation for entering the shipping mode;
the timing module is used for timing the operation of entering the shipping mode started by the execution module for preset time;
the judging module is used for judging whether the electronic product enters a shipping mode or not when the timing of the preset time of the timing module is finished, and triggering the executing module to execute the operation of entering the shipping mode again and triggering the timing module to time the preset time again when the electronic product does not enter the shipping mode;
the counting module is used for counting the operation of entering a shipping mode and the timing of the preset time;
a marking module for marking the instruction execution failure when the counting module reaches a preset counting value.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the resetting module is used for resetting the power supply module of the electronic product after the judging module judges that the electronic product does not enter the shipping mode.
8. The device of claim 6, wherein the receiving module is further configured to receive a test message sent by an upper computer;
the device further comprises: and the sending module is used for sending the message of the instruction execution failure marked by the marking module to the upper computer.
9. An electronic device, comprising:
means for setting a shipping mode of an electronic product according to any of claims 6-8; or,
a processor and a memory for storing executable instructions for controlling the processor to perform the method of electronic product shipping mode setting according to any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of electronic product shipping mode setting according to any of claims 1 to 5.
CN202010197432.1A 2020-03-19 2020-03-19 Method and device for setting shipping mode of electronic product and electronic equipment Active CN111400080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010197432.1A CN111400080B (en) 2020-03-19 2020-03-19 Method and device for setting shipping mode of electronic product and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010197432.1A CN111400080B (en) 2020-03-19 2020-03-19 Method and device for setting shipping mode of electronic product and electronic equipment

Publications (2)

Publication Number Publication Date
CN111400080A true CN111400080A (en) 2020-07-10
CN111400080B CN111400080B (en) 2023-03-14

Family

ID=71436360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010197432.1A Active CN111400080B (en) 2020-03-19 2020-03-19 Method and device for setting shipping mode of electronic product and electronic equipment

Country Status (1)

Country Link
CN (1) CN111400080B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112986738A (en) * 2021-03-01 2021-06-18 西安稳先半导体科技有限责任公司 Shipping mode setting method, electronic device, and computer-readable storage medium
WO2022042708A1 (en) * 2020-08-27 2022-03-03 西安稳先半导体科技有限责任公司 System-on-chip, battery assembly, electronic device, battery protection circuit, test subsystem, test system, bluetooth earphone, shipping mode setting method, and computer readable storage medium
CN117504078A (en) * 2023-11-30 2024-02-06 深圳市安保医疗科技股份有限公司 A ventilator and its safety control method, device, circuit module and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101915194A (en) * 2010-07-09 2010-12-15 天津理工大学 A Spark Plug Flashover Control Device Based on Speed Synchronization Signal
US20130130749A1 (en) * 2011-09-02 2013-05-23 Gn Netcom A/S Battery Powered Electronic Device Comprising A Movable Part and Adapted to Be Set Into Shipping Mode
CN107844316A (en) * 2017-11-17 2018-03-27 中国航空工业集团公司北京航空精密机械研究所 A kind of method and its device of the upgrading of rotating platform control system program
CN109327056A (en) * 2018-08-27 2019-02-12 北京猎户星空科技有限公司 A kind of Transportation Model switching method and device applied to electronic equipment
CN110532203A (en) * 2019-09-05 2019-12-03 北京兆易创新科技股份有限公司 A kind of NAND repositioning method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101915194A (en) * 2010-07-09 2010-12-15 天津理工大学 A Spark Plug Flashover Control Device Based on Speed Synchronization Signal
US20130130749A1 (en) * 2011-09-02 2013-05-23 Gn Netcom A/S Battery Powered Electronic Device Comprising A Movable Part and Adapted to Be Set Into Shipping Mode
CN107844316A (en) * 2017-11-17 2018-03-27 中国航空工业集团公司北京航空精密机械研究所 A kind of method and its device of the upgrading of rotating platform control system program
CN109327056A (en) * 2018-08-27 2019-02-12 北京猎户星空科技有限公司 A kind of Transportation Model switching method and device applied to electronic equipment
CN110532203A (en) * 2019-09-05 2019-12-03 北京兆易创新科技股份有限公司 A kind of NAND repositioning method, device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022042708A1 (en) * 2020-08-27 2022-03-03 西安稳先半导体科技有限责任公司 System-on-chip, battery assembly, electronic device, battery protection circuit, test subsystem, test system, bluetooth earphone, shipping mode setting method, and computer readable storage medium
CN112986738A (en) * 2021-03-01 2021-06-18 西安稳先半导体科技有限责任公司 Shipping mode setting method, electronic device, and computer-readable storage medium
US12222795B2 (en) * 2021-03-01 2025-02-11 Xi'an Wenxian Semiconductor Technology Co. Ltd Method for setting shipping mode, electronic device, and computer-readable storage medium
CN117504078A (en) * 2023-11-30 2024-02-06 深圳市安保医疗科技股份有限公司 A ventilator and its safety control method, device, circuit module and medium

Also Published As

Publication number Publication date
CN111400080B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN103500002B (en) The method of application program management, device and terminal unit
EP2869391B1 (en) Electronic apparatus, battery protection method and device
EP2398286B1 (en) Method for power management of mobile communication terminal and mobile communication terminal using this method
CN111400080B (en) Method and device for setting shipping mode of electronic product and electronic equipment
CN108132401A (en) Charging abnormity detection method and device, storage medium and mobile terminal
US20170269984A1 (en) Systems and methods for improved detection of processor hang and improved recovery from processor hang in a computing device
JP2013531822A5 (en)
CN109560591B (en) Charging method, device and terminal
CN107885683B (en) Terminal and current testing method thereof
US11947481B2 (en) Terminal and type C interface anti-corrosion method
WO2020134566A1 (en) Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN110912574B (en) A SIM card detection method, device, storage medium and terminal
EP3433699B1 (en) Controlling a mode of communication between a host computer and a detachable peripheral device
CN107506251A (en) The method and device resetted to smart machine
CN106095566A (en) A kind of response control mehtod and mobile terminal
CN110989820A (en) Method and device for controlling power consumption of processor, processor and electronic device
CN113660149B (en) Equipment control method and device, storage medium and electronic equipment
EP3690652B1 (en) Fault processing method for terminal device and terminal device
CN111026684B (en) Interface control method, interface control device and storage medium
CN105282327A (en) Control method, electronic device and external device
CN113179344B (en) SIM card detection method, device, storage medium and terminal
CN105098854A (en) Charging method and electronic device
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN106506821B (en) Data reading method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant