CN114245548A - Atmosphere lamp control system based on W2R and atmosphere lamp - Google Patents

Atmosphere lamp control system based on W2R and atmosphere lamp Download PDF

Info

Publication number
CN114245548A
CN114245548A CN202111564106.0A CN202111564106A CN114245548A CN 114245548 A CN114245548 A CN 114245548A CN 202111564106 A CN202111564106 A CN 202111564106A CN 114245548 A CN114245548 A CN 114245548A
Authority
CN
China
Prior art keywords
segment
controller
data
atmosphere lamp
control system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111564106.0A
Other languages
Chinese (zh)
Inventor
刘振
叶菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fudan University
Original Assignee
Fudan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fudan University filed Critical Fudan University
Priority to CN202111564106.0A priority Critical patent/CN114245548A/en
Publication of CN114245548A publication Critical patent/CN114245548A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/18Controlling the light source by remote control via data-bus transmission

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a control system of an atmosphere lamp based on W2R and the atmosphere lamp, belonging to the technical field of automobile light control. The control system includes: one end of the CAN communication bus is connected with a control panel of the automobile; one end of the CAN transceiver is connected with the other end of the CAN communication bus; one end of the CAN controller is connected with the CAN transceiver; one end of the atmosphere lamp main controller is connected with the CAN controller; one end of the first LIN transceiver is connected with the atmosphere lamp main controller; a second LIN transceiver, one end of which is connected with the first LIN transceiver; and one end of the atmosphere lamp controller is connected with the second LIN transceiver, and the other end of the atmosphere lamp controller is connected to the atmosphere lamp to control the start and stop of the atmosphere lamp. The control system and the atmosphere lamp can improve the control efficiency of the atmosphere lamp.

Description

Atmosphere lamp control system based on W2R and atmosphere lamp
Technical Field
The invention relates to the technical field of automobile light control, in particular to a control system of an atmosphere lamp based on W2R and the atmosphere lamp.
Background
The existing automobile atmosphere lamp node only plays the role of a sub-node, cannot serve as a master node to send a synchronous interval segment and a synchronous segment, does not have CAN bus expansion interfaces such as SPI or I2C and the like, and cannot integrate an LIN bus master node, an LIN bus sub-node and a CAN bus node into a system, namely the integration level of the existing automobile atmosphere lamp system is not high enough.
And if only the atmosphere lamp sub-node is provided and no atmosphere lamp controller is provided, the flexibility degree of the atmosphere lamp control is not high, and the LIN bus application layer protocol suitable for the current atmosphere lamp control format cannot be defined. If a special LIN/CAN gateway is used as an atmosphere lamp sub-controller, the special LIN/CAN gateway cannot be efficiently fused with atmosphere lamp sub-nodes and is too high in cost.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a control system for an atmosphere lamp based on W2R and an atmosphere lamp, which can improve the control efficiency of the atmosphere lamp.
In order to achieve the above object, an embodiment of the present invention provides a control system for an ambience lamp based on W2R, including:
one end of the CAN communication bus is connected with a control panel of the automobile;
one end of the CAN transceiver is connected with the other end of the CAN communication bus;
one end of the CAN controller is connected with the other end of the CAN transceiver;
one end of the atmosphere lamp main controller is connected with the other end of the CAN controller;
one end of the first LIN transceiver is connected with the other end of the atmosphere lamp main controller;
a second LIN transceiver, one end of which is connected with the other end of the first LIN transceiver;
and one end of the atmosphere lamp controller is connected with the other end of the second LIN transceiver, and the other end of the atmosphere lamp controller is used for being connected to the atmosphere lamp to control the start and stop of the atmosphere lamp.
Optionally, the ambience lamp main controller comprises:
the SPI module is connected with the CAN controller and used for dividing a master device control signal transmitted by the CAN communication bus into slave device control signals;
and the UART module is connected with the SPI module and is used for converting the control signal of the slave equipment from a CAN mode to a LIN mode.
Optionally, the minimum data cell of the first LIN transceiver comprises:
the first synchronous interval section is internally provided with a message header for indicating the generation and/or the start of a new frame;
the synchronous section is arranged behind the first synchronous interval section and used for representing the clock information of the current control signal;
the protected ID segment is arranged behind the synchronization segment and is used for representing a corresponding atmosphere controller of a current control signal;
the data segment is arranged behind the protected ID segment and is used for representing the data content corresponding to the current control signal;
and the checksum section is arranged behind the data section and is used for indicating whether the current data section is complete or not.
Optionally, the smallest data cell of the second LIN transceiver comprises:
a second sync interval for indicating the start of a new frame;
the synchronous section is arranged behind the second synchronous interval section and is used for representing the clock information of the current control signal;
the protected ID segment is arranged behind the synchronization segment and is used for representing a corresponding atmosphere controller of a current control signal;
the data segment is arranged behind the protected ID segment and is used for representing the data content corresponding to the current control signal;
and the checksum section is arranged behind the data section and is used for indicating whether the current data section is complete or not.
Optionally, the first LIN transceiver is to:
sending a message header to the outside;
judging whether the currently received state identification signal of the protected ID segment is 0 or not;
under the condition that the state identification signal of the currently received protected ID segment is judged to be 0, sending the received message data from the message header to the checksum;
and reading the message data between the received message header and the checksum under the condition of judging that the state identification signal of the currently received protected ID segment is 0.
Optionally, the second LIN transceiver is to:
receiving a BREAK signal of a synchronous interval segment of the signal to enter an interruption state;
performing a clock synchronization operation according to a synchronization segment of the received signal;
judging whether the state identification signal of the protected ID section of the received signal is 0 or not;
under the condition that the state identification signal of the protected ID segment of the received signal is judged to be 0, sending the received message data from the message header to the checksum;
and reading the message data between the received message header and the checksum under the condition that the state identification signal of the protected ID segment of the received signal is judged not to be 0.
Optionally, the CAN controller is configured to:
the time share of the transmitted message data is calculated according to equation (1),
Figure BDA0003421277960000031
wherein TQ is the time fraction, BRP is baud rate prescaler, FsocIs the main frequency of the CAN controller.
Optionally, the CAN controller is configured to:
the bit rate of the transmitted message data is calculated according to equation (2),
Figure BDA0003421277960000041
where BR is the bit rate, PR is the propagation segment, PS1 is the first phase buffer segment, and PS2 is the second phase buffer segment.
In another aspect, the invention provides an ambience lamp comprising an ambience lamp body and a control system as described in any one of the above.
Through the technical scheme, the atmosphere lamp control system and the atmosphere lamp based on W2R replace a single communication line of the atmosphere lamp in the prior art by constructing the communication control system consisting of the CAN communication bus, the CAN transceiver, the CAN controller and the LIN transceiver, so that the design integration level and the control efficiency of the atmosphere lamp are improved.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a block diagram of a W2R-based atmosphere lamp control system according to one embodiment of the invention;
FIG. 2 is a block diagram of a control system for an atmosphere lamp based on W2R according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a minimum data cell of a first LIN transceiver, according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a minimum data cell of a second LIN transceiver, according to an embodiment of the present invention;
fig. 5 is a flow chart of a method of operation of a first LIN transceiver in accordance with an embodiment of the present invention;
fig. 6 is a flow chart of a second method of LIN transceiver operation according to an embodiment of the present invention;
FIG. 7 is a flow diagram of a method of initialization of a CAN communication bus in accordance with one embodiment of the present invention;
fig. 8 is a flowchart of a method of transmitting data (or message data) of a CAN communication bus according to an embodiment of the present invention;
fig. 9 is a flowchart of a method of receiving data (or message data) of a CAN communication bus according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
In the embodiments of the present invention, unless otherwise specified, the use of directional terms such as "upper, lower, top, and bottom" is generally used with respect to the orientation shown in the drawings or the positional relationship of the components with respect to each other in the vertical, or gravitational direction.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between the various embodiments can be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not be within the protection scope of the present invention.
Fig. 1 is a block diagram illustrating a control system of an atmosphere lamp based on W2R according to an embodiment of the present invention. In this fig. 1, the control system may include a CAN communication bus 01, a CAN transceiver 02, a CAN controller 03, an atmosphere lamp master controller 04, a first LIN transceiver 05, a second LIN transceiver 06, an atmosphere lamp master controller 07.
In the control system shown in fig. 1, one end of the CAN communication bus 01 may be connected to a control panel 08 of the automobile. One end of the CAN transceiver 02 may be connected to the other end of the CAN communication bus 01. One end of the CAN controller 02 is connected to the other end of the CAN transceiver 02. One end of the ambience lamp main controller 03 may be connected with the other end of the CAN controller 02. One end of the first LIN transceiver 05 may be connected to the other end of the atmosphere lamp master controller 03. One end of the second LIN transceiver 06 may be connected to the first LIN transceiver 05. One end of the ambience light controller 07 may be connected to the other end of the second LIN transceiver 06, the other end may be used to connect to a cycling ambience light to control the on-off and display mode of the ambience light.
With this control system, as shown in fig. 1, a control panel 08 of the motor vehicle is connected to a CAN transceiver 02 via a CAN communication bus 01. Since the respective system nodes in the CAN communication bus 01 are equal in communication priority, the respective control panels 08 on the vehicle CAN simultaneously issue control commands to the CAN controller 03 via the CAN communication bus 01 in real time. Compared with the simple master-slave control of the atmosphere lamp in the prior art, the diversification of the input control instruction is improved.
The CAN controller 03 is connected with the atmosphere lamp master controller 04, the atmosphere lamp master controller 04 is connected with the first LIN transceiver 05, and the first LIN transceiver 05 is connected with the second LIN transceivers 06 of each atmosphere lamp sub-node through an LIN communication bus. In the actual use process, the atmosphere lamp needs to maintain a certain time sequence matching to realize the ordered light and shadow effect. In this fig. 1, therefore, a LIN communication bus is required for uniform control. The LIN communication bus is a master-slave controlled serial communication line, which has a lower cost than the conventional CAN communication bus. In the individual devices connected to this LIN communication bus, only one master device can be present, the remaining devices being slave devices, which is well adapted to the control requirements of the ambience lamp. However, since the communication protocol and communication method of the CAN communication bus 01 are different from those of the LIN bus communication, a module for conversion, namely: the block diagram of the control system may also be as shown in fig. 2.
In this fig. 2, the ambience lamp main controller 04 may comprise an SPI module 04a and a UART module 04 b. The SPI module 04a may be connected to the CAN controller 03, and is configured to divide a master device control signal transmitted by the CAN communication bus 01 into slave device control signals. Specifically, the SPI module 04a functions to select, transmit, and receive data, and the like, from and to the master device. The register referred to by the master mode setting module of the SPI module 04a is SPI _ CTL _ REG. Function enabling, master-slave mode setting and chip selection setting of the SPI are realized through setting operation of the register; when an interrupt is turned on, an operation is also set to turn on the interrupt enable bit of the SPI. And judging a BUSY flag bit of the SPI for transmission through reading the SPI _ BUSY _ REG, and writing the SPI _ WRITE _ REG to WRITE the data content required to be transmitted by the SPI when the SPI _ BUSY _ REG is allowed to transmit. The receiving busy flag bit of the SPI is judged through the reading operation of the SPI _ DATA _ RDY _ REG, and when the receiving is allowed, the DATA content received by the SPI is READ through the reading operation of the SPI _ READ _ REG.
The UART module 04b may be connected to the SPI module 04a for converting the slave control signals from the CAN mode to the LIN mode. Specifically, the UART module 04b may be used for a burn program and for converting the slave control signal from the CAN mode to the LIN mode. The UART module 04b may be used to transmit and/or receive data. When the UART module 04a transmits data, first, the value of the register U0_ BUSY _ REG is determined. When the value of the register U0_ BUSY _ REG is 1, it indicates that the serial port is in a BUSY state and data transmission operation cannot be performed; if the value of the register U0_ BUSY _ REG is 0, it indicates that the serial port is in an idle state, and an operation of sending data can be performed. If the value of the register U0_ Data _ RDY _ REG is 1, it indicates that Data can be received; if 0, no data acceptance operation is performed. The transmitted data is written into the register U0_ WRITE _ REG, and the register where the UART receives the data is U0_ READ _ REG.
In this embodiment, the specific structure of the data cells on the LIN communication bus, although it could be in many ways known to those skilled in the art. However, in a preferred example of the present invention, the structure of the smallest data unit of the first LIN transceiver 05 may be as shown in fig. 3, taking into account the requirements of LIN communication and the characteristics of the data carried by the communication packets. In this fig. 3, the first LIN transceiver 05 may include a first sync interval segment 051, a sync segment 052, a protected ID segment 053, a data segment 054, and a checksum segment 055.
Wherein. The first sync interval 051 may have a header built in to indicate the generation and/or start of a new frame. Due to the characteristics of the LIN communication bus, the first LIN transceiver 05 acts as a master device and can therefore send out data units of the first sync interval 051 with a header built-in. The header may indicate the generation of the control signal. In one example of the present invention, the first sync interval 051 may include a dominant flag (logic low) of at least 13 bits to indicate the start of a new frame, and may also include a dominant flag (logic low) of 11 bits to indicate the generation of a new frame.
The sync segment 052 may be set after the first sync interval 051 to represent clock information of the current control signal, so that each LIN controller can ensure certain coordination in receiving or transmitting data. Where the sync segment 052 may represent an 8-bit signal of 0x55, with 4 negative pulse widths for the child nodes to calculate the average of the bit transmission rate. The W2R device supports the automatic baud rate synchronization function, and synchronizes the baud rate of the slave node with the master node, so as to achieve the purpose of time sequence viewing.
The protected ID segment 053 may be placed after the sync segment 052 for representing the corresponding ambience controller of the current control signal. In addition, to ensure that the individual LIN transceivers can determine whether the current message data is being transmitted or received, the protected ID field 053 may also indicate the type of frame, i.e., whether the message data is being transmitted or received. A data segment 054 may be disposed after the protected ID segment 053 for indicating the data content corresponding to the current control signal. The checksum segment 055 may be disposed after the data segment 054 to indicate whether the current data segment is complete. Specifically, the checksum may be equal to the inverted code of the sum of all bytes of the data segment 054. In the case where the code is greater than 0xFF (11111111), the lower eight bits are taken and then 1 is added.
In a preferred example of the present invention, the structure of the smallest data unit of the second LIN transceiver 06 can be as shown in fig. 4, taking into account the requirements of LIN communication and the characteristics of the data carried by the communication messages. In this fig. 4, the second LIN transceiver 06 may include a first sync interval segment 061, a sync segment 062, a protected ID segment 063, a data segment 064, and a checksum segment 065.
Wherein the second sync interval segment 061 may be used to indicate the start of a new frame. Since the second LIN transceiver 06 acts as a slave in the LIN communication bus, this second sync interval segment 061 can only include at least 13 bits of the dominant flag (logic low) to indicate the start of the new frame, and can not include 11 bits of the dominant flag (logic low).
The synchronization segment 062 may be arranged after the first synchronization interval segment 061 to indicate the clock information of the current control signal, so that a certain coordination is ensured for the individual LIN controllers in receiving or transmitting data. The sync segment 062 may represent an 8-bit signal of 0x55, where 4 negative pulse widths are used by the child nodes to calculate an average of the bit transmission rate. The W2R device supports the automatic baud rate synchronization function, and synchronizes the baud rate of the slave node with the master node, so as to achieve the purpose of time sequence viewing.
A protected ID field 063 may be provided after the synchronization field 062 for representing the corresponding ambience controller for the current control signal. In addition, to ensure that the respective LIN transceiver can determine whether the current message data is being transmitted or received, the protected ID field 063 can also indicate the type of frame, i.e., whether the message data is being transmitted or received. A data segment 064 may be provided after the protected ID segment 063 for indicating the data content to which the current control signal corresponds. The checksum segment 065 may be arranged after the data segment 064 to indicate whether the current data segment is complete. In particular, the checksum may be an inverted code equal to the sum of all bytes of the data segment 064. In the case where the code is greater than 0xFF (11111111), the lower eight bits are taken and then 1 is added.
In this embodiment, the workflow of each device in the control system may be in various forms known to those skilled in the art. In a preferred example of the invention, however, the workflow may be such that it includes the steps shown in fig. 5 and 6.
In this fig. 5, the method of operation of the first LIN transceiver 05 may include:
in step S10, the header is sent to the outside;
in step S11, it is determined whether the state identification signal of the currently received protected ID segment is 0;
in step S12, in the case where it is determined that the state identification signal of the currently received protected ID segment is 0, sending the message data between the received message header and the checksum;
in step S13, in the case where it is determined that the status identification signal of the currently received protected ID field is 0, the message data between the received header and the checksum is read.
In this fig. 5, the method of operation of the second LIN transceiver 06 may include:
in step S20, a BREAK signal of the sync interval segment of the signal is received to enter an interrupt state;
in step S21, a clock synchronization operation is performed according to the sync segment of the received signal;
in step S22, it is determined whether the state identification signal of the protected ID segment of the received signal is 0;
in step S23, in the case where it is determined that the state identification signal of the protected ID segment of the received signal is 0, sending the received header to the message data between checksums;
in step S24, in the case where it is determined that the status identification signal of the protected ID field of the received signal is not 0, the message data between the received header and the checksum is read.
Furthermore, for the complete LIN communication bus protocol, in addition to the physical layer and the data link layer, application layer protocols should also be included. The application layer protocol is that according to the system function, the format of the related frame message is defined, and each node analyzes the message according to the convention. In a preferred example of the invention, the identifier and data field format may be, for example, as shown in tables 1 to 3,
TABLE 1
0x0 Data transmission frame
0x3d Data request frame
TABLE 2
Figure BDA0003421277960000111
Figure BDA0003421277960000121
An upgrading mode: DATA4 through DATA7 are 32-bit information written in FLASH at a time.
A calibration mode: DATA4 is a color index, DATA5 is a duty cycle index, and DATA6 through DATA7 are duty cycle information.
The operation mode is as follows: DATA4 is a color label.
TABLE 3
Figure BDA0003421277960000122
Figure BDA0003421277960000131
In this embodiment, the CAN communication bus may be a multi-master pass-through bus consisting of two twisted wires (CAN _ H and CAN _ L). The CAN communication bus may be of five modes. The commonly used modes comprise a setting mode and a normal mode, each mode corresponds to a different numerical value mode, and the value of a specific register is modified through a bit modification function Fix under different numerical values, so that the node enters different modes. Meanwhile, soft reset needs to firstly pull down a CS signal, and a preset prefix of a reset statement is communicated through the SPI to circularly execute an RT _ SPI _ Busy function. When the value bit is returned, the CS signal is pulled high, and the output "reset MCP" indicates that the node has been soft reset.
All nodes on the CAN bus must use the same bit rate, but not all CAN children need to have the same clock frequency, so baud rate prescalers are needed to determine the Time Quanta (TQ), and the time quanta of each bit segment is needed to determine the bit rate. In this embodiment, therefore, the time share of the transmitted message data can be calculated according to equation (1),
Figure BDA0003421277960000132
where TQ is the time share, BRP is the baud rate prescaler, FsocIs the main frequency of the CAN controller. And calculates the bit rate of the transmitted message data according to equation (2),
Figure BDA0003421277960000133
where BR is the bit rate, PR is the propagation segment, PS1 is the first phase buffer segment, and PS2 is the second phase buffer segment.
In addition, the specific flow of the CAN communication bus initialization, data transmission and data reception may be as shown in fig. 7 to 9.
In another aspect, the invention provides an ambience lamp comprising an ambience lamp body and a control system as described in any one of the above.
Through the technical scheme, the atmosphere lamp control system and the atmosphere lamp based on W2R replace a single communication line of the atmosphere lamp in the prior art by constructing the communication control system consisting of the CAN communication bus, the CAN transceiver, the CAN controller and the LIN transceiver, so that the design integration level and the control efficiency of the atmosphere lamp are improved.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solution of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications all belong to the protection scope of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention will not be described separately for the various possible combinations.
Those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a (may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, various different embodiments of the present invention may be arbitrarily combined with each other, and the embodiments of the present invention should be considered as disclosed in the disclosure of the embodiments of the present invention as long as the embodiments do not depart from the spirit of the embodiments of the present invention.

Claims (9)

1. A control system for a W2R based ambience lamp, characterized in that the control system comprises:
one end of the CAN communication bus is connected with a control panel of the automobile;
one end of the CAN transceiver is connected with the other end of the CAN communication bus;
one end of the CAN controller is connected with the other end of the CAN transceiver;
one end of the atmosphere lamp main controller is connected with the other end of the CAN controller;
one end of the first LIN transceiver is connected with the other end of the atmosphere lamp main controller;
a second LIN transceiver, one end of which is connected with the other end of the first LIN transceiver;
and one end of the atmosphere lamp controller is connected with the other end of the second LIN transceiver, and the other end of the atmosphere lamp controller is used for being connected to the atmosphere lamp to control the start and stop of the atmosphere lamp.
2. The control system of claim 1, wherein the atmosphere lamp master controller comprises:
the SPI module is connected with the CAN controller and used for dividing a master device control signal transmitted by the CAN communication bus into slave device control signals;
and the UART module is connected with the SPI module and is used for converting the control signal of the slave equipment from a CAN mode to a LIN mode.
3. The control system of claim 1, wherein the smallest data cell of the first LIN transceiver comprises:
the first synchronous interval section is internally provided with a message header for indicating the generation and/or the start of a new frame;
the synchronous section is arranged behind the first synchronous interval section and used for representing the clock information of the current control signal;
the protected ID segment is arranged behind the synchronization segment and is used for representing a corresponding atmosphere controller of a current control signal;
the data segment is arranged behind the protected ID segment and is used for representing the data content corresponding to the current control signal;
and the checksum section is arranged behind the data section and is used for indicating whether the current data section is complete or not.
4. The control system of claim 1, wherein the smallest data cell of the second LIN transceiver comprises:
a second sync interval for indicating the start of a new frame;
the synchronous section is arranged behind the second synchronous interval section and is used for representing the clock information of the current control signal;
the protected ID segment is arranged behind the synchronization segment and is used for representing a corresponding atmosphere controller of a current control signal;
the data segment is arranged behind the protected ID segment and is used for representing the data content corresponding to the current control signal;
and the checksum section is arranged behind the data section and is used for indicating whether the current data section is complete or not.
5. The control system of claim 1, wherein the first LIN transceiver is to:
sending a message header to the outside;
judging whether the currently received state identification signal of the protected ID segment is 0 or not;
under the condition that the state identification signal of the currently received protected ID segment is judged to be 0, sending the received message data from the message header to the checksum;
and reading the message data between the received message header and the checksum under the condition of judging that the state identification signal of the currently received protected ID segment is 0.
6. The control system of claim 1, wherein the second LIN transceiver is to:
receiving a BREAK signal of a synchronous interval segment of the signal to enter an interruption state;
performing a clock synchronization operation according to a synchronization segment of the received signal;
judging whether the state identification signal of the protected ID section of the received signal is 0 or not;
under the condition that the state identification signal of the protected ID segment of the received signal is judged to be 0, sending the received message data from the message header to the checksum;
and reading the message data between the received message header and the checksum under the condition that the state identification signal of the protected ID segment of the received signal is judged not to be 0.
7. The control system of claim 1, wherein the CAN controller is to:
the time share of the transmitted message data is calculated according to equation (1),
Figure FDA0003421277950000031
wherein TQ is the time fraction, BRP is baud rate prescaler, FsocIs the main frequency of the CAN controller.
8. The control system of claim 1, wherein the CAN controller is to:
the bit rate of the transmitted message data is calculated according to equation (2),
Figure FDA0003421277950000032
where BR is the bit rate, PR is the propagation segment, PS1 is the first phase buffer segment, and PS2 is the second phase buffer segment.
9. An ambience lamp, characterized in that the ambience lamp comprises an ambience lamp body and a control system as claimed in any one of claims 1 to 8.
CN202111564106.0A 2021-12-20 2021-12-20 Atmosphere lamp control system based on W2R and atmosphere lamp Pending CN114245548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111564106.0A CN114245548A (en) 2021-12-20 2021-12-20 Atmosphere lamp control system based on W2R and atmosphere lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111564106.0A CN114245548A (en) 2021-12-20 2021-12-20 Atmosphere lamp control system based on W2R and atmosphere lamp

Publications (1)

Publication Number Publication Date
CN114245548A true CN114245548A (en) 2022-03-25

Family

ID=80759406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111564106.0A Pending CN114245548A (en) 2021-12-20 2021-12-20 Atmosphere lamp control system based on W2R and atmosphere lamp

Country Status (1)

Country Link
CN (1) CN114245548A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960347A (en) * 2006-11-06 2007-05-09 吉林大学 Wireless car borne gateway system
WO2016054965A1 (en) * 2014-10-09 2016-04-14 重庆长安汽车股份有限公司 Transmitting device and method for driving optical communication of led vehicle light
CN106184069A (en) * 2016-07-07 2016-12-07 苏州大学 Automotive electronics micro-controller communications method based on CAN LIN network
CN206749649U (en) * 2017-03-16 2017-12-15 广州汽车集团乘用车有限公司 A kind of automobile atmosphere lamp control device and system
CN109922560A (en) * 2018-12-03 2019-06-21 广州新晨汽车零部件有限公司 A kind of vehicle-mounted atmosphere lamp system of real-time music regular movements control
CN211671016U (en) * 2020-01-19 2020-10-13 宁波华楷电子科技有限公司 Intelligent front ceiling lamp module and system integrating light control in vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960347A (en) * 2006-11-06 2007-05-09 吉林大学 Wireless car borne gateway system
WO2016054965A1 (en) * 2014-10-09 2016-04-14 重庆长安汽车股份有限公司 Transmitting device and method for driving optical communication of led vehicle light
CN106184069A (en) * 2016-07-07 2016-12-07 苏州大学 Automotive electronics micro-controller communications method based on CAN LIN network
CN206749649U (en) * 2017-03-16 2017-12-15 广州汽车集团乘用车有限公司 A kind of automobile atmosphere lamp control device and system
CN109922560A (en) * 2018-12-03 2019-06-21 广州新晨汽车零部件有限公司 A kind of vehicle-mounted atmosphere lamp system of real-time music regular movements control
CN211671016U (en) * 2020-01-19 2020-10-13 宁波华楷电子科技有限公司 Intelligent front ceiling lamp module and system integrating light control in vehicle

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
南金瑞 等: "《汽车单片机及车载总线技术》", 30 June 2020 *
陈恩策等: "基于LIN总线的汽车照明系统软硬件开发", 《电气自动化》 *

Similar Documents

Publication Publication Date Title
RU2596582C2 (en) Method and device for memory size adapted serial data transfer
CN201887792U (en) Multi-protocol conversion gateway
US10649945B1 (en) Non-native digital interface support over a two-wire communication bus
CN105324960A (en) Can fd
US10856199B2 (en) Communication systems with auxiliary master and auxiliary call support functionality
US10852799B2 (en) Adaptive use of multiple power supplies in communication systems
US11343359B2 (en) Data transmission and reception method in vehicle network, and apparatus for the same
CN114039808B (en) CAN/LIN/SENT forwarding protocol of CAN-based multichannel
CN114079591A (en) Battery management system and method for transmitting data in battery management system
CN116529720A (en) Node discovery and configuration in a daisy chain network
CN114245548A (en) Atmosphere lamp control system based on W2R and atmosphere lamp
CN109194512A (en) Looped network intelligent communications device and its configuration method
CN101848062A (en) Analogue quantity output module based on MVB (Multifunction Vehicle Bus) interface and MVB device
CN107222379A (en) A kind of method and apparatus of serial communication
CN112363479B (en) Digital communication transmission method and system between field devices
CN112437061B (en) Out-of-band communication method, system, storage medium and device based on DMX512 protocol
CN102081383B (en) Device and method for secure network protocol for field control
CN202126617U (en) Optical switch control device and control system
CN209858985U (en) LDN-based distributed control system, device and intelligent furniture
CN115080477B (en) Method and system for serial communication
US20030018824A1 (en) Method for generating commands to be interpreted by network controller modules of peripheral devices in electrical systems
KR101593840B1 (en) Method and apparatus for transmitting can frame
CN216648728U (en) Remote dimming controller system
CN112667555B (en) Communication method and device of micro control unit
CN116418621B (en) Multi-split system and communication method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220325

RJ01 Rejection of invention patent application after publication