CN108231131A - A kind of eMMC test methods and device - Google Patents

A kind of eMMC test methods and device Download PDF

Info

Publication number
CN108231131A
CN108231131A CN201611160426.9A CN201611160426A CN108231131A CN 108231131 A CN108231131 A CN 108231131A CN 201611160426 A CN201611160426 A CN 201611160426A CN 108231131 A CN108231131 A CN 108231131A
Authority
CN
China
Prior art keywords
slave computer
message
data
state
usb endpoints
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
CN201611160426.9A
Other languages
Chinese (zh)
Other versions
CN108231131B (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.)
Zhaoyi Innovation Technology Group Co ltd
Original Assignee
GigaDevice Semiconductor Beijing Inc
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 GigaDevice Semiconductor Beijing Inc filed Critical GigaDevice Semiconductor Beijing Inc
Priority to CN201611160426.9A priority Critical patent/CN108231131B/en
Publication of CN108231131A publication Critical patent/CN108231131A/en
Application granted granted Critical
Publication of CN108231131B publication Critical patent/CN108231131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Abstract

The embodiment of the invention discloses a kind of eMMC test methods and device, this method to include:If slave computer detects that itself receives message, the slave computer be in interrupt status, and the state of corresponding USB endpoints is in can not reception state;Whether the slave computer is determined in the message comprising data type order;The slave computer responds the message according to definitive result.The embodiment of the present invention is by using above-mentioned technical proposal, so that the state according to USB endpoints, automatically control the message whether slave computer receives host computer transmission, it does not need to carry out multiple handshaking information to control host computer transmission data, improve testing efficiency, and when the corresponding USB endpoints of slave computer be in can not reception state when, USB, which can constantly retransmit USB endpoints, does not have the message received, so as to effectively avoid data-bag lost.

Description

A kind of eMMC test methods and device
Technical field
The present embodiments relate to the detection technique field of electronic product more particularly to a kind of eMMC test methods and dresses It puts.
Background technology
EMMC (Embedded Multi Media Card) is embedded multi-media card.EMMC be MMC associations conclude, Mainly for the embedded memory standard specification of the electronic products such as mobile phone or tablet computer.EMMC is integrated with one in a package Controller, it provides standard interface and manages flash memory so that cell phone manufacturer can be absorbed in the other parts of product development, and shorten The time of product is released to market.
It is more and more extensive with the application of eMMC, it is also more and more urgent to the performance test demand of eMMC.The performance of eMMC Test mainly includes:Power supply test, signal testing, power consumption test and stability test etc..At present, eMMC performance tests are adopted mostly With the test method of chip, i.e., it is connected by chip test base with intelligent apparatus, so as to test its basic read-write capability, but it is existing Some test method testing efficiencies are low.
Invention content
In view of this, the embodiment of the present invention provides a kind of eMMC test methods and device, to solve existing eMMC test sides The low technological deficiency of method testing efficiency.
In a first aspect, an embodiment of the present invention provides a kind of eMMC test methods, including:
If slave computer detects that itself receives message, the slave computer is in interrupt status, and corresponding USB endpoints State is in can not reception state;
Whether the slave computer is determined in the message comprising data type order;
The slave computer responds the message according to definitive result.
The second aspect embodiment of the present invention additionally provides a kind of eMMC test devices, including:
Packet check module, if detecting that itself receives message for slave computer, the slave computer is in interrupt status, And the state of corresponding USB endpoints be in can not reception state;
Whether data detection module is determined in the message for the slave computer comprising data type order;
Respond module responds the message for the slave computer according to definitive result.
Technical solution provided in an embodiment of the present invention is detected by slave computer and itself receives message, then controls bottom Machine is in interrupt status, and corresponding USB endpoint status be in can not reception state, and then judge be in the message received It is no to include data type order, and respond received message.The embodiment of the present invention is by using above-mentioned technical proposal so that root According to the state of USB endpoints, whether control slave computer receives the message of host computer transmission, does not need to carry out multiple handshaking information to control Host computer transmission data processed, improve testing efficiency, and when the corresponding USB endpoints of slave computer be in can not reception state when, USB Message of the USB endpoints without reception can be constantly retransmitted, so as to effectively avoid data-bag lost.
Description of the drawings
Fig. 1 is the flow diagram of a kind of eMMC test methods that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of eMMC test methods provided by Embodiment 2 of the present invention;
Fig. 3 is the structure diagram of a kind of eMMC test devices that the embodiment of the present invention three provides.
Specific embodiment
Technical solution to further illustrate the present invention below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the present invention rather than limitation of the invention.It further needs exist for illustrating , part related to the present invention rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow diagram of a kind of eMMC test methods that the embodiment of the present invention one provides, and this method is suitable for The situation of eMMC tests, can be performed, wherein the device can generally may be used by software and or hardware realization by eMMC test devices It is integrated in eMMC test platforms.As shown in Figure 1, this method comprises the following steps:
If step 110, slave computer detect that itself receives message, slave computer is in interrupt status, and corresponding USB ends The state of point is in can not reception state.
Typically, eMMC test developments platform is usually made of host computer and slave computer, and host computer refers to directly to send out Go out the computer of manipulation command, slave computer is to directly control the computer that equipment obtains status of equipment, the order that host computer is sent out First to slave computer, slave computer directly controls relevant device further according to this command analysis into corresponding time sequence signal.
Illustratively, during being tested into row write eMMC, slave computer transmission data is given by host computer, it is specific on Position machine by universal serial bus (Universal Serial Bus, USB) to slave computer transmission data, slave computer have with The USB endpoints of USB docking, if slave computer detects the message information for itself receiving host computer transmission, during slave computer is in Disconnected state, i.e. slave computer cannot receive the message that host computer is sent, and the state of the corresponding USB endpoints of the slave computer is NAK, I.e. the USB endpoints of slave computer are in the state that can not receive new message.In addition, when the state of USB endpoints is VALID states When, then the USB endpoints of slave computer are in the state that can receive message.
Whether step 120, slave computer are determined in message comprising data type order.
Step 130, slave computer are according to definitive result response message.
Illustratively, whether comprising data type order in the message that receives of slave computer judgement, according to judging result come Received message is responded.
Existing eMMC test developments platform is usually made of host computer and slave computer, and host computer and slave computer are according to USB Communication protocol communicates.Such as during being tested into row write eMMC, host computer gives slave computer transmission data, at this point, on Position machine and slave computer usually require host computer can be made to stop transmission data by corresponding handshaking information, greatly reduce EMMC testing efficiencies.
Technical solution provided in this embodiment is detected by slave computer and itself receives message, then automatically controls bottom Machine is in interrupt status, and corresponding USB endpoint status be in can not reception state, and then judge be in the message received It is no to include data type order, and respond received message.So that according to the state of USB endpoints, automatically controlling slave computer is The no message for receiving host computer transmission does not need to carry out multiple handshaking information to control host computer transmission data, improves to test and imitate Rate, and when the corresponding USB endpoints of slave computer be in can not reception state when, USB can constantly retransmit USB endpoints not receive Message, so as to effectively avoid data-bag lost.
Embodiment two
Fig. 2 is a kind of flow diagram of eMMC test methods provided by Embodiment 2 of the present invention, and the present embodiment is above-mentioned On the basis of embodiment, " slave computer is according to definitive result response message " is optimized, as shown in Fig. 2, this method is included such as Lower step:
EMMC tests enter step 210 after starting.
Whether step 210, the next machine testing itself receive message, if it is not, step 220 is then performed, if so, performing step Rapid 230.
Step 220, into major cycle.
Illustratively, technical solution provided in this embodiment is only to the exemplary illustration of a certain performance test, such as eMMC Test is write, can be other test commands performed in the eMMC test platforms into major cycle, such as read test.
Step 230, slave computer are in interrupt status, and be in can not reception state for the state of corresponding USB endpoints.
Whether step 240, slave computer are determined comprising data type order in message, if it is not, step 250 is then performed, if so, Then perform step 260.
Step 250, slave computer exit interrupt status, handle message, and USB endpoints, which are in, after processing is completed can receive shape State, and jump to step 200.
The data included in step 260, slave computer stored messages.
Step 270 determines whether the data of storage are more than preset fixed byte, if it is not, step 280 is then performed, if so, Then perform step 290.
Illustratively, if the flow writes test for eMMC, slave computer, which receives a certain size data and can just perform later, to be write Operation, such as preset fixed byte can be 512 bytes, and eMMC can be just carried out when slave computer receives the data of 512 bytes altogether Write operation, thus, slave computer need to detect whether the message data itself received is more than preset byte-sized.
Step 280, the state of USB endpoints be in can reception state, and return perform step 210.
Illustratively, if the data included in the message of slave computer storage are less than or equal to preset fixed byte, The state for setting USB endpoints is VALID states, i.e. USB endpoints can receive the new message of host computer transmission.
Step 290, slave computer exit interrupt status, handle the data of storage, and USB endpoints are in and can connect after processing is completed Receipts state, and perform step 200.
Illustratively, if the data included in the message of slave computer storage are more than preset fixed byte, slave computer processing After the data of complete storage, the state of setting USB endpoints is VALID states.In addition, when slave computer enters interrupt status, USB The state of endpoint can become NAK states from VALID states automatically.
Step 200 terminates.
Illustratively, the end in step 200, which can refer to, this time writes test and terminates.
Usually when slave computer enters interruption, the states of USB endpoints for can not reception state, i.e. slave computer cannot receive newly Message, but USB can constantly retransmit the message for sending failure at this time, until corresponding USB endpoints can receive this message.This reality The technical solution of example offer is provided, based on the communication characteristic of above-mentioned USB, when write operation completes slave computer and exits interruption, pass through by USB endpoint status becomes to receive the state of message so that slave computer can continue to receive new message information so that according to The state of USB endpoints automatically controls the message whether slave computer receives host computer transmission, does not need to carry out multiple handshaking information Host computer transmission data is controlled, improves testing efficiency.When slave computer enters interruption, the state of USB endpoints automatically becomes can not Reception state, according to the communication characteristic of USB, USB can constantly retransmit message of the corresponding USB endpoints of slave computer without reception, from And effectively avoid data-bag lost.
Embodiment three
Fig. 3 is the structure diagram of a kind of eMMC test devices that the embodiment of the present invention three provides, which can be by software And/or hardware realization, eMMC tests can be carried out by performing eMMC test methods.As shown in figure 3, the device can include:
Packet check module 310, if detecting that itself receives message for slave computer, slave computer is in interrupt status, And the state of corresponding USB endpoints be in can not reception state;
Whether data detection module 320 is determined in message for slave computer comprising data type order;
Respond module 330, for slave computer according to definitive result response message.
Technical solution provided in this embodiment, if slave computer, which detects, itself receives message, slave computer automatically into Interrupt status, and corresponding USB endpoint status be in can not reception state, and then judge whether included in the message that receives Data type order, and respond received message.So that according to the state of USB endpoints, automatically control whether slave computer receives The message of host computer transmission does not need to carry out multiple handshaking information to control host computer transmission data, improves testing efficiency, and When the corresponding USB endpoints of slave computer be in can not reception state when, USB can constantly retransmit USB endpoints do not have reception message, have Effect avoids data-bag lost.
On the basis of above-described embodiment, respond module 330, including:
First response unit, if for including data type order, the number included in slave computer stored messages in message According to, and determine whether the data of storage are more than preset fixed byte;
First processing units, for if more than then slave computer exits interrupt status, handles the data of storage, is handling Being in into rear USB endpoints can reception state;
Second processing unit, if for being equal to or less than, the state of USB endpoints is in can reception state.
On the basis of above-described embodiment, respond module 330 further includes:
Second response unit, if for not including data type order in message, slave computer exits interrupt status, handles Message, after processing is completed USB endpoints be in can reception state.
The eMMC test devices provided in above-described embodiment can perform the eMMC tests that any embodiment of the present invention is provided Method has and performs the corresponding function module of this method and advantageous effect.The technology of detailed description is not thin in the above-described embodiments Section, reference can be made to the eMMC test methods that any embodiment of the present invention is provided.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (6)

1. a kind of eMMC test methods, which is characterized in that including:
If slave computer detects that itself receives message, the slave computer is in interrupt status, and the state of corresponding USB endpoints In can not reception state;
Whether the slave computer is determined in the message comprising data type order;
The slave computer responds the message according to definitive result.
2. according to the method described in claim 1, it is characterized in that, the slave computer responds the message according to definitive result, Including:
If comprising data type order in the message, the slave computer stores the data included in the message, and determines Whether the data of storage are more than preset fixed byte;
If more than then the slave computer exits interrupt status, handles the data of storage, after processing is completed at the USB endpoints In can reception state;
If being equal to or less than, the state of the USB endpoints is in can reception state.
3. according to the method described in claim 2, it is characterized in that, the slave computer responds the message according to definitive result, It further includes:
If not including data type order in the message, the slave computer exits interrupt status, handles the message, locating After the completion of reason the USB endpoints be in can reception state.
4. a kind of eMMC test devices, which is characterized in that including:
Packet check module, if detecting that itself receives message for slave computer, the slave computer is in interrupt status, and right The state of USB endpoints answered is in can not reception state;
Whether data detection module is determined in the message for the slave computer comprising data type order;
Respond module responds the message for the slave computer according to definitive result.
5. device according to claim 4, which is characterized in that the respond module, including:
First response unit, if for including data type order in the message, the slave computer is stored in the message Comprising data, and determine storage data whether be more than preset fixed byte;
First processing units, for if more than then the slave computer exits interrupt status, handles the data of storage, is handling Being in into the rear USB endpoints can reception state;
Second processing unit, if for being equal to or less than, the state of the USB endpoints is in can reception state.
6. device according to claim 5, which is characterized in that the respond module further includes:
Second response unit, if for not including data type order in the message, the slave computer exits interrupt status, Handle the message, after processing is completed the USB endpoints be in can reception state.
CN201611160426.9A 2016-12-15 2016-12-15 eMMC test method and device Active CN108231131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611160426.9A CN108231131B (en) 2016-12-15 2016-12-15 eMMC test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611160426.9A CN108231131B (en) 2016-12-15 2016-12-15 eMMC test method and device

Publications (2)

Publication Number Publication Date
CN108231131A true CN108231131A (en) 2018-06-29
CN108231131B CN108231131B (en) 2021-01-01

Family

ID=62651464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611160426.9A Active CN108231131B (en) 2016-12-15 2016-12-15 eMMC test method and device

Country Status (1)

Country Link
CN (1) CN108231131B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726765A (en) * 2022-02-28 2022-07-08 福建星云检测技术有限公司 Control method and device for lithium battery test system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420299A (en) * 2008-11-28 2009-04-29 北京飞天诚信科技有限公司 Method for enhancing stability of intelligent cipher key equipment and intelligent cipher key equipment
CN102565671A (en) * 2011-12-16 2012-07-11 电子科技大学 Dynamic allocation method for on-line programming of integrated circuit tester
CN103049706A (en) * 2012-11-21 2013-04-17 飞天诚信科技股份有限公司 Method for improving data operation speed

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420299A (en) * 2008-11-28 2009-04-29 北京飞天诚信科技有限公司 Method for enhancing stability of intelligent cipher key equipment and intelligent cipher key equipment
CN102565671A (en) * 2011-12-16 2012-07-11 电子科技大学 Dynamic allocation method for on-line programming of integrated circuit tester
CN103049706A (en) * 2012-11-21 2013-04-17 飞天诚信科技股份有限公司 Method for improving data operation speed

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726765A (en) * 2022-02-28 2022-07-08 福建星云检测技术有限公司 Control method and device for lithium battery test system
CN114726765B (en) * 2022-02-28 2023-04-07 福建星云检测技术有限公司 Control method and device for lithium battery test system

Also Published As

Publication number Publication date
CN108231131B (en) 2021-01-01

Similar Documents

Publication Publication Date Title
US6769622B1 (en) System and method for simulating universal serial bus smart card device connected to USB host
CN101957807B (en) Method for USB device to recognize version type of Windows operating system
CN102043751B (en) Method for identifying host operation system by using USB equipment
US20090210571A1 (en) Processing of data to monitor input/output operations
CN103473202B (en) USB OTG, electronic equipment and the method realizing OTG function
CN103631534B (en) Data storage system and managing method thereof
CN103412836B (en) Hot plug processing method, device and system
CN104407279A (en) Code type data, apparatus and test method for automatically testing chip MDIO bus protocol
CN110619914A (en) Mass production method for solid state disk with PCIe interface mass production device
CN105094687B (en) Solid state disk control circuit and Ssd apparatus access system with solid state disk
CN101304362B (en) Retransmission buffering apparatus and data transmission method
CN103744478A (en) Bluetooth wireless display and control method thereof
CN105573947B (en) A kind of SD/MMC card control methods based on APB buses
CN102156618B (en) Memory device with multiple connectors and method for transmitting data
CN108231131A (en) A kind of eMMC test methods and device
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN109800202B (en) PCIE (peripheral component interface express) -based data transmission system, method and device
CN104615558A (en) Data transferring method and electronic device
CN101149720A (en) Adapter apparatus and data transmission system
CN100511196C (en) Data processing chip and memory device
CN102142093A (en) Operation method and device for memory card
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN108231126A (en) A kind of EMMC test methods and device
CN103440218A (en) CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol
CN115509965A (en) Memory controller and link identification method

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
CP03 Change of name, title or address

Address after: Room 101, Floor 1-5, Building 8, Yard 9, Fenghao East Road, Haidian District, Beijing 100094

Patentee after: Zhaoyi Innovation Technology Group Co.,Ltd.

Address before: 100083 12 Floors, Block A, Tiangong Building, Science and Technology University, 30 College Road, Haidian District, Beijing

Patentee before: GIGADEVICE SEMICONDUCTOR(BEIJING) Inc.