CN110471873A - A kind of data collection system and method realized IIC and turn CAN protocol - Google Patents
A kind of data collection system and method realized IIC and turn CAN protocol Download PDFInfo
- Publication number
- CN110471873A CN110471873A CN201910764517.0A CN201910764517A CN110471873A CN 110471873 A CN110471873 A CN 110471873A CN 201910764517 A CN201910764517 A CN 201910764517A CN 110471873 A CN110471873 A CN 110471873A
- Authority
- CN
- China
- Prior art keywords
- module
- data
- protocol
- iic
- rear end
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Abstract
The present invention is more particularly directed to a kind of data collection systems and method realized IIC and turn CAN protocol.Realization IIC turns the data collection system and method for CAN protocol, including VGA rear panel module, one-chip computer module, CAN controller module, CAN transceiver module and rear end display module, the VGA rear panel module, one-chip computer module, CAN controller module, CAN transceiver module and rear end display module are sequentially connected from front to back, to realize that data sampling and processing and Back end data are shown.Realization IIC turns the data collection system and method for CAN protocol, and ingenious in design, expansibility is strong, provides the thinking converted between a kind of different communication protocol, the conversion between different communication protocol may be implemented, simple and easy to use, has broad application prospects.
Description
Technical field
The present invention relates to technical field of circuit design, in particular to a kind of data collection system realized IIC and turn CAN protocol
And method.
Background technique
Communication protocol (communications protocol) refers to the rule of communication that communication parties are arranged in advance, can be with
It is simply interpreted as carrying out common language used in mutual session between each computer.Communication protocol has hierarchy, reliable
Property and validity.
As both entities complete communication or the be must comply with rule and agreement of service, communication protocol definition data sheet
The format that member uses, the information and meaning that information unit should include, connection type, the timing that information sends and receives, thus
Ensure that data are successfully transmitted to determining place in network.
In computer communication, communication protocol is for realizing the standard between computer and network connection, if network does not have
There is unified communication protocol, the information transmitting between computer can not just identify.Two computers are when being communicated, it is necessary to use
Communication protocol.
Common communication protocol mainly includes tri- kinds of agreements of TCP/IP, NETBEUI and IPX/SPX, every kind of association in local area network
Discuss the application environment for having its applicable.
In the industrial production, it is often necessary to certain parameters of equipment are obtained, thus the working condition of analytical equipment,
And result is shown.But often the acquisition of data and the display of analysis result need different communication protocol, complete not
It is a technological difficulties with the conversion between agreement.
Meanwhile monitoring device is many kinds of in IT application in enterprises, building BAS, industry control project, communication protocols in systems connection
The Diversification Problem of view, more and more prominent, performance, duration, cost and the system for having seriously affected automated system are stablized, solution
Certainly the conversion of automated system communication protocol and the problem of communication standardization, are significant.
It is more in IIC (Inter-Integrated Circuit, IC bus are a kind of multidirectional control buss)
A chip may be coupled under same bus structure, while each chip all can serve as to implement the voltage input of data transmission, this
Kind mode simplifies signal transmission bus.Iic bus is minimum using signal wire in various buses, and has automatic addressing, more
The bus of the functions such as host clock synchronization and arbitration.Therefore, using iic bus design a calculating machine system it is very convenient flexibly, body
Product is also small, thus is used widely in all kinds of practical applications.
And CAN (Controller Area Network, controller LAN) belongs to the scope of fieldbus, is a kind of
Effectively support the serial communication network of dcs.It is got over due to its high-performance, high reliability and unique design
It is more valued by people, is widely used in numerous areas.And it is capable of detecting when any mistake generated.When signal passes
When defeated distance reaches 10km, CAN bus stills provide the up to message transmission rate of 50kbit/s.Since CAN bus has very
High real-time performance and application range reaches as high as the high speed network of 1Mbps to the 50Kbps of inexpensive multi-line from bit rate
Network can arbitrarily arrange in pairs or groups.Therefore, CAN is own is obtained in the fields such as car industry, aircraft industry, Industry Control, security protection
It is widely applied.
And currently, it is still a technical problem urgently to be resolved that IIC agreement, which turns CAN protocol,.Based on this, the invention proposes
A kind of data collection system and method realized IIC and turn CAN protocol.
Summary of the invention
In order to compensate for the shortcomings of the prior art, the present invention provides the numbers that a kind of realization IIC being simple and efficient turns CAN protocol
According to acquisition system and method.
The present invention is achieved through the following technical solutions:
A kind of data collection system realized IIC and turn CAN protocol, it is characterised in that: including VGA rear panel module, single-chip microcontroller
Module, CAN controller module, CAN transceiver module and rear end display module, the VGA rear panel module, one-chip computer module, CAN
Controller module, CAN transceiver module and rear end display module are sequentially connected from front to back, to realize data sampling and processing
It is shown with Back end data.
The VGA rear panel module is connected by IIC interface with one-chip computer module, for obtaining rear end display module parameter
Information, and the parameter information that will acquire is sent to one-chip computer module by IIC communication protocol.
The rear end display module parameter information includes backlight illumination, resolution ratio, contrast, signal response time and visual
Angle.
The one-chip computer module is connected to CAN controller module by control signal circuit CTRL and data/address bus, is used for
IIC agreement is parsed, obtains the data that VGA rear panel module is sent, and arrangement integration is carried out to the data of acquisition, while being responsible for driving
CAN controller module and CAN transceiver send data by CAN protocol.
The CAN controller module is connected by transceiver interface with CAN transceiver module, for parsing one-chip computer module
The order of sending converts parallel data into CAN protocol data, by CAN transceiver module transfer to rear end display module.
The CAN transceiver module is connected to rear end display module by CAN bus, by CAN protocol data through CAN bus
It is transferred to rear end display module;The rear end display module is responsible for receiving the data in CAN bus, and by data convert at original
Format carries out processing and shows.
Turn the acquisition method of the data collection system of CAN protocol based on realization IIC, comprising the following steps:
The first step, VGA rear panel module obtain the parameter information of rear end display module, and pass through after getting parameter information
Iic bus is communicated with one-chip computer module, and the parameter information that will acquire is sent to one-chip computer module by IIC communication protocol;
Second step, one-chip computer module parse IIC agreement, obtain the data that VGA rear panel module is sent, and to the data of acquisition
Carry out arrangement integration;
Third step, one-chip computer module drive CAN controller module, obtain the data of CAN bus protocol format;
4th step, CAN transceiver will be in the data transmissions to CAN bus of CAN bus protocol format;
5th step, rear end display module reads data from CAN bus, after verifying successfully, is parsed according to custom protocol
Data convert is carried out processing at unprocessed form and shown by data.
The one-chip computer module uses 8051 single-chip microcontrollers, and the CAN controller module uses SJA1000CAN controller, institute
CAN transceiver module is stated using PCA82C250T CAN transceiver.
The beneficial effects of the present invention are: realization IIC turns the data collection system and method for CAN protocol, and it is ingenious in design, it can
Expansion is strong, provides the thinking converted between a kind of different communication protocol, the conversion between different communication protocol may be implemented, make
With convenient and simple, have broad application prospects.
Detailed description of the invention
Attached drawing 1 is that the present invention realizes that IIC turns the data collection system schematic diagram of CAN protocol.
Specific embodiment
In order to which technical problems, technical solutions and advantages to be solved are more clearly understood, tie below
Embodiment is closed, the present invention will be described in detail.It should be noted that specific embodiment described herein is only to explain
The present invention is not intended to limit the present invention.
Realization IIC turns the data collection system of CAN protocol, including VGA rear panel module, one-chip computer module, CAN controller
Module, CAN transceiver module and rear end display module, the VGA rear panel module, one-chip computer module, CAN controller module, CAN
Transceiver module and rear end display module are sequentially connected from front to back, to realize that data sampling and processing and Back end data are shown.
VGA (Video Graphics Array, the video transmission standard) rear panel module passes through IIC interface and single-chip microcontroller
Module is connected, and for obtaining rear end display module parameter information, and the parameter information that will acquire is sent out by IIC communication protocol
Give one-chip computer module.
The rear end display module parameter information includes backlight illumination, resolution ratio, contrast, signal response time and visual
Angle.
The one-chip computer module is connected to CAN (Communication by control signal circuit CTRL and data/address bus
Matrix, communication matrix) controller module for parsing IIC agreement obtains the data that VGA rear panel module is sent, and to acquisition
Data carry out arrangement integration, while being responsible for driving CAN controller module and CAN transceiver, data passed through into CAN protocol transmission
It goes out.
The CAN controller module is connected by transceiver interface with CAN transceiver module, for parsing one-chip computer module
The order of sending converts parallel data into CAN protocol data, by CAN transceiver module transfer to rear end display module.
The CAN transceiver module is connected to rear end display module by CAN bus, by CAN protocol data through CAN bus
It is transferred to rear end display module;The rear end display module is responsible for receiving the data in CAN bus, and by data convert at original
Format carries out processing and shows.
Turn the acquisition method of the data collection system of CAN protocol based on realization IIC, comprising the following steps:
The first step, VGA rear panel module obtain the parameter information of rear end display module, and pass through after getting parameter information
Iic bus is communicated with one-chip computer module, and the parameter information that will acquire is sent to one-chip computer module by IIC communication protocol;
Second step, one-chip computer module parse IIC agreement, obtain the data that VGA rear panel module is sent, and to the data of acquisition
Carry out arrangement integration;
Third step, one-chip computer module drive CAN controller module, obtain the data of CAN bus protocol format;
4th step, CAN transceiver will be in the data transmissions to CAN bus of CAN bus protocol format;
5th step, rear end display module reads data from CAN bus, after verifying successfully, is parsed according to custom protocol
Data convert is carried out processing at unprocessed form and shown by data.
The one-chip computer module uses 8051 single-chip microcontrollers, and the CAN controller module uses SJA1000CAN controller, institute
CAN transceiver module is stated using PCA82C250T CAN transceiver.
Realization IIC turns the data collection system and method for CAN protocol, and ingenious in design, expansibility is strong, provides one kind
The conversion between different communication protocol may be implemented in the thinking converted between different communication protocol, simple and easy to use, thus has
Wide application prospect.
Embodiment described above, only one kind of the specific embodiment of the invention, those skilled in the art is in this hair
The usual variations and alternatives carried out in bright technical proposal scope should be all included within the scope of the present invention.
Claims (8)
1. a kind of data collection system realized IIC and turn CAN protocol, it is characterised in that: including VGA rear panel module, single-chip microcontroller mould
Block, CAN controller module, CAN transceiver module and rear end display module, the VGA rear panel module, one-chip computer module, CAN control
Device module processed, CAN transceiver module and rear end display module are sequentially connected from front to back, thus realize data sampling and processing and
Back end data is shown.
2. the data collection system that realization IIC according to claim 1 turns CAN protocol, it is characterised in that: the VGA back
Plate module is connected by IIC interface with one-chip computer module, for obtaining rear end display module parameter information, and will acquire
Parameter information is sent to one-chip computer module by IIC communication protocol.
3. the data collection system that realization IIC according to claim 2 turns CAN protocol, it is characterised in that: the rear end is aobvious
Show that module parameter information includes backlight illumination, resolution ratio, contrast, signal response time and visible angle.
4. the data collection system that realization IIC according to claim 2 turns CAN protocol, it is characterised in that: the single-chip microcontroller
Module is connected to CAN controller module by control signal circuit CTRL and data/address bus, for parsing IIC agreement, obtains VGA
The data that rear panel module is sent, and arrangement integration is carried out to the data of acquisition, while being responsible for driving CAN controller module and CAN
Transceiver sends data by CAN protocol.
5. the data collection system that realization IIC according to claim 4 turns CAN protocol, it is characterised in that: the CAN control
Device module processed is connected by transceiver interface with CAN transceiver module, will be parallel for parsing the order of one-chip computer module sending
Data conversion is at CAN protocol data, by CAN transceiver module transfer to rear end display module.
6. the data collection system that realization IIC according to claim 5 turns CAN protocol, it is characterised in that: the CAN is received
It sends out device module and rear end display module is connected to by CAN bus, CAN protocol data are transferred to rear end through CAN bus and show mould
Block;The rear end display module is responsible for receiving the data in CAN bus, and data convert is carried out processing at unprocessed form and is shown
Show.
7. a kind of realization IIC according to claims 1 to 6 turns the acquisition method of the data collection system of CAN protocol, special
Sign is, comprising the following steps:
The first step, VGA rear panel module obtain the parameter information of rear end display module, and pass through IIC after getting parameter information
Bus is communicated with one-chip computer module, and the parameter information that will acquire is sent to one-chip computer module by IIC communication protocol;
Second step, one-chip computer module parse IIC agreement, obtain the data that VGA rear panel module is sent, and carry out to the data of acquisition
Arrange integration;
Third step, one-chip computer module drive CAN controller module, obtain the data of CAN bus protocol format;
4th step, CAN transceiver will be in the data transmissions to CAN bus of CAN bus protocol format;
5th step, rear end display module reads data from CAN bus, after verifying successfully, parses data according to custom protocol,
Data convert is carried out processing at unprocessed form to show.
8. the acquisition method that realization IIC according to claim 7 turns the data collection system of CAN protocol, it is characterised in that:
The one-chip computer module uses 8051 single-chip microcontrollers, and the CAN controller module uses SJA1000CAN controller, and the CAN is received
It sends out device module and uses PCA82C250T CAN transceiver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910764517.0A CN110471873A (en) | 2019-08-19 | 2019-08-19 | A kind of data collection system and method realized IIC and turn CAN protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910764517.0A CN110471873A (en) | 2019-08-19 | 2019-08-19 | A kind of data collection system and method realized IIC and turn CAN protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110471873A true CN110471873A (en) | 2019-11-19 |
Family
ID=68511079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910764517.0A Pending CN110471873A (en) | 2019-08-19 | 2019-08-19 | A kind of data collection system and method realized IIC and turn CAN protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471873A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212587A (en) * | 2006-12-30 | 2008-07-02 | 乐金电子(中国)研究开发中心有限公司 | Digital TV receiver and method adaptive to display parameters of display terminal |
CN202444507U (en) * | 2012-03-07 | 2012-09-19 | 北京经纬恒润科技有限公司 | CAN (Controller Area Network) bus and MOST (Media Oriented System Transport) bus protocol conversion system |
CN202869700U (en) * | 2012-10-31 | 2013-04-10 | 南京华欣分析仪器制造有限公司 | Microcontroller-based thermal analyzer system |
CN207291681U (en) * | 2017-08-18 | 2018-05-01 | 中国重汽集团福建海西汽车有限公司 | Automobile using multifunction instrument display system |
-
2019
- 2019-08-19 CN CN201910764517.0A patent/CN110471873A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212587A (en) * | 2006-12-30 | 2008-07-02 | 乐金电子(中国)研究开发中心有限公司 | Digital TV receiver and method adaptive to display parameters of display terminal |
CN202444507U (en) * | 2012-03-07 | 2012-09-19 | 北京经纬恒润科技有限公司 | CAN (Controller Area Network) bus and MOST (Media Oriented System Transport) bus protocol conversion system |
CN202869700U (en) * | 2012-10-31 | 2013-04-10 | 南京华欣分析仪器制造有限公司 | Microcontroller-based thermal analyzer system |
CN207291681U (en) * | 2017-08-18 | 2018-05-01 | 中国重汽集团福建海西汽车有限公司 | Automobile using multifunction instrument display system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102819512B (en) | A kind of full-duplex communication device based on SPI and method thereof | |
CN105141491B (en) | RS485 communication circuit and method for realizing spontaneous self-receiving | |
CN110704265A (en) | Early warning information active reporting method and system based on Modbus protocol | |
CN110334046A (en) | A kind of communication means, the apparatus and system of SPI full duplex | |
WO2022021869A1 (en) | Single-level single-line full-duplex bus communication method and system | |
CN103795520B (en) | Method for real-time synchronization based on FPGA message | |
CN202711246U (en) | Application expanding system with 485 buses and 232 buses | |
CN202940832U (en) | Avionic full duplex real-time Ethernet terminal adapter | |
CN103049410A (en) | Server and serial port switching circuit thereof | |
CN110471873A (en) | A kind of data collection system and method realized IIC and turn CAN protocol | |
CN207652476U (en) | A kind of support multi-protocol link moisture acquisition server equipment | |
CN114238193B (en) | Device for data interaction between PROFIBUS-DP bus and BLVDS bus | |
CN211509339U (en) | LED light controller | |
CN109062837A (en) | A kind of usb signal light teletransmission control module and method based on FPGA | |
CN110297795B (en) | System and method for realizing single-channel serial data transmission based on Ethernet PHY chip | |
CN112181882A (en) | Signal conversion method and device, electronic equipment and storage medium | |
CN102968196B (en) | A kind of wireless signal transmission method of capacitance pen system | |
YunxiaJiang et al. | Design and implementation of CAN-bus experimental system | |
CN101477348A (en) | Digital quantity input card based on PLCcore-CF54 module | |
CN1581126A (en) | IIC bus control system and method for realizing same | |
CN202183831U (en) | Video main board of CPCI (Compact Peripheral Component Interconnect) standard interface | |
CN204576495U (en) | A kind of dual bus arbitration control device | |
CN210327617U (en) | CAN Bus communication module | |
CN212572829U (en) | Economical high-speed Internet of things 2-optical-8-electric-gigabit industrial switch | |
CN106648924B (en) | Self-description system of device function module |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191119 |