CN101727099A - Identification and information exchange platform based on I2C structural model and communication protocol unit - Google Patents

Identification and information exchange platform based on I2C structural model and communication protocol unit Download PDF

Info

Publication number
CN101727099A
CN101727099A CN200810201794A CN200810201794A CN101727099A CN 101727099 A CN101727099 A CN 101727099A CN 200810201794 A CN200810201794 A CN 200810201794A CN 200810201794 A CN200810201794 A CN 200810201794A CN 101727099 A CN101727099 A CN 101727099A
Authority
CN
China
Prior art keywords
data
identification
information exchange
structure model
exchange platform
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
CN200810201794A
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.)
Shanghai University of Engineering Science
Original Assignee
Shanghai University of Engineering Science
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 Shanghai University of Engineering Science filed Critical Shanghai University of Engineering Science
Priority to CN200810201794A priority Critical patent/CN101727099A/en
Publication of CN101727099A publication Critical patent/CN101727099A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses an identification and information exchange platform based on an I2C structural model and a communication protocol unit. The identification and information exchange platform is based on the I2C structural model, comprises a plurality of PIC single chips, and also comprises that under the premise that a single chip system is commonly grounded, a networked bus-way environment which is formed by the corresponding interconnection of a data bus SDA and a time sequence bus SCL which are respectively connected with a pull-up resistor.

Description

Based on I 2Identification of C-structure model and information exchange platform and communication protocol unit
Technical field
The present invention relates to a kind of identification (being called for short ID, is the abbreviation of Identity) and information exchange platform, relate in particular to a kind of based on I 2C (Inter Integrated Circuit Bus, chip chamber integrated circuit transfer bus) structural model identification and information exchange platform and communication protocol unit.
Technical background
Serial expanding communication interface is the platform and the important channel of carrying out exchanges data between PIC (Periphery Interface Chip, peripheral interface chip) single-chip microcomputer and peripheral components or other computing machines.General single-chip microcomputer all disposes a plurality of serial communication modules, and wherein more representational is exactly I 2The C communication pattern.I 2The C bus is a kind of chip chamber synchronous serial transfer bus, and serviceability is more stable, is used for the data transmission bus of internal system at present in large quantities.I 2The C bus structure are very simple, only rely on two signal wires: i.e. synchronous serial data line SDA (Serial Data, serial data line) and synchronous serial timing signal line SCL (Serial Clock, serial timing signal line).I 2The C data mode is to adopt master and slave device timesharing to share a data line SDA, can comprise byte data information, address identifier code and both sides and reply handshake; I 2The speed that the C data transmit depends on the frequency of clock pulse signal SCL.
I 2The C-structure bus, generally be used for point-to-point data transmission between computing machine, single-chip microcomputer or other control module, but in the networked system that multiple single chip microcomputer is formed, the communication protocol that how to solve multiple single chip microcomputer formation identification and information exchange platform and identification of multiple single chip microcomputer networking site address and data information exchange is key issue solved by the invention.
Summary of the invention
It is a kind of based on I that the object of the invention is to provide 2Identification of C-structure model and information exchange platform and communication protocol unit make up a single-chip network system environments, can discern single-chip microcomputer site address and identity, realize the valid data transmission, and communication mode are safe and reliable.
One of the present invention: a kind of based on I 2Identification of C-structure model and information exchange platform is characterized in that, it is by adopting I 2Some PIC single-chip microcomputers of C-structure model interconnection mode and the human-computer interaction module that comprises keyboard and display that is connected with every PIC single-chip microcomputer constitute a network architecture, and wherein: some PIC single-chip microcomputers are used for the identification and the information interaction of mutual identity; Human-computer interaction module is used for the data input and output.
At above-mentioned I 2In identification of C-structure model and the information exchange platform, connect by every PIC interface microcontroller pin RC0 and to draw that corresponding interconnection constitutes I behind the resistance 2The SDA of the data bus in the C-structure model and connect by every PIC interface microcontroller pin RC1 and to draw that corresponding interconnection constitutes I behind the resistance 2Timing bus SCL in the C-structure model.
At above-mentioned I 2In identification of C-structure model and the information exchange platform, the keyboard of human-computer interaction module is the 4*4 matrix keyboard; Display is 3 figure place sign indicating number dynamic displays.
The present invention's two, a kind of be used for above-mentioned based on I 2The identification that the C-structure model is constituted and the communication protocol unit of information exchange platform comprise the communication protocol of three-layer networkization.
The ground floor agreement comprises frame head subroutine, postamble subroutine and the subroutine that sends and receive a byte data, and it is towards hardware, bears the function to the bus implementation and operation, belongs to the physical transmission protocols or the agreement of the bottom;
Second layer agreement has also been introduced the notion of Frame (bag), comprises three partial data contents in the information of a frame: recipient ID identity code, sender ID identity code and the data content that will send.In addition, the hardware handles operation that the bottom is a large amount of of this Frame information is implemented shield effectiveness to application layer, makes the programmed of application layer protocol obtain bigger simplification, makes like this and also is convenient to program is carried out Networking Debugging or modification;
The 3rd layer protocol also is included in the keyboard scan module, realizes the switching of duty, the collection (setting) and the demonstration of data, is the interaction protocol of application-oriented layer.
Owing to adopted above-mentioned technical solution, the present invention proposes the complete single-chip network protocol element of a cover, at I 2Effective transmission and identification that C simulated timing diagrams state is realized data down easily realize controlled directional data delivery platform between the PIC Single Chip Microcomputer (SCM) system, thereby are that realization single-chip network management and exchanges data have been established technical foundation.
Description of drawings
Fig. 1 is one of the present invention's identification and an information exchange platform principle schematic;
Fig. 2 is the present invention's two the identification and the communication mode synoptic diagram of information exchange platform.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
See also Fig. 1, there is shown a kind of of one of the present invention based on I 2Identification of C-structure model and information exchange platform, this networking identification and information exchange platform are based on I 2The C-structure model, it comprises some the PIC single-chip microcomputers 21 of not fixing master and slave role's branch, constitutes single-chip microcomputer and human-computer interaction module 2, comprises that promptly data and function input 4 * 4 matrix keyboards 23 and 8 hop count sign indicating numbers show 22; Also comprise the corresponding interconnection of a single data bus SDA who all is connected to 4.7K ohm pull-up resistor 11 and the corresponding interconnection of timing bus SCL, thereby constitute the I of standard 2The C-structure model is as module 1.
In the present embodiment, the PIC single-chip microcomputer is three, and wherein, RC0, RC1 are defined as I respectively 2A single data bus SDA and a timing bus SCL of the communication of C-structure model all are connected to 4.7K ohm pull-up resistor, the corresponding respectively interconnection of data bus SDA and timing bus SCL, and it is PIC16F877 that the PIC single-chip microcomputer adopts model.
See also Fig. 2, there is shown the present invention two a kind of based on I 2The synoptic diagram of identification of C-structure model and information exchange platform is the passage that carries out data or message exchange between any one single-chip microcomputer and other single-chip microcomputer in the network system.Institute is based on I 2The single-chip microcomputer of C-structure model interconnection, by functional definition and the setting to data bus SDA, what become that its role can exchange at any time not only can be used as initiatively transmitting terminal 3 but also can become driven receiving end 4, and this will be by the direction decision of data and information flow.The control module that single-chip microcomputer is constructed is based on I 2The procotol that the C-structure model is set up can this procotol framed structure, mainly be to be designed to three layer protocol contents, described arbitrary data under the networked environment condition and sent protocol related between main body and the Data Receiving object according to the data information exchange function.The functional description that is realized is as follows:
Wherein ground floor is the physical transmission protocols layer, belongs to the agreement or the agreement of the bottom, mainly contains in the initiator block 3 to send to receive data module 43 in data module 33 and the receiving end module 4 and form, and is towards the protocol channel of hardware between message exchange master, the object.
The second layer is the middle layer agreement, notion at transmitting terminal 3 and receiving end 4 introducing Frames (bag), included three partial data contents (recipient ID identity code, sender ID identity code and the data that will send) in the information with a frame,, in splitting data module 42, data are decomposed then data integration by integral data module 32.
The 3rd layer is application layer protocol, it is the design of a user level, on the basis of satisfying the system interaction agreement, can expand according to the human-computer interaction interface (comprising keyboard and demonstration) of personalization and handle and be provided with, specifically finish raw data acquisition (transmitting terminal image data module 31) and follow-up data and handle (receiving end is handled and received data module 41).
Constructed I 2The networked communication protocol unit of identification of C-structure model and information exchange platform, it is the rule of carrying out exchanges data between single-chip microcomputer, can realize the alter mode of conversion, user side and client identity identification code between working state of system (intercepting/prepare/send) and send sequence of operations such as refreshing of data, can make single-chip microcomputer enter receptions intelligently, send or the wait link.
Specific implementation process and finish can be as follows:
At first must determine the possessioning mode of bus control right, any one system can be pulled to data bus SDA and timing bus (being high level under the normality mode) low level and keep a period of time (generally adopting 30 μ s) by the frame head subroutine, it is occupied to be enough to make take over party's (other Single Chip Microcomputer (SCM) system except that this system) can both detect bus, thereby these systems all begin to change over to the reception data phase.In receiving course, the take over party is in passive state all the time and receives data in order by turn, and the take over party stops active receiving after the content of receiving complete frame data.
Secondly, each take over party will independently enter ID identification check and comparison, have only and just can go to discern sender ID identity code and handle received data message ought be consistent with the ID identity code of self time.Also adopt simultaneously I 2The similar confirmation signal mechanism of C communication protocol, the take over party will temporarily occupy bus control right, and one of loopback has take over party's ID identity code, and relevant data have been received in expression.And transmit leg discharges bus immediately after executing the postamble subroutine, waits for take over party's loopback confirmation signal;
At last, if can not receive confirmation signal in the regular hour (generally adopting 50 μ s), transmit leg will occupy bus again and resend those original frame data; And if after having received confirmation, will surrender bus control right rapidly, the conscious listening state that is transformed into.
In the present embodiment, only represent sender or recipient's identity code with two decimal numbers, but the length of identification code can expand infinitely in theory, promptly the terminal node number of Single Chip Microcomputer (SCM) system can have infinitely a plurality of in the network.System's nixie display figure place size determining to have how many station identification codes independently node be present in the network system, the same data content that transmits also is subject to expressed decimal numeral figure place, but can expand according to operating position.
Below embodiment has been described in detail the present invention in conjunction with the accompanying drawings, and those skilled in the art can make the many variations example to the present invention according to the above description.Thereby some details among the embodiment should not constitute limitation of the invention, and the scope that the present invention will define with appended claims is as protection scope of the present invention.

Claims (4)

1. one kind based on I 2The identification of C-structure model and information exchange platform is characterized in that, it is by adopting I 2Some PIC single-chip microcomputers of C-structure model interconnection mode and the human-computer interaction module that comprises keyboard and display that is connected with every PIC single-chip microcomputer constitute a network architecture, wherein:
Some PIC single-chip microcomputers are used for the identification and the information interaction of mutual identity;
Human-computer interaction module is used for the data input and output.
2. I according to claim 1 2Identification of C-structure model and information exchange platform is characterized in that: described I 2Data bus SDA in the C-structure model is: connected by every PIC interface microcontroller pin RC0 and draw the formed data bus of corresponding interconnection behind the resistance; Described I 2Timing bus SCL in the C-structure model is: connected by every PIC interface microcontroller pin RC1 and draw the formed timing bus of corresponding interconnection behind the resistance.
3. I according to claim 1 and 2 2Identification of C-structure model and information exchange platform is characterized in that: the keyboard of described human-computer interaction module is the 4*4 matrix keyboard; Display is 3 figure place sign indicating number dynamic displays.
4. a communication protocol unit that is used for claim 1 or 2 or 3 described identifications and information exchange platform is characterized in that, comprises the communication protocol of three-layer networkization:
The ground floor agreement comprises frame head subroutine, postamble subroutine, and the subroutine that sends and receive a byte data, and it bears the function to the bus implementation and operation towards hardware, is the agreement or the agreement of the physical transfer of the bottom;
Second layer agreement, comprise Frame, comprise three partial data contents in the information of one frame: recipient ID identity code, sender ID identity code and the data content that will send, in addition, Frame information is implemented shielding with hardware handles operation in the ground floor agreement to the 3rd layer;
The 3rd layer protocol is included in the scan module of described keyboard, and the switching of implementation platform duty, the collection of data and demonstration are the interaction protocols of application-oriented layer.
CN200810201794A 2008-10-27 2008-10-27 Identification and information exchange platform based on I2C structural model and communication protocol unit Pending CN101727099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810201794A CN101727099A (en) 2008-10-27 2008-10-27 Identification and information exchange platform based on I2C structural model and communication protocol unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810201794A CN101727099A (en) 2008-10-27 2008-10-27 Identification and information exchange platform based on I2C structural model and communication protocol unit

Publications (1)

Publication Number Publication Date
CN101727099A true CN101727099A (en) 2010-06-09

Family

ID=42448098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810201794A Pending CN101727099A (en) 2008-10-27 2008-10-27 Identification and information exchange platform based on I2C structural model and communication protocol unit

Country Status (1)

Country Link
CN (1) CN101727099A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033845A (en) * 2010-12-13 2011-04-27 天津光电通信技术有限公司 Circuit of card plug type structure I<2>C bus address
CN102468901A (en) * 2010-11-02 2012-05-23 凹凸电子(武汉)有限公司 Method for transmitting data
CN105940661A (en) * 2014-02-03 2016-09-14 高通股份有限公司 Device identification generation in electronic devices to allow external control of device identification for bus communications identification, and related systems and methods

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102468901A (en) * 2010-11-02 2012-05-23 凹凸电子(武汉)有限公司 Method for transmitting data
CN102033845A (en) * 2010-12-13 2011-04-27 天津光电通信技术有限公司 Circuit of card plug type structure I<2>C bus address
CN102033845B (en) * 2010-12-13 2012-10-03 天津光电通信技术有限公司 Circuit of card plug type structure I<2>C bus address
CN105940661A (en) * 2014-02-03 2016-09-14 高通股份有限公司 Device identification generation in electronic devices to allow external control of device identification for bus communications identification, and related systems and methods
US10114787B2 (en) 2014-02-03 2018-10-30 Qualcomm Incorporated Device identification generation in electronic devices to allow external control of device identification for bus communications identification, and related systems and methods

Similar Documents

Publication Publication Date Title
CN103248526B (en) Realize signal equipment, the method for out-of-band supervision control management
CN102819512B (en) A kind of full-duplex communication device based on SPI and method thereof
CN102281254B (en) Design system and method of server serial port
CN101198943B (en) Point-to-point link negotiation method and apparatus
CN101957808B (en) Communication method among various CPUs (Central Processing Units), system and CPU
CN102664902B (en) Hardware implementing method for kernels of POWERLINK communication protocol master and slave stations
CN103327083A (en) Embedded household monitoring system based on heterogeneous network Android platform
CN105051706A (en) Device, method and system for operation of a low power PHY with a PCIe protocol stack
CN102279827A (en) Multifunctional communication transit box
CN104317661A (en) Intersystem communication method and device of dual embedded systems
CN105786752B (en) Usb communication method and communication system between a kind of computing device and FPGA
CN102497648B (en) Device and method for achieving remote debugging
CN102223732A (en) Wireless multi-point DDC ED ID information sharing device and method thereof
CN101727099A (en) Identification and information exchange platform based on I2C structural model and communication protocol unit
CN202111737U (en) Network management enhanced E1/ETH protocol converter
CN102420734A (en) System for realizing topological structure of controller area network (CAN) bus
CN102004716A (en) System and method for realizing device sharing
CN210780847U (en) EtherCAT bus clock distribution system
CN108391245A (en) Plug and play type wireless sensor network node
CN102081383B (en) Device and method for secure network protocol for field control
CN114222370A (en) Networking communication time slot allocation method, device and system
CN101668233B (en) Hardware device and method for assisting in processing dynamic bandwidth allocation algorithm
CN103944738A (en) Interchanger supporting function extension
CN109328449A (en) RTEX-EtherCAT protocol conversion apparatus and industrial control system
CN113448448A (en) KVM control method, switching control method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100609