Memory card compatibility testing method and system

文档序号:570124 发布日期:2021-05-18 浏览:21次 中文

阅读说明:本技术 存储卡兼容性测试方法及系统 (Memory card compatibility testing method and system ) 是由 蔡雅平 王正明 于 2020-12-31 设计创作,主要内容包括:本发明提供一种存储卡兼容性测试方法及系统。所述方法包括:测试主机向存储卡控制板下发存储卡通道选择命令,所述存储卡通道选择命令指示待测试的存储卡通道,其中,所述存储卡控制板具有多个存储卡通道,每个存储卡通道对应一个存储卡;所述存储卡控制板根据所述存储卡通道选择命令,打开所述待测试的存储卡通道,并向所述测试主机上报确认消息;所述测试主机向测试设备下发测试命令,检测所述待测试的存储卡通道对应的存储卡是否被所述测试设备正常识别,所述测试设备的存储卡接口通过转接线与所述存储卡控制板连接。本发明能够实现存储卡兼容性的自动化测试,且系统架构简单,测试过程的实现简单、易操作。(The invention provides a method and a system for testing compatibility of a memory card. The method comprises the following steps: the testing host sends a memory card channel selection command to a memory card control board, wherein the memory card channel selection command indicates a memory card channel to be tested, the memory card control board is provided with a plurality of memory card channels, and each memory card channel corresponds to a memory card; the memory card control board opens the memory card channel to be tested according to the memory card channel selection command and reports a confirmation message to the test host; the test host sends a test command to the test equipment to detect whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and a memory card interface of the test equipment is connected with the memory card control panel through a patch cord. The invention can realize the automatic test of the compatibility of the memory card, and has simple system architecture, simple realization of the test process and easy operation.)

1. A method for testing compatibility of a memory card, the method comprising:

the testing host sends a memory card channel selection command to a memory card control board, wherein the memory card channel selection command indicates a memory card channel to be tested, the memory card control board is provided with a plurality of memory card channels, and each memory card channel corresponds to a memory card;

the memory card control board opens the memory card channel to be tested according to the memory card channel selection command and reports a confirmation message to the test host;

the test host sends a test command to the test equipment to detect whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and a memory card interface of the test equipment is connected with the memory card control panel through a patch cord.

2. The method of claim 1, wherein after the memory card control board opens the memory card channel to be tested according to the memory card channel selection command, the method further comprises:

the test equipment generates a memory card path corresponding to the memory card.

3. The method of claim 2, wherein the detecting whether the memory card corresponding to the memory card channel to be tested is normally identified by the testing device comprises:

detecting whether a memory card path corresponding to the memory card exists in the test equipment, and if so, judging that the memory card can be normally identified by the test equipment and the memory card can be compatible with the test equipment; otherwise, the memory card cannot be normally identified by the test equipment, and the memory card cannot be compatible by the test equipment.

4. The method of any one of claims 1 to 3, wherein the memory card control board comprises a microcontroller and a plurality of memory card interfaces connected to the microcontroller, one memory card channel for each memory card interface;

the memory card control board opens the memory card channel to be tested according to the memory card channel selection command, and the step of opening the memory card channel to be tested comprises the following steps: the microcontroller analyzes the memory card channel selection command, identifies a memory card channel to be tested, controls to disconnect the connection with other memory card interfaces, and establishes the connection with the memory card interface corresponding to the memory card channel to be tested.

5. The method of claim 4, wherein a multi-way switch is further connected between the microcontroller and the plurality of memory card interfaces;

the control of disconnecting the connection with other memory card interfaces and establishing the connection with the memory card interface corresponding to the memory card channel to be tested comprises the following steps: and controlling the multi-way switch to disconnect the interfaces of other memory cards and gating the memory card interface corresponding to the memory card channel to be tested.

6. A memory card compatibility test system is characterized by comprising a test host, test equipment connected with the test host, a memory card control board and a patch cord, wherein one end of the patch cord is connected with a memory card interface of the test equipment, the other end of the patch cord is connected with the memory card control board, the memory card control board is provided with a plurality of memory card channels, and each memory card channel corresponds to one memory card; wherein the content of the first and second substances,

the test host is used for issuing a memory card channel selection command to the memory card control board, indicating a memory card channel to be tested, issuing a test command to the test equipment after receiving a confirmation message that the memory card channel to be tested is opened and reported by the memory card control board, and detecting whether a memory card corresponding to the memory card channel to be tested is normally identified by the test equipment;

the memory card control board is used for opening the memory card channel to be tested according to the memory card channel selection command and reporting a confirmation message to the test host.

7. The system of claim 6, wherein the test device is configured to generate the memory card path corresponding to the memory card after the memory card control board opens the memory card channel to be tested according to the memory card channel selection command.

8. The system according to claim 7, wherein the test host is configured to detect whether a memory card path corresponding to the memory card exists in the test device, and if so, determine that the memory card can be normally identified by the test device, and the memory card is compatible with the test device; otherwise, the memory card cannot be normally identified by the test equipment, and the memory card cannot be compatible by the test equipment.

9. The system according to any one of claims 6 to 8, wherein the memory card control board comprises a microcontroller and a plurality of memory card interfaces connected with the microcontroller, each memory card interface corresponding to one memory card channel;

the microcontroller is used for analyzing the memory card channel selection command, identifying the memory card channel to be tested, controlling to establish the connection of the memory card interface corresponding to the memory card channel to be tested, and disconnecting the connection with other memory card interfaces.

10. The system according to any one of claims 6 to 8, wherein a multi-way switch is further connected between the microcontroller and the plurality of memory card interfaces;

the microcontroller is also used for controlling the multi-way switch to disconnect from other memory card interfaces and gating the memory card interface corresponding to the memory card channel to be tested.

Technical Field

The invention relates to the technical field of compatibility testing, in particular to a method and a system for testing compatibility of a memory card.

Background

At present, an intelligent terminal or an IOT product generally has only one SD (secure digital) memory card slot, and only one SD memory card can be placed at a time. When the intelligent terminal is used for carrying out compatibility test on the SD card, different SD cards can only be replaced manually, so that the efficiency is low and the manpower is wasted.

Currently, there is an automatic SD memory card compatibility test system for a vehicle mounted radio and tape player. Including control center, on-vehicle radio and tape player and the SD memory card that awaits measuring, still include: the SD switching circuit is used for connecting the SD memory cards to be tested to the vehicle-mounted radio and cassette player and switching the connection and disconnection between the SD memory cards to be tested and the vehicle-mounted radio and cassette player; the USB communication circuit is connected between the control center and the SD switching circuit and is used for receiving a control command of the control center and controlling the switching action of the SD switching circuit; the audio conversion circuit is connected between the vehicle-mounted radio and player and the control center and is used for converting the audio signals output by the vehicle-mounted radio and player into signals which can be identified by the control center; and the USB port electricity stealing circuit is connected with the control center and used for stealing voltage from the control center and supplying power to the SD switching circuit and the audio conversion circuit.

However, when the above system is used to perform an automatic SD memory card compatibility test, after the PC sends a control command to control the SD switch circuit to connect the SD card to be tested, the radio and tape player needs to read the audio file in the SD card, output a corresponding audio signal, convert the audio signal by the audio switch circuit and input the audio signal to the PC, and the PC detects whether the SD card is compatible by determining whether the audio signal is received.

Therefore, the circuit architecture of the automatic test system for the compatibility of the SD memory card is complex, and when the compatibility test is performed, a radio and tape player is required to read the audio file in the SD memory card and input the audio signal to the PC, so that the test process is complex.

Disclosure of Invention

The method and the system for testing the compatibility of the memory card can realize the automatic testing of the compatibility of the memory card, and have simple system architecture, simple realization of the testing process and easy operation.

In a first aspect, the present invention provides a method for testing compatibility of a memory card, the method comprising:

the testing host sends a memory card channel selection command to a memory card control board, wherein the memory card channel selection command indicates a memory card channel to be tested, the memory card control board is provided with a plurality of memory card channels, and each memory card channel corresponds to a memory card;

the memory card control board opens the memory card channel to be tested according to the memory card channel selection command and reports a confirmation message to the test host;

the test host sends a test command to the test equipment to detect whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and a memory card interface of the test equipment is connected with the memory card control panel through a patch cord.

Optionally, after the memory card control board opens the memory card channel to be tested according to the memory card channel selection command, the method further includes:

the test equipment generates a memory card path corresponding to the memory card.

Optionally, the detecting whether the memory card corresponding to the memory card channel to be tested is normally identified by the testing device includes:

detecting whether a memory card path corresponding to the memory card exists in the test equipment, and if so, judging that the memory card can be normally identified by the test equipment and the memory card can be compatible with the test equipment; otherwise, the memory card cannot be normally identified by the test equipment, and the memory card cannot be compatible by the test equipment.

Optionally, the memory card control board includes a microcontroller and a plurality of memory card interfaces connected to the microcontroller, and each memory card interface corresponds to one memory card channel;

the memory card control board opens the memory card channel to be tested according to the memory card channel selection command, and the step of opening the memory card channel to be tested comprises the following steps: the microcontroller analyzes the memory card channel selection command, identifies a memory card channel to be tested, controls to disconnect the connection with other memory card interfaces, and establishes the connection with the memory card interface corresponding to the memory card channel to be tested.

Optionally, a multi-way switch is further connected between the microcontroller and the plurality of memory card interfaces;

the control of disconnecting the connection with other memory card interfaces and establishing the connection with the memory card interface corresponding to the memory card channel to be tested comprises the following steps: and controlling the multi-way switch to disconnect the interfaces of other memory cards and gating the memory card interface corresponding to the memory card channel to be tested.

In a second aspect, the present invention provides a memory card compatibility test system, where the system includes a test host, a test device and a memory card control board connected to the test host, and a patch cord, where one end of the patch cord is connected to a memory card interface of the test device, and the other end of the patch cord is connected to the memory card control board, the memory card control board has a plurality of memory card channels, and each memory card channel corresponds to one memory card; wherein the content of the first and second substances,

the test host is used for issuing a memory card channel selection command to the memory card control board, indicating a memory card channel to be tested, issuing a test command to the test equipment after receiving a confirmation message that the memory card channel to be tested is opened and reported by the memory card control board, and detecting whether a memory card corresponding to the memory card channel to be tested is normally identified by the test equipment;

the memory card control board is used for opening the memory card channel to be tested according to the memory card channel selection command and reporting a confirmation message to the test host.

Optionally, the test device is configured to generate a memory card path corresponding to the memory card after the memory card control board opens the memory card channel to be tested according to the memory card channel selection command.

Optionally, the test host is configured to detect whether a memory card path corresponding to the memory card exists in the test device, and if so, determine that the memory card can be normally identified by the test device, where the memory card is compatible with the test device; otherwise, the memory card cannot be normally identified by the test equipment, and the memory card cannot be compatible by the test equipment.

Optionally, the memory card control board includes a microcontroller and a plurality of memory card interfaces connected to the microcontroller, and each memory card interface corresponds to one memory card channel;

the microcontroller is used for analyzing the memory card channel selection command, identifying the memory card channel to be tested, controlling to establish the connection of the memory card interface corresponding to the memory card channel to be tested, and disconnecting the connection with other memory card interfaces.

Optionally, a multi-way switch is further connected between the microcontroller and the plurality of memory card interfaces;

the microcontroller is also used for controlling the multi-way switch to disconnect from other memory card interfaces and gating the memory card interface corresponding to the memory card channel to be tested.

According to the memory card compatibility test method and system provided by the embodiment of the invention, the memory card interface of the test equipment is connected with the memory card control panel with a plurality of memory card channels through the patch cord, the memory card control panel opens the memory card channel to be tested according to the memory card channel selection command issued by the test host, and reports the confirmation message to the test host, so that the test host issues the test command to the test equipment, detects whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and repeatedly executes the process until all the memory cards on the memory card control panel are tested, thereby automatically and sequentially carrying out compatibility test on the plurality of memory cards on the memory card control panel.

Drawings

FIG. 1 is a schematic structural diagram of a memory card compatibility testing system according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating a method for testing compatibility of a memory card according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating a method for testing compatibility of a memory card according to another embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment of the invention provides a memory card compatibility test system, as shown in fig. 1, the system comprises a test host, test equipment connected with the test host, a memory card control board and a patch cord, wherein one end of the patch cord is connected with a memory card interface of the test equipment, the other end of the patch cord is connected with the memory card control board, the memory card control board is provided with a plurality of memory card channels, and each memory card channel corresponds to one memory card; wherein the content of the first and second substances,

the test host is used for issuing a memory card channel selection command to the memory card control board, indicating a memory card channel to be tested, issuing a test command to the test equipment after receiving a confirmation message that the memory card channel to be tested is opened and reported by the memory card control board, and detecting whether a memory card corresponding to the memory card channel to be tested is normally identified by the test equipment;

the memory card control board is used for opening the memory card channel to be tested according to the memory card channel selection command and reporting a confirmation message to the test host.

Optionally, the test device is configured to generate a memory card path corresponding to the memory card after the memory card control board opens the memory card channel to be tested according to the memory card channel selection command.

Optionally, the test host is configured to detect whether a memory card path corresponding to the memory card exists in the test device, and if so, determine that the memory card can be normally identified by the test device, where the memory card is compatible with the test device; otherwise, the memory card cannot be normally identified by the test equipment, and the memory card cannot be compatible by the test equipment.

Optionally, the memory card control board includes a microcontroller and a plurality of memory card interfaces connected to the microcontroller, and each memory card interface corresponds to one memory card channel;

the microcontroller is used for analyzing the memory card channel selection command, identifying the memory card channel to be tested, controlling to establish the connection of the memory card interface corresponding to the memory card channel to be tested, and disconnecting the connection with other memory card interfaces.

Optionally, a multi-way switch is further connected between the microcontroller and the plurality of memory card interfaces;

the multi-way switch can be a multi-way selector, the multi-way selector is provided with a plurality of input ends and an output end, each input end is connected with one memory card interface, and the output end is connected with the microcontroller;

the microcontroller is also used for controlling the multi-way switch to disconnect from other memory card interfaces and gating the memory card interface corresponding to the memory card channel to be tested. Optionally, the test host is connected to the memory card control board through a serial port, and the memory card channel selection command issued by the test host to the memory card control board is a serial port message.

Optionally, the test host and the test device are connected through a USB interface or a wireless network.

In the memory card compatibility test system provided by the embodiment of the invention, the memory card interface of the test equipment is connected with the memory card control board with a plurality of memory card channels through the patch cord, the memory card control board opens the memory card channel to be tested according to the memory card channel selection command issued by the test host, and reports the confirmation message to the test host, so that the test host issues the test command to the test equipment, detects whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and repeatedly executes the process until all the memory cards on the memory card control board are tested, thereby automatically and sequentially carrying out compatibility test on the plurality of memory cards on the memory card control board.

An embodiment of the present invention further provides a method for testing compatibility of a memory card, as shown in fig. 2, the method includes:

s21, the test host sends a memory card channel selection command to the memory card control board, the memory card channel selection command indicates the memory card channel to be tested, wherein the memory card control board is provided with a plurality of memory card channels, and each memory card channel corresponds to a memory card.

And S22, the memory card control board opens the memory card channel to be tested according to the memory card channel selection command, and reports a confirmation message to the test host.

And S23, the test host sends a test command to the test equipment to detect whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and the memory card interface of the test equipment is connected with the memory card control board through a patch cord.

The above steps S21-S23 are repeatedly executed until all the memory card tests on the memory card control board are completed.

According to the memory card compatibility test method provided by the embodiment of the invention, the memory card interface of the test equipment is connected with the memory card control board with a plurality of memory card channels through the patch cord, the memory card control board opens the memory card channel to be tested according to the memory card channel selection command issued by the test host, and reports the confirmation message to the test host, so that the test host issues the test command to the test equipment, detects whether the memory card corresponding to the memory card channel to be tested is normally identified by the test equipment, and repeatedly executes the process until all the memory cards on the memory card control board are tested, thereby automatically and sequentially carrying out compatibility test on the plurality of memory cards on the memory card control board.

The following describes the memory card compatibility testing method of the present invention in detail with reference to specific embodiments.

In this embodiment, the test host is connected with the test equipment through a USB port, the test host is connected with the memory card control board through a serial port, and the memory card interface of the test equipment is connected with the memory card control board through a patch cord; the storage card control panel is provided with a microcontroller, a multi-way switch connected with the microcontroller and a plurality of SD card slots connected with the multi-way switch, and each SD card slot is inserted with an SD card.

As shown in fig. 3, the method for testing compatibility of a memory card according to the embodiment of the present invention includes:

s31, the test host sends an SD card channel selection command to the SD card control board through the serial port, and the SD card channel selection command indicates the SD card channel to be tested.

And S32, analyzing the SD card channel selection command by the microcontroller on the SD card control board, and identifying the SD card channel to be tested.

And S33, the microcontroller controls the multi-way switch to disconnect with other SD card slots and gates the SD card slot corresponding to the SD card channel to be tested.

The multi-way switch can be a multi-way selector, the multi-way selector is provided with a plurality of input ends and an output end, each input end is connected with one SD card slot, and the output end is connected with the microcontroller.

And S34, the microcontroller reports a confirmation message to the test host to confirm that the SD card channel to be tested is opened.

And after the memory card control board opens the memory card channel to be tested according to the memory card channel selection command, the test equipment generates a memory card path corresponding to the memory card.

And S35, the test host sends a test command to the test equipment to detect whether the SD card corresponding to the SD card channel to be tested is normally identified by the test equipment.

Specifically, the test host detects whether a memory card path corresponding to the memory card exists in the test device, and if so, determines that the memory card can be normally identified by the test device, and the memory card can be compatible with the test device; otherwise, the memory card cannot be normally identified by the test equipment, and the memory card cannot be compatible by the test equipment.

And S36, judging whether all SD card channels on the SD card control board are traversed or not, if so, ending, otherwise, returning to the step S31.

In the memory card compatibility testing method provided by the embodiment of the invention, the SD card slot of the testing equipment is connected with the SD card control board with a plurality of SD card channels through the patch cord, the microcontroller on the SD card control board controls the multi-way switch to open the SD card channel to be tested according to the SD card channel selection command issued by the testing host, then the testing equipment generates the memory card path corresponding to the memory card, and the microcontroller reports the confirmation message to the testing host so that the testing host issues the testing command to the testing equipment to detect whether the memory card path corresponding to the memory card exists in the testing equipment, thereby judging whether the memory card can be compatible with the testing equipment or not, and repeatedly executing the process until all the SD cards on the SD card control board are tested, thereby automatically and sequentially carrying out compatibility testing on the SD cards on the SD card control board, the system architecture is simple, and the test process is simple to realize and easy to operate.

It will be understood by those skilled in the art that all or part of the processes of the embodiments of the methods described above may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种移动终端SD卡检测方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!