[go: up one dir, main page]

CN116541895A - Circuit board detection method, electronic device and chip system - Google Patents

Circuit board detection method, electronic device and chip system Download PDF

Info

Publication number
CN116541895A
CN116541895A CN202310733637.0A CN202310733637A CN116541895A CN 116541895 A CN116541895 A CN 116541895A CN 202310733637 A CN202310733637 A CN 202310733637A CN 116541895 A CN116541895 A CN 116541895A
Authority
CN
China
Prior art keywords
circuit board
prompt information
usid
display unit
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310733637.0A
Other languages
Chinese (zh)
Other versions
CN116541895B (en
Inventor
丁高珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310733637.0A priority Critical patent/CN116541895B/en
Publication of CN116541895A publication Critical patent/CN116541895A/en
Application granted granted Critical
Publication of CN116541895B publication Critical patent/CN116541895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • G06F9/4413Plug-and-play [PnP]
    • G06F9/4415Self describing peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A circuit board detection method, an electronic device and a chip system relate to the field of circuit board detection and can improve the accuracy and the detection efficiency of a detection result. The scheme is specifically as follows: the method is applied to an electronic device, and the electronic device comprises a first circuit board, wherein a first operating system runs on the first circuit board. The electronic device is also equipped with a second circuit board, and the method is used for detecting the second circuit board. The method comprises the following steps: and acquiring a first identifier through the first operating system, wherein the first identifier is stored in the first circuit board in advance, and the first identifier is used for identifying the target circuit board. And acquiring a second identifier through the first operating system, wherein the second identifier is used for identifying the second circuit board. Judging whether the first mark is consistent with the second mark through the first operating system, and determining whether the second circuit board is the target circuit board.

Description

一种电路板检测方法、电子装置及芯片系统A circuit board detection method, electronic device and chip system

技术领域technical field

本申请实施例涉及电路板检测领域,尤其涉及一种电路板检测方法、电子装置及芯片系统。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 technique

电路板是构成电子设备的核心部件,电子设备的电路板可以包括主板和小板。主板用于承载电子设备各个硬件组件,小板包括底部天线对应的电路板。A circuit board is a core component of an electronic device, and the circuit board of an 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.

在电子设备组装之前,主板和小板一般是分离状态,需要进行手动连接。由于在一些实现中,一种主板可以和至少一种小板连接,组装成不同的电子设备。例如,第一设备包括第一主板和第一小板,第二设备包括第一主板和第二小板。其中,第一小板和第二小板分别对应的物料清单(BOM,bill of material)有所不同。如使用的器件型号有差异,或者相同器件在PCB板上的位置不同等等。因此在组装第一设备或者第二设备时,还需要确定当前第一主板所连接的小板是否为目标小板。Before the electronic equipment is assembled, the main board and the small board are generally separated and need to be connected manually. In some implementations, a main board can be connected with at least one small board to assemble 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, bill of material) 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 positions of the same device on the PCB are different, and so on. 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 a target small board.

在一些实现中,根据第一小板和第二小板之间的BOM不同,可以通过人眼观察,识别出当前第一主板所连接的小板是否为目标小板。但这种人工检测的方式容易出错,检测效率校低。In some implementations, according to the difference in BOM between the first small board and the second small board, whether the small board currently connected to the first main board is a target small board can be identified through human observation. However, this manual detection method is prone to errors and the detection efficiency is low.

发明内容Contents of the invention

本申请实施例提供一种电路板检测方法、电子装置及芯片系统,可以避免人工检测方式中易出错,以及效率低的问题,提高检测结果的准确度以及检测效率。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 error-prone and low efficiency in manual detection, and improve the accuracy and efficiency of detection results.

为达到上述目的,本申请的实施例采用如下技术方案:In order to achieve the above object, the embodiments of the present application adopt the following technical solutions:

第一方面,一种电路板检测方法,该方法应用于电子装置,该电子装置包括第一电路板,该第一电路板上运行有第一操作系统。该电子装置还装配有第二电路板,该方法用于检测该第二电路板。该方法包括:通过该第一操作系统获取第一标识。该第一标识预先存储在该第一电路板中。该第一标识用于标识目标电路板。通过该第一操作系统获取第二标识。该第二标识用于标识该第二电路板。通过该第一操作系统判断该第一标识与该第二标识是否一致。在该第一标识与该第二标识一致时,确定该第二电路板为该目标电路板。在该第一标识与该第二标识不一致时,确定该第二电路板不是该目标电路板。In a first aspect, a method for detecting a circuit board is applied to an electronic device, the electronic device includes a first circuit board, and a first operating system runs 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: acquiring 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 the target circuit board. The second identifier is acquired through the first operating system. The second identification is used to identify the second circuit board. Whether the first identifier is consistent with the second identifier is judged by the first operating system. When the first identification is consistent with the second identification, it is determined that the second circuit board is the target circuit board. When the first identification is inconsistent with the second identification, it is determined that the second circuit board is not the target circuit board.

在上述方案中,电子装置根据目标小板对应的第一标识,与第二电路板对应的第二标识是否一致,确定第二电路板是否为目标电路板。由于每一种电路板对应不同的标识,这样,可以提高检测结果的准确度以及检测效率。In the above solution, 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 type of circuit board corresponds to a different identification, the accuracy of the detection result and the detection efficiency can be improved.

可选的,该第一标识包括第一用户服务标识码USID,该电子装置还包括存储器,该存储器存储有设备树源文件,该设备树源文件包括该第一USID。通过该第一操作系统获取第一标识包括:解析该设备树源文件,获取该第一USID。在上述示例中,设备树源文件中包括第一USID。通过第一操作系统从该设备树源文件中获取第一USID。这样,便于第一操作系统后续进行第一USID与第二USID是否一致的判断。Optionally, the first identification includes a first user service identification code USID, and the electronic device further 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. Obtain the first USID 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.

可选的,该第二标识包括第二USID,该电子装置还包括第一移动产业处理器MIPI接口,该第一MIPI接口地址与该第二USID相对应,该第一MIPI接口预设有第一MIPI接口地址。通过该第一操作系统获取第二标识,包括:通过该第一操作系统根据该第一MIPI接口地址,获取该第二USID。这样,通过第一操作系统可以获取当前第二电路板上与第一MIPI接口地址对应的USID,进而实现获取第二USID。Optionally, the second identifier includes a second USID, and the electronic device further includes a first mobile industry processor MIPI interface, the address of the first MIPI interface corresponds to the second USID, and the first MIPI interface is preset with the first MIPI interface. A 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 address of the first MIPI interface on the current second circuit board can be obtained through the first operating system, and then the second USID can be obtained.

可选的,该设备树源文件还包括第一MIPI接口。在通过该第一操作系统根据该第一MIPI接口地址,获取该第二USID之前,该方法还包括:通过该第一操作系统解析该设备树源文件,获取该第一MIPI接口地址。由于第二USID与第一MIPI接口相对应,这样便于第一系统根据第一MIPI接口地址获取第二USID。Optionally, the device tree source file also includes the first MIPI interface. Before obtaining the second USID according to the first MIPI interface address through the first operating system, the method further includes: analyzing 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 address of the first MIPI interface.

可选的,该电子装置还包括第一调制解调器,和无线接口层。该第一调制解调器与该第二电路板相对应。该第一操作系统根据该第一MIPI接口地址,获取该第二USID包括:该第一操作系统通过该无线接口层,根据该第一MIPI接口从该第一调制解调器获取该第二USID。 这样,第一操作系统通过无线接口层,实现与第一调制解调器之间的信息交互,进而从第一调制解调器获取第二USID。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 obtaining the second USID according to the first MIPI interface address includes: the first operating system obtaining the second USID from the first modem according to the first MIPI interface through the wireless interface layer. In this way, the first operating system implements information interaction with the first modem through the wireless interface layer, and then acquires the second USID from the first modem.

可选的,该根据该第一MIPI接口从该第一调制解调器获取该第二USID包括:该第一操作系统通过该无线接口层,向该第一调制解调器发送第一命令。该第一命令包括该第一MIPI接口,该第一命令用于指示该第一调制解调器获取该第二USID。在上述方案中,第一操作系统通过无线接口层向第一调制解调器发送第一命令。这样第一调制解调器在接收到该第一命令后,可以获取到当前第一电路板上与第一MIPI接口地址对应的第二USID。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 solution, 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 acquire the second USID corresponding to the first MIPI interface address on the current first circuit board.

可选的,在该向该第一调制解调器发送第一命令后,该方法还包括:该第一调制解调器接收到该第一命令后,解析该第一命令,获取该第二USID。该第一调制解调器向该无线接口层发送该第二USID。由此,使得第一控制接口层获取第二USID值。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. Thus, the first control interface layer is made to acquire the second USID value.

可选的,该存储器包括第一寄存器,该第一寄存器对应于第一地址。在该第一调制解调器向该无线接口层发送该第二USID后,该方法还包括:该无线接口层接收到该第二USID,将该第二USID存储到该第一寄存器中。 该根据该第一MIPI接口地址从该第一调制解调器获取该第二USID还包括:该第一操作系统根据该第一地址,从该第一寄存器获取该第二USID。在上述方案中,第一控制接口层将接收到的第二USID存储到第一寄存器中。这样,第一操作系统可以从该第一寄存器中获取第二USID。Optionally, the memory includes a first register, and the first register corresponds 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 the second USID from the first modem according to the first MIPI interface address further includes: the first operating system obtaining the second USID from the first register according to the first address. In the above solution, the first control interface layer stores the received second USID into the first register. In this way, the first operating system can acquire the second USID from the first register.

可选的,该从该第一寄存器获取该第二USID之前,该方法还包括:该第一操作系统向该无线接口层发送该第二命令。其中,该第二命令用于获取该第一地址。该无线接口层接收到该第二命令后,向该第一操作系统发送该第一地址。在上述方案中,第一操作系统通过向无线接口层发送第二命令,获取第一寄存器对应的第二地址。这样,第一操作系统可以实现根据该第二地址,获取第一寄存器中存储的第二USID。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. Wherein, the second command is used to acquire the first address. After receiving the second command, the wireless interface layer sends the first address to the first operating system. In the above solution, the first operating system acquires 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 acquire the second USID stored in the first register according to the second address.

可选的,在该第一操作系统判断该第一标识与该第二标识是否一致后,该方法还包括:Optionally, after the first operating system determines whether the first identifier is consistent with the second identifier, the method further includes:

该第一操作系统根据该第一标识与该第二标识,确定匹配标识。该匹配标识用于指示该第二电路板是否为该目标电路板,该匹配标识包括第一值或者第二值。该第一值对应于该第二电路板为该目标电路板,该第二值对应于该第二电路板不是该目标电路板。在上述方案中,第一操作系统通过匹配标识对应的值,来指示第二电路板是否为目标电路板。这样便于对检测结果的存储和获取。The first operating system determines 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. In the above solution, the first operating system indicates whether the second circuit board is the target circuit board by matching the value corresponding to the identifier. This facilitates storage and acquisition of detection results.

可选的,该方法还包括:该第一操作系统在该存储器中创建第一存储节点。该第一存储节点用于存储该匹配标识,该第一存储节点的名称为第一名称。这样,第一操作可以从该第一存储节点中获取匹配标识,即获取第二电路板是否为目标电路板的检测结果。Optionally, the method further includes: creating a first storage node in the storage by the first operating system. The first storage node is used to store the matching identifier, and the name of the first storage node is the first name. In this way, the first operation may acquire the matching identifier from the first storage node, that is, acquire the detection result of whether the second circuit board is the target circuit board.

可选的,该电子装置包括第一显示单元,该方法还包括:该第一显示单元显示提示信息。该提示信息包括第一提示信息,或者第二提示信息,或者第三提示信息。该第一提示信息用于指示该第二电路板为该目标电路板,该第二提示信息用于指示该第二电路板不是该目标电路板,该第三提示信息用于指示该第一存储节点创建失败。这样,根据第一显示单元上的提示信息可以确定第二电路板是否为目标电路板。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, 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 first storage Node creation failed. In this way, it can be determined whether the second circuit board is the target circuit board according to the prompt information on the first display unit.

可选的,该电子装置连接有第二显示单元,该方法还包括:该第二显示单元显示提示信息。该提示信息包括第一提示信息,或者第二提示信息,或者第三提示信息。该第一提示信息用于指示该第二电路板为该目标电路板,该第二提示信息用于指示该第二电路板不是该目标电路板,该第三提示信息用于指示该第一存储节点创建失败。这样,根据第二显示单元上的提示信息可以确定第二电路板是否为目标电路板。Optionally, the electronic device is connected with a second display unit, and the method further includes: displaying prompt information on the second display unit. 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 first storage Node creation failed. In this way, it can be determined whether the second circuit board is the target circuit board according to the prompt information on the second display unit.

可选的,该第一显示单元安装有第一应用,该第一应用包括第一控制接口。在该第一显示单元显示提示信息之前,该方法还包括:该第一操作系统在检测到第一操作时,通过第一控制接口,从该第一存储节点中获取该匹配标识。其中,该第一操作对应于点击该第一应用。在上述方案中,第一操作系统在检测到点击第一应用的操作时,执行从第一存储节点读取匹配标识的操作。进而使得第一操作系统获取匹配标识。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, acquiring the matching identifier from the first storage node through the first control interface. Wherein, the first operation corresponds to clicking the first application. In the above solution, when the first operating system detects the operation of clicking the first application, it executes the operation of reading the matching identifier from the first storage node. Further, the first operating system is enabled to acquire the matching identifier.

可选的,该第一显示单元还配置有第一显示屏,该第一显示屏与该第一电路板连接,该第一显示单元显示该提示信息包括:该第一操作系统在该第一显示屏上显示该提示信息。这样,检测人员可以根据第一显示屏上显示的提示信息,确定第二电路板是否为目标电路板。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 prompt information displayed by the first display unit includes: the first operating system operates on the first This prompt message is displayed on the display. In this way, the inspector can determine whether the second circuit board is the target circuit board according to the prompt information displayed on the first display screen.

可选的,在该第二显示单元显示提示信息之前,该方法还包括:该第一操作系统从该第一存储节点中获取匹配标识。 该第一操作系统根据该匹配标识包括该第一值,向该第二显示单元发送该第一提示信息。或者该第一操作系统根据该匹配标识包括该第二值,向该第二显示单元发送该第二提示信息。或者在该第一存储节点不存在时,该第一操作系统向该第二显示单元发送该第三提示信息。这样,检测人员可以通过第二显示单元获取提示信息,确定第二电路板是否为目标电路板的检测结果。Optionally, before the second display unit displays the prompt information, the method further includes: the first operating system acquires the matching identifier from the first storage node. The first operating system sends the first prompt information to the second display unit according to the matching identifier including the first value. Or the first operating system sends the second prompt information to the second display unit according to 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 inspector can obtain prompt information through the second display unit to determine whether the second circuit board is the detection result of the target circuit board.

可选的,该第二显示单元包括通用串行总线USB驱动,该USB驱动用于提供第一USB接口。在该第一操作系统从该第一存储节点中获取该匹配标识之前,该方法还包括:该第二显示单元通过该第一USB接口向该第一主板发送第三命令。该第三命令用于获取该提示信息。在上述方案中,第二显示单元通过向第一主板发送第三命令,使得第二显示单元实现从第一主板获取提示信息。Optionally, the second display unit includes a Universal Serial Bus USB driver, and the USB driver is used to provide the first USB interface. Before the first operating system acquires the matching identifier from the first storage node, the method further includes: the second display unit sends a third command to the first motherboard through the first USB interface. The third command is used to obtain the prompt information. In the above solution, the second display unit sends the third command to the first main board, so that the second display unit acquires the prompt information from the first main board.

可选的,该第一操作系统从该第一存储节点中获取该匹配标识包括:该第一操作系统接收到该第三命令时,根据该第一名称索引该第一存储节点,从该第一存储节点中获取该匹配标识。在上述方案中,第一操作系统接收到第三命令时,通过第一名称索引道第一存储节点,进而实现从第一存储节点中读取匹配标识。Optionally, the first operating system obtaining the matching identifier from the first storage node includes: 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 second Obtain the matching identifier from a storage node. In the above solution, when the first operating system receives the third command, it uses the first name to index the first storage node, and then realizes reading the matching identifier from the first storage node.

第二方面,一种电子装置,该电子装置包括一个或多个处理器,一个或多个存储器。该一个或多个存储器与该一个或多个处理器耦合,该一个或多个存储器存储有计算机指令。该电子装置还包括第一电路,第二电路板,该第一电路板与该第二电路板相连接,该电子装置用于检测该第二电路板,当该一个或多个处理器执行该计算机指令时,使得该电子装置执行如第一方面及其可选的设计中任一种电路板检测方法。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, the one or more memories storing computer instructions. The electronic device also includes a first circuit, 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 When the computer instructs, the electronic device is made to execute any one of the circuit board detection methods in the first aspect and its optional designs.

可选的,电子装置还包括第一显示单元,该第一显示单元还配置有第一显示屏,该第一显示屏与该第一电路板相连接,该第一显示屏用于显示提示信息。该提示信息用于指示该第二电路板是否为目标电路板。Optionally, the electronic device further includes a first display unit, the first display unit is also 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.

可选的,该电子装置连接有第二显示单元,该第二显示单元用于显示提示信息。该提示信息用于指示该第二电路板是否为目标电路板。Optionally, the electronic device is connected with a second display unit, and the second display unit is used for displaying prompt information. The prompt information is used to indicate whether the second circuit board is the target circuit board.

电子装置连接有第二显示单元,所述第二显示单元用于显示提示信息;所述提示信息用于指示所述第二电路板是否为目标电路板。The electronic device is connected with 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.

第三方面,一种芯片系统,该芯片系统包括处理器和通信接口。该处理器用于从存储介质中调用并运行该存储介质中存储的计算机程序,执行如第一方面及其可选的设计中任一种电路板检测方法。In a third aspect, a chip system includes a processor and a communication interface. The processor is used for invoking and running the computer program stored in the storage medium from the storage medium, and executing any one circuit board detection method in the first aspect and optional designs thereof.

第四方面,提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当该计算机指令运行时,执行如第一方面及其可选的设计中任一种电路板检测方法。In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium includes computer instructions, and when the computer instructions are executed, any method for detecting a circuit board as in the first aspect and its optional designs is executed.

第五方面,提供一种计算机程序产品,该计算机程序包括指令,在计算机运行该指令时,执行如第一方面及其可选的设计中任一种电路板检测方法。In a fifth aspect, a computer program product is provided, the computer program includes instructions, and when the computer executes the instructions, any method for detecting a circuit board as in the first aspect and its optional designs is executed.

可以理解的是,上述第二方面到第五方面提供的技术方案,可以分别对应到前述设计中提供的电路板检测方法,能够获取的有益效果类似,不再赘述。It can be understood that the technical solutions provided in the above-mentioned second aspect to the fifth aspect can respectively correspond to the circuit board inspection method provided in the aforementioned design, and the beneficial effects that can be obtained are similar, and will not be repeated here.

附图说明Description of drawings

图1为一种电子设备的组成示意图;1 is a schematic diagram of the composition of an electronic device;

图2为另一种电子设备的组成示意图;2 is a schematic diagram of the composition of another electronic device;

图3为本申请实施例提供的一种装配有第一主板和第三小板的电子装置的组成示意图;FIG. 3 is a schematic composition diagram of an electronic device equipped with a first main board and a third small board provided in an embodiment of the present application;

图4为本申请实施例提供的另一种电子装置的组成示意图;FIG. 4 is a schematic diagram of the composition of another electronic device provided by the embodiment of the present application;

图5为本申请实施例提供的一种电路板检测方法的流程示意图;FIG. 5 is a schematic flow diagram of a circuit board detection method provided in an embodiment of the present application;

图6为本申请实施例提供的另一种电路板检测方法的流程示意图;FIG. 6 is a schematic flow diagram of another circuit board detection method provided in the embodiment of the present application;

图7为本申请实施例提供的另一种电路板检测方法的流程示意图;FIG. 7 is a schematic flow diagram of another circuit board detection method provided in the embodiment of the present application;

图8为本申请实施例提供的另一种电路板检测方法的流程示意图;FIG. 8 is a schematic flow diagram of another circuit board detection method provided in the embodiment of the present application;

图9为本申请实施例提供的一种显示单元界面的示意图;FIG. 9 is a schematic diagram of a display unit interface provided by an embodiment of the present application;

图10为本申请实施例提供的另一种显示单元界面的示意图;FIG. 10 is a schematic diagram of another display unit interface provided by the embodiment of the present application;

图11为本申请实施例提供的另一种电路板检测方法的示意图;FIG. 11 is a schematic diagram of another circuit board detection method provided in the embodiment of the present application;

图12为本申请实施例提供的另一种电子装置界面的示意图;FIG. 12 is a schematic diagram of another electronic device interface provided by the embodiment of the present application;

图13为本申请实施例提供的另一种电子装置界面的示意图;FIG. 13 is a schematic diagram of another electronic device interface provided by the embodiment of the present application;

图14为本申请实施例提供的另一种电子装置界面的示意图;FIG. 14 is a schematic diagram of another electronic device interface provided by the embodiment of the present application;

图15为本申请实施例提供的另一种电子装置的组成示意图;FIG. 15 is a schematic diagram of the composition of another electronic device provided by the embodiment of the present application;

图16为本申请实施例提供的一种芯片系统的组成示意图。FIG. 16 is a schematic diagram of a chip system provided by an embodiment of the present application.

具体实施方式Detailed ways

电路板是电子设备的重要组件,电子设备上的电路板可以包括主板和小板,主板和小板之间进行电连接。其中,主板可以用于连接和管理电子设备上各个硬件组件(如中央处理器,存储器,芯片组等)。小板包括底部天线对应的电路板,可以用于发射和接收电磁波信号。A circuit board is an important component of an electronic device. The circuit board on the electronic device may include a main board and a small board, and the main board and the small board are electrically connected. Among them, the motherboard can be used to connect and manage various hardware components (such as central processing unit, memory, chipset, etc.) on the electronic device. The small board includes the circuit board corresponding to the bottom antenna, which can be used to transmit and receive electromagnetic wave signals.

在一些实现中,主板可以和至少一种小板进行连接,组装至不同的电子设备。In some implementations, the main board can be connected with at least one small board to be assembled into different electronic devices.

例如,如图1和图2所示,第一设备包括第一主板和第一小板,第二设备包括第一主板和第二小板。其中,第一小板和第二小板分别对应的BOM有所不同。如使用的器件型号有差异,或者相同器件在印刷电路板上的位置不同等等。For example, as shown in FIG. 1 and FIG. 2 , 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. Wherein, the BOMs 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 positions of the same device on the printed circuit board are different, and so on.

可以理解的是,在电子设备组装之前,主板和小板是分离状态,需要进行手动连接。在第一主板和当前小板进行连接时,由于第一设备和第二设备之间所对应的小板不同,因此还需要确定当前小板是否为目标小板。以下将当前第一主板所连接的小板称之为第三小板。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 and the current small board are connected, since the corresponding small boards between the first device and the second device are different, it is also necessary to determine whether the current small board is a target small board. Hereinafter, the small board currently connected to the first main board is referred to as the third small board.

在一些实现中,根据第一小板和第二小板之间的BOM不同,通过人眼观察,识别出当前小板为第一小板,或者第二小板,以此来确定第三小板是否为目标小板。In some implementations, according to the BOM difference between the first small board and the second small board, the current small board is recognized as the first small board or the second small board through human observation, so as to determine the third small board Whether the board is the target small board.

可以理解的是,针对第一小板和第二小板之间的BOM差异,人眼区分通常容易出错,或者很难区分出来。从而导致在组装第一设备时,将第一主板和第二小板连接在一起,或者在组装第二设备时,将第一主板和第一小板连接在一起。It is understandable that, for the difference in BOM between the first small board and the second small board, it is usually easy to make mistakes or difficult to distinguish by human eyes. Therefore, when assembling the first device, the first main board and the second small board are connected together, or when the second device is assembled, the first main board and the first small board are connected together.

本申请实施例提供一种电路板检测方法,每一种小板对应有不同的标识,电子装置根据第三小板对应的第二标识,是否与目标小板对应的第一标识一致,确定第三小板是否为目标小板。在确定第三小板是否为目标小板的检测结果后,可以通过显示单元显示该检测结果。这样,可以避免人工检测方式中效率低的问题,提高了检测结果的准确度和检测效率。The embodiment of the present application provides a method for detecting circuit boards. Each type of small board corresponds to a different identification. The electronic device determines whether the second identification corresponding to the third small board is consistent with the first identification corresponding to the target small board. Whether the three small boards are target small boards. After determining whether the third small plate is the detection result of the target small plate, the detection result can be displayed by the display unit. In this way, the problem of low efficiency in the manual detection mode can be avoided, and the accuracy and detection efficiency of the detection result are improved.

在本申请的另一些实施例中,第一主板又可以成为第一电路板,第三小板又可以称之为第二电路板,目标小板又可以称为目标电路板。In other embodiments of the present application, the first main board may be called the first circuit board, the third small board may be called the second circuit board, and the target small board may be called the target circuit board.

以下将结合附图对本申请实施例提供的技术方案进行详细说明。The technical solutions provided by the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

需要说明的是,本申请实施例提供的方案可以应用在电子装置中。It should be noted that the solutions provided in the embodiments of the present application may be applied in electronic devices.

本申请实施例中的电子装置包括第一主板。第一主板用于确定第三小板是否为目标小板。本申请实施例对该电子装置的具体形态不作特殊限制。The electronic device in the embodiment of the present application includes a first motherboard. The first main board is used to determine whether the third small board is the target small board. The embodiment of the present application does not specifically limit the specific form of the electronic device.

作为一种实现,该电子装置可以具有如图3所示的装配有第一主板和第三小板的电子装置400的结构。As an implementation, the electronic device may have the structure of an electronic device 400 equipped with a first main board and a third small board as shown in FIG. 3 .

如图3所示,装配有第一主板和第三小板的电子装置400可以包括处理器410,外部存储器接口420,内部存储器421,通用串行总线(universal serial bus,USB)接口430,充电管理模块440,电源管理模块441,电池442,天线1,天线2,移动通信模块450,无线通信模块460,音频模块470,扬声器470A,受话器470B,麦克风470C,耳机接口470D,传感器模块480,按键490,马达491,指示器492,摄像头模组493,显示屏494,以及用户标识模块(subscriber identification module,SIM)卡接口495等。其中传感器模块480可以包括压力传感器480A,陀螺仪传感器480B,气压传感器480C,磁传感器480D,加速度传感器480E,距离传感器480F,接近光传感器480G,指纹传感器480H,温度传感器480J,触摸传感器480K,环境光传感器480L,骨传导传感器480M等。As shown in FIG. 3 , an electronic device 400 equipped with a first main board and a third small board may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (universal serial bus, USB) interface 430, a charging Management module 440, power management module 441, battery 442, antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, audio module 470, speaker 470A, receiver 470B, microphone 470C, earphone jack 470D, sensor module 480, buttons 490, a motor 491, an indicator 492, a camera module 493, a display screen 494, and a subscriber identification module (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, and ambient light Sensor 480L, bone conduction sensor 480M, etc.

可以理解的是,本申请实施例示意的结构并不构成对装配有第一主板和第三小板的电子装置400的具体限定。在本申请另一些实施例中,装配有第一主板和第三小板的电子装置400可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be 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 small board. In other embodiments of the present application, the electronic device 400 equipped with the first main board and the third small board may include more or fewer components than shown in the illustration, or combine certain components, or separate certain components, or Different component arrangements. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器410可以包括一个或多个处理单元,例如:处理器410可以包括应用处理器(application processor,AP),图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digitalsignal processor,DSP),基带处理器,和/或神经网络处理器(neural-networkprocessing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 410 may include one or more processing units, for example: the processor 410 may include an application processor (application processor, AP), a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP) ), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.

处理器410中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器410中的存储器可以为高速缓冲存储器。该存储器可以保存处理器410用过或使用频率较高的指令或数据。如果处理器410需要使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器410的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in processor 410 may be a cache memory. The memory may store instructions or data used by the processor 410 or used frequently. If the processor 410 needs to use the instruction or data, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 410 is reduced, thus improving the efficiency of the system.

在一些实施例中,处理器410可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。处理器410可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像头等模块。In some embodiments, processor 410 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or A universal serial bus (universal serial bus, USB) interface, etc. The processor 410 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, and a camera through at least one of the above interfaces.

在一些实施例中,处理器410可以包括调制解调器。调制解调器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器470A,受话器470B等)输出声音信号,或通过显示屏494显示图像或视频。在一些实施例中,调制解调器可以是独立的器件。在另一些实施例中,调制解调器可以独立于处理器410,与移动通信模块450或其他功能模块设置在同一个器件中。In some embodiments, processor 410 may include a modem. A modem may include both a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 470A, receiver 470B, etc.), or displays images or videos through display screen 494 . In some embodiments, the modem may be a stand-alone device. In some 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.

USB接口430是一种符合USB标准规范的接口,可以用于连接装配有第一主板和第三小板的电子装置400和外围设备。USB接口430可以用于连接充电器,实现充电器为该装配有第一主板和第三小板的电子装置400充电,也可以用于连接其他电子装置,实现装配有第一主板和第三小板的电子装置400与其他电子装置之间传输数据。也可以用于连接耳机,通过耳机输出电子装置中存储的音频。在一些实施例中,通用串行总线的标准规范可以为USB1.x、USB2.0、USB3.x和USB4。The USB interface 430 is an interface conforming to the USB standard specification, and can be used to connect the electronic device 400 equipped with the first main board and the third small board and peripheral devices. The USB interface 430 can be used to connect a charger, so that the charger can charge the electronic device 400 equipped with the first main board and the third small board, and can also be used to connect other electronic devices, so as to realize the charging of the electronic device 400 equipped with the first main board and the third small board. Data is transferred between the board's electronic device 400 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 may be USB1.x, USB2.0, USB3.x and USB4.

装配有第一主板和第三小板的电子装置400可以通过GPU,显示屏494,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏494和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器410可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 400 equipped with the first main board and the third small 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, and is connected to the display screen 494 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏494用于显示图像,视频等。显示屏494包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,装配有第一主板和第三小板的电子装置400可以包括1个或多个显示屏494。The display screen 494 is used to display images, videos and the like. Display 494 includes a display panel. The display panel may 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 (active-matrix organic light emitting diode). , AMOLED), flexible light-emitting diodes (flex light-emitting diode, FLED), quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 400 equipped with the first main board and the third small board may include one or more display screens 494 .

内部存储器421可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器421可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储装配有第一主板和第三小板的电子装置400使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器421可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器410通过运行存储在内部存储器421的指令,和/或存储在设置于处理器中的存储器的指令,执行装配有第一主板和第三小板的电子装置400的各种功能方法或数据处理。Internal memory 421 may be used to store computer-executable program code, including instructions. The internal memory 421 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The data storage area can store data created during use of the electronic device 400 equipped with the first main board and the third small board (such as audio data, phone book, etc.). 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 magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 410 executes various functional methods or data of the electronic device 400 equipped with the first main board and the third small board by executing the instructions stored in the internal memory 421 and/or the instructions stored in the memory provided in the processor. deal with.

需要说明的是,上述图3所示的装配有第一主板和第三小板的电子装置组成仅为示例,并不构成对本申请实施例提供技术方案中涉及的电子装置的限制。本申请实施例对于电子装置的具体组成不做限制。It should be noted that the composition of the electronic device equipped with the first main board and the third small board shown in FIG. 3 is only an example, and does not constitute a limitation on the electronic device involved in the technical solution provided by the embodiment of the present application. The embodiment of the present application does not limit the specific composition of the electronic device.

从软件组成的角度,本申请实施例涉及的电子装置中可以运行有操作系统。该操作系统包括第一操作系统,第一操作系统运行在图3所示的处理器410中。也就是说,第一操作系统可以运行在第一主板上。该第一操作系统可以具有分层架构。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。From the perspective of software composition, the electronic device involved in the embodiment of the present application may run an operating system. The operating system includes a first operating system, and the first operating system runs on the processor 410 shown in FIG. 3 . That is to say, the first operating system can run on the first mainboard. The first operating system may have a layered architecture. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.

示例性的,图4示出了一种电子装置的组成示意。如图4所示,该电子装置中的第一操作系统可以具有分层架构。从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime,ART)和系统库,硬件抽象层(Hardware Abstract Layer,HAL)以及内核层。Exemplarily, FIG. 4 shows a schematic composition diagram of an electronic device. As shown in FIG. 4 , the first operating system in the electronic device may have a layered architecture. From top to bottom are application layer, application framework layer, Android runtime (Android runtime, ART) and system library, hardware abstraction layer (Hardware Abstract Layer, HAL) and kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.

如图4所示,应用程序层可以包括音乐,视频,通话,铃声,闹钟,蓝牙,导航,设置,图库等应用程序。As shown in Figure 4, the application layer can include applications such as music, video, call, ringtone, alarm clock, Bluetooth, navigation, settings, and gallery.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

如图4所示,应用程序框架层可以包括窗口管理器,活动管理器,输入管理器,资源管理器,通知管理器,视图系统等。As shown in Figure 4, 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.

窗口管理器提供窗口管理服务(Window Manager Service,WMS),WMS可以用于窗口管理、窗口动画管理、surface管理以及作为输入系统的中转站。The window manager provides window management services (Window Manager Service, WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for input systems.

活动管理器可以提供活动管理服务(Activity Manager Service,AMS),AMS可以用于系统组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。The activity manager can provide activity management service (Activity Manager Service, AMS), AMS can be used for system components (such as activities, services, content providers, broadcast receivers) to start, switch, schedule, and manage and schedule application processes .

输入管理器可以提供输入管理服务(Input Manager Service,IMS),IMS可以用于管理系统的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。The input manager may provide an input management service (Input Manager Service, IMS), and the IMS may be used to manage system inputs, such as touch screen input, key input, sensor input, and the like. IMS fetches events from input device nodes, and distributes events to appropriate windows through interaction with WMS.

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子装置振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application 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 prompted in the status bar, a prompt sound is issued, the electronic device vibrates, the indicator light flashes, and the like.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

安卓运行时负责将源代码转换为机器码。安卓运行时主要包括采用提前(aheador time,AOT)编译技术和及时(just in time,JIT)编译技术。The Android runtime is responsible for converting source code into machine code. The Android runtime mainly includes the use of ahead of time (ahead time, AOT) compilation technology and just in time (just in time, JIT) compilation technology.

安卓运行时还包括核心库。核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。The Android runtime also includes the core library. The core library is mainly used to provide basic Java class library functions, such as basic data structure, mathematics, IO, tools, database, network and other libraries. The core library provides APIs for users to develop Android applications.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库,以及媒体框架(Media Framework)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library, and media framework (Media Framework).

其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如: MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。Among them, the surface manager is used to manage the display subsystem, and provides the fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of various commonly used audio and video formats, as well as still 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.

在一些实现中,系统库还可以包括无线接口层。其中,无线接口层可以用于实现应用处理器和通信处理器之间的数据传输。In some implementations, the system library may also include a radio interface layer. Wherein, the wireless interface layer can be used to implement data transmission between the application processor and the communication processor.

硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口。硬件抽象层至少包括显示模块,以及音频模块等。The hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a call interface to the upper layer. The hardware abstraction layer includes at least a display module and an audio module.

内核层是硬件和软件之间的层。内核层至少包括显示驱动,以及音频驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver and an audio driver.

在本申请的另外一些实施例中,电子装置可以在如图4所示的内核层下设置有硬件层。该硬件层至少包括第一调制解调器以及存储器。第一调制解调器能够实现模拟信号和数字信号相互转化。第一调制解调器可以用于和系统库中的无线接口层进行数据传输。存储器中包括第一存储节点,该第一存储节点用于存储第三小板是否为目标小板的检测结果。该硬件层可以和图4中的软件架构层之间进行交互,确定该检测结果。In some other embodiments of the present application, the electronic device may be provided with a hardware layer under the kernel layer as shown in FIG. 4 . The hardware layer includes at least a first modem and a memory. The first modem can realize mutual conversion between analog signal and digital signal. The first modem can be used for data transmission with the wireless interface layer in the system library. The memory includes a first storage node, and the first storage node is used for storing the detection result of whether the third small board is the target small board. The hardware layer may interact with the software architecture layer in FIG. 4 to determine the detection result.

以下结合附图对本申请所提供的方法进行详细说明。The method provided by the present application will be described in detail below in conjunction with the accompanying drawings.

示例性的,参考图5,以第一小板为目标小板为例,第一标识可以包括第一用户服务标识码(user service identification,USID),第二标识可以包括第二USID。第一主板上运行的第一操作系统可以根据该目标小板对应的第一USID,与第三小板对应的第二USID是否一致,确定第三小板是否为目标小板。Exemplarily, referring to FIG. 5 , taking the first small board as the target small board as an example, the first identification may include a first user service identification (USID), and the second identification 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 according to whether the first USID corresponding to the target small board is consistent with the second USID corresponding to the third small board.

如图5所示,该方案包括:As shown in Figure 5, the program includes:

S501、第一主板开机时,启动第一操作系统。S501. When the first mainboard is turned on, start the first operating system.

需要说明的是,确定第三小板是否为目标小板是由第一主板上运行的第一操作系统来完成的。因此,在开始检测第三小板是否为目标小板时,需要对第一主板供电开机,以使得存放在第一主板上的第一操作系统开始启动,便于执行后续的处理。It should be noted that determining whether the third small board is the target small board is completed by the first operating system running on the first main board. Therefore, when starting to detect whether the third small board is the target small board, it is necessary to power and start the first main board, so that the first operating system stored on the first main board starts to start, so as to perform subsequent processing.

在一些实现中,第一主板连接有第一显示屏。在第一显示屏显示开机画面时,对应第一主板正在进行开机,启动第一操作系统中。In some implementations, the first mainboard is connected to the first display screen. When the first display screen displays the start-up picture, corresponding to the first main board being started up, the first operating system is started.

S502、第一操作系统解析设备树源文件,获取第一USID和第一MIPI接口地址。S502. The first operating system parses the device tree source file to obtain the first USID and the first MIPI interface address.

需要说明的是,电子装置还包括MIPI模块。在一些实现中,该MIPI模块可以配置在第一主板和/或第三小板上。在另一些实现中,该MIPI模块可以独立于第一主板和第三小板,单独配置在电子装置中。该MIPI模块包括至少一个MIPI接口。其中,该至少一个MIPI接口包括第一MIPI接口,第一MIPI接口预设有第一MIPI接口地址。第一MIPI接口可以与器件A连接,器件A配置在第三小板上。第一MIPI接口可以用于实现对器件A工作模式的控制。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 some other implementations, the MIPI module may be independent of the first main board and the third small board, and be independently configured in the electronic device. The MIPI module includes at least one MIPI interface. Wherein, 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 control the working mode of device A.

示例性的,该电子装置中预设有设备树源文件,该设备树源文件用于描述电子装置中的硬件组件的信息。其中,该设备树源文件中包括第一USID和第一MIPI接口地址,第一USID用于标识目标小板,第一USID与第一MIPI接口地址相对应。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. Wherein, the device tree source file includes a first USID and a first MIPI interface address, the first USID is used to identify the target small board, and the first USID corresponds to the first MIPI interface address.

可以理解的是,第一操作系统包括内核,内核用于进程管理,内存管理,设备管理,文件管理以及网络管理等等。启动第一操作系统的过程包括启动内核。It can be understood that the first operating system includes a kernel, and the kernel is used for process management, memory management, device management, file management, network management and so on. The process of starting the first operating system includes starting the kernel.

在一些实施例中,第一操作系统可以在内核启动阶段,通过内核解析该设备树源文件,获取第一小板对应的第一USID和第一MIPI接口地址。In some embodiments, the first operating system may parse the device tree source file through the kernel to obtain the first USID and the first MIPI interface address corresponding to the first small board during the kernel startup phase.

需要说明的是,在进行S502的操作前,可以先执行S503,将第一USID和第一MIPI接口配置在设备树源文件中。这样便于第一操作系统从该设备树源文件中获取该第一USID以及第一MIPI接口地址,进行后续的处理。It should be noted that before performing the operation of S502, S503 may be executed first to configure the first USID and the first MIPI interface in the device tree source file. This facilitates the first operating system to obtain the first USID and the first MIPI interface address from the device tree source file for subsequent processing.

S503、第一小板对应的第一USID和第一MIPI接口地址配置在设备树源文件。S503. Configure the first USID and the first MIPI interface address corresponding to the first small board in the device tree source file.

示例性的,第一小板对应的第一USID,以及第一MIPI接口地址可以配置在设备树源文件中的第一设备节点中。其中,设备树源文件可以存储在存储器中。这样,第一操作系统在执行S502的操作时,可以从存储器中获取该设备树源文件,并通过内核解析该设备树源文件中的第一设备节点,获取第一小板对应的第一USID,以及第一MIPI接口地址。Exemplarily, the first USID corresponding to the first board and the first MIPI interface address may be configured in the first device node in the device tree source file. Wherein, the device tree source file may 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 address of the first MIPI interface.

在S502和S503的说明中,均是以设备树源文件为例进行说明的,在本申请的另一些实施例中,还可以使用其他形式的文本文件,来描述第一小板对应的第一USID和第一MIPI接口地址,便于在后续使用时从该文本文件中读取第一USID和第一MIPI接口地址。In the descriptions of S502 and S503, the device tree source file is used as an example for description. In other embodiments of the present application, other forms of text files can also be used to describe the first The USID and the first MIPI interface address are convenient for reading the first USID and the first MIPI interface address from the text file during subsequent use.

在本申请的实施例中,第一操作系统在确定第三小板是否为目标小板之前,可以先执行S504的操作,获取第三小板上与第一MIPI接口所对应的第二USID,再将该第二USID与S502中获取到的第一USID进行比较,进而确定第三小板是否为目标小板。In the embodiment of the present application, before determining whether the third small board is the target small board, the first operating system may first perform the operation of S504 to obtain the second USID corresponding to the first MIPI interface on the third small board, Then compare the second USID with the first USID obtained in S502, and then determine whether the third small board is the target small board.

S504、第一操作系统根据第一MIPI接口地址,确定第三小板的第二USID。S504. The first operating system determines the second USID of the third small board according to the first MIPI interface address.

示例性的,该第一MIPI接口地址可以是第一操作系统从S503中的设备树源文件解析出来的。在另一些实现,该第一MIPI接口地址还可以直接写入第一操作系统的第一程序中。这样,在后续需要使用该第一MIPI接口地址时,第一操作系统可以从该第一程序中获取第一MIPI接口地址。Exemplarily, the first MIPI interface address may be resolved 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. In this way, when the first MIPI interface address needs to be used subsequently, the first operating system can acquire the first MIPI interface address from the first program.

第一操作系统在获取第一MIPI接口地址后,可以根据该第一MIPI接口地址,确定第三小板对应的第二USID。After obtaining the first MIPI interface address, the first operating system may determine the second USID corresponding to the third small board according to the first MIPI interface address.

在本申请实施例的具体实现中,结合图3的说明,第一操作系统的功能实现是在应用处理器上进行的,第三小板的功能实现是在第一调制解调器上进行。第三小板上与第一MIPI接口对应的第二USID可以从该第一调制解调器上获取。因此,第一操作系统在获取该第二USID时,还需要与第三小板所对应的第一调制解调器进行信息交互。In the specific implementation of the embodiment of the present application, with reference to the description of FIG. 3 , the function of the first operating system is implemented on the application processor, and the function of the third small board is implemented on the first modem. The second USID corresponding to the first MIPI interface on the third small board can be obtained from the first modem. Therefore, when the first operating system obtains the second USID, it also needs to perform information interaction with the first modem corresponding to the third small board.

示例性的,参考图6所示,第一操作系统可以通过图4中的无线接口层与硬件层中的第一调制解调器之间的信息交互,使得第一操作系统获取第三小板上与第一MIPI接口地址对应的第二USID。Exemplarily, as shown in FIG. 6, the first operating system may exchange information between the wireless interface layer in FIG. 4 and the first modem in the hardware layer, so that the first operating system acquires A second USID corresponding to the MIPI interface address.

如图6所示,该方案包括:As shown in Figure 6, the program includes:

S601、第一操作系统通过无线接口层向第一调制解调器发送第一AT命令。S601. The first operating system sends a first AT command to the first modem through the wireless interface layer.

在本示例中,第一操作系统的启动过程还包括无线接口层的启动。无线接口层在完全启动后,第一操作系统可以通过无线接口层向第一调制解调器发送第一注意(Attention,AT)命令。其中,该第一AT命令的参数中包括第一MIPI接口地址。第一AT命令用于获取第三小板上与第一MIPI接口对应的第二USID。在本申请的另一些实施例中,第一AT命令又可以称为第一命令。In this example, the starting process of the first operating system also includes starting the wireless interface layer. After the wireless interface layer is fully started, the first operating system may send a first attention (Attention, AT) command to the first modem through the wireless interface layer. Wherein, the parameters of the first AT command include the address of the first MIPI interface. The first AT command is used to obtain the second USID corresponding to the first MIPI interface on the third board. In other embodiments of the present application, the first AT command may also be called the first command.

可以理解的是,第一AT命令是第一调制解调器可以解析并执行的命令。It can be understood that the first AT command is a command that the first modem can parse and execute.

S602、第一调制解调器解析第一AT命令,获取第二USID。S602. The first modem parses the first AT command to acquire the second USID.

示例性的,第一调制解调器接收到第一AT命令后,解析该第一AT命令,获取第一MIPI接口地址。第一调制解调器根据第一MIPI接口地址,获取第三小板上与第一MIPI接口地址对应的第二USID。Exemplarily, after receiving the first AT command, the first modem parses the first AT command to obtain the address of the first MIPI interface. The first modem obtains the second USID corresponding to the first MIPI interface address on the third board according to the first MIPI interface address.

在本示例中,第一调制解调器获取第二USID后,可以执行S603的操作,将该第二USID发送到无线接口层。In this example, after the first modem acquires the second USID, it may perform operation S603 to send the second USID to the wireless interface layer.

S603、第一调制解调器向无线接口层发送第二USID。S603. The first modem sends the second USID to the wireless interface layer.

在本示例中,第一调制解调器完成S602的操作后,将获取到的第二USID作为第一AT命令的响应,发送给无线接口层。无线接口层接收到该第二USID后,执行S604的操作。In this example, after completing the operation of S602, the first modem sends the obtained second USID to the wireless interface layer as a response to the first AT command. After receiving the second USID, the wireless interface layer executes the operation of S604.

S604、无线接口层将第二USID配置到第一寄存器中。S604. The wireless interface layer configures the second USID into the first register.

示例性的,无线接口层接收到第二USID后,可以将该USID配置到第一寄存器中。其中,第一寄存器为应用处理器内部的寄存器,该第一寄存器对应第一地址。第一操作系统可以从该第一寄存器中读取数据。Exemplarily, after receiving the second USID, the wireless interface layer may configure the USID in the first register. Wherein, the first register is a register inside the application processor, and the first register corresponds to the first address. The first operating system can read data from the first register.

作为一种实现方式,无线接口层可以通过输入输出控制 (Input/OutputControl,IOCTL) 接口,实现将第二USID配置到第一寄存器中。As an implementation manner, the wireless interface layer may configure the second USID into the first register through an input/output control (Input/OutputControl, IOCTL) interface.

S605、第一操作系统向无线接口层发送第一指令。S605. The first operating system sends a first instruction to the wireless interface layer.

示例性的,第一系统可以在内核完成启动后,通过内核向无线接口层发送第一指令。该第一指令用于获取S604中的第一寄存器对应的第一地址。在本申请的另一些实施例中,第一指令又可以称为第二命令。Exemplarily, the first system may send the first instruction to the wireless interface layer through the kernel after the kernel finishes booting. The first instruction is used to acquire the first address corresponding to the first register in S604. In other embodiments of the present application, the first instruction may also be called a second command.

S606、无线接口层向第一操作系统返回第一寄存器对应的第一地址。S606. The wireless interface layer returns the first address corresponding to the first register to the first operating system.

示例性的,无线接口层接收到S605中的第一指令后,将第一寄存器对应的第一地址发送给第一操作系统。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.

S607、根据第一寄存器对应的第一地址,读取第二USID。S607. Read the second USID according to the first address corresponding to the first register.

示例性的,第一操作系统接收到无线接口层发送的第一寄存器对应的第一地址后,根据该第一地址,读取第一寄存器中存储的第二USID。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.

需要说明的是,在本申请的实施例中,在第一主板开机启动第一操作系统的过程中,无线接口层完成启动的时间早于内核完成启动的时间。因此,第一操作系统在执行S605的操作之前,无线接口层已经将第二USID配置到第一寄存器中。It should be noted that, in the embodiment of the present application, during the process of starting the first operating system on the first motherboard, the time when the wireless interface layer finishes starting is earlier than the time when the kernel finishes starting. Therefore, before the first operating system performs the operation of S605, the wireless interface layer has configured the second USID into the first register.

在上述示例中,是以将第二USID配置在第一寄存器中为例进行说明的。在本申请的另一些实施例中,无线接口层可以将接收到的第二USID存储到存储器中。第一操作系统可以从存储器中获取该第二USID。In the above example, the configuration of the second USID in the first register is taken as an example for illustration. In some other embodiments of the present application, the wireless interface layer may store the received second USID in a memory. The first operating system may obtain the second USID from memory.

这样,通过如图6所示的方法,第一操作系统通过内核可以获取到第三小板上与第一MIPI接口对应的第二USID。第一操作系统获取第二USID后,继续执行后续的处理,确定第三小板是否为目标小板的检测结果。In this way, through the method shown in FIG. 6 , the first operating system can obtain the second USID corresponding to the first MIPI interface on the third board through the kernel. After the first operating system acquires 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.

S505、第一操作系统根据第二USID与第一USID,确定匹配标识。S505. The first operating system determines a matching identifier according to the second USID and the first USID.

示例性的,第一操作系统将读取到的第三小板对应的第二USID,与设备树源文件中的第一USID进行比较,根据第二USID与第一USID是否一致,确定第三小板是否为目标小板。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 second USID is consistent with the first USID. Whether the platelet is the target platelet.

在一些实施例中,第一操作系统可以通过设置匹配标识的值,来指示第三小板是否为目标小板。匹配标识的值包括第一值,或者第二值。其中,第一值对应于第二USID与第一USID一致,即表示第三小板为目标小板。第二值对应于第二USID与第一USID不一致,即表示第三小板不是目标小板。In some embodiments, the first operating system may indicate whether the third small board is the target small board by setting a value of the matching flag. The value of the matching identifier includes the first value or the second value. Wherein, the first value corresponds to that the second USID is consistent with the first USID, which means that the third small plate is the target small plate. The second value corresponds to that the second USID is inconsistent with the first USID, that is, it indicates that the third small board is not the target small board.

示例性的,第一操作系统根据第二USID与第一USID一致,可以将匹配标识设为第一值,以指示第三小板为目标小板。在一些实现中,第一值可以为“1”。Exemplarily, the first operating system may set the matching identifier as the first value according to the second USID being consistent with the first USID, so as to indicate that the third small board is the target small board. In some implementations, the first value may be "1."

在另一些实现中,第一操作系统根据第二USID与第一USID不一致,可以将匹配标识设为第二值,以指示第三小板不是目标小板。在一些实现中,第二值可以为“0”。In some other implementations, according to the fact that the second USID is not consistent with the first USID, the first operating system may set the matching flag as the second value, to indicate that the third small board is not the target small board. In some implementations, the second value may be "0".

作为一种实现方式,第一操作系统在设置匹配标识的值为第一值和/或第二值后,可以继续进行S507的操作。As an implementation manner, the first operating system may continue to perform the operation of S507 after setting the value of the matching identifier to the first value and/or the second value.

在本实施例中,第一操作系统在进行S507的操作之前,可以先执行S506的操作,在存储器中创建第一存储节点,来存储第三小板是否为目标小板的检测结果。In this embodiment, before performing the operation of S507, the first operating system may execute 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.

S506、第一操作系统创建第一存储节点。S506. The first operating system creates a first storage node.

示例性的,该第一存储节点用于存储第三小板是否为目标小板的检测结果。第一存储节点中的数据保存在存储器上。第一操作系统在创建第一存储节点时,可以将第一存储节点命名为第一名称。这样,便于后续在需要读取该第一存储节点中的数据时,可以先根据该第一名称索引到该第一存储节点。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 on the memory. When creating the first storage node, the first operating system may name the first storage node with the first name. In this way, it is convenient to index to the first storage node according to the first name when the data in the first storage node needs to be read later.

作为一种实现方式,第一操作系统创建第一存储节点可以在S505的操作之前进行。例如,在第一主板开始进行开机时,第一操作系统执行该S506的操作,创建第一存储节点。As an implementation manner, the creation of the first storage node by the first operating system may be performed before operation of S505. For example, when the first mainboard starts to start, the first operating system executes the operation of S506 to create the first storage node.

作为另一种实现方式,第一操作系统创建第一存储节点还可以在执行S505的操作后进行。As another implementation manner, the creation of the first storage node by the first operating system may also be performed after performing the operation of S505.

在一些实施例中,第一操作系统在完成第一存储节点的创建后,可以执行S507的操作,将S505中的匹配标识存储在该第一存储节点中。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.

S507、第一操作系统将匹配标识存储在第一存储节点中。S507. The first operating system stores the matching identifier in the first storage node.

在一些实现中,第一操作系统可以将该第一值存储在第一存储节点中,便于后续从该第一存储节点中读取第三小板为目标小板的检测结果。In some implementations, the first operating system may store the first value in the first storage node, so as to facilitate subsequent reading of the detection result that the third small board is the target small board from the first storage node.

在另一些实现中,第一操作系统可以将该第二值存储在第一存储节点中,便于后续从该第一存储节点中读取第三小板不是目标小板的检测结果。In some other implementations, the first operating system may store the second value in the first storage node, so as to facilitate subsequent reading of the detection result that the third small board is not the target small board from the first storage node.

在本申请的另一些实施例中,第一操作系统在执行S505的操作后,可以将该匹配标识对应的值存储在存储器的第三地址上。以便于在后续的处理中,从存储器的第三地址中获取匹配标识对应的值。In some other embodiments of the present application, after performing the operation of S505, the first operating system may store the value corresponding to the matching identifier at the third address of the memory. In order to obtain the value corresponding to the matching identifier from the third address of the memory in subsequent processing.

例如,第一操作系统可以将匹配标识的第一值存储在存储器的第三地址中,便于后续从该存储器的第三地址中读取第三小板为目标小板的检测结果。For example, the first operating system may store the first value of the matching identifier in a third address of the memory, so as to facilitate subsequent reading of the detection result that the third small board is the target small board from the third address of the memory.

又如,第一操作系统可以将匹配标识的第二值存储在存储器的第三地址中,便于后续从该存储器的第三地址中读取第三小板不是目标小板的检测结果。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 subsequent reading of the detection result that the third small board is not the target small board from the third address of the memory.

在本申请的实施例中,通过S501至S507的操作,第一操作系统从设备树源文件的第一设备节点中获取第一USID,以及第一MIPI接口地址,并且根据第一MIPI接口地址,从第三小板所对应的第一调制解调器中获取第二USID。第一操作系统根据第一USID与第二USID是否一致,确定匹配标识的值,来指示第三小板是否为目标小板,并将该匹配标识的值保存在存储器中。进而完成了对第三小板是否为目标小板的检测结果的确定。In the embodiment of the present application, through the operations from S501 to S507, the first operating system obtains the first USID and the first MIPI interface address from the first device node in the device tree source file, and according to the first MIPI interface address, Obtain the second USID from the first modem corresponding to the third small board. According to whether the first USID is consistent with the second USID, the first operating system determines the value of the matching flag to indicate whether the third small board is the target small board, and stores the value of the matching flag in the memory. Furthermore, the determination of the detection result of whether the third small plate is the target small plate is completed.

在本申请的另一些实施例中,参考图7,以该检测结果存储在第一存储节点中为例。在电子装置完成对第三小板是否为目标小板的检测结果的确定后,显示单元可以获取第一存储节点中匹配标识所指示的检测结果,并对该检测结果进行显示。其中,该显示单元可以包括显示单元A或者显示单元B。显示单元A与电子装置相连接,显示单元B配置在电子装置中。在本申请的另一些实施例中,显示单元A又可以称为第二显示单元,显示单元B又可以称为第一显示单元。In some other embodiments of the present application, referring to FIG. 7 , it is taken that the detection result is 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 may obtain the detection result indicated by the matching identifier in the first storage node, and display the detection result. Wherein, the display unit may include a display unit A or a display unit B. The display unit A is connected to the electronic device, and the display unit B is configured in the electronic device. In other embodiments of the present application, the display unit A may also be called the second display unit, and the display unit B may also be called the first display unit.

以下结合附图,对显示单元A获取该检测结果,并显示检测结果的实现方式进行详细说明。The following describes in detail how the display unit A obtains the detection result and displays the detection result with reference to the accompanying drawings.

示例性的,在第一主板完成开机的情况下,第一主板上运行的第一操作系统可以从第一存储节点读取匹配标识。第一操作系统根据从第一存储节点中读取到的匹配标识是否包括第一值或者第二值,向显示单元A发送相应的提示信息。显示单元A接收到该提示信息后,显示提示信息。其中,该提示信息包括第一提示信息,或者第二提示信息。第一提示信息用于指示第三小板为目标小板,第二提示信息用于指示第三小板不是目标小板。Exemplarily, when the first mainboard is powered on, the first operating system running on the first mainboard may 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. Wherein, the prompt information includes first prompt information or second prompt information. The first prompt information is used to indicate that the third small plate is the target small plate, and the second prompt information is used to indicate that the third small plate is not the target small plate.

可以理解的是,在一些具体实现中,第一操作系统在执行从第一存储节点中获取匹配标识的操作时,还需要检索该第一存储节点。在第一存储节点创建失败的请况下,第一操作系统检索不到该第一存储节点,即第一存储节点不存在。导致第一操作系统获取不到匹配标识。It can be understood that, in some specific implementations, when the first operating system performs the operation of obtaining the matching identifier from the first storage node, it also needs to retrieve the first storage node. When the creation of the first storage node fails, the first operating system cannot retrieve the first storage node, that is, the first storage node does not exist. As a result, the first operating system cannot obtain the matching identifier.

因此,在本申请的另一些实现中,该提示信息还可以包括第三提示信息,该第三提示信息用于指示创建第一存储节点失败。第一操作系统在第一存储节点不存在时,向显示单元A发送第三提示信息。Therefore, in some other implementations of the present application, the prompt information may further include third prompt information, where the third prompt information is used to indicate that the creation of the first storage node fails. The first operating system sends third prompt information to the display unit A when the first storage node does not exist.

作为一种实现方式,参考图8,显示单元A上包括USB驱动。在显示单元A与第一主板通过USB数据线连接,且第一主板处于正常开机的情况下,显示单元A可以通过该USB驱动识别、管理和控制第一主板。进而显示单元A与第一主板可以通过该USB驱动进行信息交互,执行如图8所示的处理。As an implementation manner, referring to FIG. 8 , the display unit A includes a USB driver. When the display unit A is connected to the first main board through a USB data cable, and the first main board is powered on normally, the display unit A can identify, manage and control the first main board through the USB driver. Furthermore, the display unit A and the first motherboard can exchange information through the USB driver, and execute the processing shown in FIG. 8 .

可以理解的是,在进行图8所示的操作时,显示单元A与第一主板通过USB数据线进行连接,且第一主板处于正常开机状态。It can be understood that, when performing the operations shown in FIG. 8 , the display unit A is connected to the first main board through a USB data cable, and the first main board is in a normal power-on state.

如图8所示,该方案包括:As shown in Figure 8, the program includes:

S801、显示单元A向第一主板发送第二AT命令。S801. The display unit A sends a second AT command to the first main board.

示例性的,在显示单元A与第一主板通过USB数据线连接后,USB驱动会提供第一USB接口。显示单元A可以通过该第一USB接口向第一主板发送第二AT命令。其中,该第二AT命令用于获取提示信息。在本申请的另一些实施例中,第二AT命令又可以称为第三命令。Exemplarily, after the display unit A is connected to the first motherboard through the USB data cable, the USB driver will provide the first USB interface. The display unit A can send the second AT command to the first motherboard through the first USB interface. Wherein, the second AT command is used to acquire prompt information. In some other embodiments of the present application, the second AT command may also be called a third command.

作为一种实现方式,显示单元A上安装有应用A。应用A可以实现显示单元A通过第一USB接口向第一主板发送第二AT命令。应用A对应的用户界面上可以显示该第二AT命令。显示单元A可以在测试人员的指示下,通过该应用A向第一主板发送该第二AT命令。As an implementation manner, an application A is installed on the display unit A. The application A can realize that the display unit A sends the second AT command to the first motherboard through the first USB interface. The second AT command may be displayed on the user interface corresponding to application A. The display unit A may send the second AT command to the first motherboard through the application A under the instruction of the tester.

例如,参考图9,显示单元A在检测到测试人员双击应用A所对应图标的操作时,运行应用A,并显示如图9所示的第一界面。测试人员在需要设置接口号时,可以点击第一界面上的第一控件。相应的,显示单元A在检测到测试人员点击第一控件的操作时,可以将接口号设置为第一USB接口。这样,显示单元A就可以通过该第一USB接口向显示单元A所连接的第一主板发送第二AT命令。For example, referring to FIG. 9 , when the display unit A detects that the tester double-clicks the icon corresponding to the application A, it runs the application A and displays the first interface as shown in FIG. 9 . 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 on the first control, the interface number can be set as the first USB interface. In this way, the display unit A can send the second AT command to the first motherboard connected to the display unit A through the first USB interface.

其中,第一界面还包括第一区域,第一区域用于显示单元A发送第二AT命令。Wherein, the first interface further includes a first area, and the first area is used for the display unit A to send the second AT command.

具体的,显示单元A可以在测试人员的指示下在第一区域上输入第二AT命令。显示单元A在检测到测试人员点击第一界面上的第二控件的操作时,可以将第一区域输入的第二AT命令通过第一USB接口发送给显示单元A所连接的第一主板。Specifically, the display unit A may input the second AT command on the first area under the instruction of the tester. When the display unit A detects that the tester clicks on the second control on the first interface, it can send the second AT command input in the first area to the first motherboard connected to the display unit A through the first USB interface.

在本实施例中,第一主板上运行的第一操作系统在接收到该第二AT命令后,开始执行如下的处理:In this embodiment, after receiving the second AT command, the first operating system running on the first motherboard starts to perform the following processing:

S802、接收到第二AT命令时,索引第一存储节点。S802. When receiving the second AT command, index the first storage node.

可以理解的是,第一操作系统在获取第一存储节点中存储的匹配标识之前,需要先索引到该第一存储节点。It can be understood that, before obtaining the matching identifier stored in the first storage node, the first operating system needs to index to the first storage node.

结合前述说明,第一操作系统将第一存储节点命名为第一名称。在第一主板接收到显示单元A发送的第二AT命令后,第一操作系统可以根据该第一名称,索引到该第一存储节点。With reference to the foregoing description, the first operating system names the first storage node a first name. After the first motherboard receives the second AT command sent by the display unit A, the first operating system can index to the first storage node according to the first name.

S803、判断是否索引到第一存储节点。S803. Determine whether to index to the first storage node.

在本申请的一些实现中,在第一存储节点创建失败的情况下,会导致第一操作系统索引不到该第一存储节点。因此,第一操作系统还需要判断是否索引到第一存储节点。In some implementations of the present application, if the creation of the first storage node fails, the first operating system cannot index the first storage node. Therefore, the first operating system also needs to determine whether to index to the first storage node.

作为一种实现方式,第一操作系统在索引到第一存储节点时,继续进行S804的操作。As an implementation manner, the first operating system continues to perform the operation of S804 when indexing to the first storage node.

作为另一实现方式,第一操作系统在索引不到第一存储节点时,表示第一存储节点不存在。第一操作系统可以进行S808的操作。As another implementation manner, when the first operating system fails to index the first storage node, it indicates that the first storage node does not exist. The first operating system can perform the operation of S808.

S804、读取第一存储节点中存储的匹配标识。S804. Read the matching identifier stored in the first storage node.

示例性的,第一操作系统在索引到该第一存储节点后,开始进行读取第一存储节点中存储的匹配标识。第一操作系统在完成读取第一存储节点中存储的匹配标识后,可以继续进行后续的处理。Exemplarily, after indexing to the first storage node, the first operating system starts to read the matching identifier stored in the first storage node. After the first operating system finishes reading the matching identifier stored in the first storage node, it can continue to perform subsequent processing.

作为一种实现方式,第一操作系统在完成读取第一存储节点中存储的匹配标识后,可以读取到的匹配标识发送到显示单元A。显示单元A显示该匹配标识。As an implementation manner, the first operating system may send the read matching identifier to the display unit A after reading the matching identifier stored in the first storage node. Display unit A displays the matching identification.

作为另一种实现方式,第一操作系统在完成S804的操作后,可以对读取到的匹配标识进行判断。第一操作系统根据读取到的匹配标识是否包括第一值或者第二值,生成对应的提示信息,发送到显示单元A。显示单元A显示该提示信息。具体的操作如下:As another implementation manner, after the operation of S804 is completed, the first operating system may judge the read matching identifier. According to whether the read matching identifier includes the first value or the second value, the first operating system generates corresponding prompt information and sends it to the display unit A. The display unit A displays the prompt information. The specific operation is as follows:

S805、判断匹配标识是否包括第一值。S805. Determine whether the matching identifier includes the first value.

在一些实现中,第一操作系统在判断读取到的匹配标识包括第一值的情况下,继续进行S806的操作。In some implementations, when the first operating system determines that the read matching identifier includes the first value, the operation of S806 is continued.

在另一些实现中,第一操作系统在判断读取到的匹配标识不包括第一值的情况下,继续进行S807的操作。In some other implementations, when the first operating system determines that the read matching identifier does not include the first value, the operation of S807 is continued.

需要说明的是,在S805的说明中,是以第一操作系统执行对匹配标识是否包括第一值的判断为例进行说明的。结合前述说明,第一匹配标识包括第一值或者第二值。因此,在本申请的另一些实施例中,第一操作系统还可以根据匹配标识是否包括第二值,向显示单元A发送对应的提示信息。It should be noted that, in the description of S805, the first operating system performs the judgment on whether the matching identifier includes the first value as an example. With reference to the foregoing description, the first matching identifier includes the first value or the second value. Therefore, in some other embodiments of the present application, the first operating system may also send corresponding prompt information to the display unit A according to whether the matching identifier includes the second value.

S806、向显示单元A发送第一提示信息。S806. Send the first prompt information to the display unit A.

示例性的,第一操作系统在判断读取到的匹配标识包括第一值的情况下,向显示单元A发送第一提示信息。Exemplarily, the first operating system sends the first prompt information to the display unit A in the case of judging that the read matching identifier includes the first value.

例如,第一操作系统在执行S804的操作,判断读取到的匹配标识包括第一值的情况下,通过第一USB接口向显示单元A发送第一提示信息。其中,第一提示信息可以包括匹配标识的第一值。第一值对应于第三小板为目标小板。For example, the first operating system sends the first prompt information to the display unit A through the first USB interface in the case of performing the operation of S804 and judging that the read matching identifier includes the first value. Wherein, the first prompt information may include a first value of the matching identifier. The first value corresponds to the third platelet being the target platelet.

S807、向显示单元A发送第二提示信息。S807. Send the second prompt information to the display unit A.

示例性的,第一操作系统在执行S805的操作,判断读取到的匹配标识不包括第一值的情况下,即匹配标识包括第二值的情况下,向显示单元A发送第二提示信息。Exemplarily, when the first operating system executes the operation of S805 and judges that the read matching identifier does not include the first value, that is, when the matching identifier includes the second value, it sends the second prompt information to the display unit A .

例如,第一操作系统在判断读取到的匹配标识不包括第一值的情况下,通过第一USB接口向显示单元A发送第二提示信息。其中,第二提示信息可以包括匹配标识的第二值。第二值对应于第三小板不是目标小板。For example, when the first operating system determines that the read matching identifier does not include the first value, it sends the second prompt information to the display unit A through the first USB interface. Wherein, the second prompt information may include a second value of the matching identifier. The second value corresponds to the third platelet being not the target platelet.

S808、向显示单元A发送第三提示信息。S808. Send the third prompt information to the display unit A.

示例性的,第一操作系统在执行S802的操作,在索引不到第一存储节点的情况下,向显示单元A发送第三提示信息。Exemplarily, the first operating system sends the third prompt information to the display unit A when the operation of S802 is not found in the index.

例如,第一操作系统在索引不到第一存储节点的情况下,通过第一USB接口向显示单元A发送第三提示信息。该第三提示信息用于指示第一存储节点创建失败。For example, the first operating system sends the third prompt information to the display unit A through the first USB interface when the first storage node cannot be indexed. The third prompt information is used to indicate that the creation of the first storage node fails.

在上述示例中,第一操作系统在接收到显示单元A发送的第二AT命令后,通过S802至S808的操作,实现从第一存储节点中读取匹配标识。第一操作系统根据匹配标识是否包括第一值或者第二值,通过第一USB接口向显示单元A返回对应的提示信息。显示单元A在接收到提示信息后,可以继续进行S809至S811的处理,对提示信息进行显示。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 from S802 to S808. The first operating system returns 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 may continue to perform the processing from S809 to S811 to display the prompt information.

在一些实现中,参考图9,应用A对应的第一界面还包括第二区域,第二区域用于显示显示单元A接收到的提示信息。显示单元A在接收到第一操作返回的提示信息后,可以实现在第一界面的第二区域上显示该提示信息。In some implementations, referring to FIG. 9 , the first interface corresponding to application A further 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, the display unit A may display the prompt information on the second area of the first interface.

S809、显示单元A显示第一提示信息。S809. The display unit A displays the first prompt information.

示例性的,在显示单元A接收到第一操作系统发送的第一提示信息后,图9中的第二区域可以显示该第一提示信息。Exemplarily, after the display unit A receives the first prompt information sent by the first operating system, the second area in FIG. 9 may display the first prompt information.

例如,以该第一提示信息包括 “PASS”为例,如图10所示,在显示单元A接收到该第一提示信息后,应用A可以对应有如图10所示的第二界面。在该第二界面的第二区域上对应显示第一提示信息,来指示第三小板为目标小板。这样,用户可以根据该匹配标识的第一值,确定第三小板为目标小板,便于进行后续的测试和处理。For example, taking the first prompt information including "PASS" as an example, as shown in FIG. 10 , after the display unit A receives the first prompt information, application A may correspond to a second interface as shown in FIG. 10 . The first prompt information 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 the third small board as the target small board according to the first value of the matching identifier, which facilitates subsequent testing and processing.

S810、显示单元A显示第二提示信息。S810. The display unit A displays the second prompt information.

示例性的,在显示单元A接收到第一操作系统发送的第二提示信息后,图9中的第二区域可以显示该第二提示信息。例如,该第一提示信息可以包括 “FAIL”。这样,用户可以根据该第二提示信息,确定第三小板不是目标小板,便于进行后续的处理。Exemplarily, after the display unit A receives the second prompt information sent by the first operating system, the second area in FIG. 9 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 plate is not the target small plate according to the second prompt information, which facilitates subsequent processing.

S811、显示单元A显示第三提示信息。S811. The display unit A displays third prompt information.

示例性的,在显示单元A接收到第一操作系统发送的第三提示信息后,图9中的第二区域可以显示该第三提示信息。例如,该第三提示信息可以包括“ERROR”。这样,用户可以根据该第三提示信息,确定第一存储节点创建失败,便于进行后续的调试。Exemplarily, after the display unit A receives the third prompt information sent by the first operating system, the second area in FIG. 9 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 facilitates subsequent debugging.

在图8的示例中,在显示单元A与第一主板通过USB匹配标识线进行物理连接,且第一主板完成开机的情况下,通过显示单元A中的USB驱动提供的第一USB接口,显示单元A向第一主板发送第二AT命令。第一主板中的第一操作系统在接收到显示单元A发送的第二AT命令后,根据图8中的方案,向显示单元A返回相应的提示信息。显示单元A接收到提示信息后,显示提示信息,来指示第三小板是否为目标小板的检测结果。In the example of FIG. 8, when the display unit A is physically connected to the first motherboard through the USB matching identification line, and the first motherboard is turned on, the first USB interface provided by the USB driver in the display unit A displays Unit A sends a second AT command to the first motherboard. After receiving the second AT command sent by the display unit A, the first operating system in the first motherboard returns corresponding prompt information to the display unit A according to the solution in FIG. 8 . After receiving the prompt information, the display unit A displays the prompt information to indicate whether the third small plate is the detection result of the target small plate.

上述示例仅为一种可能的实现方式,显示单元A需要和第一主板通过USB数据线进行连接,实现第一主板和显示单元A之间的信息交互。进而使得显示单元A获取到第一主板发送的提示信息,以及对提示信息进行显示。在一些实现中,显示单元A可以为装配设备,装配设备与第一主板连接,进行上述示例的执行。The above example is only a possible implementation manner, and the display unit A needs to be connected to the first main board through a USB data cable to realize information exchange between the first main board and the display unit A. Furthermore, the display unit A acquires the prompt information sent by the first main board, and displays the prompt information. In some implementations, the display unit A may be an assembly device, and the assembly device is connected to the first main board to perform the above examples.

在本申请的另一些实施例中,还可以通过显示单元B来实现检测结果的显示,显示单元B包括第一主板和第一显示屏。第一主板通过第一控制接口,获取图5中的检测结果,并在第一显示屏上显示相应的提示信息,来指示第三小板是否为目标小板的检测结果。也就是说,显示单元B对应的功能可以由第一主板和第一显示屏来进行实现。In some other embodiments of the present application, the display of the detection result can also be realized through the display unit B, and the display unit B includes a first main board and a first display screen. The first main board obtains the detection result in FIG. 5 through the first control interface, and displays corresponding prompt information on the first display screen to indicate whether the third small board is the detection result of the target small board. That is to say, the function corresponding to the display unit B can be realized by the first main board and the first display screen.

示例性的,参考图11,第一主板连接有第一显示屏,第一显示屏上显示有第一主板上安装的应用B。该应用B包括第一控制接口。第一操作系统在检测到点击该应用B的操作时,可以通过该第一控制接口读取第一存储节点中的匹配标识。并根据读取的匹配标识是否包括第一值或者第二值,在第一显示屏上显示相应的提示信息。在本申请的另一些实施例中,应用B又可以称为第一应用。Exemplarily, referring to 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 the operation of clicking 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, corresponding prompt information is displayed on the first display screen. In other embodiments of the present application, application B may also be called the first application.

结合前述说明,该提示信息包括第一提示信息,第二提示信息,以及第三提示信息中的一种。第一提示信息用于指示第三小板为目标小板,第二提示信息用于指示第三小板不是目标小板,第三提示信息用于指示创建第一存储节点失败。With reference to the foregoing description, the prompt information includes one of first prompt information, second prompt information, and 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.

如图11所示,该方案包括:As shown in Figure 11, the program includes:

S1101、输入第一操作。S1101. Input a first operation.

示例性,该第一操作对应于点击应用B,使得第一操作系统通过第一控制接口开始执行后续的处理。Exemplarily, the first operation corresponds to clicking the application B, so that the first operating system starts to execute subsequent processing through the first control interface.

例如,参考图11,可以通过测试人员点击第一显示屏上的图标101,输入第一操作。For example, referring to FIG. 11 , the tester may click the icon 101 on the first display screen to input the first operation.

在本实施例中,在检测到第一操作时,第一操作系统开始执行如下的处理:In this embodiment, when the first operation is detected, the first operating system starts to perform the following processing:

S1102、检测到第一操作时,索引第一存储节点。S1102. When the first operation is detected, index the first storage node.

可以理解的是,第一操作系统在获取第一存储节点中存储的匹配标识之前,需要先索引到该第一存储节点。It can be understood that, before obtaining the matching identifier stored in the first storage node, the first operating system needs to index to the first storage node.

结合前述说明,第一操作系统将第一存储节点命名为第一名称。第一操作系统在检测点击应用B的操作时,可以根据该第一名索引到该第一存储节点。With reference to the foregoing description, the first operating system names the first storage node a first name. When the first operating system detects the operation of clicking the application B, it may index to the first storage node according to the first name.

S1103、判断是否索引到第一存储节点。S1103. Determine whether to index to the first storage node.

结合图8的说明,第一存储节点创建失败会导致第一操作系统索引不到该第一存储节点。因此,第一操作系统还需要判断是否索引到第一存储节点。With reference to the description of FIG. 8 , failure to create the first storage node will cause the first operating system to fail to index the first storage node. Therefore, the first operating system also needs to determine whether to index to the first storage node.

作为一种实现方式,第一操作系统在索引到第一存储节点时,继续进行S1104的操作。As an implementation manner, the first operating system continues to perform the operation of S1104 when indexing to the first storage node.

作为另一实现方式,第一操作系统在索引不到第一存储节点时,表示第一存储节点不存在。第一操作系统可以进行S1108的操作。As another implementation manner, when the first operating system fails to index the first storage node, it indicates that the first storage node does not exist. The first operating system can perform the operation of S1108.

S1104、读取第一存储节点中存储的匹配标识。S1104. Read the matching identifier stored in the first storage node.

示例性的,第一操作系统在索引到该第一存储节点后,开始进行读取第一存储节点中存储的匹配标识。Exemplarily, after indexing to the first storage node, the first operating system starts to read the matching identifier stored in the first storage node.

作为一种实现方式,第一操作系统在完成读取第一存储节点中存储的匹配标识后,可以直接在第一显示屏上进行显示该匹配标识。As an implementation manner, the first operating system may directly display the matching identifier on the first display screen after reading the matching identifier stored in the first storage node.

作为另一种实现方式,第一操作系统在完成S1104的操作后,可以对读取的匹配标识到匹配标识进行判断。第一操作系统根据读取到的匹配标识是否包括第一值或者第二值,生成对应的提示信息,并在第一显示屏上显示提示信息。具体操作如下:As another implementation manner, after the operation of S1104 is completed, the first operating system may judge from the read matching identifiers to matching identifiers. 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:

S1105、判断匹配标识是否包括第一值。S1105. Determine whether the matching identifier includes the first value.

在一些实现中,第一操作系统在判断读取到的匹配标识包括第一值的情况下,继续进行S1106的操作。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.

在另一些实现中,第一操作系统在判断读取到的匹配标识不包括第一值的情况下,继续进行S1107的操作。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.

需要说明的是,在S1105的说明中,是以第一操作系统执行对匹配标识是否包括第一值的判断为例进行说明的。在本申请的另一些实施例中,第一操作系统可以判断匹配标识是否包括第二值。第一操作系统根据匹配标识是否包括第二值,在第一显示屏上信息相应的提示信息。It should be noted that, in the description of S1105, the first operating system performs the judgment on whether the matching identifier includes the first value as an example. In some other embodiments of the present application, the first operating system may 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.

S1106、在第一显示屏上显示第一提示信息。S1106. Display first prompt information on the first display screen.

示例性的,第一操作系统在判断读取到的匹配标识包括第一值的情况下,在第一主板所连接的第一显示屏上显示第一提示信息。其中,第一提示信息可以包括匹配标识的第一值。第一值对应于第三小板为目标小板。Exemplarily, when the first operating system determines that the read matching identifier includes the first value, it displays the first prompt information on the first display screen connected to the first motherboard. Wherein, the first prompt information may include a first value of the matching identifier. The first value corresponds to the third platelet being the target platelet.

例如,以该第一提示信息包括 “PASS”为例,在如图12所示的102界面上,第一显示屏会显示多个测试项的测试结果。该多个测试项包括测试项1以及测试项2等。其中,测试项1对应于第三小板是否为目标小板。在第一操作系统判断读取到的匹配标识包括第一值的情况下,图12中的102界面可以显示该第一提示信息。这样,检测人员可以根据该第一提示信息,确定第三小板为目标小板,便于进行后续的测试和处理。For example, taking the first prompt information including "PASS" as an example, on the interface 102 shown in Figure 12, the first display screen will display the test results of multiple test items. The multiple test items include test item 1, test item 2 and so on. Wherein, test item 1 corresponds to whether the third small plate is the target small plate. In the case where the first operating system determines that the read matching identifier includes the first value, interface 102 in FIG. 12 may display the first prompt information. In this way, the inspector can determine the third small plate as the target small plate according to the first prompt information, which facilitates subsequent testing and processing.

S1107、在第一显示屏上显示第二提示信息。S1107. Display second prompt information on the first display screen.

示例性的,第一操作系统在执行S1104的操作,判断读取到的匹配标识不包括第第一值的情况下,即在该匹配标识包括第二值时,第一操作系统在第一主板所连接的第一显示屏上显示第二提示信息。其中,第二提示信息可以包括匹配标识的第二值。第二值对应于第三小板不是目标小板。Exemplarily, when the first operating system executes the operation of S1104 and judges 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 executes the operation on the first motherboard. A second prompt message is displayed on the connected first display screen. Wherein, the second prompt information may include a second value of the matching identifier. The second value corresponds to the third platelet being not the target platelet.

例如,以该第二提示信息包括 “FAIL”为例,结合前述说明,在如图13所示的103界面上,测试项1对应于第一主板与第三小板是否匹配正确。在第一操作系统判断读取到的匹配标识不包括第一值的情况下,图13中的103界面可以显示该第二提示信息。这样,检测人员可以根据该第二提示信息,确定第三小板不是目标小板,并指示暂停后续的测试项的测试。For example, taking the second prompt message including "FAIL" as an example, in combination with the foregoing description, on the interface 103 shown in FIG. 13 , test item 1 corresponds to whether the first main board and the third small board are matched correctly. In the case where the first operating system judges that the read matching identifier does not include the first value, interface 103 in FIG. 13 may display the second prompt information. In this way, the inspector 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 of the test item.

S1108、在第一显示屏上显示第三提示信息。S1108. Display third prompt information on the first display screen.

示例性的,第一操作系统在执行S1102的操作,索引不到第一存储节点的情况下,在第一主板所连接的显示屏上显示第三提示信息。其中,第三提示信息可以包括第三值。第三值对应于第一存储节点创建失败。Exemplarily, the first operating system displays third prompt information on a display screen connected to the first mainboard when the operation of S1102 is performed and the first storage node cannot be indexed. Wherein, the third prompt information may include a third value. The third value corresponds to failure to create the first storage node.

例如,以该第三提示信息包括 “ERROR”为例,结合前述说明,在如图14所示的104界面上,测试项1对应于第一主板与第三小板是否匹配正确。在索引不到第一存储节点的情况下,图14中的104界面可以显示该第三提示信息。这样,检测人员可以根据该第三提示信息,确定第一存储节点创建失败,并指示暂停后续的测试项的测试,便于进行后续的调试。For example, taking the third prompt message including "ERROR" as an example, combined with the foregoing description, on the interface 104 shown in FIG. 14 , test item 1 corresponds to whether the first main board and the third small board are matched correctly. If the first storage node cannot be indexed, interface 104 in FIG. 14 may display the third prompt information. In this way, the inspector can determine that the creation of the first storage node fails according to the third prompt information, and instructs to suspend the testing of subsequent test items, so as to facilitate subsequent debugging.

结合前述说明,根据图11中的方案,在检测到检测人员输入点击应用B的操作时,第一操作系统通过第一控制接口开始检索第一存储节点,读取第一存储节点中的匹配标识。根据第一存储节点中的匹配标识是否包括第一值,第一主板所连接的第一显示屏显示对应的提示信息。这样,使得检测人员可以通过第一主板所连接的第一显示屏上获取第三小板是否为目标小板的检测结果。In combination with the foregoing description, according to the scheme in FIG. 11 , when detecting the operation of clicking on the application B by the detection personnel, the first operating system starts to search 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 motherboard displays corresponding prompt information. In this way, the inspector can obtain the detection result of whether the third small board is the target small board through the first display screen connected to the first main board.

在上述实施例中,均是以USID为例,对确定第三小板是否为目标小板的方法进行说明的。在本申请的另一些实施例中,第一MIPI接口地址还对应有其他类型的标识,如PID(Product ID,产品标识码),MID(Manufacturer ID,生产商标识码)。电子装置还可以将PID值,和/或MID值作为每种小板对应的标识,执行如图5以及图6中所示的方法,确定第三小板是否为目标小板。In the foregoing embodiments, the USID is taken as an example to describe the method for determining whether the third small board is the target small 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, product identification code) and MID (Manufacturer ID, manufacturer identification code). The electronic device may also use the PID value and/or the MID value as the identification corresponding to each small board, and execute the methods shown in FIG. 5 and FIG. 6 to determine whether the third small board is the target small board.

另外,上述实施中,均是以检测第三小板是否为目标小板进行说明的。在本申请的另一些实施例中,还可以针对其他类型的电路板进行上述方案的检测,如USB对应的电路板,或者柔性电路板等。In addition, in the above implementations, the description is made by detecting whether the third small plate is the target small plate. In some other embodiments of the present application, the detection of the above solution may also be performed on other types of circuit boards, such as circuit boards corresponding to USB, or flexible circuit boards.

上述主要从各个功能模块的角度对本申请实施例提供的方案进行了介绍。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of each functional module. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

请参考图15,为本申请实施例提供的又一种电子装置的组成示意图。该电子装置可以为上述实施例中涉及的电子装置。如图15所示,该电子装置1300可以包括:处理器1301和存储器1302。该存储器1302用于存储计算机执行指令。示例性的,在一些实施例中,电子装置包括第一主板,和第三小板,第一主板与第三小板相连接,电子装置用于检测第三小板。当该处理器1301执行该存储器1302存储的指令时,可以使得该电子装置1300执行上述实施例中涉及的任一种所示的技术方案。Please refer to FIG. 15 , which is a schematic composition diagram of another electronic device provided by the embodiment of the present application. The electronic device may be the electronic device involved in the foregoing embodiments. As shown in FIG. 15 , the electronic device 1300 may include: a processor 1301 and a memory 1302 . The memory 1302 is used to store computer-executable 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 instruction stored in the memory 1302, the electronic device 1300 can be made to execute any one of the technical solutions mentioned in the above-mentioned embodiments.

在一些实施例中,电子装置还包括显示单元B,显示单元B配置有第一显示屏,第一显示屏和第一主板相连接。显示单元B用于显示提示信息,该提示信息用于指示第三小板是否为目标电路板。In some embodiments, the electronic device further includes a display unit B, the display unit B is configured with a first display screen, and the first display screen is connected to the first main board. The display unit B is used to display prompt information, and the prompt information is used to indicate whether the third small board is the target circuit board.

在另一些实施例中,该电子装置连接有显示单元A,该显示单元A用于显示提示信息。在一些实现中,该显示单元A独立于电子装置,具有显示功能。In some other embodiments, the electronic device is connected with a display unit A, and the display unit A is used for displaying prompt information. In some implementations, the display unit A is independent of the electronic device and has a display function.

需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, and will not be repeated here.

图16示出了的一种芯片系统1400的组成示意图。该芯片系统1400可以包括:处理器1401和通信接口1402,用于支持相关设备(如电子装置)实现上述实施例中所涉及的功能。在一种示例中,芯片系统还包括存储器,用于保存终端必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。需要说明的是,在本申请的一些实现方式中,该通信接口1402也可称为接口电路。FIG. 16 shows a schematic composition diagram of a chip system 1400 . The chip system 1400 may include: a processor 1401 and a communication interface 1402, configured to support related devices (such as electronic devices) to implement the functions involved in the foregoing embodiments. In an example, the chip system further includes a memory for storing necessary program instructions and data of the terminal. The system-on-a-chip may consist of chips, or may include chips and other discrete devices. It should be noted that, in some implementation manners of the present application, the communication interface 1402 may also be called an interface circuit.

需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, and will not be repeated here.

在上述实施例中的功能或动作或操作或步骤等,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital suA2scriA2er line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。The functions or actions or operations or steps in the above-mentioned embodiments may be fully or partially implemented by software, hardware, firmware or any combination thereof. When implemented using a software program, it may 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 the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in 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, computer, server, or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or may include one or more data storage devices such as servers and data centers that can be integrated with the medium. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)) and the like.

尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包括这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the application fall within the scope of the claims of the application and their equivalent technologies, the application also intends to include these modifications and variations.

Claims (22)

1.一种电路板检测方法,其特征在于,所述方法应用于电子装置,所述电子装置包括第一电路板,所述第一电路板上运行有第一操作系统;所述电子装置还装配有第二电路板,所述方法用于检测所述第二电路板;所述方法包括:1. A circuit board detection method, characterized in that, the method is applied to an electronic device, and the electronic device comprises a first circuit board, and a first operating system runs on the first circuit board; the electronic device also equipped with a second circuit board, the method for testing the second circuit board; the method comprising: 通过所述第一操作系统获取第一标识;所述第一标识预先存储在所述第一电路板中;所述第一标识用于标识目标电路板;Obtaining a first identification through the first operating system; the first identification is pre-stored in the first circuit board; the first identification is used to identify a target circuit board; 通过所述第一操作系统获取第二标识;所述第二标识用于标识所述第二电路板;Obtaining a second identification through the first operating system; the second identification is used to identify the second circuit board; 通过所述第一操作系统判断所述第一标识与所述第二标识是否一致;在所述第一标识与所述第二标识一致时,确定所述第二电路板为所述目标电路板;在所述第一标识与所述第二标识不一致时,确定所述第二电路板不是所述目标电路板。Determine whether the first identification is consistent with the second identification through the first operating system; when the first identification is consistent with the second identification, 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. 2.根据权利要求1所述的方法,其特征在于,所述第一标识包括第一用户服务标识码USID,所述电子装置还包括存储器,所述存储器存储有设备树源文件,所述设备树源文件包括所述第一USID;2. The method according to claim 1, wherein the first identification includes a first user service identification code USID, and the electronic device further includes a memory, the memory stores a device tree source file, and the device the tree source file includes said first USID; 所述通过所述第一操作系统获取第一标识包括:The acquiring the first identifier through the first operating system includes: 解析所述设备树源文件,获取所述第一USID。Parse the device tree source file to obtain the first USID. 3.根据权利要求2所述的方法,其特征在于,所述第二标识包括第二USID,所述电子装置还包括第一移动产业处理器MIPI接口,所述第一MIPI接口预设有第一MIPI接口地址,所述第一MIPI接口地址与所述第二USID相对应;3. The method according to claim 2, wherein the second identifier includes a second USID, and the electronic device further includes a first MIPI interface of a mobile industry processor, and the first MIPI interface is preset with a second A MIPI interface address, the first MIPI interface address corresponds to the second USID; 通过所述第一操作系统获取第二标识,包括:Obtaining the second identifier through the first operating system includes: 根据所述第一MIPI接口地址,获取所述第二USID。Obtain the second USID according to the first MIPI interface address. 4.根据权利要求3所述的方法,其特征在于,所述设备树源文件还包括所述第一MIPI接口地址;在根据所述第一MIPI接口地址,获取所述第二USID之前,所述方法还包括:4. The method according to claim 3, wherein the device tree source file also includes the first MIPI interface address; before obtaining the second USID according to the first MIPI interface address, the The method also includes: 解析所述设备树源文件,获取所述第一MIPI接口地址。Analyzing the device tree source file to obtain the address of the first MIPI interface. 5.根据权利要求3或4所述的方法,其特征在于:所述电子装置还包括第一调制解调器,和无线接口层;所述第一调制解调器与所述第二电路板相对应;5. The method according to claim 3 or 4, wherein the electronic device further comprises a first modem and a wireless interface layer; the first modem corresponds to the second circuit board; 所述根据所述第一MIPI接口地址,获取所述第二USID包括:According to the first MIPI interface address, obtaining the second USID includes: 通过所述无线接口层,根据所述第一MIPI接口地址从所述第一调制解调器获取所述第二USID。Obtaining the second USID from the first modem according to the first MIPI interface address through the wireless interface layer. 6.根据权利要求5所述的方法,其特征在于,所述根据所述第一MIPI接口地址从所述第一调制解调器获取所述第二USID包括:6. The method according to claim 5, wherein said obtaining said second USID from said first modem according to said first MIPI interface address comprises: 通过所述无线接口层,向所述第一调制解调器发送第一命令;所述第一命令包括所述第一MIPI接口地址,所述第一命令用于指示所述第一调制解调器获取所述第二USID。Send a first command to the first modem through the wireless interface layer; the first command includes the first MIPI interface address, and the first command is used to instruct the first modem to obtain the second USID. 7.根据权利要求6所述的方法,其特征在于,在所述向所述第一调制解调器发送第一命令后,所述方法还包括:7. The method according to claim 6, characterized in that, after sending the first command to the first modem, the method further comprises: 通过所述第一调制解调器解析所述第一命令,获取所述第二USID;Analyzing the first command through the first modem to obtain the second USID; 通过所述第一调制解调器向所述无线接口层发送所述第二USID。sending the second USID to the wireless interface layer through the first modem. 8.根据权利要求7所述的方法,其特征在于,所述存储器包括第一寄存器,所述第一寄存器对应于第一地址;在所述通过所述第一调制解调器向所述无线接口层发送所述第二USID后,所述方法还包括:8. The method according to claim 7, wherein the memory includes a first register, and the first register corresponds to a first address; After the second USID, the method further includes: 通过所述无线接口层将所述第二USID存储到所述第一寄存器中;storing the second USID into the first register via the wireless interface layer; 所述根据所述第一MIPI接口地址从所述第一调制解调器获取所述第二USID还包括:The obtaining the second USID from the first modem according to the first MIPI interface address further includes: 根据所述第一地址,从所述第一寄存器获取所述第二USID。Obtaining the second USID from the first register based on the first address. 9.根据权利要求8所述的方法,其特征在于,所述从所述第一寄存器获取所述第二USID之前,所述方法还包括:9. The method according to claim 8, wherein before obtaining the second USID from the first register, the method further comprises: 向所述无线接口层发送第二命令;其中,所述第二命令用于获取所述第一地址。sending a second command to the wireless interface layer; wherein the second command is used to obtain the first address. 10.根据权利要求6-9中任一项所述的方法,其特征在于,在所述通过所述第一操作系统判断所述第一标识与所述第二标识是否一致后,所述方法还包括:10. The method according to any one of claims 6-9, characterized in that, after the first operating system is used to determine whether the first identifier is consistent with the second identifier, the method Also 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. 11.根据权利要求10所述的方法,其特征在于,所述方法还包括:11. method according to claim 10, is characterized in that, described method also comprises: 在所述存储器中创建第一存储节点;所述第一存储节点用于存储所述匹配标识,所述第一存储节点的名称为第一名称。A first storage node is created in the memory; the first storage node is used to store the matching identifier, and a name of the first storage node is a first name. 12.根据权利要求11所述的方法,其特征在于,所述电子装置还包括第一显示单元,所述第一显示单元用于显示提示信息;所述提示信息包括第一提示信息,或者第二提示信息,或者第三提示信息;所述第一提示信息用于指示所述第二电路板为所述目标电路板,所述第二提示信息用于指示所述第二电路板不是所述目标电路板,所述第三提示信息用于指示所述第一存储节点创建失败。12. The method according to claim 11, wherein the electronic device further comprises a first display unit, the first display unit is used to display prompt information; the prompt information includes the first prompt information, or the second prompt information Two prompt information, or third prompt information; the first prompt information is used to indicate that the second circuit board is the target circuit board, and the second prompt information is used to indicate that the second circuit board is not the target circuit board For the target circuit board, the third prompt information is used to indicate that the creation of the first storage node fails. 13.根据权利要求11所述的方法,其特征在于,所述电子装置连接有第二显示单元,所述第二显示单元用于显示提示信息;所述提示信息包括第一提示信息,或者第二提示信息,或者第三提示信息;所述第一提示信息用于指示所述第二电路板为所述目标电路板,所述第二提示信息用于指示所述第二电路板不是所述目标电路板,所述第三提示信息用于指示所述第一存储节点创建失败。13. The method according to claim 11, wherein the electronic device is connected with a second display unit, and the second display unit is used to display prompt information; the prompt information includes the first prompt information, or the second prompt information Two prompt information, or third prompt information; the first prompt information is used to indicate that the second circuit board is the target circuit board, and the second prompt information is used to indicate that the second circuit board is not the target circuit board For the target circuit board, the third prompt information is used to indicate that the creation of the first storage node fails. 14.根据权利要求12所述的方法,其特征在于,所述第一显示单元安装有第一应用,所述第一应用包括第一控制接口;在所述第一显示单元显示提示信息之前,所述方法还包括:14. The method according to claim 12, wherein a first application is installed on the first display unit, and the first application includes a first control interface; before the prompt information is displayed on the first display unit, The method also includes: 在检测到第一操作时,通过第一控制接口,从所述第一存储节点中获取所述匹配标识;其中,所述第一操作对应于点击所述第一应用。When the first operation is detected, the matching identifier is acquired from the first storage node through the first control interface; wherein the first operation corresponds to clicking the first application. 15.根据权利要求12或14所述的方法,其特征在于,所述第一显示单元还配置有第一显示屏,所述第一显示屏与所述第一电路板连接,所述第一显示单元显示提示信息包括:15. The method according to claim 12 or 14, wherein the first display unit is further equipped with a first display screen, the first display screen is connected to the first circuit board, and the first display unit The prompt information displayed by the display unit includes: 根据所述匹配标识包括所述第一值,在所述第一显示屏上显示所述第一提示信息;displaying the first prompt information on the first display screen according to the matching identifier including the first value; 或者根据所述匹配标识包括所述第二值,在所述第一显示屏上显示所述第二提示信息;or according to the matching identifier including the second value, displaying the second prompt information on the first display screen; 或者,在所述第一存储节点不存在时,在所述第一显示屏上显示所述第三提示信息。Or, when the first storage node does not exist, display the third prompt information on the first display screen. 16.根据权利要求13所述的方法,其特征在于,在所述第二显示单元显示提示信息之前,所述方法还包括:16. The method according to claim 13, wherein before the second display unit displays the prompt information, the method further comprises: 从所述第一存储节点中获取所述匹配标识;Obtain the matching identifier from the first storage node; 根据所述匹配标识包括所述第一值,向所述第二显示单元发送所述第一提示信息;sending the first prompt information to the second display unit according to the matching identifier including the first value; 或者,根据所述匹配标识包括所述第二值,向所述第二显示单元发送所述第二提示信息;Or, according to the matching identifier including the second value, sending the second prompt information to the second display unit; 或者,在所述第一存储节点不存在时,向所述第二显示单元发送所述第三提示信息。Or, when the first storage node does not exist, send the third prompt information to the second display unit. 17.根据权利要求16所述的方法,其特征在于,所述第二显示单元包括通用串行总线USB驱动,所述USB驱动用于提供第一USB接口;在所述从所述第一存储节点中获取所述匹配标识之前,所述方法还包括:17. The method according to claim 16, wherein the second display unit comprises a Universal Serial Bus USB driver, and the USB driver is used to provide a first USB interface; Before obtaining the matching identifier in the node, the method also includes: 接收第三命令;所述第三命令是所述第二显示单元通过所述第一USB接口发送的,所述第三命令用于获取所述提示信息。receiving a third command; the third command is sent by the second display unit through the first USB interface, and the third command is used to acquire the prompt information. 18.根据权利要求17所述的方法,其特征在于,所述从所述第一存储节点中获取所述匹配标识包括:18. The method according to claim 17, wherein the obtaining the matching identifier from the first storage node comprises: 在接收到所述第三命令时,根据所述第一名称索引所述第一存储节点,从所述第一存储节点中获取所述匹配标识。When receiving the third command, index the first storage node according to the first name, and acquire the matching identifier from the first storage node. 19.一种电子装置,其特征在于,所述电子装置包括一个或多个处理器,一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器存储有计算机指令;19. An electronic device, characterized in that the electronic device comprises 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 or a plurality of memories storing computer instructions; 所述电子装置还包括第一电路,以及第二电路板,所述第一电路板与所述第二电路板相连接,所述电子装置用于检测所述第二电路板;当所述一个或多个处理器执行所述计算机指令时,使得所述电子装置执行如权利要求1-18中任一项所述的方法。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 When one or more processors execute the computer instructions, the electronic device is made to execute the method according to any one of claims 1-18. 20.根据权利要求19所述的电子装置,其特征在于,所述电子装置还包括第一显示单元,所述第一显示单元还配置有第一显示屏,所述第一显示屏与所述第一电路板相连接,所述第一显示屏用于显示提示信息;所述提示信息用于指示所述第二电路板是否为目标电路板。20. The electronic device according to claim 19, characterized in that, the electronic device further comprises a first display unit, the first display unit is further configured with a first display screen, and the first display screen is connected to the The first circuit board is connected, and the first display screen is used to display prompt information; the prompt information is used to indicate whether the second circuit board is a target circuit board. 21.根据权利要求19所述的电子装置,其特征在于,所述电子装置连接有第二显示单元,所述第二显示单元用于显示提示信息;所述提示信息用于指示所述第二电路板是否为目标电路板。21. The electronic device according to claim 19, wherein the electronic device is connected with a second display unit, and the second display unit is used to display prompt information; the prompt information is used to indicate that the second Whether the board is the target board. 22.一种芯片系统,其特征在于,所述芯片系统包括处理器和通信接口;所述处理器用于从存储介质中调用并运行该存储介质中存储的计算机程序,执行如权利要求1-18中任一项所述的方法。22. A chip system, characterized in that the chip system includes a processor and a communication interface; the processor is used to call and run the computer program stored in the storage medium from the storage medium, and execute the computer program according to claims 1-18. any one of the methods described.
CN202310733637.0A 2023-06-20 2023-06-20 Circuit board detection method, electronic device and chip system Active CN116541895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310733637.0A CN116541895B (en) 2023-06-20 2023-06-20 Circuit board detection method, electronic device and chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310733637.0A CN116541895B (en) 2023-06-20 2023-06-20 Circuit board detection method, electronic device and chip system

Publications (2)

Publication Number Publication Date
CN116541895A true CN116541895A (en) 2023-08-04
CN116541895B CN116541895B (en) 2025-01-10

Family

ID=87454438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310733637.0A Active CN116541895B (en) 2023-06-20 2023-06-20 Circuit board detection method, electronic device and chip system

Country Status (1)

Country Link
CN (1) CN116541895B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5434870A (en) * 1992-04-17 1995-07-18 Unisys Corporation Apparatus and method for verifying the authenticity of a circuit board
CN107341064A (en) * 2017-05-16 2017-11-10 中车大连电力牵引研发中心有限公司 Anti-misplug system based on vehicle Variable flow control unit sub-circuit board
CN206728361U (en) * 2017-04-06 2017-12-08 捷开通讯(深圳)有限公司 Circuit board and mobile terminal
CN107610088A (en) * 2017-07-03 2018-01-19 刘胜贤 A kind of board recognition method and system
CN108304284A (en) * 2018-01-05 2018-07-20 海信容声(广东)冰箱有限公司 A kind of circuit board and its anti-misconnection method and electronic equipment
CN109013402A (en) * 2018-09-26 2018-12-18 通富微电子股份有限公司 A kind of semiconductor test system, testing, sorting machine, test machine
CN111062379A (en) * 2018-10-16 2020-04-24 珠海格力电器股份有限公司 Identification error-proofing recognition method, device, storage medium and system
CN114398296A (en) * 2022-03-24 2022-04-26 荣耀终端有限公司 Method and terminal device for problem location
CN114641127A (en) * 2020-12-15 2022-06-17 慧与发展有限责任合伙企业 Safety mark of printed circuit board
CN217115604U (en) * 2022-01-11 2022-08-02 荣耀终端有限公司 Hardware identification number devices, circuit boards and electronic equipment
CN217112603U (en) * 2021-12-23 2022-08-02 天芯互联科技有限公司 Test circuit board and test mechanism
CN116049070A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 A camera module identification method and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5434870A (en) * 1992-04-17 1995-07-18 Unisys Corporation Apparatus and method for verifying the authenticity of a circuit board
CN206728361U (en) * 2017-04-06 2017-12-08 捷开通讯(深圳)有限公司 Circuit board and mobile terminal
CN107341064A (en) * 2017-05-16 2017-11-10 中车大连电力牵引研发中心有限公司 Anti-misplug system based on vehicle Variable flow control unit sub-circuit board
CN107610088A (en) * 2017-07-03 2018-01-19 刘胜贤 A kind of board recognition method and system
CN108304284A (en) * 2018-01-05 2018-07-20 海信容声(广东)冰箱有限公司 A kind of circuit board and its anti-misconnection method and electronic equipment
CN109013402A (en) * 2018-09-26 2018-12-18 通富微电子股份有限公司 A kind of semiconductor test system, testing, sorting machine, test machine
CN111062379A (en) * 2018-10-16 2020-04-24 珠海格力电器股份有限公司 Identification error-proofing recognition method, device, storage medium and system
CN114641127A (en) * 2020-12-15 2022-06-17 慧与发展有限责任合伙企业 Safety mark of printed circuit board
CN217112603U (en) * 2021-12-23 2022-08-02 天芯互联科技有限公司 Test circuit board and test mechanism
CN217115604U (en) * 2022-01-11 2022-08-02 荣耀终端有限公司 Hardware identification number devices, circuit boards and electronic equipment
CN114398296A (en) * 2022-03-24 2022-04-26 荣耀终端有限公司 Method and terminal device for problem location
CN116049070A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 A camera module identification method and electronic equipment

Also Published As

Publication number Publication date
CN116541895B (en) 2025-01-10

Similar Documents

Publication Publication Date Title
US10664010B2 (en) Electronic device and operating method thereof
EP3335411B1 (en) Electronic device and method of managing application programs thereof
US20220075518A1 (en) Fast Data Copying Method and Electronic Device
CN108153446A (en) Electronic device comprising display and the method for manufacturing display
US10416843B2 (en) Electronic device and method of controlling object in electronic device
CN107943683A (en) A kind of test script generation method, device, electronic equipment and storage medium
CN114461239A (en) Software upgrade system and software upgrade method
CN108604362B (en) Electronic device and method for controlling display, and server and method for the same
WO2022052758A1 (en) Network configuration method and device
WO2022161024A1 (en) Upgrade prompt method, terminal device, and computer readable storage medium
CN116541895B (en) Circuit board detection method, electronic device and chip system
KR102609583B1 (en) Operating method for electronic apparatus for configuring information and electronic apparatus supporting thereof
CN114554078B (en) A camera calling method and electronic device
WO2022135199A1 (en) Information processing method, electronic device, and system
WO2023179454A1 (en) Service calling method and electronic device
CN113867977B (en) Device control method and device
CN113342645B (en) Method, device, equipment and storage medium for testing business function
CN115993993A (en) Cold start method and related equipment
WO2022154880A1 (en) End-to-end configuration assistance for cloud services
CN107391196A (en) A method for updating an application program and a mobile terminal
CN117724780B (en) Information acquisition method
CN116302295B (en) An interface display method
CN117724894B (en) Method for starting test program and electronic equipment
CN113536387A (en) Terminal and method for detecting integrity of kernel data
CN116708615B (en) Device registration method, device registration apparatus and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address