Smart device startup method, electronic device and storage medium
By setting up multiple processor protocol stacks in the preset software of the smart device and loading them dynamically at startup, the problem of high maintenance costs in smart device testing is solved, and efficient startup and unified maintenance of smart devices is achieved.
Patent Information
- Application Number
- CN202411808027.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, smart devices need to synchronously compile protocol stacks of various processors during testing, resulting in developers needing to invest a lot of resources to maintain the protocol stack separately for each smart device, which is too high maintenance cost.
By setting up protocol stacks corresponding to multiple types of processors in the preset software of the smart device, when the smart device is started, it is determined whether there is a protocol stack corresponding to the processor in the preset software. If it exists, the smart device is obtained from the preset software and started based on the protocol stack.
Through a preset software, the startup of intelligent devices of different processors is achieved uniformly, which reduces the startup complexity of different intelligent devices, simplifies the startup process of intelligent devices, accelerates the startup efficiency of different intelligent devices, and greatly reduces the maintenance cost of the protocol stack.
Smart Images

Figure CN119781854A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of device startup, and in particular to a startup method, electronic equipment and storage medium for intelligent devices. Background Art
[0002] An intelligent device refers to any device, instrument or machine with computing capabilities.
[0003] Smart devices need to be tested before leaving the factory, but different smart devices need to synchronously compile the protocol stack of the corresponding processor during testing, which requires developers to invest a lot of resources to maintain the corresponding protocol stack for each smart device separately. Summary of the invention
[0004] The present invention provides a startup method of an intelligent device, an electronic device and a storage medium to solve the problem of excessively high maintenance cost of a protocol stack.
[0005] To solve the above technical problems, the present invention provides a method for starting a smart device, comprising: in response to the smart device starting to start, determining whether there is a protocol stack corresponding to a processor of the smart device in the preset software of the smart device; wherein the preset software is provided with protocol stacks corresponding to multiple types of processors; when there is a protocol stack corresponding to the processor in the preset software, obtaining the protocol stack corresponding to the processor from the preset software, and starting the smart device based on the protocol stack.
[0006] Among them, in response to the smart device starting to start, it is determined whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device, which includes: compiling the protocol stacks corresponding to each type of processor respectively to obtain protocol stacks corresponding to multiple types of processors; encapsulating the preset software based on multiple protocol stacks; and installing the preset software into the smart device.
[0007] Among them, compiling the protocol stack corresponding to each type of processor separately to obtain the protocol stacks corresponding to multiple types of processors also includes: obtaining the identifiers of each type of processor, and numbering the protocol stack of each processor according to the corresponding identifier; obtaining the protocol stack corresponding to the processor from the preset software, including: obtaining the protocol stack with the same number as the identifier from the preset software.
[0008] Among them, in response to the smart device starting to start, it is determined whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device, including: in response to the smart device starting to start, starting the boot program to read the identifier of the processor of the smart device; determining whether there is a protocol stack with the same number as the identifier in the preset software; if so, determining that there is a protocol stack corresponding to the processor in the preset software.
[0009] Among them, judging whether there is a protocol stack corresponding to the processor in the preset software of the smart device also includes: when the protocol stack corresponding to the processor does not exist in the preset software, obtaining the preset protocol stack from the preset software, and starting the smart device based on the protocol stack.
[0010] The method of starting the smart device based on the protocol stack includes: copying and burning the protocol stack into a modem of the smart device to start the smart device.
[0011] Among them, copying and burning the protocol stack into the modem of the smart device to start the smart device includes: copying and burning the protocol stack into the modem of the smart device; powering on the modem and completing the initialization of the protocol stack in the modem; searching the communication network through the modem and logging into the communication network to complete the startup of the smart device.
[0012] The method includes searching the communication network through the modem and logging into the communication network to complete the startup of the smart device, and also includes loading multiple application programs on the smart device to complete the startup of the smart device.
[0013] To solve the above technical problems, the present invention further provides an electronic device, comprising: a memory and a processor coupled to each other, the processor being used to execute program instructions stored in the memory to implement any of the above smart device startup methods.
[0014] In order to solve the above technical problems, the present invention further provides a computer-readable storage medium, which stores program data, and the program data can be executed to implement any of the above-mentioned methods for starting up a smart device.
[0015] The beneficial effects of the present invention are as follows: Different from the prior art, the present invention judges whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device in response to the start of the smart device; wherein the preset software is provided with protocol stacks corresponding to various types of processors; when there is a protocol stack corresponding to the processor in the preset software, the protocol stack corresponding to the processor is obtained from the preset software, and the smart device is started based on the protocol stack, thereby uniformly realizing the startup of smart devices with different processors through one preset software, reducing the startup complexity of different smart devices, simplifying the startup process of smart devices, and further accelerating the startup efficiency of different smart devices. The developer only needs to maintain one preset software to realize the maintenance of protocol stacks of various different processors, which greatly reduces the maintenance cost of the protocol stack. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of an embodiment of a method for starting a smart device provided by the present invention;
[0017] Figure 2 is a flow chart of another embodiment of the method for starting a smart device provided by the present invention;
[0018] Figure 3 It is a storage diagram of a read-only memory implementation method after the preset software is installed;
[0019] Figure 4 is a structural schematic diagram of an embodiment of an electronic device provided by the present invention;
[0020] Figure 5 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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] See also Figure 1 , Figure 1 It is a flowchart of an embodiment of a method for starting a smart device provided by the present invention.
[0023] Step S11: in response to the smart device starting to start, determining whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device; wherein the preset software is provided with protocol stacks corresponding to various types of processors.
[0024] The smart devices of this embodiment include but are not limited to mobile phones, tablets, smart watches, smart bracelets, smart home devices, smart travel devices, smart wearable devices, and smart manufacturing equipment.
[0025] The preset software is software that has protocol stacks corresponding to various types of processors and is pre-installed on the smart device. The protocol stack is a modem image that is responsible for processing the baseband image related to the communication protocol. The smart device needs to use the protocol stack to complete the startup.
[0026] The preset software is equipped with protocol stacks corresponding to various types of processors, including but not limited to MT6833, MT6855, MT6737, MT6761, MT6835, SM4350, SM6225 or SM8998.
[0027] When the smart device starts to start, it is first determined whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device.
[0028] Step S12: When the protocol stack corresponding to the processor exists in the preset software, the protocol stack corresponding to the processor is obtained from the preset software, and the smart device is started based on the protocol stack.
[0029] When the protocol stack corresponding to the processor exists in the preset software, the protocol stack corresponding to the processor is directly obtained from the preset software, and the smart device is started based on the protocol stack, avoiding the situation where the protocol stack is synchronously compiled based on the types of processors of different smart devices. The processors of different smart devices can obtain the corresponding protocol stack based on the same preset software, thereby speeding up the startup efficiency of different smart devices. Moreover, the same preset software can uniformly realize the startup of smart devices with different processors. The R&D party only needs to maintain one preset software to realize the maintenance of the protocol stack of multiple processors, which greatly reduces the maintenance cost of the protocol stack, reduces the startup complexity of different smart devices, simplifies the startup process of smart devices, further speeds up the startup efficiency of different smart devices, and realizes dynamic loading of different protocol stacks.
[0030] When the protocol stack corresponding to the processor does not exist in the preset software, the preset protocol stack or the corresponding protocol stack compiled in real time can be used for startup.
[0031] Through the above steps, the startup method of the smart device of this embodiment judges whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device in response to the smart device starting to start; wherein, the preset software is provided with protocol stacks corresponding to multiple types of processors; when the protocol stack corresponding to the processor exists in the preset software, the protocol stack corresponding to the processor is obtained from the preset software, and the smart device is started based on the protocol stack, so that the startup of smart devices with different processors is uniformly realized through one preset software, the startup complexity of different smart devices is reduced, the startup process of smart devices is simplified, and the startup efficiency of different smart devices is further accelerated. The R&D party only needs to maintain one preset software to realize the maintenance of protocol stacks of multiple different processors, which greatly reduces the maintenance cost of the protocol stack.
[0032] See also Figure 2 , Figure 2 It is a flowchart of another embodiment of the method for starting a smart device provided by the present invention.
[0033] Step S21: In response to the smart device starting to boot up, the boot program reads the identifier of the processor of the smart device.
[0034] In a specific application scenario, before step S21, the protocol stacks corresponding to each type of processor are first compiled respectively to obtain the protocol stacks corresponding to the various types of processors; the preset software is obtained based on the multiple protocol stacks encapsulation; and the preset software is installed in the smart device. After the preset software is installed, the multiple protocol stacks are stored in the read-only memory (ROM) of the smart device. Among them, the smart devices with different processors can install the preset software.
[0035] Among them, the preset software can also compile a preset protocol stack, which is a universal protocol stack that can be used to start smart devices with different processors, but it is not targeted and the overall effect is low.
[0036] See also Figure 3 , Figure 3 It is a storage schematic diagram of a read-only memory implementation method after the preset software is installed.
[0037] In this embodiment, the read-only memory 30 includes a first protocol stack 1, a second protocol stack 2, ... an Nth protocol stack n and a preset protocol stack S. Each protocol stack corresponds to a type of processor. N protocol stacks correspond to N types of processors.
[0038] The more processor protocol stacks are compiled in this application scenario, the more intelligent devices with different processors can be applied to the preset software. The protocol stack corresponding to the processor specifically includes radio frequency parameters, multimedia (IMS) parameters, and non-volatile (NV) data, etc. Different types of processors have different parameters.
[0039] In a specific application scenario, when compiling the protocol stack, the identifiers (CPU-ID) of various types of processors are obtained, and the protocol stacks of each processor are numbered according to the corresponding identifiers. The processor identifier is a string of characters and numbers. For example, if the protocol stack of a processor is compiled, and the identifier of the processor is ABC12, then the number of the protocol stack is also ABC12, and the number of the protocol stack is the same as the identifier of the corresponding processor. The identifiers of different types of processors are different, and the identifiers of processors of the same type are the same.
[0040] After the preset software is installed on the smart device, when the smart device starts to start, the boot program reads the identifier of the processor of the smart device. The boot program is a boot program, that is, a boot program when the computer is turned on, which is used to guide the smart device to start and determine how the software runs.
[0041] Step S22: Determine whether there is a protocol stack with the same number as the identifier in the preset software.
[0042] After reading the identifier of the processor, the boot program compares and searches the read-only memory of the smart device to see whether there is a protocol stack with the same number as the identifier.
[0043] When the protocol stack corresponding to the processor does not exist in the preset software, the preset protocol stack can be obtained from the preset software, and the smart device can be started based on the protocol stack. Among them, the preset protocol stack is a universal protocol stack, but the efficiency, signal strength and network search speed of the preset protocol stack are lower than those of the protocol stack specially compiled for the processor.
[0044] Step S23: If yes, determine that the protocol stack corresponding to the processor exists in the preset software, and obtain the protocol stack corresponding to the processor from the preset software.
[0045] When a protocol stack having the same number as the identifier exists in the preset software, it is determined that a protocol stack corresponding to the processor exists in the preset software, and the protocol stack having the same number as the identifier is obtained from the preset software.
[0046] Step S24: copy and burn the protocol stack into the modem of the smart device to start the smart device.
[0047] The protocol stack at the software level is copied and burned into the modem at the hardware level, thereby completing the combination of the protocol stack and the modem, and then realizing the startup of the smart device. The modem is responsible for implementing the protocol stack and driving the radio frequency and base station to realize the air interface signaling interaction.
[0048] If the protocol stack corresponding to the processor exists in the preset software, the protocol stack corresponding to the processor is copied and burned into the modem of the smart device to start the smart device. If the protocol stack corresponding to the processor does not exist in the preset software, the preset protocol stack is copied and burned into the modem of the smart device to start the smart device.
[0049] Specifically, the protocol stack is first copied and burned into the modem of the smart device; then the modem is powered on and the protocol stack in the modem is initialized; the communication network is searched and logged into through the modem, and finally various applications on the smart device are loaded to complete the startup of the smart device.
[0050] The communication network includes but is not limited to 2G, 3G, 4G or 5G mobile networks, etc. The various applications include but are not limited to contacts, text messages, weather, payment programs, and other applications.
[0051] Through the above steps, the startup method of the smart device of this embodiment responds to the smart device starting to start, starts the boot program to read the identifier of the processor of the smart device, and determines whether there is a protocol stack with the same number as the identifier in the preset software. If it exists, it is determined that the protocol stack corresponding to the processor exists in the preset software, and the protocol stack corresponding to the processor is obtained from the preset software. The protocol stack is copied and burned into the modem of the smart device to start the smart device. The startup of smart devices with different processors is uniformly realized through a preset software, the startup complexity of different smart devices is reduced, the startup process of smart devices is simplified, and the startup efficiency of different smart devices is further accelerated. The R&D party only needs to maintain one preset software to realize the maintenance of protocol stacks of multiple different processors, which greatly reduces the maintenance cost of the protocol stack.
[0052] Based on the same inventive concept, the present invention also proposes an electronic device, which can be executed to implement the startup method of the smart device in any of the above embodiments. Figure 4 , Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The electronic device includes a processor 41 and a memory 42.
[0053] The processor 41 is used to execute the program instructions stored in the memory 42 to implement the steps of the startup method of any smart device described above. In a specific implementation scenario, the electronic device may include but is not limited to: a microcomputer, a server, and in addition, the electronic device may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.
[0054] Specifically, the processor 41 is used to control itself and the memory 42 to implement the steps of any of the above embodiments. The processor 41 can also be called a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip with signal processing capabilities. The processor 41 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 41 can be implemented by an integrated circuit chip.
[0055] The above solution can reduce the maintenance cost of the protocol stack, reduce the startup complexity of different smart devices, simplify the startup process of smart devices, and speed up the startup efficiency of different smart devices.
[0056] Based on the same inventive concept, the present invention also proposes a computer-readable storage medium, see Figure 5 , Figure 5 1 is a schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. The computer-readable storage medium 50 stores at least one program data 51, and the program data 51 is used to implement any of the above methods. In one embodiment, the computer-readable storage medium 50 includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0057] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0058] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0059] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0060] If the integrated unit 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 technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium.
[0061] The above are only implementation modes of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for starting a smart device, characterized in that: include: In response to the smart device starting to start, determining whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device; wherein the preset software is provided with protocol stacks corresponding to multiple types of processors; When the preset software contains a protocol stack corresponding to the processor, the protocol stack corresponding to the processor is obtained from the preset software, and the smart device is started based on the protocol stack.
2. The method for starting a smart device according to claim 1, characterized in that: In response to the smart device starting to start, determining whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device, comprises: Compile the protocol stacks corresponding to each type of processor respectively, and obtain the protocol stacks corresponding to multiple types of processors respectively; Obtaining the preset software based on multiple protocol stack encapsulations; The preset software is installed in the smart device.
3. The method for starting a smart device according to claim 2, characterized in that: The method of respectively compiling the protocol stacks corresponding to the processors of each type to obtain the protocol stacks corresponding to the processors of multiple types further includes: Obtaining identifiers of processors of various types, and numbering the protocol stacks of the processors according to the corresponding identifiers; The obtaining a protocol stack corresponding to the processor from the preset software includes: A protocol stack having the same number as the identifier is obtained from the preset software.
4. The method for starting a smart device according to claim 3, characterized in that: In response to the smart device starting to start, determining whether there is a protocol stack corresponding to the processor of the smart device in the preset software of the smart device includes: In response to the smart device starting to boot, starting the boot program to read an identifier of a processor of the smart device; Determine whether there is a protocol stack with the same number as the identifier in the preset software; If yes, it is determined that a protocol stack corresponding to the processor exists in the preset software.
5. The method for starting a smart device according to claim 1, characterized in that: The determining whether there is a protocol stack corresponding to the processor in the preset software of the smart device also includes: When the protocol stack corresponding to the processor does not exist in the preset software, the preset protocol stack is obtained from the preset software, and the smart device is started based on the protocol stack.
6. The method for starting a smart device according to any one of claims 1 to 5, characterized in that: The starting the smart device based on the protocol stack includes: The protocol stack is copied and burned into the modem of the smart device to start the smart device.
7. The method for starting a smart device according to claim 6, characterized in that: The step of copying and burning the protocol stack into the modem of the smart device to start the smart device includes: Copying and burning the protocol stack into the modem of the smart device; Powering on the modem and completing initialization of a protocol stack in the modem; The communication network is searched through the modem and the communication network is logged in to complete the startup of the smart device.
8. The method for starting a smart device according to claim 7, characterized in that: The step of searching the communication network through the modem and logging into the communication network to start the smart device further includes: Loading multiple application programs on the smart device completes the startup of the smart device.
9. An electronic device, characterized in that: The electronic device comprises: a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the smart device startup method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program data, and the program data can be executed to implement the startup method of the smart device according to any one of claims 1 to 8.