WO2016082334A1 - Indicator light control method and apparatus - Google Patents

Indicator light control method and apparatus Download PDF

Info

Publication number
WO2016082334A1
WO2016082334A1 PCT/CN2015/072336 CN2015072336W WO2016082334A1 WO 2016082334 A1 WO2016082334 A1 WO 2016082334A1 CN 2015072336 W CN2015072336 W CN 2015072336W WO 2016082334 A1 WO2016082334 A1 WO 2016082334A1
Authority
WO
WIPO (PCT)
Prior art keywords
indicator light
bit
indicator
multicast message
blinking
Prior art date
Application number
PCT/CN2015/072336
Other languages
French (fr)
Chinese (zh)
Inventor
李昕
董如婵
明新勇
毕忠良
黄文伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016082334A1 publication Critical patent/WO2016082334A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for controlling an indicator light.
  • Network devices of various types of terminals such as various centralized or distributed multi-board devices, are generally co-processed by multiple boards to improve the overall processing capacity of the device. These boards often use Light Emitting Diodes (LEDs) as indicators to indicate the operating status of the device. Different flashing frequencies, colors, etc. of different indicators can indicate different operating states of the device, so that the device can be monitored in a timely and intuitive manner.
  • LEDs Light Emitting Diodes
  • the control indicator flashes at different frequencies
  • the hardware is mainly implemented by a frequency divider.
  • the frequency divider is used to adjust the frequency division coefficient to control the period of the indicator signal high and low level. If the period becomes longer, the indicator blinking frequency becomes slower, otherwise the blinking frequency becomes faster.
  • the multi-channel switch is mainly used to control multiple indicator lights, and special hardware circuits need to be added, and as the board increases, the wiring becomes more and more complicated, which brings great to the user. inconvenient.
  • the present invention provides a method and an apparatus for controlling an indicator light to at least solve the problem that the hardware of the related art needs to be additionally increased with the increase of the number of indicators, resulting in a complicated structure and high cost.
  • a method for controlling an indicator light includes: receiving a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency; and controlling the indicator light to perform synchronous blinking according to the multicast message.
  • controlling the indicator light to perform the synchronization blinking according to the multicast message comprises: determining a lighting parameter of the indicator light, wherein the lighting parameter comprises one or more blinking frequencies of the indicator light; The blinking frequency of the indicator light in the lighting parameter is converted into a bit bitmap corresponding to the blinking frequency; according to the bit bitmap, and the multicast message, the indicator light is controlled to perform synchronous flashing.
  • controlling the indicator light to perform synchronous blinking according to the bit bitmap and the multicast message comprises: clearing a count of a bit bitmap corresponding to the predetermined frequency;
  • the bit map controls the indicator to perform a synchronized blink of the predetermined frequency.
  • controlling the indicator light to perform the synchronization blinking of the predetermined frequency by using the bit bitmap after the count is cleared comprises: sequentially scanning the bit bitmap; controlling the indication according to a bit of the bit bitmap light.
  • a method for controlling an indicator light includes: determining an indicator light that blinks synchronously according to a predetermined frequency; and transmitting a multicast message to the card, wherein the multicast message is used to indicate the determined The indicator light determined by the card control of the indicator light flashes synchronously.
  • an indicator light control apparatus comprising: a receiving module configured to receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency; and a control module configured to be according to the multicast message Control the indicator to flash synchronously.
  • the control module includes: a determining unit configured to determine a lighting parameter of the indicator light, wherein the lighting parameter includes one or more blinking frequencies of the indicator light; and a converting unit configured to: The blinking frequency of the indicator light in the lighting parameter is converted into a bit bitmap corresponding to the blinking frequency; the control unit is configured to control the indicator light to perform synchronous flashing according to the bit bitmap and the multicast message.
  • a determining unit configured to determine a lighting parameter of the indicator light, wherein the lighting parameter includes one or more blinking frequencies of the indicator light
  • a converting unit configured to: The blinking frequency of the indicator light in the lighting parameter is converted into a bit bitmap corresponding to the blinking frequency; the control unit is configured to control the indicator light to perform synchronous flashing according to the bit bitmap and the multicast message.
  • control unit comprises: a clearing subunit, configured to clear a count of a bit bitmap corresponding to the predetermined frequency; and a control subunit configured to use the bit bitmap control after the count is cleared
  • the indicator light performs synchronous flickering of the predetermined frequency.
  • control subunit comprises: a scanning sub-subunit arranged to sequentially scan the bit bitmap; and a control sub-subunit configured to control the indicator light according to a bit of the bit bitmap.
  • an indicator light control apparatus comprising: a determination module configured to determine an indicator light that flashes in synchronization according to a predetermined frequency; and a sending module configured to send a multicast message to the card, wherein The multicast message is used to indicate that the determined indicator light of the determined indicator of the indicator light is synchronously blinking.
  • the present invention adopts a multicast message that receives the indicator light to be synchronously flashed according to a predetermined frequency; and controls the indicator light to perform synchronous flashing according to the multicast message, which solves the problem that the number of the indicator light increases in the related art.
  • the addition of hardware leads to a complicated structure of the device and a high cost, thereby achieving the effect of reducing the complexity and cost of the device.
  • FIG. 1 is a first flowchart of a method for controlling an indicator light according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for controlling an indicator light according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram 1 of an indicator light control device according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing the structure of a control module 34 in an indicator light control device according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a control unit 46 in an indicator light control device according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of a control subunit 54 in an indicator light control device according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram 2 of an indicator light control device according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for managing blinking of an indicator light according to an embodiment of the present invention.
  • FIG. 9 is a flow chart of setting a lighting device according to an embodiment of the present invention.
  • FIG. 10 is a bit diagram of a flicker frequency of 1 Hz according to an embodiment of the present invention.
  • 11 is a bit bitmap of a flicker frequency of 2 Hz according to an embodiment of the present invention.
  • FIG. 12 is a bit diagram of a flicker frequency of 5 Hz according to an embodiment of the present invention.
  • Figure 13 is a flow chart of a lighting scan according to an embodiment of the present invention.
  • FIG. 14 is a block diagram showing the structure of an indicator-synchronized flicker management apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flowchart 1 of a method for controlling an indicator light according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 Receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency
  • Step S104 Perform synchronization flashing according to the multicast message control indicator.
  • the method for controlling the blinking of the indicator light by using the multicast message for indicating that the indicator light is synchronously blinking according to the predetermined frequency is adopted, thereby realizing the purpose of realizing the synchronous flashing of the indicator light by using the multicast message, and solving the related art
  • additional hardware is required, resulting in a complicated structure and high cost, which in turn reduces the complexity and cost of the device.
  • the board receiving the multicast message can use the bit bitmap control indicator to perform synchronous flashing, including the following steps: Determining a lighting parameter of the indicator light, wherein the lighting parameter comprises one or more blinking frequencies of the indicator light; converting a blinking frequency of the indicator light in the lighting parameter into a bit bitmap corresponding to the blinking frequency; according to the bit bitmap, and
  • the multicast message control indicator flashes synchronously.
  • different flicker frequencies can be set as needed, such as 1 Hz, 2 Hz, 5 Hz.
  • the use of bit maps to control the blinking of the indicator lights eliminates the need for hardware equipment, reduces system complexity, and reduces overall cost.
  • control may be performed in the following manner: a bit bitmap corresponding to the predetermined frequency The count is cleared; the bit map control indicator after the count is cleared is used to perform the synchronous flicker of the predetermined frequency. In this way, the board that receives the multicast message can set the bit map count of the indicator light that it controls to be consistent, and achieve the effect of synchronous flicker.
  • the synchronizing flicker of the predetermined frequency by using the bit bitmap control indicator after the count is cleared includes: sequentially scanning the bit bitmap; and controlling the indicator according to the bit of the bit bitmap.
  • the bit bitmap may be continuously scanned, or the bit bitmap may be scanned periodically.
  • the bit map is in binary form, 0 can be used to turn off the light, and 1 to indicate the lighting.
  • the bit map can also be in other hexadecimal forms, and in other ways, it is turned off and lit.
  • FIG. 2 is a second flowchart of the method for controlling the indicator light according to the embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 determining an indicator light that flashes synchronously according to a predetermined frequency
  • Step S204 Send a multicast message to the board, where the multicast message is used to indicate that the determined indicator of the determined indicator light is synchronously blinking.
  • the method of sending a multicast message to the card to control the blinking of the indicator light is realized, and the purpose of using the multicast message to realize the synchronous flashing of the indicator light is realized.
  • the invention has solved the problem that the additional number of the indicators needs to be added to the related art, which leads to the complicated structure and high cost of the device, thereby achieving the effect of reducing the complexity and cost of the device.
  • an indicator light control device is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 3 is a block diagram showing the structure of an indicator light control device according to an embodiment of the present invention. As shown in FIG. 3, the device includes a receiving module 32 and a control module 34, which will be described below.
  • the receiving module 32 is configured to receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency; the control module 34 is connected to the receiving module 32, and is configured to perform synchronous flashing according to the multicast message control indicator.
  • control module 34 includes a determining unit 42, a converting unit 44, and a control unit 46. 34 for explanation.
  • the determining unit 42 is configured to determine a lighting parameter of the indicator light, wherein the lighting parameter comprises one or more blinking frequencies of the indicator light; the converting unit 44 is connected to the determining unit 42 and configured to set the indicator light in the lighting parameter The flicker frequency is converted into a bit map corresponding to the flicker frequency; the control unit 46 is connected to the above-mentioned converting unit 44, and is arranged to perform synchronous flicker according to the bit bitmap and the multicast message control indicator.
  • control unit 46 in an indicator light control device according to an embodiment of the present invention. As shown in FIG. 5, the control unit 46 includes a clearing subunit 52 and a control subunit 54, and the control unit 46 is performed below. Description.
  • the clearing subunit 52 is arranged to clear the count of the bit bitmap corresponding to the predetermined frequency; the control subunit 54 is connected to the clearing subunit 52, and is configured to use the bit map control indicator after the count is cleared to make a reservation.
  • the sync of the frequency flashes.
  • control subunit 54 is a block diagram showing the structure of the control subunit 54 in the indicator light control device according to the embodiment of the present invention. As shown in FIG. 6, the control subunit 54 includes a scan sub-sub-element 62 and a control sub-sub-unit 64. The control subunit 54 will be described.
  • the scanning sub-sub-unit 62 is arranged to sequentially scan the bit bitmap; the control sub-sub-unit 64 is connected to the scanning sub-sub-unit 62, and is arranged to control the indicator according to the bit of the bit bitmap.
  • FIG. 7 is a block diagram showing the structure of an indicator light control apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes a determination module 72 and a transmission module 74, which will be described below.
  • the determining module 72 is configured to determine an indicator light that flashes synchronously according to a predetermined frequency; the sending module 74 is connected to the determining module 72, and is configured to send a multicast message to the board, wherein the multicast message is used to indicate the determined indicator light
  • the board control determines the indicator light to flash synchronously.
  • a method for synchronously blinking the indicator light is provided, and the method can be utilized limited.
  • the bit is used to control the blinking frequency of multiple indicators and achieve the effect of synchronous flicker.
  • the lighting parameters (which can include the indicator number, color, and flashing frequency); secondly, convert the blinking frequency of the indicator to the corresponding bit bitmap to be written to the shared memory; and periodically scan the bits of each indicator in the shared memory.
  • the indicator light is turned on or off in real time to change the blinking frequency.
  • the board of the central control point periodically issues a multicast message, and the board that receives the message sets the bit map and the count of the indicators to be the same, and achieves synchronous flashing. effect. Can be achieved through the following technical solutions:
  • the bit bitmap is scanned periodically at intervals of t B .
  • the indicator light is turned on or off according to the value of the current bit, so that the indicator light flashes according to the set frequency.
  • the multicast message is periodically issued, and the time interval can be set to t>N*t B .
  • the bit map of the indicator is set to be the same to achieve synchronous flashing.
  • the board as the central control point periodically issues multicast messages, and the board that receives the message sets the bit map count of the indicator to be the same. Each board is used to control the blinking frequency of the indicator light through the selected bit map.
  • FIG. 8 is a flowchart of a method for managing flashing of an indicator light according to an embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
  • Step S802 setting a lighting parameter, including a number, a color, and a blinking frequency of the indicator light.
  • This setup command can come from the program used to monitor a device in the board or it can be a manual command input.
  • Step S804 converting the flicker frequency into a bit bitmap and writing to the shared memory.
  • the unit blinking period length N T/t B .
  • Each bit can be turned off with 0, and 1 can be lit.
  • different flicker frequencies different bit sequence sequences are arranged in the N-bit bitmap, and bit maps corresponding to different flicker frequencies are obtained. When you need to change the flicker frequency, just modify the bit map in the shared memory.
  • Step S806 the timing scan indicator bit bitmap is turned on or off in real time according to the distribution of 0, 1 in the bit bitmap.
  • step S808 it is judged whether the card initialization is completed, and whether the synchronization lighting interval t has arrived, and if yes, the process proceeds to step S810.
  • step S810 the indicator bit bitmap and the count thereof (that is, the bit position of the current time bit bitmap) are set to be the same, and the indicator light flashes synchronously.
  • bit bitmap (corresponding to a certain blinking frequency) and each are required. The bits scanned at the same time are consistent.
  • the method provided by the embodiment of the invention can be divided into two parts: a lighting setting process and a lighting scanning process.
  • FIG. 9 is a flowchart of setting a lighting device according to an embodiment of the present invention. As shown in FIG. 9, the flow includes the following steps:
  • Step S902 determining a correspondence relationship between the flicker frequency and the bit bitmap.
  • the duration of each bit t B ⁇ 1/24s.
  • the unit blinking period T is set to 1 s
  • the lighting synchronization period t is set to 2 s
  • 0 is used to indicate off, and 1 is illuminated.
  • the bit bitmap can be obtained as shown in FIG. 10, and FIG.
  • FIG. 10 is a flicker frequency of 1 Hz according to an embodiment of the present invention.
  • Bit bitmap Similarly, according to different flicker frequencies, different bit bitmaps are arranged to obtain 2 Hz, and the bit map corresponding to the 5 Hz flicker is respectively shown in FIG. 11 and FIG. 12, wherein FIG. 11 is a flicker frequency according to an embodiment of the present invention.
  • FIG. 12 is a bit map at a blinking frequency of 5 Hz according to an embodiment of the present invention.
  • bit maps corresponding to 1 Hz, 2 Hz, and 5 Hz are represented by hexadecimal numbers as 0x1FFE000FFF, 0xFC07E07E03F, 0x6318C6318C63, respectively.
  • step S904 the shared memory is turned on.
  • the shared memory may be created by the indicator management thread in step S1302 in FIG.
  • step S906 the lighting parameter is written into the shared memory mentioned in step S904.
  • the incoming lighting parameters include the indicator number, color, and blinking frequency.
  • the corresponding record is first found according to the indicator number, and the corresponding bit bitmap is written into the record according to the corresponding relationship between the blinking frequency determined by step S902 and the indicator bitmap.
  • FIG. 13 is a flow chart of a lighting scan according to an embodiment of the present invention. As shown in FIG. 13, the flow includes the following steps:
  • a shared memory is created.
  • a light management thread resides on each board that creates a piece of shared memory.
  • the shared memory holds a record for each indicator, including the indicator number, color, bit map, and the bits scanned at a previous time. As the number of indicators increases, it is convenient to add a record to the shared memory. Other threads or processes can change the blinking frequency of the indicator by modifying the bit map in the shared memory.
  • Step S1304 setting an indicator bitmap scanning timer.
  • the indicator management thread can scan the bit map of all indicators every 40ms.
  • Step S1306 adding a synchronous lighting multicast group, for receiving a synchronous lighting multicast message of 2s at a time.
  • Step S1308 the message is received on the thread.
  • step S1310 it is judged whether the received message is a scan bitmap timer message, if yes, the process goes to step S1312, and if no, the process goes to step S1318.
  • Step S1312 sequentially scan the bit bitmap of each indicator in the shared memory, compare the current time bit with the previous time bit, and if not, operate the indicator light. In this case, if the current time bit is 1, the indicator light is lit, and if it is 0, the indicator light is turned off, and the current time bit is recorded, so that it can be used in the next comparison, and then the bit count is incremented by one. .
  • step S1314 it is judged whether the current board has been initialized and is located at the central control point, and the count of the bitmap reaches 50 (that is, the indicator synchronization interval of 2s is up), if yes, the process goes to step S1316, if no, the step is entered. S1308.
  • whether to issue a synchronous lighting message with an interval of 2 seconds is not based on a 2s timer, but is determined by a bitmap count of 50, mainly considering that if a timer for separately lighting is set, when located at the central control point When the position of the board changes, the synchronization lighting timer needs to be reset on the new board, which is complicated.
  • step S1316 a synchronous lighting multicast message is issued.
  • step S1318 it is judged whether the received message is a synchronous lighting message, and if so, the process proceeds to step S1320, and if no, the process proceeds to step S1308.
  • step S1320 it is judged whether the current board is initialized or not. If yes, the process goes to step S1322, and if no, the process goes to step S1308.
  • step S1322 the blinking frequency of the current board indicator is set to 1 Hz, that is, the bitmap of the indicator in the shared memory is modified to be a bitmap corresponding to 1 Hz, and the bit bitmap count is cleared. In this way, all the boards that receive the synchronous lighting message, the bit map and its count are consistent, and the effect of synchronous flicker is achieved.
  • FIG. 14 is a structural block diagram of an indicator flash synchronization management apparatus according to an embodiment of the present invention. As shown in FIG. 14, the apparatus includes a bit bitmap unit 142 (same as the above-described conversion unit 44) and a bitmap scanning unit 144 (same as above). The scanning sub-unit 62) and the lighting setting unit 146 will be described below.
  • the bit bitmap unit 142 is configured to convert the set indicator blinking frequency into a corresponding bit bitmap.
  • the human eye vision residual time is 1/24 s, so the time t B for which each bit lasts is set to be less than 1/24 s.
  • each bit is extinguished with 0 and 1 is illuminated.
  • different bit sequence sequences are arranged in the N-bit bitmap, and the indicator bit bitmaps corresponding to different flicker frequencies are obtained.
  • the bitmap scanning unit 144 is configured to periodically scan the indicator bitmap in the shared memory, and turn on or off the indicator.
  • Timing of the indicator light in the shared memory is periodically scanned at the interval t B of each bit duration, and the scanned bit at the previous moment and the bit scanned at the current time are compared, and if the two are different, if the current bit When the bit is 0, the indicator is off, and when it is 1, the indicator is lit.
  • the card that receives the synchronization lighting message determines whether it is initialized successfully. If it succeeds, the blinking frequency is set to be consistent, and the indicator bit bitmap count is cleared.
  • the lighting setting unit 146 is configured to modify the bitmap of the indicator light in the shared memory according to the set blinking frequency.
  • a piece of shared memory is created in the board to hold the status of the indicator.
  • a thread or process needs to operate the indicator light, it only needs to modify the indicator bit bitmap in the shared memory according to the incoming blinking frequency.
  • the method and device for managing the blinking of the indicator light of the present invention flashes the indicator light at a certain set frequency by periodically scanning the bit map of the indicator light.
  • the multicast message is sent periodically by the card located at the central control point, and each board that receives the message sets the bit bitmap and its count to be consistent, achieving the effect of synchronous flicker.
  • the method and device for synchronous flashing of the indicator light provided by the present invention are simple and easy, and the bit map is used to control the blinking of multiple indicator lights, and the flicker frequency can be adjusted.
  • the indicator blinks synchronously.
  • the indicator bit bitmap is saved in shared memory and can be used for multi-threaded operation indicators. When the number of indicators increases, no additional hardware is required, reducing cost and system complexity.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices.
  • they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from this
  • the steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • a multicast message that receives an indicator light to be synchronously blinked according to a predetermined frequency is used; and the indicator light is controlled to perform synchronous flashing according to the multicast message, which solves the problem in the related art.
  • the increase in the number of indicators requires additional hardware, resulting in a complicated structure and high cost, which in turn reduces the complexity and cost of the device.

Abstract

An indicator light control method and apparatus. The method comprises: receiving a multicast message of instructing indicator lights to synchronously flash according to a predetermined frequency (S102); and controlling the indicator lights to synchronously flash according to the multicast message (S104). By means of the method, the problems existing in the relevant art that a device structure is complex and the cost is high because it is necessary to additionally add hardware as the number of indicator lights increases are solved, and the effect of reducing the device complexity and cost is further achieved.

Description

指示灯控制方法及装置Indicator light control method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种指示灯控制方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for controlling an indicator light.
背景技术Background technique
各类终端的网络设备,比如各种集中式或分布式的多板卡设备,一般都由多块板卡协同处理来提高设备整体处理能力。而这些板卡往往采用发光二极管(Light Emitting Diode,简称为LED)作为指示灯,用来指示设备的运行状态。通过不同指示灯的闪烁频率、颜色等,可以指示设备不同的运行状态,以便及时和直观的监控设备。Network devices of various types of terminals, such as various centralized or distributed multi-board devices, are generally co-processed by multiple boards to improve the overall processing capacity of the device. These boards often use Light Emitting Diodes (LEDs) as indicators to indicate the operating status of the device. Different flashing frequencies, colors, etc. of different indicators can indicate different operating states of the device, so that the device can be monitored in a timely and intuitive manner.
目前控制指示灯按不同频率闪烁的方法,在硬件上主要是采用分频器来实现的。采用分频器调节分频系数来控制指示灯信号高低电平的周期,若周期变长,则指示灯闪烁频率变慢,反之则闪烁频率变快。对于采用分频器来调节指示灯闪烁频率的设备来说,随着板卡增加,指示灯数目增加,分频器数量也随之增加,硬件成本也大幅增加。此外对于指示灯同步闪烁控制,目前主要采用多路开关控制多个指示灯的方式,需要增加专门的硬件电路,且随着板卡增加,接线越来越复杂,给使用者带来极大的不便。At present, the control indicator flashes at different frequencies, and the hardware is mainly implemented by a frequency divider. The frequency divider is used to adjust the frequency division coefficient to control the period of the indicator signal high and low level. If the period becomes longer, the indicator blinking frequency becomes slower, otherwise the blinking frequency becomes faster. For devices that use a crossover to adjust the blinking frequency of the indicator, as the number of boards increases, the number of indicators increases, the number of dividers increases, and the hardware cost increases. In addition, for the synchronous flashing control of the indicator light, at present, the multi-channel switch is mainly used to control multiple indicator lights, and special hardware circuits need to be added, and as the board increases, the wiring becomes more and more complicated, which brings great to the user. inconvenient.
针对相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题,目前尚未提出有效的解决方案。In view of the increase in the number of indicators in the related art, additional hardware is required, resulting in a complicated structure and high cost, and no effective solution has been proposed yet.
发明内容Summary of the invention
本发明提供了一种指示灯控制方法及装置,以至少解决相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题。The present invention provides a method and an apparatus for controlling an indicator light to at least solve the problem that the hardware of the related art needs to be additionally increased with the increase of the number of indicators, resulting in a complicated structure and high cost.
根据本发明的一个实施例,提供了一种指示灯控制方法,包括:接收指示指示灯按照预定频率同步闪烁的组播消息;根据所述组播消息控制所述指示灯进行同步闪烁。According to an embodiment of the present invention, a method for controlling an indicator light includes: receiving a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency; and controlling the indicator light to perform synchronous blinking according to the multicast message.
优选地,根据所述组播消息控制所述指示灯进行同步闪烁包括:确定所述指示灯的点灯参数,其中,所述点灯参数包括所述指示灯的一个或多个闪烁频率;将所述点灯参数中的指示灯的闪烁频率转换为与所述闪烁频率对应的比特位图;依据所述比特位图,以及所述组播消息控制所述指示灯进行同步闪烁。 Preferably, controlling the indicator light to perform the synchronization blinking according to the multicast message comprises: determining a lighting parameter of the indicator light, wherein the lighting parameter comprises one or more blinking frequencies of the indicator light; The blinking frequency of the indicator light in the lighting parameter is converted into a bit bitmap corresponding to the blinking frequency; according to the bit bitmap, and the multicast message, the indicator light is controlled to perform synchronous flashing.
优选地,依据所述比特位图,以及所述组播消息控制所述指示灯进行同步闪烁包括:将与所述预定频率对应的比特位图的计数清零;利用计数清零后的所述比特位图控制所述指示灯进行所述预定频率的同步闪烁。Preferably, controlling the indicator light to perform synchronous blinking according to the bit bitmap and the multicast message comprises: clearing a count of a bit bitmap corresponding to the predetermined frequency; The bit map controls the indicator to perform a synchronized blink of the predetermined frequency.
优选地,利用计数清零后的所述比特位图控制所述指示灯进行所述预定频率的同步闪烁包括:依次扫描所述比特位图;按照所述比特位图的比特位控制所述指示灯。Preferably, controlling the indicator light to perform the synchronization blinking of the predetermined frequency by using the bit bitmap after the count is cleared comprises: sequentially scanning the bit bitmap; controlling the indication according to a bit of the bit bitmap light.
根据本发明的另一实施例,提供了一种指示灯控制方法,包括:确定按照预定频率同步闪烁的指示灯;向板卡发送组播消息,其中,所述组播消息用于指示确定的所述指示灯的板卡控制确定的所述指示灯进行同步闪烁。According to another embodiment of the present invention, a method for controlling an indicator light includes: determining an indicator light that blinks synchronously according to a predetermined frequency; and transmitting a multicast message to the card, wherein the multicast message is used to indicate the determined The indicator light determined by the card control of the indicator light flashes synchronously.
根据本发明的另一实施例,提供了一种指示灯控制装置,包括:接收模块,设置为接收指示指示灯按照预定频率同步闪烁的组播消息;控制模块,设置为根据所述组播消息控制所述指示灯进行同步闪烁。According to another embodiment of the present invention, there is provided an indicator light control apparatus, comprising: a receiving module configured to receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency; and a control module configured to be according to the multicast message Control the indicator to flash synchronously.
优选地,所述控制模块包括:确定单元,设置为确定所述指示灯的点灯参数,其中,所述点灯参数包括所述指示灯的一个或多个闪烁频率;转换单元,设置为将所述点灯参数中的指示灯的闪烁频率转换为与所述闪烁频率对应的比特位图;控制单元,设置为依据所述比特位图,以及所述组播消息控制所述指示灯进行同步闪烁。Preferably, the control module includes: a determining unit configured to determine a lighting parameter of the indicator light, wherein the lighting parameter includes one or more blinking frequencies of the indicator light; and a converting unit configured to: The blinking frequency of the indicator light in the lighting parameter is converted into a bit bitmap corresponding to the blinking frequency; the control unit is configured to control the indicator light to perform synchronous flashing according to the bit bitmap and the multicast message.
优选地,所述控制单元包括:清除子单元,设置为将与所述预定频率对应的比特位图的计数清零;控制子单元,设置为利用计数清零后的所述比特位图控制所述指示灯进行所述预定频率的同步闪烁。Preferably, the control unit comprises: a clearing subunit, configured to clear a count of a bit bitmap corresponding to the predetermined frequency; and a control subunit configured to use the bit bitmap control after the count is cleared The indicator light performs synchronous flickering of the predetermined frequency.
优选地,所述控制子单元包括:扫描次子单元,设置为依次扫描所述比特位图;控制次子单元,设置为按照所述比特位图的比特位控制所述指示灯。Preferably, the control subunit comprises: a scanning sub-subunit arranged to sequentially scan the bit bitmap; and a control sub-subunit configured to control the indicator light according to a bit of the bit bitmap.
根据本发明的另一实施例,提供了一种指示灯控制装置,包括:确定模块,设置为确定按照预定频率同步闪烁的指示灯;发送模块,设置为向板卡发送组播消息,其中,所述组播消息用于指示确定的所述指示灯的板卡控制确定的所述指示灯进行同步闪烁。According to another embodiment of the present invention, there is provided an indicator light control apparatus, comprising: a determination module configured to determine an indicator light that flashes in synchronization according to a predetermined frequency; and a sending module configured to send a multicast message to the card, wherein The multicast message is used to indicate that the determined indicator light of the determined indicator of the indicator light is synchronously blinking.
通过本发明,采用接收指示指示灯按照预定频率同步闪烁的组播消息;根据所述组播消息控制所述指示灯进行同步闪烁,解决了相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题,进而达到了降低设备复杂度和成本的效果。 The present invention adopts a multicast message that receives the indicator light to be synchronously flashed according to a predetermined frequency; and controls the indicator light to perform synchronous flashing according to the multicast message, which solves the problem that the number of the indicator light increases in the related art. The addition of hardware leads to a complicated structure of the device and a high cost, thereby achieving the effect of reducing the complexity and cost of the device.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的指示灯控制方法的流程图一;1 is a first flowchart of a method for controlling an indicator light according to an embodiment of the present invention;
图2是根据本发明实施例的指示灯控制方法的流程图二;2 is a second flowchart of a method for controlling an indicator light according to an embodiment of the present invention;
图3是根据本发明实施例的指示灯控制装置的结构框图一;3 is a structural block diagram 1 of an indicator light control device according to an embodiment of the present invention;
图4是根据本发明实施例的指示灯控制装置中控制模块34的结构框图;4 is a block diagram showing the structure of a control module 34 in an indicator light control device according to an embodiment of the present invention;
图5是根据本发明实施例的指示灯控制装置中控制单元46的结构框图;FIG. 5 is a structural block diagram of a control unit 46 in an indicator light control device according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的指示灯控制装置中控制子单元54的结构框图;6 is a block diagram showing the structure of a control subunit 54 in an indicator light control device according to an embodiment of the present invention;
图7是根据本发明实施例的指示灯控制装置的结构框图二;7 is a structural block diagram 2 of an indicator light control device according to an embodiment of the present invention;
图8是根据本发明实施例的指示灯同步闪烁管理方法流程图;FIG. 8 is a flowchart of a method for managing blinking of an indicator light according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的点灯设置流程图;9 is a flow chart of setting a lighting device according to an embodiment of the present invention;
图10是根据本发明实施例的闪烁频率为1Hz时的比特位图;FIG. 10 is a bit diagram of a flicker frequency of 1 Hz according to an embodiment of the present invention; FIG.
图11是根据本发明实施例的闪烁频率为2Hz时的比特位图;11 is a bit bitmap of a flicker frequency of 2 Hz according to an embodiment of the present invention;
图12是根据本发明实施例的闪烁频率为5Hz时的比特位图;FIG. 12 is a bit diagram of a flicker frequency of 5 Hz according to an embodiment of the present invention; FIG.
图13是根据本发明实施例的点灯扫描流程图;Figure 13 is a flow chart of a lighting scan according to an embodiment of the present invention;
图14是根据本发明实施例的指示灯同步闪烁管理装置的结构框图。FIG. 14 is a block diagram showing the structure of an indicator-synchronized flicker management apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种指示灯控制方法,图1是根据本发明实施例的指示灯控制方法的流程图一,如图1所示,该流程包括如下步骤: In the embodiment, a method for controlling an indicator light is provided. FIG. 1 is a flowchart 1 of a method for controlling an indicator light according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,接收指示指示灯按照预定频率同步闪烁的组播消息;Step S102: Receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency;
步骤S104,根据组播消息控制指示灯进行同步闪烁。Step S104: Perform synchronization flashing according to the multicast message control indicator.
通过上述步骤,采用接收用于指示指示灯按照预定频率同步闪烁的组播消息来控制指示灯同步闪烁的方法,实现了利用组播消息来实现指示灯同步闪烁的目的,解决了相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题,进而达到了降低设备复杂度和成本的效果。Through the foregoing steps, the method for controlling the blinking of the indicator light by using the multicast message for indicating that the indicator light is synchronously blinking according to the predetermined frequency is adopted, thereby realizing the purpose of realizing the synchronous flashing of the indicator light by using the multicast message, and solving the related art As the number of indicators increases, additional hardware is required, resulting in a complicated structure and high cost, which in turn reduces the complexity and cost of the device.
根据组播消息控制指示灯进行同步闪烁的方法可以有多种,在一个可选的实施例中可以由接收到组播消息的板卡利用比特位图控制指示灯进行同步闪烁,包括如下步骤:确定指示灯的点灯参数,其中,该点灯参数包括指示灯的一个或多个闪烁频率;将点灯参数中的指示灯的闪烁频率转换为与闪烁频率对应的比特位图;依据比特位图,以及组播消息控制指示灯进行同步闪烁。其中,可以根据需要设置不同的闪烁频率,例如1Hz、2Hz、5Hz。并且,利用比特位图来控制指示灯的闪烁可以无需增加硬件设备,减低系统复杂度,降低整体成本。There are a plurality of methods for performing the synchronous flashing according to the multicast message control indicator. In an optional embodiment, the board receiving the multicast message can use the bit bitmap control indicator to perform synchronous flashing, including the following steps: Determining a lighting parameter of the indicator light, wherein the lighting parameter comprises one or more blinking frequencies of the indicator light; converting a blinking frequency of the indicator light in the lighting parameter into a bit bitmap corresponding to the blinking frequency; according to the bit bitmap, and The multicast message control indicator flashes synchronously. Among them, different flicker frequencies can be set as needed, such as 1 Hz, 2 Hz, 5 Hz. Moreover, the use of bit maps to control the blinking of the indicator lights eliminates the need for hardware equipment, reduces system complexity, and reduces overall cost.
在依据比特位图和组播消息控制指示灯进行同步闪烁时,可以有多种控制方式,在一个可选的实施例中,可以采用如下的方式进行控制:将与预定频率对应的比特位图的计数清零;利用计数清零后的比特位图控制指示灯进行预定频率的同步闪烁。这样收到组播消息的板卡可以将其控制的指示灯的比特位图计数置为一致,达到同步闪烁的效果。In the case of synchronous blinking according to the bit bitmap and the multicast message control indicator, there may be multiple control modes. In an optional embodiment, the control may be performed in the following manner: a bit bitmap corresponding to the predetermined frequency The count is cleared; the bit map control indicator after the count is cleared is used to perform the synchronous flicker of the predetermined frequency. In this way, the board that receives the multicast message can set the bit map count of the indicator light that it controls to be consistent, and achieve the effect of synchronous flicker.
其中,利用计数清零后的比特位图控制指示灯进行预定频率的同步闪烁包括:依次扫描比特位图;按照比特位图的比特位控制指示灯。其中,在进行比特位图扫描时,可以连续扫描比特位图,也可以定时扫描比特位图。当比特位图为二进制形式时,可以用0表示熄灯,用1表示点灯。当然比特位图也可以采用其他进制形式,并用其他的方式表示熄灯和点灯。The synchronizing flicker of the predetermined frequency by using the bit bitmap control indicator after the count is cleared includes: sequentially scanning the bit bitmap; and controlling the indicator according to the bit of the bit bitmap. Wherein, when performing bit bitmap scanning, the bit bitmap may be continuously scanned, or the bit bitmap may be scanned periodically. When the bit map is in binary form, 0 can be used to turn off the light, and 1 to indicate the lighting. Of course, the bit map can also be in other hexadecimal forms, and in other ways, it is turned off and lit.
在本实施例中还提供了一种指示灯控制方法,图2是根据本发明实施例的指示灯控制方法的流程图二,如图2所示,该流程包括如下步骤:In the embodiment, a method for controlling the indicator light is provided. FIG. 2 is a second flowchart of the method for controlling the indicator light according to the embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,确定按照预定频率同步闪烁的指示灯;Step S202, determining an indicator light that flashes synchronously according to a predetermined frequency;
步骤S204,向板卡发送组播消息,其中,该组播消息用于指示确定的指示灯的板卡控制确定的指示灯进行同步闪烁。 Step S204: Send a multicast message to the board, where the multicast message is used to indicate that the determined indicator of the determined indicator light is synchronously blinking.
通过上述步骤,采用在确定了需要进行同步闪烁的指示灯之后,向板卡发送组播消息的方式来控制指示灯同步闪烁的方法,实现了利用组播消息来实现指示灯同步闪烁的目的,解决了相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题,进而达到了降低设备复杂度和成本的效果。Through the above steps, after the indicator that needs to be synchronized and blinking is determined, the method of sending a multicast message to the card to control the blinking of the indicator light is realized, and the purpose of using the multicast message to realize the synchronous flashing of the indicator light is realized. The invention has solved the problem that the additional number of the indicators needs to be added to the related art, which leads to the complicated structure and high cost of the device, thereby achieving the effect of reducing the complexity and cost of the device.
在本实施例中还提供了一种指示灯控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, an indicator light control device is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的指示灯控制装置的结构框图一,如图3所示,该装置包括接收模块32和控制模块34,下面对该装置进行说明。3 is a block diagram showing the structure of an indicator light control device according to an embodiment of the present invention. As shown in FIG. 3, the device includes a receiving module 32 and a control module 34, which will be described below.
接收模块32,设置为接收指示指示灯按照预定频率同步闪烁的组播消息;控制模块34,连接至上述接收模块32,设置为根据组播消息控制指示灯进行同步闪烁。The receiving module 32 is configured to receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency; the control module 34 is connected to the receiving module 32, and is configured to perform synchronous flashing according to the multicast message control indicator.
图4是根据本发明实施例的指示灯控制装置中控制模块34的结构框图,如图4所示,该控制模块34包括确定单元42、转换单元44和控制单元46,下面对该控制模块34进行说明。4 is a block diagram showing the structure of a control module 34 in an indicator light control device according to an embodiment of the present invention. As shown in FIG. 4, the control module 34 includes a determining unit 42, a converting unit 44, and a control unit 46. 34 for explanation.
确定单元42,设置为确定指示灯的点灯参数,其中,该点灯参数包括指示灯的一个或多个闪烁频率;转换单元44,连接至上述确定单元42,设置为将点灯参数中的指示灯的闪烁频率转换为与闪烁频率对应的比特位图;控制单元46,连接至上述转换单元44,设置为依据比特位图,以及组播消息控制指示灯进行同步闪烁。The determining unit 42 is configured to determine a lighting parameter of the indicator light, wherein the lighting parameter comprises one or more blinking frequencies of the indicator light; the converting unit 44 is connected to the determining unit 42 and configured to set the indicator light in the lighting parameter The flicker frequency is converted into a bit map corresponding to the flicker frequency; the control unit 46 is connected to the above-mentioned converting unit 44, and is arranged to perform synchronous flicker according to the bit bitmap and the multicast message control indicator.
图5是根据本发明实施例的指示灯控制装置中控制单元46的结构框图,如图5所示,该控制单元46包括清除子单元52和控制子单元54,下面对该控制单元46进行说明。5 is a block diagram showing the structure of a control unit 46 in an indicator light control device according to an embodiment of the present invention. As shown in FIG. 5, the control unit 46 includes a clearing subunit 52 and a control subunit 54, and the control unit 46 is performed below. Description.
清除子单元52,设置为将与预定频率对应的比特位图的计数清零;控制子单元54,连接至上述清除子单元52,设置为利用计数清零后的比特位图控制指示灯进行预定频率的同步闪烁。The clearing subunit 52 is arranged to clear the count of the bit bitmap corresponding to the predetermined frequency; the control subunit 54 is connected to the clearing subunit 52, and is configured to use the bit map control indicator after the count is cleared to make a reservation. The sync of the frequency flashes.
图6是根据本发明实施例的指示灯控制装置中控制子单元54的结构框图,如图6所示,该控制子单元54包括扫描次子单元62和控制次子单元64,下面对该控制子单元54进行说明。 6 is a block diagram showing the structure of the control subunit 54 in the indicator light control device according to the embodiment of the present invention. As shown in FIG. 6, the control subunit 54 includes a scan sub-sub-element 62 and a control sub-sub-unit 64. The control subunit 54 will be described.
扫描次子单元62,设置为依次扫描比特位图;控制次子单元64,连接至上述扫描次子单元62,设置为按照比特位图的比特位控制指示灯。The scanning sub-sub-unit 62 is arranged to sequentially scan the bit bitmap; the control sub-sub-unit 64 is connected to the scanning sub-sub-unit 62, and is arranged to control the indicator according to the bit of the bit bitmap.
图7是根据本发明实施例的指示灯控制装置的结构框图二,如图7所示,该装置包括确定模块72和发送模块74,下面对该装置进行说明。FIG. 7 is a block diagram showing the structure of an indicator light control apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes a determination module 72 and a transmission module 74, which will be described below.
确定模块72,设置为确定按照预定频率同步闪烁的指示灯;发送模块74,连接至上述确定模块72,设置为向板卡发送组播消息,其中,该组播消息用于指示确定的指示灯的板卡控制确定的指示灯进行同步闪烁。The determining module 72 is configured to determine an indicator light that flashes synchronously according to a predetermined frequency; the sending module 74 is connected to the determining module 72, and is configured to send a multicast message to the board, wherein the multicast message is used to indicate the determined indicator light The board control determines the indicator light to flash synchronously.
针对相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题,本发明实施例中还提供了一种指示灯同步闪烁管理方法,该方法可利用有限的比特位来控制多个指示灯闪烁频率,并能达到同步闪烁的效果,其主要流程如下:In the related art, as the number of the indicators increases, an additional hardware is required, which results in a complicated structure of the device and a high cost. In the embodiment of the present invention, a method for synchronously blinking the indicator light is provided, and the method can be utilized limited. The bit is used to control the blinking frequency of multiple indicators and achieve the effect of synchronous flicker. The main process is as follows:
首先设置点灯参数(可以包括指示灯编号、颜色和闪烁频率);其次将指示灯的闪烁频率转换为对应的比特位图写到共享内存中;再次定时扫描共享内存中每个指示灯的比特位图,实时点亮或熄灭指示灯,从而改变闪烁频率。最后当某些指示灯需要同步闪烁时,由中心控制点的板卡定时发布组播消息,收到该消息的板卡将该些指示灯的比特位图及计数置为相同,达到同步闪烁的效果。可以通过如下技术方案实现:First set the lighting parameters (which can include the indicator number, color, and flashing frequency); secondly, convert the blinking frequency of the indicator to the corresponding bit bitmap to be written to the shared memory; and periodically scan the bits of each indicator in the shared memory. Figure, the indicator light is turned on or off in real time to change the blinking frequency. Finally, when some indicators need to be flashed synchronously, the board of the central control point periodically issues a multicast message, and the board that receives the message sets the bit map and the count of the indicators to be the same, and achieves synchronous flashing. effect. Can be achieved through the following technical solutions:
可以设定每个比特位持续的时间tB<=1/24s,单位闪烁周期T>tB,且T能整除tB,则单位闪烁周期长度N=T/tB。可以设置比特位为0时表示灭灯,为1时表示亮灯。根据设定的闪烁频率,在N个比特位里,排列出不同的二进制序列。随着二进制序列中0,1变化次数的增多,闪烁频率会越来越快。It is possible to set the duration t B <=1/24s for each bit, the unit blinking period T>t B , and T can divide t B , and the unit flashing period length N=T/t B . It can be set to 0 to indicate that the light is off, and when it is 1, it is to be lit. According to the set flicker frequency, different binary sequences are arranged in N bits. As the number of 0,1 changes in the binary sequence increases, the blinking frequency will become faster and faster.
以tB为间隔,定时循环扫描比特位图。当发现当前比特位与上一时刻扫描的比特位不一致时,根据当前比特位的值决定点亮还是熄灭指示灯,使指示灯按照设定的频率进行闪烁。The bit bitmap is scanned periodically at intervals of t B . When it is found that the current bit does not match the bit scanned at the previous time, the indicator light is turned on or off according to the value of the current bit, so that the indicator light flashes according to the set frequency.
当作为中心控制点的板卡自身初始化成功时,定时发布组播消息,可以将时间间隔设置为t>N*tB。收到该组播消息的板卡,当自身也初始化成功时,将指示灯的比特位图计数置为相同,以实现同步闪烁。When the card itself as the central control point is initialized successfully, the multicast message is periodically issued, and the time interval can be set to t>N*t B . When the board that receives the multicast message is successfully initialized, the bit map of the indicator is set to be the same to achieve synchronous flashing.
创建一片共享内存,其中记录着板卡上所有指示灯的编号、颜色、比特位图(可用十六进制数来表示)、前一次扫描的指示灯比特位。 Create a piece of shared memory that records the number, color, and bit map of all the lights on the board (indicated by hexadecimal numbers), and the indicator bits of the previous scan.
作为中心控制点的板卡定时发布组播消息,收到该消息的板卡将指示灯的比特位图计数置为相同。每个板卡用于通过选择的比特位图,控制指示灯的闪烁频率。The board as the central control point periodically issues multicast messages, and the board that receives the message sets the bit map count of the indicator to be the same. Each board is used to control the blinking frequency of the indicator light through the selected bit map.
在上述实施例中的指示灯同步闪烁管理方法中,只使用一个定时器,利用比特位图来控制多个指示灯闪烁,可调节闪烁频率,能实现指示灯同步闪烁,且随着指示灯数量的增加不需要额外增加硬件,降低了成本和系统复杂度。In the method for managing the blinking of the indicator light in the above embodiment, only one timer is used, and the bit map is used to control the blinking of multiple indicators, the flicker frequency can be adjusted, and the indicator flashes synchronously, and the number of indicators is The increase does not require additional hardware, reducing cost and system complexity.
图8是根据本发明实施例的指示灯同步闪烁管理方法流程图,如图8所示,该流程包括如下步骤:FIG. 8 is a flowchart of a method for managing flashing of an indicator light according to an embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
步骤S802,设置点灯参数,包括指示灯的编号、颜色和闪烁频率。该设置命令可以来自于板卡中用来监控某个器件的程序,也可以是手动的命令输入。Step S802, setting a lighting parameter, including a number, a color, and a blinking frequency of the indicator light. This setup command can come from the program used to monitor a device in the board or it can be a manual command input.
步骤S804,将闪烁频率转换为比特位图写入共享内存。根据摄影学原理,由人眼的闪烁频率来判断,每秒超过24个画面后,人眼感觉不到画面的区别,即要求tB<=1/24s。这样保证在出现误码时不被人眼察觉。确定每个比特位所持续的时间tB和单位闪烁周期T之后,则单位闪烁周期长度N=T/tB。每个比特位可以用0表示灭灯,1表示亮灯,当然也可以有其他的表现形式,例如用0表示亮灯,用1表示灭灯,在该实施例中以用0表示灭灯,1表示亮灯进行说明。根据不同的闪烁频率,在N位的比特位图中排列成不同的比特位序列,得到不同闪烁频率对应的比特位图。当需要改变闪烁频率时,只要修改共享内存中的比特位图即可。Step S804, converting the flicker frequency into a bit bitmap and writing to the shared memory. According to the principle of photography, it is judged by the blinking frequency of the human eye that after more than 24 pictures per second, the human eye does not feel the difference of the picture, that is, t B <=1/24s is required. This ensures that it is not perceived by the human eye in the event of a bit error. After determining the time t B for each bit and the unit blinking period T, the unit blinking period length N=T/t B . Each bit can be turned off with 0, and 1 can be lit. Of course, there can be other forms of expression, such as 0 for lighting, 1 for lighting, and 0 for extinguishing in this embodiment. 1 indicates lighting to explain. According to different flicker frequencies, different bit sequence sequences are arranged in the N-bit bitmap, and bit maps corresponding to different flicker frequencies are obtained. When you need to change the flicker frequency, just modify the bit map in the shared memory.
步骤S806,定时扫描指示灯比特位图,根据比特位图中0,1的分布情况实时点亮或点灭指示灯。Step S806, the timing scan indicator bit bitmap is turned on or off in real time according to the distribution of 0, 1 in the bit bitmap.
步骤S808,判断板卡是否初始化完成,并且同步点灯间隔t是否到了,如果是,进入步骤S810。In step S808, it is judged whether the card initialization is completed, and whether the synchronization lighting interval t has arrived, and if yes, the process proceeds to step S810.
步骤S810,将指示灯比特位图及其计数(即当前时刻比特位图处于哪一位)置为相同,即可实现指示灯同步闪烁。In step S810, the indicator bit bitmap and the count thereof (that is, the bit position of the current time bit bitmap) are set to be the same, and the indicator light flashes synchronously.
需要说明的是,对于某个指示灯同步闪烁,要求每一时刻该指示灯的亮灭要保持一致,具体到本发明来说,即要求比特位图(对应于一定的闪烁频率)及每个时刻扫描到的比特位一致。It should be noted that, for a certain indicator to flash synchronously, it is required to keep the indicator light on and off at each moment. Specifically, in the present invention, a bit bitmap (corresponding to a certain blinking frequency) and each are required. The bits scanned at the same time are consistent.
以上是对本发明实施例提供的方法的概括说明,下面对该方法进行进一步说明:The above is a general description of the method provided by the embodiment of the present invention, and the method is further described below:
本发明实施例提供的方法可分为点灯设置流程和点灯扫描流程两部分。 The method provided by the embodiment of the invention can be divided into two parts: a lighting setting process and a lighting scanning process.
图9是根据本发明实施例的点灯设置流程图,如图9所示,该流程包括如下步骤:FIG. 9 is a flowchart of setting a lighting device according to an embodiment of the present invention. As shown in FIG. 9, the flow includes the following steps:
步骤S902,确定闪烁频率与比特位图的对应关系。根据摄影学原理要求,每个比特位所持续的时间tB<=1/24s。将tB设为40ms,单位闪烁周期T设为1s,点灯同步周期t设为2s,则每个闪烁周期需要的比特位图的位数N=T/tB=25。对于每个比特位用0表示灭,1表示亮。如对于1Hz闪烁,将25位的比特位图的前13位置为0,后12位置为1,可得到比特位图如图10所示,图10是根据本发明实施例的闪烁频率为1Hz时的比特位图。同理,根据不同闪烁频率,排列出不同的比特位图,得到2Hz,5Hz闪烁对应的比特位图分别如图11和图12所示,其中,图11是根据本发明实施例的闪烁频率为2Hz时的比特位图,图12是根据本发明实施例的闪烁频率为5Hz时的比特位图。由此得到在一个同步点灯周期t内,1Hz、2Hz、5Hz对应的比特位图用十六进制数表示分别为0x1FFE000FFF,0xFC07E07E03F,0x6318C6318C63。Step S902, determining a correspondence relationship between the flicker frequency and the bit bitmap. According to the principle of photography, the duration of each bit t B <=1/24s. When t B is set to 40 ms, the unit blinking period T is set to 1 s, and the lighting synchronization period t is set to 2 s, the number of bits of the bit bitmap required for each blinking period is N=T/t B =25. For each bit, 0 is used to indicate off, and 1 is illuminated. For example, for 1 Hz flicker, the first 13 positions of the 25-bit bit map are 0, and the last 12 positions are 1, the bit bitmap can be obtained as shown in FIG. 10, and FIG. 10 is a flicker frequency of 1 Hz according to an embodiment of the present invention. Bit bitmap. Similarly, according to different flicker frequencies, different bit bitmaps are arranged to obtain 2 Hz, and the bit map corresponding to the 5 Hz flicker is respectively shown in FIG. 11 and FIG. 12, wherein FIG. 11 is a flicker frequency according to an embodiment of the present invention. A bit map at 2 Hz, and FIG. 12 is a bit map at a blinking frequency of 5 Hz according to an embodiment of the present invention. Thus, in a synchronous lighting period t, the bit maps corresponding to 1 Hz, 2 Hz, and 5 Hz are represented by hexadecimal numbers as 0x1FFE000FFF, 0xFC07E07E03F, 0x6318C6318C63, respectively.
比较图10、图11和图12可以看出,由于每个比特位所持续的时间是确定的,则在单位闪烁周期内,比特位图中0,1变化次数越多,反映到指示灯的亮灭变化次数越多,则闪烁频率越快。Comparing FIG. 10, FIG. 11 and FIG. 12, it can be seen that since the duration of each bit is determined, the more the number of changes of 0,1 in the bit bitmap during the unit blinking period, the more reflected to the indicator light. The more the number of changes is, the faster the blinking frequency is.
步骤S904,打开共享内存。该共享内存可以是图13中的步骤S1302中指示灯管理线程所创建的。In step S904, the shared memory is turned on. The shared memory may be created by the indicator management thread in step S1302 in FIG.
步骤S906,把点灯参数写入步骤S904提到的共享内存中。传入的点灯参数包括指示灯编号,颜色以及闪烁频率。在写入共享内存时,先根据指示灯编号找到相应的记录,再根据步骤S902确定的闪烁频率与指示灯位图的对应关系,将对应的比特位图写入该条记录。In step S906, the lighting parameter is written into the shared memory mentioned in step S904. The incoming lighting parameters include the indicator number, color, and blinking frequency. When writing to the shared memory, the corresponding record is first found according to the indicator number, and the corresponding bit bitmap is written into the record according to the corresponding relationship between the blinking frequency determined by step S902 and the indicator bitmap.
图13是根据本发明实施例的点灯扫描流程图,如图13所示,该流程包括如下步骤:FIG. 13 is a flow chart of a lighting scan according to an embodiment of the present invention. As shown in FIG. 13, the flow includes the following steps:
步骤S1302,创建共享内存。每个板卡上驻留一个指示灯管理线程,该线程创建一片共享内存。该共享内存为每个指示灯保存了一条记录,包括指示灯编号、颜色、比特位图以及前一时刻扫描的比特位。随着指示灯数目的增加,只要在共享内存中增加一条记录即可,非常方便。其它线程或进程通过修改共享内存中的比特位图,即可改变指示灯闪烁频率。In step S1302, a shared memory is created. A light management thread resides on each board that creates a piece of shared memory. The shared memory holds a record for each indicator, including the indicator number, color, bit map, and the bits scanned at a previous time. As the number of indicators increases, it is convenient to add a record to the shared memory. Other threads or processes can change the blinking frequency of the indicator by modifying the bit map in the shared memory.
步骤S1304,设置指示灯位图扫描定时器。指示灯管理线程可以每隔40ms扫描所有指示灯的比特位图。 Step S1304, setting an indicator bitmap scanning timer. The indicator management thread can scan the bit map of all indicators every 40ms.
步骤S1306,加入同步点灯组播组,用来接收2s一次的同步点灯组播消息。Step S1306, adding a synchronous lighting multicast group, for receiving a synchronous lighting multicast message of 2s at a time.
步骤S1308,线程上接收消息。Step S1308, the message is received on the thread.
步骤S1310,判断接收到的消息是否是扫描位图定时器消息,如果是,进入步骤S1312,如果否,进入步骤S1318。In step S1310, it is judged whether the received message is a scan bitmap timer message, if yes, the process goes to step S1312, and if no, the process goes to step S1318.
步骤S1312,依次扫描共享内存中每个指示灯的比特位图,比较当前时刻比特位与前一时刻比特位,如果不一致则需要操作指示灯。这种情况下,如当前时刻比特位为1,则点亮指示灯,为0则点灭指示灯,并记录当前时刻的比特位,以便下一次比较时使用,再将位图的计数加1。Step S1312: sequentially scan the bit bitmap of each indicator in the shared memory, compare the current time bit with the previous time bit, and if not, operate the indicator light. In this case, if the current time bit is 1, the indicator light is lit, and if it is 0, the indicator light is turned off, and the current time bit is recorded, so that it can be used in the next comparison, and then the bit count is incremented by one. .
步骤S1314,判断当前板卡是否已经初始化完成,并且位于中心控制点,且位图的计数达到50时(即2s的指示灯同步间隔到时),如果是,进入步骤S1316,如果否,进入步骤S1308。In step S1314, it is judged whether the current board has been initialized and is located at the central control point, and the count of the bitmap reaches 50 (that is, the indicator synchronization interval of 2s is up), if yes, the process goes to step S1316, if no, the step is entered. S1308.
需要说明的是,是否发布间隔2s的同步点灯消息,不是基于2s的定时器,而是通过位图计数达到50来判断,主要考虑到如果单独设置一个同步点灯的定时器,当位于中心控制点的板卡位置发生变化时,需要在新的板卡上重新设置同步点灯定时器,实现流程比较复杂。It should be noted that whether to issue a synchronous lighting message with an interval of 2 seconds is not based on a 2s timer, but is determined by a bitmap count of 50, mainly considering that if a timer for separately lighting is set, when located at the central control point When the position of the board changes, the synchronization lighting timer needs to be reset on the new board, which is complicated.
步骤S1316,发布同步点灯组播消息。In step S1316, a synchronous lighting multicast message is issued.
步骤S1318,判断接收到的消息是否是同步点灯消息,如果是,进入步骤S1320,如果否,进入步骤S1308。In step S1318, it is judged whether the received message is a synchronous lighting message, and if so, the process proceeds to step S1320, and if no, the process proceeds to step S1308.
步骤S1320,判断当前板卡是否初始化完成,如果是,进入步骤S1322,如果否,进入步骤S1308。In step S1320, it is judged whether the current board is initialized or not. If yes, the process goes to step S1322, and if no, the process goes to step S1308.
步骤S1322,将当前板卡指示灯闪烁频率设为1Hz,即修改共享内存中指示灯位图为1Hz对应的位图,并将比特位图计数清零。这样所有收到同步点灯消息的板卡,比特位图及其计数是一致的,也就达到同步闪烁的效果。In step S1322, the blinking frequency of the current board indicator is set to 1 Hz, that is, the bitmap of the indicator in the shared memory is modified to be a bitmap corresponding to 1 Hz, and the bit bitmap count is cleared. In this way, all the boards that receive the synchronous lighting message, the bit map and its count are consistent, and the effect of synchronous flicker is achieved.
图14是根据本发明实施例的指示灯同步闪烁管理装置的结构框图,如图14所示,该装置包括比特位图单元142(同上述的转换单元44)、位图扫描单元144(同上述的扫描次子单元62)和点灯设置单元146,下面对该装置进行说明。FIG. 14 is a structural block diagram of an indicator flash synchronization management apparatus according to an embodiment of the present invention. As shown in FIG. 14, the apparatus includes a bit bitmap unit 142 (same as the above-described conversion unit 44) and a bitmap scanning unit 144 (same as above). The scanning sub-unit 62) and the lighting setting unit 146 will be described below.
比特位图单元142,设置为将设定的指示灯闪烁频率,转换为相应的比特位图。 The bit bitmap unit 142 is configured to convert the set indicator blinking frequency into a corresponding bit bitmap.
根据摄影学原理,人眼视觉残留时间为1/24s,因此将每个比特位持续的时间tB设定为小于1/24s。According to the principle of photography, the human eye vision residual time is 1/24 s, so the time t B for which each bit lasts is set to be less than 1/24 s.
设定单位闪烁周期T,且T能整除tB。则每个闪烁周期需要的比特位图长度N=T/tBSet the unit blinking period T, and T can divide t B . Then the bit bitmap length required for each blinking period is N=T/t B .
在N位的比特位图中,每个比特位用0表示灭,1表示亮。根据不同的闪烁频率,在N位的比特位图中排列成不同的比特位序列,得到不同闪烁频率对应的指示灯比特位图。In the N-bit bitmap, each bit is extinguished with 0 and 1 is illuminated. According to different flicker frequencies, different bit sequence sequences are arranged in the N-bit bitmap, and the indicator bit bitmaps corresponding to different flicker frequencies are obtained.
位图扫描单元144,设置为定时扫描共享内存中的指示灯位图,点亮或点灭指示灯。The bitmap scanning unit 144 is configured to periodically scan the indicator bitmap in the shared memory, and turn on or off the indicator.
以每个比特位持续的时间tB为间隔,定时扫描共享内存中的指示灯位图,比较前一时刻的扫描的比特位和当前时刻扫描的比特位,当两者不同时,如果当前比特位为0,则点灭指示灯,为1则点亮指示灯。Timing of the indicator light in the shared memory is periodically scanned at the interval t B of each bit duration, and the scanned bit at the previous moment and the bit scanned at the current time are compared, and if the two are different, if the current bit When the bit is 0, the indicator is off, and when it is 1, the indicator is lit.
当同步点灯间隔t到时,判断当前板卡是否初始化完成,并且位于中心控制点。如果是,则发布同步点灯组播消息。When the synchronization lighting interval t is reached, it is judged whether the current board is initialized or not, and is located at the central control point. If yes, a synchronous lighting multicast message is issued.
收到同步点灯消息的版卡,判断自身是否初始化成功,如果成功则将闪烁频率设为一致,并将指示灯比特位图计数清零。The card that receives the synchronization lighting message determines whether it is initialized successfully. If it succeeds, the blinking frequency is set to be consistent, and the indicator bit bitmap count is cleared.
点灯设置单元146,设置为根据设定的闪烁频率,修改共享内存中指示灯的位图。The lighting setting unit 146 is configured to modify the bitmap of the indicator light in the shared memory according to the set blinking frequency.
在板卡中创建了一片共享内存,用来保存指示灯的状态。当某个线程或进程需要操作指示灯时,只需要根据传入的闪烁频率,修改共享内存中的指示灯比特位图即可。A piece of shared memory is created in the board to hold the status of the indicator. When a thread or process needs to operate the indicator light, it only needs to modify the indicator bit bitmap in the shared memory according to the incoming blinking frequency.
通过上述的实施例可知,本发明的指示灯同步闪烁管理方法与装置是通过定时扫描指示灯的比特位图,使指示灯按某种设定的频率闪烁。由位于中心控制点的板卡定时发组播消息,收到消息的各板卡把比特位图及其计数置为一致,达到同步闪烁的效果。It can be seen from the above embodiments that the method and device for managing the blinking of the indicator light of the present invention flashes the indicator light at a certain set frequency by periodically scanning the bit map of the indicator light. The multicast message is sent periodically by the card located at the central control point, and each board that receives the message sets the bit bitmap and its count to be consistent, achieving the effect of synchronous flicker.
由上述可见,本发明所提供的指示灯同步闪烁管理方法和装置,简单易行,利用比特位图来控制多个指示灯闪烁,可调节闪烁频率。通过定时发组播消息的方法,能实现指示灯同步闪烁。将指示灯比特位图保存在共享内存中,可用于多线程操作指示灯。当指示灯数量的增加时,不需要额外增加硬件,降低了成本和系统复杂度。It can be seen from the above that the method and device for synchronous flashing of the indicator light provided by the present invention are simple and easy, and the bit map is used to control the blinking of multiple indicator lights, and the flicker frequency can be adjusted. By periodically sending multicast messages, the indicator blinks synchronously. The indicator bit bitmap is saved in shared memory and can be used for multi-threaded operation indicators. When the number of indicators increases, no additional hardware is required, reducing cost and system complexity.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所 组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices. Optionally, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from this The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,采用接收指示指示灯按照预定频率同步闪烁的组播消息;根据所述组播消息控制所述指示灯进行同步闪烁,解决了相关技术中存在的随着指示灯数量的增加需要额外增加硬件,导致设备结构复杂,成本高的问题,进而达到了降低设备复杂度和成本的效果。 According to the foregoing technical solution provided by the embodiment of the present invention, a multicast message that receives an indicator light to be synchronously blinked according to a predetermined frequency is used; and the indicator light is controlled to perform synchronous flashing according to the multicast message, which solves the problem in the related art. The increase in the number of indicators requires additional hardware, resulting in a complicated structure and high cost, which in turn reduces the complexity and cost of the device.

Claims (10)

  1. 一种指示灯控制方法,包括:A method for controlling an indicator light, comprising:
    接收指示指示灯按照预定频率同步闪烁的组播消息;Receiving a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency;
    根据所述组播消息控制所述指示灯进行同步闪烁。The indicator light is controlled to perform synchronous flashing according to the multicast message.
  2. 根据权利要求1所述的方法,其中,根据所述组播消息控制所述指示灯进行同步闪烁,包括:The method of claim 1, wherein controlling the indicator light to perform synchronous flashing according to the multicast message comprises:
    确定所述指示灯的点灯参数,其中,所述点灯参数包括所述指示灯的一个或多个闪烁频率;Determining a lighting parameter of the indicator light, wherein the lighting parameter includes one or more blinking frequencies of the indicator light;
    将所述点灯参数中的指示灯的闪烁频率转换为与所述闪烁频率对应的比特位图;Converting a blinking frequency of the indicator light in the lighting parameter into a bit bitmap corresponding to the blinking frequency;
    依据所述比特位图,以及所述组播消息控制所述指示灯进行同步闪烁。The indicator light is controlled to perform synchronous blinking according to the bit bitmap and the multicast message.
  3. 根据权利要求2所述的方法,其中,依据所述比特位图,以及所述组播消息控制所述指示灯进行同步闪烁,包括:The method according to claim 2, wherein controlling the indicator light to perform synchronous flashing according to the bit bitmap and the multicast message comprises:
    将与所述预定频率对应的比特位图的计数清零;Clearing the count of the bit bitmap corresponding to the predetermined frequency to zero;
    利用计数清零后的所述比特位图控制所述指示灯进行所述预定频率的同步闪烁。The indicator light is controlled by the bit map after the count is cleared to perform the synchronous flicker of the predetermined frequency.
  4. 根据权利要求3所述的方法,其中,利用计数清零后的所述比特位图控制所述指示灯进行所述预定频率的同步闪烁包括:The method of claim 3, wherein controlling the indicator light to perform the synchronized blinking of the predetermined frequency by using the bit bitmap after the count is cleared comprises:
    依次扫描所述比特位图;Scanning the bit map in sequence;
    按照所述比特位图的比特位控制所述指示灯。The indicator light is controlled in accordance with the bit of the bit map.
  5. 一种指示灯控制方法,包括:A method for controlling an indicator light, comprising:
    确定按照预定频率同步闪烁的指示灯;Determining an indicator light that flashes in synchronization with a predetermined frequency;
    向板卡发送组播消息,其中,所述组播消息用于指示确定的所述指示灯的板卡控制确定的所述指示灯进行同步闪烁。Sending a multicast message to the card, wherein the multicast message is used to indicate that the determined indicator light of the indicator of the indicator light is synchronously blinking.
  6. 一种指示灯控制装置,包括:An indicator light control device includes:
    接收模块,设置为接收指示指示灯按照预定频率同步闪烁的组播消息; a receiving module, configured to receive a multicast message indicating that the indicator light flashes synchronously according to a predetermined frequency;
    控制模块,设置为根据所述组播消息控制所述指示灯进行同步闪烁。And a control module, configured to control the indicator light to perform synchronous flashing according to the multicast message.
  7. 根据权利要求6所述的装置,其中,所述控制模块包括:The apparatus of claim 6 wherein said control module comprises:
    确定单元,设置为确定所述指示灯的点灯参数,其中,所述点灯参数包括所述指示灯的一个或多个闪烁频率;a determining unit, configured to determine a lighting parameter of the indicator light, wherein the lighting parameter includes one or more blinking frequencies of the indicator light;
    转换单元,设置为将所述点灯参数中的指示灯的闪烁频率转换为与所述闪烁频率对应的比特位图;a conversion unit configured to convert a blinking frequency of the indicator light in the lighting parameter into a bit bitmap corresponding to the blinking frequency;
    控制单元,设置为依据所述比特位图,以及所述组播消息控制所述指示灯进行同步闪烁。And a control unit configured to control the indicator light to perform synchronous flashing according to the bit bitmap and the multicast message.
  8. 根据权利要求7所述的装置,其中,所述控制单元包括:The apparatus of claim 7, wherein the control unit comprises:
    清除子单元,设置为将与所述预定频率对应的比特位图的计数清零;Clearing the subunit, set to clear the count of the bit bitmap corresponding to the predetermined frequency;
    控制子单元,设置为利用计数清零后的所述比特位图控制所述指示灯进行所述预定频率的同步闪烁。And a control subunit configured to control the indicator light to perform synchronous flickering of the predetermined frequency by using the bit bitmap after the count is cleared.
  9. 根据权利要求8所述的装置,其中,所述控制子单元包括:The apparatus of claim 8 wherein said control subunit comprises:
    扫描次子单元,设置为依次扫描所述比特位图;Scanning the sub-subunits, and setting to scan the bit maps in sequence;
    控制次子单元,设置为按照所述比特位图的比特位控制所述指示灯。The secondary subunit is controlled to be set to control the indicator light in accordance with the bit of the bit map.
  10. 一种指示灯控制装置,包括:An indicator light control device includes:
    确定模块,设置为确定按照预定频率同步闪烁的指示灯;Determining a module, configured to determine an indicator light that flashes in synchronization with a predetermined frequency;
    发送模块,设置为向板卡发送组播消息,其中,所述组播消息用于指示确定的所述指示灯的板卡控制确定的所述指示灯进行同步闪烁。 The sending module is configured to send a multicast message to the board, where the multicast message is used to indicate that the determined indicator of the determined indicator of the indicator light is synchronously blinking.
PCT/CN2015/072336 2014-11-24 2015-02-05 Indicator light control method and apparatus WO2016082334A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410682687.1A CN105611682A (en) 2014-11-24 2014-11-24 Method and device for controlling indication lamps
CN201410682687.1 2014-11-24

Publications (1)

Publication Number Publication Date
WO2016082334A1 true WO2016082334A1 (en) 2016-06-02

Family

ID=55991135

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072336 WO2016082334A1 (en) 2014-11-24 2015-02-05 Indicator light control method and apparatus

Country Status (2)

Country Link
CN (1) CN105611682A (en)
WO (1) WO2016082334A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093511A (en) * 2017-12-07 2018-05-29 合肥国为电子有限公司 A kind of control device and its control method of seismic detector indicator light
CN110493056A (en) * 2019-08-23 2019-11-22 深圳震有科技股份有限公司 A kind of integrated access equipment
CN113268400A (en) * 2021-04-27 2021-08-17 新华三信息技术有限公司 Synchronous flashing method and device for indicator lamp and server
CN114067501A (en) * 2021-10-20 2022-02-18 浪潮金融信息技术有限公司 Intelligent guide system, method and medium applied to self-service terminal

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106879138B (en) * 2017-02-08 2019-07-19 北京小鸟看看科技有限公司 A kind of electronic equipment and the method, apparatus of controlling electronic devices indicator light flashing
CN112133047B (en) * 2020-09-01 2021-10-26 上海万奇光电技术有限公司 Equipment indicator lamp control method, system and storage medium thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043772A (en) * 2007-04-09 2007-09-26 北京中星微电子有限公司 Method and apparatus for controlling LED indicating lamp
CN101262364A (en) * 2008-02-28 2008-09-10 福建星网锐捷网络有限公司 A device status and information display method and device
CN102821508A (en) * 2011-06-09 2012-12-12 海洋王照明科技股份有限公司 LED synchronous signal lamp and control system thereof
CN103200733A (en) * 2013-02-19 2013-07-10 中兴通讯股份有限公司 Method and device used for automatically controlling state indicator lamp of terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100563402C (en) * 2005-03-31 2009-11-25 华为技术有限公司 Signal lamp flashing controlling method
CN102958220B (en) * 2011-08-18 2015-04-22 盛科网络(苏州)有限公司 Method and device for regulating flicker of indicator lamps

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043772A (en) * 2007-04-09 2007-09-26 北京中星微电子有限公司 Method and apparatus for controlling LED indicating lamp
CN101262364A (en) * 2008-02-28 2008-09-10 福建星网锐捷网络有限公司 A device status and information display method and device
CN102821508A (en) * 2011-06-09 2012-12-12 海洋王照明科技股份有限公司 LED synchronous signal lamp and control system thereof
CN103200733A (en) * 2013-02-19 2013-07-10 中兴通讯股份有限公司 Method and device used for automatically controlling state indicator lamp of terminal equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093511A (en) * 2017-12-07 2018-05-29 合肥国为电子有限公司 A kind of control device and its control method of seismic detector indicator light
CN110493056A (en) * 2019-08-23 2019-11-22 深圳震有科技股份有限公司 A kind of integrated access equipment
CN113268400A (en) * 2021-04-27 2021-08-17 新华三信息技术有限公司 Synchronous flashing method and device for indicator lamp and server
CN113268400B (en) * 2021-04-27 2022-07-12 新华三信息技术有限公司 Synchronous flashing method and device for indicator lamp and server
CN114067501A (en) * 2021-10-20 2022-02-18 浪潮金融信息技术有限公司 Intelligent guide system, method and medium applied to self-service terminal

Also Published As

Publication number Publication date
CN105611682A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
WO2016082334A1 (en) Indicator light control method and apparatus
US9820362B2 (en) Lighting control and status queries
CN107465474B (en) The clock synchronization system and method for digital control system bus apparatus
TWI500309B (en) Communication apparatus and communication method
US9642224B2 (en) Illumination controller and luminaire control method
US9635743B2 (en) Controlling networked lighting devices
CN103582208A (en) Indicating lamp control method and device in embedded type equipment
US10897797B2 (en) Methods and system for controlling the switching on of lights
JP2018133222A (en) Lighting fixture
CN110868784B (en) Stage lighting data bidirectional synchronous communication method and system, storage medium and device
US10716189B2 (en) Controller and method for controlling luminaires in a lighting network
CN109669366B (en) Control method and device
JP2015230895A (en) Illumination system and operation terminal for the same
JP5740512B1 (en) Lighting system and operation terminal thereof
JP2018166095A (en) Illumination controller and illumination system
CN104092529A (en) Clock synchronization adjusting system and adjusting method thereof
CN108401144A (en) A kind of terminal control method and device, mobile terminal and synchronous display systems
CN106572566A (en) LED lamp control method and system
CN109599058A (en) A kind of control method of LED array, device and storage system
JP2002218678A (en) Apparatus for controlling/monitoring power system
CN105634747B (en) A kind of method and device indicating network equipment port state
CN112996206B (en) Stroboscopic lamp information acquisition method and device, stroboscopic lamp and light supplementing system
JP7106377B2 (en) judgment system
US20160165703A1 (en) Time Synchronization of Lighting Services
KR20130044074A (en) Relaying apparatus, method for relaying using the same and, 3d image system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15863905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15863905

Country of ref document: EP

Kind code of ref document: A1