Method and device for reading optical module information by utilizing software
A technology for reading information and reading modules, applied in the field of communication, can solve problems such as reducing CPU utilization, and achieve the effect of avoiding high CPU usage and reducing usage.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0038] In the first embodiment of the present invention, a method for software to read optical module information includes the following processing procedures:
[0039] The information is read one by one for all online optical modules on the communication device, and the reading operation meets the following conditions: whenever a reading operation is performed for an optical module, the first set time is delayed. The length of the first setting time can be set according to needs, usually in millisecond level, for example: 1ms and so on.
[0040] Specifically, the type of the information includes: dynamic information of the optical module and static information of the optical module.
[0041] In this embodiment, when information is read one by one for all online optical modules on the communication device cyclically or periodically, the type of read information includes at least dynamic information of the optical modules.
no. 2 example
[0042] In the second embodiment of the present invention, a method for software to read optical module information includes the following process:
[0043] Circularly read information one by one for all online optical modules on the communication device, and the reading operation meets the following two conditions:
[0044] 1) Whenever a read operation is performed on an optical module, the first set time is delayed.
[0045] 2) Whenever the read operation is performed for the set number of optical modules, the second set time is delayed on the basis of the first set time. That is to say, for a set number of optical modules to be processed each time, the delay time for the last optical module to execute the read operation is longer than the corresponding delay time for other optical modules. The set number may be smaller than the number of all online optical modules, or greater than the number of all online optical modules. The length of the first setting time and the second...
no. 3 example
[0048] In the third embodiment of the present invention, a method for software to read optical module information includes the following process:
[0049] Periodically read information one by one for all online optical modules on the communication device, and the reading operation meets the following two conditions:
[0050] 1) Whenever a read operation is performed on an optical module, the first set time is delayed.
[0051] 2) In the current cycle, whenever the read operation is performed for the set number of optical modules, the second set time will be delayed on the basis of the first set time delay; when all online optical modules on the communication device When all the modules have finished reading operations, the first set time is delayed and the second set time is delayed, and then the next cycle is started, and information is read one by one for all online optical modules on the communication device again.
[0052] Specifically, the type of the information include...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 