Shipping mode conversion method of mobile terminal, electronic device, and storage medium
By performing a series of configuration verifications and status checks after the GPS tracker is powered on, it ensures that it enters the shipping mode, thus solving the problems of high battery consumption and the risk of accidental power-on during shipping and achieving a transition process that combines low power consumption with high security.
Patent Information
- Application Number
- CN202310944004.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-07-28
AI Technical Summary
Existing GPS trackers have high battery consumption during shipping and are prone to being turned on by accidental touch or vibration, increasing the risks during transportation and storage.
After the electronic device is powered on, it enters the device test mode, verifies and prepares the relevant configurations for the shipping mode, checks the sensor status, prohibits power-on interruption operations, sets the sleep mode, checks the token and USB lock file, and after ensuring that all default conditions are normal, locks the USB port and performs a system shutdown, switching to shipping mode.
It effectively reduces the power consumption of GPS trackers during transportation and storage, extends battery life, improves product safety and reliability, and reduces the risk of accidental power-on due to touch or vibration.
Smart Images

Figure CN119442337B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for switching the shipping mode of a mobile terminal, and more particularly to a method, electronic device, and storage medium for switching the shipping mode of a mobile terminal. Background Technology
[0002] With increasing market demand for mobile positioning services for the elderly, children, and pets, wearable smart devices using GPS trackers with built-in rechargeable batteries have emerged. GPS trackers have high requirements for standby time. To meet user needs while reducing system standby power consumption, an accelerometer is typically used to detect motion and generate an interrupt signal to wake up the GPS tracker system.
[0003] Consumers expect to use GPS trackers immediately after purchase, meaning battery power consumption needs to be minimized during shipping, essentially requiring a transition to ship mode. How to successfully transition a GPS tracker to ship mode after factory testing is a crucial issue. Summary of the Invention
[0004] In view of the above, it is necessary to provide a method for switching the shipping mode of a mobile terminal, an electronic device and a storage medium, which can greatly reduce the storage and transportation risks of the product by preventing accidental touch or vibration from causing the product to be turned on.
[0005] This invention provides a method for switching the shipping mode of a mobile terminal, applied in an electronic device, comprising: after the electronic device is powered on and enters a device test mode, verifying and preparing the relevant configuration of the shipping mode (ShipMode) of the electronic device; checking the working status of the sensors in the mobile terminal to determine whether the sensors are normal; if the sensors are working normally, disabling all operations that trigger power-on interruption and setting the mobile terminal to Suspend Mode; checking whether the token of the mobile terminal is correct; if the token of the mobile terminal is correct, determining the Universal Serial Bus (USB) of the mobile terminal. The process involves checking whether the USB lock file of the mobile terminal passes verification; if the USB lock file of the mobile terminal passes 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 the values of all default condition variables of the mobile terminal are normal; if the values of all default condition variables of the mobile terminal are normal, locking the USB port of the mobile terminal, disabling serial port output, and switching the mobile terminal to end-user mode; and performing a system shutdown on the mobile terminal to put the mobile terminal into the shipping mode.
[0006] This invention also provides an electronic device, including an inspection and verification module and a control module.
[0007] The inspection and verification module is used to verify and prepare the relevant configuration of the electronic device's Ship Mode after the electronic device is powered on and enters the device test mode, and to check the working status of the sensors in the mobile terminal to determine whether the sensors are normal.
[0008] The control module is used to prevent all power-on interrupt operations and set the mobile terminal to sleep mode if the sensor is operating 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 the default condition variable values of the mobile terminal are normal.
[0010] When all default condition variables 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 terminal user mode; and performs system shutdown on the mobile terminal, so that the mobile terminal enters the shipping mode.
[0011] This invention also provides a storage medium storing a computer program that, when executed, implements the steps of the aforementioned mobile terminal shipment mode conversion method.
[0012] The mobile terminal shipping mode conversion method, electronic device, and storage medium of this invention are of great practical value for long-distance product transportation, air travel, factory production turnover, and storage. They provide a safe and reliable method for storing and operating products in shipping mode, reduce power consumption and increase battery life during transportation and storage, and play a key role in the product life cycle. Attached Figure Description
[0013] Figure 1 This is a flowchart of the steps of the mobile terminal shipment mode conversion method according to an embodiment of the present invention.
[0014] Figure 2 This is a flowchart of the steps of the mobile terminal power-on positioning method according to an embodiment of the present invention.
[0015] Figure 3 This is a schematic diagram of the hardware architecture of the electronic device according to an embodiment of the present invention.
[0016] Figure 4 This is a functional block diagram of an electronic device according to an embodiment of the present invention.
[0017] Explanation of main component symbols
[0018] Mobile terminal delivery mode conversion system 100 Electronic devices 200 processor 210 Memory 220 Mobile terminal delivery mode conversion system 230 Inspection and verification module 310 Control module 320 Operating steps S101..S109、S21..S26
[0019] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation
[0020] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0021] Numerous specific details are set forth in the following description to provide a thorough understanding of the invention. The described embodiments are merely some, not all, of the embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0023] It should be noted that the descriptions involving "first," "second," etc., in this invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of the stated features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0024] Figure 1 This is a flowchart illustrating the steps of a mobile terminal shipment mode conversion method according to an embodiment of the present invention. The method is applied to an electronic device, specifically a mobile terminal, i.e., a GPS tracker. The order of the steps in the flowchart can be changed, and some steps can be omitted, depending on different requirements.
[0025] Step S101: After the mobile terminal is powered on, it enters the device test mode to verify and prepare the relevant configuration of the mobile terminal's shipping mode.
[0026] Step S102: Check the working status of all sensors in the mobile terminal to determine if all sensors are functioning properly. If any sensor malfunctions, the process ends.
[0027] Step S103: If all sensors are operating normally, disable all power-on interrupt operations and set the mobile terminal to sleep mode.
[0028] Step S104: Check if the mobile terminal's token is correct. If the mobile terminal's token is incorrect, the process ends.
[0029] Step S105: If the mobile terminal's token is correct, determine whether the mobile terminal's Universal Serial Bus (USB) lock file passes verification. If the mobile terminal's USB lock file fails verification, the process ends.
[0030] Step S106: If the USB lock file of the mobile terminal passes verification, check whether the device test mode status of the mobile terminal is normal. If the device test mode status of the mobile terminal is abnormal, the method flow ends.
[0031] Step S107: If the device test mode of the mobile terminal is in normal condition, 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, the method flow ends.
[0032] Step S108: If all default condition variable values of the mobile terminal are normal, lock the USB port of the mobile terminal, disable the serial port output, and switch the mobile terminal to terminal user mode.
[0033] Step S109: Power off the mobile terminal to put it into the shipping mode.
[0034] Figure 2 This is a flowchart of the steps of the mobile terminal power-on positioning method according to an embodiment of the present invention.
[0035] Step S21: The mobile terminal is powered on, either by inserting a USB cable or by pressing and holding the power button for a preset time (e.g., 10 seconds).
[0036] In step S22, the mobile terminal is in user mode, the system is powered on, and the sensor interrupt is reinitialized.
[0037] Step S23: The software system determines whether a sensor interrupt has been detected.
[0038] Step S24: If the software system detects a sensor interruption, it sends the location information to the cloud, and the mobile terminal enters Power Save Mode (PSM).
[0039] Step S25: The hardware system determines whether a sensor interrupt has been detected. If the hardware system detects a sensor interrupt, return to step S22 and reinitialize the sensor interrupt.
[0040] Step S26: If neither the software system nor the hardware system detects a sensor interrupt, the mobile terminal enters a standby mode or a power saving mode (PSM).
[0041] Figure 3 This 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, but not limited to, a mobile terminal, can be interconnected via a system bus with a processor 210, a memory 220, and a mobile terminal shipping mode conversion system 230. Figure 3 Only the electronic device 200 with components 210-230 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0042] The memory 220 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), 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, disk, optical disk, etc. In some embodiments, the memory 220 may be an internal storage unit of the electronic device 200, such as the hard disk or memory of the electronic device 200. In other embodiments, the memory may also be an external storage device of the electronic device 200, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. Of course, the memory 220 may also include both internal storage units and external storage devices of the electronic device 200. In this embodiment, the memory 220 is typically used to store the operating system and various application software installed on the electronic device 200, such as the program code of the mobile terminal's shipping mode conversion system 230. Furthermore, the memory 220 can also be used to temporarily store various types of data that have already been output or will be output.
[0043] In some embodiments, the processor 210 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 210 is typically used to control the overall operation of the electronic device 200. In this embodiment, the processor 210 is used to run program code stored in the memory 220 or process data, for example, to run the mobile terminal's shipping mode conversion system 230.
[0044] It should be noted that, Figure 3The electronic device 200 is merely an example. In other embodiments, the electronic device 200 may also include more or fewer components, or have different component configurations.
[0045] If the modules / units integrated in the electronic device 200 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, disks, optical discs, computer memory, read-only memory, random access memory, electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed 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 electrical carrier signals and telecommunication signals.
[0046] Figure 4 This is a functional block diagram of an electronic device according to an embodiment of the present invention, which is used to execute a mobile terminal shipment mode conversion method. The mobile terminal shipment mode conversion method of this embodiment can be implemented by a computer program stored in a storage medium, such as memory 220 in the electronic device 200. When the computer program implementing the method of the present invention is loaded into memory 220 by processor 210, it drives processor 210 of the electronic device 200 to execute the mobile terminal shipment mode conversion method of this embodiment.
[0047] The electronic device 200 of this embodiment includes an inspection and verification module 310 and a control module 320.
[0048] After the mobile terminal is powered on and enters the device test mode, the inspection and verification module 310 verifies and prepares the relevant configurations for the mobile terminal's Ship Mode.
[0049] The inspection and verification module 310 checks the working status of all sensors in the mobile terminal to determine whether all sensors are functioning properly. If any sensor malfunctions, the process ends.
[0050] If all sensors are functioning normally, the control module 320 disables all power-on interrupt operations and sets the mobile terminal to sleep mode.
[0051] The inspection and verification module 310 checks whether the token of the mobile terminal is correct. If the token of the mobile terminal is incorrect, the process ends.
[0052] If the mobile terminal's token is correct, the checking and verification module 310 determines whether the mobile terminal's USB lock file passes verification. If the mobile terminal's USB lock file fails verification, the process ends.
[0053] If the USB lock file of the mobile terminal passes verification, the checking and verification module 310 checks whether the device test mode status of the mobile terminal is normal. If the device test mode status of the mobile terminal is abnormal, the method process ends.
[0054] If the device test mode of the mobile terminal is in normal condition, the inspection 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 terminal user mode.
[0056] The control module 320 performs a system shutdown on the mobile terminal, causing the mobile terminal to enter the shipping mode.
[0057] It is understood that the module division described above is merely a logical functional division, and other division methods may be used in actual implementation. Furthermore, the functional modules in the various embodiments of this application can be integrated into the same processing unit, or each module can exist physically separately, or two or more modules can be integrated into the same unit. The integrated modules described above can be implemented in hardware or in a combination of hardware and software functional modules.
[0058] For those skilled in the art, other corresponding changes or adjustments can be made to the technical solutions and concepts provided in the embodiments of the present invention in combination with actual needs, and all such changes and adjustments should fall within the protection scope of the claims of the present invention.
Claims
1. A method for converting a shipping mode of a mobile terminal, applied to the mobile terminal, the method comprising the steps of: determining whether a shipping mode of the mobile terminal is changed; and changing the shipping mode of the mobile terminal according to the determination result. The method comprises: checking and preparing the related configurations of a Ship Mode of the mobile terminal after the mobile terminal enters a device test mode after being powered on; checking the working state of a sensor in the mobile terminal and determining whether the sensor is normal; if the sensor is normal, disabling all trigger power-on interrupt operations and setting the mobile terminal to a suspend mode; checking whether a 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 the check; if the USB lock file of the mobile terminal passes the check, checking 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 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 a terminal user mode; and performing system shutdown on the mobile terminal, so that the mobile terminal enters the Ship Mode.
2. The shipping mode conversion method of a mobile terminal according to claim 1, wherein, Further comprising: when the mobile terminal is powered on and in a user mode, reinitializing a sensor interrupt; determining whether the sensor interrupt is detected by a software system; if the sensor interrupt is detected by the software system, sending positioning information to the cloud and making the mobile terminal enter an energy-saving mode; determining whether the sensor interrupt is detected by a hardware system; and if neither the software system nor the hardware system detects the sensor interrupt, making the mobile terminal enter a waiting mode or the energy-saving mode. comprising:
3. An electronic device, characterized by comprising: a checking and verifying module configured to check and verify the related configurations of a Ship Mode of the electronic device after the electronic device enters a device test mode after being powered on, and check the working state of a sensor in the electronic device and determine whether the sensor is normal; and a control module configured to, if the sensor is normal, disable all trigger power-on interrupt operations and set the electronic device to a suspend mode; wherein: the checking and verifying module checks whether a token of the electronic device is correct, if the token of the electronic device is correct, determines whether a Universal Serial Bus (USB) lock file of the electronic device passes the check, if the USB lock file of the electronic device passes the check, checks whether the state of the device test mode of the electronic device is normal, and if the state of the device test mode of the electronic device is normal, checks whether all default condition variable values of the electronic device are normal; and The control module locks the USB port of the electronic device, disables the serial port output, switches the electronic device to the end-user mode, and performs system shutdown on the electronic device to make the electronic device enter the shipment mode when all the default condition variable values of the electronic device are normal. 4.The electronic device of claim 3, wherein, Wherein: The control module reinitializes the sensor interrupt when the electronic device is powered on and in the user mode; The check and verification module judges whether the sensor interrupt is detected by a software system; If the sensor interrupt is detected by the software system, the control module sends the positioning information to the cloud and makes the electronic device enter the energy-saving mode; The check and verification module judges whether the sensor interrupt is detected by a hardware system; And If the sensor interrupt is not detected by the software system or the hardware system, the control module makes the electronic device enter the standby mode or the energy-saving mode.
5. A storage medium having stored thereon at least one computer instruction, characterized in that, The instructions are loaded and executed by the processor to perform the shipment mode conversion method of the mobile terminal according to any one of claims 1-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