CN106879138A - A kind of electronic equipment and method, the device of the flicker of control electronics indicator lamp - Google Patents

A kind of electronic equipment and method, the device of the flicker of control electronics indicator lamp Download PDF

Info

Publication number
CN106879138A
CN106879138A CN201710069833.7A CN201710069833A CN106879138A CN 106879138 A CN106879138 A CN 106879138A CN 201710069833 A CN201710069833 A CN 201710069833A CN 106879138 A CN106879138 A CN 106879138A
Authority
CN
China
Prior art keywords
node
indicator lamp
data
write
flicker
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
Application number
CN201710069833.7A
Other languages
Chinese (zh)
Other versions
CN106879138B (en
Inventor
张学川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pico Technology Co Ltd
Original Assignee
Beijing Pico Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Pico Technology Co Ltd filed Critical Beijing Pico Technology Co Ltd
Priority to CN201710069833.7A priority Critical patent/CN106879138B/en
Publication of CN106879138A publication Critical patent/CN106879138A/en
Application granted granted Critical
Publication of CN106879138B publication Critical patent/CN106879138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses method, device that a kind of electronic equipment and control electronics indicator lamp flash, methods described includes:First node, Section Point and the 3rd node are added in the system driver of electronic equipment;First node is used to control indicator lamp to open flashing function, in first node write state data;Section Point is used to control indicator lamp to maintain the bright time period in flicker, and very first time data are write in Section Point;3rd node is used to control indicator lamp to maintain the time period gone out in flicker, and the second time data is write in the 3rd node;System driver judges whether first node, Section Point and the 3rd node write data;If three nodes have data to write, control indicator lamp flicker.Directly control indicator lamp to flash by system driver, can not only reduce hardware cost, and program code is portable high, is easy to be used in other electronic equipments, can reduce the time cost of software development.

Description

A kind of electronic equipment and method, the device of the flicker of control electronics indicator lamp
Technical field
The present invention relates to software controlling technique field, more particularly to a kind of electronic equipment and control electronics indicator lamp is dodged Bright method, device.
Background technology
In recent years, with the popularization of Android system, and hardware cost decline, increasing equipment using based on peace Tall and erect operating system, the operating system based on Android it is maximum the characteristics of be exactly UI operation interface hommizations, but due to application Scene is different, such as industrial control field etc., and some Android electronic equipments are fitted without screen, so the status information of equipment is just Other equipment such as LED light is needed to show.
The method for controlling indicator lamp in the prior art, is usually connected specific indicator lamp control core with Master control chip Piece, write-in program defines the various flicker states of indicator lamp on the indicator lamp control chip, so can not only increase extra Hardware cost, and program portability it is not high.
The content of the invention
The method that in view of the above problems, flashes the invention provides a kind of electronic equipment and control electronics indicator lamp, Device, the method flashed with solving existing control electronics indicator lamp needs to increase extra hardware cost, and program Portable problem not high.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
On the one hand, the present invention provides a kind of method of control electronics indicator lamp flicker, and methods described includes:
First node, Section Point and the 3rd node are added in the system driver of the electronic equipment;
The first node is used to control the indicator lamp to open flashing function, in the first node write state number According to;
The Section Point is used to control the indicator lamp to maintain the bright time period in flicker, is write in the Section Point Enter very first time data;
3rd node is used to control the indicator lamp to maintain the time period gone out in flicker, is write in the 3rd node Enter the second time data;
The system driver judges whether the first node, Section Point and the 3rd node write data;
If three nodes there are data to write, the indicator lamp is controlled to flash;
If any of which node does not have data to write, the indicator lamp is controlled not flash.
On the other hand, the present invention also provides a kind of device of control electronics indicator lamp flicker, and described device includes:
Node adding device, for adding first node, Section Point in the system driver of the electronic equipment With the 3rd node;
Flashing function setting unit, dodges in the first node write state data, controlling the indicator lamp to open Bright function;
Bright time control unit is flashed, for writing very first time data in the Section Point, the indicator lamp is controlled The bright time period is maintained in flicker;
The time control unit that goes out is flashed, for writing the second time data in the 3rd node, the indicator lamp is controlled The time period gone out is maintained in flicker;
Flicker status unit, the first node, Section Point and the 3rd are judged for the system driver Whether node writes data;If three nodes there are data to write, the indicator lamp is controlled to flash;If any of which node There is no data to write, then control the indicator lamp not flash.
Another further aspect, the present invention also provides a kind of electronic equipment, is provided with indicator lamp, and the electronic equipment is using based on peace Tall and erect operating system, including the device that above-mentioned control electronics indicator lamp flashes.
The beneficial effects of the invention are as follows:The present invention provides the side of a kind of electronic equipment and the flicker of control electronics indicator lamp Method, device, three nodes are added in the system driver of electronic equipment and control indicator lamp to open flashing function, dodging respectively Bright time period is maintained when bright and the time period gone out is maintained in flicker, if three nodes there are data to write, control refers to Show that lamp flashes.Indicator lamp is directly connected to by by Master control chip, and is directly controlled by the system driver of Master control chip Indicator lamp flashes, and can not only reduce hardware cost, and program code is portable high, is easy to make in other electronic equipments With the time cost of software development can be reduced.
Brief description of the drawings
Fig. 1 is the flow chart of the method for the control electronics indicator lamp flicker of the embodiment of the present invention one;
Fig. 2 is the schematic diagram of the device of the control electronics indicator lamp flicker of the embodiment of the present invention two;
Fig. 3 is another schematic diagram of the device of the control electronics indicator lamp flicker of the embodiment of the present invention two;
Fig. 4 is the schematic diagram of the electronic equipment of the embodiment of the present invention three.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiment of the present invention provides a kind of method of control electronics indicator lamp flicker, as shown in figure 1, the method bag Include:
Step S110:Addition first node, Section Point and Section three in the system driver of the electronic equipment Point;
Step S120:The first node is used to control the indicator lamp to open flashing function, is write in the first node Enter status data;Status data can be for example " 1 ", and " 1 " acquiescence is represented and opens flashing function in program.
Step S130:The Section Point is used to control the indicator lamp to maintain the bright time period in flicker, described Section Point writes very first time data;Very first time data for example can be 0.5s, 1s etc..
Step S140:3rd node is used to control the indicator lamp to maintain the time period gone out in flicker, described 3rd node writes the second time data;Second time data for example can be 0.5s, 1s etc., when very first time data are with second Between data can be with equal, it is also possible to it is unequal.
Step S150:The system driver judges whether the first node, Section Point and the 3rd node write Data;
If three nodes there are data to write, the indicator lamp is controlled to flash;
If any of which node does not have data to write, the indicator lamp is controlled not flash.
It should be noted that node refers to a position in system driver, can lead to for Android system The file manager for crossing root authority sees this position.It is to facilitate upper strata in the effect of this position write-in data Framwork routine access bsp drivers, it is indicator lamp that then can remove control hardware.
From the foregoing, Master control chip is directly connected to indicator lamp by the embodiment of the present invention, and it is in Master control chip Data definition difference flicker state is write in system driver and controls indicator lamp to flash, relative to prior art by adding volume Outer indicator lamp control chip controls indicator lamp to flash, and the embodiment of the present invention can reduce hardware cost.
In a preferred embodiment of the embodiment of the present invention, the method shown in Fig. 1 also includes:
Fourth node is added in the system driver of the electronic equipment;
The fourth node is used to control light color of the indicator lamp in flicker, and face is write in the fourth node Color enumerates data.Color enumerates the code such as 110,120 etc. that data can be acquiescence, or the English for representing different colours Letter, such as red, blue, above-mentioned code or English alphabet give tacit consent to correspondence a certain kind light color in program.
In embodiments of the present invention, the method shown in Fig. 1 also includes:
According to the different working condition of the electronic equipment, be the very first time data, second time data and The color enumerates data and assigns different numerical value.
In embodiments of the present invention, the control indicator lamp flicker in step S150 includes:
The data of the Section Point, the 3rd node and the fourth node write-in are called by software timer, Indicated according to the Numerical Control that the very first time data, second time data and the color enumerate data imparting Lamp flashes, and controls indicator lamp to be flashed with different frequencies or different light colors according to system different working condition so that User is capable of the different working condition of compartment system.
In another preferred embodiment of the invention, the electronic equipment is this using the operating system based on Android The indicator lamp flicker program code that linux kernel software is realized is portable very high, is easy to be used in other electronic equipments, can Reduce the time cost of software development.
Embodiment two
The embodiment of the present invention also provides a kind of device 800 of control electronics indicator lamp flicker, as shown in Fig. 2 the dress Put including:
Node adding device 100, in the system driver of electronic equipment add first node, Section Point and 3rd node;
Flashing function setting unit 200, in first node write state data, control indicator lamp to open flicker work( Energy;
Bright time control unit 300 is flashed, for writing very first time data in Section Point, control indicator lamp is in flicker When maintain the bright time period;
The time control unit 400 that goes out is flashed, for writing the second time data in the 3rd node, control indicator lamp is in flicker When maintain time period for going out;
Flicker status unit 500, judges that first node, Section Point and the 3rd node are for system driver No write-in data;If three nodes have data to write, control indicator lamp flicker;If any of which node does not have data to write Enter, then control indicator lamp not flash.
Wherein, flashing function setting unit 200, flash bright time control unit 300, flicker and go out time control unit 400 It is coordination, and three is connected with node adding device 100 and flicker status unit 500, flicker state control Unit 500 be additionally operable to by software timer call Section Point, the 3rd node write data, according to very first time data, The Numerical Control indicator lamp flicker that second time data is assigned.
In a preferred embodiment of the embodiment of the present invention, node adding device 100 is additionally operable in electronic equipment Addition fourth node in system driver;
As shown in figure 3, the device also includes:
Flash color control unit 600, for enumerating data in fourth node write-in color, for controlling indicator lamp dodging Light color when bright.
Flash color control unit 600 is gone out with flashing function setting unit 200, the bright time control unit 300 of flicker, flicker Time control unit 400 is coordination, and is connected with node adding device 100 and flicker status unit 500.Dodge Bright status unit 500, is additionally operable to be enumerated according to color the Numerical Control indicator lamp flicker of data imparting.
In embodiments of the present invention, as shown in figure 3, the device also includes:Assignment unit 700.
Assignment unit 700 simultaneously with flash bright time control unit 300, flicker and go out time control unit 400, flash color The unit of control unit 600 is connected, and is very first time data, the second time number for the different working condition according to electronic equipment The data different numerical value of imparting are enumerated according to color.
In embodiments of the present invention, status unit 500 is flashed, is additionally operable to call second section by software timer The data of point, the 3rd node and fourth node write-in, enumerate data and assign according to very first time data, the second time data and color The Numerical Control indicator lamp for giving flashes.
Embodiment three
As shown in figure 4, the embodiment of the present invention also provides a kind of electronic equipment, indicator lamp 900 is provided with, electronic equipment is used Operating system based on Android, including described in embodiment two control electronics indicator lamp flicker device 800.The electronics Equipment for example can be industrial control equipment, or virtual implementing helmet of industrial control field etc..
In sum, the embodiment of the present invention one to three is provided a kind of electronic equipment and the flicker of control electronics indicator lamp Method, device, added in the system driver of electronic equipment three nodes control respectively indicator lamp open flashing function, Bright time period is maintained in flicker and the time period gone out is maintained in flicker, if three nodes there are data to write, controlled Indicator lamp flicker processed.Indicator lamp is directly connected to by by Master control chip, and it is direct by the system driver of Master control chip Control indicator lamp flicker, can not only reduce hardware cost, and program code is portable high, is easy in other electronic equipments In use, the time cost of software development can be reduced.
The above, specific embodiment only of the invention, under above-mentioned teaching of the invention, those skilled in the art Other improvement or deformation can be carried out on the basis of above-described embodiment.It will be understood by those skilled in the art that above-mentioned tool The purpose of the present invention is simply preferably explained in body description, and protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of method that control electronics indicator lamp flashes, it is characterised in that methods described includes:
First node, Section Point and the 3rd node are added in the system driver of the electronic equipment;
The first node is used to control the indicator lamp to open flashing function, in the first node write state data;
The Section Point is used to control the indicator lamp to maintain the bright time period in flicker, in Section Point write-in the One time data;
3rd node is used to control the indicator lamp to maintain time period for going out in flicker, in the 3rd node write-in the Two time datas;
The system driver judges whether the first node, Section Point and the 3rd node write data;
If three nodes there are data to write, the indicator lamp is controlled to flash;
If any of which node does not have data to write, the indicator lamp is controlled not flash.
2. the method that control electronics indicator lamp according to claim 1 flashes, it is characterised in that methods described is also wrapped Include:
Fourth node is added in the system driver of the electronic equipment;
The fourth node is used to control light color of the indicator lamp in flicker, and color piece is write in the fourth node Lift data.
3. the method that control electronics indicator lamp according to claim 2 flashes, it is characterised in that methods described is also wrapped Include:
It is the very first time data, second time data and described according to the different working condition of the electronic equipment Color enumerates data and assigns different numerical value.
4. the method that the control electronics indicator lamp according to claim any one of 1-3 flashes, it is characterised in that described Controlling the indicator lamp flicker includes:
The data of the Section Point, the 3rd node and the fourth node write-in are called by software timer, according to The very first time data, second time data and the color are enumerated indicator lamp described in the Numerical Control that data are assigned and are dodged It is bright.
5. the method that control electronics indicator lamp according to claim 4 flashes, it is characterised in that the electronic equipment Using the operating system based on Android.
6. the device that a kind of control electronics indicator lamp flashes, it is characterised in that described device includes:
Node adding device, for adding first node, Section Point and the in the system driver of the electronic equipment Three nodes;
Flashing function setting unit, in the first node write state data, controlling the indicator lamp to open flicker work( Energy;
Bright time control unit is flashed, for writing very first time data in the Section Point, controls the indicator lamp dodging The bright time period is maintained when bright;
The time control unit that goes out is flashed, for writing the second time data in the 3rd node, controls the indicator lamp dodging The time period gone out is maintained when bright;
Flicker status unit, the first node, Section Point and the 3rd node are judged for the system driver Whether data are write;If three nodes there are data to write, the indicator lamp is controlled to flash;If any of which node does not have Data write, then control the indicator lamp not flash.
7. the device that control electronics indicator lamp according to claim 6 flashes, it is characterised in that
The node adding device, is additionally operable to add fourth node in the system driver of the electronic equipment;
Described device also includes:
Flash color control unit, for enumerating data in fourth node write-in color, for controlling the indicator lamp to exist Light color during flicker.
8. the device that control electronics indicator lamp according to claim 7 flashes, it is characterised in that described device is also wrapped Include:
Assignment unit, for the different working condition according to the electronic equipment, when being the very first time data, described second Between data enumerate the data different numerical value of imparting with the color.
9. the device that the control electronics indicator lamp according to claim any one of 6-8 flashes, it is characterised in that
The flicker status unit, be additionally operable to by software timer call the Section Point, the 3rd node and The data of the fourth node write-in, according to the very first time data, second time data and the color enumerator Flashed according to indicator lamp described in the Numerical Control for assigning.
10. a kind of electronic equipment, is provided with indicator lamp, it is characterised in that the electronic equipment is using the operation system based on Android System, including described in claim any one of 6-9 control electronics indicator lamp flicker device.
CN201710069833.7A 2017-02-08 2017-02-08 A kind of electronic equipment and the method, apparatus of controlling electronic devices indicator light flashing Active CN106879138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710069833.7A CN106879138B (en) 2017-02-08 2017-02-08 A kind of electronic equipment and the method, apparatus of controlling electronic devices indicator light flashing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710069833.7A CN106879138B (en) 2017-02-08 2017-02-08 A kind of electronic equipment and the method, apparatus of controlling electronic devices indicator light flashing

Publications (2)

Publication Number Publication Date
CN106879138A true CN106879138A (en) 2017-06-20
CN106879138B CN106879138B (en) 2019-07-19

Family

ID=59165998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710069833.7A Active CN106879138B (en) 2017-02-08 2017-02-08 A kind of electronic equipment and the method, apparatus of controlling electronic devices indicator light flashing

Country Status (1)

Country Link
CN (1) CN106879138B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1704907A (en) * 2004-06-01 2005-12-07 联想(北京)有限公司 Variable respiration indicating lamp apparatus and controlling method thereof
CN1842238A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Signal lamp flashing controlling method
CN103257915A (en) * 2013-05-21 2013-08-21 北京小米科技有限责任公司 Method and device for providing operation state of software of display equipment
CN103268225A (en) * 2013-05-14 2013-08-28 Tcl通讯(宁波)有限公司 Simulator for simulating LED (light-emitting diode) indicator lamp in mobile terminal and implementation method thereof
CN105611682A (en) * 2014-11-24 2016-05-25 中兴通讯股份有限公司 Method and device for controlling indication lamps
CN106294080A (en) * 2016-08-05 2017-01-04 联想(北京)有限公司 A kind of information output method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1704907A (en) * 2004-06-01 2005-12-07 联想(北京)有限公司 Variable respiration indicating lamp apparatus and controlling method thereof
CN1842238A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Signal lamp flashing controlling method
CN103268225A (en) * 2013-05-14 2013-08-28 Tcl通讯(宁波)有限公司 Simulator for simulating LED (light-emitting diode) indicator lamp in mobile terminal and implementation method thereof
CN103257915A (en) * 2013-05-21 2013-08-21 北京小米科技有限责任公司 Method and device for providing operation state of software of display equipment
CN105611682A (en) * 2014-11-24 2016-05-25 中兴通讯股份有限公司 Method and device for controlling indication lamps
CN106294080A (en) * 2016-08-05 2017-01-04 联想(北京)有限公司 A kind of information output method and electronic equipment

Also Published As

Publication number Publication date
CN106879138B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN111444130B (en) Integrated machine
CN104008008A (en) Method for conducting multiplexing on debugging serial port in Linux system
CN103809983A (en) Method for modifying BIOS SETUP interface
CN114817115A (en) Serial port communication method and related device
CN103746873A (en) System and method for testing communication module
WO2020056619A1 (en) Method for error detection in text writing, terminal device, and storage medium
CN106879138A (en) A kind of electronic equipment and method, the device of the flicker of control electronics indicator lamp
US20210113922A1 (en) Lighting effects for application events
CN106575278A (en) Universal serial bus emulation layer
CN106951168A (en) A kind of literal processing method and mobile terminal
CN110008159A (en) PCIE width automatic adaptation method, device and electronic equipment and storage medium
CN109581104A (en) A kind of vehicle entertainment system testing touch screen method
CN112015320B (en) Electronic color matching device, color matching method, drawing system and drawing method
US20230298492A1 (en) Display control method and terminal device
CN106023951B (en) Electronic equipment and its display control program and method
CN108279645A (en) Work support apparatus and Work support method
EP4339779A1 (en) Software host construction method and construction system, and software host and simulation device
CN106648623A (en) Method and device of displaying characters in Android
CN105278907A (en) Display method and mobile terminal
CN106354603B (en) Solve the occupied method in the ports ADB and its system
CN111930628B (en) Security level display module graphic configuration simulation system and simulation method thereof
CN111596570B (en) Vehicle CAN bus simulation and attack system and method
CN107491205B (en) Integrated machine
CN107678996A (en) Determination method, USB device and the storage medium of USB mode
CN105336642B (en) The method and device of semiconductor equipment cavity state display control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant