CN116382810A - META mode starting method, electronic equipment and storage medium - Google Patents

META mode starting method, electronic equipment and storage medium Download PDF

Info

Publication number
CN116382810A
CN116382810A CN202310659729.9A CN202310659729A CN116382810A CN 116382810 A CN116382810 A CN 116382810A CN 202310659729 A CN202310659729 A CN 202310659729A CN 116382810 A CN116382810 A CN 116382810A
Authority
CN
China
Prior art keywords
preset
meta
parameter
starting
current
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.)
Pending
Application number
CN202310659729.9A
Other languages
Chinese (zh)
Inventor
丁高珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310659729.9A priority Critical patent/CN116382810A/en
Publication of CN116382810A publication Critical patent/CN116382810A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application is applicable to the technical field of equipment testing, and provides a META mode starting method, electronic equipment and a storage medium, wherein the method comprises the following steps: reading a META point in the starting process of the electronic equipment to obtain a current starting parameter corresponding to the META point, wherein the META point is a preconfigured information point for detecting whether the META mode needs to be entered or not; and under the condition that the current starting parameter is matched with the preset starting parameter, entering a META mode, wherein the preset starting parameter is a parameter of triggering and starting the META mode in advance. Therefore, only through reading the META of preset configuration and carrying out parameter matching, the META mode of the electronic equipment is started, and the META tool is abandoned by the technical scheme, and complicated processes such as tool handshake, USB detection and tool judgment are not needed, so that the flow is simplified, and the efficiency of the META mode starting of the electronic equipment is obviously improved.

Description

META mode starting method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of device testing technologies, and in particular, to a META mode starting method, an electronic device, and a storage medium.
Background
META (Mobile Engineering Testing Architecture) is a special starting-up mode of electronic equipment such as mobile phones, tablet computers and the like. META mode is an indispensable mode for production line radio frequency Calibration (RF Calibration), and gold board Test (PCBA Test).
In the related art, an electronic device enters a META mode and depends on a META tool, and the electronic device and the META tool perform interactive detection, and undergo multiple steps of tool handshake, USB detection, tool judgment, jump and the like during the interactive detection, so that the electronic device is slow in speed and easy to generate errors.
Therefore, how to make the electronic device discard the META tool and better enter the META mode is a technical problem to be solved.
Disclosure of Invention
The application provides a method and a device for starting a META mode, electronic equipment and a storage medium, which can solve the problem of how to enable the electronic equipment to abandon a META tool to enter the META mode better.
In a first aspect, an embodiment of the present application provides a method for starting a META mode, including: reading a META point in the starting process of the electronic equipment to obtain a current starting parameter corresponding to the META point, wherein the META point is a preconfigured information point for detecting whether the META mode needs to be entered or not; and under the condition that the current starting parameter is matched with the preset starting parameter, entering a META mode, wherein the preset starting parameter is a parameter of triggering and starting the META mode in advance.
In the technical scheme, the META point is read in the starting process of the electronic equipment by pre-agreeing with the META point and the preset starting parameters, and whether the META point is read or not can be judged in a parameter matching mode, so that the META mode is entered by default when parameters are matched, namely when the electronic equipment reads the META point. Compared with the traditional scheme that the META tool is relied on to enter the META mode, the META tool is abandoned, and complicated processes such as tool handshake, USB detection and tool judgment are not needed, so that the flow is simplified, and the efficiency of starting the META mode of the electronic equipment is remarkably improved. In addition, the technical scheme can realize the start of the META mode only through the parameter reading and matching of the META point, and the reliability is high while errors are not easy to occur.
In one possible implementation manner of the first aspect, the META point is a preset storage location in a preset GPIO (General-purpose input/output) port or an OEM (Original Equipment Manufacturer ) information mirror file, where when the META point is the preset GPIO port, the current start parameter includes a current address and a current level signal, and the preset start parameter includes a preset pin number and a preset level signal; when the META point is a preset storage position in the OEM information mirror image file, the current starting parameter comprises a current flag bit, and the preset starting parameter comprises a preset flag bit.
The application provides two META point configuration ideas, one is a preset GPIO port, the other is a preset storage position in the OEM information mirror image file, in the starting process of the electronic equipment, the current starting parameters corresponding to the preset GPIO port or the preset storage position in the OEM information mirror image file can be read and matched with preset starting parameters configured in advance, if the current starting parameters are matched, the META mode is entered by default, and if the current starting parameters are not matched, the normal starting is performed by default.
It should be noted that, the OEM information image file, that is, the image oemiinfo.mbn, is usually burned into the memory of the electronic device when the version is burned during the production process of the electronic device. The OEM information image file may be accessed and read by the software system of the electronic device to obtain information about the electronic device. Some critical system functions and services may rely on the information in the OEM information image file for proper operation and configuration. In the technical scheme of the application, the OEM information image file can include a preset flag bit, and the preset flag bit is used for judging whether the electronic equipment needs to enter the META mode or not in the starting process according to the preset flag bit.
Optionally, in another possible implementation manner of the first aspect, the META point is a preset GPIO port, and before entering the META mode, the method further includes:
Performing bit OR operation on the initial address of the chip corresponding to the preset GPIO port and the preset pin number to determine the preset address corresponding to the preset GPIO port;
if the current address is the same as the preset address and the current level signal is the same as the preset level signal, determining that the current starting parameter is matched with the preset starting parameter;
otherwise, determining that the current starting parameter is not matched with the preset starting parameter.
Optionally, in still another possible implementation manner of the first aspect, the META point is a preset storage location in an OEM information image file, and the reading the META point during a startup process of the electronic device to obtain a current startup parameter corresponding to the META point includes:
and in the starting-up process of the electronic equipment, reading a preset storage position in the OEM information mirror image file, and taking the flag bit read from the preset storage position in the OEM information mirror image file as the current flag bit.
Optionally, in still another possible implementation manner of the first aspect, before the reading the META point during the startup process of the electronic device to obtain the current startup parameter corresponding to the META point, the method further includes:
when the electronic equipment needs to enter the META mode, the OEM information mirror image file containing the preset zone bit is burnt in a burning version corresponding to the electronic equipment.
Optionally, in another possible implementation manner of the first aspect, in the foregoing recording version corresponding to the electronic device, recording an OEM information image file including a preset flag bit includes:
determining a preset storage position in the OEM information mirror image file according to the preset identifier and the preset offset;
and writing the preset flag bit into the OEM information mirror image file according to the preset storage position in the OEM information mirror image file.
Optionally, in a still another possible implementation manner of the first aspect, in the foregoing electronic device startup process, the reading a preset storage location in the OEM information image file, and taking a flag bit read from the preset storage location in the OEM information image file as a current flag bit includes:
and in the starting-up process of the electronic equipment, reading the current zone bit from the OEM information mirror image file according to the preset identifier and the preset offset.
Optionally, in a further possible implementation manner of the first aspect, before entering the META mode, in a case that the current start-up parameter matches the preset start-up parameter, the method further includes:
if the current zone bit is the same as the preset zone bit, determining that the current starting parameter is matched with the preset starting parameter;
Otherwise, determining that the current starting parameter is not matched with the preset starting parameter.
Optionally, in a further possible implementation manner of the first aspect, after entering the META mode in a case that the current start-up parameter matches the preset start-up parameter, the method further includes:
and deleting the preset flag bit from the preset OEM information mirror image file.
Optionally, in a further possible implementation manner of the first aspect, the method further includes:
and entering a starting mode under the condition that the current starting parameter is not matched with the preset starting parameter.
In a second aspect, an embodiment of the present application provides a META mode starting device, including: the reading module is used for reading the META point in the starting process of the electronic equipment to obtain the current starting parameter corresponding to the META point, wherein the META point is a preconfigured information point for detecting whether the META mode needs to be entered or not; the mode entering module is used for entering a META mode under the condition that the current starting parameter is matched with the preset starting parameter, wherein the preset starting parameter is a parameter of triggering and starting the META mode in a preset mode.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the method for starting the META mode of the first aspect when executing the computer program.
Alternatively, the electronic device may be a mobile phone, a computer, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or the like, as long as the META mode is provided.
In a fourth aspect, embodiments of the present application provide a chip, including a processor, where the processor is configured to read and execute a computer program stored in a memory, and when the computer program is executed by the processor, the method for starting the META mode according to the first aspect is able to be implemented.
Optionally, the chip further comprises a memory, and the memory is electrically connected with the processor.
Optionally, the chip may further comprise a communication interface.
In a fifth aspect, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, which when executed by a processor is capable of implementing the method for starting the META mode of the first aspect.
In a sixth aspect, a computer program product is provided, the computer program product comprising a computer program enabling the META mode initiation method of the first aspect described above to be carried out when the computer program is executed by a processor.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating entering META mode during a boot-up phase of an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for starting a META mode according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for starting a META mode according to another embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for starting a META mode according to still another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a native flow for writing a preset flag bit into an OEM information image file according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a process for reading a predetermined storage location in an OEM information image file according to one embodiment of the present application;
FIG. 7 is a schematic flow chart of entering META mode according to one embodiment of the present application;
Fig. 8 is a schematic structural diagram of a META mode starting device according to an embodiment of the present application;
fig. 9 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
It should be understood that the sequence number of each step in this embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
For the convenience of understanding the embodiments of the present application, related concepts related to the embodiments of the present application will be briefly described first:
1. bootrom stage:
the Bootrom stage is a part of the most basic and bottommost layer in the starting process of the electronic equipment, and is mainly used for initializing hardware, loading Bootloader, operating system and other key tasks, so that the hardware and software of the electronic equipment can be ensured to be normally started, and the electronic equipment is prepared for the subsequent operation of the operating system.
2. Preloader phase:
the Preloader phase refers to the start-up phase that is responsible for the Preloader program after the Bootrom phase. The Preloader is firmware of a chip with a specific model, and is responsible for finishing operations such as chip initialization, DDR (Double Data Rate) initialization, EMMC (Embedded MultiMedia Card ) initialization, equipment detection and the like, so that preparation is made for subsequent Bootloader and operating system starting, and stability and reliability of the system are ensured.
3. LK (Little Kernel) stage:
LK is a common Bootloader, which is a lightweight operating system kernel that is widely used in the boot loading process of embedded devices. LK is mainly responsible for guiding and initializing the basic hardware of the system, loading the operating system, providing some basic system functions, laying a foundation for the subsequent system starting and running, coordinating the initialization and interaction of each component, and ensuring that the system can be normally started and enter the running state of the operating system.
4. init process:
the init process is the first user-level process that the kernel initiates. init has many important tasks such as starting getty (for user login), implementing a run level, handling orphaned processes, etc.
5. meta_tst service:
in META mode, meta_tst service is a very important service, and is mainly responsible for executing some test instructions and scripts, and recording test results, so as to perform test tasks such as radio frequency calibration, golden board test, and the like.
6. Modem (Modulator-Demodulator), modem:
modem is a key component in the electronic device responsible for communication with the cellular network.
In the related art, an electronic device enters a META mode and depends on a META tool, and the electronic device and the META tool perform interactive detection, and undergo multiple steps of tool handshake, USB detection, tool judgment, jump and the like during the interactive detection, so that the electronic device is slow in speed and easy to generate errors.
In view of this, the embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for starting a META mode, by pre-specifying a META point and a preset starting parameter, so as to read the META point in a process of starting the electronic device, and determine whether the META point is read by a parameter matching manner, so that when parameters are matched, that is, when the electronic device reads the META point, the META mode is entered by default. Compared with the traditional scheme that the META tool is relied on to enter the META mode, the META tool is abandoned, and complicated processes such as tool handshake, USB detection and tool judgment are not needed, so that the flow is simplified, and the efficiency of starting the META mode of the electronic equipment is remarkably improved. In addition, the technical scheme can realize the start of the META mode only through the parameter reading and matching of the META point, and the reliability is high while errors are not easy to occur.
The following describes in detail a META mode starting method, a META mode starting device, an electronic device and a storage medium provided by the application with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of entering META mode at a startup stage of an electronic device according to an embodiment of the present application is shown. As shown in fig. 1, the left dashed box is a conventional original flow of entering the META mode by relying on the META tool, and the right dashed box is a flow of entering the META mode according to the technical scheme of the present application. The electronic equipment enters the META mode, and the starting-up stage is from the Bootrom stage to the Preloader stage, and is also a normal starting-up process. Then, mode judgment is carried out in a Preloader stage, the difference between the mode of entering the META mode by the traditional META-dependent tool and the technical scheme of the application is mainly reflected in the stage, and after the mode identification is successful, the identified mode is transmitted into an LK stage to carry out startup mode selection and corresponding operation. Starting an init process, if the identified mode is a META mode, entering a rc (Run Command) stage after the init process is started and executing a meta_init.rc file, starting META related services, and finally pulling up the meta_tst service, wherein the rc stage refers to a script file corresponding to an executed META mode instruction after the init process is started; the meta_init.rc file is a script file in META mode, and is located in the init.rc file of the system, and is used for initializing and configuring the system in META mode. It should be noted that an electronic device supporting only a wireless local area network (Wi-Fi) connection and not a cellular network connection is basically terminated here, but if the electronic device in the META mode is a cellular network version, after the meta_tst service is performed, some Modem related configuration is required to ensure that the electronic device can normally use the cellular network.
Referring to fig. 2, a flow chart of a META mode starting method provided in an embodiment of the present application is shown. As shown in fig. 2, the method for starting the META mode may include the following steps:
step 201, reading the META point during the power-on process of the electronic device to obtain the current start-up parameter corresponding to the META point.
It should be noted that, the method for starting the META mode in the embodiment of the present application may be performed by the device for starting the META mode in the embodiment of the present application. The META mode starting device of the embodiment of the present application may be configured in any electronic device to execute the META mode starting method of the embodiment of the present application. For example, the META mode starting device in the embodiment of the present application may be configured in an electronic device having a META mode, such as a mobile phone, a computer, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or the like, so as to implement starting of the META mode of the electronic device.
The META point is a preconfigured information point for detecting whether the META mode needs to be entered. According to the technical scheme, the information point refers to a certain specific position containing specific information, the information point can be a certain entity position on hardware or a certain virtual position on software, and therefore the electronic equipment can read the information point at the specific position in the starting process and acquire the information corresponding to the information point currently, namely the current starting parameters.
As a possible implementation manner, a certain GPIO port of the electronic device may be set to be a META point, which has the following advantages: firstly, the working mode and the level state of the GPIO port can be configured through software, and flexible setting is carried out according to the needs in practical application, so that the triggering condition and logic of the META mode can be conveniently adjusted. In addition, almost all embedded devices are provided with GPIO ports, and the application range of the GPIO ports is wide. And the GPIO port is an existing hardware resource on the electronic equipment, so that extra hardware cost is not needed, the cost can be reduced, and the design is simplified. Finally, the GPIO port reading operation usually has very low delay, can rapidly respond to state change, and can effectively improve the starting speed of the META mode. Based on the method, the electronic equipment can receive the trigger instruction of the clamp to the preset GPIO port in the starting process, and further execute the reading operation of the META point according to the trigger instruction, so that the current starting parameter corresponding to the META point is obtained.
As another possible implementation, the preset storage location in the OEM information image file may be set to be a META point, where the OEM information image file, i.e. the image oemiinfo.mbn, is typically burned into the memory of the electronic device when the version is burned during the production of the electronic device. The OEM information image file may be accessed and read by the software system of the electronic device to obtain information about the electronic device. Some critical system functions and services may rely on the information in the OEM information image file for proper operation and configuration. Based on the method, the electronic equipment can acquire the current starting parameters corresponding to the META point by inquiring the OEM information mirror image file in the starting process.
The current starting parameters are parameters directly obtained by reading META points in the starting process of the electronic equipment, and the current starting parameters can be determined according to the types of the META points because the parameters corresponding to the META points of different types are also different. For example, when the META point is a preset GPIO port, the current address and the current level signal of the preset GPIO port can be obtained by reading the preset GPIO port, so that the current level signal may include the current address and the current level signal corresponding to the preset GPIO port. For another example, when the META point is a preset storage location in the OEM information mirror file, the current flag bit corresponding to the preset storage location may be obtained by reading the preset storage location, where the current flag bit depends on a specific design of a device manufacturer and an application scenario, and a specific data type may be a number, a character string, or the like.
Step 202, entering a META mode if the current start-up parameter matches the preset start-up parameter.
The preset starting parameters are parameters of a pre-configured triggering starting META mode. The preset starting parameters are determined along with the setting of the META point.
Generally, the type of the preset start-up parameter is consistent with or has an association with the type of the current start-up parameter. Taking the META point as a preset GPIO port as an example, the preset starting parameter may include a preset pin number and a preset level signal, where the preset pin number is associated with a current address in the current starting parameter, and the preset level signal is consistent with the type of the current level signal, so that when the preset pin number matches with the current address and the preset level signal is the same as the current level signal, the current starting parameter and the preset starting parameter may be considered to match. For another example, the META point is a preset storage location in the OEM information mirror file, the preset starting parameter may include a preset flag bit, and a data type of the preset flag bit may be the same as that of the current flag bit, and when the read current flag bit is the same as that of the preset flag bit, the current starting parameter and the preset starting parameter may be considered to be matched.
It should be noted that if the current starting parameter read in the starting process of the electronic device is not matched with the preset starting parameter, the META mode is failed to start, and the normal starting mode can be entered, so that the electronic device is prevented from failing to operate normally.
According to the META mode starting method, the META point is read in the starting process of the electronic equipment by means of pre-agreeing with the META point and the preset starting parameters, whether the META point is read or not can be judged in a parameter matching mode, and therefore the META mode is entered by default when the parameters are matched, namely when the electronic equipment reads the META point. Compared with the traditional scheme that the META tool is relied on to enter the META mode, the META tool is abandoned, and complicated processes such as tool handshake, USB detection and tool judgment are not needed, so that the flow is simplified, and the efficiency of starting the META mode of the electronic equipment is remarkably improved. In addition, the technical scheme can realize the start of the META mode only through the parameter reading and matching of the META point, and the reliability is high while errors are not easy to occur.
In one possible implementation manner of the present application, when the META point is a preset GPIO port, the current start parameter includes a current address and a current level signal, and the preset reference parameter includes a preset pin number and a preset level signal. The current level signal and the preset level signal can be directly compared, but the current address and the preset pin number cannot be directly compared. Therefore, the preset address corresponding to the preset GPIO port can be obtained by performing bit OR operation on the initial address of the chip corresponding to the GPIO port and the preset pin number. Through the conversion, the read current address can be compared with a preset address, and whether the current starting parameter is matched with the preset starting parameter or not is determined by combining the comparison result of the level signal.
The following describes a method for starting the META mode according to the embodiment of the present application with reference to fig. 3.
Referring to fig. 3, a flow chart of another META mode starting method provided in an embodiment of the present application is shown. As shown in fig. 3, the method for starting the META mode may include the following steps:
step 301, reading a META point in a startup process of the electronic device to obtain a current startup parameter corresponding to the META point, where the META point is a preset GPIO port, the current startup parameter includes a current address and a current level signal, and the preset startup parameter includes a preset pin number and a preset level signal.
The specific implementation process and principle of the above step 301 may refer to the detailed description of the above embodiments, which is not repeated herein.
Step 302, performing a bit-wise or operation on the start address of the chip corresponding to the preset GPIO port and the preset pin number to determine the preset address corresponding to the preset GPIO port.
It should be noted that, the start address of the chip is determined according to the specific chip architecture and design, and generally, the start address of the chip is generally 0x80000000, and after this address, registers and devices related to the chip are generally stored. In a general system, the preset address of the preset GPIO port pair is obtained by performing a logic operation on the start address and the pin number of the chip. A bitwise or (|) is a logical operator that can logically or the corresponding bits of two binary numbers. By performing a bitwise or operation on the start address 0x80000000 of the chip and the preset pin number, the value thus obtained can be understood as the address of the preset GPIO port, since it is an offset from the memory.
For example, if the address of the chip start is 0x80000000, the preset pin number of the preset GPIO port is 13 (represented as 1101 in binary), and then a bitwise or operation is performed: 0x 80000000|1101=0x 8000000D, that is, the preset address corresponding to the preset GPIO port is 0x8000000D.
As a possible implementation manner, since the preset address of the preset GPIO port is important data, in order to increase the security of the system and prevent illegal access, the preset address of the preset GPIO port may be encrypted in advance, so as to confuse or convert the address, so that only the authorized program can correctly decrypt and obtain the real address. On the basis, the address obtained by performing bit OR operation on the initial address of the chip corresponding to the preset GPIO port and the preset pin number is an encryption address, and the encryption address needs to be decrypted, so that the real address and the preset address are obtained.
The method comprises the steps of carrying out exclusive-or operation on a preset address by using a key to realize simple encryption and decryption, carrying out exclusive-or on the address and the key during encryption, and carrying out exclusive-or on a result and the key during decryption to restore the original address. A mapping table can be defined, the real preset address corresponds to the encrypted address, the real preset address is converted into the corresponding encrypted address during encryption, and the encrypted address is converted back into the real preset address during decryption. The preset address of the GPIO port may also be encrypted and decrypted using an encryption algorithm, such as a symmetric encryption algorithm, e.g., AES (Advanced Encryption Standard ), DES (Data Encryption Standard, data encryption standard), etc., or an asymmetric encryption algorithm, e.g., RSA (Rivest-Shamir-Adleman) encryption algorithm, etc. And a custom encryption and decryption algorithm can be designed and realized according to the requirements of the system to encrypt and decrypt the preset address of the GPIO port. In short, the encryption and decryption modes are numerous, and the corresponding encryption and decryption modes can be selected according to the actual application scene and the requirements, so that the application is not limited.
Step 303, if the current address is the same as the preset address and the current level signal is the same as the preset level signal, determining that the current starting parameter is matched with the preset starting parameter; otherwise, determining that the current starting parameter is not matched with the preset starting parameter.
It should be noted that, only if the two conditions are satisfied, the current start-up parameter and the preset start-up parameter can be considered to be matched, and if only one condition is satisfied, neither condition is satisfied, or the current address or the current level signal is not read, the current start-up parameter and the preset start-up parameter are considered to be unmatched, and the normal start-up mode is entered.
For example, the GPIO port with the preset pin number of 13 is preset GPIO port in advance, and the default level signal is high, so that only when the read current address is 0x8000000D, the read current level signal is also high, it can be determined that the current start parameter matches with the preset start parameter, and the META point is successfully identified.
As a possible implementation manner, step 303 may be implemented by setting a kernel macro, specifically, first setting related parameters, that is, a preset address, a preset level signal, and the like, in a predefined kernel macro, then, when compiling the kernel, transmitting the predefined kernel macro to a compiler to compile a value of the macro into a kernel code, then, at a Preloader stage in a startup process of the electronic device, reading the values of the kernel macros when the kernel is started, and matching with a current address and a current level signal, if matching is successful, the META point is considered to be successfully identified, then, entering a META mode, and if matching is failed, entering a normal startup mode.
Step 304, entering a META mode if the current start-up parameter matches the preset start-up parameter.
The specific implementation process and principle of the step 304 may refer to the detailed description of the foregoing embodiments, which is not repeated herein.
As a possible implementation manner of the present application, in order to ensure that the GPIO ports are properly configured and prepared so that subsequent operations and functions can be performed normally, the relevant parameters of the preset GPIO ports may be initialized in a Preloader stage in the electronic device startup process, and specifically, the initialization of the GPIO ports involves parameter settings in the following aspects: mode: the GPIO ports may be configured in different modes, for example, the GPIO ports may be configured as general GPIOs or the like; input/output direction: an input (0) or an output (1); enabling: the enable parameter is used to enable or disable the GPIO port. By initializing the enabling state of the GPIO port, whether the GPIO port can be operated and used or not can be controlled; default pull-up and pull-down: the GPIO port typically has the option of a pull-up or pull-down resistor to maintain its level state in the absence of an external input signal, and by setting a default pull-up parameter, the default level state of the GPIO port can be determined at initialization. By initializing the GPIO parameters, the state and the function of the GPIO port can be ensured to be consistent with the expected state and function in the subsequent starting stage and system starting process, so that a stable hardware environment can be provided, the subsequent software code can correctly operate and utilize the GPIO port, and various functions and interactive operations are realized. Meanwhile, after the preset GPIO port receives the trigger instruction of the clamp, the related parameters initialized by the preset GPIO port can be obtained first, so that whether the configuration of the GPIO port is correct or not can be verified, and further subsequent further processing and judgment are facilitated.
According to the META mode starting method provided by the embodiment of the application, firstly, a META point is read in the starting process of electronic equipment to obtain a current starting parameter corresponding to the META point, wherein the META point is a preset GPIO port, the current starting parameter comprises a current address and a current level signal, the preset starting parameter comprises a preset pin number and a preset level signal, then, the starting address of a chip corresponding to the preset GPIO port and the preset pin number are subjected to bit OR operation to determine a preset address corresponding to the preset GPIO port, and if the current address is the same as the preset address and the current level signal is the same as the preset level signal, the current starting parameter is determined to be matched with the preset starting parameter; otherwise, determining that the current starting parameter is not matched with the preset starting parameter, and entering a META mode under the condition that the current starting parameter is matched with the preset starting parameter. Therefore, the preset address corresponding to the preset GPIO port is obtained by performing bit OR operation on the initial address of the chip corresponding to the GPIO port and the preset pin number. Through the conversion, the read current address can be compared with a preset address, and whether the current starting parameter is matched with the preset starting parameter or not is determined by combining the comparison result of the level signal. In addition, the preset address of the preset GPIO port can be encrypted in advance, and then the address obtained by performing bit OR operation on the initial address of the chip corresponding to the preset GPIO port and the preset pin number is decrypted, so that the safety of the system is improved, and illegal access is prevented. In addition, the relevant parameters of the preset GPIO port can be initialized in the Preloader stage in the starting process of the electronic equipment, and then after the preset GPIO port receives the trigger instruction of the clamp, the relevant parameters initialized by the preset GPIO port can be obtained first, so that whether the configuration of the GPIO port is correct or not can be verified, and further processing and judgment can be facilitated.
In one possible implementation manner of the present application, when the META point is a preset storage location in the OEM information image file, the current start-up parameter includes a current flag bit, and the preset start-up parameter includes a preset flag bit. Because the original burning version of the electronic device does not contain the flag bit information, the electronic device can record an OEM information mirror image file for storing specific information by burning more than one OEM information mirror image file when the original burning version is recorded, and needs to write preset flag bits into preset storage positions of the OEM information mirror image file in advance, wherein the preset flag bits are parameters of a preset triggering start META mode, so that the electronic device can search the preset flag bits in the preset storage positions of the OEM information mirror image file in the starting process, if the preset flag bits can be found, the META mode is required by default, and if the preset flag bits cannot be found, the normal starting is performed by default. Compared with the traditional mode of entering the META mode by depending on the META tool, the technical scheme provides a new thought for the starting of the META mode, has simple flow, remarkably improves the starting efficiency of the META mode, is not easy to make mistakes, and has high reliability.
The following further describes a META mode starting method provided in the embodiment of the present application with reference to fig. 4.
Referring to fig. 4, a flow chart of a method for starting a META mode according to an embodiment of the present application is shown. As shown in fig. 4, the method for starting the META mode may include the steps of:
step 401, during the startup process of the electronic device, reading a preset storage location in the OEM information image file, and taking the flag bit read from the preset storage location in the OEM information image file as the current flag bit.
Because the original recording version of the electronic device does not include the flag bit information, when the electronic device records the version, an OEM information image file including the preset flag bit is recorded more, so that when the electronic device is subsequently started, the electronic device can search the preset flag bit by reading the OEM information image file, that is, as a possible implementation manner of the embodiment of the present application, before step 401, the method may include: when the electronic equipment needs to enter the META mode, the OEM information mirror image file containing the preset zone bit is burnt in a burning version corresponding to the electronic equipment.
The data type of the preset flag bit may be a user-defined number, a character string, or the like, which is not limited in the embodiment of the present application.
Furthermore, before the OEM information image file is burned, a preset flag bit needs to be written into the OEM information image file in advance. The preset storage location corresponding to the preset flag bit may be determined by determining a preset Identifier (ID) and a preset offset, where the preset identifier is used to identify a specific location, and the offset is a value relative to the beginning of the file or a fixed reference point, and is used to determine the exact location where the preset flag bit is to be written. That is, with the preset identifier and the preset offset, the preset flag bit may be accurately written into the specific location in the OEM information image file, that is, in one possible implementation manner of the embodiment of the present application, the step 401 may include: determining a preset storage position in the OEM information mirror image file according to the preset identifier and the preset offset; and writing the preset flag bit into the OEM information mirror image file according to the preset storage position in the OEM information mirror image file. It should be understood that the preset identifier and the preset offset may be determined in conjunction with an actual application scenario, or may be determined randomly, which is not limited in this application.
The method for writing the preset flag bit into the OEM information mirror image file can be customized in combination with an actual application scene, and the method is not limited in this application.
In general, before configuring the preset storage location of the OEM information image file to be the META point, the flag bit corresponding to the preset storage location may be empty, or may be initialized to a default value or an undefined value, depending on the design and development flow of the electronic device.
Fig. 5 shows a schematic diagram of a native flow of writing a preset flag bit into an OEM information image file, wherein the process is described in detail taking a data type of the preset flag bit as a character string as an example. As shown in fig. 5, a preset character string is written into a TXT file, then a fopen function is called to open the TXT file, a fread function is called to read the character string from the TXT file and store the character string in a buffer, the fopen function is synchronously called to open an OEM information mirror file, a getOeminfoinddex function and a getoeminfofset function are respectively called to obtain a preset identifier and a preset offset corresponding to a preset storage position, and finally the read character string is written into the preset storage position corresponding to the preset identifier and the preset offset from the buffer.
It should be understood that the foregoing describes a process of determining the preset storage location in the OEM information image file according to the preset identifier and the preset offset, and accordingly, in the electronic device startup process, the step 401 may also include: and in the starting-up process of the electronic equipment, reading the current zone bit from the OEM information mirror image file according to the preset identifier and the preset offset.
Step 402, entering a META mode when the current start-up parameter matches with a preset start-up parameter, wherein the META point is a preset storage location in the OEM information image file, the current start-up parameter includes a current flag bit, and the preset start-up parameter includes a preset flag bit.
If the current flag bit read from the preset storage location is empty, the electronic device may not need to enter the META mode, or the META mode fails to read, and at this time, the current start-up parameter is considered to be not matched with the preset start-up parameter, and the electronic device defaults to enter the normal start-up mode.
Further, if the current flag bit read from the preset storage location is not empty, it may be determined by directly comparing whether the current flag bit is the same as the preset flag bit, and if so, it may be determined that the current start parameter matches the preset start parameter, that is, in a possible implementation manner in the embodiment of the present application, before the step 402, the method may include: if the current zone bit is the same as the preset zone bit, determining that the current starting parameter is matched with the preset starting parameter; otherwise, determining that the current starting parameter is not matched with the preset starting parameter.
As a possible implementation manner of the present application, in order to increase security of the system and prevent illegal access, the preset flag bit may be encrypted in advance, so that the preset flag bit is confused or converted, so that only the authorized program can correctly decrypt and obtain the real preset flag bit. On the basis, before the current flag bit is matched with the preset flag bit, the encrypted preset flag bit can be decrypted, so that the real preset flag bit is obtained.
Further, after the electronic device enters the META mode to perform the related test, in order to avoid that the electronic device also enters the META mode after being powered on, an eraseflag operation may be performed on a preset flag bit after entering the META mode in step 402, so as to delete the preset flag bit, that is, in a possible implementation manner of the embodiment of the present application, after step 402, the method may further include: and deleting the preset flag bit from the preset OEM information mirror image file.
FIG. 6 is a flow chart illustrating a method for reading a predetermined memory location in an OEM information image file when an electronic device is powered on. As shown in fig. 6, a preset identifier and a preset offset corresponding to a preset storage position are obtained first, a current flag bit is read at the preset storage position according to the preset identifier and the preset offset, and after the current flag bit is successfully matched with the preset flag bit, the preset flag bit is deleted to avoid entering a META mode even when the next power-on is performed. It should be noted that if the above steps are unsuccessful, a failure is returned, and if both steps are successful, the META mode is entered after deleting the preset flag bit.
According to the method for starting the META mode, firstly, when the electronic equipment needs to enter the META mode, an OEM information mirror image file containing a preset flag bit is burned in a corresponding burning version of the electronic equipment, then, in the starting process of the electronic equipment, a preset storage position in the OEM information mirror image file is read, the flag bit read from the preset storage position in the OEM information mirror image file is used as a current flag bit, and finally, the META mode is entered under the condition that a current starting parameter is matched with a preset starting parameter, wherein the META point is the preset storage position in the OEM information mirror image file, the current starting parameter comprises the current flag bit, and the preset starting parameter comprises the preset flag bit. Compared with the traditional mode of entering the META mode by depending on the META tool, the technical scheme provides a new thought for the starting of the META mode, has simple flow, remarkably improves the starting efficiency of the META mode, is not easy to make mistakes, and has high reliability.
Referring to fig. 7, a flowchart of entering META mode at a startup stage of an electronic device according to an embodiment of the present application is shown. As shown in fig. 7, the left part is a native flow of entering the META mode by using the META tool, firstly, in the Preloader stage of the startup process of the electronic device, after some initialization preparation work and tool handshake, whether the USB is inserted is judged, if the USB is not reacted for more than 2.5 seconds, the USB is started normally, otherwise, the following steps are continuously executed. And then sending READY to the META tool to indicate that the electronic device is READY, returning META information to indicate that the META tool is READY to perform subsequent operations, then sending ATEM0001 and ATEM0002 commands to the META tool by the electronic device successively, and waiting for a return value of the META tool, wherein the return value comprises version information, memory information and the like, and the META tool is used for helping the subsequent operations, then disconnecting, and judging that the tool connection is completed and entering the META mode. The final jump goes to LK phase mode selection. Therefore, the scheme of entering the META mode by the traditional META tool is complicated in flow, easy to make mistakes and low in reliability.
FIG. 7 also shows a primitive flow of entering META mode when META point is a preset GPIO port, firstly, invoking a function to perform initialization operation of GPIO port parameters in a Preloader stage, including initialization of parameters such as mode, input/output direction, enabling, default pull-up and pull-down, and the like, then, firstly, agreeing with the preset GPIO port and a preset level signal in a bldr_pre_process stage, then, triggering by a clamp to enter a subsequent META mode entry judging step, when the electronic equipment software receives an instruction that the META mode is triggered, acquiring related parameters initialized before, and further performing matching operation on the preset GPIO port by identifying a preset kernel macro, wherein the default enters the META mode if matching is successful, otherwise, starting normally.
Fig. 7 also shows a primary flow of entering META mode when the META point is a preset storage location in the OEM information image file, first writing a preset flag bit in the preset storage location in the OEM information image file, then reading the current flag bit and judging whether the current flag bit is matched, if the matching is successful, entering META mode by default, otherwise, starting normally.
Referring to fig. 8, a schematic structural diagram of a META mode activation device 800 provided in an embodiment of the present application is shown, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
The META mode activation device 800 may specifically include the following modules:
the reading module 801 is configured to read a META point during a startup process of the electronic device to obtain a current startup parameter corresponding to the META point, where the META point is a preconfigured information point for detecting whether to enter a META mode.
The mode entering module 802 is configured to enter a META mode if the current start-up parameter matches a preset start-up parameter, where the preset start-up parameter is a parameter of a pre-configured trigger start-up META mode.
In practical use, the META mode starting device 800 provided in the embodiments of the present application may be configured in any electronic device to execute the foregoing META mode starting method.
According to the META mode starting device, the META point is read in the starting process of the electronic equipment to obtain the current starting parameter corresponding to the META point, wherein the META point is a preconfigured information point used for detecting whether the META mode needs to be entered or not. And under the condition that the current starting parameter is matched with the preset starting parameter, entering a META mode, wherein the preset starting parameter is a parameter of triggering and starting the META mode in advance. Therefore, only through reading the META of preset configuration and carrying out parameter matching, the META mode of the electronic equipment is started, and the META tool is abandoned by the technical scheme, and complicated processes such as tool handshake, USB detection and tool judgment are not needed, so that the flow is simplified, and the efficiency of the META mode starting of the electronic equipment is obviously improved. In addition, the technical scheme can realize the start of the META mode only through the parameter reading and matching of the META point, and the reliability is high while errors are not easy to occur.
In one possible implementation manner of the present application, the META point is a preset storage location in a preset GPIO port or an OEM information image file, where when the META point is a preset GPIO port, the current start parameter includes a current address and a current level signal, and the preset start parameter includes a preset pin number and a preset level signal. When the META point is a preset storage position in the OEM information mirror image file, the current starting parameter comprises a current flag bit, and the preset starting parameter comprises a preset flag bit.
Further, in a possible implementation manner of the embodiment of the present application, the META point is a preset GPIO port, and the starting device 800 of the META mode may specifically further include the following modules:
the first determining module is used for performing bit OR operation on the initial address of the chip corresponding to the preset GPIO port and the preset pin number so as to determine the preset address corresponding to the preset GPIO port.
The first execution module is used for determining that the current starting parameter is matched with the preset starting parameter if the current address is the same as the preset address and the current level signal is the same as the preset level signal.
And the second execution module is used for determining that the current starting parameter is not matched with the preset starting parameter if not.
Further, in another possible implementation manner of the embodiment of the present application, the META point is a preset storage location in the OEM information image file, and the reading module 801 may specifically include the following units:
the first reading module is used for reading a preset storage position in the OEM information mirror image file in the starting process of the electronic equipment, and taking the flag bit read from the preset storage position in the OEM information mirror image file as the current flag bit.
Further, in still another possible implementation manner of the embodiment of the present application, the above-mentioned META mode starting device 800 may specifically further include the following modules:
And the third execution module is used for burning the OEM information mirror image file containing the preset zone bit in a burning version corresponding to the electronic equipment when the electronic equipment needs to enter the META mode.
Further, in still another possible implementation manner of the embodiment of the present application, the third execution module may specifically include the following units:
and the second determining unit is used for determining a preset storage position in the OEM information mirror image file according to the preset identifier and the preset offset.
And the fourth execution module is used for writing the preset flag bit into the OEM information mirror image file according to the preset storage position in the OEM information mirror image file.
Further, in another possible implementation manner of the embodiment of the present application, the first reading module may specifically include the following units:
the reading unit is used for reading the current zone bit from the OEM information mirror image file according to the preset identifier and the preset offset in the starting process of the electronic equipment.
Further, in still another possible implementation manner of the embodiment of the present application, the above-mentioned META mode starting device 800 may specifically further include the following modules:
and the fifth execution module is used for determining that the current starting parameter is matched with the preset starting parameter if the current zone bit is the same as the preset zone bit.
And the sixth execution module is used for determining that the current starting parameter is not matched with the preset starting parameter if not.
Further, in still another possible implementation manner of the embodiment of the present application, the above-mentioned META mode starting device 800 may specifically further include the following modules:
and the seventh execution module is used for deleting the preset flag bit from the preset OEM information mirror image file.
The META mode starting device provided in the embodiment of the present application may be applied to the foregoing method embodiment, and details refer to the description of the foregoing method embodiment, which is not repeated herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 9, the electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a universal serial bus (universalserial bus, USB) interface 930, a charge management module 940, a power management module 941, a battery 942, an antenna 1, an antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, a sensor module 980, keys 990, a motor 991, an indicator 992, a camera 993, a display screen 994, and a subscriber identity module (subscriber identification module, SIM) card interface 995, etc. The sensor module 980 may include, among other things, a pressure sensor 980A, a gyroscope sensor 980B, a barometric sensor 980C, a magnetic sensor 980D, an acceleration sensor 980E, a distance sensor 980F, a proximity sensor 980G, a fingerprint sensor 980H, a temperature sensor 980J, a touch sensor 980K, an ambient sensor 980L, a bone conduction sensor 980M, and the like.
It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 900. In other embodiments of the present application, electronic device 900 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Illustratively, the processor 910 shown in fig. 9 may include one or more processing units, such as: the processor 910 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 900, among other things. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 910 for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. The memory may hold instructions or data that the processor 910 has just used or recycled. If the processor 910 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 910 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 910 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
In some embodiments, the I2C interface is a bi-directional synchronous serial bus including a serial data line (SDA) and a serial clock line (derail clock line, SCL). The processor 910 may include multiple sets of I2C buses. The processor 910 may be coupled to the touch sensor 980K, charger, flash, camera 993, etc., respectively, through different I2C bus interfaces. For example, the processor 910 may couple the touch sensor 980K through an I2C interface, causing the processor 910 to communicate with the touch sensor 980K through an I2C bus interface, implementing the touch functionality of the electronic device 900.
In some embodiments, the I2S interface may be used for audio communication. The processor 910 may include multiple sets of I2S buses. The processor 910 may be coupled to the audio module 970 by an I2S bus to enable communication between the processor 910 and the audio module 970.
In some embodiments, the audio module 970 may communicate audio signals to the wireless communication module 960 through an I2S interface to implement a function of answering a phone call through a bluetooth headset.
In some embodiments, the PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. The audio module 970 and the wireless communication module 960 may be coupled through a PCM bus interface.
In some embodiments, the audio module 970 may also communicate audio signals to the wireless communication module 960 through a PCM interface to enable answering a call through a bluetooth headset. It should be appreciated that both the I2S interface and the PCM interface may be used for audio communication.
In some embodiments, the UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. UART interfaces are typically used to connect the processor 910 with the wireless communication module 960. For example, the processor 910 communicates with a bluetooth module in the wireless communication module 960 through a UART interface to implement bluetooth functions. In some embodiments, the audio module 970 may communicate audio signals to the wireless communication module 960 through a UART interface to implement a function of playing music through a bluetooth headset.
In some embodiments, a MIPI interface may be used to connect processor 910 with peripheral devices such as display 994, camera 993, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. The processor 910 and the camera 993 communicate through the CSI interface to implement the photographing function of the electronic device 900. Processor 910 and display 994 communicate via a DSI interface to implement the display functions of electronic device 900.
In some embodiments, the GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. GPIO interfaces may be used to connect processor 910 with camera 993, display 994, wireless communication module 960, audio module 970, sensor module 980, and so forth. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
Illustratively, the USB interface 930 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 930 may be used to connect a charger to charge the electronic device 900, or may be used to transfer data between the electronic device 900 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the connection relationships between the modules illustrated in the embodiments of the present application are merely illustrative, and do not limit the structure of the electronic device 900. In other embodiments of the present application, the electronic device 900 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 940 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 940 may receive a charging input of the wired charger through the USB interface 930. In some wireless charging embodiments, the charge management module 940 may receive wireless charging input through a wireless charging coil of the electronic device 900. The charging management module 940 may also provide power to the electronic device through the power management module 941 while charging the battery 942.
The power management module 941 is used to connect the battery 942, the charge management module 940 and the processor 910. The power management module 941 receives input from the battery 942 and/or the charge management module 940 and provides power to the processor 910, the internal memory 921, the external memory, the display 994, the camera 993, the wireless communication module 960, and the like. The power management module 941 may also be used to monitor battery capacity, battery cycle times, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 941 may also be provided in the processor 910. In other embodiments, the power management module 941 and the charge management module 940 may be disposed in the same device.
The wireless communication function of the electronic device 900 may be implemented by the antenna 1, the antenna 2, the mobile communication module 950, the wireless communication module 960, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 900 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 950 may provide a solution for wireless communication applied on the electronic device 900, such as at least one of the following: second generation (2th generation,2G) mobile communications solutions, third generation (3 g) mobile communications solutions, fourth generation (4th generation,5G) mobile communications solutions, fifth generation (5th generation,5G) mobile communications solutions. The mobile communication module 950 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 950 may receive electromagnetic waves by the antenna 1, perform processes such as filtering and amplifying the received electromagnetic waves, and then transmit to a modem processor for demodulation. The mobile communication module 950 may also amplify the signal modulated by the modem processor, and the amplified signal is converted into electromagnetic waves by the antenna 1 and radiated. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be provided in the processor 910. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be provided in the same device as at least some of the modules of the processor 910.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 970A, receiver 970B, etc.), or displays images or video through display 994. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communications module 950 or other functional modules, independent of the processor 910.
The wireless communication module 960 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 900. The wireless communication module 960 may be one or more devices that integrate at least one communication processing module. The wireless communication module 960 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 910. The wireless communication module 960 may also receive a signal to be transmitted from the processor 910, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 of electronic device 900 is coupled to mobile communication module 950 and antenna 2 of electronic device 900 is coupled to wireless communication module 960 so that electronic device 900 may communicate with networks and other electronic devices via wireless communication techniques. The wireless communication technology may include at least one of the following communication technologies: global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packetradio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-divisioncode division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, IR technologies. The GNSS may include at least one of the following positioning techniques: global satellite positioning system (global positioning system, GPS), global navigation satellite system (global navigationsatellite system, GLONASS), beidou satellite navigation system (beidou navigation satellitesystem, BDS), quasi zenith satellite system (quasi-zenith satellite system, QZSS), satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 900 implements display functionality via a GPU, a display 994, and an application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 994 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 910 may include one or more GPUs that execute program instructions to generate or change display information.
The display 994 is used to display images, videos, and the like. The display 994 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (flex light-emitting diode), mini-Led, micro-OLED, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 900 may include 1 or N displays 994, N being a positive integer greater than 1.
The electronic device 900 may implement shooting functions through an ISP, a camera 993, a video codec, a GPU, a display 994, an application processor, and the like.
The ISP is used to process the data fed back by the camera 993. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, an ISP may be provided in the camera 993.
The camera 993 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 900 may include 1 or N cameras 993, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 900 is selecting a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 900 may support one or more video codecs. Thus, the electronic device 900 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the electronic device 900 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 920 may be used to connect an external memory card, such as a Secure Digital (SD) card, to enable expanding the memory capabilities of the electronic device 900. The external memory card communicates with the processor 910 through an external memory interface 920 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 921 may be used to store computer-executable program code including instructions. The processor 910 executes various functional applications of the electronic device 900 and data processing by executing instructions stored in the internal memory 921. The internal memory 921 may include a stored program area and a stored data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 900 (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 921 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
Electronic device 900 may implement audio functionality through audio module 970, speaker 970A, receiver 970B, microphone 970C, headphone interface 970D, and application processors, among others. Such as music playing, recording, etc.
The audio module 970 is used to convert digital audio information to an analog audio signal output and also to convert an analog audio input to a digital audio signal. The audio module 970 may also be used to encode and decode audio signals. In some embodiments, the audio module 970 may be disposed in the processor 910 or some functional modules of the audio module 970 may be disposed in the processor 910.
Speaker 970A, also known as a "horn," is configured to convert audio electrical signals into sound signals. The electronic device 900 may listen to music, or to hands-free conversations, through the speaker 970A.
A receiver 970B, also known as a "earpiece," is used to convert an audio electrical signal into an acoustic signal. When electronic device 900 is answering a telephone call or voice message, voice may be received by placing receiver 970B in close proximity to the human ear.
Microphone 970C, also known as a "microphone" or "microphone," is used to convert acoustic signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 970C through the mouth, inputting an acoustic signal to the microphone 970C. The electronic device 900 may be provided with at least one microphone 970C. In other embodiments, the electronic device 900 may be provided with two microphones 970C, which may also perform noise reduction in addition to collecting sound signals. In other embodiments, the electronic device 900 may also be provided with three, four, or more microphones 970C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 970D is for connecting a wired earphone. The earphone interface 970D may be a USB interface 930 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 980A is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 980A may be disposed on the display 994. The pressure sensor 980A is of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 980A, the capacitance between the electrodes changes. The electronic device 900 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display 994, the electronic device 900 detects the intensity of the touch operation from the pressure sensor 980A. The electronic device 900 may also calculate the location of the touch based on the detection signal of the pressure sensor 980A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity smaller than a first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyroscope sensor 980B may be used to determine a motion gesture of the electronic device 900. In some embodiments, the angular velocity of electronic device 900 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 980B. The gyro sensor 980B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 980B detects the shake angle of the electronic device 900, and calculates the distance to be compensated by the lens module according to the angle, so that the lens counteracts the shake of the electronic device 900 by the reverse motion, thereby realizing anti-shake. The gyro sensor 980B can also be used for navigating, somatosensory game scenes.
The air pressure sensor 980C is for measuring air pressure. In some embodiments, the electronic device 900 calculates altitude from barometric pressure values measured by the barometric pressure sensor 980C, aiding in positioning and navigation.
The magnetic sensor 980D includes a hall sensor. The electronic device 900 may detect the opening and closing of the flip holster using the magnetic sensor 980D. In some embodiments, when the electronic device 900 is a flip machine, the electronic device 900 may detect the opening and closing of the flip according to the magnetic sensor 980D; and setting the characteristics of automatic unlocking of the flip cover and the like according to the detected opening and closing state of the leather sheath or the detected opening and closing state of the flip cover.
The acceleration sensor 980E can detect the magnitude of acceleration of the electronic device 900 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 900 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The distance sensor 980F is used to measure distance. The electronic device 900 may measure distance by infrared or laser. In some embodiments, the electronic device 900 may range using the distance sensor 980F to achieve quick focus.
The proximity light sensor 980G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 900 emits infrared light outward through the light emitting diode. The electronic device 900 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device 900. When insufficient reflected light is detected, the electronic device 900 may determine that there is no object in the vicinity of the electronic device 900. The electronic device 900 may detect that the user holds the electronic device 900 in close proximity to the ear using the proximity sensor 980G, so as to automatically extinguish the screen for power saving purposes. The proximity light sensor 980G can also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 980L is for sensing ambient light level. The electronic device 900 may adaptively adjust the brightness of the display 994 based on the perceived ambient light level. The ambient light sensor 980L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 980L can also cooperate with proximity light sensor 980G to detect whether electronic device 900 is in a pocket to prevent false touches.
The fingerprint sensor 980H is for capturing a fingerprint. The electronic device 900 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 980J is for detecting temperature. In some embodiments, the electronic device 900 utilizes the temperature detected by the temperature sensor 980J to execute a temperature processing strategy. For example, when the temperature reported by temperature sensor 980J exceeds a threshold, electronic device 900 performs a reduction in performance of a processor located near temperature sensor 980J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 900 heats the battery 942 to avoid abnormal shutdown of the electronic device 900 due to low temperatures. In other embodiments, when the temperature is below a further threshold, the electronic device 900 performs boosting of the output voltage of the battery 942 to avoid abnormal shutdown caused by low temperatures.
Touch sensor 980K, also referred to as a "touch panel". The touch sensor 980K may be disposed on the display 994, and the touch sensor 980K and the display 994 form a touch screen, which is also referred to as a "touch screen". The touch sensor 980K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 994. In other embodiments, the touch sensor 980K may be disposed on a surface of the electronic device 900 other than where the display 994 is located.
The bone conduction sensor 980M may acquire a vibration signal. In some embodiments, bone conduction sensor 980M may acquire a vibration signal of the human vocal tract vibrating bone pieces. The bone conduction sensor 980M may also contact the pulse of the human body and receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 980M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 970 may analyze the voice signal based on the vibration signal of the sound part vibration bone block obtained by the bone conduction sensor 980M, so as to realize the voice function. The application processor can analyze heart rate information based on the blood pressure beat signals acquired by the bone conduction sensor 980M, so as to realize a heart rate detection function.
The keys 990 include a power-on key, a volume key, etc. The keys 990 may be mechanical keys. Or may be a touch key. The electronic device 900 may receive key inputs, generate key signal inputs related to user settings and function controls of the electronic device 900.
The motor 991 may generate a vibratory alert. The motor 991 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 991 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display screen 994. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 992 may be an indicator light, which may be used to indicate a state of charge, a change in charge, an indication message, a missed call, a notification, or the like.
The SIM card interface 995 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 995, or removed from the SIM card interface 995, to enable contact and separation with the electronic device 900. The electronic device 900 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 995 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 995 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 995 may also be compatible with different types of SIM cards. SIM card interface 995 may also be compatible with external memory cards. The electronic device 900 interacts with the network through the SIM card to implement functions such as talking and data communication. In some embodiments, the electronic device 900 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 900 and cannot be separated from the electronic device 900.
The software system of the electronic device 900 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides electronic equipment, which comprises: at least one processor, a memory and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps in the various method embodiments described above when the computer program is executed.
The present application also provides a computer-readable storage medium storing a computer program, which when executed by a processor is capable of implementing the steps in the above-described method embodiments.
The present application provides a computer program product comprising a computer program enabling the implementation of the steps of the various method embodiments described above, when the computer program is executed by a processor.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/electronic apparatus, recording medium, computer memory, read-only memory (ROM), random access memory (random accessmemory, RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (12)

1. A method for activating META mode, comprising:
reading a META point in the starting process of the electronic equipment to obtain a current starting parameter corresponding to the META point, wherein the META point is a preconfigured information point for detecting whether the META mode needs to be entered or not;
and under the condition that the current starting parameter is matched with a preset starting parameter, entering the META mode, wherein the preset starting parameter is a parameter which is preset and triggers to start the META mode.
2. The method of claim 1, wherein the META point is a preset storage location in a preset general purpose input output GPIO port or an original equipment manufacturer OEM information image file, wherein when the META point is the preset GPIO port, the current start-up parameter includes a current address and a current level signal, and the preset start-up parameter includes a preset pin number and a preset level signal; when the META point is a preset storage location in the OEM information image file, the current start-up parameter includes a current flag bit, and the preset start-up parameter includes a preset flag bit.
3. The method according to claim 2, wherein the META point is the preset GPIO port, and wherein the method further comprises, before entering the META mode if the current start-up parameter matches a preset start-up parameter:
Performing bit OR operation on the initial address of the chip corresponding to the preset GPIO port and the preset pin number to determine a preset address corresponding to the preset GPIO port;
if the current address is the same as the preset address and the current level signal is the same as the preset level signal, determining that the current starting parameter is matched with the preset starting parameter;
otherwise, determining that the current starting parameter is not matched with the preset starting parameter.
4. The method of claim 2, wherein the META point is a preset storage location in the OEM information image file, and the reading the META point during the startup of the electronic device to obtain the current startup parameter corresponding to the META point includes:
and in the starting-up process of the electronic equipment, reading a preset storage position in the OEM information mirror image file, and taking the flag bit read from the preset storage position in the OEM information mirror image file as the current flag bit.
5. The method of claim 4, wherein before reading the META point during the power-on process of the electronic device to obtain the current start-up parameter corresponding to the META point, further comprises:
When the electronic equipment needs to enter the META mode, the OEM information mirror image file containing the preset zone bit is burnt in a burnt version corresponding to the electronic equipment.
6. The method of claim 5, wherein the recording the OEM information image file containing the preset flag bit in the corresponding recorded version of the electronic device includes:
determining a preset storage position in the OEM information mirror image file according to a preset identifier and a preset offset;
and writing the preset flag bit into the OEM information mirror image file according to a preset storage position in the OEM information mirror image file.
7. The method of claim 6, wherein the step of reading the preset storage location in the OEM information image file and using the flag bit read from the preset storage location in the OEM information image file as the current flag bit during the powering on of the electronic device includes:
and in the starting-up process of the electronic equipment, reading the current flag bit from the OEM information mirror image file according to the preset identifier and the preset offset.
8. The method of claim 4, wherein the method further comprises, prior to entering the META mode if the current start-up parameter matches a preset start-up parameter:
If the current zone bit is the same as the preset zone bit, determining that the current starting parameter is matched with the preset starting parameter;
otherwise, determining that the current starting parameter is not matched with the preset starting parameter.
9. The method of claim 4, wherein after entering the META mode if the current start-up parameter matches a preset start-up parameter, the method further comprises:
and deleting the preset flag bit from the preset OEM information mirror image file.
10. The method according to any one of claims 1-9, wherein the method further comprises:
and entering a starting mode under the condition that the current starting parameter is not matched with the preset starting parameter.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when executing the computer program.
12. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 10.
CN202310659729.9A 2023-06-06 2023-06-06 META mode starting method, electronic equipment and storage medium Pending CN116382810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310659729.9A CN116382810A (en) 2023-06-06 2023-06-06 META mode starting method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310659729.9A CN116382810A (en) 2023-06-06 2023-06-06 META mode starting method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116382810A true CN116382810A (en) 2023-07-04

Family

ID=86967910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310659729.9A Pending CN116382810A (en) 2023-06-06 2023-06-06 META mode starting method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116382810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117476086A (en) * 2023-12-26 2024-01-30 成都佰维存储科技有限公司 Memory performance test method and device, readable storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015215A1 (en) * 2001-08-22 2005-01-20 Zhang Jianhui Method of computer rapid start-up
CN104239211A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for enabling mobile terminal to rapidly enter test mode
CN115543454A (en) * 2022-08-19 2022-12-30 荣耀终端有限公司 Control method and device of electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015215A1 (en) * 2001-08-22 2005-01-20 Zhang Jianhui Method of computer rapid start-up
CN104239211A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for enabling mobile terminal to rapidly enter test mode
CN115543454A (en) * 2022-08-19 2022-12-30 荣耀终端有限公司 Control method and device of electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117476086A (en) * 2023-12-26 2024-01-30 成都佰维存储科技有限公司 Memory performance test method and device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN112771900B (en) Data transmission method and electronic equipment
CN110515646B (en) Differential upgrading method and related equipment
CN113254409B (en) File sharing method, system and related equipment
CN111124503B (en) Automatic activation method of NFC application and terminal
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN114490174B (en) File system detection method, electronic device and computer readable storage medium
CN116233300A (en) Method for controlling communication service state, terminal device and readable storage medium
CN111865646A (en) Terminal upgrading method and related device
CN113343193A (en) Identity verification method and device and electronic equipment
CN113472861B (en) File transmission method and electronic equipment
CN116382810A (en) META mode starting method, electronic equipment and storage medium
CN113901485B (en) Application program loading method, electronic device and storage medium
WO2022022466A1 (en) Method and apparatus for determining file storage position, and terminal
CN114690849B (en) Clock offset determination method, device and storage medium
CN114157412B (en) Information verification method, electronic device and computer readable storage medium
CN115878500A (en) Memory recovery method and device, electronic equipment and readable storage medium
CN115730091A (en) Comment display method and device, terminal device and readable storage medium
CN114153638A (en) Application exception exit repairing method and device and electronic equipment
CN114329595B (en) Application program detection method, device, storage medium and program product
CN116087930B (en) Audio ranging method, device, storage medium, and program product
CN116668763B (en) Screen recording method and device
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN116719569B (en) Method and device for starting application
CN115460445B (en) Screen projection method of electronic equipment and electronic equipment
CN116668764B (en) Method and device for processing video

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