Operation device, peripheral device and lamp effect synchronous control method
By designing an operating device including a host device, a peripheral device and a bus, the synchronization of infrared light emitted by DRAM is achieved by using lamp effect instructions and synchronization instructions, the problem of complex lighting effect synchronization dependence on software and wiring in the prior art is solved, and efficiency is improved and hardware requirements are simplified.
Patent Information
- Application Number
- CN202411779375.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-28
- Filing Date
- 2024-12-05
- Publication Date
- 2025-07-01
AI Technical Summary
When the prior art synchronizes infrared light emitted by DRAM in e-sports computers, the lighting effect software needs to be turned on all the time, and the computer wiring will affect the synchronization function, making it difficult to achieve flexible lighting effect synchronization.
An operating device is designed, including a host device, a peripheral device and a bus. The host device issues lamp effect instructions and synchronization instructions. The peripheral device switches modes according to the instructions and transmits broadcast command packets through the bus to synchronize the lighting effects of each peripheral device.
It realizes the synchronized infrared light emitted by DRAM without the lighting effect software being turned on all the time, improving the efficiency of the host device, and achieving lighting effect synchronization through the original circuit architecture, avoiding the increase in additional hardware.
Smart Images

Figure CN120239156A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an operating device, and more particularly to an operating device for synchronizing lighting effects. Background Art
[0002] With the progress of technology, the types and functions of electronic devices are increasing. Many electronic devices have a lighting function. Taking an e-sports computer as an example, assume that each DRAM in the e-sports computer can emit infrared light. In order to synchronize the infrared light emitted by each DRAM, the existing method is to install a lighting effect software on the e-sports computer. By turning on the lighting effect software, the infrared light of all DRAMs is synchronized. However, the lighting effect software must be kept on. After the lighting effect software stops, it is impossible to issue a command to synchronize the infrared light of all DRAMs. Moreover, if the wiring of the computer is messy, it will also affect the synchronization function. Summary of the Invention
[0003] An embodiment of the present invention provides an operating device, including a host device, a first peripheral device, a second peripheral device, and a bus. The host device issues a lighting effect instruction. The first peripheral device operates in a slave mode and presents a first lighting effect according to the lighting effect instruction. The second peripheral device operates in a slave mode and presents a second lighting effect according to the lighting effect instruction. The bus is coupled to the host device, the first peripheral device, and the second peripheral device for transmitting the lighting effect instruction. When the host device issues a synchronization instruction, the first peripheral device switches from the slave mode to a host mode. In the host mode, the first peripheral device issues a broadcast command packet to the second peripheral device through the bus. The second peripheral device adjusts the time point of presenting the second lighting effect according to the broadcast command packet, so that the time point of the second lighting effect is synchronized with the time point of the first lighting effect.
[0004] In other embodiments, the operating device has other numbers of peripheral devices, such as two peripheral devices, three peripheral devices, or four peripheral devices.
[0005] The present invention further provides a peripheral device, coupled to a bus, receiving a lighting effect instruction from a host device through the bus, and including a lighting module, a counter, and a processing circuit. The lighting module provides a lighting effect according to a control signal. The counter provides a count value. The processing circuit is coupled to the bus and generates a control signal according to the lighting effect instruction and the count value. In a slave mode, the processing circuit is controlled by the host device. When the host device issues a synchronization instruction, the processing circuit switches from the slave mode to a host mode. In the host mode, the processing circuit issues a broadcast command packet to an external peripheral device through the bus, so that the time point of the lighting effect presented by the external peripheral device is synchronized with the time point of the lighting effect presented by the lighting module.
[0006] The present invention further provides a method for synchronously controlling lighting effects, including sending a first lighting effect instruction to a first peripheral device and a second peripheral device, such that the first peripheral device presents a first lighting effect and the second peripheral device presents a second lighting effect; designating the first peripheral device to switch from a slave mode to a host mode; in the host mode, sending a broadcast command packet from the first peripheral device to the second peripheral device, such that the time point of the second lighting effect is synchronized with the time point of the first lighting effect.
[0007] The lighting effect synchronous control method of the present invention can be implemented via the operating device of the present invention, which is hardware or firmware capable of executing specific functions, or can also be incorporated in a recording medium in the form of program code and implemented in combination with specific hardware. When the program code is loaded and executed by an electronic device, a processor, a computer or a machine, the electronic device, the processor, the computer or the machine becomes the operating device for implementing the present invention.
[0008] Since the host device relinquishes control to any peripheral device, the host device can perform other operations without having to handle the lighting effect synchronization operation, thus improving the efficiency of the host device. Furthermore, the peripheral device designated by the host device is originally coupled to other peripheral devices. Therefore, the peripheral device can send a broadcast command packet to all peripheral devices without the need to add any additional hardware components. Through the original circuit architecture, the designated peripheral device notifies the undesignated peripheral devices of the time point when it presents the lighting effect, and requests the undesignated peripheral devices to adjust the time point when they present the lighting effect, so that all peripheral devices present the same lighting effect at the same time, achieving lighting effect synchronization. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a schematic diagram of the operating device of the present invention.
[0010] Figure 2 It is a schematic diagram of the first and second lighting effects of the present invention.
[0011] Figure 3 It is an operating schematic diagram of the operating device 100 of the present invention.
[0012] Figure 4 It is a possible embodiment of the peripheral device of the present invention.
[0013] Figure 5 It is a flow schematic diagram of the lighting effect synchronous control method of the present invention.
[0014] SYMBOL DESCRIPTION
[0015] 100: Operating device
[0016] 110: Host device
[0017] 120A to 120C, 400: Peripheral devices
[0018] 130: Bus
[0019] CM_LE: Lighting effect instruction
[0020] CM_Syne: Synchronization instruction
[0021] Sgc: Broadcast command packet
[0022] 121A, 121B, 121C, 410: Microcontroller
[0023] 122A, 122B, 122C, 420: Light-emitting module
[0024] VA_A, VA_B, VA_C, VA: Count value
[0025] SCA, SCB, SCC, SC, SC1 to SC3: Control signal
[0026] LA1 to LA3, LB1 to LB3, LC1 to LC3, 421 to 423: Light-emitting device
[0027] 311 to 313, 321 to 323, 331, 332, 341, 342: Status
[0028] S511 to S514: Steps Detailed implementation manners
[0029] To make the objectives, features, and advantages of the present invention more obvious and understandable, specific embodiments are hereinafter given and described in detail in conjunction with the accompanying drawings. The specification of the present invention provides different embodiments to illustrate the technical features of different implementation manners of the present invention. Among them, the configurations of the components in the embodiments are for illustrative purposes only and are not intended to limit the present invention. In addition, the partial repetition of the reference numerals in the embodiments is for simplifying the description and does not imply the relevance between different embodiments.
[0030] Figure 1A schematic diagram of the operating device of the present invention. The operating device 100 includes a host device 110, peripheral devices 120A to 120C, and a bus 130. The host device 110 sends control instructions to the peripheral devices 120A to 120C through the bus 130 to control the operation of the peripheral devices 120A to 120C. The present invention does not limit the type of the bus 130. Any bus that can transmit instructions can be used as the bus 130. In a possible embodiment, the bus 130 is a serial transmission bus, such as an inter-integrated circuit (I2C) bus. The present invention also does not limit the type of the operating device 100. In some embodiments, the operating device 100 is a motherboard. The host device 110 can be used as the central processing unit (CPU) on the motherboard.
[0031] The peripheral devices 120A to 120C are coupled to the bus 130 and operate according to the control instructions issued by the host device 110. In a possible embodiment, when the host device 110 issues a light effect command CM_LE, the peripheral devices 120A to 120C operate in a slave mode and present corresponding lighting effects according to the light effect command CM_LE, such as a breathing light effect. For ease of explanation, the lighting effect presented by the peripheral device 120A is called a first lighting effect, the lighting effect presented by the peripheral device 120B is called a second lighting effect, and the lighting effect presented by the peripheral device 120C is called a third lighting effect. In some embodiments, the first to third lighting effects are the same.
[0032] In this embodiment, the peripheral devices 120A to 120C are independent of each other and operate according to the clock signals generated by their respective oscillation circuits, such as presenting the first to third lighting effects. However, due to the influence of the process, the characteristics of different oscillation circuits are not consistent. After a long time of operation, the clock signals generated by the oscillation circuits of the peripheral devices 120A to 120C gradually become asynchronous. Therefore, the lighting effects presented by the peripheral devices 120A to 120C will also be asynchronous.
[0033] In order to synchronize the lighting effects presented by the peripheral devices 120A to 120C, the host device 110 issues a synchronization command CM_Syne to specify one of the peripheral devices 120A to 120C. The specified peripheral device controls the remaining peripheral devices to synchronize the lighting effects of all peripheral devices. In this example, the specified peripheral device serves as a master device, and the unspecified peripheral devices all serve as slave devices and are controlled by the master device.
[0034] For example, when the host device 110 designates the peripheral device 120A through the synchronization instruction CM_Sync, the peripheral device 120A switches from the slave mode to the host mode. Since the host device 110 does not designate the peripheral devices 120B and 120C, the peripheral devices 120B and 120C remain in the slave mode. In this example, the peripheral device 120A acts as a master device, while the peripheral devices 120B and 120C act as slave devices.
[0035] The present invention does not limit how the host device 110 sets the roles of the peripheral devices 120A to 120C. In a possible embodiment, the host device 110 sets a mode register (not shown) in the peripheral devices 120A to 120C through a control instruction to set the roles of the peripheral devices 120A to 120C. Taking the peripheral device 120A as an example, when the mode register has a first value, the peripheral device 120A operates in a slave mode, acts as a slave device, and is controlled by the host device 110. When the mode register has a second value, the peripheral device 120A operates in a host mode and acts as a master device. In the host mode, the peripheral device 120A controls other peripheral devices (such as 120B and 120C) so that the lighting effects presented by the peripheral devices 120B and 120C are synchronized with the lighting effect presented by the peripheral device 120A.
[0036] For ease of explanation, assume that the host device 110 designates the peripheral device 120A as a master device and sets the peripheral devices 120B and 120C as slave devices. The peripheral device 120A sends a broadcast command packet Sgc to the peripheral devices 120B and 120C operating through the bus 130. The peripheral devices 120B and 120C adjust the time points of the second and third lighting effects according to the broadcast command packet Sgc so that the time points of the second and third lighting effects are synchronized with the time point of the first lighting effect. In a possible embodiment, the peripheral device 120A sends the broadcast command packet Sgc regularly (such as every minute).
[0037] The present invention does not limit the circuit architecture of the peripheral device 120A. In a possible embodiment, the peripheral device 120A includes at least a microcontroller (MCU) 121A and a lighting module 122A. The microcontroller 121A is coupled to the bus 130 and operates according to the lighting effect instruction CM_LE and the synchronization instruction CM_Syne. For example, when the microcontroller 121A receives the lighting effect instruction CM_LE, the microcontroller 121A generates a control signal SCA according to a count value VA_A. At this time, the microcontroller 121A operates in a slave mode and is controlled by the host device 110. In some embodiments, the count value VA_A is stored in the microcontroller 121A. When the microcontroller 121A receives the synchronization instruction CM_Syne, the microcontroller 121A enters a host mode. In the host mode, the microcontroller 121A sends a broadcast command packet Sgc to the bus 130.
[0038] The lighting module 122A provides a first lighting effect according to the control signal SCA. In a possible embodiment, the lighting module 122A has a Serial Peripheral Interface (SPI) for receiving the control signal SCA. In another possible embodiment, the lighting module 122A uses a General-purpose input / output (GPIO) pin to receive the control signal SCA. In some embodiments, the control signal SCA may be a Pulse Width Modulation (PWM) signal. The present invention does not limit the architecture of the lighting module 122. In this embodiment, the lighting module 122A includes lighting devices LA1 to LA3. The lighting devices LA1 to LA3 emit light according to the control signal SCA. The present invention does not limit the types of the lighting devices LA1 to LA3. In a possible embodiment, the lighting devices LA1 to LA3 are Light Emitting Diodes (LEDs). Additionally, the present invention does not limit the number of lighting devices. In other embodiments, the lighting module 122A has more or fewer lighting devices.
[0039] The peripheral device 120B includes at least a microcontroller 121B and a lighting module 122B. The microcontroller 121B stores a count value VA_B and generates a control signal SCB according to the count value VA_B. Since the characteristics of the microcontroller 121B are similar to those of the microcontroller 121A, they will not be described in detail. The lighting module 122B provides a second lighting effect according to the control signal SCB. Since the architecture of the lighting module 122B is the same as that of the lighting module 122A, it will not be described in detail.
[0040] The peripheral device 120C includes at least a microcontroller 121C and a lighting module 122C. The microcontroller 121C stores a count value VA_C and generates a control signal SCC according to the count value VA_C. Since the characteristics of the microcontroller 121C are similar to those of the microcontroller 121A, they will not be described again. The lighting module 122C provides a third lighting effect according to the control signal SCC. Since the architecture of the lighting module 122C is the same as that of the lighting module 122A, it will not be described again.
[0041] The host device 110 may designate any one of the peripheral devices 120A to 120C as a master device, and the undesignated peripheral devices remain as slave devices. Taking the peripheral device 120A as an example, when the peripheral device 120A operates in the host mode, the peripheral device 120A notifies the count value VA_A to the peripheral devices 120B and 120C by broadcasting a command packet Sgc. The peripheral device 120B adjusts the time point of the second lighting effect according to the difference between the count values VA_A and VA_B, so that the starting time point of the second lighting effect is synchronized with the starting time point of the first lighting effect. The peripheral device 120C adjusts the time point of the third lighting effect according to the difference between the count values VA_A and VA_C, so that the starting time point of the second lighting effect is synchronized with the starting time point of the first lighting effect.
[0042] Figure 2 It is a schematic diagram of the first and second lighting effects of the present invention. As shown in the figure, during the period 211, the first lighting effect presented by the peripheral device 120A is synchronized with the second lighting effect presented by the peripheral device 120B. For example, when the peripheral device 120A presents red light R, green light G, or blue light B, the peripheral device 120B also presents red light R, green light G, or blue light B.
[0043] However, after a long time, the second lighting effect presented by the peripheral device 120B gradually becomes out of sync with the first lighting effect presented by the peripheral device 120A. As shown in the figure, during the period 212, the second lighting effect presented by the peripheral device 120B lags behind the first lighting effect presented by the peripheral device 120A. For example, when the peripheral device 120A presents red light R, the peripheral device 120B does not present red light R, and when the peripheral device 120A presents green light G, the peripheral device 120B does not present green light G.
[0044] In order to synchronize the first and second lighting effects, the host device 110 switches the role of the peripheral device 120A from a slave device to a master device. When the peripheral device 120A is the master device, the peripheral device 120A provides its own count value VA_A to the peripheral device 120B. The peripheral device 120B adjusts its own count value VA_B according to the count value VA_A, and then presents the second lighting effect according to the adjusted count value VA_B.
[0045] Thus, during period 213, the second lighting effect presented by peripheral device 120B is synchronized with the first lighting effect presented by peripheral device 120A. As shown in the figure, when peripheral device 120A presents red light R, green light G, or blue light B, peripheral device 120B also presents red light R, green light G, or blue light B.
[0046] In other embodiments, the host device 110 issues a stop command CM_STP to switch the role of peripheral device 120A from a master device to a slave device. When peripheral device 120A acts as a slave device, peripheral device 120A stops sending broadcast command packets Sgc. At this time, peripheral devices 120A to 120C are all slave devices and are controlled by the host device 110.
[0047] The present invention does not limit the number of peripheral devices. In other embodiments, the operating device 100 has more or fewer peripheral devices. For example, the operating device 100 may have two, three, or four peripheral devices, but this is not intended to limit the present invention. The present invention also does not limit the types of peripheral devices 120A to 120C. In a possible embodiment, peripheral devices 120A to 120C are all double data rate random access memories (DDR RAMs) for storing data from the host device 110 or outputting data to the host device 110. In a possible embodiment, peripheral devices 120A to 120C are all fifth generation double data rate random access memories (DDR5).
[0048] Figure 3 It is a schematic diagram of the operation of the operating device 100 of the present invention. First, in state 311, the host device 110 issues a lighting effect command CM_LE to peripheral devices 120A to 120C. At this time, peripheral devices 120A to 120C are all operating in slave mode and acting as slave devices, controlled by the host device 110. Then, in state 312, the host device 110 issues a synchronization command CM_Syne to specify one of peripheral devices 120A to 120C. Assume that the host device 110 specifies peripheral device 120A. In state 313, the host device 110 pauses controlling peripheral devices 120A to 120C.
[0049] After the peripheral device 120A is designated, the peripheral device 120A switches from the slave mode to the host mode (state 321). In state 322, the peripheral device 120A sends a broadcast command packet Sgc to the peripheral devices 120B and 120C. In a possible embodiment, the peripheral device 120A notifies the peripheral devices 120B and 120C of its own count value VA_A. In some embodiments, the peripheral device 120A sends a broadcast command packet Sgc every fixed time (such as 1 minute). In state 323, the peripheral device 120A presents a first lighting effect.
[0050] In state 331, the peripheral device 120B adjusts the time point for presenting the second lighting effect according to the broadcast command packet Sgc. In a possible embodiment, the peripheral device 120B adjusts its own count value VA_B according to the count value VA_A of the peripheral device 120A. In state 332, the peripheral device 120B presents the second lighting effect according to the adjusted count value VA_B. In a possible embodiment, the time point at which the peripheral device 120B presents the second lighting effect is the same as the time point at which the peripheral device 120A presents the first lighting effect.
[0051] In state 341, the peripheral device 120C adjusts the time point for presenting the third lighting effect according to the broadcast command packet Sgc. In a possible embodiment, the peripheral device 120C adjusts its own count value VA_C according to the count value VA_A of the peripheral device 120A. In state 342, the peripheral device 120C presents the third lighting effect according to the adjusted count value VA_C. In a possible embodiment, the time point at which the peripheral device 120C presents the third lighting effect is the same as the time point at which the peripheral device 120A presents the first lighting effect.
[0052] Figure 4 This is a possible embodiment of the peripheral device of the present invention. As shown in the figure, the peripheral device 400 includes a microcontroller 410 and a light-emitting module 420. Figure 4 The peripheral device 400 can be used as Figure 1 Any one of the peripheral devices 120A to 120C. In this embodiment, the microcontroller 410 includes an input / output interface 411, a processing circuit 412, and a counter 413.
[0053] The input / output interface 411 is coupled to the bus 130 for receiving the lighting effect instruction CM_LE, the synchronization instruction CM_Syne, and the stop instruction CM_STP. When the peripheral device 400 is a master device, the input / output interface 411 further outputs a broadcast command packet Sgc to the bus 130. In some embodiments, the input / output interface 411 is an internal integrated circuit (I2C) interface.
[0054] The processing circuit 412 operates according to the lighting effect instruction CM_LE, the synchronization instruction CM_Syne, and the stop instruction CM_STP. In a possible embodiment, when the processing circuit 412 receives the lighting effect instruction CM_LE, the processing circuit 412 operates in a slave mode and is controlled by the host device 110. At this time, the processing circuit 412 generates a control signal SC according to the count value VA of the counter 413.
[0055] In another possible embodiment, when the processing circuit 412 receives the synchronization instruction CM_Syne, the processing circuit 412 decodes the synchronization instruction CM_Syne to determine whether an address information of the synchronization instruction CM_Syne conforms to a preset value. When the address information of the synchronization instruction CM_Syne conforms to a preset value, the processing circuit 412 operates in a host mode. In the host mode, the processing circuit 412 integrates the count value VA into the broadcast command packet Sgc and outputs the broadcast command packet Sgc to the bus 130 through the input / output interface 413. When the address information of the synchronization instruction CM_Syne does not conform to a preset value, the processing circuit 412 operates in a slave mode. In the slave mode, the processing circuit 412 operates according to the instruction received by the input / output interface 411.
[0056] In other embodiments, when the processing circuit 412 receives the stop instruction CM_STP, the processing circuit 412 operates in a slave mode and is controlled by the host device 110. At this time, since the peripheral device 400 is a slave device, the processing circuit 412 stops providing the broadcast command packet Sgc.
[0057] The light emitting module 420 provides a lighting effect according to the control signal SC. In this embodiment, the light emitting module 420 includes light emitting devices 421 to 423. The light emitting devices 421 to 423 are connected in series with each other, but this is not intended to limit the present invention. In other embodiments, the light emitting devices 421 to 423 are connected in parallel with each other and directly receive the control signal SC. The present invention does not limit how the processing circuit 412 controls the light emitting module 420.
[0058] In a possible embodiment, at a first time point, the processing circuit 412 generates a control signal SC1 for the light-emitting device 421. The light-emitting device 421 presents red light according to the control signal SC1. At this time, the light-emitting devices 422 and 423 may not emit light temporarily. At a second time point, the processing circuit 412 generates a control signal SC2 for the light-emitting device 421. The light-emitting device 421 presents green light according to the control signal SC2 and outputs the control signal SC1 to the light-emitting device 422. The light-emitting device 422 presents red light according to the control signal SC1. At this time, the light-emitting device 423 may not emit light temporarily. At a third time, the processing circuit 412 generates a control signal SC3 for the light-emitting device 421. The light-emitting device 421 presents blue light according to the control signal SC3 and outputs the control signal SC2 to the light-emitting device 422. The light-emitting device 422 presents green light according to the control signal SC2 and outputs the control signal SC1 to the light-emitting device 423. The light-emitting device 423 presents red light according to the control signal SC1.
[0059] In other embodiments, when the processing circuit 412 receives the broadcast command packet Sgc, the processing circuit 412 decodes the broadcast command packet Sgc to obtain a count information of the broadcast command packet Sgc. The processing circuit 412 adjusts the count value VA according to the count information of the broadcast command packet Sgc. In a possible embodiment, the processing circuit 412 obtains a difference time according to the difference between the count information of the broadcast command packet Sgc and the count value VA, and adjusts the count value VA according to the difference time. In this example, when the processing circuit 412 generates the control signal SC according to the adjusted count value VA, the lighting effect presented by the lighting module 420 is synchronized with the lighting effect presented by another lighting module.
[0060] Figure 5 It is a schematic flow chart of the lighting effect synchronization control method of the present invention. The lighting effect synchronization control method of the present invention can exist in the form of program code. When the program code is loaded and executed by a machine, the machine becomes an operating device for implementing the present invention. First, a lighting effect instruction is sent to all peripheral devices (step S511). At this time, all peripheral devices operate in the slave mode. In a possible embodiment, step S511 uses an internal integrated circuit bus to transmit the lighting effect instruction.
[0061] With Figure 1For example, when the host device 110 provides a first lighting effect instruction, the peripheral devices 120A to 120C respectively present a first lighting effect, a second lighting effect, and a third lighting effect according to the first lighting effect instruction. At this time, the first to third lighting effects are the same, such as the breathing light effect. When the host device 110 provides a second lighting effect instruction, the peripheral devices 120A to 120C respectively present a fourth lighting effect, a fifth lighting effect, and a sixth lighting effect according to the second lighting effect instruction. At this time, the fourth to fifth lighting effects are the same, such as the neon light effect.
[0062] Next, a peripheral device is specified (step S512). In a possible embodiment, step S512 issues a synchronization instruction to all peripheral devices. Step S512 may use an internal integrated circuit bus to transmit the synchronization instruction. Each peripheral device operates in a slave mode or a host mode according to the address information of the synchronization instruction. For Figure 1 example, when the address information of the synchronization instruction points to the peripheral device 120A, it means that the peripheral device 120A is specified, and the peripheral devices 120B and 120C are not specified. Therefore, the peripheral device 120A switches from the slave mode to the host mode, while the peripheral devices 120B and 120C remain operating in the slave mode.
[0063] In the host mode, the specified peripheral device issues a broadcast command packet to the unspecified peripheral devices (step S513). In a possible embodiment, step S513 may use an internal integrated circuit bus to transmit the broadcast command packet. In another possible embodiment, step S513 periodically issues the broadcast command packet. In some embodiments, the unspecified peripheral devices adjust the time points of the lighting effects they present according to the broadcast command packet, so that the time points of the lighting effects presented by the unspecified peripheral devices are synchronized with the time points of the lighting effects presented by the specified peripheral device.
[0064] For Figure 1 example, when the peripheral device 120A issues a broadcast command packet Sgc to the peripheral devices 120B and 120C, the peripheral devices 120B and 120C adjust the time points of their lighting effects according to the broadcast command packet Sgc. After adjustment, the time point of the second lighting effect of the peripheral device 120B and the time point of the third lighting effect of the peripheral device 120C are the same as the time point of the first lighting effect of the peripheral device 120A.
[0065] In a possible embodiment, the broadcast command packet in step S513 includes a count value (such as VA_A) of the designated peripheral device (such as 120A). In this example, the non-designated peripheral device (such as 120B) adjusts its own count value (such as VA_B) according to the count value of the designated peripheral device. After the non-designated peripheral device adjusts its own count value, the count value (such as VA_B) of the non-designated peripheral device is the same as the count value (such as VA_A) of the designated peripheral device.
[0066] In other embodiments, a stop command is issued to require the designated peripheral device to switch from the host mode to the slave mode (step S514). Taking Figure 1 the peripheral device 120A as an example, when the peripheral device 120A receives the stop command CM_STP, the peripheral device 120A stops providing the broadcast command packet Sgc and switches to the slave mode, being controlled by the host device 110.
[0067] Since the host device 110 relinquishes control to any peripheral device, the host device 110 can perform other operations without having to handle the light effect synchronization operation, thus improving the efficiency of the host device 110. Furthermore, the peripheral device (such as 120A) designated by the host device 110 is originally coupled to other peripheral devices (such as 120B, 120C). Therefore, the peripheral device 120A can send the broadcast command packet Sgc to all peripheral devices without the need to add any additional hardware components. Through the original circuit architecture, the designated peripheral device (such as 120A) notifies the non-designated peripheral devices (such as 120B, 120C) of the time point when it presents the lighting effect, and requests the non-designated peripheral devices to adjust the time point when they present the lighting effect, so that all peripheral devices present the same lighting effect at the same time, achieving light effect synchronization.
[0068] It must be understood that when a device or layer is referred to as being "coupled" to another device or layer, it can be directly coupled or connected to other devices or layers, or there may be other devices or layers in between. Conversely, when a device or layer is "connected" to other devices or layers, there will be no other devices or layers in between.
[0069] The method for synchronously controlling the lighting effect of the present invention, or a specific form or a part thereof, may exist in the form of program code. The program code can be stored in a physical medium, such as a floppy disk, an optical disk, a hard disk, or any other machine-readable (such as computer-readable) storage medium, or a computer program product not limited to an external form. Wherein, when the program code is loaded and executed by a machine, such as a computer, this machine becomes an operating device for participating in the operation of the present invention. The program code can also be transmitted through some transmission media, such as wires or cables, optical fibers, or any transmission form. Wherein, when the program code is received, loaded, and executed by a machine, such as a computer, this machine becomes an operating device for participating in the operation of the present invention. When implemented in a general-purpose processing unit, the program code combined with the processing unit provides a unique device whose operation is similar to that of an application-specific logic circuit.
[0070] Unless otherwise defined, all terms (including technical and scientific terms) used herein shall be generally understood by those skilled in the art to which the present invention pertains. In addition, unless explicitly stated, the definitions of terms in a general dictionary shall be interpreted as being consistent with their meanings in the articles of the relevant technical field, and shall not be interpreted as an ideal state or an overly formal voice. Although terms such as "first", "second", etc. may be used to describe various devices, these devices should not be limited by these terms. These terms are only used to distinguish one device from another. In the claims, terms such as "first", "second", etc. are used as labels and do not intend to impose numerical requirements on their objects.
[0071] Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art to which the present invention pertains may make some modifications and refinements without departing from the spirit and scope of the present invention. For example, the systems, devices, or methods described in the embodiments of the present invention can be implemented in physical embodiments of hardware, software, or a combination of hardware and software. Therefore, the protection scope of the present invention shall be determined by the scope defined in the attached claims.
Claims
1. An operating device, characterized in that: include: A host device issues a lighting effect command; a first peripheral device operating in a slave mode and presenting a first lighting effect according to the lighting effect instruction; a second peripheral device, operating in the slave mode and presenting a second lighting effect according to the lighting effect instruction; as well as a bus, coupling the host device, the first peripheral device and the second peripheral device, for transmitting the lighting effect instruction, in, When the host device issues a synchronization command, the first peripheral device switches from the slave mode to a host mode. In the host mode, the first peripheral device sends a broadcast command packet to the second peripheral device via the bus. The second peripheral device adjusts the time point of presenting the second lighting effect according to the broadcast command packet, so that the time point of the second lighting effect is synchronized with the time point of the first lighting effect.
2. The operating device according to claim 1, characterized in that In the host mode, the first peripheral device periodically sends out the broadcast command packet.
3. The operating device according to claim 2, characterized in that: The first peripheral device has a first count value, the second peripheral device has a second count value, In the host mode, the first peripheral device informs the second peripheral device of the first count value through the broadcast command packet. The second peripheral device adjusts the time point of the second lighting effect according to the difference between the first count value and the second count value.
4. The operating device according to claim 3, characterized in that The second peripheral device adjusts the second counting value according to the first counting value so that the second counting value is equal to the first counting value.
5. The operating device according to claim 1, characterized in that: When the host device issues a stop command, the first peripheral device switches from the host mode to the slave mode.
6. A peripheral device, characterized in that: The device is coupled to a bus and receives a lighting effect instruction from a host device through the bus, and includes: a light emitting module, providing a first light effect according to a control signal; a counter providing a count value; and A processing circuit is coupled to the bus and generates the control signal according to the lighting effect instruction and the count value. in: In a slave mode, the processing circuit is controlled by the host device. When the host device issues a synchronization command, the processing circuit switches from the slave mode to a host mode. In the host mode, the processing circuit sends a broadcast command packet to an external peripheral device through the bus, so that the time point of the lighting effect presented by the external peripheral device is synchronized with the time point of the first lighting effect.
7. The peripheral device according to claim 6, characterized in that: Also includes: an input-output interface for coupling to the bus, The input-output interface is an internal integrated circuit interface.
8. A lighting effect synchronization control method, characterized in that: include: Sending a first lighting effect instruction to a first peripheral device and a second peripheral device, so that the first peripheral device presents a first lighting effect, and the second peripheral device presents a second lighting effect; Designating the first peripheral device to switch from a slave mode to a host mode; as well as In the host mode, the first peripheral device sends a broadcast command packet to the second peripheral device, so that the time point of the second lighting effect is synchronized with the time point of the first lighting effect.
9. The lighting effect synchronization control method according to claim 8, characterized in that: The broadcast command packet includes a first count value of the first peripheral device, and the second peripheral device adjusts a second count value according to the first count value.
10. The lighting effect synchronization control method according to claim 9, characterized in that: After the second peripheral device adjusts the second count value, the second count value is the same as the first count value.