Cabin intelligent control method, electronic equipment and storage medium
By integrating a brightness sensor and a heat dissipation detection unit into the cabin lighting system, the brightness and attitude angle of the lights are adjusted, solving the problem of mismatch between brightness adjustment and heat dissipation. This achieves intelligent control of the cabin lighting system, improving navigation safety and equipment lifespan.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HAOYU XINNENG (SHENZHEN) TECHNOLOGY CO LTD
- Filing Date
- 2026-02-10
- Publication Date
- 2026-04-14
AI Technical Summary
The existing cabin lighting system suffers from low luminous efficiency and short lifespan due to a mismatch between brightness adjustment and heat dissipation, and it cannot respond to changes in ambient brightness in a timely manner, posing a safety hazard.
The average brightness within a preset time period is obtained by an ambient brightness sensor. Combined with a heat dissipation detection unit and a rotation drive unit, the brightness and attitude angle of the lighting lamp are adjusted to match the heat dissipation capacity, thereby achieving a precise correlation between brightness adjustment and heat dissipation.
It achieves a balance between timely brightness adjustment, safe heat dissipation matching, and flexible attitude adjustment, ensuring navigation operation safety and personnel comfort, reducing energy waste, extending equipment lifespan, and preventing equipment failure.
Smart Images

Figure CN121865474A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of ship cabin management technology, specifically to a ship cabin intelligent control method, electronic device, and storage medium. Background Technology
[0002] During a ship's voyage at sea, the cabin, as the core area for personnel operations, directly impacts navigational safety, operational efficiency, and personnel comfort due to the stability and appropriateness of its lighting system. The marine environment is highly unique, with weather conditions prone to sudden changes, such as alternating sunshine and rain, cloud cover, sea fog, and rapid day-night cycles. This results in drastic and unpredictable fluctuations in the intensity of natural light outside the cabin. Even during the day, sudden severe weather can cause a significant drop in ambient brightness in a short period. In such cases, relying on natural light is insufficient to meet the brightness requirements for operations and inspections within the cabin, necessitating the activation of lighting equipment.
[0003] Currently, most existing ship cabin lighting systems employ fixed brightness control or simple manual adjustment modes. While some systems are equipped with basic brightness sensing functions, they only achieve a crude "turn off when it's bright, turn on when it's dark" control, lacking the ability to finely adapt to changes in ambient brightness. Specifically, in scenarios where daytime ambient brightness is high but there is a risk of sudden changes, existing systems either maintain high-brightness lighting continuously, resulting in inefficient consumption of electrical resources, which does not meet the development requirements of energy-efficient ship navigation; or they simply turn off the lighting. If a sudden weather change causes a sharp drop in ambient brightness, the system cannot respond to brightness adjustment needs in a timely manner, easily leading to safety hazards such as delayed visual adaptation and operational errors.
[0004] Meanwhile, ship cabin lighting is mostly high-power lighting equipment, which generates a lot of heat when it is in operation for a long time. The interior space of the cabin is relatively closed and the heat dissipation conditions are limited. If we only pursue the timeliness of brightness adjustment and ignore the matching heat dissipation capacity of the lighting, blindly increasing the brightness of the lighting will lead to the aggravation of heat accumulation in the equipment. This will not only reduce the luminous efficiency of the lighting and shorten its service life, but in severe cases, it may also cause equipment failure due to overheating, or even induce electrical safety accidents, further affecting the reliability of the ship cabin lighting system. Summary of the Invention
[0005] The main objective of this invention is to provide a smart control method, electronic device, and storage medium for ship cabins, aiming to solve the technical problems of low luminous efficiency and short service life caused by the mismatch between lighting brightness adjustment and heat dissipation in the prior art.
[0006] To achieve the above objectives, in a first aspect, this application provides a cabin intelligent control method applied to a cabin lighting brightness control system. The lighting brightness control system includes a lighting lamp installed on the cabin roof and an ambient brightness sensor inside the cabin. The lighting lamp includes a brightness adjustment unit, a heat dissipation detection unit, and a rotation drive unit. The heat dissipation detection unit includes a first wind speed sensor installed in a first heat dissipation duct of the lighting lamp and a second wind speed sensor installed in a second heat dissipation duct of the lighting lamp. The method includes:
[0007] Obtain the average ambient brightness of the cabin within a preset time period prior to the current moment;
[0008] When the average ambient brightness is greater than or equal to the brightness threshold, the cabin lighting is controlled to enter the brightness adjustment mode.
[0009] In response to the ambient light inside the cabin becoming lower and continuing for a preset duration, a command to increase the brightness of the lighting is triggered.
[0010] Based on the brightness increase command, the current heat dissipation capacity value of the lighting lamp is obtained through the heat dissipation detection unit;
[0011] When the current heat dissipation capacity value is less than or equal to the preset heat dissipation capacity threshold, the rotation drive unit is controlled to drive the lighting lamp to rotate and adjust to the target attitude angle, wherein when the lighting lamp is at the target attitude angle, the heat dissipation capacity value of the lighting lamp is greater than or equal to the preset heat dissipation capacity threshold.
[0012] The lighting lamp is controlled to be at the target attitude angle, and the brightness adjustment unit is controlled to execute the brightness increase command.
[0013] In one possible implementation, obtaining the average ambient brightness of the cabin over a preset time period prior to the current moment includes:
[0014] An ambient brightness time-series curve is generated based on the sensing data from the ambient brightness sensor.
[0015] The average ambient brightness of the cabin within a preset time period prior to the current moment is determined based on the ambient brightness time-series curve.
[0016] In one possible implementation, determining the average ambient brightness of the cabin over a preset time period prior to the current moment based on the ambient brightness time-series curve includes:
[0017] The preset duration is divided into a preset number of consecutive time periods, where the preset number is an integer greater than 1, and the closer the divided time periods are to the current time, the smaller their time span.
[0018] A weighting coefficient is assigned to each time period, wherein the closer the time period is to the current time, the larger the weighting coefficient is assigned to it;
[0019] Based on the ambient brightness time-series curve, the arithmetic mean of the ambient brightness data in each time period is calculated as the representative brightness value for that time period.
[0020] The average ambient brightness is obtained by weighted averaging based on the representative brightness value of each time period and its corresponding weighting coefficient.
[0021] In one possible implementation, obtaining the current heat dissipation capacity value of the lighting lamp through the heat dissipation detection unit includes:
[0022] Obtain the first wind speed value currently collected by the first wind speed sensor and the second wind speed value currently collected by the second wind speed sensor;
[0023] Obtain a first characteristic parameter of the first heat dissipation duct and a second characteristic parameter of the second heat dissipation duct, wherein the first characteristic parameter and / or the second characteristic parameter includes at least one of the duct area and the duct ventilation coefficient.
[0024] The first heat dissipation contribution value is determined based on the first wind speed value, the first characteristic parameter, and the corresponding weighting coefficient.
[0025] The second heat dissipation contribution value is determined based on the second wind speed value, the second characteristic parameter, and the corresponding weighting coefficient.
[0026] The current heat dissipation capacity of the lighting lamp is determined based on the first heat dissipation contribution value and the second heat dissipation contribution value.
[0027] In one possible implementation, the control rotation drive unit drives the lighting lamp to rotate and adjust to the target attitude angle, including:
[0028] The control rotation drive unit starts from the initial attitude angle and rotates according to the preset rotation direction and step angle;
[0029] After each rotation by one step angle, obtain the heat dissipation capacity value at the current attitude angle and accumulate the rotation path length;
[0030] If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is greater than the preset path length, then the current attitude angle is determined as the target attitude angle, and the rotation is stopped.
[0031] If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is less than or equal to the preset path length, then the current attitude angle and its corresponding heat dissipation capacity value are recorded, and rotation continues to obtain the target attitude angle.
[0032] In one possible implementation, the step of continuing the rotation to obtain the target attitude angle includes:
[0033] If, during the continued rotation, when the rotation path length reaches the preset path length, no attitude angle with a heat dissipation capacity value greater than the recorded maximum heat dissipation capacity value is found, then the attitude angle with the largest heat dissipation capacity value is selected as the target attitude angle from the attitude angles with heat dissipation capacity values greater than or equal to the preset heat dissipation capacity threshold.
[0034] During the continued rotation, when the rotation path length reaches the preset path length, the attitude angle with a heat dissipation capacity value greater than the recorded maximum heat dissipation capacity value is found, and the attitude angle corresponding to the maximum heat dissipation capacity value is taken as the target attitude angle.
[0035] In one possible implementation, before the step of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing to rotate to obtain the target attitude angle, the method further includes:
[0036] Determine whether the current ambient brightness inside the cabin meets the preset brightness adjustment requirement;
[0037] If the brightness increase requirement is met, then the steps of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing to rotate are executed.
[0038] If the brightness increase requirement is not met, the current attitude angle is determined as the target attitude angle, and the rotation stops.
[0039] In one possible implementation, the control rotation drive unit starts from an initial attitude angle and rotates according to a preset rotation direction and step angle, including:
[0040] When the initial attitude angle is within the allowable rotation angle range of the lighting lamp and is not at the endpoint position, the rotation direction selection strategy is executed;
[0041] The rotation direction selection strategy includes:
[0042] Obtain the first remaining angle of the lighting lamp as it rotates from the initial attitude angle to the first mechanical limit along the first candidate direction, and the second remaining angle as it rotates to the second mechanical limit along the second candidate direction;
[0043] Compare the magnitudes of the first remaining angle and the second remaining angle;
[0044] Based on the comparison results, the candidate direction with the larger remaining angle is determined as the preset rotation direction.
[0045] In one possible implementation, the rotation direction selection strategy further includes:
[0046] When the first remaining angle and the second remaining angle are the same, obtain the first estimated heat dissipation capacity value after rotating along the first candidate direction by the first preset angle, and the second estimated heat dissipation capacity value after rotating along the second candidate direction by the first preset angle.
[0047] Compare the first estimated heat dissipation capacity value with the second estimated heat dissipation capacity value;
[0048] Based on the comparison results, the candidate direction with the higher heat dissipation capacity value is determined as the preset rotation direction.
[0049] Secondly, embodiments of this application also provide an electronic device, including:
[0050] Memory, the memory being used to store program code; and
[0051] A processor, the processor being configured to invoke the program code to execute the method as described in the first aspect.
[0052] Thirdly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.
[0053] Unlike existing technologies, the intelligent cabin control method provided in this application first obtains the average ambient brightness of the cabin within a preset time period prior to the current moment; when the average ambient brightness is greater than or equal to a brightness threshold, the cabin lighting is controlled to enter a brightness adjustment mode; in response to the ambient brightness in the cabin decreasing and continuing for a preset time, a brightness increase command for the lighting is triggered; based on the brightness increase command, the current heat dissipation capacity value of the lighting is obtained through the heat dissipation detection unit; when the current heat dissipation capacity value is less than or equal to a preset heat dissipation capacity threshold, the rotation drive unit is controlled to drive the lighting to rotate and adjust to a target attitude angle, wherein when the lighting is at the target attitude angle, the heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold; finally, the lighting is controlled to be at the target attitude angle and the brightness adjustment unit is controlled to execute the brightness increase command.
[0054] Thus, this application, taking into account the characteristics of sudden changes in brightness in the marine environment, triggers a brightness adjustment mode by collecting the average ambient brightness over a preset time period. This avoids erroneous adjustments caused by single brightness fluctuations and adapts to the needs of scenarios where daytime ambient brightness is high but there is a risk of sudden changes. By using a heat dissipation detection unit to monitor the heat dissipation capacity of the lighting in real time, the brightness adjustment is precisely linked to the heat dissipation status, avoiding the problem of equipment overheating caused by blindly increasing brightness from the source. By adjusting the lighting to the target attitude angle through a rotation drive unit, the heat dissipation capacity is improved through attitude optimization, overcoming the limitation of fixed installation attitude on heat dissipation effect. Ultimately, it achieves a unity of timeliness in brightness adjustment, safety in heat dissipation matching, and flexibility in attitude adjustment. This not only ensures the lighting needs of the cabin during sudden changes in ambient brightness, improves navigation operation safety and personnel comfort, but also reduces energy waste, extends the service life of lighting equipment, and avoids equipment failure caused by overheating. It effectively solves the technical pain points of existing cabin lighting systems, such as rough adjustment and insufficient heat dissipation and brightness matching. Attached Figure Description
[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0056] Figure 1 This is a schematic diagram of the cabin lighting brightness control system structure in some embodiments of this application;
[0057] Figure 2 This is a flowchart illustrating the intelligent cabin control method in some embodiments of this application;
[0058] Figure 3 This is a flowchart illustrating step S100 of the intelligent cabin control method in some embodiments of this application;
[0059] Figure 4 This is a flowchart illustrating step S400 of the intelligent cabin control method in some embodiments of this application;
[0060] Figure 5 This is a flowchart illustrating step S500 of the intelligent cabin control method in some embodiments of this application;
[0061] Figure 6 This is a schematic diagram of the hardware structure of an electronic device in some embodiments of this application.
[0062] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0063] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0064] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0065] Furthermore, the use of terms such as "first" and "second" in this invention is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the term "and / or" throughout the text includes three solutions; taking A and / or B as an example, it includes technical solution A, technical solution B, and a technical solution that simultaneously satisfies A and B. Furthermore, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of a person skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0066] During a ship's voyage at sea, the cabin, as the core area for personnel operations, directly impacts navigational safety, operational efficiency, and personnel comfort due to the stability and appropriateness of its lighting system. The marine environment is highly unique, with weather conditions prone to sudden changes, such as alternating sunshine and rain, cloud cover, sea fog, and rapid day-night cycles. This results in drastic and unpredictable fluctuations in the intensity of natural light outside the cabin. Even during the day, sudden severe weather can cause a significant drop in ambient brightness in a short period. In such cases, relying on natural light is insufficient to meet the brightness requirements for operations and inspections within the cabin, necessitating the activation of lighting equipment.
[0067] Currently, most existing ship cabin lighting systems employ fixed brightness control or simple manual adjustment modes. While some systems are equipped with basic brightness sensing functions, they only achieve a crude "turn off when it's bright, turn on when it's dark" control, lacking the ability to finely adapt to changes in ambient brightness. Specifically, in scenarios where daytime ambient brightness is high but there is a risk of sudden changes, existing systems either maintain high-brightness lighting continuously, resulting in inefficient consumption of electrical resources, which does not meet the development requirements of energy-efficient ship navigation; or they simply turn off the lighting. If a sudden weather change causes a sharp drop in ambient brightness, the system cannot respond to brightness adjustment needs in a timely manner, easily leading to safety hazards such as delayed visual adaptation and operational errors.
[0068] Meanwhile, ship cabin lighting is mostly high-power lighting equipment, which generates a lot of heat when it is in operation for a long time. The interior space of the cabin is relatively closed and the heat dissipation conditions are limited. If we only pursue the timeliness of brightness adjustment and ignore the matching heat dissipation capacity of the lighting, blindly increasing the brightness of the lighting will lead to the aggravation of heat accumulation in the equipment. This will not only reduce the luminous efficiency of the lighting and shorten its service life, but in severe cases, it may also cause equipment failure due to overheating, or even induce electrical safety accidents, further affecting the reliability of the ship cabin lighting system.
[0069] To address the aforementioned technical problems, this application provides a ship cabin intelligent control method, which can be applied to a ship cabin lighting brightness control system. For example... Figure 1 As shown, the lighting brightness control system of this application includes a lighting lamp 100 installed on the top of the cabin and an ambient brightness sensor 200 inside the cabin. To ensure heat dissipation, the lighting lamp 100 includes a first heat dissipation channel and a second heat dissipation channel (not shown in the figure) installed on the lamp body. The two heat dissipation channels have different orientations and are used to dissipate the heat generated during lamp operation. The first heat dissipation channel can be the main heat dissipation channel, and the second heat dissipation channel can be the secondary heat dissipation channel.
[0070] The lighting lamp 100 includes a brightness adjustment unit 110, a heat dissipation detection unit 120 and a rotation drive unit 130. The heat dissipation detection unit 120 includes a first wind speed sensor 121 disposed in a first heat dissipation duct and a second wind speed sensor 122 disposed in a second heat dissipation duct.
[0071] The brightness adjustment unit 110 is the lighting adjustment execution component of the lighting lamp. It works in conjunction with the lighting unit of the lamp body to adjust the output brightness of the lighting lamp according to the control command, so as to adapt to different ambient brightness requirements and heat dissipation conditions.
[0072] The heat dissipation detection unit 120 is a heat dissipation status sensing unit for the lighting lamp. It is installed in the heat dissipation channel of the lamp body and is used to collect the wind speed data of the heat dissipation channel to provide data support for calculating the heat dissipation capacity value.
[0073] The rotary drive unit 130 is the attitude adjustment actuator for the lighting lamp, located on the top of the lamp body. It drives the lamp body to rotate to adjust the attitude angle. By changing the lamp body's placement angle, the orientation of the first and / or second heat dissipation channels is simultaneously changed to adapt to the airflow environment inside the ship's cabin and improve the ventilation efficiency of the heat dissipation channels. The rotary drive unit 130 may include a rotary motor, an electric slip ring, and matching transmission connectors (such as gear sets, couplings, etc.). The rotary motor provides power output for attitude adjustment, the electric slip ring ensures continuous circuit continuity during lamp body rotation, preventing wire entanglement and damage, and the transmission connectors ensure stable power transmission between the motor and the lamp body, guaranteeing the accuracy and stability of the attitude angle adjustment.
[0074] It should be noted that the wind speed sensor can use a fan to sense wind speed or wind pressure to sense wind speed.
[0075] For example, the first wind speed sensor 121 and / or the second wind speed sensor 122 are flexible wind speed sensors, whose structure includes a flexible airbag and a built-in pressure sensor. The flexible airbag is at least partially exposed inside the first and / or second heat dissipation channels. The flexible airbag is a sealed cavity structure. When the airflow in the heat dissipation channel impacts or compresses the airbag, it causes deformation and volume change within the airbag, leading to a corresponding change in the internal air pressure. The built-in pressure sensor can collect the air pressure data inside the airbag in real time and convert it into an electrical signal output. After the sensor is calibrated, a fixed correspondence is established between the airflow velocity in the heat dissipation channel and the air pressure change inside the airbag: the higher the airflow velocity, the stronger the impact on the airbag, and the greater the magnitude of the air pressure change inside the airbag. Based on this characteristic, the control system can calculate the real-time wind speed value in the heat dissipation channel according to the electrical signal output by the pressure sensor and a pre-calibrated pressure-wind speed correspondence model.
[0076] The following explanation uses the lighting brightness control system as an example to illustrate the intelligent control method for this cabin. It should be noted that although the logical sequence is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order. Please refer to the appendix. Figure 2 The method includes the following steps S100-S600:
[0077] Step S100: Obtain the average ambient brightness of the cabin within a preset time period prior to the current moment;
[0078] The current time refers to the trigger point of the cabin lighting brightness adjustment logic, or the real-time time of the system executing this step can be used directly as the current time. The preset duration can be set to a configurable range of 1–10 minutes. The specific duration can be flexibly selected according to the cabin navigation scenario (such as short-distance voyage in coastal waters or long-distance voyage in the open sea) and the characteristics of external light changes.
[0079] For example, if the preset duration is set to 10 minutes, the system will perform an operation to obtain the average ambient brightness every 10 minutes. The time point of each operation corresponds to the current time of this step. At the same time, based on this time point, the average ambient brightness of the cabin in the previous 10 minutes is statistically analyzed.
[0080] Step S200: When the average ambient brightness is greater than or equal to the brightness threshold, control the cabin lighting to enter the brightness adjustment mode.
[0081] It is understandable that when the average ambient brightness inside the cabin is below the brightness threshold, it indicates insufficient external natural light supply, and the cabin is in a dimly lit state. At this time, the lighting needs to maintain a stable basic lighting intensity to ensure the visual safety of the crew during operations and passage. If intelligent brightness adjustment is implemented, it is easy to cause the lighting to fluctuate, affecting the user experience. On the other hand, when the average ambient brightness inside the cabin is greater than or equal to the brightness threshold, it indicates that there is sufficient external natural light to provide basic lighting conditions for the cabin. At this time, it is not necessary for the lighting to maintain a fixed high brightness output. By activating the brightness adjustment mode, the brightness of the lighting can be dynamically adjusted based on the real-time changes in natural light, achieving complementary adaptation between natural light and artificial lighting, ensuring visual comfort while achieving energy saving and consumption reduction.
[0082] Therefore, in this embodiment, the average ambient brightness within a preset time period before the current moment is used as the basis for judgment, rather than the instantaneous brightness collected in a single instance. This can effectively avoid the false triggering of the adjustment strategy due to instantaneous fluctuations in illumination. When the average ambient brightness meets the threshold condition, the lighting lamp is controlled to enter the adjustment mode, which can achieve a balance between lighting needs and energy-saving goals, and improve the intelligence and adaptability of the cabin lighting system.
[0083] Step S300: In response to the ambient brightness inside the cabin decreasing and continuing for a preset duration, a command to increase the brightness of the lighting is triggered.
[0084] With the lighting already in brightness adjustment mode, the system continuously monitors the ambient brightness trend inside the cabin. When a decreasing trend in ambient brightness is detected, and this decrease persists for a preset duration, it indicates that the natural light supply inside the cabin is decreasing and stabilizing (e.g., when the ship enters a shaded area or the weather turns cloudy). At this point, triggering a brightness increase command for the lighting avoids sudden changes in cabin brightness caused by a sudden drop in natural light. By gradually increasing the lighting brightness, artificial lighting smoothly compensates for the attenuation of natural light, ensuring that the cabin light remains within a suitable brightness range.
[0085] Step S400: Based on the brightness increase command, obtain the current heat dissipation capacity value of the lighting lamp through the heat dissipation detection unit;
[0086] When the brightness increase command in step S300 is triggered, the system does not directly execute the brightness increase operation. Instead, it prioritizes calling the heat dissipation detection unit to quantitatively collect the real-time heat dissipation capacity of the lighting fixture. The heat dissipation capacity value here can characterize the working status of the lighting fixture's heat dissipation system, such as whether the heat dissipation channel is directly facing the airflow in the cabin.
[0087] It should be noted that the brightness and power of a lighting fixture are positively correlated. Increasing brightness inevitably leads to an increase in power and heat generation. If the heat dissipation capacity cannot keep up with the increased power requirements, the lamp body temperature will become too high, which will not only shorten the lifespan of the lighting fixture but may also cause problems such as accelerated light decay, component damage, and even safety risks. Therefore, this step, by obtaining the current heat dissipation capacity value, can provide a safe basis for judging the magnitude and rate of subsequent brightness increases, ensuring that the brightness adjustment process balances lighting effect and equipment operational safety.
[0088] Step S500: When the current heat dissipation capacity value is less than or equal to the preset heat dissipation capacity threshold, control the rotation drive unit to drive the lighting lamp to rotate and adjust to the target attitude angle, wherein when the lighting lamp is at the target attitude angle, the heat dissipation capacity value of the lighting lamp is greater than or equal to the preset heat dissipation capacity threshold.
[0089] When the current heat dissipation capacity value of the lighting lamp obtained in step S400 is less than or equal to the preset heat dissipation capacity threshold, it indicates that the heat dissipation efficiency of the lighting lamp in the current state cannot match the power and heat demand after the brightness is increased. If the brightness is directly increased, it will cause heat to accumulate in the lamp body, which will lead to safety hazards such as accelerated light decay, shortened component life, or even short circuit. At this time, the system will trigger the action command of the rotation drive unit to drive the lighting lamp to adjust the angle around the preset rotation axis.
[0090] At this time, the attitude adjustment logic will be triggered, that is, the rotation drive module will be controlled to drive the ceiling light to rotate to the target attitude angle. This attitude angle can maximize the use of the ambient space or heat dissipation channel (specifically, it can maximize the airflow of the heat dissipation channel). When the ceiling light is in this attitude, the heat dissipation efficiency value can be increased to a level greater than or equal to the preset heat dissipation efficiency threshold, so as to match the heat dissipation requirements after the brightness adjustment.
[0091] Step S600: Control the lighting lamp to be at the target attitude angle and control the brightness adjustment unit to execute the brightness increase command.
[0092] In step S500, after the rotation drive unit drives the lighting lamp to rotate and adjust to the target attitude angle, the lighting lamp is first maintained at the target attitude angle. This state is a prerequisite for ensuring that the heat dissipation capacity meets the standard, and can provide stable heat dissipation support for subsequent brightness improvement, avoiding the problem of heat accumulation during the brightness adjustment process. Then, the brightness adjustment unit is controlled to execute the brightness adjustment command. This execution order is set to ensure that the lighting lamp has sufficient heat dissipation capacity before the lighting brightness is improved.
[0093] Based on this, the intelligent cabin control method provided in this application first obtains the average ambient brightness of the cabin within a preset time period prior to the current moment; when the average ambient brightness is greater than or equal to a brightness threshold, the cabin lighting is controlled to enter a brightness adjustment mode; in response to the ambient brightness in the cabin decreasing and continuing for a preset time, a brightness increase command for the lighting is triggered; based on the brightness increase command, the current heat dissipation capacity value of the lighting is obtained through the heat dissipation detection unit; when the current heat dissipation capacity value is less than or equal to a preset heat dissipation capacity threshold, the rotation drive unit is controlled to drive the lighting to rotate and adjust to a target attitude angle, wherein when the lighting is at the target attitude angle, the heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold; finally, the lighting is controlled to be at the target attitude angle and the brightness adjustment unit is controlled to execute the brightness increase command.
[0094] Thus, this application, taking into account the characteristics of sudden changes in brightness in the marine environment, triggers a brightness adjustment mode by collecting the average ambient brightness over a preset time period. This avoids erroneous adjustments caused by single brightness fluctuations and adapts to the needs of scenarios where daytime ambient brightness is high but there is a risk of sudden changes. By using a heat dissipation detection unit to monitor the heat dissipation capacity of the lighting in real time, the brightness adjustment is precisely linked to the heat dissipation status, avoiding the problem of equipment overheating caused by blindly increasing brightness from the source. By adjusting the lighting to the target attitude angle through a rotation drive unit, the heat dissipation capacity is improved through attitude optimization, overcoming the limitation of fixed installation attitude on heat dissipation effect. Ultimately, it achieves a unity of timeliness in brightness adjustment, safety in heat dissipation matching, and flexibility in attitude adjustment. This not only ensures the lighting needs of the cabin during sudden changes in ambient brightness, improves navigation operation safety and personnel comfort, but also reduces energy waste, extends the service life of lighting equipment, and avoids equipment failure caused by overheating. It effectively solves the technical pain points of existing cabin lighting systems, such as rough adjustment and insufficient heat dissipation and brightness matching.
[0095] In one embodiment, such as Figure 3 As shown, step S100: Obtain the average ambient brightness of the cabin within a preset time period before the current moment, including:
[0096] S110. Generate an ambient brightness time-series curve based on the sensing data from the ambient brightness sensor;
[0097] S120. Determine the average ambient brightness of the cabin within a preset time period before the current moment based on the ambient brightness time-series curve.
[0098] Specifically, in this embodiment, an ambient brightness time-series curve is first generated based on the sensing data of the ambient brightness sensor. The ambient brightness sensor collects ambient brightness data in the cabin in real time. Each collected data corresponds to a unique timestamp. By mapping the collected brightness data as the vertical axis and the corresponding timestamp as the horizontal axis, a continuous ambient brightness time-series curve can be generated. This curve can intuitively and completely reflect the changing trend of the cabin ambient brightness over time within a preset duration, providing a reliable data foundation for the accurate calculation of the average brightness in the future.
[0099] Subsequently, based on the ambient brightness time-series curve, the average ambient brightness of the cabin within a preset time period prior to the current moment is determined. To ensure that the calculated average ambient brightness better reflects the actual brightness situation of the current cabin and is more timely, and to avoid interference from long-term brightness data on the current brightness assessment, a segmented weighted calculation method can be adopted. The specific implementation process is as follows:
[0100] First, the preset duration is divided into a preset number of consecutive time periods, where the preset number is an integer greater than 1. The closer the divided time period is to the current moment, the smaller its time span. For example, if the preset duration is 10 minutes, it can be divided into 3 consecutive time periods. The time period furthest from the current moment is the first 6-10 minutes (time span of 4 minutes), the middle time period is the first 2-6 minutes (time span of 3 minutes), and the most recent time period is the first 0-2 minutes (time span of 2 minutes), so that the time span decreases from far to near. The division method can also be adjusted according to the accuracy requirements, such as dividing it into 4 time periods: the first 7-10 minutes (time span of 3 minutes), the first 4-7 minutes (time span of 2 minutes), the first 1-4 minutes (time span of 1.5 minutes), and the first 0-1 minutes (time span of 1 minute), further refining the recent time period span and more accurately capturing subtle changes in recent brightness.
[0101] Next, a weighting coefficient is assigned to each time period, with the weighting coefficient being larger the closer the time period is to the current time. The weighting coefficients are assigned according to the principle of "larger for closer and smaller for farther". For example, the three time periods mentioned above can be assigned weighting coefficients of 0.2, 0.3, and 0.5 respectively, and the four time periods can be assigned weighting coefficients of 0.1, 0.2, 0.3, and 0.4 respectively, to ensure that recent brightness data has a greater impact on the calculation of the final average brightness, making the results more reflective of the current brightness status of the cabin.
[0102] Then, based on the ambient brightness time-series curve, the arithmetic mean of the ambient brightness data within each time period is calculated as the representative brightness value for that time period. For each divided time period, all brightness data points within that time period are extracted from the ambient brightness time-series curve. By calculating the arithmetic mean of all data points, the representative brightness value for that time period is obtained. This representative brightness value can effectively characterize the overall level of cabin ambient brightness within the corresponding time period, avoiding the influence of a single extreme data point on the calculation results.
[0103] Finally, based on the representative brightness value of each time period and its corresponding weighting coefficient, the average environmental brightness is calculated through a weighted average. The specific method for weighted average calculation is as follows: multiply the representative brightness value of each time period by its corresponding weighting coefficient to obtain the weighted brightness value for each time period; then sum the weighted brightness values of all time periods to obtain the average environmental brightness of the cabin within the preset time period. This weighted calculation method comprehensively considers the brightness situation of all time periods within the preset time period while highlighting the importance of recent brightness data, making the calculated average environmental brightness more closely match the actual brightness state of the current cabin and thus more accurate.
[0104] Thus, this embodiment of the application can accurately obtain the average ambient brightness of the cabin within a preset time period before the current moment by combining the ambient brightness time-series curve with segmented weighted calculation, effectively avoiding the interference of extreme data and long-term data on brightness assessment, and providing reliable data support for subsequent operations such as cabin lighting brightness adjustment based on ambient brightness.
[0105] In one embodiment, such as Figure 4 As shown, step S400: obtaining the current heat dissipation capacity value of the lighting lamp through the heat dissipation detection unit includes:
[0106] S410: Obtain the first wind speed value currently collected by the first wind speed sensor and the second wind speed value currently collected by the second wind speed sensor;
[0107] S420. Obtain the first characteristic parameter of the first heat dissipation duct and the second characteristic parameter of the second heat dissipation duct, wherein the first characteristic parameter and / or the second characteristic parameter include at least one of the duct area and the duct ventilation coefficient.
[0108] S430. Determine the first heat dissipation contribution value based on the first wind speed value, the first characteristic parameter and the corresponding weighting coefficient;
[0109] S440. Determine the second heat dissipation contribution value based on the second wind speed value, the second characteristic parameter, and the corresponding weighting coefficient.
[0110] S450. Determine the current heat dissipation capacity value of the lighting lamp based on the first heat dissipation contribution value and the second heat dissipation contribution value.
[0111] Specifically, in this embodiment, step S410 is first executed to obtain the first wind speed value and the second wind speed value currently collected by the first wind speed sensor and the second wind speed sensor. Wind speed is a core dynamic parameter that affects the heat dissipation efficiency of the air duct. The two sensors are set to correspond to two heat dissipation air ducts respectively, which can accurately capture the real-time speed data of air flow in each air duct, providing a basic dynamic basis for subsequent calculation of the heat dissipation contribution of each air duct, and avoiding the heat dissipation evaluation deviation caused by a single wind speed detection.
[0112] Then, step S420 is executed to obtain the first characteristic parameter of the first heat dissipation air duct and the second characteristic parameter of the second heat dissipation air duct. The characteristic parameter includes at least one of the air duct area and the air duct ventilation coefficient. The air duct area determines the upper limit of the air volume that can pass through the air duct per unit time, while the air duct ventilation coefficient reflects the degree of obstruction of air flow by factors such as the friction of the inner wall of the air duct and the corner layout. The air duct ventilation coefficient can be preset and quantified. Both are fixed structural parameters that affect the heat dissipation capacity of the air duct. By obtaining these parameters, the influence of the air duct's own characteristics on the heat dissipation effect can be comprehensively considered.
[0113] Next, steps S430 and S440 are executed to determine the first heat dissipation contribution value based on the first wind speed value, the first characteristic parameter, and the corresponding weighting coefficient, and to determine the second heat dissipation contribution value based on the second wind speed value, the second characteristic parameter, and the corresponding weighting coefficient. The weighting coefficient is a preset adjustment parameter based on factors such as the design positioning, layout location, and heat dissipation priority of the two air ducts. For example, if the first heat dissipation air duct is the main heat dissipation channel, its weighting coefficient can be set to be greater than that of the second heat dissipation air duct to reflect the difference in contribution of different air ducts to the overall heat dissipation capacity. During the calculation process, the wind speed value and the characteristic parameter can be integrated through weighted summation, product weighting, etc., and the obtained heat dissipation contribution value can accurately quantify the current heat dissipation efficiency of a single air duct.
[0114] Finally, step S450 is executed to determine the current heat dissipation capacity of the lighting fixture based on the first and second heat dissipation contribution values. This can be achieved through methods such as summation or weighted summation, integrating the heat dissipation efficiency of the two air ducts to obtain a comprehensive value reflecting the overall heat dissipation level of the lighting fixture. This calculation logic considers both the dynamic changes in airflow velocity and the inherent characteristics of the air duct structure. Furthermore, by using weighting coefficients to differentiate the contribution proportions of different air ducts, the final current heat dissipation capacity value more closely reflects the actual heat dissipation scenario and accurately reflects the heat dissipation status of the lighting fixture.
[0115] For example, the formula for calculating the heat dissipation contribution value of the first heat dissipation duct is: Q1 = A1 × (V1 × S1 × K1), where Q1 is the first heat dissipation contribution value (unit: W, watts); A1 is the weighting coefficient corresponding to the first heat dissipation duct (preset value, ranging from 0 to 1, the sum of the weighting coefficients of the two ducts can be set to 1, such as A1=0.6, A2=0.4); V1 is the first wind speed value (unit: m / s, meters per second); S1 is the area of the first heat dissipation duct (unit: m², square meters); K1 is the ventilation coefficient of the first heat dissipation duct (preset quantitative value, ranging from 0.8 to 1.0, the more reasonable the duct layout and the smaller the internal wall friction, the closer the coefficient is to 1.0). To eliminate the interference of the difference in the dimensions of each parameter on the calculation results and improve the comparability of the heat dissipation contribution values between ducts of different specifications, the basic parameters such as V1 and S1 involved in the formula can be normalized before being substituted into the calculation. Normalization can be achieved using linear scaling, mapping each parameter to the 0-1 range. The specific processing method can be preset according to the parameter value range of the actual application scenario. Similarly, the heat dissipation contribution value Q2 of the first heat dissipation duct can be calculated. Finally, Q1 and Q2 are added together to obtain the current heat dissipation capacity value of the lighting lamp.
[0116] Thus, this embodiment of the application can accurately calculate the current heat dissipation capacity of the lighting lamp by using the heat dissipation detection unit in combination with the wind speed data, structural parameters and weighting coefficients of the dual air ducts, providing a reliable basis for subsequent heat dissipation adjustment and lighting brightness matching.
[0117] In one embodiment, such as Figure 5 As shown, step S500: controlling the rotation drive unit to drive the lighting lamp to rotate and adjust to the target attitude angle includes:
[0118] S510: Control the rotary drive unit to rotate from the initial attitude angle according to the preset rotation direction and step angle;
[0119] The initial attitude angle can be the factory-calibrated parameter of the lighting lamp or the fixed attitude angle after the last adjustment; the preset rotation direction can be preset according to the actual application scenario (such as clockwise direction); the step angle is preset based on the balance between heat dissipation efficiency detection accuracy and adjustment efficiency (e.g., 5°), which ensures the accuracy of attitude adjustment and avoids the problem of excessive adjustment time caused by too small step angle.
[0120] S520: After rotating by one step angle each time, obtain the heat dissipation capacity value at the current attitude angle and accumulate the rotation path length;
[0121] After each rotational step angle is completed, the rotary drive unit simultaneously performs two operations:
[0122] Heat dissipation capacity value acquisition: Collect the heat dissipation capacity value of the lighting lamp under the current attitude angle. This value is generated based on the quantitative calculation logic of the previous steps and can directly characterize the heat dissipation efficiency level of the lighting lamp under the current attitude.
[0123] Cumulative rotation path length: Based on the calculation rule of "step angle × number of rotations", the current rotation path length (i.e., cumulative rotation angle value, such as 180°) is accumulated to determine whether the posture adjustment of the lighting lamp is within the preset effective range.
[0124] S530. If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is greater than the preset path length, then the current attitude angle is determined as the target attitude angle, and the rotation is stopped.
[0125] If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is greater than the preset path length, then the current attitude angle is determined to meet the heat dissipation performance requirements, and the attitude exploration within the preset range has been completed. At this time, the current attitude angle is directly determined as the target attitude angle, and the rotation drive unit is controlled to stop rotating. Under the premise of ensuring that the heat dissipation capacity meets the standard, invalid rotation operations are avoided, and adjustment efficiency is improved.
[0126] For example, when the lighting lamp rotates to a certain angle, its main heat dissipation air duct is exactly matched with the airflow direction in the application scenario (such as the airflow direction in the cabin), which significantly improves the heat dissipation efficiency. The current heat dissipation capacity value reaches the preset heat dissipation capacity threshold, and the cumulative rotation path length has exceeded the preset path length. At this time, the attitude angle can be directly locked as the target attitude angle.
[0127] S540. If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is less than or equal to the preset path length, then record the current attitude angle and its corresponding heat dissipation capacity value, and continue to rotate to obtain the target attitude angle.
[0128] If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, but the cumulative rotation path length is less than or equal to the preset path length, then the heat dissipation performance of the current attitude angle is determined to be up to standard, but still within the preset effective adjustment range, and there is a possibility of finding a better heat dissipation attitude. At this time, the following operations are performed:
[0129] (1) Candidate attitude recording: Store the current attitude angle and its corresponding heat dissipation capacity value to form a set of candidate attitudes that meet the standard;
[0130] (2) Continue to rotate and explore: control the rotation drive unit to continue rotating in the preset direction and step angle, and continuously collect the heat dissipation capacity value and rotation path length under the new attitude angle.
[0131] When the rotation path length reaches the preset path length, the optimal attitude selection mechanism is triggered: if no heat dissipation capacity value is found in the subsequently explored attitude angles that is greater than the maximum value in the candidate set, it is determined that the candidate set already contains the optimal heat dissipation attitude within the preset adjustment range, and the attitude angle with the largest heat dissipation capacity value is selected from the candidate set as the target attitude angle; if a heat dissipation capacity value is found in the subsequently explored attitude angles that is greater than the maximum value in the candidate set, the attitude angle corresponding to the maximum heat dissipation capacity value is directly determined as the target attitude angle, thereby achieving precise locking of the optimal heat dissipation attitude.
[0132] In summary, this embodiment achieves intelligent adjustment of the lighting fixture's attitude angle through a closed-loop control logic that includes step-by-step rotation adjustment, real-time heat dissipation efficiency detection, path length control, and optimal posture selection. This control logic ensures the final attitude meets usage requirements by determining a heat dissipation capacity threshold and avoids ineffective rotation by limiting path length. Simultaneously, the optimal posture selection mechanism ensures the target attitude angle is the optimal heat dissipation solution within a preset adjustment range. This maximizes the lighting fixture's heat dissipation effect while improving attitude adjustment efficiency, providing a reliable guarantee for its long-term stable operation.
[0133] In one embodiment, before the step of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing to rotate to obtain the target attitude angle, the method further includes:
[0134] Determine whether the current ambient brightness inside the cabin meets the preset brightness adjustment requirement;
[0135] If the brightness increase requirement is met, then the steps of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing to rotate are executed.
[0136] If the brightness increase requirement is not met, the current attitude angle is determined as the target attitude angle, and the rotation stops.
[0137] Specifically, the embodiments of this application first determine whether the current ambient brightness in the cabin meets the preset brightness increase requirement. Here, "brightness increase requirement" refers to whether the current ambient brightness has a continuous decreasing trend, or whether the current brightness has not reached the safety redundancy standard, indicating a possibility and necessity to further increase the lighting brightness. In other words, it predicts whether there is a risk of insufficient brightness in the future, rather than simply determining whether the current instantaneous brightness meets the standard. The preset brightness increase requirement can be combined with the brightness redundancy requirements of equipment operation in the cabin, the safety brightness standards for personnel operations, and the preset threshold for changes in ambient brightness. For example, preset conditions such as "current brightness is below 600 lux and brightness has been continuously decreasing in the last 30 seconds (e.g., decreasing by more than 5 lux per second)" or "current brightness is within the acceptable range but has not reached the redundancy threshold (e.g., acceptable range 500-1500 lux, redundancy threshold 800 lux; below 800 lux, an increase requirement is determined)" can be used. The judgment process can collect ambient brightness data in real time through brightness sensors deployed in the cabin, and combine historical brightness data to fit the trend of change. The real-time brightness value, the rate of brightness change, and the preset requirements parameters are comprehensively compared to accurately determine whether there is an expectation of continuous brightness reduction and whether it is necessary to reserve space for brightness improvement. This provides accurate data basis for the selection of subsequent attitude angle adjustment strategies.
[0138] If the brightness increase requirement is met, it indicates that the current brightness inside the cabin is showing a continuous decreasing trend, or the current brightness has not reached the safety redundancy standard, posing a risk of insufficient subsequent lighting. It is urgent to adjust the attitude angle of the heat dissipation system (or related lighting structure) to explore the potential for brightness improvement and reserve space for lighting adjustment. Simultaneously, the impact of attitude angle adjustment on heat dissipation capacity must be considered to avoid excessive adjustment of the attitude angle to increase brightness, which could lead to a decrease in heat dissipation performance. Therefore, the step of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing rotation, must be performed. During this process, by simultaneously rotating and adjusting the attitude angle while recording the brightness improvement effect and heat dissipation capacity data under the corresponding attitude, a comprehensive understanding of the synergistic effect of different attitude angles on "brightness-heat dissipation" can be obtained. This provides complete data support for subsequently selecting the optimal target attitude angle that "can cope with the continuous decreasing trend of brightness, ensure sufficient lighting, and maintain stable heat dissipation performance."
[0139] If the brightness adjustment requirement is not met—meaning the current ambient brightness inside the cabin is sufficient and shows no signs of decreasing—there is no risk of insufficient lighting, and there is no need to adjust the attitude angle to increase brightness. Continuing to rotate and adjust the attitude angle at this point would not only fail to further improve lighting redundancy but could also cause unnecessary fluctuations in heat dissipation, increase equipment energy consumption, and result in unnecessary mechanical wear on the attitude adjustment mechanism. Therefore, the current attitude angle is directly set as the target attitude angle, and rotation is stopped. This ensures sufficient current lighting brightness and stable heat dissipation, avoids ineffective operations, and maximizes equipment operating efficiency and lifespan.
[0140] Thus, this embodiment of the application adds an environmental brightness requirement prediction step before adjusting the attitude angle, focusing on "whether there is a continuous decreasing trend in brightness and whether it is necessary to reserve room for brightness improvement," flexibly choosing whether to continue the attitude angle adjustment process—both precisely selecting the optimal attitude angle by recording while rotating when there is a risk of insufficient brightness, and proactively exploring the potential for brightness adjustment to cope with subsequent brightness changes; and avoiding ineffective adjustments when the brightness is sufficient and there is no decreasing trend. Ultimately, it achieves a balance between redundant lighting brightness requirements, stable heat dissipation performance, and optimized equipment energy consumption, effectively improving the equipment's adaptability and operational reliability in response to changes in cabin environmental brightness.
[0141] In one embodiment, the step of controlling the rotation drive unit to rotate from an initial attitude angle according to a preset rotation direction and step angle includes:
[0142] When the initial attitude angle is within the allowable rotation angle range of the lighting lamp and is not at the endpoint position, the rotation direction selection strategy is executed;
[0143] The rotation direction selection strategy includes:
[0144] Obtain the first remaining angle of the lighting lamp as it rotates from the initial attitude angle to the first mechanical limit along the first candidate direction, and the second remaining angle as it rotates to the second mechanical limit along the second candidate direction;
[0145] Compare the magnitudes of the first remaining angle and the second remaining angle;
[0146] Based on the comparison results, the candidate direction with the larger remaining angle is determined as the preset rotation direction.
[0147] Specifically, the embodiments of this application first clarify the execution prerequisite of the rotation direction selection strategy, namely, the initial attitude angle must be within the range of the allowable rotation angle of the lighting lamp and not at the endpoint position. This prerequisite can effectively avoid the problem that the lighting lamp cannot rotate due to the initial attitude angle exceeding the range or being at the limit endpoint, and at the same time provide a reliable basis for the subsequent selection of bidirectional rotation direction, ensuring the feasibility of rotation action and operational safety.
[0148] The rotation direction selection strategy is then implemented. The first step is to obtain the bidirectional remaining angles: the initial attitude angle data is accurately collected by the lighting lamp's attitude angle detection module (such as an angle sensor). Combined with the preset first and second mechanical limit position parameters, the first remaining angle of the lighting lamp rotating from the initial attitude angle along the first candidate direction (such as clockwise) to the first mechanical limit, and the second remaining angle of rotating along the second candidate direction (such as counterclockwise) to the second mechanical limit are calculated. This remaining angle can be calculated by the absolute value of the difference between the mechanical limit position and the initial attitude angle, which can accurately reflect the maximum space range in which the lighting lamp can rotate in the two candidate directions, providing a core reference for subsequent direction selection.
[0149] Next, the magnitudes of the first and second remaining angles are compared, and the candidate direction with the larger remaining angle is selected as the preset rotation direction. The purpose is to maximize the rotational range of the lighting fixture, avoid the lighting fixture from quickly reaching the mechanical limit and stopping rotation due to the selection of a direction with a smaller remaining angle, thereby improving the flexibility and efficiency of the lighting fixture's attitude adjustment, and ensuring that its attitude can be fully adjusted according to actual needs such as lighting coverage and work scenarios.
[0150] When the first remaining angle and the second remaining angle are the same, meaning the rotation space of the two candidate directions is completely identical, heat dissipation capacity needs to be introduced as a secondary decision-making basis. First, a fixed first preset angle is preset. This angle can be preset according to the heat dissipation characteristics and posture adjustment accuracy requirements of the lighting lamp to ensure that the rotation can effectively reflect the differences in heat dissipation status under different postures. Then, through the heat dissipation prediction model, the first estimated heat dissipation capacity value and the second estimated heat dissipation capacity value after the lighting lamp rotates along the first candidate direction and the second candidate direction by the first preset angle are calculated respectively. This heat dissipation prediction model can be constructed based on the structural parameters of the lighting lamp (such as the orientation of the heat sink and the position of the ventilation channel), operating parameters (such as power and operating time), and environmental parameters (such as ambient temperature and wind speed). It can accurately predict the heat dissipation effect under different postures and can also be implemented using the aforementioned heat dissipation capacity value calculation formula.
[0151] Then, by comparing the two estimated heat dissipation capacity values, the candidate direction with higher heat dissipation capacity is selected as the preset rotation direction. In this way, while ensuring that the rotation range of the lighting lamp is sufficient, its heat dissipation performance is prioritized, avoiding the equipment temperature from becoming too high due to prolonged exposure to poor heat dissipation. This extends the lifespan of the lighting lamp, improves its working stability, and balances the flexibility of attitude adjustment with the safety of equipment operation. At the same time, selecting the candidate direction with higher heat dissipation capacity can also quickly lock a better target attitude angle, further improving attitude adjustment efficiency.
[0152] In other words, the embodiments of this application preset a detection angle, setting a fixed "first preset angle" (e.g., 5° or 10°). The setting of this angle value needs to balance two factors: first, it should be small enough to reduce unnecessary detection actions and energy consumption; second, it should be large enough so that after rotating this angle, the relative position of the lamp's heat dissipation air duct and the surrounding airflow can change in a way that can be detected by the sensor, thereby ensuring the effectiveness of the detection.
[0153] In other embodiments, when the first remaining angle and the second remaining angle are the same, intelligent selection can also be made based on the historical operating data of the drive motor. For example, the cumulative number of rotations or cumulative rotation angles of the motor in the clockwise and counterclockwise directions can be queried, and the direction with the smaller historical cumulative rotation amount can be selected as the current rotation direction. In this way, the wear of the two directions of the motor can be made as even as possible, extending the overall service life of the motor. Alternatively, the average time or average number of rotation steps taken from a similar initial attitude angle in the historical records to successfully find a qualified target attitude angle by rotating in two directions can be queried. The direction with the shorter historical average time or fewer average steps can be selected, drawing on historical success experience, hoping to make the current search more efficient.
[0154] Thus, by implementing a rotation direction selection strategy based on different scenarios, this application embodiment not only maximizes the rotation range of the lighting lamp, but also prioritizes heat dissipation performance when the rotation space is the same, thereby achieving a scientific and reasonable adjustment of the lighting lamp's posture and effectively improving the stability, flexibility, and service life of the equipment.
[0155] like Figure 6 As shown, Figure 6 The diagram below illustrates the hardware structure of an electronic device in some embodiments of this application. The electronic device provided in the embodiments of this application includes a memory 1000 and a processor 2000. The memory 1000 is used to store computer-readable instructions, and the processor 2000 is used to invoke the computer-readable instructions to execute the intelligent cabin control method as described above.
[0156] The processor 2000 provides computing and control capabilities to control electronic devices to perform corresponding tasks, such as controlling the electronic devices to execute the cabin intelligent control method in any of the above method embodiments. The method includes: obtaining the average ambient brightness of the cabin within a preset time period prior to the current moment; controlling the cabin lighting to enter a brightness adjustment mode when the average ambient brightness is greater than or equal to a brightness threshold; triggering a brightness increase command for the lighting in response to a decrease in ambient brightness within the cabin for a preset time period; obtaining the current heat dissipation capacity value of the lighting through the heat dissipation detection unit based on the brightness increase command; controlling the rotation drive unit to drive the lighting to rotate and adjust to a target attitude angle when the current heat dissipation capacity value is less than or equal to a preset heat dissipation capacity threshold, wherein the heat dissipation capacity value of the lighting is greater than or equal to the preset heat dissipation capacity threshold when the lighting is at the target attitude angle; controlling the lighting to be at the target attitude angle and controlling the brightness adjustment unit to execute the brightness increase command.
[0157] The processor 2000 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0158] The memory 1000, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the intelligent cabin control method in the embodiments of this application. The processor 2000 can implement the intelligent cabin control method in any of the above method embodiments by running the non-transitory software programs, instructions, and modules stored in the memory 1000.
[0159] Specifically, memory 1000 may include volatile memory (VM), such as random access memory (RAM); memory 1000 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), solid-state drive (SSD), or other non-transitory solid-state storage devices; memory 1000 may also include combinations of the above types of memory.
[0160] In summary, the electronic device of this application adopts the technical solution of any of the above-described embodiments of the intelligent control method for ship cabins. Therefore, it has at least the beneficial effects brought about by the technical solutions of the above embodiments, which will not be elaborated here.
[0161] This application also provides a computer-readable storage medium, such as a memory including program code, which can be executed by a processor to complete the ship cabin intelligent control method described above. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM), magnetic tape, floppy disk, or optical data storage device, etc.
[0162] This application also provides a computer program product comprising one or more lines of program code stored in a computer-readable storage medium. A processor reads the program code from the computer-readable storage medium and executes the program code to complete the steps of the ship cabin intelligent control method provided in the above embodiments.
[0163] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program or program code related to hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0164] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0165] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software and a general-purpose hardware platform, or of course, using hardware. Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0166] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. A ship cabin intelligent control method, applied to a ship cabin lighting brightness control system, characterized in that, The lighting brightness control system includes a lighting lamp installed on the top of the cabin and an ambient brightness sensor inside the cabin. The lighting lamp includes a brightness adjustment unit, a heat dissipation detection unit, and a rotation drive unit. The heat dissipation detection unit includes a first wind speed sensor installed in a first heat dissipation duct of the lighting lamp and a second wind speed sensor installed in a second heat dissipation duct of the lighting lamp. The method includes: Obtain the average ambient brightness of the cabin within a preset time period prior to the current moment; When the average ambient brightness is greater than or equal to the brightness threshold, the cabin lighting is controlled to enter the brightness adjustment mode. In response to the ambient light inside the cabin becoming lower and continuing for a preset duration, a command to increase the brightness of the lighting is triggered. Based on the brightness increase command, the current heat dissipation capacity value of the lighting lamp is obtained through the heat dissipation detection unit; When the current heat dissipation capacity value is less than or equal to the preset heat dissipation capacity threshold, the rotation drive unit is controlled to drive the lighting lamp to rotate and adjust to the target attitude angle, wherein when the lighting lamp is at the target attitude angle, the heat dissipation capacity value of the lighting lamp is greater than or equal to the preset heat dissipation capacity threshold. The lighting lamp is controlled to be at the target attitude angle, and the brightness adjustment unit is controlled to execute the brightness increase command.
2. The intelligent cabin control method as described in claim 1, characterized in that, The step of obtaining the average ambient brightness of the cabin within a preset time period prior to the current moment includes: An ambient brightness time-series curve is generated based on the sensing data from the ambient brightness sensor. The average ambient brightness of the cabin within a preset time period prior to the current moment is determined based on the ambient brightness time-series curve.
3. The intelligent cabin control method as described in claim 2, characterized in that, The step of determining the average ambient brightness of the cabin within a preset time period prior to the current moment based on the ambient brightness time-series curve includes: The preset duration is divided into a preset number of consecutive time periods, where the preset number is an integer greater than 1, and the closer the divided time periods are to the current time, the smaller their time span. A weighting coefficient is assigned to each time period, wherein the closer the time period is to the current time, the larger the weighting coefficient is assigned to it; Based on the ambient brightness time-series curve, the arithmetic mean of the ambient brightness data in each time period is calculated as the representative brightness value for that time period. The average ambient brightness is obtained by weighted averaging based on the representative brightness value of each time period and its corresponding weighting coefficient.
4. The intelligent cabin control method as described in claim 1, characterized in that, The step of obtaining the current heat dissipation capacity value of the lighting lamp through the heat dissipation detection unit includes: Obtain the first wind speed value currently collected by the first wind speed sensor and the second wind speed value currently collected by the second wind speed sensor; Obtain a first characteristic parameter of the first heat dissipation duct and a second characteristic parameter of the second heat dissipation duct, wherein the first characteristic parameter and / or the second characteristic parameter includes at least one of the duct area and the duct ventilation coefficient. The first heat dissipation contribution value is determined based on the first wind speed value, the first characteristic parameter, and the corresponding weighting coefficient. The second heat dissipation contribution value is determined based on the second wind speed value, the second characteristic parameter, and the corresponding weighting coefficient. The current heat dissipation capacity of the lighting lamp is determined based on the first heat dissipation contribution value and the second heat dissipation contribution value.
5. The intelligent cabin control method as described in claim 1, characterized in that, The control rotation drive unit drives the lighting lamp to rotate and adjust to the target attitude angle, including: The control rotation drive unit starts from the initial attitude angle and rotates according to the preset rotation direction and step angle; After each rotation by one step angle, obtain the heat dissipation capacity value at the current attitude angle and accumulate the rotation path length; If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is greater than the preset path length, then the current attitude angle is determined as the target attitude angle, and the rotation is stopped. If the current heat dissipation capacity value is greater than or equal to the preset heat dissipation capacity threshold, and the cumulative rotation path length is less than or equal to the preset path length, then the current attitude angle and its corresponding heat dissipation capacity value are recorded, and rotation continues to obtain the target attitude angle.
6. The intelligent cabin control method as described in claim 5, characterized in that, The step of continuing to rotate to obtain the target attitude angle includes: If, during the continued rotation, when the rotation path length reaches the preset path length, no attitude angle with a heat dissipation capacity value greater than the recorded maximum heat dissipation capacity value is found, then the attitude angle with the largest heat dissipation capacity value is selected as the target attitude angle from the attitude angles with heat dissipation capacity values greater than or equal to the preset heat dissipation capacity threshold. During the continued rotation, when the rotation path length reaches the preset path length, the attitude angle with a heat dissipation capacity value greater than the recorded maximum heat dissipation capacity value is found, and the attitude angle corresponding to the maximum heat dissipation capacity value is taken as the target attitude angle.
7. The intelligent cabin control method as described in claim 5, characterized in that, Before the step of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing to rotate to obtain the target attitude angle, the method further includes: Determine whether the current ambient brightness inside the cabin meets the preset brightness adjustment requirement; If the brightness increase requirement is met, then the steps of recording the current attitude angle and its corresponding heat dissipation capacity value, and continuing to rotate are executed. If the brightness increase requirement is not met, the current attitude angle is determined as the target attitude angle, and the rotation stops.
8. The intelligent cabin control method as described in claim 5, characterized in that, The control rotation drive unit starts from an initial attitude angle and rotates according to a preset rotation direction and step angle, including: When the initial attitude angle is within the allowable rotation angle range of the lighting lamp and is not at the endpoint position, the rotation direction selection strategy is executed; The rotation direction selection strategy includes: Obtain the first remaining angle of the lighting lamp as it rotates from the initial attitude angle to the first mechanical limit along the first candidate direction, and the second remaining angle as it rotates to the second mechanical limit along the second candidate direction; Compare the magnitudes of the first remaining angle and the second remaining angle; Based on the comparison results, the candidate direction with the larger remaining angle is determined as the preset rotation direction.
9. The intelligent cabin control method as described in claim 8, characterized in that, The rotation direction selection strategy also includes: When the first remaining angle and the second remaining angle are the same, obtain the first estimated heat dissipation capacity value after rotating along the first candidate direction by the first preset angle, and the second estimated heat dissipation capacity value after rotating along the second candidate direction by the first preset angle. Compare the first estimated heat dissipation capacity value with the second estimated heat dissipation capacity value; Based on the comparison results, the candidate direction with the higher heat dissipation capacity value is determined as the preset rotation direction.
10. An electronic device, characterized in that, include: The memory is used to store program code; as well as A processor, the processor being configured to invoke the program code to perform the method as described in any one of claims 1 to 9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.