CN104468204A - Method for updating status of POE port of switch - Google Patents
Method for updating status of POE port of switch Download PDFInfo
- Publication number
- CN104468204A CN104468204A CN201410696462.1A CN201410696462A CN104468204A CN 104468204 A CN104468204 A CN 104468204A CN 201410696462 A CN201410696462 A CN 201410696462A CN 104468204 A CN104468204 A CN 104468204A
- Authority
- CN
- China
- Prior art keywords
- poe port
- status
- state
- port
- poe
- 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.)
- Granted
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention provides a method for updating the status of a POE port of a switch. The method includes the steps that firstly, whether the POE port is enabled is checked at first, if yes, the second step is executed, and otherwise, the method is finished; secondly, a status register of the POE port is read, whether bit field values of the status register correspond to the power on status and the power delivering status is checked, if the bit field values of the status register correspond to the power on status and the power delivering status both, the fourth step is executed, and otherwise, the third step is executed; thirdly, whether the bit field values correspond to the searching status, and if yes, the status of the POE port is updated into the detect status; fourthly, the status of the POE port is updated into the Standard status. The method is used for updating the status of the POE port of the switch and the error of difference from practical situation is avoided.
Description
Technical field
The present invention relates to a kind of update method of switch ports themselves state, especially relate to the update method of the port of POE switch.
Background technology
POE is the abbreviation of Power Over Ethnet (Power over Ethernet), to equipment powers while can be implemented in access network by this technology.Such as be with the switch of POE function can power to the offered load equipment of its POE port of access, prerequisite is the internal circuit characteristic conforms IEEE802.3af/at codes and standards of these offered load equipment, and its power consumed is not more than the power limit that this port can provide.
In POE switch, have the special chip realizing POE function, in this chip, inside is provided with register pair POE and powers and carry out control and management.
Generally, when iting is desirable to check the relevant information of each PD equipment being connected to POE switch ports themselves, the value of chip internal port status related register should be read, show its state according to its value.But in some cases, when especially judging whether to there occurs overload, likely there is mistake, be not inconsistent with actual conditions in the merely state of the display port that the method for read port status register can not be correct.
Summary of the invention
The technical problem that the present invention need solve is to provide a kind of method of correcting the renewal switch POE port status of POE port status information.
In order to solve the above problems, the present invention devises a kind of method upgrading switch POE port status, comprises the following steps:
Step 1: first check that whether POE port is enable, if so, then perform step 2; If not, then terminate;
Step 2: the status register reading POE port, checks whether its bit field value corresponds to poweron state and power supply state, both all perform step 4, otherwise, perform step 3;
The state updating of this POE port is then detect state by step 3: if whether bit field value corresponds to search condition, if so;
Step 4: be Standard by the state updating of this POE port.
Improve further as the present invention, further comprising the steps of:
Step 5: the status indication register reading POE port, judges whether its bit field value is 1, if be 1, be then Legacy by the state updating of this POE port, otherwise be Standard by the state updating of this POE port.
Improve further as the present invention, the status data of the POE port after renewal is also kept in data structure body.
Improve further as the present invention, upper layer software (applications) reads the status data in described data structure body, externally the state information of display POE port.
Improve further as the present invention, exchange the state information of interface display POE port at serial ports.
The present invention upgrades the state of switch POE port, avoids occurring the mistake different from actual conditions.
Embodiment
Technical scheme of the present invention is understood better in order to make relevant technical staff in the field, below in conjunction with execution mode, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.
The invention provides a kind of method upgrading switch POE port status, by the relevant bit field value of read status register and status indication register, interpretation goes out the virtual condition of POE port, and make renewal rewards theory, like this, POE switch in all cases, correctly can show the state of its POE port, avoids the situation occurring not being inconsistent with actual conditions.
Register for obtaining port power supply state in POE chip mainly contains 2: status register and status indicator register.Status register and status indicator register are initial address is respectively a series of registers that 0x11AA and 0x1284 starts.
Status register bit [0:7] and bit [8:10] two bit field values represent the state of connect power receiving equipment.
Bit [0:7] bit field uses this decimal value represented by 8 to represent various state, and one has 21 kinds of different states, and relevant to this programme has following item:
" 0 " represents power on, and port is opened owing to useable resistance or capacitance signal being detected;
" 4 " represent searching (search), and port is in detection search condition.
Bit [8:10] bit field is on duty when being " 010 ", and represent delivering power (power supply), namely port is in power supply state.
Status indicator register is eight bit register, each corresponding a kind of state (or event), after reading once this status indicator register, and being cleared of all positions.Such as, but when port status changes, after there is again the situation such as swappable device, port overload, corresponding positions can set again.
The present invention upgrades the method for switch POE port status, first checks that whether POE port is enable, and namely whether POE port is in work.If so, namely represent that POE port is in work, since in work, below just continuing, check its virtual condition.If not, namely represent that POE port is not in work, this port possible does not access power supply unit, now can terminate, and does not need the state status reexamining this POE port.
When POE port is enable, reads the status register of POE port, check whether its bit field value corresponds to power on state and power supply state.Namely check whether its bit field value bit [0:7] whether be " 0 " and bit [8:10] is " 010 ".If bit [0:7] is " 0 ", and bit [8:10] is " 010 ", then represent that this POE port is power on state and power supply state, namely open and power.
Judging that POE port is as opening and just at power supply state, be then that Standard, Standard represent the meaning that is normal, qualified, standard by the state updating of this POE port, i.e. normal, the not overload of power supply.
If inspection bit field value bit [0:7] is not " 0 " and/or bit [8:10] is not " 010 ", reexamine its bit field value and whether correspond to search (searching) state, namely check whether bit [0:7] is " 4 ", if so, be then detect state by the state updating of this POE port.
The present invention also continues the status indication register reading POE port, judges whether its bit field value is 1, if be 1, representing port overload, is then that Legacy, Legacy represent overload by the state updating of this POE port.Its bit field value is not 1, be then Standard by the state updating of this POE port.
The status data of the POE port after renewal is also kept in data structure body by the present invention.This data structure body is specifically designed to the status information data of preserving POE port.If user is when the state information of certain POE port will be checked in serial ports interface, upper layer software (applications) can read the status data in the data structure body of its correspondence, and shows.
The present invention upgrades the state of switch POE port, avoids occurring the mistake different from actual conditions.
Below only have expressed one embodiment of the present invention, it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (5)
1. upgrade a method for switch POE port status, it is characterized in that, comprise the following steps:
Step 1: first check that whether POE port is enable, if so, then perform step 2; If not, then terminate;
Step 2: the status register reading POE port, checks whether its bit field value corresponds to poweron state and power supply state, both all perform step 4, otherwise, perform step 3;
The state updating of this POE port is then detect state by step 3: if whether bit field value corresponds to search condition, if so;
Step 4: be Standard by the state updating of this POE port.
2. the method for renewal switch POE port status according to claim 1, is characterized in that, further comprising the steps of:
Step 5: the status indication register reading POE port, judges whether its bit field value is 1, if be 1, be then Legacy by the state updating of this POE port, otherwise be Standard by the state updating of this POE port.
3. the method for renewal switch POE port status according to claim 1 and 2, is characterized in that, is also kept in data structure body by the status data of the POE port after renewal.
4. the method for renewal switch POE port status according to claim 3, it is characterized in that, upper layer software (applications) reads the status data in described data structure body, externally the state information of display POE port.
5. the method for renewal switch POE port status according to claim 4, is characterized in that, exchanges the state information of interface display POE port at serial ports.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410696462.1A CN104468204B (en) | 2014-11-26 | 2014-11-26 | Update the method for interchanger POE port status |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410696462.1A CN104468204B (en) | 2014-11-26 | 2014-11-26 | Update the method for interchanger POE port status |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104468204A true CN104468204A (en) | 2015-03-25 |
CN104468204B CN104468204B (en) | 2018-03-27 |
Family
ID=52913615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410696462.1A Expired - Fee Related CN104468204B (en) | 2014-11-26 | 2014-11-26 | Update the method for interchanger POE port status |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104468204B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262364A (en) * | 2008-02-28 | 2008-09-10 | 福建星网锐捷网络有限公司 | A device status and information display method and device |
CN101867468A (en) * | 2010-06-03 | 2010-10-20 | 中兴通讯股份有限公司 | Hot reboot processing method for power over Ethernet switch and power over Ethernet switch |
CN102215113A (en) * | 2011-06-08 | 2011-10-12 | 北京星网锐捷网络技术有限公司 | Power supply method, device and network equipment of Ethernet |
CN103546301A (en) * | 2013-10-30 | 2014-01-29 | 上海斐讯数据通信技术有限公司 | Method and system for POE system to carry out overload protection on equipment |
CN103905211A (en) * | 2012-12-24 | 2014-07-02 | 上海斐讯数据通信技术有限公司 | Method for realizing lamp lighting under power supply state of POE power supply equipment |
-
2014
- 2014-11-26 CN CN201410696462.1A patent/CN104468204B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262364A (en) * | 2008-02-28 | 2008-09-10 | 福建星网锐捷网络有限公司 | A device status and information display method and device |
CN101867468A (en) * | 2010-06-03 | 2010-10-20 | 中兴通讯股份有限公司 | Hot reboot processing method for power over Ethernet switch and power over Ethernet switch |
CN102215113A (en) * | 2011-06-08 | 2011-10-12 | 北京星网锐捷网络技术有限公司 | Power supply method, device and network equipment of Ethernet |
CN103905211A (en) * | 2012-12-24 | 2014-07-02 | 上海斐讯数据通信技术有限公司 | Method for realizing lamp lighting under power supply state of POE power supply equipment |
CN103546301A (en) * | 2013-10-30 | 2014-01-29 | 上海斐讯数据通信技术有限公司 | Method and system for POE system to carry out overload protection on equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104468204B (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107920122A (en) | Game player's matching process, device, match server and readable storage medium storing program for executing | |
CN103442136B (en) | Method and system for dual calibration of proximity sensor | |
CN108776648A (en) | Data transmission method, system and FPGA isomeries accelerator card and storage medium | |
CN107580005A (en) | Website protection method, device, website safeguard and readable storage medium storing program for executing | |
CN109086634A (en) | A kind of BMC chip management method, system and BMC chip and storage medium | |
US10409249B2 (en) | Method for controlling power supply and electronic device implementing the same | |
CN111050310A (en) | Network switching method, device, terminal equipment and medium | |
CN110134180A (en) | Based on SMBus bus B MC clock synchronization system and method | |
CN107145455A (en) | A kind of method that machine system updates SMBIOS static informations | |
US7996206B2 (en) | Serial attached small computer system interface (SAS) connection emulation for direct attached serial advanced technology attachment (SATA) | |
JP2008536449A (en) | System configuration work support method and apparatus | |
CN109408121A (en) | EDID reading and configuring method, system and medium | |
CN206003079U (en) | PCIe link fault monitoring architecture of server | |
US9250673B2 (en) | Power over Ethernet parameter storage | |
CN107239372A (en) | Electronic device and detection method thereof | |
CN103559162A (en) | Method and host for positioning USB (universal serial bus) devices on HUB set | |
CN106980402B (en) | Method and device for judging reset calibration and terminal | |
CN108801321B (en) | Sensor calibration method, electronic device and computer-readable storage medium | |
US8832499B2 (en) | Methods and structure for trapping requests directed to hardware registers of an electronic circuit | |
CN104468204A (en) | Method for updating status of POE port of switch | |
CN108920985A (en) | A kind of flash data operation monitoring method, device, equipment and system | |
CN104539591A (en) | Multi-protocol bus control device | |
CN108712442B (en) | Switch-in method of data acquisition end of power distribution cabinet and terminal equipment | |
CN207424873U (en) | network physical isolation computer and system | |
CN109491935A (en) | A kind of physical address determines method, system and modularized equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180327 Termination date: 20181126 |
|
CF01 | Termination of patent right due to non-payment of annual fee |