Invention content
To overcome the problems in correlation technique, the disclosure provide a kind of status information reporting method of photoreceiver,
Device and photoreceiver.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
According to the embodiment of the present disclosure in a first aspect, provide a kind of status information reporting method of photoreceiver, including:
The voltage that detection power supply is transmitted;
When the voltage is not more than predeterminated voltage, status information is generated, and upload the status information, wherein, it is described
Predeterminated voltage is less than the voltage output value of the power supply, also, the predeterminated voltage is more than the processing built in photoreceiver
Voltage needed for device normal work.
Preferably, the status information is trap trap messages.
Preferably, the trap trap messages include:Trap type fields, the IP address field of agency and timestamp word
Section, wherein,
The voltage that the trap type fields are used to indicate the photoreceiver changes;
The IP address field of the agency includes the IP address for the photoreceiver for generating the status information;
The timestamp field is included described in time and/or the generation for the photoreceiver startup for generating the status information
The time of status information.
Preferably, the trap trap messages include:Trap type fields, the IP address field of agency, particular code word
Section and timestamp field, wherein,
The trap type fields include user-defined identification, and the user-defined identification is used to indicate the status information agency
Customized event;
The IP address field of the agency includes the IP address for the photoreceiver for generating the status information;
The customized event that the particular code field is used to indicate the status information agency is the voltage of photoreceiver
It changes;
The timestamp field is included described in time and/or the generation for the photoreceiver startup for generating the status information
The time of status information.
According to the second aspect of the embodiment of the present disclosure, a kind of state information report device of photoreceiver is provided, including:
Detection module, for detecting the voltage that power supply is transmitted;
Status information uploading module, for when the voltage is not more than predeterminated voltage, generating status information, and upload institute
Status information is stated, wherein, the predeterminated voltage is less than the voltage output value of the power supply, also, the predeterminated voltage is big
In the voltage needed for the processor normal work built in photoreceiver.
Preferably, the status information is trap trap messages.
Preferably, the trap trap messages include:Trap type fields, the IP address field of agency and timestamp word
Section, wherein,
The voltage that the trap type fields are used to indicate the photoreceiver changes;
The IP address field of the agency includes the IP address for the photoreceiver for generating the status information;
The timestamp field is included described in time and/or the generation for the photoreceiver startup for generating the status information
The time of status information.
Preferably, the trap trap messages include:Trap type fields, the IP address field of agency, particular code word
Section and timestamp field, wherein,
The trap type fields include user-defined identification, and the user-defined identification is used to indicate the status information agency
Customized event;
The IP address field of the agency includes the IP address for the photoreceiver for generating the status information;
The customized event that the particular code field is used to indicate the status information agency is the voltage of photoreceiver
It changes;
The timestamp field is included described in time and/or the generation for the photoreceiver startup for generating the status information
The time of status information.
According to the third aspect of the embodiment of the present disclosure, a kind of photoreceiver is provided, including:
The state information report device of photoreceiver as described above.
Preferably, the photoreceiver further includes:
Energy storage device, the energy storage device are arranged between power supply and the state information report device.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By scheme disclosed in the present application, photoreceiver can detect the voltage that power supply is transmitted, if testing result
Showing the voltage no more than predeterminated voltage, the photoreceiver generates status information and uploads, wherein, the predeterminated voltage is small
In the voltage output value of the power supply, also, the predeterminated voltage is more than the processor normal work built in photoreceiver
Required voltage.In this case, staff can determine confession that photoreceiver receives according to the status information received
The voltage of electric power delivery declines, the power supply so as to determine photoreceiver occur situation cause radio data system without
Faxian shows content, for example, power supply breaks down, alternatively, user turns off unintentionally power supply, is reduced convenient for staff
The workload of inspection, and reduce the time needed for checking.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not
The disclosure can be limited.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
In order to solve in the prior art, when radio and television equipment cannot show content, staff needs to expend a large amount of
The problem of time check, the application disclose a kind of status information reporting method of photoreceiver, device and photoreceiver.
Embodiments herein one discloses a kind of status information reporting method of photoreceiver, and this method is applied to light-receiving
Processor built in machine.Structure diagram shown in Figure 1, the status information reporting method of the photoreceiver is including following
Step:
Step S11, the voltage that detection power supply is transmitted;
In practical applications, power supply is connected with photoreceiver, to provide electric energy for photoreceiver, power supply electricity
The voltage that source provides is usually 5V, and the voltage needed for the processor normal work built in photoreceiver is usually 3.3V.Light connects
Processor in receipts machine according to the methods of AD conversion (analog-to-digital conversion), can obtain the voltage of power supply transmission.
Step S12, when the voltage is not more than predeterminated voltage V1, status information is generated, and upload the status information,
Wherein, the predeterminated voltage is less than the voltage output value V0 of the power supply, also, the predeterminated voltage is more than photoreceiver
Voltage needed for built-in processor normal work.In practical application, the voltage output value V0 of power supply is usually 5V, and institute
It is usually 3.3V to state voltage required during photoreceiver processor normal work, and therefore, the predeterminated voltage V1 is usually in 3.3V
Between~5V.In this case, the terminal for receiving the status information can determine the photoreceiver for uploading the status information
Voltage there is situation.
Voltage change schematic diagram shown in Figure 2, in the figure, the voltage output value V0 of power supply is 5V, processor
Voltage needed for normal work is 3.3V, wherein, predeterminated voltage V1 is between 3.3V~5V.When detecting that photoreceiver receives
Power supply transmission voltage be not more than V1 when, photoreceiver then generates status information and uploads.In practical application, usually will
The predeterminated voltage is set as 4.6V.In this case, when the processor built in photoreceiver detects power supply transmission
When voltage is 4.6V, then starts to generate status information and report.Wherein, the status information is usually uploaded to network management system etc.
The staff of the end sides such as terminal, network management system is according to the status information received, you can determines what photoreceiver received
Voltage goes wrong.
In addition, the voltage that the processor built in photoreceiver receives drops to after V2, often can not work normally, from
And status information cannot be regenerated, it is therefore, raw in the voltage that the processor built in photoreceiver receives when V1 is between V2
Into status information and upload.Wherein, V2 is greater than or equal to 0V, and is less than needed for the processor normal work built in photoreceiver
Voltage.
The step S11 of the application to step S12 discloses a kind of status information reporting method of photoreceiver.In this method,
The voltage that detection power supply is transmitted first, if testing result shows that the voltage no more than predeterminated voltage, generates state
Information simultaneously uploads, wherein, the predeterminated voltage is less than the voltage output value of the power supply, also, the predeterminated voltage is big
In the voltage needed for the processor normal work built in photoreceiver.In this case, staff is according to the state received
Information is that can determine that the voltage of power supply transmission that photoreceiver receives declines, so as to determine the power supply of photoreceiver
Situation, which occurs, in power supply causes radio data system that can not show content, for example, power supply breaks down, alternatively, user is not intended to
Between turn off power supply, convenient for staff reduce check workload, and reduce check needed for time.
The status information can be uploaded to the terminals such as network management system, webmaster system by photoreceiver after status information is generated
The staff of the end sides such as system is according to the status information received, you can determines that the voltage that photoreceiver receives is asked
Topic.Wherein, the status information is usually trap trap messages.Photoreceiver usually passes through SNMP (Simple Network
Management Protocol, Simple Network Management Protocol) and other-end (such as network management system) progress information exchange.It is this
In the case of, the trap trap messages are SNMP trap trap messages.
At present, SNMP messages generally comprise the PDU (Protocol Data Unit, protocol Data Unit) of 5 types, and
It is marked respectively with number 0~4, if wherein PDU types are 4, then it represents that the SNMP messages are trap trap messages.
Presently, there are trap trap messages include 7 kinds of different trap types, by respectively in trap type fields
Loading number 0~6 realizes label, wherein, all types of trap types, name and representative meaning are as shown in the table:
Table 1
By upper table it is found that when trap types are respectively number 0~5, the trap trap messages are represented with fixed meaning
Justice.Wherein, if trap types are 0, which is referred to as " coldStart messages ", shows to generate the trap traps
The device of message is initialized;If trap types are 1, which is referred to as " warmStart messages ", shows
The device for generating the trap trap messages is reinitialized;If trap types are 2, which is referred to as
" linkDown messages " shows to generate an interface in the device of the trap trap messages and becomes failure shape from working condition
State;If trap types are 3, which is referred to as " linkup messages ", shows to generate the dress of the trap trap messages
An interface in putting is in working condition from malfunction change;If trap types are 4, which is referred to as
" authenticationFailure messages " shows that the device for generating the trap trap messages is received from snmp management process
There are one the messages of invalid community for tool;If trap types are 5, which is referred to as " egpNeighborLoss reports
Text ", shows to generate an EGP (Exterior Gateway Protocol, the exterior gateway of the device of the trap trap messages
Agreement) neighboring router becomes malfunction.In addition, if trap types are 6, which is referred to as
" enterpriseSpecific messages ", then it represents that the trap trap messages belong to privately owned trap trap messages, for acting on behalf of
Customized event.
In the status information reporting method of photoreceiver disclosed in the present application, used trap trap messages can be with more
Kind form is realized.In wherein a kind of form, the structure diagram of trap trap messages shown in Figure 3, the trap is fallen into
Trap message includes:Trap type fields (generictrap), the IP address field (agent-addr) and timestamp field of agency
(timestamp)。
Wherein, the voltage that the trap type fields are used to indicate the photoreceiver changes;The IP of the agency
Address field includes the IP address for the photoreceiver for generating the status information;The timestamp field, which includes, generates the shape
The time and/or the time of the generation status information that the photoreceiver of state information starts.
Due to being had been defined at present in the case where trap types are respectively number 0~6, trap trap messages contain
Justice, in the application, the trap type fields are using other numeral marks in addition to 0~6, to indicate the voltage of photoreceiver
It changes, so that terminal is after the trap trap messages are received, according to the number loaded in trap type fields, i.e.,
It can determine the status information that the trap messages are disclosed for this application, the terminal can determine the voltage that photoreceiver receives
Decline, situation, which occurs, in the power supply so as to determine photoreceiver causes radio data system that can not show content.
In this case, in the trap trap messages, trap type fields are usually marked with number 7, that is to say, that
" 0x07 " is loaded in trap type fields, using the label as status information.Certainly, in status information caused by the application,
Other numbers in addition to 0~6 can also be loaded in trap type fields, the application is not construed as limiting this.
In addition, in the IP address field of the agency, with including the IP for the photoreceiver for generating the status information
Location so that terminal is after the status information is received, according to the IP address field of the agency, determines what voltage broke down
The IP address of photoreceiver, is checked convenient for staff.By timestamp field, the terminal energy of the status information is received
It enough determines the startup time of photoreceiver and/or can determine that the photoreceiver generates the time of status information.
Further, the trap trap messages also typically include:Enterprise field (enterprise) and special code field
(specifictrap).In the trap trap messages that the photoreceiver of the application generates, enterprise field refers to enterprise
The registration subtree of SysObjectID, i.e. enterprise under enterprise subtrees.In addition, in status information disclosed in the present application,
Special code field is meaningless, is usually loaded as " 0x00 ".
By trap trap messages disclosed above, the terminal for receiving the trap trap messages can be made to determine exist
There is the photoreceiver of situation in voltage, and determines the IP address of the photoreceiver, so as to reduce the review time of staff and
The workload of inspection.
In another form, trap trap messages disclosed in the present application include:Trap type fields
(generictrap), IP address field (agent-addr), particular code field (specifictrap) and the timestamp of agency
Field (timestamp).
Wherein, the trap type fields include user-defined identification, and the user-defined identification is used to indicate the state letter
Breath acts on behalf of customized event.Number is usually loaded it is found that in trap type fields to the introduction of trap type fields according to table 1
Word 6 is used as user-defined identification, to show that the trap trap messages indicate that itself acts on behalf of customized event.
Correspondingly, the customized event that the special code field is used to indicate the status information agency is photoreceiver
Voltage changes.
By the trap type fields and special code field (specifictrap), the trap trap messages are can determine
Customized event is acted on behalf of, and the customized event changes for the voltage of photoreceiver.
In addition, in the IP address field of the agency, with including the IP for the photoreceiver for generating the status information
Location so that terminal is after the status information is received, according to the IP address field of the agency, determines what voltage broke down
The IP address of photoreceiver, is checked convenient for staff.The timestamp field includes the light for generating the status information
The time and/or the time of the generation status information that receiver starts, by timestamp field, receive the status information
Terminal can determine the startup time of photoreceiver and/or can determine the photoreceiver generate status information time.
Further, the trap trap messages also typically include:Enterprise field (enterprise).The light of the application connects
In the trap trap messages that receipts machine generates, enterprise field refers to the SysObjectID of enterprise, i.e., enterprise is in enterprise
Registration subtree under tree.
By the trap trap messages, the terminal for receiving the trap trap messages can be made to determine that there are voltage appearance
The photoreceiver of situation, and determine the IP address of the photoreceiver, so as to the work for reducing the review time of staff and checking
It measures.
Correspondingly, in the second embodiment of the application, a kind of state information report device of photoreceiver is disclosed, referring to
Structure diagram shown in Fig. 4, the state information report device of the photoreceiver include:Detection module 100 and status information
Uploading module 200.
Wherein, the detection module 100 is used to detect the voltage that power supply is transmitted;
The status information uploading module 200 is used to, when the voltage is not more than predeterminated voltage, generate status information, and
The status information is uploaded, wherein, the predeterminated voltage is less than the voltage output value of the power supply, also, described default
Voltage is more than the voltage needed for the processor normal work built in photoreceiver.
Wherein, the status information is usually uploaded to the terminals such as network management system.In this case, staff is according to connecing
The status information received can determine that the voltage of power supply transmission that photoreceiver receives declines, so as to determine that light connects
Situation, which occurs, in the power supply of receipts machine causes radio data system that can not show content, for example, power supply break down or
Person, user turn off unintentionally power supply, and the workload checked is reduced convenient for staff, and reduce the time needed for checking.
In the application, the status information is usually trap trap messages.Photoreceiver usually passes through SNMP (Simple
Network Management Protocol, Simple Network Management Protocol) and other-end progress information exchange.Such case
Under, the trap trap messages are SNMP trap trap messages.
Wherein, the trap trap messages can be realized in a variety of forms, in wherein a kind of way of realization, the trap
Trap message includes:Trap type fields, the IP address field and timestamp field of agency, wherein, the trap type fields
The voltage for being used to indicate the photoreceiver changes;The IP address field of the agency, which includes, generates the status information
Photoreceiver IP address;The timestamp field include generate time that the photoreceiver of the status information starts and/
Or generate the time of the status information.
In trap trap messages disclosed in the present application, the trap type fields are used to indicate the photoreceiver
Voltage changes.Due to being had been defined at present in the case where trap types are respectively number 0~6, trap trap messages
Meaning, therefore, in trap trap messages disclosed in the present application, trap type fields using in addition to 0~6 other number mark
Note, is changed with the voltage for indicating photoreceiver, so that terminal is after the trap trap messages are received, according to trap
The number loaded in type field, you can determine the status information that the trap messages are disclosed for this application, the terminal can be true
Determine the voltage that photoreceiver receives to decline, situation, which occurs, in the power supply so as to determine photoreceiver leads to radio and television
System can not show content.
Further, the trap trap messages also typically include:Enterprise field (enterprise) and special code field
(specifictrap).In the trap trap messages that the photoreceiver of the application generates, enterprise field refers to enterprise
The registration subtree of SysObjectID, i.e. enterprise under enterprise subtrees.In addition, in status information disclosed in the present application,
Special code field is meaningless, usually loads " 0x00 ".
In addition, in another way of realization, the trap trap messages include:Trap type fields, the IP acted on behalf of
Location field, particular code field (specifictrap) and timestamp field, wherein, the trap type fields include self-defined
Mark, the user-defined identification are used to indicate the status information and act on behalf of customized event;The IP address field packet of the agency
IP address containing the photoreceiver for generating the status information;The particular code field is used to indicate the status information generation
The customized event of reason changes for the voltage of photoreceiver;The timestamp field includes the light for generating the status information
The time and/or the time of the generation status information that receiver starts.
According to table 1 to the introduction of trap type fields it is found that in trap type fields, usually loading number 6 is as certainly
Definition mark, to show that the trap trap messages indicate that itself acts on behalf of customized event.Correspondingly, the special code field is used for
The customized event of indicative of said status information agency changes for the voltage of photoreceiver.Pass through the trap type fields
With special code field, it can determine that the trap trap messages act on behalf of customized event, and the customized event is photoreceiver
Voltage changes.
Further, the trap trap messages also typically include:Enterprise field.What the photoreceiver of the application generated
In trap trap messages, enterprise field refers to the SysObjectID of enterprise, i.e. registration of the enterprise under enterprise subtrees
Subtree.
By trap trap messages disclosed in the present application, the terminal for receiving the trap trap messages can be made to determine to deposit
There is the photoreceiver of situation, and determine the IP address of the photoreceiver in voltage, so as to reduce the review time of staff
With the workload of inspection.
Correspondingly, in the 3rd embodiment of the application, a kind of photoreceiver is disclosed, it is real that the photoreceiver includes second
Apply the state information report device of photoreceiver disclosed in example.
The state information report device of the photoreceiver includes:Detection module 100 and status information uploading module 200.
Wherein, the detection module 100 is used to detect the voltage that power supply is transmitted;
The status information uploading module 200 is used to, when the voltage is not more than predeterminated voltage, generate status information, and
The status information is uploaded, wherein, the predeterminated voltage is less than the voltage output value of the power supply, also, described default
Voltage is more than the voltage needed for the processor normal work built in photoreceiver.
In the application, the status information is trap trap messages.
The trap trap messages can be realized in a variety of forms, in wherein a kind of way of realization, the trap traps
Message includes:Trap type fields, the IP address field and timestamp field of agency, wherein, the trap type fields are used for
Indicate that the voltage of the photoreceiver changes;The IP address field of the agency includes the light for generating the status information
The IP address of receiver;The timestamp field includes time and/or the production for generating that the photoreceiver of the status information starts
The time of the raw status information.Wherein, trap type fields are using other numeral marks in addition to 0~6, to indicate that light connects
The voltage of receipts machine changes.
In another way of realization, the trap trap messages include:Trap type fields, the IP address word of agency
Section, particular code field and timestamp field, wherein, the trap type fields include user-defined identification, the self-defined mark
Knowledge is used to indicate the status information and acts on behalf of customized event;The IP address field of the agency, which includes, generates the state letter
The IP address of the photoreceiver of breath;The customized event that the particular code field is used to indicate the status information agency is light
The voltage of receiver changes;The timestamp field, which includes, generates the time that the photoreceiver of the status information starts,
And/or generate the time of the status information.
Further, photoreceiver disclosed in the present application further includes:Energy storage device, the energy storage device are arranged on power supply electricity
Between source and the state information report device.
V diagram shown in Figure 2, in the figure, the voltage output value V0 of power supply is 5V, predeterminated voltage V1
Between 3.3V~5V.When photoreceiver detects that voltage is not more than V1, photoreceiver generation status information simultaneously uploads.It is practical
In, the predeterminated voltage is usually set as 4.6V.
In addition, the voltage that the processor built in photoreceiver receives drops to after V2, it is impossible to status information is regenerated,
Therefore, it in the voltage that the processor built in photoreceiver receives when V1 is between V2, generates status information and uploads.Its
In, V2 is greater than or equal to 0V, and the voltage needed for less than the processor normal work built in photoreceiver.
In this case, it in order to ensure that status information can be uploaded successfully, needs to make voltage decrease speed slow as possible, with
Extend voltage in V1 to the time between V2.In this case, photoreceiver disclosed in the present application is in power supply and the shape
Energy storage device is set between state information reporting device, so as to play the role of slowing down voltage decrease speed.
Wherein, the energy storage device generally use storage capacitor.Decline it is, of course, also possible to which voltage can be slowed down using other
The energy storage device of speed, the application are not construed as limiting this.
The state information report device of photoreceiver is provided in the photoreceiver of the application, can detect power supply electricity
When the voltage of source transmission is not more than predeterminated voltage, status information is generated, and upload the status information, so as to make to receive the shape
The terminal of state information determines that there are voltages the photoreceiver of situation occur, the review time of staff is reduced, further, it is possible to subtract
The workload checked less.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.