CN107704417A - The method and its communication system to be communicated with equipment under test - Google Patents

The method and its communication system to be communicated with equipment under test Download PDF

Info

Publication number
CN107704417A
CN107704417A CN201710823111.6A CN201710823111A CN107704417A CN 107704417 A CN107704417 A CN 107704417A CN 201710823111 A CN201710823111 A CN 201710823111A CN 107704417 A CN107704417 A CN 107704417A
Authority
CN
China
Prior art keywords
under test
converter
equipment under
mode
equipment
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.)
Pending
Application number
CN201710823111.6A
Other languages
Chinese (zh)
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.)
Chengdu Rui Core Micro Polytron Technologies Inc
Original Assignee
Chengdu Rui Core Micro Polytron Technologies 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 Chengdu Rui Core Micro Polytron Technologies Inc filed Critical Chengdu Rui Core Micro Polytron Technologies Inc
Priority to CN201710823111.6A priority Critical patent/CN107704417A/en
Publication of CN107704417A publication Critical patent/CN107704417A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a kind of method and its communication system to be communicated with equipment under test, it is related to communication technical field.It the described method comprises the following steps:External transducer equipment is searched in detection in predetermined period;Obtain the facility information of the converter found;Mode of operation is selected according to the facility information, and data message is sent to converter under the mode of operation selected;The converter receives the data message, and believes that content carries out read/write operation to equipment under test according to the data.Technical scheme in predetermined period by detecting external transducer equipment, and mode of operation is set according to the facility information of the converter found, data message is sent to carry out the operation read or write to equipment under test, equipment under test is communicated to connect by converter and PC ends, simultaneously without installing driver on PC ends, real plug and play is realized.

Description

The method and its communication system to be communicated with equipment under test
Technical field
The present invention relates to communication technical field, more particularly to the method and its communication system to be communicated with equipment under test.
Background technology
In chip design process, performance test need to be carried out to chip and its peripheral circuit.Current chips many on the market And in sensor assembly, typically using I2C (Inter-Integrated Circuit, twin wire serial line interface) or SPI(Serial Peripheral Interface, Serial Peripheral Interface (SPI))Communication interface and debugging main frame connection communication.Adjusting During examination, it need to be communicated by PC ends between chip under test or sensor assembly, to test its performance.It is existing on the market Product mainly realizes the transfer message between PC ends and measured device using the method for usb bus switching chip or USB virtual serial ports, But it is both needed to that driver is installed at PC ends before test job starts, great inconvenience is brought to tester.
The content of the invention
The method and its communication system to be communicated it is a primary object of the present invention to provide a kind of with equipment under test, it is intended to reduce The transit working of PC ends and measured device during test job, realize that free drive is transferred.
To achieve the above object, the present invention provides a kind of method to be communicated with equipment under test, comprises the following steps:
External transducer equipment is searched in detection in predetermined period;
Obtain the facility information of the converter found;
Mode of operation is selected according to the facility information, and data message is sent to converter under the mode of operation selected;
The converter receives the data message, and believes that content carries out read/write operation to equipment under test according to the data.
Preferably, external transducer equipment is searched in the detection in predetermined period also includes:
In predetermined period, the detection of PC ends has searched whether that external transducer equipment accesses, if so, then obtaining the converter of access Facility information, such as without external equipment access, then into next cycle continue detection search.
Preferably, the predetermined period is 1s.
Preferably, it is described that mode of operation is selected according to the facility information, and data letter is sent under the mode of operation selected Breath also includes to converter:
PC ends select corresponding mode of operation according to the connecter type of the equipment under test of access.
Preferably, the mode of operation includes I2C patterns and SPI mode.
Preferably, the converter receives the data message, and believes that content carries out read/write to equipment under test according to the data Operation also includes:
The converter is initialized, the data message sent by the PC ends and parsing are received, according to the data message after parsing Content carries out read/write operation to equipment under test.
The present invention also provides a kind of communication system, and the system includes:
PC ends, for the detection lookup external transducer equipment in predetermined period;
The PC ends include:For the acquisition module for the facility information for obtaining the converter found;For according to Facility information selects the selecting module of mode of operation;For sending data message under the mode of operation selected to converter Sending module;
Converter, the PC ends and equipment under test are connected, believe content pair for receiving the data message, and according to the data Equipment under test carries out read/write operation;
Equipment under test, is connected to the converter, receiving converter data or sends data to converter.
Preferably, the interface type of the equipment under test is I2C interface or SPI interface.
Preferably, the converter also includes being used to receive the data message sent by the PC ends and the parsing module of parsing, And for the communication module of read/write operation to be carried out to equipment under test according to the data information content after parsing.
Technical scheme in predetermined period by detecting external transducer equipment, and according to the converter found Facility information sets mode of operation, sends data message to carry out the operation read or write to equipment under test so that tested to set It is standby to be communicated to connect by converter and PC ends, while without installing driver on PC ends, realize and really insert i.e. With.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the method that the present invention communicates with equipment under test;
Fig. 2 is the workflow schematic diagram at PC ends in the method that the present invention communicates with equipment under test;
Fig. 3 is the structure principle chart of communication system of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention is further described below in conjunction with the accompanying drawings.
A kind of method to be communicated with equipment under test, as shown in figure 1, comprising the following steps:
External transducer equipment is searched in detection in predetermined period;Obtain the facility information of the converter found;According to The facility information selects mode of operation, and sends data message to converter under the mode of operation selected;The conversion Device receives the data message, and believes that content carries out read/write operation to equipment under test according to the data.
Set by detecting external transducer equipment in predetermined period, and according to the facility information of the converter found Mode of operation, data message is sent to carry out the operation read or write to equipment under test so that equipment under test can be by turning Parallel operation and PC ends(That is host computer)Communication connection, while without installing driver on PC ends, realize real plug and play.
Preferably, external transducer equipment is searched in the detection in predetermined period also includes:
In predetermined period, the detection of PC ends has searched whether that external transducer equipment accesses, if so, then obtaining the converter of access Facility information, such as without external equipment access, then into next cycle continue detection search.
Converter is connected by USB interface with PC ends, and PC ends by searching HID automatically(Human Interface Device, human-computer interaction device), i.e. the Vendor ID of converter connection(Vendor code)、Product ID(Product identification Code)、Version Number(Version number), and an effective handle is obtained to establish the communication port with converter.
In a particular embodiment, the predetermined period is 1s.PC ends are searched and connect HID device automatically, meanwhile, with 1 second HID device connection state is updated for compartment of terrain.
Preferably, it is described that mode of operation is selected according to the facility information, and data letter is sent under the mode of operation selected Breath also includes to converter:
PC ends select corresponding mode of operation according to the connecter type of the equipment under test of access.Specifically, equipment under test is band The chip or sensor assembly of I2C interface or SPI interface.
Specifically, when connecting multiple converters on same PC ends, different converters is respectively configured different Vendor ID, Product ID, Version Number avoid conflicting, and integrated simulation I2C interface and simulation SPI interface, make Both interfaces realize multiplexing.
In a particular embodiment, the mode of operation includes I2C patterns and SPI mode.When equipment under test band is that band I2C connects When the chip or sensor assembly of mouth, PC ends selection mode of operation is I2C patterns;When equipment under test for SPI interface chip or During sensor assembly, PC ends selection mode of operation is SPI mode.
Preferably, the converter receives the data message, and believes that content carries out read/write to equipment under test according to the data Operation also includes:
The converter is initialized, the data message sent by the PC ends and parsing are received, according to the data message after parsing Content carries out read/write operation to equipment under test.
In a particular embodiment, equipment under test message length is set as 64 bytes, and converter receives PC ends or tested After the data message that module is sent, then tested module or PC ends be sent to I2C mode standards or SPI mode standard.
Specifically, as shown in Fig. 2 being using the idiographic flow that PC ends are tested equipment under test in this method:
A. PC ends global variable, api function(Application Programming Interface, application programming interfaces letter Number)Statement and initialization;
B. PC ends start 1S timers, and HID device is searched in timing;A series of api functions are called to be set to position searched HID It is standby, True is returned when detecting HID device, otherwise returns to False;
C. if detecting HID device, API Function obtains facility information and effective handle, establishes logical with HID device Believe passage;
D. wait user to select I2C patterns or SPI mode, different operating interface is entered after model selection;
E. wait user to input and send data and read-write length, send data format:First code+command code+write length+reading length+ Data to be written, first code 0XAA represent I2C patterns, and first code 0XBB represents SPI mode, and command code 0X01 represents write operation, operation Code 0X02 represents read operation;
F. under I2C patterns, if writing length>2 data messages for representing that PC ends are sent represent write operation(Call API letters Number sends data to converter), otherwise represent read operation(I.e. PC ends API Function first sends data message to converter, treats The data of equipment under test transmission are read after converter processing again).
The present invention also provides a kind of communication system, as shown in figure 3, the system includes:
PC ends 1, for the detection lookup external transducer equipment in predetermined period;
The PC ends 1 include:For the acquisition module 11 for the facility information for obtaining the converter 2 found;For according to Facility information selects the selecting module 12 of mode of operation;For sending data message under the mode of operation selected to converter 2 sending module 13;
Converter 2, the PC ends 1 and equipment under test 3 are connected, for receiving the data message, and according in data letter Hold and read/write operation is carried out to equipment under test 3;
Equipment under test 3, is connected to the converter 2, the data of receiving converter 2 or sends data to converter 2.
Preferably, the interface type of the equipment under test 3 is I2C interface or SPI interface.
Preferably, the converter 2 also includes being used to receive the data message sent by the PC ends 1 and the parsing of parsing Module 21, and for carrying out the communication module 22 of read/write operation to equipment under test 3 according to the data information content after parsing.
It should be appreciated that it these are only the preferred embodiments of the present invention, it is impossible to therefore the scope of the claims of the limitation present invention, Every equivalent structure made using description of the invention and accompanying drawing content or equivalent flow conversion, or directly or indirectly use In other related technical areas, it is included within the scope of the present invention.

Claims (9)

  1. A kind of 1. method to be communicated with equipment under test, it is characterised in that comprise the following steps:
    External transducer equipment is searched in detection in predetermined period;
    Obtain the facility information of the converter found;
    Mode of operation is selected according to the facility information, and data message is sent to converter under the mode of operation selected;
    The converter receives the data message, and believes that content carries out read/write operation to equipment under test according to the data.
  2. 2. the method according to claim 1 to be communicated with equipment under test, it is characterised in that described to be detected in predetermined period Searching external transducer equipment also includes:
    In predetermined period, the detection of PC ends has searched whether that external transducer equipment accesses, if so, then obtaining the converter of access Facility information, such as without external equipment access, then into next cycle continue detection search.
  3. 3. the method according to claim 2 to be communicated with equipment under test, it is characterised in that the predetermined period is 1s.
  4. 4. the method according to claim 2 to be communicated with equipment under test, it is characterised in that described according to the facility information Mode of operation is selected, and send data message under the mode of operation selected to converter also to include:
    PC ends select corresponding mode of operation according to the connecter type of the equipment under test of access.
  5. 5. the method according to claim 4 to be communicated with equipment under test, it is characterised in that the mode of operation includes I2C Pattern and SPI mode.
  6. 6. the method according to claim 4 to be communicated with equipment under test, it is characterised in that the converter receives the number It is believed that breath, and believe that content carries out read/write operation to equipment under test and also included according to the data:
    The converter is initialized, the data message sent by the PC ends and parsing are received, according to the data message after parsing Content carries out read/write operation to equipment under test.
  7. A kind of 7. communication system, it is characterised in that including:
    PC ends, for the detection lookup external transducer equipment in predetermined period;
    The PC ends include:For the acquisition module for the facility information for obtaining the converter found;For according to Facility information selects the selecting module of mode of operation;For sending data message under the mode of operation selected to converter Sending module;
    Converter, the PC ends and equipment under test are connected, believe content pair for receiving the data message, and according to the data Equipment under test carries out read/write operation;
    Equipment under test, is connected to the converter, receiving converter data or sends data to converter.
  8. 8. communication system according to claim 7, it is characterised in that the interface type of the equipment under test is I2C interface Or SPI interface.
  9. 9. communication system according to claim 7, it is characterised in that the converter also includes being used to receive by the PC The data message sent and the parsing module of parsing are held, and for being entered according to the data information content after parsing to equipment under test The communication module of row read/write operation.
CN201710823111.6A 2017-09-13 2017-09-13 The method and its communication system to be communicated with equipment under test Pending CN107704417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710823111.6A CN107704417A (en) 2017-09-13 2017-09-13 The method and its communication system to be communicated with equipment under test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710823111.6A CN107704417A (en) 2017-09-13 2017-09-13 The method and its communication system to be communicated with equipment under test

Publications (1)

Publication Number Publication Date
CN107704417A true CN107704417A (en) 2018-02-16

Family

ID=61171607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710823111.6A Pending CN107704417A (en) 2017-09-13 2017-09-13 The method and its communication system to be communicated with equipment under test

Country Status (1)

Country Link
CN (1) CN107704417A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175050A (en) * 2019-05-29 2019-08-27 深圳创龙智新科技有限公司 Peripheral device control method, device, system, electronic equipment and storage medium
CN110674061A (en) * 2019-09-24 2020-01-10 上海商汤临港智能科技有限公司 Control method and device of machine equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633128A (en) * 2004-12-31 2005-06-29 北京中星微电子有限公司 A communication transmission control device and method for implementing communication protocol control
CN101127023A (en) * 2006-08-17 2008-02-20 四川维肯电子有限公司 Universal asynchronous serial extended chip of multi-bus interface
CN101136002A (en) * 2006-08-29 2008-03-05 深圳市朗科科技有限公司 Mobile storage means and device having USB and UART serial controlling
CN101222732A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 State control signal testing device
CN103440216A (en) * 2013-08-22 2013-12-11 深圳市汇顶科技股份有限公司 Chip and method for debugging MCU through I2C slave unit
CN104571991A (en) * 2014-12-26 2015-04-29 京东方科技集团股份有限公司 Control panel, illumination equipment and illumination method
CN105446929A (en) * 2015-12-14 2016-03-30 武汉芯昌科技有限公司 Port multiplexing circuit capable of supporting SPI, I2C, I2CL and UART protocols
CN106383794A (en) * 2016-09-18 2017-02-08 合肥联宝信息技术有限公司 Serial port and USB port reuse method and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633128A (en) * 2004-12-31 2005-06-29 北京中星微电子有限公司 A communication transmission control device and method for implementing communication protocol control
CN101127023A (en) * 2006-08-17 2008-02-20 四川维肯电子有限公司 Universal asynchronous serial extended chip of multi-bus interface
CN101136002A (en) * 2006-08-29 2008-03-05 深圳市朗科科技有限公司 Mobile storage means and device having USB and UART serial controlling
CN101222732A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 State control signal testing device
CN103440216A (en) * 2013-08-22 2013-12-11 深圳市汇顶科技股份有限公司 Chip and method for debugging MCU through I2C slave unit
CN104571991A (en) * 2014-12-26 2015-04-29 京东方科技集团股份有限公司 Control panel, illumination equipment and illumination method
CN105446929A (en) * 2015-12-14 2016-03-30 武汉芯昌科技有限公司 Port multiplexing circuit capable of supporting SPI, I2C, I2CL and UART protocols
CN106383794A (en) * 2016-09-18 2017-02-08 合肥联宝信息技术有限公司 Serial port and USB port reuse method and electronic device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175050A (en) * 2019-05-29 2019-08-27 深圳创龙智新科技有限公司 Peripheral device control method, device, system, electronic equipment and storage medium
CN110175050B (en) * 2019-05-29 2022-10-14 深圳创龙智新科技有限公司 Peripheral device control method, device, system, electronic device and storage medium
CN110674061A (en) * 2019-09-24 2020-01-10 上海商汤临港智能科技有限公司 Control method and device of machine equipment and storage medium
CN110674061B (en) * 2019-09-24 2023-04-07 上海商汤临港智能科技有限公司 Control method and device of machine equipment and storage medium

Similar Documents

Publication Publication Date Title
US7921244B2 (en) Data sharing and transfer systems and methods
CN107077409B (en) Method and apparatus for multi-interface debugging in an electronic system
CN108475227A (en) Test functional component and data debugging method
CN107907814B (en) Method for improving mass production test efficiency of chips
CN100373388C (en) Method for fast generating logical circuit
CN106649021A (en) Testing device for PCIe slave device
CN105335548A (en) MCU simulation method for ICE
EP1403814B1 (en) Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system
CN115033444A (en) 8051 core-based online debugging circuit control device and control method
CN112631851A (en) Chip debugging agent device and chip debugging method
CN107678984A (en) USB port mapping method and computer-readable recording medium
CN107704417A (en) The method and its communication system to be communicated with equipment under test
CN111597137B (en) SPI protocol-based dynamic debugging method, device and system
CN112256615B (en) USB conversion interface device
CN114356846A (en) Image data sending method and device, electronic equipment and storage medium
WO2016184170A1 (en) Smi interface device debugging apparatus and method, and storage medium
CN102156618B (en) Memory device with multiple connectors and method for transmitting data
CN109407574A (en) Output-controlling device and its method may be selected in a kind of multibus
TWI420318B (en) A non-intrusive general-purpose common busbar switching device
CN104572515B (en) Tracking module, method, system and on-chip system chip
US11663101B2 (en) Semiconductor device and operation method thereof
CN207898470U (en) A kind of Intelligent heart rate electrocardio bracelet
CN106584862B (en) A kind of the 3D printing WIFI control system and its control method of built-in Web service
CN110780189B (en) SDIO interface test equipment and method based on FPGA
CN104268109A (en) Data interface communication method and device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180216