Embodiment
Make further more detailed description to technical scheme with reference to embodiment.Obviously, retouched
The embodiment stated is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention,
The every other embodiment that those of ordinary skill in the art are obtained on the premise of creative work is not made, should all belong to
The scope of protection of the invention.
Refering to Fig. 1, Fig. 1 is that the device first of utilization router LED positioning brush machine provided in an embodiment of the present invention is implemented
The structural representation of mode.
The device 100 for positioning brush machine using router LED includes:Bootstrap starting module 110, brush machine parameter is obtained
Modulus block 120 and brush alertness show processing module 130.
Wherein, bootstrap starting module 110, does after hardware check for electricity on the router, starts Uboot guiding journeys
Sequence.
Specifically, Uboot is device bootstrap, for loading the operation device of router, and router is stored in
ROM in.
Brush machine parameter acquisition module 120, the Uboot bootstrap for being started by 110 module obtains brush machine and joined
Several values.
Specifically, the brush machine parameter is the newly-increased parameter of the present invention, and it is also to be stored in the ROM of router, and
And before router dispatches from the factory default settings, i.e. initial value, such as brush machine parameter is recover, and initial value is 0.
Once user's brush machine, then inevitably result in brush machine parameter value and lose or be modified.
Brush alertness shows processing module 130, if obtaining the brush machine parameter value failure or the module for 120 modules
The 120 brush machine parameter values got are different from initial value, generate information warning and trigger the progress of router LED display module
Display.
Router LED display module 140, for being shown according to information warning.
Specifically, the brush machine information warning can be the bright particular color of LED, such as blueness, yellow, red can also
It is that LED is bright in a specific way, the interval flashing that for example one is long and the other is short, fast blink, the circulation flicker of several lamps.Wherein, provide
The LED of information warning can reuse the existing data-signal lamp of router, can also reuse the existing power supply of router and refer to
Show lamp.
Prior art is different from, the utilization router LED of the embodiment of the present invention positions electricity on the device of brush machine, router
Do after hardware check, start Uboot bootstrap;The Uboot bootstrap obtains the value of brush machine parameter;If obtaining described
The failure of brush machine parameter value or the brush machine parameter value got are different from initial value, and triggering router LED provides equipment
Brush machine information warning;So as to judged in the way of simple, intuitive router whether brush machine, realize and the batch of router examined
Survey.
Refering to Fig. 2, Fig. 2 is that the device the secondth of utilization router LED positioning brush machine provided in an embodiment of the present invention is real
Apply the structural representation of mode.
The device 200 for positioning brush machine using router LED includes:Bootstrap starting module 210, brush machine parameter is obtained
Modulus block 220 and brush alertness show processing module 230.
Wherein, bootstrap starting module 210, does after hardware check for electricity on the router, starts Uboot guiding journeys
Sequence.Specifically, Uboot is device bootstrap, for loading the operation device of router, and the ROM of router is stored in
In.
Brush machine parameter acquisition module 220, the value for obtaining brush machine parameter by the Uboot bootstrap.Specifically,
The brush machine parameter is the newly-increased parameter of the present invention, and is stored in as Uboot bootstrap in the ROM of router, and
And before router dispatches from the factory default settings, i.e. initial value.Once user's brush machine, then inevitably result in brush machine parameter value
Lose or be modified.
Brush alertness shows processing module 230, if for obtaining the brush machine parameter value failure or the affiliated institute got
State brush machine parameter value different from initial value, generate information warning and trigger router LED display module and shown.
Router LED display module, for being shown according to information warning.
Specifically, the brush machine information warning can be the bright particular color of LED, for example red or LED is with spy
Determine mode bright, for example fast blink.Wherein, the LED for providing information warning can reuse the existing data-signal of router
Lamp, can also reuse the existing power supply indicator of router.
Further alternative, the brush alertness shows that processing module includes the normal indicating member 231 of equipment, if for described
The brush machine parameter value got is identical with initial value, and triggering router LED provides the normal configured information of equipment.Specifically
, the normal configured information can be the bright particular color of LED, and for example green or LED are bright in a specific way, example
It is as usual bright.Wherein, the LED for providing information warning can reuse the existing data-signal lamp of router, can also reuse road
By the existing power supply indicator of device.
Further alternative, the brush alertness shows that processing module 230 is additionally operable in triggering router LED display module 240
Afterwards, equipment brush machine caution sound is also provided by buzzer.
Further alternative, described device also includes brush machine parameter definition module 250, for the electricity on the router
Before, increase the brush machine parameter in the Uboot bootstrap, the brush machine parameter is set to initial value;Definition is described
Correlation rule between brush machine parameter and router LED configured information.For example, increased brush machine parameter is in Uboot
Recover, initial value is 0.Specifically, the correlation rule of definition can be:When brush machine parameter with initial value identical then LED with
Certain ad hoc fashion is bright or bright with certain particular color, and when brush machine parameter is different with initial value or can not find brush machine parameter
When then LED it is bright or particular color is bright with another ad hoc fashion, for indicating whether the parameter value is modified or is deleted
Remove.For example, when brush machine parameter recover is identical with initial value, LED bright green, otherwise shiny red;Or brush machine parameter
When recover is identical with initial value, LED length is bright, otherwise fast blink.Because brush machine parameter is included in Uboot bootstrap
In, so being also the ROM for being stored in router.Once user's brush machine, then inevitably result in brush machine parameter value and lose or by more
Change.
Further alternative, described device also includes memory module 260, for the correlation rule to be stored in into specific deposit
Storage area domain.Specifically, during in order to avoid user's brush machine, except have changed brush machine parameter value, also removing brush machine parameter definition mould
The correlation rule, can be stored in a specific storage region, for example, some in ROM is or not the correlation rule that block 250 is defined
The memory space for allowing user to access.
Further alternative, the memory module 260 is additionally operable to go out fault in particular memory region storage Uboot
Reason program, the error handler can not be done just in Uboot bootstrap by malicious modification according to the brush machine parameter value
Often during processing, triggering LED provides equipment brush machine information warning.
Specifically, during in order to avoid user's brush machine, not only have changed brush machine parameter value, also malicious modification Uboot draws
Helical pitch sequence, causes bootstrap not processed according to default service logic to brush machine parameter, for example, Uboot is not gone
Brush machine parameter is read, also LED will not be triggered according to the value difference of brush machine parameter and do different instructions, it is necessary to increase Uboot
Error handler and the particular memory region for being stored in a safety, the Uboot error handlers are judging that Uboot draws
Helical pitch sequence is by after malicious modification, and directly triggering LED provides equipment brush machine information warning.For example, router power-on self-test is certain
After time, Uboot does not read the correlation rule in the particular memory region, then is judged as that Uboot, by malicious modification, triggers LED
Send out a warning or fast blink, to indicate router by brush machine.
Prior art is different from, the utilization router LED of the embodiment of the present invention positions electricity on the device of brush machine, router
Do after hardware check, start Uboot bootstrap;The Uboot bootstrap obtains the value of brush machine parameter;If obtaining described
The failure of brush machine parameter value or the brush machine parameter value got are different from initial value, and triggering router LED provides equipment
Brush machine information warning;So as to judged in the way of simple, intuitive router whether brush machine, realize and the batch of router examined
Survey.
Refering to Fig. 3, Fig. 3 is that the method first of utilization router LED positioning brush machine provided in an embodiment of the present invention is implemented
The schematic flow sheet of mode.
The step of this method, includes:
S301:Electricity is done after hardware check on router, starts Uboot bootstrap.
Specifically, Uboot is system bootstrap routine, for loading the operating system of router, and router is stored in
ROM in.
S302:The Uboot bootstrap obtains the value of brush machine parameter.
Specifically, the brush machine parameter is the newly-increased parameter of the present invention, and road is stored in as Uboot bootstrap
In the ROM of device, and default settings, the i.e. initial value before router dispatches from the factory.Once user's brush machine, then will necessarily
Brush machine parameter value is caused to lose or be modified.
S303:If obtaining the brush machine parameter value failure or the brush machine parameter value and initial value that get not
Together, generate information warning and trigger router LED and provide equipment brush machine information warning.
Specifically, the brush machine information warning can be the bright particular color of LED, for example red or LED is with spy
Determine mode bright, for example fast blink.Wherein, the LED for providing information warning can reuse the existing data-signal of router
Lamp, can also reuse the existing power supply indicator of router.Optionally, this method also includes:If the brush machine got
Parameter value is identical with initial value, and triggering LED provides the normal configured information of equipment.Specifically, the normal configured information can be
The bright particular color of LED, such as green or LED are bright in a specific way, such as Chang Liang.Wherein, information warning is provided
LED can be reuse the existing data-signal lamp of router, the existing power supply indicator of router can also be reused.
Optionally, also include after step S303:Equipment brush machine caution sound is provided by buzzer.
Optionally, also include before step S301:Increase the brush machine parameter in the Uboot bootstrap, by institute
State brush machine parameter and be set to initial value;Define the correlation rule between the brush machine parameter and LED configured information.Further may be used
Choosing, the correlation rule is stored in particular memory region.It is further alternative, in the particular memory region, also deposit
Uboot error handlers are placed with, for that can not be done when Uboot bootstrap by malicious modification according to the brush machine parameter value
During normal process, triggering LED provides equipment brush machine information warning.
For example, increased brush machine parameter is recover in Uboot, initial value is 0.Specifically, the correlation rule of definition
Can be:When brush machine parameter, with initial value, identical then LED is bright or bright with certain particular color with certain ad hoc fashion, and
When brush machine parameter is different with initial value or when can not find brush machine parameter then LED so that another ad hoc fashion is bright or particular color
It is bright, for indicating whether the parameter value is modified or is deleted.For example, when brush machine parameter recover is identical with initial value,
LED bright green, otherwise shiny red;Or brush machine parameter recover it is identical with initial value when, LED length is bright, otherwise fast speed flash
It is bright.It is also the ROM for being stored in router because brush machine parameter is included in Uboot bootstrap.Once user's brush machine,
Brush machine parameter value is then inevitably resulted in lose or be modified.
Specifically, during in order to avoid user's brush machine, except have changed brush machine parameter value, also removing brush machine parameter definition mould
The correlation rule, can be stored in a specific storage region, for example, some in ROM is or not the correlation rule that block 250 is defined
The memory space for allowing user to access.
Specifically, during in order to avoid user's brush machine, not only have changed brush machine parameter value, also malicious modification Uboot draws
Helical pitch sequence, causes bootstrap not processed according to default service logic to brush machine parameter, for example, Uboot is not gone
Brush machine parameter is read, also LED will not be triggered according to the value difference of brush machine parameter and do different instructions, it is necessary to increase Uboot
Error handler and the particular memory region for being stored in a safety, the Uboot error handlers are judging that Uboot draws
Helical pitch sequence is by after malicious modification, and directly triggering LED provides equipment brush machine information warning.For example, router power-on self-test is certain
After time, Uboot does not read the correlation rule in the particular memory region, then is judged as that Uboot, by malicious modification, triggers LED
Send out a warning or fast blink, to indicate router by brush machine.
It is different from electricity on prior art, the method for the utilization router LED positioning brush machine of the embodiment of the present invention, router
Do after hardware check, start Uboot bootstrap;The Uboot bootstrap obtains the value of brush machine parameter;If obtaining described
The failure of brush machine parameter value or the brush machine parameter value got are different from initial value, and triggering router LED provides equipment
Brush machine information warning;So as to judged in the way of simple, intuitive router whether brush machine, realize and the batch of router examined
Survey.
The embodiment of the embodiment of the present invention is the foregoing is only, the patent model of the embodiment of the present invention is not thereby limited
Enclose, equivalent structure or equivalent flow conversion that every utilization embodiment of the present invention specification and accompanying drawing content are made, or directly or
Other related technical fields are used in indirectly, are similarly included in the scope of patent protection of the embodiment of the present invention.