Vehicle lamp unit control method and system for vehicle cluster and electronic equipment
By converting the lamp status into the vehicle light status and detecting the time difference of the switching time point to generate a vehicle control signal, the problem of high cost of vehicle cluster light control is solved, wireless network control is realized, and the demand for physical wiring is reduced.
Patent Information
- Application Number
- CN202511224926.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2025-10-03
AI Technical Summary
The cost of controlling lights in a vehicle cluster is high, the physical signal line transmission method is highly complex, and wireless networks cannot meet data transmission requirements, making vehicle cluster lighting control difficult.
By converting the lamp status into the vehicle light status, the data length is shortened, and the duration of the status is determined by detecting the time difference of the switching time point, the vehicle control signal is generated, and wireless network control is achieved.
The data volume of the control signal is reduced, the difficulty of data transmission is lowered, and the vehicle cluster can be controlled through the wireless network, avoiding physical wiring and reducing the control cost of the vehicle cluster.
Smart Images

Figure CN120751539A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a method, system, and electronic device for controlling a headlight unit of a vehicle cluster. Background Art
[0002] In scenarios like lighting testing and light shows, unified control of lights in a vehicle cluster typically relies on standard digital signal transmission protocols such as DMX512 (Digital Multiplex 512). This involves connecting the lights or vehicle lights in series to a DMX (Digital Multiplex) console via physical signal cables, enabling centralized control of lighting effects. The DMX512 protocol uses the RS-485 (Recommended Standard 485) bus structure, transmitting data at a rate of 250 kbps. Each data packet can control 512 channels, meeting the requirements for synchronized dimming of a lighting array. Furthermore, in practical applications, the console periodically refreshes the lighting status by sending complete data packets containing a break signal, a mark after break (MAB) signal, and data frames, ensuring stable dynamic effects in the lighting array.
[0003] However, due to the problems of large vehicle size, wide distribution of headlights, and large number of headlights in vehicle clusters, the transmission method of physical signal lines will cause an exponential increase in the amount of wiring harness engineering in large venues. The headlights of each vehicle may require independent control lines. When the number of vehicles exceeds 100, the amount of data of the light control signal increases sharply, and the cost and complexity of laying the wire harness will far exceed the lighting array scenario. However, the data transmission method of the wireless network cannot meet the data transmission requirements, making the control of the headlights of the vehicle cluster more difficult, greatly increasing the control cost of the vehicle cluster in performance, testing and other environments. Summary of the Invention
[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0005] In view of the above-mentioned shortcomings of the prior art, the present application provides a method, system and electronic device for controlling a light unit of a vehicle cluster, so as to reduce the control cost of the light units of the vehicle cluster.
[0006] The present application provides a method for controlling a light unit of a vehicle cluster, wherein the vehicle cluster includes multiple vehicle terminals, and the vehicle terminals are provided with light units. The method includes: obtaining an array control signal corresponding to a light array, wherein the light array includes lamp units corresponding to each of the light units, and the array control signal carries a lamp state corresponding to each of the lamp units; converting each lamp state in the array control signal into a light state corresponding to the light unit, wherein the data length corresponding to the light state is smaller than the data length corresponding to the lamp state; detecting the switching time points of the light states to determine the state duration corresponding to the light state according to the time difference between the switching time points; and controlling each light unit in the vehicle cluster according to the light state and the state duration.
[0007] In one embodiment of the present application, each lamp state in the array control signal is converted into a lamp state corresponding to the lamp unit, including: obtaining a state correspondence between the lamp state and the lamp state; if the vehicle terminal is provided with a plurality of lamp units, determining a signal splitting granularity according to the number of lamp units of the vehicle terminal; splitting the array control signal according to the signal splitting granularity to obtain a lamp state corresponding to each of the vehicle terminals; converting each lamp state corresponding to the vehicle terminal according to the state correspondence to obtain a vehicle control signal corresponding to the vehicle terminal, wherein the vehicle control signal includes each lamp state corresponding to the vehicle terminal.
[0008] In one embodiment of the present application, a state correspondence between the lamp state and the vehicle light state is obtained, including: the types corresponding to the lamp state include multiple brightness states, and the types corresponding to the vehicle light state include an on state and an off state; the brightness states are arranged in order from large to small to obtain a brightness state sequence, and the brightness state sequence is divided into a high brightness interval and a low brightness interval in turn; a correspondence between the on state and the high brightness interval is established, and a correspondence between the off state and the low brightness interval is established to generate a state correspondence between the lamp state and the vehicle light state.
[0009] In one embodiment of the present application, the switching time points of the headlight status are detected to determine the duration of the status corresponding to the headlight status based on the time difference between the switching time points, including: if a vehicle control signal corresponding to the vehicle terminal is received, an intermediate buffer area is obtained; if no cache signal exists in the intermediate buffer area, the vehicle control signal is used as a cache signal and stored in the intermediate buffer area; if a cache signal exists in the intermediate buffer area, calculation is performed based on the timestamp corresponding to the cache signal and the timestamp corresponding to the vehicle control signal to obtain the duration of the status corresponding to the cache signal, and the vehicle control signal is used as a new cache signal to update the intermediate buffer area.
[0010] In one embodiment of the present application, each headlight unit in the vehicle cluster is controlled according to the headlight status and the duration of the status, including: calculating the duration of the status corresponding to the vehicle control signal according to a preset control cycle to obtain the number of controls corresponding to the vehicle control signal; copying the vehicle control signal according to the number of controls to form a control signal sequence corresponding to the vehicle control signal; according to the preset control cycle, sending the vehicle control signals in the control signal sequence to the vehicle terminal in sequence, triggering the vehicle terminal to control each headlight unit of the vehicle terminal according to the received headlight status.
[0011] In one embodiment of the present application, each headlight unit in the vehicle cluster is controlled according to the headlight status and the duration of the status, including: in response to the duration of the status corresponding to the vehicle control signal, the vehicle control signal is sent to the vehicle terminal corresponding to the vehicle control signal, triggering the vehicle terminal to control each headlight unit of the vehicle terminal according to the received headlight status, wherein the time point of sending the vehicle control signal is determined as the sending time point; if the sending duration between the sending time point and the current time point is greater than or equal to the duration of the status corresponding to the vehicle control signal, then a new vehicle control signal is sent to the vehicle terminal at the current time point.
[0012] In one embodiment of the present application, obtaining an array control signal corresponding to a light array includes: performing data acquisition through a signal output port of an array control terminal to obtain an original control signal, wherein the array control terminal is configured to send the original control signal to the light array through the signal output port; performing data extraction from the original control signal to obtain a current signal identifier corresponding to the original control signal; if the current signal identifier and a historical signal identifier are different, using the current signal identifier as a new historical signal identifier, determining the original control signal as an array control signal, and storing the array control signal in a preset initial buffer; if the current signal identifier and the historical signal identifier are the same, performing a match from the initial buffer according to the current signal identifier to obtain an array control signal corresponding to the current signal identifier; if the array control signal corresponding to the current signal identifier is the same as the original control signal, discarding the original control signal; if the array control signal corresponding to the current signal identifier is different from the original control signal, using the current signal identifier as a new historical signal identifier, determining the original control signal as the array control signal, and storing the array control signal in a preset initial buffer.
[0013] In one embodiment of the present application, obtaining an array control signal corresponding to a light array includes: obtaining a light array image corresponding to the light array; identifying the lamp status corresponding to each of the lamp units according to the light array image, and generating an array control signal corresponding to the light array according to the lamp status.
[0014] The present application also provides a headlight unit control system for a vehicle cluster, wherein the vehicle cluster includes multiple vehicle terminals, and the vehicle terminals are provided with headlight units. The system includes: an acquisition module for acquiring an array control signal corresponding to a light array, wherein the light array includes lamp units corresponding to each of the headlight units, and the array control signal carries a lamp state corresponding to each of the lamp units; a conversion module for converting each lamp state in the array control signal into a headlight state corresponding to the headlight unit, wherein the data length corresponding to the headlight state is smaller than the data length corresponding to the lamp state; a determination module for detecting the switching time points of the headlight state to determine the state duration corresponding to the headlight state according to the time difference between the switching time points; and a control module for controlling each headlight unit in the vehicle cluster according to the headlight state and the state duration.
[0015] The present application also provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the above method.
[0016] Beneficial effects of this application: By acquiring the array control signal corresponding to the light array, the state of each lamp in the array control signal is converted into the state of the corresponding light unit. The data length corresponding to the light state is shorter than the data length corresponding to the lamp state. Then, by detecting the switching time points of the light state, the state duration of the light state is determined based on the time difference between the switching time points. Thus, each light unit in the vehicle cluster is controlled according to the light state and the state duration. In this way, not only the data length of the control signal is shortened by converting the lamp state to the light state with a shorter data length, but also the data redundancy caused by the continuous transmission of the array control signal is reduced by determining the state duration. Thus, the data volume of the control signal is reduced in two ways, which makes data transmission easier. This enables the vehicle cluster to be controlled via a wireless network without the need for physical wiring control, thereby reducing the control cost of the vehicle cluster on the light units. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be derived from these drawings without inventive effort.
[0018] In the attached figure: Figure 1 This is a flow chart of a method for controlling a vehicle light unit in a vehicle cluster according to an embodiment of the present application; Figure 2 This is a flow chart of a method for acquiring an array control signal in an embodiment of the present application; Figure 3 is a schematic diagram of a vehicle light state and a lamp state in an embodiment of the present application; Figure 4 is a flow chart of a method for determining a vehicle light status in an embodiment of the present application; Figure 5 This is a flow chart of a method for determining the duration of a state in an embodiment of the present application; Figure 6 This is a schematic structural diagram of a vehicle light unit control system for a vehicle cluster according to an embodiment of the present application; Figure 7 It is a structural diagram of a vehicle terminal in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following describes the embodiments of the present application through specific examples. Those skilled in the art can easily understand other advantages and functions of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. The following embodiments and features in the embodiments can be combined with each other without conflict.
[0020] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. The drawings only show components related to the present application and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.
[0021] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0022] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate for the embodiments of the present application described herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.
[0023] Unless otherwise stated, the term "plurality" means two or more.
[0024] In this application, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0025] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0026] Combine Figure 1 As shown, the present application provides a vehicle light unit control method for a vehicle cluster, wherein the vehicle cluster includes multiple vehicle terminals, each of which is provided with a vehicle light unit. The method includes: Step S101, obtaining an array control signal corresponding to the light array; The light array includes lamp units corresponding to the respective lamp units, and the array control signal carries the lamp status corresponding to the respective lamp units; Step S102, converting the status of each lamp in the array control signal into the status of the lamp corresponding to the lamp unit; Among them, the data length corresponding to the vehicle light state is smaller than the data length corresponding to the lamp state; Step S103, detecting the switching time points of the vehicle light states to determine the duration of the state corresponding to the vehicle light state according to the time difference between the switching time points; Step S104 : controlling each light unit in the vehicle cluster according to the light status and the duration of the status.
[0027] The vehicle light unit control method provided in this application obtains an array control signal corresponding to a light array, converts the state of each lamp in the array control signal into the corresponding light state of the light unit, and the data length corresponding to the light state is shorter than the data length corresponding to the lamp state. The method then detects the switching time points of the light states and determines the state duration of the light state based on the time difference between the switching time points. Thus, each light unit in the vehicle cluster is controlled based on the light state and the state duration. This method not only reduces the data length of the control signal by converting the lamp state to the light state with a shorter data length, but also reduces data redundancy caused by the continuous transmission of the array control signal by determining the state duration. This reduces the data volume of the control signal and the difficulty of data transmission in two ways, enabling vehicle clusters to be controlled via a wireless network without the need for physical wiring, thereby reducing the control cost of the vehicle cluster's light units.
[0028] Optionally, obtaining an array control signal corresponding to the light array includes: collecting data through a signal output port of the array control end to obtain an original control signal, wherein the array control end is used to send the original control signal to the light array through the signal output port; extracting data from the original control signal to obtain a current signal identifier corresponding to the original control signal; if the current signal identifier and the historical signal identifier are different, using the current signal identifier as a new historical signal identifier, determining the original control signal as the array control signal, and storing the array control signal in a preset initial buffer area; if the current signal identifier and the historical signal identifier are the same, matching from the initial buffer area according to the current signal identifier to obtain an array control signal corresponding to the current signal identifier; if the array control signal corresponding to the current signal identifier is the same as the original control signal, discarding the original control signal; if the array control signal corresponding to the current signal identifier is different from the original control signal, using the current signal identifier as a new historical signal identifier, determining the original control signal as the array control signal, and storing the array control signal in a preset initial buffer area.
[0029] In some embodiments, the headlight units in the vehicle cluster are mapped to lamp units to form a light array. The vehicle cluster receives an array control signal corresponding to the light array, and each channel in the array control signal is allocated to each headlight unit according to the correspondence between the lamp units and the headlight units.
[0030] In some embodiments, a DMX control system is used to program the vehicle light units through the DMX512 protocol to generate array control signals, wherein the array control signals are composed of a data packet or a data domain (Universe), and the data packet includes channels corresponding to 512 lighting units respectively. The data length of each channel is one byte, that is, one channel is used to represent 256 brightness states of a lighting unit.
[0031] In some embodiments, the DMX control system uses wired network broadcasting to send array control signals to the light array in accordance with the Art-Net (Artistic Network) network protocol, wherein the signal output port includes port 6454; by monitoring the DMX control system in the local area network, the array control signal corresponding to the light array is obtained from port 6454.
[0032] In some embodiments, since the array control signal does not contain time data, the DMX control system needs to continuously send the array control signal to achieve continuous control of the light array. Therefore, there will be a large number of data packets in the array control signal, and the array control signal needs to be deduplicated first.
[0033] In some embodiments, an initial buffer is created for the original control signal; a subnet identifier and a domain identifier are extracted from the original control signal to generate a current signal identifier corresponding to the original control signal; if the historical signal identifier in the initial buffer is different from the current signal identifier, the current signal identifier is used as a new historical signal identifier, the original control signal is used as a new array control signal, and the new historical signal identifier and the new array control signal are stored in the initial buffer in the form of a key-value pair; if the historical signal identifier and the current signal identifier are the same, the original control signal is discarded.
[0034] Combine Figure 2 As shown, the present application provides a method for obtaining an array control signal, comprising: Step S201, obtaining an original control signal; Step S202: extracting the subnet identifier and the domain identifier from the original control signal to generate a current signal identifier corresponding to the original control signal; Step S203, determine whether the current signal identifier and the historical signal identifier are the same, if so, jump to step S204, if not, jump to step S205; Step S204, storing the current signal identifier and the original control signal in the initial buffer in the form of a key-value pair; The current signal identifier is used as a new historical signal identifier, and the original control signal is determined as the array control signal.
[0035] Step S205, matching from the initial buffer area according to the current signal identifier to obtain the array control signal corresponding to the current signal identifier; Step S206, determining whether the array control signal corresponding to the current signal identifier is the same as the original control signal, if so, jump to step S207, if not, jump to step S204; Step S207: discard the original control signal.
[0036] Optionally, obtaining an array control signal corresponding to the light array includes: obtaining a light array image corresponding to the light array; identifying the lamp status corresponding to each lamp unit according to the light array image, so as to generate an array control signal corresponding to the light array according to the lamp status.
[0037] In some embodiments, a light array image corresponding to the light array is obtained, each lamp unit is identified from the light array image, and the lamp state corresponding to the lamp unit is determined based on the brightness of the lamp unit in the light array image, thereby generating an array control signal corresponding to the light array through all identified lamp states.
[0038] In some embodiments, an industrial camera is provided in front of the light array, and the industrial camera is used to capture images of the light array to obtain a light array image; the light array image is preprocessed, wherein the image preprocessing includes distortion correction, Gaussian filtering, etc.; a grid positioning method or a contour detection algorithm is used to identify the lamp area corresponding to each lamp unit in the light array; the V (Value) channel of the HSV color space (Hue / Saturation / Value) is used to perform brightness analysis to extract the average brightness value of the lamp area; the lamp status corresponding to the lamp unit is determined based on the average brightness value of the lamp area; and according to a preset acquisition cycle, an array control signal corresponding to the light array is periodically generated based on all the acquired lamp statuses.
[0039] Optionally, a state correspondence between the lamp state and the vehicle light state is obtained, including: the types corresponding to the lamp state include multiple brightness states, and the types corresponding to the vehicle light state include an on state and an off state; the brightness states are arranged in order from large to small to obtain a brightness state sequence, and the brightness state sequence is divided into a high-brightness interval and a low-brightness interval in turn; a correspondence between the on state and the high-brightness interval is established, and a correspondence between the off state and the low-brightness interval is established to generate a state correspondence between the lamp state and the vehicle light state.
[0040] In some embodiments, the lamp state of a lamp unit has 256 brightness states, and the headlight state of a headlight unit only includes the on state 1 and the off state 0; the lowest brightness state 0x00 is taken as the low brightness interval, and the low brightness interval of the lamp state corresponds to the off state 0 of the headlight state; the brightness state outside the low brightness interval is determined as the high brightness interval, and the high brightness interval of the lamp state corresponds to the on state 1 of the headlight state.
[0041] Optionally, each lamp state in the array control signal is converted into a headlight state corresponding to the headlight unit, including: obtaining a state correspondence between the lamp state and the headlight state; if the vehicle terminal is provided with multiple headlight units, determining the signal splitting granularity according to the number of headlight units of the vehicle terminal; splitting the array control signal according to the signal splitting granularity to obtain the lamp state corresponding to each vehicle terminal; converting each lamp state corresponding to the vehicle terminal according to the state correspondence to obtain a vehicle control signal corresponding to the vehicle terminal, wherein the vehicle control signal includes each headlight state corresponding to the vehicle terminal.
[0042] In some embodiments, the vehicle terminal is provided with a plurality of light units, for example, a low beam light, a brake light, a left hazard warning light, a right hazard warning light, a front position light, a rear position light, a front ISD light, a rear ISD light, etc.; if the vehicle terminal includes 8 light units, the channels corresponding to the 8 light units are used as a group of lamp states corresponding to the vehicle terminal; if a group of data packets of the array control signal includes 512 channels, then one data packet includes the lamp states corresponding to 64 vehicle terminals respectively.
[0043] Combine Figure 3 As shown, if the vehicle terminal includes 8 headlight units, the data length of the vehicle control signal is one byte, that is, 8 bits, wherein each bit carries the headlight status corresponding to a headlight unit, 0 represents the headlight status is off, and 1 represents the headlight status is on.
[0044] In some embodiments, a state correspondence between the lamp state and the vehicle light state is obtained, wherein if the channel content corresponding to the lamp state is 0x00, the bit corresponding to the vehicle light state is 0; if the channel content corresponding to the lamp state is not 0x00, the bit corresponding to the vehicle light state is 1.
[0045] Combine Figure 4 As shown, the present application provides a method for determining a vehicle light status, comprising: Step S401, splitting the array control signal according to the signal splitting granularity to obtain multiple lamp states corresponding to the vehicle terminal; Step S402, determining the status of each lamp as a state to be determined; Step S403, determine whether the status to be determined is 0x00, if so, jump to step S404, if not, jump to step S405; Step S404, determine the vehicle light state corresponding to the state to be determined as 0, and jump to step S406; Step S405: determine the vehicle light state corresponding to the state to be determined as 1, and jump to step S406; Step S406: Generate a vehicle control signal corresponding to the vehicle terminal according to the status of each vehicle lamp.
[0046] Optionally, the switching time points of the headlight status are detected to determine the duration of the status corresponding to the headlight status based on the time difference between the switching time points, including: if a vehicle control signal corresponding to the vehicle terminal is received, an intermediate buffer area is obtained; if no cache signal exists in the intermediate buffer area, the vehicle control signal is used as a cache signal and stored in the intermediate buffer area; if a cache signal exists in the intermediate buffer area, calculation is performed based on the timestamp corresponding to the cache signal and the timestamp corresponding to the vehicle control signal to obtain the duration of the status corresponding to the cache signal, and the vehicle control signal is used as a new cache signal to update the intermediate buffer area.
[0047] In some embodiments, due to the nature of the DMX512 protocol, the array control signal does not contain time information. Instead, the lamp status of the light array is refreshed by continuously sending the full array control signal, resulting in a large number of repeated array control signals. After receiving the array control signal, the state timing duration of the vehicle light state is calculated, and the control instruction is sent when the vehicle light state reaches the state control duration, or the sending frequency of the control instruction is reduced through a preset refresh cycle, thereby streamlining repeated control instructions, avoiding data congestion, and realizing wireless network control of vehicle clusters.
[0048] In some embodiments, during the acquisition phase of the array control signal, duplicate messages have been filtered and a correspondence between the headlight unit and the lamp unit has been established. Therefore, when the first headlight state of any headlight unit is acquired, the timestamp of the array control signal is cached, and the next time the first headlight state of the headlight unit is received, the timestamp of the array control signal is recorded again, and based on the time difference between the two, the duration of the state corresponding to the first headlight state is determined.
[0049] Combine Figure 5 As shown, the present application provides a method for determining the duration of a state, including: Step S501, obtaining a vehicle control signal corresponding to a vehicle terminal; Step S502, determine whether the intermediate buffer area includes a buffered signal, if so, jump to step S503, if not, jump to step S505; Step S503, calculating based on the timestamp corresponding to the buffered signal and the timestamp corresponding to the vehicle control signal to obtain the duration of the state corresponding to the buffered signal; The duration of the state corresponding to the vehicle control signal is calculated according to the preset control cycle to obtain the number of control times corresponding to the vehicle control signal; wherein the vehicle control signal is copied according to the control times to form a control signal sequence corresponding to the vehicle control signal; wherein, according to a preset control cycle, the vehicle control signals in the control signal sequence are sequentially sent to the vehicle terminal, triggering the vehicle terminal to control each lamp unit of the vehicle terminal according to the received lamp state; Step S504: Using the vehicle control signal as a new buffer signal to update the intermediate buffer area.
[0050] Step S505: The vehicle control signal is used as a buffer signal and stored in an intermediate buffer area.
[0051] Optionally, each headlight unit in the vehicle cluster is controlled according to the headlight status and the duration of the status, including: calculating the duration of the status corresponding to the vehicle control signal according to a preset control cycle to obtain the number of controls corresponding to the vehicle control signal; copying the vehicle control signal according to the number of controls to form a control signal sequence corresponding to the vehicle control signal; according to the preset control cycle, sending the vehicle control signals in the control signal sequence to the vehicle terminal in sequence, triggering the vehicle terminal to control each headlight unit of the vehicle terminal according to the received headlight status.
[0052] In some embodiments, since the state duration corresponding to the first headlight state needs to be calculated based on the timestamp corresponding to the second headlight state, there is a time delay in the control of the headlight state, and the vehicle control signal needs to be stored in the target buffer area. If the state duration corresponding to the headlight state is obtained in any vehicle control signal, the state duration is divided by the preset control period and rounded to obtain the number of controls. The vehicle control signal is copied in the target buffer area according to the number of controls to obtain a control signal sequence, and the control signal sequence is stored in the target buffer area to pop out the vehicle control signal from the target buffer area and send it to the vehicle cluster. Moreover, if a new state duration is obtained, the new vehicle control signal is appended to the target buffer area.
[0053] In some embodiments, the preset control period is 100ms (milliseconds). If the light status in the vehicle control signal is 1, the light unit corresponding to the light status will be continuously on for 100ms. If the light status in the vehicle control signal is 0, the light unit corresponding to the light status will be continuously off for 100ms.
[0054] Optionally, each headlight unit in the vehicle cluster is controlled according to the headlight status and the duration of the status, including: in response to the duration of the status corresponding to the vehicle control signal, the vehicle control signal is sent to the vehicle terminal corresponding to the vehicle control signal, triggering the vehicle terminal to control each headlight unit of the vehicle terminal according to the received headlight status, wherein the time point of sending the vehicle control signal is determined as the sending time point; if the sending duration between the sending time point and the current time point is greater than or equal to the duration of the status corresponding to the vehicle control signal, then the new vehicle control signal is sent to the vehicle terminal at the current time point.
[0055] In some embodiments, a vehicle control signal is sent to the corresponding vehicle terminal, and the sending time point A is recorded; if the state corresponding to the vehicle control signal is obtained to last for 10s (seconds), then if the sending time between the current time point and the sending time point is greater than or equal to 10s, a new vehicle control signal is sent to the vehicle terminal at the current time point.
[0056] Combine Figure 6 As shown, the present application provides a headlight unit control system for a vehicle cluster, characterized in that the vehicle cluster includes multiple vehicle terminals, the vehicle terminals are provided with headlight units, and the system includes an acquisition module 601, a conversion module 602, a determination module 603 and a control module 604.
[0057] The acquisition module 601 is used to acquire an array control signal corresponding to the light array, wherein the light array includes lamp units corresponding to each lamp unit, and the array control signal carries the lamp status corresponding to each lamp unit.
[0058] The conversion module 602 is used to convert each lamp state in the array control signal into a lamp state corresponding to the lamp unit, wherein the data length corresponding to the lamp state is smaller than the data length corresponding to the lamp state.
[0059] The determination module 603 is configured to detect the switching time points of the vehicle light states to determine the state duration corresponding to the vehicle light states according to the time difference between the switching time points.
[0060] The control module 604 is used to control each light unit in the vehicle cluster according to the light status and the duration of the status.
[0061] The vehicle light unit control method provided in this application obtains an array control signal corresponding to a light array, converts the state of each lamp in the array control signal into the corresponding light state of the light unit, and the data length corresponding to the light state is shorter than the data length corresponding to the lamp state. The method then detects the switching time points of the light states and determines the state duration of the light state based on the time difference between the switching time points. Thus, each light unit in the vehicle cluster is controlled based on the light state and the state duration. This method not only reduces the data length of the control signal by converting the lamp state to the light state with a shorter data length, but also reduces data redundancy caused by the continuous transmission of the array control signal by determining the state duration. This reduces the data volume of the control signal and the difficulty of data transmission in two ways, enabling vehicle clusters to be controlled via a wireless network without the need for physical wiring, thereby reducing the control cost of the vehicle cluster's light units.
[0062] The present application also provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the above method.
[0063] Figure 7 The following is a schematic diagram showing the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application. Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0064] like Figure 7As shown, computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in read-only memory (ROM) 702 or programs loaded from storage 708 into random access memory (RAM) 703. RAM 703 also stores various programs and data required for system operation. CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.
[0065] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, and the like; an output section 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 708 including devices such as a hard disk; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. Removable media 711, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 710 as needed, so that computer programs read from the media can be installed in the storage section 708 as needed.
[0066] The electronic device disclosed in this embodiment includes a processor, a memory, a transceiver, and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program, so that the electronic device executes each step of the above method.
[0067] The above description and the accompanying drawings sufficiently illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Portions and subsamples of some embodiments may be included in or replace portions and subsamples of other embodiments. Moreover, the terms used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and / or" as used in this application means any and all possible combinations including one or more of the associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated subsamples, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other subsamples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0068] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Technicians can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0069] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices and equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units may be merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or ignoring or not executing some sub-samples. In addition, the coupling or direct coupling or communication connection shown or discussed between each other may be through some interface, or the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to implement the present embodiments according to actual needs. In addition, the functional units in this application may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.
[0070] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in an order different from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. Each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or action, or may be implemented using a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling a vehicle light unit for a vehicle cluster, characterized in that: The vehicle cluster includes a plurality of vehicle terminals, each of which is provided with a vehicle light unit, and the method includes: Obtaining an array control signal corresponding to a light array, wherein the light array includes lamp units corresponding to the respective lamp units, and the array control signal carries the lamp status corresponding to the respective lamp units; Converting each lamp state in the array control signal into a lamp state corresponding to the lamp unit, wherein the data length corresponding to the lamp state is smaller than the data length corresponding to the lamp state; By detecting the switching time points of the vehicle light state, the duration of the state corresponding to the vehicle light state is determined according to the time difference between the switching time points; Each lamp unit in the vehicle cluster is controlled according to the lamp state and the duration of the state.
2. The method according to claim 1, characterized in that Converting the states of the lamps in the array control signal into the corresponding states of the lamp units, including: Obtaining a state correspondence between the lamp state and the vehicle light state; If the vehicle terminal is provided with a plurality of headlight units, the signal splitting granularity is determined according to the number of headlight units of the vehicle terminal; Splitting the array control signal according to the signal splitting granularity to obtain the lamp status corresponding to each of the vehicle terminals; The states of the lamps corresponding to the vehicle terminal are converted according to the state correspondence to obtain a vehicle control signal corresponding to the vehicle terminal, wherein the vehicle control signal includes the states of the lamps corresponding to the vehicle terminal.
3. The method according to claim 2, characterized in that Obtaining a state correspondence between the lamp state and the vehicle light state, including: The types corresponding to the lamp status include multiple brightness states, and the types corresponding to the vehicle light status include on state and off state; Arranging the brightness states in descending order to obtain a brightness state sequence, and dividing the brightness state sequence into a high brightness interval and a low brightness interval; A corresponding relationship between the on state and the high brightness interval is established, and a corresponding relationship between the off state and the low brightness interval is established, so as to generate a state corresponding relationship between the lamp state and the vehicle light state.
4. The method according to claim 2, characterized in that Detecting the switching time points of the vehicle light states to determine the state duration corresponding to the vehicle light states according to the time difference between the switching time points includes: If a vehicle control signal corresponding to the vehicle terminal is received, obtaining an intermediate buffer area; If no buffer signal exists in the intermediate buffer area, the vehicle control signal is used as a buffer signal and stored in the intermediate buffer area; If there is a cached signal in the intermediate cache area, calculation is performed based on the timestamp corresponding to the cached signal and the timestamp corresponding to the vehicle control signal to obtain the state duration corresponding to the cached signal, and the intermediate cache area is updated using the vehicle control signal as a new cached signal.
5. The method according to claim 4, characterized in that Controlling each light unit in the vehicle cluster according to the light state and the duration of the state includes: Calculating the duration of the state corresponding to the vehicle control signal according to a preset control cycle to obtain the number of control times corresponding to the vehicle control signal; duplicating the vehicle control signal according to the control number of times to form a control signal sequence corresponding to the vehicle control signal; According to the preset control cycle, the vehicle control signals in the control signal sequence are sequentially sent to the vehicle terminal, triggering the vehicle terminal to control each headlight unit of the vehicle terminal according to the received headlight status.
6. The method according to claim 4, characterized in that Controlling each light unit in the vehicle cluster according to the light state and the duration of the state includes: In response to a duration of the state corresponding to the vehicle control signal, sending the vehicle control signal to a vehicle terminal corresponding to the vehicle control signal, triggering the vehicle terminal to control each headlight unit of the vehicle terminal according to the received headlight state, wherein the time point of sending the vehicle control signal is determined as the sending time point; If the sending duration between the sending time point and the current time point is greater than or equal to the state duration corresponding to the vehicle control signal, a new vehicle control signal is sent to the vehicle terminal at the current time point.
7. The method according to any one of claims 1 to 6, characterized in that Get the array control signal corresponding to the light array, including: Acquire data through a signal output port of an array control terminal to obtain an original control signal, wherein the array control terminal is used to send the original control signal to the light array through the signal output port; Extracting data from the original control signal to obtain a current signal identifier corresponding to the original control signal; If the current signal identifier and the historical signal identifier are different, the current signal identifier is used as a new historical signal identifier, the original control signal is determined as an array control signal, and the array control signal is stored in a preset initial buffer area; If the current signal identifier and the historical signal identifier are the same, matching is performed from the initial buffer area according to the current signal identifier to obtain the array control signal corresponding to the current signal identifier; If the array control signal corresponding to the current signal identifier is the same as the original control signal, discarding the original control signal; If the array control signal corresponding to the current signal identifier is different from the original control signal, the current signal identifier is used as a new historical signal identifier, the original control signal is determined as the array control signal, and the array control signal is stored in a preset initial buffer area.
8. The method according to any one of claims 1 to 6, characterized in that Get the array control signal corresponding to the light array, including: Get the light array image corresponding to the light array; The lamp states corresponding to the respective lamp units are identified according to the light array image, so as to generate array control signals corresponding to the light array according to the lamp states.
9. A vehicle light unit control system for a vehicle cluster, characterized in that: The vehicle cluster includes a plurality of vehicle terminals, each of which is provided with a vehicle light unit. The system includes: an acquisition module, configured to acquire an array control signal corresponding to a light array, wherein the light array includes lamp units corresponding to the respective lamp units, and the array control signal carries the lamp status corresponding to the respective lamp units; a conversion module, configured to convert each lamp state in the array control signal into a lamp state corresponding to the lamp unit, wherein the data length corresponding to the lamp state is smaller than the data length corresponding to the lamp state; a determination module, configured to detect the switching time points of the vehicle light state and determine the duration of the state corresponding to the vehicle light state according to the time difference between the switching time points; A control module is used to control each headlight unit in the vehicle cluster according to the headlight state and the duration of the state.
10. An electronic device, characterized in that: include: processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 8.