CN108845967A - A kind of I2C bus analysis device - Google Patents

A kind of I2C bus analysis device Download PDF

Info

Publication number
CN108845967A
CN108845967A CN201810721487.0A CN201810721487A CN108845967A CN 108845967 A CN108845967 A CN 108845967A CN 201810721487 A CN201810721487 A CN 201810721487A CN 108845967 A CN108845967 A CN 108845967A
Authority
CN
China
Prior art keywords
bus
data
signal transmission
transmission circuit
computer 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
CN201810721487.0A
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.)
Guangdong Good Helper Global Technology Co Ltd
Original Assignee
Guangdong Good Helper Global Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Good Helper Global Technology Co Ltd filed Critical Guangdong Good Helper Global Technology Co Ltd
Priority to CN201810721487.0A priority Critical patent/CN108845967A/en
Publication of CN108845967A publication Critical patent/CN108845967A/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)

Abstract

The present invention relates to use for laboratory I2C bus analysis devices,Specifically disclose a kind of I2C bus analysis device,Including computer equipment,MCU data processor,Power module,And the I2C bus connection wire road being connected with the MCU data processor,Bluetooth signal transmission circuit,WIFI signal transmission circuit,USB driving circuit,TF memory card,LED light,Bluetooth signal transmission circuit is connect with Bluetooth antenna,WIFI signal transmission circuit is connect with WIFI antenna,USB driving circuit is connect with USB interface,Power module and MCU data processor,Bluetooth signal transmission circuit,WIFI signal transmission circuit,The power supply interface of TF memory card connects,The present invention can observe directly the data of I2C bus,And data can be filtered,Mark,A variety of processing such as preservation,Greatly facilitate the data analysis of I2C bus,Improve bus apparatus exploitation and testing efficiency,Hardware element is at low cost,Good reliability,Save a large amount of human resources and equipment requirement.

Description

A kind of I2C bus analysis device
Technical field
The present invention relates to laboratory bus analysis device, especially a kind of I2C bus analysis device.
Background technique
As automotive circuit diagram degree is higher and higher, the information interaction of each equipment of automobile is more frequent, automotive bus technology Using also more and more extensive.I2C (Inter-Integrated Circuit) bus be one kind by PHILIPS company in 80 years The twin wire universal serial bus of generation exploitation, for connecting microcontroller and its peripheral equipment.The most important advantage of I2C bus is its letter Unisexuality and validity.
Laboratory and equipment are being developed without the device of support I2C bus analysis, filtering, mark completely in market at present When the occasions such as test workshop need to analyze I2C bus, waveform is observed generally by oscillograph or logic analyser, The method can only see waveform, can not directly complete observation arrive communicating pair data so that debugging very not intuitively, also can not be intuitive It has been shown that, record, analysis I2C bus data.
Summary of the invention
In order to overcome the problems, such as it is existing can not intuitively show, record, analyze I2C bus data, the present invention provides one kind I2C bus analysis device.
The technical solution adopted by the present invention is that:At a kind of I2C bus analysis device, including computer equipment and MCU data Device is managed, it is characterized in that:It further include power module and the I2C bus connection wire road being connected with the MCU data processor, bluetooth Signal transmitting and receiving circuit, WIFI signal transmission circuit, USB driving circuit, TF memory card, LED light, Bluetooth signal transmission circuit It is connect with Bluetooth antenna, WIFI signal transmission circuit is connect with WIFI antenna, and USB driving circuit is connect with USB interface, power supply mould Block is connect with the power supply interface of MCU data processor, Bluetooth signal transmission circuit, WIFI signal transmission circuit, TF memory card.
Preferably, the power module uses SPX3819 chip, 3.3V voltage is exported.
Data analysing method of the invention includes that steps are as follows:
S1 bus connection, MCU data processor by I/O interface connect with I2C bus connection wire road I2C bus SDA and SCL route;
S2 connection computer equipment detects USB circuit connection if connectionless and opens bluetooth communication mode and WIFI Communication pattern is established by bluetooth or WIFI and computer equipment and is wirelessly connected;
S3 sends data, and MCU data processor reads the data transmitted in bus, and is transferred to computer equipment or TF storage Deposit card;
The processing of S4 bus data receives I2C bus data by the special-purpose software at computer equipment end, and to I2C bus Data classified, screened, shown, saved;
The analysis of S5 bus data combines matched data and mark according to the mark condition that computer equipment inputs Come, the data after display screening.
Preferably, the step S3, which sends data and specifically wraps, expands following sub-step:
S301.MCU data processor records the bus data received;
S302. plug-in analyzes bus behavior according to I2C protocol specification;
S303. data content is arranged according to bus behavior and be packaged;
S304. if any connection computer equipment, upload request is sent, if do not connect with computer equipment, data are saved In TF memory card;
S305. upload license is received, data are uploaded.
The beneficial effects of the invention are as follows:The data of I2C bus can be observed directly, and data can be filtered, A variety of processing such as mark, preservation greatly facilitate the data analysis of I2C bus, improve bus apparatus exploitation and test effect Rate.Compare it is existing waveform is observed by oscillograph or logic analyser, firstly, the present invention be mass data communication analysis can Row provides condition, simplifies the workload of technological development personnel, reduces working strength when test;It is marked using filtering Etc. functions, cumbersome operation will be repeated and give computer, the time that technological development personnel analyze data has been saved, improved analysis Efficiency brings more convenient and fast method for debugging.The hardware element cost that the present invention uses is relatively low, good reliability, significantly The equipment needs for saving experiment and test, save a large amount of human and material resources.
Detailed description of the invention
Fig. 1 is circuit diagram of the invention.
Fig. 2 is reading equipment work flow diagram of the invention.
Fig. 3 is PC software flow pattern of the invention.
Specific embodiment
Referring to Fig. 1, the present invention include include computer equipment, MCU data processor, power module, and with the MCU The connected I2C bus connection wire road of data processor, Bluetooth signal transmission circuit, WIFI signal transmission circuit, USB driving electricity Road, TF memory card, LED light, Bluetooth signal transmission circuit are connect with Bluetooth antenna, WIFI signal transmission circuit with WIFI days Line connection, USB driving circuit are connect with USB interface, power module and MCU data processor, Bluetooth signal transmission circuit, WIFI The power supply interface connection of signal transmitting and receiving circuit, TF memory card.
MCU data processor uses STM32 family chip, and computing capability is stronger, and program library is abundant, is appropriate for data reading Take analysis.
Power module uses SPX3819 chip, inputs 5V voltage by USB interface energization pins, exports 3.3V voltage.
LED light is by MCU data processor controlled, for showing working condition of the invention.
The present invention uses a single-chip microcontroller as data and catches packet unit, is parallel to bus by common connecting line or probe On, it is connected on computer using wireless network or USB line road, hardware element cost is relatively low, and reality is greatly saved in good reliability Test the equipment needs with test.
Referring to figs. 2 and 3, the present invention monitors bus waveform variation by the general purpose I/O of MCU, according to I2C protocol specification, divides Analyse the behavior of I2C bus.All bus behaviors packing is uploaded into computer by wireless network (wifi or bluetooth) or USB data line Host, the filter condition (such as bus address reads and writes behavior, data characteristic) that computer is set by user, filters out user and thinks The data wanted, also, user can mark given data, and computer is according to mark set by user and data format progress It is right, mark and data are saved together.The present invention greatly facilitates the data analysis of I2C bus, improves bus apparatus and opens Hair and testing efficiency, simplify the workload of technological development personnel, reduce working strength when test, saved technological development Personnel analyze the time of data, improve analysis efficiency, bring more convenient and fast method for debugging.
Specific step is as follows for implementation method of the invention:
S1 bus connection, MCU data processor by I/O interface connect with I2C bus connection wire road I2C bus SDA and SCL route;
S2 connection computer equipment detects USB circuit connection if connectionless and opens bluetooth communication mode and WIFI Communication pattern is established by bluetooth or WIFI and computer equipment and is wirelessly connected;
S3 sends data, and MCU data processor reads the data transmitted in bus, and is transferred to computer equipment or TF storage Deposit card;
The processing of S4 bus data receives I2C bus data by the special-purpose software at computer equipment end, and to I2C bus Data classified, screened, shown, saved;
The analysis of S5 bus data combines matched data and mark according to the mark condition that computer equipment inputs Come, the data after display screening.
Wherein, step S3, which is specifically wrapped, expands following sub-step:
S301.MCU data processor records the bus data received;
S302. plug-in analyzes bus behavior according to I2C protocol specification;
S303. data content is arranged according to bus behavior and be packaged;
S304. if any connection computer equipment, upload request is sent, if do not connect with computer equipment, data are saved In TF memory card;
S305. upload license is received, data are uploaded.

Claims (4)

1. a kind of I2C bus analysis device, including computer equipment and MCU data processor, it is characterized in that:It further include power supply mould Block and the I2C bus connection wire road being connected with the MCU data processor, Bluetooth signal transmission circuit, WIFI signal transmitting-receiving Circuit, USB driving circuit, TF memory card and LED light, Bluetooth signal transmission circuit are connect with Bluetooth antenna, WIFI signal Transmission circuit is connect with WIFI antenna, and USB driving circuit is connect with USB interface, power module respectively with MCU data processor, The power supply interface connection of Bluetooth signal transmission circuit, WIFI signal transmission circuit, TF memory card.
2. a kind of I2C bus analysis device according to claim 1, it is characterized in that:The power module uses SPX3819 chip exports 3.3V voltage.
3. a kind of I2C bus analysis device according to claim 1 or 2, it is characterized in that:The analysis side of the analytical equipment Method includes step:
The connection of S1 bus, MCU data processor connect the SDA and SCL of I2C bus by I/O interface with I2C bus connection wire road Route;
S2 connection computer equipment detects USB circuit connection, if connectionless, opens bluetooth communication mode and WIFI communication Mode is established by bluetooth or WIFI and computer equipment and is wirelessly connected;
S3 sends data, and MCU data processor reads the data transmitted in bus, and is transferred to computer equipment or TF storage Card;
The processing of S4 bus data receives I2C bus data by the special-purpose software at computer equipment end, and to the number of I2C bus According to being classified, screened, shown, saved;
The analysis of S5 bus data combines matched data and mark according to the mark condition that computer equipment inputs, and shows Data after showing screening.
4. a kind of I2C bus analysis device according to claim 3, it is characterized in that:The step S3 sends data tool Body packet expands following sub-step:
S301.MCU data processor records the bus data received;
S302. plug-in analyzes bus behavior according to I2C protocol specification;
S303. data content is arranged according to bus behavior and be packaged;
S304. if any connection computer equipment, upload request is sent, if do not connect with computer equipment, data are stored in TF In memory card;
S305. upload license is received, data are uploaded.
CN201810721487.0A 2018-07-03 2018-07-03 A kind of I2C bus analysis device Pending CN108845967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810721487.0A CN108845967A (en) 2018-07-03 2018-07-03 A kind of I2C bus analysis device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810721487.0A CN108845967A (en) 2018-07-03 2018-07-03 A kind of I2C bus analysis device

Publications (1)

Publication Number Publication Date
CN108845967A true CN108845967A (en) 2018-11-20

Family

ID=64200428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810721487.0A Pending CN108845967A (en) 2018-07-03 2018-07-03 A kind of I2C bus analysis device

Country Status (1)

Country Link
CN (1) CN108845967A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347139A (en) * 2019-05-22 2019-10-18 苏州浪潮智能科技有限公司 A kind of test fixture of I2C bus
CN111291443A (en) * 2018-12-07 2020-06-16 广州汽车集团股份有限公司 Automatic generation method, device, equipment and storage medium for I/O module model of vehicle control unit software

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694082A (en) * 2005-05-26 2005-11-09 海信集团有限公司 Radio transmission system of I2C bus data
CN101630299A (en) * 2009-05-27 2010-01-20 东南大学 Analysis and trigger method of I2C serial bus signal
CN201812250U (en) * 2010-10-08 2011-04-27 顾群 Portable wireless keyboard
CN203276265U (en) * 2013-01-07 2013-11-06 黄维翼 I2C (bus testing device based on USB (universal serial bus) interface
CN103942171A (en) * 2014-04-04 2014-07-23 广东翼卡车联网服务有限公司 TF card with communication function
US20170324606A1 (en) * 2016-05-09 2017-11-09 DataMetrex Limited Serial communications tap device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694082A (en) * 2005-05-26 2005-11-09 海信集团有限公司 Radio transmission system of I2C bus data
CN101630299A (en) * 2009-05-27 2010-01-20 东南大学 Analysis and trigger method of I2C serial bus signal
CN201812250U (en) * 2010-10-08 2011-04-27 顾群 Portable wireless keyboard
CN203276265U (en) * 2013-01-07 2013-11-06 黄维翼 I2C (bus testing device based on USB (universal serial bus) interface
CN103942171A (en) * 2014-04-04 2014-07-23 广东翼卡车联网服务有限公司 TF card with communication function
US20170324606A1 (en) * 2016-05-09 2017-11-09 DataMetrex Limited Serial communications tap device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291443A (en) * 2018-12-07 2020-06-16 广州汽车集团股份有限公司 Automatic generation method, device, equipment and storage medium for I/O module model of vehicle control unit software
CN110347139A (en) * 2019-05-22 2019-10-18 苏州浪潮智能科技有限公司 A kind of test fixture of I2C bus

Similar Documents

Publication Publication Date Title
US10955461B2 (en) Smart and efficient protocol logic analyzer configured within automated test equipment (ATE) hardware
CN103412562B (en) Automotive universal Diagnostic Test Set
US20200033408A1 (en) Method and system for acquisition of test data
US7225357B2 (en) SDIO card development system
CN108475227A (en) Test functional component and data debugging method
CN203260029U (en) System chip prototype verification debugging device based on field programmable gate array (FPGA)
CN105372619B (en) A kind of safety chip power failure test equipment
CN108845967A (en) A kind of I2C bus analysis device
CN103365689A (en) Singlechip parallel burning method
CN107015896B (en) Embedded equipment CPU and peripheral state real-time monitoring method and system thereof
CN204789908U (en) Circuit board automatic test system based on labVIEW
CN107678984A (en) USB port mapping method and computer-readable recording medium
WO2016184170A1 (en) Smi interface device debugging apparatus and method, and storage medium
CN203276265U (en) I2C (bus testing device based on USB (universal serial bus) interface
CN102591835B (en) Portable downloader
CN112114899A (en) Chip debugging system and debugger
TWI420318B (en) A non-intrusive general-purpose common busbar switching device
CN104572515B (en) Tracking module, method, system and on-chip system chip
CN107704417A (en) The method and its communication system to be communicated with equipment under test
CN115454903A (en) Automatic interface plugging and unplugging control device and method
CN109582571A (en) On-line debugging method, apparatus, debugging slave, debugging host and system
CN201278146Y (en) ATA interface signal capturing apparatus implemented based on FPGA
CN109254937B (en) USB hub, USB device enumeration exception detection method and computer storage medium
CN112970005A (en) WIFI programming debugger for microcontroller and method thereof
CN201167331Y (en) Interface case for real time monitoring bidirectional data transmission

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
CB02 Change of applicant information

Address after: 528000 No. 25-8 (F1) five, 501, C, southwest garden, Sanshui center, Foshan, Guangdong.

Applicant after: Faurecia electronic (Foshan) Co., Ltd

Address before: 528000 No. 25-8 (F1) five, 501, C, southwest garden, Sanshui center, Foshan, Guangdong.

Applicant before: Guangdong good helper Global Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120

RJ01 Rejection of invention patent application after publication