CN104486456A - Method for realizing IP (internet protocol) address configuration based on I2C bus - Google Patents
Method for realizing IP (internet protocol) address configuration based on I2C bus Download PDFInfo
- Publication number
- CN104486456A CN104486456A CN201410754878.4A CN201410754878A CN104486456A CN 104486456 A CN104486456 A CN 104486456A CN 201410754878 A CN201410754878 A CN 201410754878A CN 104486456 A CN104486456 A CN 104486456A
- Authority
- CN
- China
- Prior art keywords
- eeprom
- manager
- address
- bus
- configuration
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method for realizing IP (internet protocol) address configuration based on an I2C bus. According to the method, for a system incapable of building two-way communication between master and slave managers, the connection is built between the master manager and the slave manager through an EEPROM (electrically erasable programmable read-only memory) on the basis of a hardware connecting wire of the I2C; when the master manager needs IP configuration on the slave manager, the master manager firstly writes an IP address into the EEPROM, then, the slave manager reads data from the EEPROM, and in addition, the local IP address is configured according to the storage format in the EEPROM. When the technology provided by the invention is adopted, the EEPROM is used as a bridge to realize the communication between the master manager and the slave manager.
Description
Technical field
The present invention relates to the fields such as I2C agreement, EEPROM operation, (SuSE) Linux OS, Linux process operation and C language are programmed, character device driver is write, be specifically related to a kind of method realizing configuration of IP address based on I2C bus.
Technical background
I2C bus supports any IC production process (NMOS CMOS, bipolarity).Two lines--serial data (SDA) and serial clock (SCL) line are being connected to transmission of information between the device of bus.Each device has a unique Address Recognition (no matter be microcontroller---MCU, LCD driver, memory or keyboard interface), and can as a transmitter or receiver (being determined by the function of device).Clearly, LCD driver is a receiver, and memory then both can receive and can send data.Except transmitter and receiver, device also can be counted as main frame or from machine (see table 1) when performing data transmission.Main frame is the transfer of data of initialization bus and produces the device allowing the clock signal transmitted.Now, any addressed device is all considered to from machine.
I2C bus characteristic:
1, two bus lines are only required: a serial data line SDA, a serial time clock line SCL;
2, each device being connected to bus can be software set address by unique address and the simple main frame existed/from office always, and main frame can as main frame transmitter or host receiver;
3, it is real many host buses, if the initialization simultaneously of two or more main frames, transfer of data can be destroyed by collision detection and arbitration prevent data;
4,8 bidirectional data transfers bit rate of serial can reach 100kbit/s under mode standard, can reach 400kbit/s, can reach 3.4Mbit/s under fast mode under quick mode;
5, the maximum capacitor 400pF that the IC quantity being connected to same bus is only subject to bus limits.
EEPROM(is with EEPROM (Electrically Erasable Programmable Read Only Memo)) be the modifiable read-only memory of user (ROM), its by higher than common voltage be used for erasing and reprogrammed (rewriting).Unlike EPROM chip, EEPROM need not take out and can revise from computer.EEPROM is a kind of flash memory of special shape, and its voltage applied in normally PC carrys out erasable and reprogrammed.
In current multi-processor control system, owing to cannot realize exchanging visits at a high speed by network or interconnected between principal and subordinate's manager, so it is interconnected just to need to realize between multiprocessor by a kind of bridge structure.I2C bus protocol is two bidirectional linked list lines, a data wire SDA, a clock lines SCL.Control to I2C equipment and access conveniently can be realized by this bus.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention proposes one and read eeprom memory from manager by I2C bus, and realize the method from manager configuration of IP address according to the content in memory.
The technical solution adopted in the present invention is:
Realize a method for configuration of IP address based on I2C bus, the system of two-way communication cannot be set up for principal and subordinate's manager, based on the signal wiring line of I2C, main manager and being connected by EEPROM between manager; When main manager needs when carrying out IP configuration from manager, main manager first by IP address write EEPROM, reads data from manager again from EEPROM, and according to the storage format configuration local IP address in EEPROM.
Described method, by amendment main manager kernel-driven, increases the read/write function to EEPROM, also needs the read-write that increases kernel EEPROM from manager simultaneously.
After driving amendment, the read-write operation to EEPROM equipment is being increased from management system process, in EEPROM, up-to-date IP address is write due to main manager not timing, so need to perform from manager operating system the course cycles scanning that EEPROM operates, and judge whether main manager upgrades the content in EEPROM, if do not upgraded, do not carry out action, if upgraded, then content in up-to-date EEPROM is judged, when check value is incorrect, then abandon revising IP, otherwise IP is modified.
Beneficial effect of the present invention is: adopt technology of the present invention, realizes main manager and from the communication between manager by EEPROM as bridge.
The system that the method only cannot set up two-way communication for principal and subordinate's manager works, and for the system directly can carrying out two-way communication between principal and subordinate, the method just seems more lengthy and jumbled and poor efficiency.
Accompanying drawing explanation
Fig. 1 is that principal and subordinate's manager of the present invention is by I2C bus bar schematic diagram;
Fig. 2 is that the present invention is realized from the automatic configuration of IP software operation flow process of management by I2C bus.
Embodiment
With reference to the accompanying drawings, by embodiment, the present invention is further described:
As shown in Figure 1, a kind of method realizing configuration of IP address based on I2C bus, cannot set up the system of two-way communication for principal and subordinate's manager, based on the signal wiring line of I2C, and main manager and being connected by EEPROM between manager; When main manager needs when carrying out IP configuration from manager, main manager first by IP address write EEPROM, reads data from manager again from EEPROM, and according to the storage format configuration local IP address in EEPROM.
As shown in Figure 2, during the operation of described method, first need amendment main manager kernel-driven, increase the read/write function to EEPROM, also need from manager the read-write that increases kernel EEPROM simultaneously.
After driving amendment, the read-write operation to EEPROM equipment is being increased from management system process, in EEPROM, up-to-date IP address is write due to main manager not timing, so need to perform from manager operating system the course cycles scanning that EEPROM operates, and judge whether main manager upgrades the content in EEPROM, if do not upgraded, do not carry out action, if upgraded, then content in up-to-date EEPROM is judged, when check value is incorrect, then abandon revising IP, otherwise IP is modified.
Above execution mode is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (3)
1. realize a method for configuration of IP address based on I2C bus, it is characterized in that: the system that two-way communication cannot be set up for principal and subordinate's manager, based on the signal wiring line of I2C, main manager and being connected by EEPROM between manager; When main manager needs when carrying out IP configuration from manager, main manager first by IP address write EEPROM, reads data from manager again from EEPROM, and according to the storage format configuration local IP address in EEPROM.
2. a kind of method realizing configuration of IP address based on I2C bus according to claim 1, it is characterized in that: described method is by amendment main manager kernel-driven, increase read/write function to EEPROM, also need from manager the read-write that increases kernel EEPROM simultaneously.
3. a kind of method realizing configuration of IP address based on I2C bus according to claim 2, it is characterized in that: after driving amendment, the read-write operation to EEPROM equipment is being increased from management system process, in EEPROM, up-to-date IP address is write due to main manager not timing, so need to perform from manager operating system the course cycles scanning that EEPROM operates, and judge whether main manager upgrades the content in EEPROM, if do not upgraded, do not carry out action, if upgraded, then content in up-to-date EEPROM is judged, when check value is incorrect, then abandon revising IP, otherwise IP is modified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410754878.4A CN104486456A (en) | 2014-12-11 | 2014-12-11 | Method for realizing IP (internet protocol) address configuration based on I2C bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410754878.4A CN104486456A (en) | 2014-12-11 | 2014-12-11 | Method for realizing IP (internet protocol) address configuration based on I2C bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104486456A true CN104486456A (en) | 2015-04-01 |
Family
ID=52760960
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410754878.4A Pending CN104486456A (en) | 2014-12-11 | 2014-12-11 | Method for realizing IP (internet protocol) address configuration based on I2C bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104486456A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880916A (en) * | 2018-08-21 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of Fault Locating Method and system based on iic bus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178634A (en) * | 2006-11-08 | 2008-05-14 | 联想(北京)有限公司 | Knife blade server and storage realization method therefor |
CN101499961A (en) * | 2008-01-28 | 2009-08-05 | 联想(北京)有限公司 | Blade server and method for managing blade address |
CN102006335A (en) * | 2010-10-12 | 2011-04-06 | 浪潮电子信息产业股份有限公司 | Method of storage system with multi-sever to obtain IP address of embedded memory controller |
US20120066689A1 (en) * | 2009-03-30 | 2012-03-15 | Zhao Shouzhong | Blade server and service scheduling method of the blade server |
CN103825973A (en) * | 2014-02-24 | 2014-05-28 | 山东超越数控电子有限公司 | Method for automatically allocating switch IPs by blade server |
CN104125096A (en) * | 2014-07-10 | 2014-10-29 | 山东超越数控电子有限公司 | I2C (Inter-Integrated Circuit) bus based server network configuration method |
-
2014
- 2014-12-11 CN CN201410754878.4A patent/CN104486456A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178634A (en) * | 2006-11-08 | 2008-05-14 | 联想(北京)有限公司 | Knife blade server and storage realization method therefor |
CN101499961A (en) * | 2008-01-28 | 2009-08-05 | 联想(北京)有限公司 | Blade server and method for managing blade address |
US20120066689A1 (en) * | 2009-03-30 | 2012-03-15 | Zhao Shouzhong | Blade server and service scheduling method of the blade server |
CN102006335A (en) * | 2010-10-12 | 2011-04-06 | 浪潮电子信息产业股份有限公司 | Method of storage system with multi-sever to obtain IP address of embedded memory controller |
CN103825973A (en) * | 2014-02-24 | 2014-05-28 | 山东超越数控电子有限公司 | Method for automatically allocating switch IPs by blade server |
CN104125096A (en) * | 2014-07-10 | 2014-10-29 | 山东超越数控电子有限公司 | I2C (Inter-Integrated Circuit) bus based server network configuration method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108880916A (en) * | 2018-08-21 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of Fault Locating Method and system based on iic bus |
CN108880916B (en) * | 2018-08-21 | 2021-06-29 | 郑州云海信息技术有限公司 | IIC bus-based fault positioning method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8898358B2 (en) | Multi-protocol communication on an I2C bus | |
CN106557340B (en) | Configuration method and device | |
US7660922B2 (en) | Mechanism to flexibly support multiple device numbers on point-to-point interconnect upstream ports | |
US9170975B2 (en) | High speed overlay of idle I2C bus bandwidth | |
CN207115097U (en) | A kind of FPGA isomeries accelerator card | |
CN102012885A (en) | System and method for realizing communication by adopting dynamic I2C bus | |
CN103454996A (en) | Master-slave computer system and control method thereof | |
TW201321983A (en) | Plug and play module, electronic system and determining method and inquiry method therefore | |
CN113872796B (en) | Server and node equipment information acquisition method, device, equipment and medium thereof | |
CN103092175B (en) | Controlling method and device for serial clock line (SCL) between inter-integrated circuit (I2C) master equipment and slave equipment | |
CN105224480A (en) | A kind of method and apparatus for the access memory device in response to reading requirement | |
CN105095139A (en) | Inter-integrated circuit system and data operation and transmission method thereof | |
DE102017121465A1 (en) | DATA PROTOCOL FOR MANAGING PERIPHERAL DEVICES | |
CN104217768A (en) | Detection method and device of eMMC (Embedded multi media card) embedded memory | |
CN105373511A (en) | Device and method for simultaneous communication with multiple optical modules | |
US20150095518A1 (en) | I/o device sharing system and i/o device sharing method | |
CN103412838B (en) | A kind of expanding system, communication means, address configuration method, equipment and device | |
CN102253845A (en) | Server system | |
CN101561790B (en) | Method, system and device for communication between main control computer and slave computers | |
CN206684724U (en) | A kind of server module management control system | |
CN105528314A (en) | Data processing method and control equipment | |
CN104486456A (en) | Method for realizing IP (internet protocol) address configuration based on I2C bus | |
CN105488009A (en) | FRU read/write method and read/write system | |
CN105068962A (en) | I2C controller access method and I2C controller access system | |
CN107783793A (en) | The method and USB device of automatic identification host operating 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150401 |
|
RJ01 | Rejection of invention patent application after publication |