CN102305906A - Chip testing method and device - Google Patents
Chip testing method and device Download PDFInfo
- Publication number
- CN102305906A CN102305906A CN201110138808A CN201110138808A CN102305906A CN 102305906 A CN102305906 A CN 102305906A CN 201110138808 A CN201110138808 A CN 201110138808A CN 201110138808 A CN201110138808 A CN 201110138808A CN 102305906 A CN102305906 A CN 102305906A
- Authority
- CN
- China
- Prior art keywords
- chip
- chip testing
- boot module
- testing
- input
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 277
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000001514 detection method Methods 0.000 claims description 21
- 230000008676 import Effects 0.000 claims 4
- 238000013481 data capture Methods 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 5
- 230000000903 blocking effect Effects 0.000 description 4
- 230000015654 memory Effects 0.000 description 3
- 238000010998 test method Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
本发明实施例公开了一种芯片测试方法及装置,涉及终端测试领域,能够在一个测试环境下实现各种芯片和模块的测试,达到统一管理各种芯片测试的目的。本发明的方法包括:检测是否有外接设备接入boot模块:若检测到有外接设备接入所述boot模块,则检测是否有数据输入所述boot模块;若检测到有数据输入所述boot模块,则读取输入的数据,并判断所述输入的数据是否为芯片测试模式启动命令;若所述输入的数据为芯片测试模式启动命令,则进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,并将芯片测试结果输出。本发明实施例主要用于终端产品上的芯片测试过程中。
The embodiment of the invention discloses a chip testing method and device, which relate to the field of terminal testing, and can realize the testing of various chips and modules in one testing environment, so as to achieve the purpose of unified management of various chip testing. The method of the present invention includes: detecting whether there is an external device connected to the boot module: if it is detected that an external device is connected to the boot module, then detecting whether there is data input to the boot module; if it is detected that there is data input to the boot module , then read the input data, and judge whether the input data is a chip test mode start command; if the input data is a chip test mode start command, then enter the chip test mode interface and receive the chip test command input by the user , executing a corresponding chip test according to the chip test command, and outputting a chip test result. The embodiments of the present invention are mainly used in the chip testing process on terminal products.
Description
技术领域 technical field
本发明涉及终端测试领域,尤其涉及一种芯片测试方法及装置。The invention relates to the field of terminal testing, in particular to a chip testing method and device.
背景技术 Background technique
在产品生产过程中,产品的软硬件检测是一项非常重要的工作。当产品的硬件电路板贴好后,需要一些方法去检测所贴在电路板上的各种芯片的工作情况是否正常,例如各种传感器芯片、通信模块以及各种存储器等;在测试的时候,因为各个芯片和模块的测试项目及测试方法都不相同,使得各个芯片和模块的测试环境不能统一,往往难以统一管理。In the process of product production, product software and hardware testing is a very important task. After the hardware circuit board of the product is pasted, some methods are needed to detect whether the various chips attached to the circuit board are working normally, such as various sensor chips, communication modules and various memories; during testing, Because the test items and test methods of each chip and module are different, the test environment of each chip and module cannot be unified, and it is often difficult to manage uniformly.
发明内容 Contents of the invention
本发明的实施例提供一种芯片测试方法及装置,能够在一个测试环境下实现各种芯片和模块的测试,达到统一管理各种芯片测试的目的。The embodiment of the present invention provides a chip testing method and device, which can realize the testing of various chips and modules in one testing environment, and achieve the purpose of unified management of various chip testing.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
一种芯片测试方法,包括:A chip testing method, comprising:
检测是否有外接设备接入boot模块:Detect whether there is an external device connected to the boot module:
若检测到有外接设备接入所述boot模块,则检测是否有数据输入所述boot模块;If it is detected that an external device is connected to the boot module, it is detected whether there is data input to the boot module;
若检测到有数据输入所述boot模块,则读取输入的数据,并判断所述输入的数据是否为芯片测试模式启动命令;If it is detected that there is data input to the boot module, then read the input data, and judge whether the input data is a chip test mode start command;
若所述输入的数据为芯片测试模式启动命令,则进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,并将芯片测试结果输出。If the input data is a chip test mode start command, enter the chip test mode interface, receive the chip test command input by the user, execute the corresponding chip test according to the chip test command, and output the chip test result.
一种芯片测试装置,包括:A chip testing device, comprising:
第一检测单元,用于检测是否有外接设备接入boot模块:The first detection unit is used to detect whether there is an external device connected to the boot module:
第二检测单元,用于在所述第一检测单元检测到有外接设备接入所述boot模块时,检测是否有数据输入所述boot模块;The second detection unit is used to detect whether there is data input to the boot module when the first detection unit detects that an external device is connected to the boot module;
数据获取单元,用于在所述第二检测单元检测到有数据输入所述boot模块时,读取输入的数据;A data acquisition unit, configured to read input data when the second detection unit detects that data is input to the boot module;
判断单元,用于判断所述数据获取单元获取的所述输入的数据是否为芯片测试模式启动命令;A judging unit, configured to judge whether the input data acquired by the data acquisition unit is a chip test mode start command;
启动单元,用于在所述判断单元判定所述输入的数据为芯片测试模式启动命令时,进入芯片测试模式界面;A starting unit, configured to enter the chip test mode interface when the judging unit determines that the input data is a chip test mode start command;
命令操作单元,用于接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试;A command operation unit, configured to receive a chip test command input by a user, and execute a corresponding chip test according to the chip test command;
结果输出单元,用于将芯片测试结果输出。The result output unit is used for outputting the test result of the chip.
本发明实施例提供的技术方案,与现有技术中各个芯片和模块通过不同的测试环境进行测试相比,将需要测试的芯片或模块与boot模块相连接,当确定对芯片或模块进行测试时,进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,使得在一个测试环境下实现各种芯片和模块的测试,达到统一管理各种芯片测试的目的。In the technical solution provided by the embodiments of the present invention, compared with the testing of each chip and module in the prior art through different test environments, the chip or module to be tested is connected to the boot module, and when the chip or module is determined to be tested , enter the chip test mode interface, receive the chip test command input by the user, and execute the corresponding chip test according to the chip test command, so that the test of various chips and modules can be realized in one test environment, and the unified management of various chip tests can be achieved Purpose.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例1中芯片测试方法的流程图;Fig. 1 is the flowchart of chip test method in the
图2为本发明实施例2中芯片测试方法的流程图;Fig. 2 is the flowchart of chip test method in the
图3为本发明实施例2中芯片测试模式菜单示意图;3 is a schematic diagram of a chip test mode menu in
图4为本发明实施例2中芯片测试结果输出方法的流程图;Fig. 4 is the flow chart of the chip test result output method in the
图5为本发明实施例3中一种芯片测试装置的组成框图;5 is a block diagram of a chip testing device in
图6为本发明实施例3中另一种芯片测试装置的组成框图;6 is a block diagram of another chip testing device in
图7为本发明实施例3中另一种芯片测试装置的组成框图;7 is a block diagram of another chip testing device in
图8为本发明实施例3中另一种芯片测试装置的组成框图。FIG. 8 is a block diagram of another chip testing device in
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
实施例1Example 1
本发明实施例提供一种芯片测试方法,如图1所示,该方法包括:The embodiment of the present invention provides a chip testing method, as shown in Figure 1, the method includes:
101、检测是否有外接设备接入boot模块。其中,该外接设备可以为终端产品上待测试的芯片。101. Detect whether there is an external device connected to the boot module. Wherein, the external device may be a chip to be tested on the terminal product.
其中,外接设备接入boot模块时,需要利用连接线接入boot模块的外接接口,所以检测是否有外接设备接入boot模块,可以通过但不局限于以下方法实现,该方法包括:Wherein, when an external device is connected to the boot module, it needs to use a connection line to connect to the external interface of the boot module, so detecting whether there is an external device connected to the boot module can be realized through but not limited to the following methods, which include:
第一种,检测所述boot模块的外接接口对应寄存器的标志位的值,确定是否有外接设备接入boot模块。需要说明的是,boot模块的外接接口一般都对应一个寄存器,用于暂存外接设备输入的数据,并且一般为该寄存器设置一个标志位,用于标识是否有外接设备接入,当该外接接口有外接设备接入时,该端口能够立即获知,并修改该标志位。例如,设置该标志位值为0,代表没有外接设备接入该外接接口;设置该标志位值为1,代表有外接设备接入该外接接口,当然,对该标志位取值的设置,只要能区分外接接口有无外接设备接入即可,本发明实施例对此不进行限定,任一种设置方法都属于本发明实施例保护的范围。The first method is to detect the value of the flag bit of the register corresponding to the external interface of the boot module, and determine whether there is an external device connected to the boot module. It should be noted that the external interface of the boot module generally corresponds to a register, which is used to temporarily store the data input by the external device, and generally sets a flag bit for this register to identify whether there is an external device connected. When an external device is connected, the port can immediately know and modify the flag. For example, setting the value of the flag bit to 0 means that no external device is connected to the external interface; setting the value of the flag bit to 1 means that an external device is connected to the external interface. It only needs to be able to distinguish whether there is an external device connected to the external interface, and this embodiment of the present invention does not limit this, and any setting method belongs to the scope of protection of the embodiment of the present invention.
第二种,检测所述boot模块的外接接口的相关针脚的电平变化,确定是否有外接设备接入boot模块。需要说明的是,boot模块的外接接口的相关针脚当有外接设备接入和没有外接设备接入其电平的表示是不一样的。例如,设定没有外接设备接入该外接接口时,其外接接口相关针脚的电平为高电平;设定有外接设备接入该外接接口时,其外接接口相关针脚电平为低电平,当外接接口相关针脚电平有高电平变为低电平时,表明有外接设备接入该boot模块的外接接口;当然该外接接口相关针脚电平的设置也不仅局限于上述描述,任何可以标识外接接口相关针脚电平的方法,都属于本发明实施例保护的范围。The second method is to detect the level change of the relevant pins of the external interface of the boot module to determine whether there is an external device connected to the boot module. It should be noted that the levels of the relevant pins of the external interface of the boot module are different when there is an external device connected and when no external device is connected. For example, when no external device is connected to the external interface, the level of the relevant pin of the external interface is high; when an external device is connected to the external interface, the level of the relevant pin of the external interface is low , when the level of the pin related to the external interface changes from a high level to a low level, it indicates that an external device is connected to the external interface of the boot module; of course, the setting of the pin level of the external interface is not limited to the above description, any The method for identifying the level of the relevant pins of the external interface belongs to the scope of protection of the embodiments of the present invention.
其中,所述boot模块的外接接口可以为串口,但本发明实施例对此不进行限定。当boot模块的外接接口为串口时,连接boot模块和外接设备的连接线可以为USB转串口线,即对应终端产品(外接设备)上的待测试芯片上的接口为USB接口,boot模块的外接接入为串口,当然本发明实施例对外接设备的接口不进行限制,还可以为其他类型的接口,但由于通用串行总线(UniversalSerial BUS,USB)接口具有即插即用的优点,优选USB接口。Wherein, the external interface of the boot module may be a serial port, but this is not limited in this embodiment of the present invention. When the external interface of the boot module is a serial port, the connection line connecting the boot module and the external device can be a USB-to-serial cable, that is, the interface on the chip to be tested on the corresponding terminal product (external device) is a USB interface, and the external connection of the boot module The access is a serial port, certainly the embodiment of the present invention does not limit the interface of the external device, it can also be other types of interfaces, but because the Universal Serial Bus (UniversalSerial BUS, USB) interface has the advantage of plug and play, preferred USB interface.
102、若检测到有外接设备接入所述boot模块,则检测是否有数据输入所述boot模块。102. If it is detected that an external device is connected to the boot module, detect whether there is data input to the boot module.
其中,检测是否有数据输入所述boot模块,可以通过但不局限于检测对应寄存器中是否存储有数据,来确定是否有数据输入所述boot模块;若对应寄存器中存储有数据,则确定有数据输入该boot模块,若对应寄存器中没有存储有数据,则确定没有数据输入该boot模块。Wherein, detecting whether there is data input to the boot module can determine whether there is data input to the boot module by but not limited to detecting whether there is data stored in the corresponding register; if there is data stored in the corresponding register, it is determined that there is data Input the boot module, if there is no data stored in the corresponding register, it is determined that no data is input into the boot module.
103、若检测到有数据输入所述boot模块,则读取输入的数据,并判断所述输入的数据是否为芯片测试模式启动命令。103. If it is detected that data is input to the boot module, read the input data, and judge whether the input data is a chip test mode startup command.
其中,在读取输入的数据后,判断所述输入的数据是否为芯片测试模式启动命令,可以通过但不局限于以下方法实现,该方法为:将所述输入的数据与预设置的芯片测试模式启动命令进行比较,若该输入的数据与预设置的芯片测试模式启动命令一致,则确定输入的数据为芯片测试模式启动命令;若该输入的数据与预设置的芯片测试模式启动命令不一致,则确定输入的数据不为芯片测试模式启动命令。Wherein, after reading the input data, judging whether the input data is a chip test mode start command can be realized by but not limited to the following method, the method is: the input data and the preset chip test mode start command is compared, if the input data is consistent with the preset chip test mode start command, then determine that the input data is the chip test mode start command; if the input data is inconsistent with the preset chip test mode start command, Then it is determined that the input data is not a chip test mode start command.
104、若所述输入的数据为芯片测试模式启动命令,则进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,并将芯片测试结果输出。104. If the input data is a chip test mode start command, enter the chip test mode interface, receive the chip test command input by the user, execute the corresponding chip test according to the chip test command, and output the chip test result.
本发明实施例中,将需要测试的芯片或模块与boot模块相连接,当确定对芯片或模块进行测试时,进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,使得在一个测试环境下实现各种芯片和模块的测试,达到统一管理各种芯片测试的目的。In the embodiment of the present invention, the chip or module to be tested is connected to the boot module, and when the chip or module is determined to be tested, the chip test mode interface is entered, the chip test command input by the user is received, and the chip test command is executed according to the chip test command. The corresponding chip test enables the testing of various chips and modules in a test environment, and achieves the purpose of unified management of various chip tests.
实施例2Example 2
本发明实施例提供一种芯片测试方法,本发明实施例以boot模块的外接接口为串口为例阐述该芯片测试方法,如图2所示,该方法包括:The embodiment of the present invention provides a chip testing method. The embodiment of the present invention takes the external interface of the boot module as a serial port as an example to illustrate the chip testing method. As shown in FIG. 2, the method includes:
201、在boot模块启动时,先检测是否有外接设备接入boot模块;若检测到有外接设备接入所述boot模块,则执行步骤202;若检测到没有外接设备接入所述boot模块,则执行步骤207。201. When the boot module starts, first detect whether there is an external device connected to the boot module; if it is detected that an external device is connected to the boot module, then perform
其中,检测是否有外接设备接入boot模块的具体描述,可以参考实施例1步骤101中的相应描述,本发明实施例此处将不再赘述。Wherein, for a specific description of detecting whether there is an external device connected to the boot module, reference may be made to the corresponding description in
202、检测是否有数据输入所述boot模块;若检测到有数据输入所述boot模块,则执行步骤203;若检测到没有数据输入所述boot模块,则执行步骤207。202. Detect whether data is input to the boot module; if it is detected that data is input to the boot module, perform
其中,检测是否有数据输入所述boot模块的具体描述,可以参考实施例1步骤102中的相应描述,本发明实施例此处将不再赘述。Wherein, for the specific description of detecting whether there is data input to the boot module, reference may be made to the corresponding description in
另外,要在boot中实现串口的读写,串口的读操作两种情况,包括:阻塞型和非阻塞型。该阻塞型读操作就是只有从串口中读到输入数据并检测到有回车键按下,一次读过程就完成了,否则串口会一直处于等待用户输入的状态;而对于非阻塞型读操作,无论串口是否有数据,读过程都会立即返回。In addition, to realize the reading and writing of the serial port in the boot, the reading operation of the serial port has two situations, including: blocking type and non-blocking type. The blocking read operation is only when the input data is read from the serial port and the Enter key is pressed, and the reading process is completed once, otherwise the serial port will always be in the state of waiting for user input; and for non-blocking read operations, Regardless of whether there is data in the serial port, the reading process will return immediately.
203、读取输入的数据,并判断所述输入的数据是否为芯片测试模式启动命令;若所述输入的数据为芯片测试模式启动命令,则执行步骤204;若所述输入的数据不为芯片测试模式启动命令,则执行步骤203。203. Read the input data, and judge whether the input data is a chip test mode start command; if the input data is a chip test mode start command, perform
其中,在读取输入的数据后,判断所述输入的数据是否为芯片测试模式启动命令的具体描述,可以参考实施例1步骤103中的相应描述,本发明实施例此处将不再赘述。Wherein, after reading the input data, the specific description of judging whether the input data is a chip test mode start command can refer to the corresponding description in
204、将预定义的芯片测试模式菜单显示,所述芯片测试模式菜单包括芯片测试模式和所述芯片测试模式的编号,以便用户根据所述芯片测试模式菜单选取对应的芯片测试模式。204. Display a predefined chip test mode menu, the chip test mode menu including a chip test mode and the number of the chip test mode, so that the user can select a corresponding chip test mode according to the chip test mode menu.
其中,该芯片测试模式菜单如图3所示,罗列了有可能进行测试的芯片测试模式,例如,编号为1的Bluetooth测试模式,标号为2的Compass模式。该芯片测试模式菜单可以根据终端产品测试的需求编辑。用户在进行芯片测试模式输入时,不需要掌握太多专业知识,便可以根据菜单的记载,输入对应芯片测试模式的编号,即表示输入的对应的芯片测试模式,使得操作比较简单。Wherein, the chip test mode menu is shown in FIG. 3 , which lists possible chip test modes for testing, for example, the Bluetooth test mode numbered 1 and the Compass mode numbered 2. The chip test mode menu can be edited according to the requirements of terminal product testing. When inputting the chip test mode, the user does not need to have too much professional knowledge, and can input the serial number corresponding to the chip test mode according to the menu records, which means the input corresponding chip test mode, which makes the operation easier.
205、接收用户输入的芯片测试模式编号,进入与所述芯片测试模式编号对应的芯片测试进程。205. Receive a chip test mode number input by the user, and enter a chip test process corresponding to the chip test mode number.
例如,如图3所示,用户输入编号2,则确定用户需要对电子罗盘芯片进行测试,则进入电子罗盘芯片测试进程。For example, as shown in FIG. 3 , if the
206、接收用户输入的该芯片测试模式下的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,并将芯片测试结果输出,结束该次芯片测试流程。206. Receive a chip test command in the chip test mode input by the user, execute a corresponding chip test according to the chip test command, output a chip test result, and end the chip test process.
207、boot模块按照普通流程启动。207. The boot module is started according to a common process.
进一步的,为了便于测试结果的管理,本发明实施例还包括以下的方法,如图4所示,该方法包括:Further, in order to facilitate the management of test results, the embodiment of the present invention also includes the following method, as shown in Figure 4, the method includes:
301、确定所述测试芯片中是否存在存储卡;若所述测试芯片中存在所述存储卡,则执行步骤302;若所述测试芯片中不存在所述存储卡,则执行步骤303。301. Determine whether a memory card exists in the test chip; if the memory card exists in the test chip, perform
其中,确定所述测试芯片中是否存在存储卡片,可以通过但不局限于驱动存储卡的方式确定,任何确定测试芯片中是否存在存储卡片都属于本发明实施例保护的范围;当通过驱动存储卡的方式确定时,包括:若驱动存储卡成功,则确定测试芯片中存在存储卡,否则,然为没有存储卡插入该测试芯片中。Wherein, determining whether there is a memory card in the test chip can be determined by, but not limited to, driving a memory card. Any determination of whether there is a memory card in the test chip belongs to the scope of protection of the embodiments of the present invention; when driving the memory card When the method is determined, it includes: if the memory card is driven successfully, it is determined that there is a memory card in the test chip, otherwise, it means that no memory card is inserted into the test chip.
另外,所述存储卡片可以为安全数码卡(Secure Digital Memory Card,SD卡),也可以为TF(TransFLash)卡,还可以为其他可以暂存储数据的存储卡,本发明实施例对此不进行限定。In addition, the memory card can be a secure digital memory card (Secure Digital Memory Card, SD card), also can be a TF (TransFLash) card, can also be other memory cards that can temporarily store data, the embodiment of the present invention does not carry out this limited.
302、将芯片测试结果显示输出并保存在所述存储卡中。302. Display and output the test result of the chip and save it in the memory card.
303、将芯片测试结果显示输出。303. Display and output the chip test result.
需要说明是,确定所述测试芯片中是否存在存储卡的步骤可以在启动芯片测试模式界面后执行,也可以在将芯片测试结果输出之前确定,本发明实施例对此不进行限定。但是在读取保存在存储卡中的测试结果时,必须要移植源项目EFSL文件系统到boot模块,该文件系统移植成功后,可以通过常用的文件目录形式去访问读写存储卡的文件,获取芯片的测试结果。It should be noted that the step of determining whether there is a memory card in the test chip can be performed after starting the chip test mode interface, or can be determined before outputting the chip test result, which is not limited in the embodiment of the present invention. However, when reading the test results stored in the memory card, the source project EFSL file system must be transplanted to the boot module. After the file system is successfully transplanted, the files of the memory card can be read and written through the common file directory form to obtain Chip test results.
本发明实施例中,将需要测试的芯片或模块与boot模块相连接,当确定对芯片或模块进行测试时,进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,使得在一个测试环境下实现各种芯片和模块的测试,达到统一管理各种芯片测试的目的。In the embodiment of the present invention, the chip or module to be tested is connected to the boot module, and when the chip or module is determined to be tested, the chip test mode interface is entered, the chip test command input by the user is received, and the chip test command is executed according to the chip test command. The corresponding chip test enables the testing of various chips and modules in a test environment, and achieves the purpose of unified management of various chip tests.
并且,本发明实施例中,在进入芯片测试模式界面之后,将预定义的芯片测试模式菜单显示,所述芯片测试模式菜单包括芯片测试模式和所述芯片测试模式的编号,用户在输入操作命令时,可以根据芯片测试模式菜单中记载的编号选取对应的芯片测试模式,使得操作命令的输入简单,使得测试人员不需要有很强的专业知识,扩大了可执行芯片测试操作的人群,节约了公司的测试成本。并且在该模式下,测试人员可以进行选择所测试芯片项,输入该芯片的测试指令等操作,避免了生产软件和系统软件相分离及多种芯片测试管理混乱的缺点。And, in the embodiment of the present invention, after entering the chip test mode interface, the predefined chip test mode menu is displayed, the chip test mode menu includes the numbering of the chip test mode and the chip test mode, and the user inputs the operation command At the same time, the corresponding chip test mode can be selected according to the number recorded in the chip test mode menu, so that the input of operation commands is simple, so that testers do not need to have strong professional knowledge, expanding the number of people who can perform chip test operations, saving The company's testing costs. And in this mode, the tester can select the chip item to be tested, input the test command of the chip and other operations, avoiding the shortcomings of separation of production software and system software and confusion of multiple chip test management.
进一步的,本发明实施例中,在获得芯片测试结果后,若测试芯片存在存储卡,则将芯片测试结果显示输出的同时保存在该存储卡中,方便了后续查看芯片测试结果。Further, in the embodiment of the present invention, after the chip test result is obtained, if the test chip has a memory card, the chip test result is displayed and output while being stored in the memory card, which facilitates subsequent viewing of the chip test result.
实施例3Example 3
本发明实施例提供一种芯片测试装置,如图5所示,该装置包括:第一检测单元41、第二检测单元42、数据获取单元43、判断单元44、启动单元45、命令操作单元46、结果输出单元47。An embodiment of the present invention provides a chip testing device, as shown in FIG. 5 , the device includes: a
第一检测单元41,用于检测是否有外接设备接入boot模块。The
第二检测单元42,用于在所述第一检测单元检测到有外接设备接入所述boot模块时,检测是否有数据输入所述boot模块;其中,所述第二检测单元42检测是否有数据输入所述boot模块时,可以通过但不局限于检测对应寄存器中是否存储有数据,来确定是否有数据输入所述boot模块;若对应寄存器中存储有数据,则确定有数据输入该boot模块,若对应寄存器中没有存储有数据,则确定没有数据输入该boot模块。The
数据获取单元43,用于在所述第二检测单元42检测到有数据输入所述boot模块时,读取输入的数据。The
判断单元44,用于判断所述数据获取单元43获取的所述输入的数据是否为芯片测试模式启动命令;其中,判断单元44判断所述数据获取单元43获取的所述输入的数据是否为芯片测试模式启动命令可以通过以下的方式实现,具体为:将所述输入的数据与预设置的芯片测试模式启动命令进行比较,若该输入的数据与预设置的芯片测试模式启动命令一致,则确定输入的数据为芯片测试模式启动命令;若该输入的数据与预设置的芯片测试模式启动命令不一致,则确定输入的数据不为芯片测试模式启动命令。A judging
启动单元45,用于在所述判断单元44判定所述输入的数据为芯片测试模式启动命令时,进入芯片测试模式界面。The
命令操作单元46,用于接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试。The
结果输出单元47,用于将芯片测试结果输出。The
进一步可选的,如图6所示,该芯片测试装置,还包括:显示单元48。Further optionally, as shown in FIG. 6 , the chip testing device further includes: a
显示单元48,用于在进入芯片测试模式界面之后,将预定义的芯片测试模式菜单显示,所述芯片测试模式菜单包括芯片测试模式和所述芯片测试模式的编号,以便用户根据所述芯片测试模式菜单选取对应的芯片测试模式;其中,关于显示单元48将预定义的芯片测试模式菜单显示的相关描述,可以参考实施例2中的步骤204中的相应描述,本发明实施例此处将不再赘述。The
所述命令操作单元46还用于,接收用户输入的芯片测试模式编号,进入与所述芯片测试模式编号对应的芯片测试进程;接收用户输入的该芯片测试模式下的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试。The
为了便于测试结果的管理,进一步可选的,如图7所示,该芯片测试装置,还包括:确定单元49。In order to facilitate the management of test results, further optionally, as shown in FIG. 7 , the chip testing device further includes: a
确定单元49,用于确定所述测试芯片中是否存在存储卡;其中,确定单元49确定所述测试芯片中是否存在存储卡片,可以通过但不局限于驱动存储卡的方式确定,任何确定测试芯片中是否存在存储卡片都属于本发明实施例保护的范围;当通过驱动存储卡的方式确定时,包括:若驱动存储卡成功,则确定测试芯片中存在存储卡,否则,然为没有存储卡插入该测试芯片中。另外,所述存储卡片可以为SD卡,也可以为TF卡,还可以为其他可以暂存储数据的存储卡,本发明实施例对此不进行限定。The
所述结果输出单元47还用于,在所述确定单元49确定所述测试芯片中存在所述存储卡时,将芯片测试结果显示输出并保存在所述存储卡中。需要说明的是,在读取保存在存储卡中的测试结果时,必须要移植源项目EFSL文件系统到boot模块,该文件系统移植成功后,可以通过常用的文件目录形式去访问读写存储卡的文件,获取芯片的测试结果。The
所述结果输出单元47还用于,在所述确定单元49确定所述测试芯片中不存在所述存储卡时,将所述芯片测试结果显示输出。The
进一步可选的,如图8所示,所述第一检测单元41包括:第一检测模块411、和/或第二检测模块412Further optionally, as shown in FIG. 8 , the
第一检测模块411,用于检测所述boot模块的外接接口对应寄存器的标志位的值,确定是否有外接设备接入boot模块;需要说明的是,boot模块的外接接口一般都对应一个寄存器,用于暂存外接设备输入的数据,并且一般为该寄存器设置一个标志位,用于标识是否有外接设备接入,当该外接接口有外接设备接入时,该端口能够立即获知,并修改该标志位。例如,设置该标志位值为0,代表没有外接设备接入该外接接口;设置该标志位值为1,代表有外接设备接入该外接接口,当然,对该标志位取值的设置,只要能区分外接接口有无外接设备接入即可,本发明实施例对此不进行限定,任一种设置方法都属于本发明实施例保护的范围The
第二检测模块412,用于检测所述boot模块的外接接口的相关针脚的电平变化,确定是否有外接设备接入boot模块。需要说明的是,boot模块的外接接口的相关针脚当用外接设备接入和没有外接设备接入其电平的表示是不一样的。例如,设定没有外接设备接入该外接接口时,其外接接口相关针脚的电平为高电平;设定有外接设备接入该外接接口时,其外接接口相关针脚电平为低电平,当外接接口相关针脚电平有高电平变为低电平时,表明有外接设备接入该boot模块的外接接口;当然该外接接口相关针脚电平的设置也不仅局限于上述描述,任何可以标识外接接口相关针脚电平的方法,都属于本发明实施例保护的范围。The
其中,所述boot模块的外接接口可以为串口,但本发明实施例对此不进行限定。当boot模块的外接接口为串口时,连接boot模块和外接设备的连接线可以为USB转串口线,即对应终端产品(外接设备)上的待测试芯片上的接口为USB接口,boot模块的外接接入为串口,当然本发明实施例对外接设备的接口不进行限制,还可以为其他类型的接口,但由于USB接口具有即插即用的优点,优选USB接口。Wherein, the external interface of the boot module may be a serial port, but this is not limited in this embodiment of the present invention. When the external interface of the boot module is a serial port, the connection line connecting the boot module and the external device can be a USB-to-serial cable, that is, the interface on the chip to be tested on the corresponding terminal product (external device) is a USB interface, and the external connection of the boot module The access is a serial port. Of course, the embodiment of the present invention does not limit the interface of the external device, and other types of interfaces can also be used. However, because the USB interface has the advantage of plug and play, the USB interface is preferred.
本发明实施例中,将需要测试的芯片或模块与boot模块相连接,当确定对芯片或模块进行测试时,进入芯片测试模式界面,接收用户输入的芯片测试命令,根据所述芯片测试命令执行相应的芯片测试,使得在一个测试环境下实现各种芯片和模块的测试,达到统一管理各种芯片测试的目的。In the embodiment of the present invention, the chip or module to be tested is connected to the boot module, and when the chip or module is determined to be tested, the chip test mode interface is entered, the chip test command input by the user is received, and the chip test command is executed according to the chip test command. The corresponding chip test enables the testing of various chips and modules in a test environment, and achieves the purpose of unified management of various chip tests.
并且,本发明实施例中,在进入芯片测试模式界面之后,将预定义的芯片测试模式菜单显示,所述芯片测试模式菜单包括芯片测试模式和所述芯片测试模式的编号,用户在输入操作命令时,可以根据芯片测试模式菜单中记载的编号选取对应的芯片测试模式,使得操作命令的输入简单,使得测试人员不需要有很强的专业知识,扩大了可执行芯片测试操作的人群,节约了公司的测试成本。并且在该模式下,测试人员可以进行选择所测试芯片项,输入该芯片的测试指令等操作,避免了生产软件和系统软件相分离及多种芯片测试管理混乱的缺点。And, in the embodiment of the present invention, after entering the chip test mode interface, the predefined chip test mode menu is displayed, the chip test mode menu includes the numbering of the chip test mode and the chip test mode, and the user inputs the operation command At the same time, the corresponding chip test mode can be selected according to the number recorded in the chip test mode menu, so that the input of operation commands is simple, so that testers do not need to have strong professional knowledge, expanding the number of people who can perform chip test operations, saving The company's testing costs. And in this mode, the tester can select the chip item to be tested, input the test command of the chip and other operations, avoiding the shortcomings of separation of production software and system software and confusion of multiple chip test management.
进一步的,本发明实施例中,在获得芯片测试结果后,若测试芯片存在存储卡,则将芯片测试结果显示输出的同时保存在该存储卡中,方便了后续查看芯片测试结果。Further, in the embodiment of the present invention, after the chip test result is obtained, if the test chip has a memory card, the chip test result is displayed and output while being stored in the memory card, which facilitates subsequent viewing of the chip test result.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware, and of course also by hardware, but in many cases the former is a better embodiment . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions for enabling a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110138808.2A CN102305906B (en) | 2011-05-26 | 2011-05-26 | Chip testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110138808.2A CN102305906B (en) | 2011-05-26 | 2011-05-26 | Chip testing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102305906A true CN102305906A (en) | 2012-01-04 |
CN102305906B CN102305906B (en) | 2014-03-26 |
Family
ID=45379782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110138808.2A Active CN102305906B (en) | 2011-05-26 | 2011-05-26 | Chip testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102305906B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103424687A (en) * | 2013-07-29 | 2013-12-04 | 北京华大信安科技有限公司 | Chip testing device |
CN103530575A (en) * | 2012-07-04 | 2014-01-22 | 北京中电华大电子设计有限责任公司 | Protection method for chip testing mode |
CN110597675A (en) * | 2019-08-09 | 2019-12-20 | 珠海泰芯半导体有限公司 | Chip testing method and device, storage medium and burner |
CN112698876A (en) * | 2019-10-21 | 2021-04-23 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted terminal engineering mode entering method and system, storage medium and vehicle-mounted terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101226224A (en) * | 2008-01-16 | 2008-07-23 | 深圳国人通信有限公司 | Test system and method for circuit board |
US20080201609A1 (en) * | 2007-02-15 | 2008-08-21 | Inventec Corporation | Method and system for automatically diagnosing disability of computer peripheral devices |
CN101252726A (en) * | 2008-03-29 | 2008-08-27 | 青岛海信移动通信技术股份有限公司 | Method for starting up mobile terminal |
CN201364360Y (en) * | 2009-02-26 | 2009-12-16 | 青岛海信电器股份有限公司 | Circuit voltage testing device |
-
2011
- 2011-05-26 CN CN201110138808.2A patent/CN102305906B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080201609A1 (en) * | 2007-02-15 | 2008-08-21 | Inventec Corporation | Method and system for automatically diagnosing disability of computer peripheral devices |
CN101226224A (en) * | 2008-01-16 | 2008-07-23 | 深圳国人通信有限公司 | Test system and method for circuit board |
CN101252726A (en) * | 2008-03-29 | 2008-08-27 | 青岛海信移动通信技术股份有限公司 | Method for starting up mobile terminal |
CN201364360Y (en) * | 2009-02-26 | 2009-12-16 | 青岛海信电器股份有限公司 | Circuit voltage testing device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530575A (en) * | 2012-07-04 | 2014-01-22 | 北京中电华大电子设计有限责任公司 | Protection method for chip testing mode |
CN103424687A (en) * | 2013-07-29 | 2013-12-04 | 北京华大信安科技有限公司 | Chip testing device |
CN103424687B (en) * | 2013-07-29 | 2016-06-01 | 北京华大信安科技有限公司 | The device of test chip |
CN110597675A (en) * | 2019-08-09 | 2019-12-20 | 珠海泰芯半导体有限公司 | Chip testing method and device, storage medium and burner |
CN112698876A (en) * | 2019-10-21 | 2021-04-23 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted terminal engineering mode entering method and system, storage medium and vehicle-mounted terminal |
Also Published As
Publication number | Publication date |
---|---|
CN102305906B (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110718264A (en) | Method and device for testing information of solid state disk, computer equipment and storage medium | |
CN105843720A (en) | Method and device for testing hot-plug stability of hard disks | |
CN108362992B (en) | Mainboard test method and device, readable storage medium and test terminal | |
US20110040516A1 (en) | Test apparatus and test method for universal serial bus interface | |
CN104915297B (en) | A kind of automated testing method of the APP power consumption of android equipment | |
CN108074624B (en) | Memory card testing apparatus and method, computer device, and storage medium | |
TW201342044A (en) | Method for detecting hardware | |
CN105842559B (en) | Test result wiring method, device and test macro and mobile terminal | |
CN103927242A (en) | Display card testing system and display card testing method | |
CN102305906A (en) | Chip testing method and device | |
TWI476587B (en) | Testing method and testing apparatus for testing function of electronic apparatus | |
CN104133750A (en) | Method and system for testing compatibility adaptability of host and storage device | |
US20080159157A1 (en) | Method for Configuring a USB PHY to Loopback Mode | |
TWI467367B (en) | Detecting method and apparatus for hot swapped sd card | |
CN111580837A (en) | Method, device, terminal and storage medium for burning MAC address | |
CN102722430B (en) | Method and device for detecting hot plug of secure digital card | |
CN107678984A (en) | USB port mapping method and computer-readable recording medium | |
CN104461603B (en) | A kind of information processing method and electronic equipment | |
CN115033298A (en) | A method and system for multi-scenario adaptation of interface resources of industrial Internet equipment | |
CN104484634B (en) | The dilatation detection method of RAM card and the card reader with dilatation detection function | |
CN115421749A (en) | A method, system, device and medium for refreshing hard disk firmware based on Linux system | |
CN102567159B (en) | Memory detecting method | |
CN113886302A (en) | Method, device, terminal device and storage medium for obtaining serial port number of application device | |
CN113010388B (en) | USB flash disk detection method and system | |
CN103853573B (en) | A kind of information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: No.11, Jiangxi Road, Shinan District, Qingdao, Shandong 266000 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Country or region after: China Address before: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. Country or region before: China |