Circuit board detection method, electronic device and chip system
By using the operating system to compare the unique identifier of the circuit board in electronic devices, the problems of low board detection efficiency and error proneness are solved, and accurate and efficient circuit board recognition is achieved.
Patent Information
- Application Number
- CN202310733637.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2043-06-20
AI Technical Summary
In the prior art, the detection efficiency of the circuit board is low and error-prone, especially in the assembly process of the motherboard and small board, errors are easily caused by BOM differences when manually identifying small boards.
The detection accuracy and efficiency are improved by obtaining and comparing a unique identifier (such as USID) of each circuit board using an operating system in an electronic device to determine whether it is a target circuit board.
Automatic detection is realized, reducing manual errors, improving the accuracy and efficiency of circuit board recognition, and ensuring the accuracy of the assembly process.
Smart Images

Figure CN116541895B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of circuit board detection, and in particular to a circuit board detection method, an electronic device, and a chip system. Background Art
[0002] The circuit board is the core component of the electronic device, and the circuit board of the electronic device may include a main board and a small board. The main board is used to carry various hardware components of the electronic device, and the small board includes the circuit board corresponding to the bottom antenna.
[0003] Before the electronic device is assembled, the main board and the small board are generally separated and need to be manually connected. In some implementations, a main board can be connected to at least one small board to assemble into different electronic devices. For example, the first device includes a first main board and a first small board, and the second device includes a first main board and a second small board. Among them, the bill of materials (BOM) corresponding to the first small board and the second small board are different. For example, there are differences in the device models used, or the same device has different positions on the PCB board, etc. Therefore, when assembling the first device or the second device, it is also necessary to determine whether the small board currently connected to the first main board is the target small board.
[0004] In some implementations, based on the difference in BOM between the first small board and the second small board, it is possible to identify whether the small board currently connected to the first main board is the target small board through human visual observation. However, this manual detection method is prone to errors and has low detection efficiency. Summary of the invention
[0005] The embodiments of the present application provide a circuit board detection method, an electronic device, and a chip system, which can avoid the problems of easy errors and low efficiency in manual detection methods and improve the accuracy of detection results and detection efficiency.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a circuit board detection method is applied to an electronic device, the electronic device includes a first circuit board, and a first operating system is running on the first circuit board. The electronic device is also equipped with a second circuit board, and the method is used to detect the second circuit board. The method includes: obtaining a first identifier through the first operating system. The first identifier is pre-stored in the first circuit board. The first identifier is used to identify a target circuit board. Obtain a second identifier through the first operating system. The second identifier is used to identify the second circuit board. Determine whether the first identifier is consistent with the second identifier through the first operating system. When the first identifier is consistent with the second identifier, determine that the second circuit board is the target circuit board. When the first identifier is inconsistent with the second identifier, determine that the second circuit board is not the target circuit board.
[0008] In the above scheme, the electronic device determines whether the second circuit board is the target circuit board according to whether the first identification corresponding to the target small board is consistent with the second identification corresponding to the second circuit board. Since each circuit board corresponds to a different identification, the accuracy and efficiency of the detection result can be improved.
[0009] Optionally, the first identifier includes a first user service identification code USID, and the electronic device also includes a memory, the memory stores a device tree source file, and the device tree source file includes the first USID. Obtaining the first identifier through the first operating system includes: parsing the device tree source file to obtain the first USID. In the above example, the device tree source file includes the first USID. The first USID is obtained from the device tree source file through the first operating system. In this way, it is convenient for the first operating system to subsequently determine whether the first USID is consistent with the second USID.
[0010] Optionally, the second identifier includes a second USID, the electronic device also includes a first mobile industry processor MIPI interface, the first MIPI interface address corresponds to the second USID, and the first MIPI interface is preset with a first MIPI interface address. Obtaining the second identifier through the first operating system includes: obtaining the second USID through the first operating system according to the first MIPI interface address. In this way, the USID corresponding to the first MIPI interface address on the current second circuit board can be obtained through the first operating system, thereby obtaining the second USID.
[0011] Optionally, the device tree source file also includes a first MIPI interface. Before obtaining the second USID according to the first MIPI interface address through the first operating system, the method further includes: parsing the device tree source file through the first operating system to obtain the first MIPI interface address. Since the second USID corresponds to the first MIPI interface, it is convenient for the first system to obtain the second USID according to the first MIPI interface address.
[0012] Optionally, the electronic device further includes a first modem and a wireless interface layer. The first modem corresponds to the second circuit board. The first operating system obtains the second USID according to the first MIPI interface address, including: the first operating system obtains the second USID from the first modem through the wireless interface layer according to the first MIPI interface. In this way, the first operating system implements information interaction with the first modem through the wireless interface layer, and then obtains the second USID from the first modem.
[0013] Optionally, obtaining the second USID from the first modem according to the first MIPI interface includes: the first operating system sends a first command to the first modem through the wireless interface layer. The first command includes the first MIPI interface, and the first command is used to instruct the first modem to obtain the second USID. In the above scheme, the first operating system sends the first command to the first modem through the wireless interface layer. In this way, after receiving the first command, the first modem can obtain the second USID corresponding to the first MIPI interface address on the current first circuit board.
[0014] Optionally, after sending the first command to the first modem, the method further includes: after receiving the first command, the first modem parses the first command to obtain the second USID. The first modem sends the second USID to the wireless interface layer, thereby enabling the first control interface layer to obtain the second USID value.
[0015] Optionally, the memory includes a first register corresponding to the first address. After the first modem sends the second USID to the wireless interface layer, the method further includes: the wireless interface layer receives the second USID and stores the second USID in the first register. The obtaining of the second USID from the first modem according to the first MIPI interface address also includes: the first operating system obtains the second USID from the first register according to the first address. In the above scheme, the first control interface layer stores the received second USID in the first register. In this way, the first operating system can obtain the second USID from the first register.
[0016] Optionally, before obtaining the second USID from the first register, the method further includes: the first operating system sends the second command to the wireless interface layer. The second command is used to obtain the first address. After receiving the second command, the wireless interface layer sends the first address to the first operating system. In the above scheme, the first operating system obtains the second address corresponding to the first register by sending the second command to the wireless interface layer. In this way, the first operating system can obtain the second USID stored in the first register according to the second address.
[0017] Optionally, after the first operating system determines whether the first identifier is consistent with the second identifier, the method further includes:
[0018] The first operating system determines a matching identifier based on the first identifier and the second identifier. The matching identifier is used to indicate whether the second circuit board is the target circuit board, and the matching identifier includes a first value or a second value. The first value corresponds to the second circuit board being the target circuit board, and the second value corresponds to the second circuit board not being the target circuit board. In the above scheme, the first operating system indicates whether the second circuit board is the target circuit board by the value corresponding to the matching identifier. This facilitates the storage and acquisition of the detection results.
[0019] Optionally, the method further includes: the first operating system creates a first storage node in the memory. The first storage node is used to store the matching identifier, and the name of the first storage node is a first name. In this way, the first operation can obtain the matching identifier from the first storage node, that is, obtain the detection result of whether the second circuit board is the target circuit board.
[0020] Optionally, the electronic device includes a first display unit, and the method further includes: the first display unit displays prompt information. The prompt information includes first prompt information, second prompt information, or third prompt information. The first prompt information is used to indicate that the second circuit board is the target circuit board, the second prompt information is used to indicate that the second circuit board is not the target circuit board, and the third prompt information is used to indicate that the creation of the first storage node fails. In this way, it can be determined whether the second circuit board is the target circuit board based on the prompt information on the first display unit.
[0021] Optionally, the electronic device is connected to a second display unit, and the method further includes: the second display unit displays a prompt message. The prompt message includes a first prompt message, a second prompt message, or a third prompt message. The first prompt message is used to indicate that the second circuit board is the target circuit board, the second prompt message is used to indicate that the second circuit board is not the target circuit board, and the third prompt message is used to indicate that the creation of the first storage node fails. In this way, it can be determined whether the second circuit board is the target circuit board based on the prompt message on the second display unit.
[0022] Optionally, the first display unit is installed with a first application, and the first application includes a first control interface. Before the first display unit displays the prompt information, the method further includes: when the first operating system detects the first operation, it obtains the matching identifier from the first storage node through the first control interface. Wherein, the first operation corresponds to clicking on the first application. In the above scheme, when the first operating system detects the operation of clicking on the first application, it executes the operation of reading the matching identifier from the first storage node. Thereby, the first operating system obtains the matching identifier.
[0023] Optionally, the first display unit is further configured with a first display screen, the first display screen is connected to the first circuit board, and the first display unit displays the prompt information including: the first operating system displays the prompt information on the first display screen. In this way, the inspection personnel can determine whether the second circuit board is the target circuit board according to the prompt information displayed on the first display screen.
[0024] Optionally, before the second display unit displays the prompt information, the method further includes: the first operating system obtains a matching identifier from the first storage node. The first operating system sends the first prompt information to the second display unit based on the matching identifier including the first value. Or the first operating system sends the second prompt information to the second display unit based on the matching identifier including the second value. Or when the first storage node does not exist, the first operating system sends the third prompt information to the second display unit. In this way, the inspection personnel can obtain the prompt information through the second display unit to determine whether the second circuit board is the inspection result of the target circuit board.
[0025] Optionally, the second display unit includes a universal serial bus USB driver, and the USB driver is used to provide a first USB interface. Before the first operating system obtains the matching identifier from the first storage node, the method also includes: the second display unit sends a third command to the first mainboard through the first USB interface. The third command is used to obtain the prompt information. In the above scheme, the second display unit sends the third command to the first mainboard, so that the second display unit can obtain the prompt information from the first mainboard.
[0026] Optionally, the first operating system obtains the matching identifier from the first storage node, including: when the first operating system receives the third command, indexing the first storage node according to the first name, and obtaining the matching identifier from the first storage node. In the above solution, when the first operating system receives the third command, it indexes the first storage node according to the first name, and then reads the matching identifier from the first storage node.
[0027] In a second aspect, an electronic device includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions. The electronic device also includes a first circuit and a second circuit board, the first circuit board is connected to the second circuit board, and the electronic device is used to detect the second circuit board. When the one or more processors execute the computer instructions, the electronic device executes any circuit board detection method in the first aspect and its optional designs.
[0028] Optionally, the electronic device further comprises a first display unit, the first display unit is further configured with a first display screen, the first display screen is connected to the first circuit board, and the first display screen is used to display prompt information. The prompt information is used to indicate whether the second circuit board is the target circuit board.
[0029] Optionally, the electronic device is connected to a second display unit, and the second display unit is used to display prompt information. The prompt information is used to indicate whether the second circuit board is the target circuit board.
[0030] The electronic device is connected to a second display unit, and the second display unit is used to display prompt information; the prompt information is used to indicate whether the second circuit board is a target circuit board.
[0031] In a third aspect, a chip system includes a processor and a communication interface. The processor is used to call and run a computer program stored in a storage medium to execute any circuit board detection method in the first aspect and its optional designs.
[0032] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes computer instructions. When the computer instructions are executed, any circuit board detection method as in the first aspect and any optional design thereof is executed.
[0033] In a fifth aspect, a computer program product is provided, wherein the computer program includes instructions, and when a computer runs the instructions, the circuit board detection method of any one of the first aspect and its optional designs is executed.
[0034] It can be understood that the technical solutions provided in the second to fifth aspects above can respectively correspond to the circuit board detection methods provided in the aforementioned designs, and the beneficial effects that can be obtained are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the composition of an electronic device;
[0036] Figure 2 A schematic diagram of the composition of another electronic device;
[0037] Figure 3 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application, which is equipped with a first main board and a third small board;
[0038] Figure 4 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of a circuit board detection method provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of a flow chart of another circuit board detection method provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of a flow chart of another circuit board detection method provided in an embodiment of the present application;
[0042] Figure 8 A schematic diagram of a flow chart of another circuit board detection method provided in an embodiment of the present application;
[0043] Fig. 9 A schematic diagram of a display unit interface provided by an embodiment of the present application;
[0044] Fig.10 A schematic diagram of another display unit interface provided by an embodiment of the present application;
[0045] Fig.11 A schematic diagram of another circuit board detection method provided in an embodiment of the present application;
[0046] Fig.12 A schematic diagram of another electronic device interface provided by an embodiment of the present application;
[0047] Fig.13 A schematic diagram of another electronic device interface provided by an embodiment of the present application;
[0048] Fig.14 A schematic diagram of another electronic device interface provided by an embodiment of the present application;
[0049] Fig.15 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0050] Fig.16 A schematic diagram of the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] Circuit boards are important components of electronic devices. Circuit boards on electronic devices can include a main board and a sub-board, which are electrically connected. The main board can be used to connect and manage various hardware components on the electronic device (such as the central processing unit, memory, chipset, etc.). The sub-board includes a circuit board corresponding to the bottom antenna, which can be used to transmit and receive electromagnetic wave signals.
[0052] In some implementations, the main board can be connected to at least one small board and assembled into different electronic devices.
[0053] For example, Figure 1 and Figure 2As shown, the first device includes a first main board and a first sub-board, and the second device includes a first main board and a second sub-board. The BOMs corresponding to the first sub-board and the second sub-board are different. For example, the device models used are different, or the same device is located in different positions on the printed circuit board, etc.
[0054] It is understandable that before the electronic device is assembled, the main board and the small board are separated and need to be manually connected. When the first main board is connected to the current small board, since the small boards corresponding to the first device and the second device are different, it is also necessary to determine whether the current small board is the target small board. The small board connected to the current first main board is referred to as the third small board.
[0055] In some implementations, based on the difference in BOM between the first sub-board and the second sub-board, human visual observation is used to identify the current sub-board as the first sub-board or the second sub-board, thereby determining whether the third sub-board is the target sub-board.
[0056] It is understandable that the BOM difference between the first sub-board and the second sub-board is often easy to be mistaken or difficult to be distinguished by human eyes, which results in the first main board and the second sub-board being connected together when assembling the first device, or the first main board and the first sub-board being connected together when assembling the second device.
[0057] The embodiment of the present application provides a circuit board detection method, each small board corresponds to a different identifier, and the electronic device determines whether the third small board is a target small board according to whether the second identifier corresponding to the third small board is consistent with the first identifier corresponding to the target small board. After determining the detection result of whether the third small board is the target small board, the detection result can be displayed by a display unit. In this way, the problem of low efficiency in the manual detection method can be avoided, and the accuracy and detection efficiency of the detection result can be improved.
[0058] In some other embodiments of the present application, the first main board may also be called the first circuit board, the third small board may also be called the second circuit board, and the target small board may also be called the target circuit board.
[0059] The technical solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0060] It should be noted that the solution provided in the embodiments of the present application can be applied in electronic devices.
[0061] The electronic device in the embodiment of the present application includes a first main board. The first main board is used to determine whether the third small board is a target small board. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.
[0062] As an implementation, the electronic device may have Figure 3The structure of the electronic device 400 shown is equipped with a first main board and a third small board.
[0063] like Figure 3 As shown, the electronic device 400 equipped with the first main board and the third sub-board may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera module 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. The sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0064] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 400 equipped with the first main board and the third sub-board. In other embodiments of the present application, the electronic device 400 equipped with the first main board and the third sub-board may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0065] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0066] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0067] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 410. If the processor 410 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0068] In some embodiments, the processor 410 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. The processor 410 may be connected to a touch sensor, an audio module, a wireless communication module, a display, a camera, and other modules through at least one of the above interfaces.
[0069] In some embodiments, the processor 410 may include a modem. The modem may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 470A, a receiver 470B, etc.), or displays an image or video through a display screen 494. In some embodiments, the modem may be an independent device. In other embodiments, the modem may be independent of the processor 410 and be set in the same device as the mobile communication module 450 or other functional modules.
[0070] The USB interface 430 is an interface that complies with the USB standard specification and can be used to connect the electronic device 400 equipped with the first main board and the third sub-board and peripheral devices. The USB interface 430 can be used to connect a charger to enable the charger to charge the electronic device 400 equipped with the first main board and the third sub-board, and can also be used to connect other electronic devices to enable data transmission between the electronic device 400 equipped with the first main board and the third sub-board and other electronic devices. It can also be used to connect headphones to output audio stored in the electronic device through the headphones. In some embodiments, the standard specifications of the universal serial bus can be USB1.x, USB2.0, USB3.x and USB4.
[0071] The electronic device 400 equipped with the first main board and the third sub-board can realize the display function through the GPU, the display screen 494, and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 may include one or more GPUs, which execute program instructions to generate or change display information.
[0072] The display screen 494 is used to display images, videos, etc. The display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 400 equipped with the first main board and the third sub-board may include one or more display screens 494.
[0073] The internal memory 421 can be used to store computer executable program codes, which include instructions. The internal memory 421 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data (such as audio data, a phone book, etc.) created during the use of the electronic device 400 equipped with the first mainboard and the third sub-board. In addition, the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 410 executes various functional methods or data processing of the electronic device 400 equipped with the first mainboard and the third sub-board by running instructions stored in the internal memory 421, and / or instructions stored in a memory provided in the processor.
[0074] It should be noted that the above Figure 3 The composition of the electronic device equipped with the first main board and the third sub-board is only an example and does not constitute a limitation on the electronic device involved in the technical solution provided in the embodiment of the present application. The embodiment of the present application does not limit the specific composition of the electronic device.
[0075] From the perspective of software composition, an operating system may be run in the electronic device involved in the embodiment of the present application. The operating system includes a first operating system, which runs on Figure 3 In the processor 410 shown. That is, the first operating system can run on the first motherboard. The first operating system can have a layered architecture. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces.
[0076] For example, Figure 4 FIG. 1 shows a schematic diagram of the composition of an electronic device. Figure 4 As shown, the first operating system in the electronic device may have a layered architecture, which includes, from top to bottom, an application layer, an application framework layer, an Android runtime (ART) and a system library, a hardware abstraction layer (HAL) and a kernel layer.
[0077] The application layer can include a series of application packages.
[0078] like Figure 4 As shown, the application layer may include applications such as music, video, call, ringtone, alarm, Bluetooth, navigation, settings, gallery, etc.
[0079] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0080] like Figure 4 As shown, the application framework layer may include a window manager, an activity manager, an input manager, a resource manager, a notification manager, a view system, and the like.
[0081] The window manager provides window management services (WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
[0082] The Activity Manager can provide Activity Manager Service (AMS), which can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers) as well as manage and schedule application processes.
[0083] The input manager can provide input management services (IMS), which can be used to manage system input, such as touch screen input, key input, sensor input, etc. IMS takes events from input device nodes and distributes them to appropriate windows through interaction with WMS.
[0084] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0085] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the electronic device vibrates, the indicator light flashes, etc.
[0086] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0087] The Android runtime is responsible for converting source code into machine code. The Android runtime mainly uses ahead-of-time (AOT) compilation technology and just-in-time (JIT) compilation technology.
[0088] The Android runtime also includes core libraries. The core libraries are mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc. The core libraries provide APIs for users to develop Android applications.
[0089] The system library can include multiple functional modules, such as surface manager, media library, and media framework.
[0090] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0091] In some implementations, the system library may further include a wireless interface layer, wherein the wireless interface layer may be used to implement data transmission between the application processor and the communication processor.
[0092] The hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer. The hardware abstraction layer includes at least a display module and an audio module.
[0093] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers and audio drivers.
[0094] In some other embodiments of the present application, the electronic device may be configured as follows: Figure 4 The hardware layer is provided under the kernel layer shown. The hardware layer includes at least a first modem and a memory. The first modem can realize mutual conversion between analog signals and digital signals. The first modem can be used to transmit data with the wireless interface layer in the system library. The memory includes a first storage node, which is used to store the detection result of whether the third small board is the target small board. The hardware layer can be Figure 4 The detection result is determined by interacting between the software architecture layers in the system.
[0095] The method provided in this application is described in detail below with reference to the accompanying drawings.
[0096] Exemplary, reference Figure 5Taking the first small board as the target small board as an example, the first identifier may include a first user service identification code (USID), and the second identifier may include a second USID. The first operating system running on the first main board may determine whether the third small board is the target small board based on whether the first USID corresponding to the target small board is consistent with the second USID corresponding to the third small board.
[0097] like Figure 5 As shown, the program includes:
[0098] S501. When the first mainboard is turned on, the first operating system is started.
[0099] It should be noted that the determination of whether the third board is the target board is completed by the first operating system running on the first main board. Therefore, when starting to detect whether the third board is the target board, the first main board needs to be powered on so that the first operating system stored on the first main board starts to start, which is convenient for executing subsequent processing.
[0100] In some implementations, the first mainboard is connected to a first display screen. When the first display screen displays a startup screen, the first mainboard is booting up and starting the first operating system.
[0101] S502: The first operating system parses the device tree source file to obtain a first USID and a first MIPI interface address.
[0102] It should be noted that the electronic device also includes a MIPI module. In some implementations, the MIPI module can be configured on the first main board and / or the third small board. In other implementations, the MIPI module can be independent of the first main board and the third small board and configured separately in the electronic device. The MIPI module includes at least one MIPI interface. Among them, the at least one MIPI interface includes a first MIPI interface, and the first MIPI interface is preset with a first MIPI interface address. The first MIPI interface can be connected to device A, and device A is configured on the third small board. The first MIPI interface can be used to implement control of the working mode of device A.
[0103] Exemplarily, a device tree source file is preset in the electronic device, and the device tree source file is used to describe information of hardware components in the electronic device. The device tree source file includes a first USID and a first MIPI interface address, the first USID is used to identify the target board, and the first USID corresponds to the first MIPI interface address.
[0104] It is understandable that the first operating system includes a kernel, and the kernel is used for process management, memory management, device management, file management, network management, etc. The process of starting the first operating system includes starting the kernel.
[0105] In some embodiments, the first operating system may parse the device tree source file through the kernel during the kernel startup phase to obtain the first USID and the first MIPI interface address corresponding to the first small board.
[0106] It should be noted that before performing S502, S503 may be performed to configure the first USID and the first MIPI interface in the device tree source file, so that the first operating system can obtain the first USID and the first MIPI interface address from the device tree source file for subsequent processing.
[0107] S503. The first USID and the first MIPI interface address corresponding to the first small board are configured in the device tree source file.
[0108] Exemplarily, the first USID corresponding to the first small board and the first MIPI interface address can be configured in the first device node in the device tree source file. The device tree source file can be stored in the memory. In this way, when the first operating system executes the operation of S502, it can obtain the device tree source file from the memory, and parse the first device node in the device tree source file through the kernel to obtain the first USID corresponding to the first small board and the first MIPI interface address.
[0109] In the descriptions of S502 and S503, the device tree source file is used as an example. In other embodiments of the present application, other forms of text files can also be used to describe the first USID and the first MIPI interface address corresponding to the first small board, so as to facilitate reading the first USID and the first MIPI interface address from the text file in subsequent use.
[0110] In an embodiment of the present application, before determining whether the third small board is the target small board, the first operating system can first execute the operation of S504 to obtain the second USID corresponding to the first MIPI interface on the third small board, and then compare the second USID with the first USID obtained in S502 to determine whether the third small board is the target small board.
[0111] S504. The first operating system determines the second USID of the third small board according to the first MIPI interface address.
[0112] Exemplarily, the first MIPI interface address may be parsed by the first operating system from the device tree source file in S503. In other implementations, the first MIPI interface address may also be directly written into the first program of the first operating system. Thus, when the first MIPI interface address is subsequently needed, the first operating system may obtain the first MIPI interface address from the first program.
[0113] After obtaining the first MIPI interface address, the first operating system can determine the second USID corresponding to the third small board according to the first MIPI interface address.
[0114] In the specific implementation of the embodiment of the present application, combined with Figure 3 The function of the first operating system is implemented on the application processor, and the function of the third board is implemented on the first modem. The second USID corresponding to the first MIPI interface on the third board can be obtained from the first modem. Therefore, when the first operating system obtains the second USID, it also needs to exchange information with the first modem corresponding to the third board.
[0115] Exemplary, reference Figure 6 As shown, the first operating system can be Figure 4 The information interaction between the wireless interface layer in the hardware layer and the first modem in the hardware layer enables the first operating system to obtain the second USID corresponding to the first MIPI interface address on the third small board.
[0116] like Figure 6 As shown, the program includes:
[0117] S601: A first operating system sends a first AT command to a first modem through a wireless interface layer.
[0118] In this example, the startup process of the first operating system also includes the startup of the wireless interface layer. After the wireless interface layer is fully started, the first operating system can send a first attention (AT) command to the first modem through the wireless interface layer. Among them, the parameters of the first AT command include the first MIPI interface address. The first AT command is used to obtain the second USID corresponding to the first MIPI interface on the third sub-board. In some other embodiments of the present application, the first AT command can also be referred to as the first command.
[0119] It can be understood that the first AT command is a command that can be parsed and executed by the first modem.
[0120] S602: The first modem parses the first AT command to obtain a second USID.
[0121] Exemplarily, after receiving the first AT command, the first modem parses the first AT command to obtain the first MIPI interface address. The first modem obtains the second USID corresponding to the first MIPI interface address on the third small board according to the first MIPI interface address.
[0122] In this example, after the first modem obtains the second USID, it may perform the operation of S603 to send the second USID to the radio interface layer.
[0123] S603: The first modem sends the second USID to the radio interface layer.
[0124] In this example, after completing the operation of S602, the first modem sends the acquired second USID as a response to the first AT command to the wireless interface layer. After receiving the second USID, the wireless interface layer performs the operation of S604.
[0125] S604: The wireless interface layer configures the second USID into the first register.
[0126] Exemplarily, after receiving the second USID, the wireless interface layer may configure the USID into a first register, wherein the first register is a register inside the application processor, and the first register corresponds to the first address, and the first operating system may read data from the first register.
[0127] As an implementation manner, the wireless interface layer may configure the second USID into the first register through an input / output control (IOCTL) interface.
[0128] S605: The first operating system sends a first instruction to the wireless interface layer.
[0129] Exemplarily, the first system may send a first instruction to the wireless interface layer through the kernel after the kernel completes startup. The first instruction is used to obtain the first address corresponding to the first register in S604. In other embodiments of the present application, the first instruction may also be referred to as a second command.
[0130] S606. The wireless interface layer returns a first address corresponding to the first register to the first operating system.
[0131] Exemplarily, after receiving the first instruction in S605, the wireless interface layer sends the first address corresponding to the first register to the first operating system.
[0132] S607: Read the second USID according to the first address corresponding to the first register.
[0133] Exemplarily, after receiving the first address corresponding to the first register sent by the wireless interface layer, the first operating system reads the second USID stored in the first register according to the first address.
[0134] It should be noted that, in the embodiment of the present application, during the process of the first mainboard booting up the first operating system, the time when the wireless interface layer completes the booting is earlier than the time when the kernel completes the booting. Therefore, before the first operating system executes the operation of S605, the wireless interface layer has already configured the second USID into the first register.
[0135] In the above example, the second USID is configured in the first register as an example. In other embodiments of the present application, the wireless interface layer may store the received second USID in the memory. The first operating system may obtain the second USID from the memory.
[0136] Thus, by Figure 6 According to the method shown, the first operating system can obtain the second USID corresponding to the first MIPI interface on the third small board through the kernel. After the first operating system obtains the second USID, it continues to perform subsequent processing to determine whether the third small board is the detection result of the target small board.
[0137] S505: The first operating system determines a matching identifier according to the second USID and the first USID.
[0138] Exemplarily, the first operating system compares the read second USID corresponding to the third small board with the first USID in the device tree source file, and determines whether the third small board is the target small board based on whether the second USID is consistent with the first USID.
[0139] In some embodiments, the first operating system can indicate whether the third small board is the target small board by setting the value of the matching identifier. The value of the matching identifier includes a first value or a second value. Among them, the first value corresponds to the second USID being consistent with the first USID, which indicates that the third small board is the target small board. The second value corresponds to the second USID being inconsistent with the first USID, which indicates that the third small board is not the target small board.
[0140] Exemplarily, the first operating system may set the matching flag to the first value based on the consistency between the second USID and the first USID to indicate that the third small board is the target small board. In some implementations, the first value may be "1".
[0141] In some other implementations, the first operating system may set the matching flag to a second value to indicate that the third board is not the target board according to the inconsistency between the second USID and the first USID. In some implementations, the second value may be "0".
[0142] As an implementation manner, after setting the value of the matching identifier to the first value and / or the second value, the first operating system may continue to perform the operation of S507.
[0143] In this embodiment, before performing the operation of S507, the first operating system may first perform the operation of S506 to create a first storage node in the memory to store the detection result of whether the third small board is the target small board.
[0144] S506: The first operating system creates a first storage node.
[0145] Exemplarily, the first storage node is used to store the detection result of whether the third small board is the target small board. The data in the first storage node is stored in the memory. When the first operating system creates the first storage node, it can name the first storage node as the first name. In this way, when it is necessary to read the data in the first storage node later, the first storage node can be indexed according to the first name.
[0146] As an implementation, the first operating system may create the first storage node before the operation of S505. For example, when the first mainboard starts to boot up, the first operating system executes the operation of S506 to create the first storage node.
[0147] As another implementation manner, the first operating system may create the first storage node after executing the operation of S505.
[0148] In some embodiments, after completing the creation of the first storage node, the first operating system may execute the operation of S507 to store the matching identifier in S505 in the first storage node.
[0149] S507: The first operating system stores the matching identifier in the first storage node.
[0150] In some implementations, the first operating system may store the first value in a first storage node to facilitate subsequent reading of a detection result that the third sub-board is a target sub-board from the first storage node.
[0151] In some other implementations, the first operating system may store the second value in the first storage node to facilitate subsequent reading of the detection result that the third board is not the target board from the first storage node.
[0152] In some other embodiments of the present application, after executing the operation of S505, the first operating system may store the value corresponding to the matching identifier at the third address of the memory, so as to obtain the value corresponding to the matching identifier from the third address of the memory in subsequent processing.
[0153] For example, the first operating system may store the first value of the matching identifier in the third address of the memory, so as to facilitate the subsequent reading of the detection result that the third small board is the target small board from the third address of the memory.
[0154] For another example, the first operating system may store the second value of the matching identifier in the third address of the memory, so as to facilitate the subsequent reading of the detection result that the third small board is not the target small board from the third address of the memory.
[0155] In an embodiment of the present application, through the operations of S501 to S507, the first operating system obtains the first USID and the first MIPI interface address from the first device node of the device tree source file, and obtains the second USID from the first modem corresponding to the third small board according to the first MIPI interface address. The first operating system determines the value of the matching identifier based on whether the first USID is consistent with the second USID to indicate whether the third small board is the target small board, and saves the value of the matching identifier in the memory. Thereby completing the determination of the detection result of whether the third small board is the target small board.
[0156] In other embodiments of the present application, reference Figure 7 , taking the detection result stored in the first storage node as an example. After the electronic device completes the determination of the detection result of whether the third small board is the target small board, the display unit can obtain the detection result indicated by the matching identifier in the first storage node and display the detection result. Among them, the display unit may include display unit A or display unit B. Display unit A is connected to the electronic device, and display unit B is configured in the electronic device. In other embodiments of the present application, display unit A can also be referred to as a second display unit, and display unit B can also be referred to as a first display unit.
[0157] The following describes in detail the implementation manner in which the display unit A obtains the detection result and displays the detection result in conjunction with the accompanying drawings.
[0158] Exemplarily, when the first mainboard completes booting, the first operating system running on the first mainboard can read the matching identifier from the first storage node. The first operating system sends corresponding prompt information to the display unit A according to whether the matching identifier read from the first storage node includes the first value or the second value. After receiving the prompt information, the display unit A displays the prompt information. Among them, the prompt information includes the first prompt information, or the second prompt information. The first prompt information is used to indicate that the third small board is the target small board, and the second prompt information is used to indicate that the third small board is not the target small board.
[0159] It is understandable that in some specific implementations, when the first operating system executes the operation of obtaining the matching identifier from the first storage node, it also needs to retrieve the first storage node. In the case where the first storage node fails to be created, the first operating system cannot retrieve the first storage node, that is, the first storage node does not exist, resulting in the first operating system failing to obtain the matching identifier.
[0160] Therefore, in some other implementations of the present application, the prompt information may further include third prompt information, and the third prompt information is used to indicate that the creation of the first storage node fails. The first operating system sends the third prompt information to the display unit A when the first storage node does not exist.
[0161] As a way to achieve this, refer to Figure 8 , the display unit A includes a USB driver. When the display unit A is connected to the first motherboard via a USB data cable and the first motherboard is normally powered on, the display unit A can identify, manage and control the first motherboard through the USB driver. Then the display unit A and the first motherboard can exchange information through the USB driver, and perform the following steps: Figure 8 Processing shown.
[0162] Understandably, in the Figure 8 During the operation shown, the display unit A is connected to the first mainboard via a USB data cable, and the first mainboard is in a normal boot state.
[0163] like Figure 8 As shown, the program includes:
[0164] S801. Display unit A sends a second AT command to the first mainboard.
[0165] Exemplarily, after the display unit A is connected to the first mainboard via a USB data cable, the USB driver provides a first USB interface. The display unit A can send a second AT command to the first mainboard via the first USB interface. The second AT command is used to obtain prompt information. In other embodiments of the present application, the second AT command can also be referred to as a third command.
[0166] As an implementation method, application A is installed on display unit A. Application A can enable display unit A to send a second AT command to the first mainboard through the first USB interface. The second AT command can be displayed on the user interface corresponding to application A. Display unit A can send the second AT command to the first mainboard through application A under the instruction of the tester.
[0167] For example, refer to Fig. 9 When the display unit A detects that the tester double-clicks the icon corresponding to the application A, the application A is run and the following display is displayed: Fig. 9 The first interface shown. When the tester needs to set the interface number, he can click the first control on the first interface. Correspondingly, when the display unit A detects that the tester clicks the first control, it can set the interface number to the first USB interface. In this way, the display unit A can send the second AT command to the first mainboard to which the display unit A is connected through the first USB interface.
[0168] The first interface further includes a first area, and the first area is used to display unit A sending a second AT command.
[0169] Specifically, the display unit A can input the second AT command in the first area under the instruction of the tester. When the display unit A detects that the tester clicks the second control on the first interface, the second AT command input in the first area can be sent to the first mainboard connected to the display unit A through the first USB interface.
[0170] In this embodiment, after receiving the second AT command, the first operating system running on the first mainboard starts to execute the following processing:
[0171] S802: When receiving the second AT command, index the first storage node.
[0172] It is understandable that before obtaining the matching identifier stored in the first storage node, the first operating system needs to first index the first storage node.
[0173] In combination with the above description, the first operating system names the first storage node as the first name. After the first mainboard receives the second AT command sent by the display unit A, the first operating system can index the first storage node according to the first name.
[0174] S803: Determine whether the first storage node is indexed.
[0175] In some implementations of the present application, if the creation of the first storage node fails, the first operating system may fail to index the first storage node. Therefore, the first operating system also needs to determine whether to index the first storage node.
[0176] As an implementation manner, when the first operating system indexes the first storage node, it continues to perform the operation of S804.
[0177] As another implementation, when the first operating system cannot find the first storage node, it indicates that the first storage node does not exist. The first operating system may perform the operation of S808.
[0178] S804: Read the matching identifier stored in the first storage node.
[0179] Exemplarily, after indexing the first storage node, the first operating system starts to read the matching identifier stored in the first storage node. After completing reading the matching identifier stored in the first storage node, the first operating system may continue with subsequent processing.
[0180] As an implementation manner, after the first operating system finishes reading the matching identifier stored in the first storage node, the matching identifier can be sent to the display unit A. The display unit A displays the matching identifier.
[0181] As another implementation, after completing the operation of S804, the first operating system can judge the read matching identifier. The first operating system generates corresponding prompt information according to whether the read matching identifier includes the first value or the second value, and sends it to the display unit A. The display unit A displays the prompt information. The specific operations are as follows:
[0182] S805: Determine whether the matching identifier includes the first value.
[0183] In some implementations, when the first operating system determines that the read matching identifier includes the first value, the first operating system continues to perform the operation of S806.
[0184] In some other implementations, when the first operating system determines that the read matching identifier does not include the first value, it continues to perform the operation of S807.
[0185] It should be noted that in the description of S805, the first operating system is used as an example to determine whether the matching identifier includes the first value. In combination with the above description, the first matching identifier includes the first value or the second value. Therefore, in other embodiments of the present application, the first operating system can also send corresponding prompt information to the display unit A according to whether the matching identifier includes the second value.
[0186] S806: Send first prompt information to display unit A.
[0187] Exemplarily, when the first operating system determines that the read matching identifier includes the first value, the first operating system sends the first prompt information to the display unit A.
[0188] For example, when the first operating system executes the operation of S804 and determines that the read matching identifier includes the first value, the first prompt information is sent to the display unit A through the first USB interface. The first prompt information may include the first value of the matching identifier. The first value corresponds to the third small board being the target small board.
[0189] S807: Send second prompt information to display unit A.
[0190] Exemplarily, when the first operating system executes the operation of S805 and determines that the read matching identifier does not include the first value, that is, when the matching identifier includes the second value, the second prompt information is sent to the display unit A.
[0191] For example, when the first operating system determines that the read matching identifier does not include the first value, the first operating system sends a second prompt message to the display unit A through the first USB interface. The second prompt message may include the second value of the matching identifier. The second value corresponds to that the third small board is not the target small board.
[0192] S808: Send third prompt information to display unit A.
[0193] Exemplarily, when the first operating system executes the operation of S802 and fails to index the first storage node, the first operating system sends the third prompt information to the display unit A.
[0194] For example, when the first operating system cannot index the first storage node, it sends third prompt information to the display unit A through the first USB interface. The third prompt information is used to indicate that the creation of the first storage node fails.
[0195] In the above example, after receiving the second AT command sent by the display unit A, the first operating system reads the matching identifier from the first storage node through the operations of S802 to S808. The first operating system returns the corresponding prompt information to the display unit A through the first USB interface according to whether the matching identifier includes the first value or the second value. After receiving the prompt information, the display unit A can continue to perform the processing of S809 to S811 to display the prompt information.
[0196] In some implementations, reference Fig. 9 The first interface corresponding to application A also includes a second area, and the second area is used to display the prompt information received by display unit A. After receiving the prompt information returned by the first operation, display unit A can display the prompt information on the second area of the first interface.
[0197] S809: Display unit A displays the first prompt information.
[0198] Exemplarily, after the display unit A receives the first prompt information sent by the first operating system, Fig. 9 The second area in the image can display the first prompt information.
[0199] For example, taking the first prompt information including "PASS" as an example, Fig.10 As shown, after the display unit A receives the first prompt information, the application A can respond as follows Fig.10 The second interface shown in FIG. 1 is a second interface. A first prompt message is correspondingly displayed on the second area of the second interface to indicate that the third small board is the target small board. In this way, the user can determine that the third small board is the target small board according to the first value of the matching identifier, which is convenient for subsequent testing and processing.
[0200] S810. Display unit A displays second prompt information.
[0201] Exemplarily, after the display unit A receives the second prompt information sent by the first operating system, Fig. 9 The second area in the second prompt information may display the second prompt information. For example, the first prompt information may include "FAIL". In this way, the user can determine that the third small board is not the target small board according to the second prompt information, which is convenient for subsequent processing.
[0202] S811. Display unit A displays third prompt information.
[0203] Exemplarily, after the display unit A receives the third prompt information sent by the first operating system, Fig. 9 The second area in the third prompt information may display the third prompt information. For example, the third prompt information may include "ERROR". In this way, the user can determine that the creation of the first storage node fails according to the third prompt information, which is convenient for subsequent debugging.
[0204] exist Figure 8 In the example, when the display unit A is physically connected to the first motherboard through the USB matching identification line and the first motherboard is powered on, the display unit A sends a second AT command to the first motherboard through the first USB interface provided by the USB driver in the display unit A. After receiving the second AT command sent by the display unit A, the first operating system in the first motherboard Figure 8 The solution in the embodiment returns corresponding prompt information to the display unit A. After receiving the prompt information, the display unit A displays the prompt information to indicate the detection result of whether the third small plate is the target small plate.
[0205] The above example is only one possible implementation method. The display unit A needs to be connected to the first mainboard via a USB data cable to implement information interaction between the first mainboard and the display unit A. Then, the display unit A obtains the prompt information sent by the first mainboard and displays the prompt information. In some implementations, the display unit A can be an assembly device, which is connected to the first mainboard to perform the above example.
[0206] In some other embodiments of the present application, the display of the detection result can also be realized by a display unit B, and the display unit B includes a first mainboard and a first display screen. The first mainboard obtains the detection result through the first control interface. Figure 5 The detection result in the display unit B is displayed, and corresponding prompt information is displayed on the first display screen to indicate whether the third small board is the detection result of the target small board. In other words, the function corresponding to the display unit B can be implemented by the first main board and the first display screen.
[0207] Exemplary, reference Fig.11, the first mainboard is connected to a first display screen, and the first display screen displays application B installed on the first mainboard. The application B includes a first control interface. When the first operating system detects an operation of clicking on the application B, it can read the matching identifier in the first storage node through the first control interface. And according to whether the read matching identifier includes the first value or the second value, the corresponding prompt information is displayed on the first display screen. In other embodiments of the present application, application B can also be called the first application.
[0208] In combination with the above description, the prompt information includes one of the first prompt information, the second prompt information, and the third prompt information. The first prompt information is used to indicate that the third small board is the target small board, the second prompt information is used to indicate that the third small board is not the target small board, and the third prompt information is used to indicate that the creation of the first storage node fails.
[0209] like Fig.11 As shown, the program includes:
[0210] S1101. Input a first operation.
[0211] Exemplarily, the first operation corresponds to clicking on application B, so that the first operating system starts executing subsequent processing through the first control interface.
[0212] For example, refer to Fig.11 , the tester can input the first operation by clicking the icon 101 on the first display screen.
[0213] In this embodiment, when the first operation is detected, the first operating system starts to execute the following processing:
[0214] S1102: When a first operation is detected, index a first storage node.
[0215] It is understandable that before obtaining the matching identifier stored in the first storage node, the first operating system needs to first index the first storage node.
[0216] In combination with the above description, the first operating system names the first storage node as a first name. When detecting the operation of clicking on application B, the first operating system can index the first storage node according to the first name.
[0217] S1103: Determine whether the first storage node is indexed.
[0218] Combination Figure 8 As explained above, if the creation of the first storage node fails, the first operating system will not be able to index the first storage node. Therefore, the first operating system also needs to determine whether to index the first storage node.
[0219] As an implementation manner, when the first operating system indexes the first storage node, it continues to perform the operation of S1104.
[0220] As another implementation, when the first operating system cannot find the first storage node, it indicates that the first storage node does not exist. The first operating system may perform the operation of S1108.
[0221] S1104. Read the matching identifier stored in the first storage node.
[0222] Exemplarily, after indexing the first storage node, the first operating system starts to read the matching identifier stored in the first storage node.
[0223] As an implementation manner, after the first operating system finishes reading the matching identifier stored in the first storage node, the matching identifier may be directly displayed on the first display screen.
[0224] As another implementation, after completing the operation of S1104, the first operating system can judge the read matching identifier to the matching identifier. The first operating system generates corresponding prompt information according to whether the read matching identifier includes the first value or the second value, and displays the prompt information on the first display screen. The specific operation is as follows:
[0225] S1105: Determine whether the matching identifier includes the first value.
[0226] In some implementations, when the first operating system determines that the read matching identifier includes the first value, it continues to perform the operation of S1106.
[0227] In some other implementations, when the first operating system determines that the read matching identifier does not include the first value, it continues to perform the operation of S1107.
[0228] It should be noted that in the description of S1105, the first operating system is used as an example to determine whether the matching identifier includes the first value. In other embodiments of the present application, the first operating system can determine whether the matching identifier includes the second value. The first operating system displays corresponding prompt information on the first display screen according to whether the matching identifier includes the second value.
[0229] S1106: Display a first prompt message on a first display screen.
[0230] Exemplarily, when the first operating system determines that the read matching identifier includes a first value, the first operating system displays a first prompt message on a first display screen connected to the first mainboard. The first prompt message may include a first value of the matching identifier. The first value corresponds to the third small board being the target small board.
[0231] For example, taking the first prompt information including "PASS" as an example, in the Fig.12 On the interface 102 shown, the first display screen will display the test results of multiple test items. The multiple test items include test item 1 and test item 2, etc. Among them, test item 1 corresponds to whether the third small board is the target small board. When the first operating system determines that the read matching identifier includes the first value, Fig.12 The first prompt information can be displayed on the 102 interface. In this way, the inspection personnel can determine that the third small board is the target small board according to the first prompt information, which is convenient for subsequent testing and processing.
[0232] S1107. Display a second prompt message on the first display screen.
[0233] Exemplarily, when the first operating system performs the operation of S1104 and determines that the read matching identifier does not include the first value, that is, when the matching identifier includes the second value, the first operating system displays the second prompt information on the first display screen connected to the first mainboard. The second prompt information may include the second value of the matching identifier. The second value corresponds to that the third small board is not the target small board.
[0234] For example, taking the second prompt information including "FAIL" as an example, combined with the above description, in the following example Fig.13 In the interface 103 shown, test item 1 corresponds to whether the first main board and the third sub-board are matched correctly. In the case where the first operating system determines that the read matching identifier does not include the first value, Fig.13 The second prompt information can be displayed in the interface 103. In this way, the inspection personnel can determine that the third small board is not the target small board according to the second prompt information, and instruct to suspend the subsequent test items.
[0235] S1108. Display the third prompt information on the first display screen.
[0236] Exemplarily, when the first operating system performs the operation of S1102 and fails to index the first storage node, a third prompt message is displayed on a display screen connected to the first mainboard. The third prompt message may include a third value. The third value corresponds to a failure to create the first storage node.
[0237] For example, taking the third prompt information including "ERROR" as an example, combined with the above description, in the following example Fig.14 In the interface 104 shown, test item 1 corresponds to whether the first main board and the third sub-board match correctly. In the case where the first storage node cannot be indexed, Fig.14The third prompt information can be displayed on the 104 interface in. In this way, the detection personnel can determine that the first storage node fails to be created according to the third prompt information, and instruct to suspend the subsequent test items to facilitate subsequent debugging.
[0238] Combined with the above description, according to Fig.11 In the scheme, when the tester inputs an operation of clicking on application B, the first operating system starts to retrieve the first storage node through the first control interface and reads the matching identifier in the first storage node. According to whether the matching identifier in the first storage node includes the first value, the first display screen connected to the first mainboard displays the corresponding prompt information. In this way, the tester can obtain the test result of whether the third small board is the target small board through the first display screen connected to the first mainboard.
[0239] In the above embodiments, USID is used as an example to illustrate the method of determining whether the third board is the target board. In other embodiments of the present application, the first MIPI interface address also corresponds to other types of identifiers, such as PID (Product ID) and MID (Manufacturer ID). The electronic device can also use the PID value and / or MID value as the identifier corresponding to each board, and perform the following steps: Figure 5 as well as Figure 6 The method shown in is used to determine whether the third platelet is the target platelet.
[0240] In addition, in the above implementation, the third small board is detected as the target small board. In other embodiments of the present application, the above solution can also be used to detect other types of circuit boards, such as circuit boards corresponding to USB, or flexible circuit boards.
[0241] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of each functional module. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0242] The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0243] Please refer to Fig.15 , is a schematic diagram of another electronic device provided in an embodiment of the present application. The electronic device may be the electronic device involved in the above embodiment. Fig.15 As shown, the electronic device 1300 may include: a processor 1301 and a memory 1302. The memory 1302 is used to store computer execution instructions. Exemplarily, in some embodiments, the electronic device includes a first main board and a third small board, the first main board is connected to the third small board, and the electronic device is used to detect the third small board. When the processor 1301 executes the instructions stored in the memory 1302, the electronic device 1300 can execute any of the technical solutions shown in the above embodiments.
[0244] In some embodiments, the electronic device further comprises a display unit B, the display unit B is configured with a first display screen, the first display screen is connected to the first main board, and the display unit B is used to display prompt information, the prompt information is used to indicate whether the third small board is the target circuit board.
[0245] In some other embodiments, the electronic device is connected to a display unit A, and the display unit A is used to display prompt information. In some implementations, the display unit A is independent of the electronic device and has a display function.
[0246] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0247] Fig.16 A schematic diagram of the composition of a chip system 1400 is shown. The chip system 1400 may include: a processor 1401 and a communication interface 1402, which are used to support related equipment (such as electronic devices) to implement the functions involved in the above embodiments. In one example, the chip system also includes a memory for storing program instructions and data necessary for the terminal. The chip system may be composed of chips, or may include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 1402 may also be referred to as an interface circuit.
[0248] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0249] The functions or actions or operations or steps in the above embodiments can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0250] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A circuit board detection method, characterized in that: The method is applied to an electronic device, wherein the electronic device comprises a first modem and a first display unit, wherein the first display unit comprises a first circuit board and a first display screen, wherein the first circuit board is connected to the first display screen, and wherein a first operating system runs on the first circuit board; wherein the first operating system comprises a wireless interface layer and a kernel layer, and wherein during the process of starting the first operating system by starting the first circuit board, the time when the wireless interface layer completes the startup is earlier than the time when the kernel layer completes the startup; wherein the electronic device is connected to a second display unit, wherein the second display unit comprises a universal serial bus (USB) driver, wherein the first circuit board is connected to the second display unit via the USB driver, and wherein the USB driver is used to provide a first USB interface; The electronic device is also equipped with a second circuit board, and the method is used to detect the second circuit board; the method comprises: During the startup of the first operating system, a first identifier is obtained through the first operating system; the first identifier includes a first user service identification code USID; the first identifier is pre-stored in the first circuit board; the first identifier is used to identify the target circuit board; The second identifier is obtained through the first operating system; the second identifier includes a second user service identifier USID, and the second identifier is used to identify the second circuit board; the second identifier is an identifier of the first device; the first device is configured in the second circuit board; determining, by the first operating system, whether the first identifier is consistent with the second identifier; determining that the second circuit board is the target circuit board when the first identifier is consistent with the second identifier; and determining that the second circuit board is not the target circuit board when the first identifier is inconsistent with the second identifier; storing a detection result of whether the second circuit board is the target circuit board; The acquiring the second identifier through the first operating system includes: In the boot-up phase, the first operating system sends a first command to the first modem through the wireless interface layer, wherein the first command is used to instruct the first modem to obtain the second user service identification code USID; the first modem parses the first command at the kernel layer to obtain the second user service identification code USID; After determining whether the first identifier is consistent with the second identifier by the first operating system, the method further includes: Determine a matching identifier according to the first identifier and the second identifier; the matching identifier is used to indicate whether the second circuit board is the target circuit board, and the matching identifier includes a first value or a second value; the first value corresponds to the second circuit board being the target circuit board, and the second value corresponds to the second circuit board not being the target circuit board; The storing of the detection result of whether the second circuit board is the target circuit board includes: In the startup phase, the first operating system creates a first storage node, the name of the first storage node is a first name; the first operating system stores the matching identifier in the first storage node; The method further comprises: The first application installed on the first circuit board is displayed on the second display unit; a third command is received, the third command is sent by the first application through the first USB interface, and the third command is used to obtain prompt information; when the third command is received, the first storage node is indexed according to the first name, and the matching identifier in the first storage node is read; and corresponding prompt information is displayed on the second display unit according to whether the read matching identifier includes the first value or the second value; The first display screen displays a first application installed on the first circuit board, and the first application includes a first control interface. When the first operating system detects a first operation of clicking on the first application, the first storage node is indexed according to the first name. The matching identifier in the first storage node is read through the first control interface. According to whether the read matching identifier includes the first value or the second value, corresponding prompt information is displayed on the first display screen.
2. The method according to claim 1, characterized in that The electronic device further comprises a memory, wherein the memory stores a device tree source file, and the device tree source file comprises the first user service identification code USID; The acquiring the first identifier through the first operating system includes: The device tree source file is parsed to obtain the first user service identification code USID.
3. The method according to claim 2, characterized in that The electronic device further comprises a first mobile industry processor MIPI interface, wherein the first mobile industry processor MIPI interface is preset with a first mobile industry processor MIPI interface address, and the first mobile industry processor MIPI interface address corresponds to the second user service identification code USID; The obtaining of the second user service identification code USID comprises: The second user service identification code USID is obtained according to the MIPI interface address of the first mobile industry processor.
4. The method according to claim 3, characterized in that The device tree source file also includes the MIPI interface address of the first mobile industry processor; before obtaining the second user service identification code USID according to the MIPI interface address of the first mobile industry processor, the method also includes: Parse the device tree source file to obtain the MIPI interface address of the first mobile industry processor.
5. The method according to claim 3 or 4, characterized in that: The acquiring the second user service identification code USID according to the MIPI interface address of the first mobile industry processor includes: The second user service identification code USID is obtained from the first modem through the wireless interface layer according to the MIPI interface address of the first mobile industry processor.
6. The method according to claim 3, characterized in that: The first command includes the MIPI interface address of the first mobile industry processor.
7. The method according to claim 6, characterized in that After sending the first command to the first modem, the method further includes: The second user service identification code USID is sent to the radio interface layer through the first modem.
8. The method according to claim 7, characterized in that The memory includes a first register, and the first register corresponds to a first address; after sending the second user service identification code USID to the wireless interface layer through the first modem, the method further includes: Storing the second user service identification code USID in the first register through the radio interface layer; The acquiring the second user service identification code USID from the first modem according to the first mobile industry processor MIPI interface address also includes: According to the first address, the second user service identification code USID is obtained from the first register.
9. The method according to claim 8, characterized in that Before acquiring the second user service identification code USID from the first register, the method further includes: Send a second command to the wireless interface layer; wherein the second command is used to obtain the first address.
10. The method according to claim 1, characterized in that The prompt information includes first prompt information, or second prompt information, or third prompt information; the first prompt information is used to indicate that the second circuit board is the target circuit board, the second prompt information is used to indicate that the second circuit board is not the target circuit board, and the third prompt information is used to indicate that the creation of the first storage node failed.
11. The method according to claim 10, characterized in that The displaying corresponding prompt information on the first display screen according to whether the read matching identifier includes the first value or the second value includes: According to the matching identifier including the first value, displaying the first prompt information on the first display screen; or displaying the second prompt information on the first display screen according to the matching identifier including the second value; Alternatively, when the first storage node does not exist, displaying the third prompt information on the first display screen; The displaying corresponding prompt information on the second display unit according to whether the read matching identifier includes the first value or the second value includes: sending the first prompt information to the second display unit according to the matching identifier including the first value; Alternatively, according to the matching identifier including the second value, sending the second prompt information to the second display unit; Alternatively, when the first storage node does not exist, the third prompt information is sent to the second display unit.
12. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions; The electronic device also includes a first circuit and a second circuit board, the first circuit board is connected to the second circuit board, and the electronic device is used to detect the second circuit board; when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-11.
13. A chip system, characterized in that: The chip system includes a processor and a communication interface; the processor is used to call and run a computer program stored in a storage medium from the storage medium to execute the method as described in any one of claims 1-11.
Citation Information
Patent Citations
Anti-mis-insertion system based on vehicle variable current control sub-circuit board
CN107341064A
Circuit board, anti-misconnection method of circuit board and electronic equipment
CN108304284A
Semiconductor testing system, test sorting machine and testing machine
CN109013402A
Test circuit board and test mechanism
CN217112603U