A switching control method and device, a camera device, and a storage medium
By prioritizing the execution of state switching actions for components with lower power consumption, the problem of excessive power consumption in camera equipment under active Ethernet power supply is solved, thereby reducing cost and complexity and meeting the power supply requirements of the IEEE 802.3af protocol.
Patent Information
- Application Number
- CN202110766758.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-07
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2041-07-07
AI Technical Summary
In the case of active Ethernet power supply, some camera devices have power exceeding the requirements of the IEEE 802.3af protocol but not the requirements of the IEEE 802.3at protocol, resulting in increased costs and design complexity.
By prioritizing the execution of state switching actions for components with lower power, and avoiding the superposition of power from multiple components, a switching control method and device, including a memory and a processor, are used to achieve state switching of the camera equipment.
The maximum power of the camera equipment was reduced, which reduced the cost and design complexity of the overall solution and met the power supply requirements of the IEEE 802.3af protocol.
Smart Images

Figure CN115604574B_ABST
Abstract
Description
Technical Field
[0001] This article relates to switching control technology, and more particularly to a switching control method and device, camera equipment, and storage medium. Background Technology
[0002] As cameras become increasingly feature-rich, their overall power consumption rises. In Power over Ethernet (PoE) mode, some cameras already exceed the IEEE 802.3af requirement (12.95W) but are still significantly less than the IEEE 802.3at requirement (25.5W). Using the IEEE 802.3at protocol in this case would significantly increase the overall cost of the solution. The reasons are as follows:
[0003] Reason ① The cost of power management chips and peripheral circuits for powered devices (PDs) using the IEEE 802.3at protocol increases significantly;
[0004] Reason ② The PD power management circuit of the IEEE 802.3at protocol is more complex, occupies a larger printed circuit board (PCB) area, significantly increases PCB cost, and is more difficult to lay out and route;
[0005] Reason 3: The IEEE 802.3at protocol requires a backend network video recorder (NVR) or switch, which greatly increases the overall solution cost compared to the IEEE 802.3af protocol solution. Summary of the Invention
[0006] This application provides a switching control method and apparatus, a camera device, and a storage medium that can reduce power consumption.
[0007] This application provides a switching control method applied to a device comprising multiple components, including:
[0008] The device is controlled to switch from a first state to a second state. During the switch, there are state switching actions of at least two components. The state switching action of the component with the lower power in the second state than that in the first state takes priority over the state switching action of the component with the highest power at the moment of switching.
[0009] In one exemplary embodiment, the method further includes a state switching action of a component whose power in the second state is less than or equal to the power in the first state, which takes precedence over a state switching action of a component whose power in the second state is greater than the power in the first state.
[0010] In one exemplary embodiment, the device uses active Ethernet power.
[0011] In one exemplary embodiment, the device includes a camera.
[0012] In one exemplary embodiment, the plurality of components include: an infrared lamp and a dual-filter switch;
[0013] The control of the device to transition from the first state to the second state includes:
[0014] If the device is detected to be in a preset daytime mode and the conditions for switching from the preset daytime mode to the preset nighttime mode are met, the device is controlled to switch from the preset daytime mode to the preset nighttime mode. The switching process includes performing a state switching action of the dual filter switcher and performing an operation to turn on the infrared light, and the state switching action of the dual filter switcher takes precedence over the operation to turn on the infrared light.
[0015] In one exemplary embodiment, the plurality of components include: an infrared lamp and a dual-filter switch;
[0016] The control of the device to transition from the first state to the second state includes:
[0017] If the device is detected to be in a preset night mode and the conditions for switching from the preset night mode to the preset day mode are met, the device is controlled to switch from the preset night mode to the preset day mode. The switching process includes: performing the operation of turning off the infrared light and performing the state switching action of the dual filter switcher, and the operation of turning off the infrared light takes precedence over the state switching action of the dual filter switcher.
[0018] In one exemplary embodiment, the plurality of components include: an infrared lamp, a dual filter switcher, and a white light lamp;
[0019] The control of the device to switch from the first state to the second state includes: detecting that the device is in a preset intelligent dual-light mode and is triggered, controlling the device to switch from the state before triggering to the state after triggering, the switching process including: performing the operation of turning off the infrared light, performing the state switching action of the dual filter switcher, and performing the operation of turning on the white light, wherein the operation of turning off the infrared light takes precedence over the state switching action of the dual filter switcher, and the state switching action of the dual filter switcher takes precedence over the operation of turning on the white light.
[0020] This disclosure provides a switching control device, including a memory and a processor. The memory stores a program, which, when read and executed by the processor, implements the switching control method described in any of the above embodiments.
[0021] This disclosure provides a camera device, which includes the switching control device described above.
[0022] This disclosure provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the switching control method described in any of the above embodiments.
[0023] Compared with related technologies, this application embodiment includes a switching control method applied to a device comprising multiple components. The method includes controlling the device to transition from a first state to a second state, wherein at least two components undergo state switching during the transition. There is a time interval between the state switching actions of the components undergoing state switching, and the state switching action of a component whose power in the second state is less than or equal to its power in the first state takes precedence over the state switching action of a component whose power in the second state is greater than its power in the first state. The solution provided in this embodiment can prioritize the switching action of the component with the lower power after the switch during state switching, avoiding the superposition of power from multiple components and reducing the maximum power of the device.
[0024] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the solutions described in the description and the accompanying drawings. Attached Figure Description
[0025] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0026] Figure 1 A flowchart of the switching control method provided in the embodiments of this disclosure;
[0027] Figure 2 A flowchart of a switching control method provided as an exemplary embodiment;
[0028] Figure 3 A flowchart of a switching control method provided for another exemplary embodiment;
[0029] Figure 4 A flowchart of a switching control method provided for another exemplary embodiment;
[0030] Figure 5 Flowchart of a switching control method provided as yet another exemplary embodiment;
[0031] Figure 6 A schematic diagram of a switching control device provided for an exemplary embodiment. Detailed Implementation
[0032] This application describes several embodiments, but these descriptions are exemplary and not restrictive, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.
[0033] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive scheme as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive schemes to form another unique inventive scheme as defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this application may be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
[0034] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that it does not depend on such a specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims concerning the method and / or process should not be limited to the steps performed in the written order, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.
[0035] Figure 1 This is a flowchart illustrating a switching control method provided in an embodiment of this disclosure. Figure 1 As shown, this disclosure provides a switching control method applied to a device including multiple components, including:
[0036] Step 101: Control the device to switch from a first state to a second state. During the switch, there are state switching actions of at least two components. The state switching action of the component with less power in the second state than that in the first state takes priority over the state switching action of the component with the highest power at the moment of switching.
[0037] A state transition action of one component takes precedence over the state transition action of another component, meaning that the state transition action of the other component is executed only after the state transition action of the first component is completed. The switching control method provided in this embodiment can avoid the superposition of power at the moment of switching and power of the component in the first state (this superimposed power is greater than the superimposed power of power at the moment of switching and power of the component in the second state), thus reducing the maximum power.
[0038] Taking a camera as an example, the power of the dual filter switcher is at its maximum at the moment of switching (maximum refers to the power of the dual filter switcher in other states). Prioritizing the switching of the dual filter switcher ensures that the maximum power is the sum of the power of the dual filter switcher at the moment of switching and the power of the component in the second state, which is less than the sum of the power of the dual filter switcher at the moment of switching and the power in the first state, thereby reducing the power.
[0039] In one exemplary embodiment, the method further includes a state switching action of a component whose power in the second state is less than or equal to the power in the first state, which takes precedence over a state switching action of a component whose power in the second state is greater than the power in the first state.
[0040] The switching control method provided in this embodiment can prioritize the switching action of components whose power decreases after the switch when performing state switching, thus avoiding the superposition of power from multiple components, which would result in a large overall power. For example, a device includes component A and component B, where component A has a power of P in the first state. A1 The power in the second state is P A2 The power of component B in the first state is P. B1 The power in the second state is P B2 And P A1 <P A2 P B1 >P B2 Then, the state switching action of component B will be executed first to avoid a situation where component A has switched but component B has not switched, so that the maximum power is P. A2 +P B1 The state switching action of component B is executed first, with a maximum power of P. B2 +P A2 This can reduce power consumption.
[0041] In one exemplary embodiment, there is a time interval between the state switching actions of components that undergo state switching.
[0042] In one exemplary embodiment, the time interval between state switching actions can be a preset time interval, and the time intervals between different state switching actions can be the same or different. The existence of time intervals between state switching actions means that the state changes between components do not occur simultaneously. After one component completes its state switch, another component performs its state switch. For example, if the device includes component A and component B, component A may complete its state switch before component B performs its state switch.
[0043] In one exemplary embodiment, the device can be powered by active Ethernet. Different active Ethernet protocols have different maximum power outputs; therefore, reducing power consumption can be achieved by using different active Ethernet protocols, for example, using an active Ethernet protocol with a lower maximum power output, which can reduce costs.
[0044] In one exemplary embodiment, the device includes a camera. However, this disclosure is not limited to this and other devices may be used.
[0045] In one exemplary embodiment, the plurality of components include: an infrared lamp and a dual-filter switch;
[0046] The control of the device to transition from the first state to the second state includes:
[0047] If the device is detected to be in a preset daytime mode and meets the conditions for switching from the preset daytime mode to the preset nighttime mode, the device is controlled to switch from the preset daytime mode to the preset nighttime mode. The switching process includes: executing a state switching action of the dual filter switcher and executing an operation to turn on the infrared lamp, with the state switching action of the dual filter switcher taking precedence over the operation to turn on the infrared lamp. In the solution provided in this embodiment, in the first state, the infrared lamp is off. If the operation to turn on the infrared lamp is executed first, the maximum power must be superimposed with the power of the infrared lamp and the power at the moment of switching of the dual filter switcher. If the state switching action of the dual filter switcher is executed first, and the power of the infrared lamp is greater than the power at the moment of switching of the dual filter switcher, the maximum power only needs to be superimposed with the power of the infrared lamp, which can reduce the maximum power.
[0048] In one exemplary embodiment, the plurality of components include: an infrared lamp and a dual-filter switch;
[0049] The control of the device to transition from the first state to the second state includes:
[0050] If the device is detected to be in a preset night mode and the conditions for switching from the preset night mode to the preset day mode are met, the device is controlled to switch from the preset night mode to the preset day mode. The switching process includes: performing the operation of turning off the infrared lamp and performing the state switching action of the dual filter switcher, with the operation of turning off the infrared lamp taking precedence over the state switching action of the dual filter switcher. In the solution provided in this embodiment, in the first state, the infrared lamp is on. If the switching is performed first, the maximum power needs to be superimposed with the power of the infrared lamp and the power at the moment of switching of the dual filter switcher. If the state switching action of the dual filter switcher is performed first, and the power of the infrared lamp is greater than the power at the moment of switching of the dual filter switcher, the maximum power only needs to be superimposed with the power of the infrared lamp, which can reduce the maximum power.
[0051] In one exemplary embodiment, the plurality of components include: an infrared lamp, a dual filter switcher, and a white light lamp;
[0052] The control of the device to transition from a first state to a second state includes: detecting that the device is in a preset intelligent dual-light mode and has been triggered; controlling the device to transition from a state before triggering to a state after triggering; the transition process includes: performing an operation to turn off the infrared lamp; performing a state switching action of the dual filter switcher; and performing an operation to turn on the white light lamp. The operation to turn off the infrared lamp takes precedence over the state switching action of the dual filter switcher, and the state switching action of the dual filter switcher takes precedence over the operation to turn on the white light lamp. The solution provided in this embodiment, by prioritizing the turning off of the infrared lamp and finally turning on the white light lamp, avoids the maximum power of the device needing to be added to the power of the infrared lamp and the white light lamp during the state switching of the dual filter switcher, thus significantly reducing the maximum power consumption.
[0053] The following example illustrates the technical solution of this disclosure embodiment. In this embodiment, the device is a camera. The camera includes a main chip, Double Data Rate (DDR) synchronous dynamic random access memory, flash memory, a sensor, a microphone, a speaker, a dual filter switcher (IRCUT), infrared lights, white lights, and other components. The power of each component is shown in Table 1 below (this is only an example, and the embodiments of this disclosure are not limited thereto). The total power of the entire device is K, where 12.95W (IEEE 802.3af protocol) < K < 25.5W (IEEE 802.3at protocol). As can be seen from Table 1, the device power is mainly concentrated in components such as the speaker, the moment the IRCUT switches, the infrared lights, and the white lights. Attention should be paid to the switching logic algorithm of the above components to avoid the instantaneous power of the entire device exceeding the limit.
[0054] Table 1 Camera Power Table
[0055]
[0056]
[0057] In one technical solution, the camera includes multiple image modes, such as: Daytime Mode 1, Daytime Mode 2, Day to Night, Night to Daytime, Nighttime Mode 1, Nighttime Mode 2, and Nighttime Mode 3 (Intelligent Dual-Light Mode). The operating status of the components under different modes is shown in Table 2, and the power of the device under different modes is shown in Table 3. The above modes are only examples, and the camera may include more or fewer modes.
[0058] As shown in Tables 2 and 3, in Daytime Mode 1, the speaker is on, the IRCUT is not switched, and the infrared and white lights are off; the total power is: main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 = 5.5W;
[0059] In Daytime Mode 2, the speaker is on, and the white light stays on when triggered; the IRCUT does not switch, the infrared light is off, and the maximum power of the whole machine is: main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + white light power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 = 9.5W;
[0060] When switching from day to night, the speaker turns on, the IRCUT switches, the infrared light immediately turns on, and the white light turns off; the total power consumption is: main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + infrared light power + IRCUT switching instantaneous power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 + 1.5 = 11W;
[0061] When night turns into day, the speaker turns on, the IRCUT switches, the infrared light prepares to turn off, and the white light turns off; the total power consumption is: main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + infrared light power + IRCUT switching instantaneous power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 + 1.5 = 11W;
[0062] In Night Mode 1, the speaker is on, the white light stays on when triggered, the IRCUT does not switch, and the infrared light is off; the total power consumption is: main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + white light power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 = 9.5W;
[0063] In Night Mode 2, the speaker is on, the infrared light is always on, the IRCUT does not switch, and the white light is off; the total power consumption is: main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + infrared light power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 = 9.5W;
[0064] Night Mode 3 (Intelligent Dual-Light Mode): Speaker on, IRCUT switching, infrared light always on when not triggered, off when triggered, white light off when not triggered, always on when triggered; Total power consumption: Main chip power + DDR power + FLASH power + SENSOR power + MIC power + Speaker power + Infrared light power + White light power + IRCUT switching instantaneous power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 + 4 + 1.5 = 15W.
[0065] Table 2. Component operating status under various machine modes
[0066]
[0067] Table 3 Total Power of the Machine under Various Modes
[0068]
[0069] The above technical solution has a maximum power of 15W and can only use the IEEE 802.3at protocol, resulting in a high cost.
[0070] The data in Table 3 shows that the instantaneous power consumption of the entire unit is relatively high when switching from daytime to nighttime, from nighttime to daytime, and in Night Mode 3 (Intelligent Dual Light Mode), which can be improved and optimized.
[0071] In an exemplary embodiment, the day-to-night, night-to-day, and night mode 3 (intelligent dual-light mode) functions in the above-described technical solutions can be optimized, but are not limited thereto. Optimization can be performed only on night mode 3 (intelligent dual-light mode), or only on night mode 3 (intelligent dual-light mode) and day-to-night, or only on night mode 3 (intelligent dual-light mode) and night-to-day. The optimization method is illustrated in the following embodiments.
[0072] In the original technical solution, when switching from day to night mode, the speaker is turned on, the IRCUT is switched, the infrared light is turned on immediately, and the white light is turned off, with a total power of 11W. In this technical solution, because the IRCUT switching and the infrared light are turned on simultaneously, the maximum power is higher.
[0073] In an exemplary embodiment, IRCUT switching and infrared light activation are performed asynchronously to avoid the power of IRCUT switching and infrared light power accumulating at the moment of IRCUT switching. That is, in the day-to-night mode, the speaker is turned on, IRCUT is switched first, and after a certain interval (e.g., 500ms, which is just an example and can be other values, the infrared light can be turned on after the IRCUT switching is completed), the infrared light is turned on; the white light remains off. At this time, the maximum power of the whole device = main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + infrared light power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 = 9.5W, which is 1.5W less than the 11W in the original solution (i.e., the power at the moment of IRCUT switching).
[0074] In the original technical solution, during the transition from night to day mode: the speaker is on, the IRCUT switch is activated, the infrared light is about to turn off, the white light is off, and the total power consumption is 11W. In this technical solution, the infrared light is not yet off when the IRCUT switch is activated, resulting in a higher maximum power consumption.
[0075] In an exemplary embodiment, the infrared light can be turned off first to avoid the power of the infrared light and the power of the IRCUT switching moment being superimposed. That is, in the night-to-day mode: the speaker is on, the infrared light is turned off first, and after a certain interval (e.g., 100ms, this is just an example, it can be other values, and the IRCUT switching can be performed after the infrared light is turned off), the IRCUT is switched on; the white light is always turned off, and the maximum power of the whole device is = main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + infrared light power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 = 9.5W, which is 1.5W less than the 11W in the original solution (i.e., the power at the moment of IRCUT switching).
[0076] The original technical solution, Night Mode 3 (Intelligent Dual-Light Mode): Speaker on, IRCUT switching, infrared light always on when not triggered, off when triggered, white light off when not triggered, and maximum power of the whole unit is 15W. In this technical solution, the infrared light and white light turn on at the moment of IRCUT switching, so the maximum power is the sum of the power of the above three components, which is relatively large.
[0077] In an exemplary embodiment, when Night Mode 3 (Intelligent Dual-Light Mode) is triggered: the speaker is turned on, the infrared light is turned off first, and after a certain interval (e.g., 100ms, this is just an example, and the embodiments of this disclosure are not limited to this), the IRCUT is switched, and after a certain interval (e.g., 500ms, this is just an example, and the embodiments of this disclosure are not limited to this, and can be the same as or different from the previous interval), the white light is turned on; the maximum power of the whole device = main chip power + DDR power + FLASH power + SENSOR power + MIC power + speaker power + infrared light power = 1.5 + 0.4 + 0.1 + 0.4 + 0.1 + 3 + 4 = 9.5W; the solution provided in this embodiment, by prioritizing the turning off of the infrared light and finally turning on the white light, avoids the power superposition of the infrared light, white light and IRCUT at the moment of switching, greatly reducing the maximum power. The solution provided in this embodiment has a maximum power of less than 12.95W, and can use the IEEE802.3af protocol to power the camera, greatly reducing the complexity of the design and the cost of the overall solution.
[0078] Figure 2 A flowchart illustrating a switching control method as provided in an exemplary embodiment. Figure 2 As shown, the switching control method provided in this embodiment includes:
[0079] Step 201: Power on and initialize the device;
[0080] The device is, for example, a camera.
[0081] Step 202: Obtain the current image mode of the device;
[0082] Step 203: Determine whether the current image mode of the device is the preset daytime mode; if yes, proceed to step 204; if not, wait for a period of time and then proceed to step 202.
[0083] The daytime mode can include daytime mode 1 and daytime mode 2; the waiting time can be set as needed.
[0084] Step 204: Determine whether to switch from day mode to night mode; if yes, proceed to step 205; otherwise, wait until you switch from day mode to night mode.
[0085] The switching from daytime mode to nighttime mode can be based on the ambient light intensity, or it can be based on a preset time point. This embodiment of the present disclosure does not limit this.
[0086] Step 205: Prioritize switching to IRCUT, turn on the infrared light after a preset interval, and keep the white light off. The preset interval can be set as needed.
[0087] The solution provided in this embodiment allows switching the IRCUT before turning on the infrared light when switching from day mode to night mode, thus avoiding the superposition of power between the IRCUT and the infrared light during the switching moment and reducing the maximum power.
[0088] Figure 3 A flowchart illustrating a switching control method as provided in an exemplary embodiment. Figure 3 As shown, the switching control method provided in this embodiment includes:
[0089] Step 301: Power on and initialize the device; the device is, for example, a camera.
[0090] Step 302: Obtain the current image mode of the device;
[0091] Step 303: Determine whether the current image mode of the device is the preset night mode; if yes, proceed to step 304; if not, wait for a period of time and then proceed to step 302.
[0092] The night mode can include night mode 1, night mode 2, and night mode 3; the waiting time can be set as needed.
[0093] Step 304: Determine whether to switch from night mode to day mode; if yes, proceed to step 305; otherwise, wait until night mode is entered and day mode is switched.
[0094] The switching from night mode to day mode can be based on the ambient light intensity, or it can be based on a preset time point. This embodiment of the present disclosure does not limit this.
[0095] Step 305: First turn off the infrared light, then switch to IRCUT after a preset interval, keeping the white light off.
[0096] The solution provided in this embodiment can turn off the infrared light before switching IRCUT when switching from night mode to day mode, thus avoiding the superposition of power between IRCUT and infrared light at the moment of switching and reducing the maximum power.
[0097] Figure 4 A flowchart illustrating a switching control method as provided in an exemplary embodiment. Figure 4 As shown, the switching control method provided in this embodiment includes:
[0098] Step 401: Power on and initialize the device; the device is, for example, a camera.
[0099] Step 402: Obtain the current image mode of the device;
[0100] Step 403: Determine whether the current image mode of the device is the preset intelligent dual-light mode; if yes, proceed to step 404; if not, wait for a period of time and then proceed to step 402.
[0101] In the intelligent dual-light mode: the infrared light is always on when not triggered and turns off when triggered; the white light is off when not triggered and is always on when triggered.
[0102] Step 404: When triggered, the infrared light is turned off first, and after a first preset time interval, the IRCUT is switched. After a second preset time interval after switching the IRCUT, the white light is turned on.
[0103] The solution provided in this embodiment can turn off the infrared lamp and then switch the IRCUT when the intelligent dual-light mode is triggered, and then turn on the white light after switching the IRCUT. This avoids the superposition of power during IRCUT switching, infrared lamp power and white light power, and can reduce the maximum power.
[0104] In the above embodiments, the camera is aware of the currently enabled load functions and dynamically adjusts its service capabilities based on software triggers. The camera can be powered using the IEEE 802.3af protocol, which greatly reduces the complexity of the design and the cost of the overall solution.
[0105] Figure 5 A flowchart of a switching control method provided in another embodiment. (See attached flowchart.) Figure 5 As shown, the switching control method provided in this embodiment includes:
[0106] Step 501: Power on and initialize the device; the device is, for example, a camera.
[0107] Step 502: Obtain the current image mode of the device;
[0108] Step 503: Determine whether the current image mode of the device is the preset daytime mode; if yes, proceed to step 504; otherwise, proceed to step 506.
[0109] The daytime mode may include daytime mode 1 and daytime mode 2;
[0110] Step 504: Determine whether to switch from day mode to night mode; if yes, proceed to step 505; otherwise, wait until you switch from day mode to night mode.
[0111] The switching from daytime mode to nighttime mode can be based on the ambient light intensity, or it can be based on a preset time point. This embodiment of the present disclosure does not limit this.
[0112] Step 505: Prioritize switching to IRCUT, turn on the infrared light after a preset interval, and keep the white light off. End.
[0113] Step 506: Determine whether the current image mode of the device is the preset night mode; if yes, proceed to step 507; if not, wait for a period of time and then proceed to step 502.
[0114] The night mode may include night mode 1, night mode 2, and night mode 3 (i.e., intelligent dual-light mode);
[0115] Step 507: Determine whether the current image mode of the device is the preset intelligent dual-light mode; if yes, proceed to step 508; if not, proceed to step 509.
[0116] In the intelligent dual-light mode: the infrared light is always on when not triggered and turns off when triggered; the white light is off when not triggered and is always on when triggered.
[0117] Step 508: When triggered, the infrared light is turned off first, and after a first preset time interval, the IRCUT is switched. After a second preset time interval after switching the IRCUT, the white light is turned on.
[0118] Step 509: Determine whether to switch from night mode to day mode; if yes, proceed to step 510; otherwise, wait until night mode is entered and day mode is switched.
[0119] The switching from night mode to day mode can be based on the ambient light intensity, or it can be based on a preset time point. This embodiment of the present disclosure does not limit this.
[0120] Step 510: First turn off the infrared light, then switch to IRCUT after a preset interval, keeping the white light off, and end.
[0121] The above switching control method is only an example, and switching control can be performed in other ways. For example, in an exemplary embodiment, after step 505, step 506 can be executed; after step 510, step 503 can be executed.
[0122] like Figure 6 As shown, this embodiment of the present disclosure provides a switching control device 60, including a memory 610 and a processor 620. The memory 610 stores a program, which, when read and executed by the processor 620, implements the switching control method described in any of the above embodiments.
[0123] This disclosure provides a camera device, which includes the switching control device described above.
[0124] This disclosure provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the switching control method of any of the above embodiments.
[0125] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
Claims
1. A switching control method, applied to a device comprising multiple components, characterized in that, include: The device is controlled to switch from a first state to a second state. During the switch, there are state switching actions of at least two components. During the switch, the state switching action of the component with the lower power in the second state than that in the first state takes priority over the state switching action of the component with the highest power at the moment of switching.
2. The switching control method according to claim 1, characterized in that, The method further includes a state switching action of a component whose power in the second state is less than or equal to the power in the first state, which takes precedence over a state switching action of a component whose power in the second state is greater than the power in the first state.
3. The switching control method according to claim 1 or 2, characterized in that, The device is powered by active Ethernet.
4. The switching control method according to claim 3, characterized in that, The device includes a camera.
5. The switching control method according to claim 4, characterized in that, The multiple components include: infrared lamps and dual filter switchers; The control of the device to transition from the first state to the second state includes: If the device is detected to be in a preset daytime mode and the conditions for switching from the preset daytime mode to the preset nighttime mode are met, the device is controlled to switch from the preset daytime mode to the preset nighttime mode. The switching process includes performing a state switching action of the dual filter switcher and performing an operation to turn on the infrared light, and the state switching action of the dual filter switcher takes precedence over the operation to turn on the infrared light.
6. The switching control method according to claim 4, characterized in that, The multiple components include: infrared lamps and dual filter switchers; The control of the device to transition from the first state to the second state includes: If the device is detected to be in a preset night mode and the conditions for switching from the preset night mode to the preset day mode are met, the device is controlled to switch from the preset night mode to the preset day mode. The switching process includes: performing the operation of turning off the infrared light and performing the state switching action of the dual filter switcher, and the operation of turning off the infrared light takes precedence over the state switching action of the dual filter switcher.
7. The switching control method according to claim 2, characterized in that, The multiple components include: an infrared lamp, a dual filter switcher, and a white light lamp; The control of the device to switch from the first state to the second state includes: detecting that the device is in a preset intelligent dual-light mode and is triggered, controlling the device to switch from the state before triggering to the state after triggering, the switching process including: performing the operation of turning off the infrared light, performing the state switching action of the dual filter switcher, and performing the operation of turning on the white light, wherein the operation of turning off the infrared light takes precedence over the state switching action of the dual filter switcher, and the state switching action of the dual filter switcher takes precedence over the operation of turning on the white light.
8. A switching control device, characterized in that, It includes a memory and a processor, wherein the memory stores a program that, when read and executed by the processor, implements the switching control method as described in any one of claims 1 to 7.
9. A camera device, characterized in that, The camera device includes the switching control device as described in claim 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the switching control method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Power adjustment method and device, computer equipment and storage medium
CN110568899A