Device control method and apparatus, and driver chip and storage medium
By detecting the direction of the power supply voltage in real time and obtaining its duration proportional relationship, the driver chip can efficiently control the LED equipment, solving the problems of low data transmission efficiency and poor quality in the prior art, and achieving more efficient and stable data transmission.
Patent Information
- Application Number
- PCT/CN2024/086948
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-22
- Filing Date
- 2024-04-10
- Publication Date
- 2025-06-26
AI Technical Summary
The data transmission efficiency of existing driver chips is low, the data transmission quality is poor, and the logic is complex.
By detecting the voltage direction of the power supply in real time, obtaining the proportional relationship between the forward voltage duration and the negative voltage duration, determining the command value of the command data bit, and determining the target lighting method based on this value to control the target device.
It improves the data transmission efficiency and quality of the driver chip, reduces the complexity of the data transmission logic, and avoids inefficiency and packet loss problems caused by performance defects in the data transmission module.
Smart Images

Figure CN2024086948_26062025_PF_FP_ABST
Abstract
Description
Device control method, device, driver chip and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 22, 2023, with application number 202311788357.6, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the fields of data transmission and chip technology, for example, to a device control method, apparatus, driver chip and storage medium. Background Art
[0003] With the continuous development of science and technology, various functional chips have begun to appear in people's sight, and among them, driver chips for controlling LED (light-emitting diode) devices have also emerged.
[0004] The existing driver chip obtains the control instructions sent by the data sender through an independently configured data transmission module, and the main control unit then completes the function control of the LED device, such as the LED screen or LED lighting, based on the control instructions.
[0005] However, the data transmission quality of this instruction transmission method is limited by the performance of the data transmission module itself, and often has problems such as low transmission efficiency or high data packet loss rate, poor data transmission quality, and complex data transmission logic.
[0006] Summary of the Invention
[0007] The present application provides a device control method, apparatus, driver chip and storage medium to solve the problems of low data transmission efficiency and poor data transmission quality of the driver chip.
[0008] According to one aspect of the present application, a device control method is provided, which is applied to a driver chip, including: real-time detection of the voltage direction of the power supply, and obtaining a first proportional relationship between the positive voltage duration and the negative voltage duration in the current detection cycle; determining the instruction value of the instruction data bit corresponding to the current detection cycle based on the first proportional relationship; determining a matching target lighting mode based on the instruction values of a first preset number of instruction data bits, and operating the corresponding target device according to the target lighting mode.
[0009] The method of determining a matching target lighting mode based on the instruction value of a first preset number of instruction data bits and operating a corresponding target device according to the target lighting mode includes: determining a matching target lighting mode and a target device based on the instruction value of a first preset number of instruction data bits, and controlling the target device according to the target lighting mode.
[0010] Before determining the matching target lighting mode according to the instruction values of the first preset number of instruction data bits, it also includes: constructing a target chip identifier according to the instruction values of the second preset number of instruction data bits, and judging whether the target chip identifier is the same as the current driver chip identifier; the determining the matching target lighting mode according to the instruction values of the first preset number of instruction data bits includes: when it is determined that the target chip identifier is the same as the current driver chip identifier, continuing to determine the matching target lighting mode according to the instruction values of the first preset number of instruction data bits.
[0011] The obtaining of the first proportional relationship between the duration of the positive voltage and the duration of the negative voltage in the current detection cycle includes: obtaining the first proportional relationship between the duration of the positive voltage and the duration of the negative voltage in the current detection cycle, and the first numerical relationship between the positive voltage and the negative voltage; the determining of the matching target lighting mode based on the instruction value of the first preset number of instruction data bits includes: determining the matching target lighting mode based on the instruction value of the first preset number of instruction data bits, and determining the matching target device based on the first numerical relationship.
[0012] Determining the matching target lighting mode based on the instruction value of the first preset number of instruction data bits also includes: determining the matching target data type based on the first numerical relationship; determining the matching target lighting mode based on the target data type and the instruction value of the first preset number of instruction data bits.
[0013] After obtaining the voltage direction of the power supply in real time, the method further includes: obtaining a voltage waveform diagram of the current detection cycle, and determining a matching target lighting mode according to the voltage waveform diagram.
[0014] After obtaining the voltage direction of the power supply in real time, the method further includes: obtaining the voltage direction switching frequency in the current detection cycle, and determining the instruction value of the instruction data bit corresponding to the current detection cycle according to the voltage direction switching frequency.
[0015] According to one aspect of the present application, there is provided a device control apparatus, which is applied to a driver chip and includes: a voltage direction acquisition module, which is configured to detect the voltage direction of a power supply in real time and obtain a first proportional relationship between the duration of a positive voltage and the duration of a negative voltage in a current detection cycle; an instruction value acquisition module, which is configured to determine the instruction value of the instruction data bit corresponding to the current detection cycle based on the first proportional relationship; and a lighting mode acquisition module, which is configured to determine a matching target lighting mode based on the instruction values of a first preset number of instruction data bits, and operate the corresponding target device according to the target lighting mode.
[0016] According to another aspect of the present application, a driver chip is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device control method described in any embodiment of the present application.
[0017] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the device control method described in any embodiment of the present application when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] FIG1A is a schematic diagram of a scenario in which a device control method according to an embodiment of the present application is applicable;
[0019] FIG1B is a flow chart of a device control method provided according to Embodiment 1 of the present application;
[0020] FIG1C is a schematic diagram showing the directions of the positive voltage and the negative voltage according to the first embodiment of the present application;
[0021] FIG1D is a schematic diagram of a voltage waveform provided according to Example 1 of the present application;
[0022] FIG1E is a schematic diagram of the direction switching between the positive voltage and the negative voltage provided according to the first embodiment of the present application;
[0023] FIG2 is a flow chart of another device control method provided according to Embodiment 2 of the present application;
[0024] FIG3A is a flowchart of another device control method provided according to Embodiment 3 of the present application;
[0025] FIG3B is a schematic diagram showing another direction of positive voltage and negative voltage provided according to the third embodiment of the present application;
[0026] FIG3C is a schematic diagram of another direction of positive voltage and negative voltage provided according to the third embodiment of the present application;
[0027] FIG4 is a schematic structural diagram of a device control apparatus provided according to a fourth embodiment of the present application;
[0028] FIG5 is a schematic diagram of the structure of a driver chip for implementing the device control method according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] FIG1A is a schematic diagram of a scenario applicable to the device control method provided in an embodiment of the present application; as shown in FIG1A , the driver chip is connected to the power supply through two power interfaces based on a non-polarity wiring method, that is, the two power interfaces are respectively connected to the power supply through wires of the same color and without markings, so that the power supply and the driver chip are connected in series (or in parallel with each other), so that the driver chip can work normally under both positive and negative voltages, thereby avoiding safety hazards caused by incorrect power supply connection methods. The driver chip defines the voltage of the current flowing from one power interface to another power interface as a positive voltage, and the voltage of the current flowing from another current interface to the power interface is defined as a negative voltage.
[0032] When the power supply is supplying power to the outside, the energy storage device and the main control unit source of power is the power supply; when the power supply transmits data by changing the voltage direction, during the interval time of the rising edge or falling edge, the power supply no longer supplies power to the driver chip, but the energy storage device supplies power to the main control unit; the power supply sends a device control instruction to the driver chip by changing the voltage direction, and the driver chip controls the operation of the target device in a target lighting manner according to the obtained device control instruction; wherein, the driver chip can be connected to one or more devices. Figure 1A takes the example of a driver chip connected to four devices, namely device A, device B, device C and device D; the device may include LED devices such as LED screens or LED lighting lamps.
[0033] Example 1
[0034] FIG1B is a flow chart of a device control method provided in Example 1 of the present application. This embodiment is applicable to situations where data is transmitted by changing the direction of voltage. This method can be executed by the device control device in the embodiment of the present application. The device control device can be implemented in the form of hardware and / or software and can be configured in a driver chip. As shown in FIG1B , the method includes the following steps.
[0035] S101 : Detect the voltage direction of the power supply in real time, and obtain a first proportional relationship between a positive voltage duration and a negative voltage duration in a current detection cycle.
[0036] The driver chip can configure one or more clock signals into a detection cycle, and detect the voltage direction of the power supply in each detection cycle; when the power supply is supplying power normally, since the magnitude and direction of the alternating current change periodically with time, if it is detected in the current detection cycle that the power supply conforms to the above-mentioned periodic change law, it means that there is no transmission data in the current detection cycle, and there is no need to perform the acquisition operation of the first proportional relationship; if it is detected in the current detection cycle that the power supply does not conform to the above-mentioned periodic change law, it means that there is transmission data in the current detection cycle.
[0037] As shown in 1C, within a detection cycle T, the power supply first provides a forward voltage for time t1 and then provides a reverse voltage for time t2, and the ratio of the durations of t1 to t2 is one to two; or the power supply first provides a forward voltage for time t3 and then provides a reverse voltage for time t4, and the ratio of the durations of t3 to t4 is two to one; within a detection cycle, the voltage direction of the power supply may change multiple times, for example, from a positive voltage to a negative voltage, and then from a negative voltage to a positive voltage; therefore, within a detection cycle, the driver chip records the cumulative duration of the positive voltage and the ratio between the cumulative duration of the negative voltage.
[0038] S102: Determine an instruction value of an instruction data bit corresponding to a current detection cycle according to the first proportional relationship.
[0039] Different proportional relationships between the duration of the positive voltage and the duration of the negative voltage are pre-configured as different instruction values. The driver chip can obtain the instruction value corresponding to an instruction data bit within a detection cycle. Taking the transmission of binary data from the power supply to the driver chip as an example, for example, using Figure 1C as an example, if the ratio of the duration of the positive voltage to the duration of the negative voltage is two to one, it means that the instruction value of the current instruction data bit is "1"; if the ratio of the duration of the positive voltage to the duration of the negative voltage is one to two, it means that the instruction value of the current instruction data bit is "0". The driver chip can thus determine the instruction value of the instruction data bit corresponding to the current detection cycle based on the obtained first proportional relationship and the mapping relationship between the proportional relationship and the instruction value.
[0040] When the power supply controls the change in voltage direction, there may be control errors, and when the driver chip detects the change in voltage direction, there may also be detection errors. Therefore, the first proportional relationship between the positive voltage duration and the negative voltage duration in the current detection cycle may not be exactly equal to two to one or one to two, but there may be a certain calculation error. At this time, in the pre-configured proportional relationship, the instruction value corresponding to the proportional relationship closest to the first proportional relationship value is used as the instruction value obtained in the current detection cycle.
[0041] S103: Determine a matching target lighting mode according to the instruction values of the first preset number of instruction data bits, and operate a corresponding target device according to the target lighting mode.
[0042] The lighting mode may include at least one of brightness (for example, 0 to 255 levels, i.e., a total of 256 brightness levels), color (for example, red, orange, yellow, green, cyan, blue, purple or white, i.e., a total of 8 different colors) and state (for example, always on and flashing, i.e., a total of 2 different states); the first preset number is related to the number of optional parameters included in the lighting mode. The more optional parameters, the larger the value of the first preset number, that is, a larger number of data bits are required to fully characterize the lighting mode of the device.
[0043] Taking the above technical solution as an example, 8 data bits can represent 256 brightness levels, 4 data bits can represent 8 colors, and 1 data bit can represent the state, that is, a total of 13 data bits can be used to represent the lighting mode of a device. If the driver chip is connected to four devices in sequence, then by sequentially obtaining the instruction values of 52 (i.e., 13×4=52) instruction data bits, the complete device control instructions are obtained, and the operation of multiple devices can be completed sequentially or in parallel based on this.
[0044] Taking the above technical solution as an example, for the device control instruction, a possible device control process includes the following operations: set device A to 120 levels of red light brightness, and display it in a flashing state; set device B to 112 levels of yellow light brightness, and display it in a constant light state; set device C to 150 levels of green light brightness, and display it in a flashing state; set device D to 220 levels of white light brightness, and display it in a constant light state.
[0045] Optionally, in an embodiment of the present application, determining a matching target lighting mode based on the instruction value of a first preset number of instruction data bits, and operating a corresponding target device according to the target lighting mode, includes: determining a matching target lighting mode and target device based on the instruction value of a first preset number of instruction data bits, and controlling the target device according to the target lighting mode.
[0046] When the power supply issues a device control instruction, the device identification of the device to be controlled can be added to the device control instruction to achieve directional control of the specified device; taking the above technical solution as an example, if the driver chip is connected to four devices, the four devices can be distinguished by two data bits. At this time, 15 (i.e. 13+2=15) data bits can be used to achieve directional control of the target device. Compared with configuring the lighting mode of all devices connected to the current driver chip in the device control instruction, adding the device identification of the device to be controlled to the device control instruction achieves directional control of the specified device, avoids redundant control of devices that do not need to be run, and reduces the amount of data transmitted.
[0047] Optionally, in an embodiment of the present application, after obtaining the voltage direction of the power supply in real time, the process further includes obtaining a voltage waveform diagram for the current detection cycle and determining a matching target lighting mode based on the voltage waveform diagram. Due to the diversity of voltage waveform variations, different voltage waveforms can be pre-configured for different lighting modes. The power supply can transmit device control instructions by continuously changing the voltage direction within a detection cycle. After obtaining the voltage waveform diagram for the current detection cycle, the driver chip compares the similarity with multiple pre-configured voltage waveforms to determine the device control instruction corresponding to the voltage waveform diagram.
[0048] For example, the two voltage waveforms in Figure 1D can be used to represent "red light with a brightness of 120 levels, displayed in a flashing state" and "yellow light with a brightness of 112 levels, displayed in a constantly lit state" respectively; by determining the matching target lighting mode through the voltage waveform, the transmission of device control instructions is completed within only one detection cycle, greatly improving the data transmission efficiency between the power supply and the driver chip.
[0049] Optionally, in an embodiment of the present application, after obtaining the voltage direction of the power supply in real time, it also includes: obtaining the voltage direction switching frequency within the current detection cycle, and determining the instruction value of the instruction data bit corresponding to the current detection cycle based on the voltage direction switching frequency. The switching frequency of the voltage direction, that is, the number of times the positive voltage is converted to the negative voltage, or the number of times the negative voltage is converted to the positive voltage, can compare the currently obtained voltage direction switching frequency with the preset frequency threshold. If the current voltage direction switching frequency is greater than or equal to the preset frequency threshold, the instruction value of the instruction data bit corresponding to the current detection cycle is determined to be "1"; if the current voltage direction switching frequency is greater than or less than the preset frequency threshold, the instruction value of the instruction data bit corresponding to the current detection cycle is determined to be "0".
[0050] As shown in Figure 1E, if the preset frequency threshold is set to 3, the voltage switching frequencies obtained in the two detection cycles in Figure 1E are 4 and 2, respectively. The former corresponds to a command value of "1" and the latter corresponds to a command value of "0." Compared to detecting the duration of positive and negative voltages, detecting the voltage direction switching frequency only requires detecting the number of inflection points in the voltage change. This greatly reduces the amount of detection data required by the driver chip and improves the efficiency of obtaining command values.
[0051] The technical solution of the embodiment of the present application, after obtaining the first proportional relationship between the duration of the positive voltage and the duration of the negative voltage in the current detection cycle, determines the instruction value of the instruction data bit corresponding to the current detection cycle according to the first proportional relationship, and then determines the matching target lighting mode, and controls the operation of the corresponding target device according to the target lighting mode, so that the driver chip realizes data transmission based on the change of the power supply voltage without the need to configure the data transmission module, avoids the performance defects of the data transmission module itself, and causes problems such as low data transmission efficiency or high data packet loss rate, improves the data transmission efficiency and data transmission quality of the driver chip, and reduces the complexity of the data transmission logic.
[0052] Example 2
[0053] FIG2 is a flow chart of a device control method provided in Example 2 of the present application. Based on Example 1, this embodiment involves a driver chip determining whether it is the recipient of a control instruction issued by a power supply before determining a matching target lighting mode based on the instruction value of a first preset number of instruction data bits. As shown in FIG2 , the method includes the following steps.
[0054] S201 : Detect the voltage direction of the power supply in real time, and obtain a first proportional relationship between a positive voltage duration and a negative voltage duration in a current detection cycle.
[0055] S202: Determine an instruction value of an instruction data bit corresponding to a current detection cycle according to the first proportional relationship.
[0056] S203 : constructing a target chip identifier according to the instruction value of the second preset number of instruction data bits, and determining whether the target chip identifier is the same as the current driver chip identifier.
[0057] When the power supply is connected to multiple driver chips at the same time, it may send device control instructions to different driver chips in turn in a polling manner, or it may send device control instructions only to some of the driver chips according to actual needs; at this time, the power supply first sends the identification information of the target driver chip to be controlled this time, that is, the target chip identification by changing the voltage direction; the current driver chip first obtains the target chip identification according to the instruction value of the second preset number, and compares the target chip identification with the identification information of the current driver chip; wherein, the second preset number is related to the number of driver chips connected to the power supply, and the more driver chips are connected, the larger the value of the second preset number, that is, a larger number of data bits are required to distinguish different driver chips.
[0058] For the chip identification and lighting mode, the same instruction value can be configured as different proportional relationships, so that through the first proportional relationship currently obtained, it can also be determined whether the first proportional relationship represents the instruction value in the chip identification or the instruction value in the lighting mode; taking the above technical solution as an example, if the first proportional relationship is one to two, it means that the instruction value corresponding to the current detection cycle is "1", and the instruction value is the data bit value in the lighting mode; if the first proportional relationship is two to one, it means that the instruction value corresponding to the current detection cycle is "0", and the instruction value is the data bit value in the lighting mode; if the first proportional relationship is one to four, it means that the instruction value corresponding to the current detection cycle is "1", and the instruction value is the data bit value in the chip identification; if the first proportional relationship is four to one, it means that the instruction value corresponding to the current detection cycle is "0", and the instruction value is the data bit value in the chip identification.
[0059] If it is determined that the target chip identifier is different from the identifier information of the current driver chip, it means that the device control instruction issued by the power supply is irrelevant to the current driver chip, that is, the current driver chip is not the recipient of the control instruction issued by the power supply; at this time, within the next first preset number of detection cycles, the current driver chip can suspend the voltage direction detection of the power supply to reduce the detection load of the driver chip; after the first preset number of detection cycles, the detection of the voltage direction of the power supply is resumed.
[0060] S204: If it is determined that the target chip identifier is the same as the current driver chip identifier, continue to determine a matching target lighting mode according to the instruction values of the first preset number of instruction data bits.
[0061] If it is determined that the identification information of the target driver chip is the same as the identification information of the current driver chip, it indicates that the device control instruction issued by the power supply is related to the current driver chip, that is, the current driver chip is the recipient of the control instruction issued by the power supply. At this time, the current driver chip continues to obtain a first proportional relationship between the positive voltage duration and the negative voltage duration within multiple detection cycles, and determines the instruction value of the instruction data bit corresponding to the current detection cycle based on this first proportional relationship. Then, based on the instruction values of the first preset number of instruction data bits, a matching target lighting mode is determined. This achieves directional control for a specific driver chip, ensures consistency between the driver chip and the power supply in sending instructions, and avoids the driver chip from erroneously responding to irrelevant instructions.
[0062] S205: Run the corresponding target device according to the target lighting mode.
[0063] According to the technical solution of the embodiment of the present application, before the driver chip determines the matching target lighting mode based on the instruction value of the first preset number of instruction data bits, it first constructs the target chip identification based on the instruction value of the second preset number of instruction data bits, and when it is determined that the target chip identification is the same as the current driver chip identification, it continues to determine the matching target lighting mode based on the instruction value of the first preset number of instruction data bits, thereby realizing directional control for a specific driver chip, ensuring the consistency of the instruction sending objects of the driver chip and the power supply, and avoiding the driver chip's erroneous response to irrelevant instructions.
[0064] Example 3
[0065] FIG3A is a flow chart of a device control method provided in Example 3 of the present application. Based on Example 1, this embodiment not only obtains the first proportional relationship, but also obtains the first numerical relationship between the positive voltage and the negative voltage. As shown in FIG3A , the method includes the following steps.
[0066] S301 , detecting the voltage direction of the power supply in real time, and obtaining a first proportional relationship between a positive voltage duration and a negative voltage duration in a current detection cycle, and a first numerical relationship between the positive voltage and the negative voltage.
[0067] The first numerical relationship can be a proportional relationship between the positive voltage value and the negative voltage value (i.e., a second proportional relationship), or it can be a size relationship between the positive voltage value and the negative voltage value, for example, whether the positive voltage is equal to the negative voltage, and both are 1V; whether the positive voltage is equal to the negative voltage, and both are 2V.
[0068] S302: Determine an instruction value of an instruction data bit corresponding to a current detection cycle according to the first proportional relationship.
[0069] S303: Determine a matching target lighting mode according to the instruction values of the first preset number of instruction data bits, and determine a matching target device according to the first numerical relationship.
[0070] When determining the matching target lighting mode based on the instruction value of the first preset number of instruction data bits, if the identification information of the target device is added to the target lighting mode, new instruction data bits need to be added to record the identification information of the target device. For example, in the above technical solution, 13 data bits can originally represent lighting modes such as brightness, color and status, but in order to distinguish different devices connected to the current driver chip, 2 data bits need to be added to represent different devices, that is, 15 data bits are required to achieve directional control of the target device.
[0071] In an embodiment of the present application, the identification information of the target device can be represented by the first numerical relationship between the positive voltage and the negative voltage; as shown in Figure 3B, for example, -1V and +1V can be used to represent device A, -2V and +2V can be used to represent device B, -3V and +3V can be used to represent device C, and -4V and +4V can be used to represent device D; in Figure 3B, the proportional relationship between the positive voltage duration and the negative voltage duration of the four is actually the same, indicating that device A, device B, device C and device D are lit in the same lighting method, and when the driver chip obtains the first numerical relationship between the positive voltage and the negative voltage in the current detection cycle, it can determine to which device the current device control instruction is issued based on the first numerical relationship, thereby achieving directional control of different devices without increasing the instruction data bits, thereby improving the transmission efficiency of the device control instruction.
[0072] S304: Run the corresponding target device according to the target lighting mode.
[0073] Optionally, in an embodiment of the present application, determining the matching target lighting mode based on the instruction value of the first preset number of instruction data bits also includes: determining the matching target data type based on the first numerical relationship; determining the matching target lighting mode based on the target data type and the instruction value of the first preset number of instruction data bits.
[0074] The first numerical relationship obtained above can also be used to represent different data types, as shown in FIG3C , for example, binary data, octal data, decimal data, and hexadecimal data. As described in the above technical solution, -1V and +1V can be used to represent binary data, -2V and +2V can be used to represent octal data, -3V and +3V can be used to represent decimal data, and -4V and +4V can be used to represent hexadecimal data. When the driver chip obtains the first numerical relationship between the positive voltage and the negative voltage in the current detection cycle, it can determine the data type of the instruction data of the current instruction data bit based on the first numerical relationship.
[0075] Under different data types, the number of possible instruction values for an instruction data bit is different. For example, for the above-mentioned binary data, only two numerical relationships need to be configured, corresponding to the values "0" and "1" respectively, while for decimal data, 10 numerical relationships need to be configured, corresponding to the values "0" to "9" respectively; compared with traditional binary data transmission, the multi-base data transmission method based on the first numerical relationship between the positive voltage and the negative voltage greatly reduces the number of instruction data bits of the device control instruction and provides high transmission efficiency of the device control instruction.
[0076] According to the technical solution of the embodiment of the present application, when the driver chip obtains the first proportional relationship between the duration of the positive voltage and the duration of the negative voltage in the current detection cycle, it simultaneously obtains the first numerical relationship between the positive voltage and the negative voltage, and then determines the matching target device based on the first numerical relationship. In this way, directional control of different devices is achieved without increasing the instruction data bits, thereby improving the transmission efficiency of the device control instructions.
[0077] Example 4
[0078] Figure 4 is a structural block diagram of a device control device provided in Example 4 of the present application, and the device control device includes: a voltage direction acquisition module 401, which is configured to detect the voltage direction of the power supply in real time, and obtain a first proportional relationship between the positive voltage duration and the negative voltage duration in the current detection cycle; an instruction value acquisition module 402, which is configured to determine the instruction value of the instruction data bit corresponding to the current detection cycle based on the first proportional relationship; a lighting mode acquisition module 403, which is configured to determine a matching target lighting mode based on the instruction value of the first preset number of instruction data bits, and operate the corresponding target device according to the target lighting mode.
[0079] The technical solution of the embodiment of the present application, after obtaining the first proportional relationship between the duration of the positive voltage and the duration of the negative voltage in the current detection cycle, determines the instruction value of the instruction data bit corresponding to the current detection cycle according to the first proportional relationship, and then determines the matching target lighting mode, and controls the operation of the corresponding target device according to the target lighting mode, so that the driver chip realizes data transmission based on the change of the power supply voltage without the need to configure the data transmission module, avoids the performance defects of the data transmission module itself, and causes problems such as low data transmission efficiency or high data packet loss rate, improves the data transmission efficiency and data transmission quality of the driver chip, and reduces the complexity of the data transmission logic.
[0080] Optionally, the lighting mode acquisition module 403 is configured to determine a matching target lighting mode and target device according to an instruction value of a first preset number of instruction data bits, and control the target device according to the target lighting mode.
[0081] Optionally, the device control device also includes: a chip identification acquisition module, which is configured to construct a target chip identification based on the instruction value of a second preset number of instruction data bits before determining the matching target lighting method based on the instruction value of a first preset number of instruction data bits, and determine whether the target chip identification is the same as the current driver chip identification.
[0082] The lighting mode acquisition module 403 is configured to determine a matching target lighting mode according to the instruction values of the first preset number of instruction data bits if it is determined that the target chip identifier is the same as the current driver chip identifier.
[0083] Optionally, the voltage direction acquisition module 401 is configured to acquire a first proportional relationship between a positive voltage duration and a negative voltage duration in a current detection cycle, and a first numerical relationship between the positive voltage and the negative voltage.
[0084] The lighting mode acquisition module 403 is configured to determine a matching target lighting mode according to the instruction value of the first preset number of instruction data bits, and to determine a matching target device according to the first numerical relationship.
[0085] Optionally, the lighting mode acquisition module 403 is configured to determine a matching target data type according to the first numerical relationship; and determine a matching target lighting mode according to the target data type and an instruction value of a first preset number of instruction data bits.
[0086] Optionally, the device control device is further configured to obtain a voltage waveform diagram of a current detection cycle, and determine a matching target lighting mode based on the voltage waveform diagram.
[0087] Optionally, the equipment control device is further configured to obtain a voltage direction switching frequency in a current detection cycle, and determine an instruction value of an instruction data bit corresponding to the current detection cycle according to the voltage direction switching frequency.
[0088] The device control device provided in this application can execute the device control method provided in any embodiment of this application and has the corresponding functional modules for executing the method. For technical details not described in this embodiment, please refer to the device control method provided in any embodiment of this application.
[0089] Example 5
[0090] FIG5 shows a schematic diagram of the structure of the driver chip 10 that can be used to implement an embodiment of the present application. The driver chip is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The driver chip can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0091] As shown in Figure 5, the driver chip 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform a variety of appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 to the RAM 13. In the RAM 13, various programs and data required for the operation of the driver chip 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0092] Several components in the driver chip 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard and mouse; an output unit 17, such as various types of displays and speakers; a storage unit 18, such as a magnetic disk and optical disk; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the driver chip 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0093] The processor 11 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the device control method.
[0094] In some embodiments, the device control method may be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on a heterogeneous hardware accelerator via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by a processor, one or more steps of the device control method described above may be performed. Alternatively, in other embodiments, the processor may be configured to perform the device control method in any other appropriate manner (e.g., by means of firmware).
[0095] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0096] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device control apparatus, so that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0097] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. Examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0098] To provide interaction with a user, the systems and techniques described herein can be implemented on a heterogeneous hardware accelerator having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the heterogeneous hardware accelerator. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0099] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0100] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services.
[0101] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the multiple steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved. This is not limited herein.
Claims
1. A device control method, applied to a driver chip, comprising: Detect the voltage direction of the power supply in real time, and obtain a first proportional relationship between the duration of the positive voltage and the duration of the negative voltage in the current detection cycle; Determine the instruction value of the instruction data bit corresponding to the current detection cycle according to the first proportional relationship; According to the instruction values of the first preset number of instruction data bits, a matching target lighting mode is determined, and a corresponding target device is operated according to the target lighting mode.
2. The method according to claim 1, wherein: The step of determining a matching target lighting mode according to the instruction value of the first preset number of instruction data bits, and operating a corresponding target device according to the target lighting mode, includes: According to the instruction values of the first preset number of instruction data bits, a matching target lighting mode and target device are determined, and the target device is controlled according to the target lighting mode.
3. The method according to claim 1, before determining the matching target lighting mode according to the instruction value of the first preset number of instruction data bits, further comprising: Constructing a target chip identifier according to the instruction value of the second preset number of instruction data bits, and determining whether the target chip identifier is the same as the current driver chip identifier; The step of determining a matching target lighting mode according to the instruction value of the first preset number of instruction data bits includes: When it is determined that the target chip identifier is the same as the current driver chip identifier, a matching target lighting mode is determined according to the instruction values of the first preset number of instruction data bits.
4. The method according to claim 1, wherein: The obtaining of a first proportional relationship between a positive voltage duration and a negative voltage duration in a current detection cycle includes: Obtaining a first proportional relationship between a duration of a forward voltage and a duration of a negative voltage in a current detection cycle, and a first numerical relationship between the forward voltage and the negative voltage; The step of determining a matching target lighting mode according to the instruction value of the first preset number of instruction data bits includes: A matching target lighting mode is determined according to the instruction value of the first preset number of instruction data bits, and a matching target device is determined according to the first numerical relationship.
5. The method according to claim 4, wherein: The step of determining a matching target lighting mode according to the instruction value of the first preset number of instruction data bits further includes: Determine a matching target data type according to the first numerical relationship; A matching target lighting mode is determined according to the target data type and instruction values of a first preset number of instruction data bits.
6. The method according to claim 1, after obtaining the voltage direction of the power supply in real time, further comprises: A voltage waveform diagram of the current detection cycle is obtained, and a matching target lighting mode is determined according to the voltage waveform diagram.
7. The method according to claim 1, after obtaining the voltage direction of the power supply in real time, further comprises: The voltage direction switching frequency in the current detection cycle is obtained, and the instruction value of the instruction data bit corresponding to the current detection cycle is determined according to the voltage direction switching frequency.
8. A device control device, applied to a driver chip, comprising: A voltage direction acquisition module is configured to detect the voltage direction of the power supply in real time and obtain a first proportional relationship between a positive voltage duration and a negative voltage duration in a current detection cycle; An instruction value acquisition module, configured to determine the instruction value of the instruction data bit corresponding to the current detection cycle according to the first proportional relationship; The lighting mode acquisition module is configured to determine a matching target lighting mode according to the instruction value of the first preset number of instruction data bits, and operate the corresponding target device according to the target lighting mode.
9. A driver chip, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device control method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the device control method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Two-way serial communication protocol based communication method for fire alarm system
CN101819710A
LED (Light-Emitting Diode) display data processing method and device
CN102129838A
Direct current (DC) high-voltage power supply LED (light-emitting diode) street lamp system and control signal transmitting and receiving method thereof
CN102395231A
Control method of power supply carrier communication LED
CN106132013A
High-speed digital dimming interface compatible with DALI transceiver
CN115695517A