Shipping mode conversion method of mobile terminal, electronic device and storage medium
By implementing a series of checking and verification steps in the GPS tracker, the problem of power booting due to accidental touch or vibration during shipment mode conversion is solved, and power consumption and battery life are reduced during transportation and storage are achieved.
Patent Information
- Application Number
- CN202310944004.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-07-28
AI Technical Summary
When the existing GPS tracker is converted to the shipment mode, it is prone to start the power due to accidental touch or vibration, which increases the risk of storage and transportation.
By implementing a series of checking and verification steps in the electronic device, including sensor status check, token verification, USB lock file verification, device test mode status check and default condition variable value verification, ensure that the device is in shipment mode in shipment mode Disable power-on interrupts and switch to end user mode.
It effectively prevents power-on interruption caused by accidental touch or vibration, reduces the power consumption of the product during transportation and storage, extends the battery life and improves the product life cycle.
Smart Images

Figure CN119442337A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for converting a shipping mode of a mobile terminal, and in particular to a method for converting a shipping mode of a mobile terminal, an electronic device and a storage medium. Background Art
[0002] The market demand for mobile positioning of the elderly, children, pets, etc. is increasing, and wearable smart devices such as Global Positioning System (GPS) trackers with built-in rechargeable batteries have emerged. GPS trackers have high requirements for standby time. In order to meet user needs and reduce the standby power consumption of the system, accelerometers are generally used to detect motion to generate interrupt signals to wake up the GPS tracker system.
[0003] Consumers want to use GPS trackers immediately after purchasing them, which means that the battery consumption of GPS trackers during shipment needs to be reduced to the lowest level, that is, they need to be switched to shipping mode. How to switch GPS trackers to shipping mode after factory testing is a very important issue. Summary of the invention
[0004] In view of the above, it is necessary to provide a method, an electronic device and a storage medium for converting the shipping mode of a mobile terminal, which can greatly reduce the storage and transportation risks of the product by preventing the product from turning on due to accidental touch or vibration.
[0005] The embodiment of the present invention provides a method for converting the shipping mode of a mobile terminal, which is applied to an electronic device, and includes: after the electronic device enters the device test mode after being powered on, verifying and preparing the relevant configuration of the shipping mode (ShipMode) of the electronic device; checking the working status of the sensor in the mobile terminal to determine whether the sensor is normal; if the sensor is operating normally, prohibiting all triggering power-on interrupt operations, and setting the mobile terminal to a sleep mode (SuspendMode); checking whether the token (Token) of the mobile terminal is correct; if the token of the mobile terminal is correct, determining whether the Universal Serial Bus (Universal Serial Bus) of the mobile terminal is If the USB lock file of the mobile terminal passes the verification, checking whether the status of the device test mode of the mobile terminal is normal; if the status of the device test mode of the mobile terminal is normal, checking whether all default condition variable values of the mobile terminal are normal; if all default condition variable values of the mobile terminal are normal, locking the USB port of the mobile terminal, disabling serial port output, and switching the mobile terminal to terminal user mode; and performing system shutdown on the mobile terminal to make the mobile terminal enter the shipping mode.
[0006] An embodiment of the present invention further provides an electronic device, including a checking and verifying module and a control module.
[0007] The inspection and verification module is used to verify and prepare the relevant configuration of the shipping mode of the electronic device after the electronic device enters the device test mode after being turned on, and to check the working status of the sensor in the mobile terminal to determine whether the sensor is normal.
[0008] The control module is used to prohibit all triggering power-on interrupt operations and set the mobile terminal to sleep mode if the sensor operates normally.
[0009] The inspection and verification module checks whether the token of the mobile terminal is correct. If the token of the mobile terminal is correct, it determines whether the universal serial bus (USB) lock file of the mobile terminal passes the verification. If the USB lock file of the mobile terminal passes the verification, it checks whether the status of the device test mode of the mobile terminal is normal. If the status of the device test mode of the mobile terminal is normal, it checks whether all default condition variable values of the mobile terminal are normal.
[0010] When all default condition variable values of the mobile terminal are normal, the control module locks the USB port of the mobile terminal, disables the serial port output, and switches the mobile terminal to the terminal user mode; and performs a system shutdown on the mobile terminal to make the mobile terminal enter the shipping mode.
[0011] An embodiment of the present invention further provides a storage medium having a computer program stored thereon. When the computer program is executed, the steps of the aforementioned method for converting the shipment mode of a mobile terminal are implemented.
[0012] The shipping mode conversion method, electronic device and storage medium of the mobile terminal of the embodiment of the present invention are of great practical value for long-distance transportation of products, taking airplanes and other means of transportation, factory production turnover, storage, etc., and provide a safe and reliable method for the storage and operation of products entering the shipping mode, which can reduce the power consumption of the product during transportation and storage and increase the battery life, and play a key role in the life cycle of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a flow chart of the steps of a method for converting a shipping mode of a mobile terminal according to an embodiment of the present invention.
[0014] Figure 2 It is a flowchart of the steps of the power-on positioning method of a mobile terminal according to an embodiment of the present invention.
[0015] Figure 3 Schematic diagram of the hardware architecture of the electronic device according to an embodiment of the present invention.
[0016] Figure 4 is a functional block diagram of an electronic device according to an embodiment of the present invention.
[0017] Main component symbols
[0018] Shipping mode conversion system for mobile terminals 100 Electronic Devices 200 processor 210 Memory 220 Shipping mode conversion system for mobile terminals 230 Inspection and verification module 310 Control Module 320 Procedure S101..S109, S21..S26
[0019] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0020] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0021] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0023] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0024] Figure 1 The present invention is a flowchart of the steps of the method for converting the shipping mode of a mobile terminal according to an embodiment of the present invention, which is applied to an electronic device, wherein the electronic device is a mobile terminal, i.e., a GPS tracker. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0025] Step S101, after the mobile terminal is powered on, it enters a device test mode to verify and prepare the relevant configuration of the shipping mode (Ship Mode) of the mobile terminal.
[0026] Step S102, check the working status of all sensors in the mobile terminal to determine whether all sensors are normal. If one of the sensors fails, the method ends.
[0027] Step S103: if all sensors are operating normally, all power-on interruption triggering operations are disabled, and the mobile terminal is set to a sleep mode (Suspend Mode).
[0028] Step S104, check whether the token of the mobile terminal is correct. If the token of the mobile terminal is incorrect, then the method process ends.
[0029] Step S105, if the token of the mobile terminal is correct, determine whether the USB lock file of the mobile terminal has passed the verification. If the USB lock file of the mobile terminal has not passed the verification, then end the process of this method.
[0030] Step S106: If the USB lock file of the mobile terminal passes the verification, check whether the state of the device test mode of the mobile terminal is normal. If the state of the device test mode of the mobile terminal is abnormal, end the method flow.
[0031] Step S107: If the state of the device test mode of the mobile terminal is normal, check whether all default condition variable values of the mobile terminal are normal. If all default condition variable values of the mobile terminal are abnormal, end the method flow.
[0032] Step S108: If all default condition variable values of the mobile terminal are normal, the USB port of the mobile terminal is locked, the serial port output is disabled, and the mobile terminal is switched to the terminal user mode.
[0033] Step S109, shutting down the system of the mobile terminal so that the mobile terminal enters the shipping mode.
[0034] Figure 2 It is a flowchart of the steps of the power-on positioning method of a mobile terminal according to an embodiment of the present invention.
[0035] Step S21, the mobile terminal is turned on by inserting a USB cable or long pressing a power button for a preset time (e.g., 10 seconds).
[0036] Step S22: When the mobile terminal is in user mode, the system is turned on and the sensor interrupt is reinitialized.
[0037] Step S23, determining whether a sensor interrupt is detected by the software system.
[0038] Step S24: If the software system detects that the sensor is interrupted, the positioning information is sent to the cloud, and the mobile terminal enters a power save mode (PSM).
[0039] Step S25, determining whether a sensor interrupt is detected by the hardware system. If the hardware system detects a sensor interrupt, return to step S22 to reinitialize the sensor interrupt.
[0040] Step S26: If neither the software system nor the hardware system detects the Sensor interrupt, the mobile terminal is allowed to enter a waiting mode or a power saving mode (PSM).
[0041] Figure 3 2 is a schematic diagram of the hardware architecture of an electronic device according to an embodiment of the present invention. The electronic device 200, for example, a mobile terminal, but not limited to, can communicate with each other through a system bus to connect a processor 210, a memory 220, and a shipping mode conversion system 230 of the mobile terminal. Figure 3 The electronic device 200 is shown only with components 210 - 230 , but it is understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0042] The memory 220 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 220 can be an internal storage unit of the electronic device 200, such as a hard disk or memory of the electronic device 200. In other embodiments, the memory can also be an external storage device of the electronic device 200, such as a plug-in hard disk equipped on the electronic device 200, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 220 can also include both the internal storage unit of the electronic device 200 and its external storage device. In this embodiment, the memory 220 is generally used to store the operating system and various application software installed in the electronic device 200, such as the program code of the mobile terminal shipping mode conversion system 230. In addition, the memory 220 can also be used to temporarily store various data that have been output or will be output.
[0043] The processor 210 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 210 is generally used to control the overall operation of the electronic device 200. In this embodiment, the processor 210 is used to run the program code stored in the memory 220 or process data, for example, to run the shipping mode conversion system 230 of the mobile terminal.
[0044] It should be noted that Figure 3The electronic device 200 is merely illustrated as an example. In other embodiments, the electronic device 200 may also include more or fewer components, or have a different component configuration.
[0045] If the module / unit integrated in the electronic device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0046] Figure 4 2 is a functional block diagram of an electronic device according to an embodiment of the present invention, which is used to execute the method for converting the shipping mode of a mobile terminal. The method for converting the shipping mode of a mobile terminal according to an embodiment of the present invention can be implemented by a computer program in a storage medium, for example, a memory 220 in the electronic device 200. When the computer program for implementing the method of the present invention is loaded into the memory 220 by the processor 210, the processor 210 of the device 200 is driven to execute the method for converting the shipping mode of a mobile terminal according to an embodiment of the present invention.
[0047] The electronic device 200 according to the embodiment of the present invention includes a checking and verifying module 310 and a control module 320 .
[0048] After the mobile terminal is powered on and enters the device test mode, the checking and verification module 310 verifies and prepares the configuration related to the shipping mode (Ship Mode) of the mobile terminal.
[0049] The checking and verification module 310 checks the working status of all sensors in the mobile terminal to determine whether all sensors are normal. If one of the sensors fails, the method process ends.
[0050] If all sensors are functioning normally, the control module 320 prohibits all power-on interruption triggering operations and sets the mobile terminal to a suspend mode.
[0051] The checking and verification module 310 checks whether the token of the mobile terminal is correct. If the token of the mobile terminal is incorrect, the method process ends.
[0052] If the token of the mobile terminal is correct, the checking and verification module 310 determines whether the USB lock file of the mobile terminal passes the verification. If the USB lock file of the mobile terminal fails the verification, the method process ends.
[0053] If the USB lock file of the mobile terminal passes the verification, the checking and verification module 310 checks whether the state of the device test mode of the mobile terminal is normal. If the state of the device test mode of the mobile terminal is abnormal, the method process ends.
[0054] If the state of the device test mode of the mobile terminal is normal, the checking and verification module 310 checks whether all default condition variable values of the mobile terminal are normal. If all default condition variable values of the mobile terminal are abnormal, the method flow ends.
[0055] If all default condition variable values of the mobile terminal are normal, the control module 320 locks the USB port of the mobile terminal, disables the serial port output, and switches the mobile terminal to the terminal user mode.
[0056] The control module 320 executes a system shutdown on the mobile terminal to make the mobile terminal enter the shipping mode.
[0057] It is understandable that the module division described above is only a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically separately, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0058] For ordinary technicians in this field, other corresponding changes or adjustments can be made according to actual needs generated by combining the technical solutions and technical concepts provided by the embodiments of the present invention, and these changes and adjustments should all fall within the scope of protection of the claims of the present invention.
Claims
1. A method for converting a shipment mode of a mobile terminal, applied to a mobile terminal, characterized in that: The method comprises: After the mobile terminal is powered on and enters the device test mode, verify and prepare the relevant configuration of the shipping mode (Ship Mode) of the mobile terminal; Checking the working status of the sensor in the mobile terminal to determine whether the sensor is normal; If the sensor operates normally, all power-on interruption triggering operations are disabled, and the mobile terminal is set to a sleep mode (Suspend Mode); Check whether the token of the mobile terminal is correct; If the token of the mobile terminal is correct, determining whether a Universal Serial Bus (USB) lock file of the mobile terminal passes verification; If the USB lock file of the mobile terminal passes the verification, checking whether the status of the device test mode of the mobile terminal is normal; If the state of the device test mode of the mobile terminal is normal, checking whether all default condition variable values of the mobile terminal are normal; If all default condition variable values of the mobile terminal are normal, locking the USB port of the mobile terminal, disabling serial port output, and switching the mobile terminal to terminal user mode; and The mobile terminal is shut down, so that the mobile terminal enters the shipping mode.
2. The method for converting the shipping mode of a mobile terminal according to claim 1, wherein: Also includes: When the mobile terminal is powered on and in user mode, reinitializing the sensor interrupt; Determining, by a software system, whether the sensor interruption is detected; If the software system detects that the sensor is interrupted, the positioning information is sent to the cloud and the mobile terminal enters a power saving mode; Determining, by a hardware system, whether the sensor interruption is detected; and If neither the software system nor the hardware system detects the sensor interruption, the mobile terminal enters the waiting mode or the energy saving mode.
3. An electronic device, characterized in that: include: The inspection and verification module is used to verify and prepare the relevant configuration of the shipping mode of the electronic device after the electronic device enters the device test mode after being powered on, and to check the working status of the sensor in the electronic device to determine whether the sensor is normal; and A control module, used for disabling all power-on interruption triggering operations and setting the electronic device to a sleep mode if the sensor operates normally; in: The checking and verification module checks whether the token of the electronic device is correct. If the token of the electronic device is correct, it determines whether the universal serial bus (USB) lock file of the electronic device passes the verification. If the USB lock file of the electronic device passes the verification, it checks whether the status of the device test mode of the electronic device is normal. If the status of the device test mode of the electronic device is normal, it checks whether all default condition variable values of the electronic device are normal. and When all default condition variable values of the electronic device are normal, the control module locks the USB port of the electronic device, disables the serial port output, and switches the electronic device to the terminal user mode; and performs a system shutdown on the electronic device to put the electronic device into the shipping mode.
4. The electronic device as claimed in claim 3, characterized in that: in: When the electronic device is powered on and in user mode, the control module reinitializes the sensor interrupt; The checking and verification module determines whether the sensor interruption is detected through a software system; If the software system detects that the sensor is interrupted, the control module sends the positioning information to the cloud and causes the electronic device to enter a power-saving mode; The checking and verification module determines whether the sensor interruption is detected through the hardware system; and If neither the software system nor the hardware system detects the sensor interruption, the control module causes the electronic device to enter the waiting mode or the energy saving mode.
5. A storage medium having at least one computer instruction stored thereon, characterized in that: The instructions are loaded by the processor and executed by the method for converting the shipping mode of a mobile terminal according to any one of claims 1 to 2.
Citation Information
Patent Citations
Push method based on data mining
CN106339456A
Automatic testing method and system for delivery mode function of notebook computer
CN110245042A
Mobile terminal test method and device, storage medium and mobile terminal
CN112202952A
Startup mode setting method, electronic device and computer readable storage medium
CN113127090A
Wake-up method and device of mobile equipment, electronic equipment and readable storage medium
CN114281415A