Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

I2C deadlock and recovery method and device

A deadlock, optical module technology, applied in instruments, electrical digital data processing and other directions, can solve the problem of extra hardware circuit, I2C deadlock can not be found in time, etc.

Active Publication Date: 2020-10-30
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In view of the defect that the I2C deadlock cannot be found in time due to the damage of the above-mentioned optical module in the prior art, the existing I2C deadlock recovery technology needs to consume additional hardware circuits, The present invention provides a method and device for I2C deadlock and recovery to solve the above technical problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • I2C deadlock and recovery method and device
  • I2C deadlock and recovery method and device
  • I2C deadlock and recovery method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] Such as figure 1 As shown, the present invention provides a kind of I2C deadlock and recovers the method, comprises the steps:

[0063] S1. Set the optical module reading unit and the optical module isolation unit on the switch CPU;

[0064] S2. Set the optical module reading unit to regularly scan the status of each optical module in the switch, and read the content of the optical module in place, and judge whether there is a faulty optical module that failed to read the content, but the status is in place;

[0065] S3. Set the optical module isolation unit to isolate all optical modules of the switch, reset the I2C bus, find and shield the faulty optical module, and after shielding the faulty optical module, release the isolation of the normal optical module in the switch, and notify before and after the isolation of the optical module BMC.

Embodiment 2

[0067] Such as figure 2 As shown, the present invention provides a kind of I2C deadlock and recovers the method, comprises the steps:

[0068] S1. Set the optical module reading unit, the optical module isolation unit and the optical module scanning in-position unit on the switch CPU;

[0069] S2. Set the optical module reading unit to regularly scan the status of each optical module in the switch, and read the content of the optical module in place, and judge whether there is a faulty optical module that failed to read the content, but the status is in place; the specific steps are as follows:

[0070] S21. Set the optical module reading unit to regularly scan the status of each optical module in the switch, and obtain the optical module in the in-position state;

[0071] S22. Set the optical module reading unit to read the content of the optical module in the in-position state sequentially, and judge whether the reading of the content fails;

[0072] If so, go to step S23...

Embodiment 3

[0086] Such as image 3 As shown, the present invention provides a device for I2C deadlock and recovery, including:

[0087] The optical module function unit setting module 1 is used to set the optical module reading unit, the optical module isolation unit and the optical module scanning in-position unit on the switch CPU;

[0088] Faulty optical module acquisition module 2, used to set the optical module reading unit to regularly scan the status of each optical module in the switch, and read the content of the optical module in place, and judge whether there is a faulty optical module that failed to read the content, but the status is in place Module; faulty optical module acquisition module 2 includes:

[0089] The in-position state optical module acquisition sub-module 2.1 is used to set the optical module reading unit to periodically scan the status of each optical module in the switch, and obtain the optical module in the in-position state;

[0090] The optical module c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an I2C deadlock and recovery method and device. The method comprises the following steps: S1, setting an optical module reading unit and an optical module isolation unit in a switch CPU; s2, setting an optical module reading unit to periodically scan the state of each optical module in the switch, reading the content of the in-place optical module, and judging whether an optical module which fails to read the content but is in place exists or not; if yes, judging that a faulty optical module exists; and S3, setting an optical module isolation unit to isolate all the optical modules of the switch, resetting the I2C bus, searching and shielding the faulty optical module; after the faulty optical module is shielded, releasing the isolation of the normal optical module in the switch, and notifying the BMC before and after the isolation of the optical module. According to the method, I2C deadlock caused by damage of the optical module is effectively detected, the I2Cbus is reset in time, meanwhile, the damaged faulty optical module is shielded, and shielding of the optical module after fault recovery can be automatically removed.

Description

technical field [0001] The invention belongs to the technical field of optical module I2C self-checking, and in particular relates to a method and device for I2C deadlock and recovery. Background technique [0002] EEPROM, short for Electrically-Erasable Programmable Read-Only Memory, is an electronically erasable rewritable read-only memory. [0003] DOM, short for Digital Optical monitoring, is digital optical module monitoring. [0004] BMC is the abbreviation of Baseboard Management Controller, baseboard management controller. [0005] With the rapid development of the network world, there are more and more network devices on the Internet, and network cables are relatively richer and more diversified. Most network cables access information through I2C devices. When a cable fails, I2C The bus will be deadlocked. At this time, any device on the I2C bus will become inaccessible. How to quickly identify the deadlock of the I2C bus and quickly restore the bus to a normal s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/42G06F13/40
CPCG06F13/4282G06F13/4072G06F2213/0016
Inventor 张智焙
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products