A pasture self-powered long-endurance driving device control method, system and medium
By dynamically adjusting the power of the herding equipment based on the frequency of cattle return, the problems of short battery life and low level of intelligence of pasture herding equipment have been solved, thereby extending the equipment's battery life and enabling automated management, thus improving the equipment's utilization efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING HESHENGTIANCHENG TECH CO LTD
- Filing Date
- 2024-07-08
- Publication Date
- 2026-06-05
Smart Images

Figure CN118680090B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment power supply software control technology, and more specifically, to a control method, system and medium for a ranch self-powered long-endurance driving and herding device. Background Technology
[0002] Pasture herding equipment refers to devices used to herd farmed poultry, typically including cattle and sheep. When grazing livestock on pastures, a timing device is usually attached to the neck of the cattle and sheep. Its purpose is to start a timer when the cattle or sheep are released from their pens, and when the timer expires, the device plays a pre-recorded human voice message to prompt the cattle or sheep to return to their pens. However, in actual farming, some cattle and sheep sometimes linger at the entrance to their pens and do not return on their own. In such cases, it is necessary to use herding equipment such as high-pressure water guns and high-pressure air guns to drive the cattle and sheep back into their pens.
[0003] Existing herding devices are typically installed at the entrances of cattle and sheep pens, and most of these devices use solar-powered batteries. Since solar batteries generate electricity by sampling solar energy, their capacity is limited, requiring careful control of power consumption during use. They are particularly prone to running out of power in cloudy or rainy weather, thus restricting the normal operation of the herding devices. Ordinary rechargeable batteries also have limited storage capacity, necessitating power consumption control to extend their operating time.
[0004] However, in real-world situations, to improve the herding effect, the herding equipment needs to operate at a higher power level when activated to provide a better result. At this point, the cattle and sheep begin to return to their pens under the herding force, and led by the leading cattle and sheep, the following cattle and sheep also gradually return. However, the herding equipment (high-pressure water gun) remains in a high-power operating state, consuming a significant amount of electricity. Furthermore, the equipment still requires manual control to shut down, indicating a low level of automation and thus requiring improvement. Summary of the Invention
[0005] In view of the technical problem mentioned in the background art that the drive control of existing herding equipment usually lacks a software control scheme, the present invention provides a control method for a ranch self-powered long-endurance herding equipment, which extends the endurance of the herding equipment and can automatically shut down the herding equipment, with a high degree of intelligence.
[0006] To solve the above technical problems, the present invention provides the following technical solution one:
[0007] A control method for a ranch's self-powered, long-endurance herding device includes:
[0008] The control device is activated at the first operating power for the first preset time;
[0009] Calculate the frequency of cattle returning to the pen during the first preset time period before the end of the preset time period;
[0010] The cow return frequency is compared with the preset cow return frequency; when the cow return frequency is greater than or equal to the preset cow return frequency, the driving equipment is controlled to start for a second preset time at a second working power lower than the first working power; when the cow return frequency is less than the preset cow return frequency, the driving equipment is controlled to continue to start for a second preset time at the first working power.
[0011] After the second preset time has elapsed, the return frequency of the cattle to the cattle pen at the predetermined time is calculated.
[0012] Determine if the frequency of cattle returning is zero; if so, control the shutdown of the driving equipment.
[0013] The principle of the software control method of the present invention, based on the above technical solution, is as follows: First, the driving equipment is controlled to start at a first working power for a first preset time. This first working power is typically set to a relatively high power, i.e., a control condition with a duty cycle close to 100%, thus providing sufficient driving force when the cattle and sheep begin to be driven. Then, before the end of the first preset time, the return frequency of cattle to the pen during that time period is calculated, i.e., the average return frequency within the first preset time is calculated. Comparing this return frequency with the preset return frequency determines whether the expected driving effect has been achieved. Furthermore, depending on the driving effect, the subsequent control scheme is selected differently. For example, if the expected driving effect is achieved (when the return frequency is greater than or equal to the preset return frequency), the driving power is reduced to save energy, i.e., the duty cycle is controlled at approximately 30%-80%. If the expected driving effect is not achieved (when the return frequency is less than the preset return frequency), the original driving power is maintained, and no energy saving is possible in this case. Under normal circumstances, the cattle returning to their pens within the first preset time period generally achieves the expected return frequency. Therefore, energy is saved in most cases, resulting in energy savings throughout the entire control process and increasing the battery life of the driving equipment. Finally, after the second preset time period (which is set relatively long to allow all cattle and sheep to return to their pens normally), another preset time period is selected, and the return frequency within this time period is calculated. If the return frequency is zero, it indicates that almost all cattle and sheep have returned to their pens, and the driving equipment is then turned off.
[0014] The present invention further includes a method for calculating the frequency of cattle returning to the pen: detecting the number of cattle entering the pen entrance during the specified time period, dividing the number by the duration of the time period, and calculating the frequency of cattle entering the pen.
[0015] Furthermore, the different operating power control methods of the present invention are as follows: under the same battery power supply voltage conditions of the driving device, the duty cycle ratio of the power supply voltage is controlled to be different within the power supply cycle to obtain different operating power.
[0016] Through the above technical solution, the duty cycle refers to the proportion of the effective power supply time for controlling the power supply voltage to the total power supply time within the power supply cycle. As a result, the average power supply voltage within the power supply cycle is less than the power supply voltage, thus obtaining different operating power.
[0017] Furthermore, the first preset time is shorter than the second preset time.
[0018] The invention further states that after "determining whether the cow return frequency is equal to zero", if not, the control continues to start the third preset time under the original working power condition, and after the third preset time ends, the control shuts down the driving device.
[0019] Using the above technical solution, if the cattle return frequency is greater than zero within a predetermined time (after the second preset time), it indicates that not all cattle and sheep have returned to their pens within the second preset time, and some are still at the entrance. In this case, the control continues to operate at the original power level for a third preset time. After the third preset time ends, the control shuts off the driving equipment, assuming that all cattle and sheep have returned to their pens after the third preset time. Alternatively, to accurately shut down the driving equipment, the cattle return frequency can be acquired multiple times within the third preset time to determine if it equals zero. If it equals zero, the control shuts off the driving equipment.
[0020] The present invention also provides the following technical solution two:
[0021] A control system for a ranch's self-powered, long-endurance herding device includes:
[0022] The counting module, installed at the entrance of the cattle pen, is used to count the number of cattle entering the pen;
[0023] The power supply is configured as a solar battery to power the driving equipment;
[0024] The controller is used to control the duty cycle of the operating voltage of the driving equipment, thereby controlling the driving equipment to operate under different operating power conditions;
[0025] The timing module is used to time the duration of operation of the driving equipment under different operating power conditions;
[0026] The cow return frequency calculation module is communicatively connected to both the counting module and the timing module. The cow return frequency calculation module receives statistical data from the counting module and time data from the timing module and calculates the cow return frequency.
[0027] The first comparison module is communicatively connected to the cow return frequency calculation module and the controller. The first comparison module is used to compare the cow return frequency with the preset cow return frequency to obtain a comparison signal. The controller receives the comparison signal and controls the driving equipment to work under different working power conditions.
[0028] Through the above technical solution, the controller controls the driving equipment to operate under different power conditions. It controls the driving equipment to operate at high power (high duty cycle) for a first preset time and at low power (low duty cycle) for a second preset time, thereby achieving energy saving and extending the equipment's operating range. The controller's control parameters are derived from the cow return frequency calculation module and the first comparison module, with different parameters enabling different control methods. The parameters for the cow return frequency calculation module are derived from the counting module and the timing module.
[0029] Furthermore, the present invention states that the counting module is configured as a counter having an infrared laser emitting module and an infrared laser receiving module.
[0030] The present invention further includes a second comparison module, which is communicatively connected to both the cow return frequency calculation module and the controller. The second comparison module receives the cow return frequency signal and determines whether the cow return frequency signal is greater than zero.
[0031] Furthermore, the driving device can be configured as an electric high-pressure water gun.
[0032] The present invention also provides the following technical solution three:
[0033] A computer storage medium, which can be read and executed by a computer processor, stores a computer program inside. After the computer processor executes the computer program, it can perform a control method for a self-powered, long-endurance ranch driving device according to the present invention.
[0034] In summary, the present invention has the following beneficial effects:
[0035] (1) This invention provides a control method for a long-endurance self-powered pasture driving device, thereby extending the driving device's runtime.
[0036] (2) The present invention can automatically shut down the driving device, and has a high degree of intelligence. Attached Figure Description
[0037] Figure 1 This is a schematic diagram illustrating the principle of the control method of the present invention;
[0038] Figure 2 This is a schematic diagram of the control system of the present invention.
[0039] Reference numerals in the attached diagram: 1. Counting module; 2. Power supply; 3. Controller; 4. Timing module; 5. Return frequency calculation module; 6. First comparison module; 7. Second comparison module. Detailed Implementation
[0040] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the embodiments of the present invention are not limited thereto.
[0041] A control method for a ranch's self-powered, long-endurance herding device, combined with Figure 1 As shown, the overall control principle includes the following steps: The driving device is controlled to start at a first working power for a first preset time; before the end of the first preset time, the return frequency of cattle returning to the pen during that time period is calculated; the return frequency is compared with a preset return frequency; when the return frequency is greater than or equal to the preset return frequency, the driving device is controlled to start at a second working power less than the first working power for a second preset time; when the return frequency is less than the preset return frequency, the driving device is controlled to continue starting at the first working power for the second preset time; after the second preset time ends, the return frequency of cattle returning to the pen for a predetermined time is calculated; it is determined whether the return frequency is equal to zero; if yes, the driving device is controlled to shut down; if no, the driving device is controlled to continue starting at the original working power for a third preset time, and after the third preset time ends, the driving device is controlled to shut down.
[0042] In practical applications, the above software control method uses some specific parameters as examples: In this embodiment, a high-pressure water gun is used as the driving device. Therefore, according to the above control method, the driving device is first controlled to start at the first working power for the first preset time. The first working power is usually set to a relatively large power, that is, a control condition with a duty cycle close to 100%. In this embodiment, the first working power is controlled by a 100% duty cycle ratio, and the first preset time is set to 1 minute, so that sufficient driving force can be provided during the first minute of driving cattle and sheep. During this 1 minute, the cattle and sheep have begun to move forward and return to the cattle pen and sheep pen under the driving action of the driving device.
[0043] Then, before the end of the first preset time, the return frequency of cattle to the pen during that time period is calculated, i.e., the average return frequency within the first preset time is calculated. By comparing the return frequency with the preset return frequency, it can be determined whether the expected driving effect has been achieved. Then, depending on the different driving effects, the control scheme selected in the subsequent second preset time will also be different. The second preset time is the main time for cattle and sheep to return to their dwellings, so the second preset time is generally set to a longer time. In this embodiment, the second preset time is set to 15 minutes. The aforementioned control scheme selection is different. For example, if the expected driving effect is achieved within the first preset time (i.e., when the return frequency is greater than or equal to the preset return frequency), the driving power is reduced to save energy, i.e., the duty cycle is controlled at about 30%-80%; if the expected driving effect is not achieved within the first preset time (when the return frequency is less than the preset return frequency), the original driving power is maintained, and no energy saving is possible in this case. Under normal circumstances, with the driving action within the first preset time, the return frequency of cattle can basically achieve the expected return effect. That is, cattle and sheep will begin to return to the cattle pen and sheep pen under the strong driving action of the high-pressure water gun within the first preset time. Therefore, energy can be saved in most cases, thus achieving the effect of energy saving in the entire control process and increasing the battery life of the driving equipment.
[0044] Finally, after the second preset time has elapsed, another preset time period is selected, such as 1 minute after the second preset time has elapsed (i.e., the preset time is 1 minute). The return frequency of cattle during this time period is calculated. If the return frequency is zero, it means that almost all cattle and sheep have returned to their pens. At this point, the driving equipment can be turned off. Of course, there are special exceptions. If the cattle and sheep are completely unaffected by the driving equipment and remain motionless at the entrance regardless of the driving action, the return frequency will also be zero. This indicates that all cattle and sheep that can be affected by the driving lever have returned to their pens. In this case, the driving equipment can be turned off, and the remaining cattle and sheep will remain motionless at the entrance and be manually driven into their enclosure.
[0045] The method for calculating the return frequency of cattle is as follows: a counter is set up at the entrance of the cattle pen to detect the number of cattle entering the entrance of the cattle pen during the specified time period. The number is divided by the duration of the time period to calculate the frequency of cattle entering the cattle pen.
[0046] Meanwhile, in this invention, the method for controlling different operating power is to control the duty cycle ratio of the power supply voltage within the same power supply cycle under the same battery power supply voltage condition of the driving device, thereby obtaining different operating power.
[0047] To implement the above software control scheme, a control system for a ranch's self-powered, long-endurance herding equipment is needed, combined with... Figure 2As shown, the hardware control system includes: a counting module 1, a power supply 2, a controller 3, a timing module 4, a return frequency calculation module 5, a first comparison module 6, and a second comparison module 7. The control parameters of the controller 3 are derived from the return frequency calculation module 5, the first comparison module 6, and the second comparison module 7, and different control methods are implemented based on different parameters. The parameters of the return frequency calculation module 5 are derived from the counting module 1 and the timing module 4.
[0048] The specific functions of each part of the structure are:
[0049] Counting module 1, installed at the entrance of the cattle pen, is used to count the number of cattle entering the pen, i.e., to collect data on the number of cattle in the pen. Counting module 1 is configured as a counter with an infrared laser emitting module and an infrared laser receiving module. Because there will be errors when multiple cattle or sheep enter together, in actual installation, the entrance needs to be set to a gate frame that can only accommodate one cattle or one sheep at a time. This way, each time a cattle or sheep enters, the infrared laser emitting module and the infrared laser receiving module are triggered once, resulting in a more accurate count and a more accurate cattle return frequency.
[0050] Power supply 2 is configured as a solar-powered battery to power the driving equipment. Of course, other rechargeable batteries can also be used.
[0051] Controller 3 is used to control the duty cycle of the operating voltage of the driving equipment, thereby controlling the driving equipment to operate under different operating power conditions. Duty cycle refers to the proportion of the effective power supply time of the controlled power supply voltage to the total power supply time within a power supply cycle, so that the average power supply voltage within the power supply cycle is less than the operating voltage, resulting in different operating power.
[0052] Timing module 4 is used to time the duration of operation of the driving equipment under different operating power conditions. The timer can be a hardware timer or a timer in a software program.
[0053] The cow return frequency calculation module 5 is communicatively connected to both the counting module 1 and the timing module 4. The cow return frequency calculation module 5 receives statistical data from the counting module 1 and time data from the timing module 4 and calculates the cow return frequency.
[0054] The first comparison module 6 is communicatively connected to the cow return frequency calculation module 5 and the controller 3. The first comparison module 6 is used to compare the cow return frequency with the preset cow return frequency to obtain a comparison signal. The controller 3 receives the comparison signal and controls the driving equipment to work under different working power conditions.
[0055] The second comparison module 7 is communicatively connected to the cow return frequency calculation module 5 and the controller 3. The second comparison module 7 receives the cow return frequency signal and determines whether the cow return frequency signal is greater than zero.
[0056] Therefore, the control method can be implemented through the above hardware system.
[0057] In addition, this invention also discloses a computer storage medium that can be read and executed by a computer processor. It stores a computer program inside the medium. After the computer program is executed by the computer processor, it can execute the control method for a ranch self-powered long-endurance driving device.
[0058] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A control method for a self-powered, long-endurance herding device for ranches, characterized in that, include: The control device is activated at the first operating power for the first preset time; Before the end of the first preset time, calculate the return frequency of cattle to the cattle pen within that time period. The method for calculating the return frequency is as follows: detect the number of cattle returning to the cattle pen within the first preset time period at the entrance of the cattle pen, divide the number by the duration of the first preset time, and calculate the return frequency of cattle to the cattle pen. Compare the cow return frequency with the preset cow return frequency; when the cow return frequency is greater than or equal to the preset cow return frequency, control the driving device to start the second preset time at a second working power that is less than the first working power; When the cow return frequency is less than the preset cow return frequency, control the driving equipment to continue to start at the first working power for the second preset time; After the second preset time ends, the return frequency of cattle to the pen is calculated. The method for calculating the return frequency is as follows: at the entrance of the pen, the number of cattle returning to the pen within the second preset time is detected, and the number is divided by the duration of the second preset time to calculate the return frequency. Determine if the return frequency is equal to zero; If so, control the shutdown of the repellent equipment.
2. The control method for a self-powered, long-endurance herding device for a ranch according to claim 1, characterized in that: The different power control methods are as follows: under the same battery power supply voltage conditions of the drive device, different duty cycle ratios of the power supply voltage are controlled within the power supply cycle to obtain different power outputs.
3. The control method for a self-powered, long-endurance herding device for ranches according to claim 1, characterized in that: The duration of the first preset time is less than the duration of the second preset time.
4. The control method for a self-powered, long-endurance herding device for ranches according to claim 1, characterized in that: After "determining whether the return frequency is equal to zero", if not, control continues to start the third preset time under the original working power condition, and control shuts down the driving equipment after the third preset time ends.
5. A control system for a ranch's self-powered, long-endurance herding device, characterized in that, include: The counting module (1) is installed at the entrance of the cattle pen and is used to count the number of cattle entering the cattle pen; The power supply (2) is configured as a solar storage battery to power the driving equipment; The controller (3) is used to control the duty cycle of the working voltage of the driving equipment, thereby controlling the driving equipment to work under different working power conditions; The timing module (4) is used to time the duration of the driving equipment working under different operating power conditions; The cow return frequency calculation module (5) is communicatively connected to both the counting module (1) and the timing module (4). The cow return frequency calculation module (5) receives statistical data from the counting module (1) and time data from the timing module (4) and calculates the cow return frequency. The first comparison module (6) is communicatively connected to the cow return frequency calculation module (5) and the controller (3). The first comparison module (6) is used to compare the cow return frequency with the preset cow return frequency to obtain a comparison signal. The controller (3) receives the comparison signal and controls the driving equipment to work under different working power conditions.
6. The control system for a ranch self-powered long-endurance driving and herding equipment according to claim 5, characterized in that: The counting module (1) is configured as a counter having an infrared laser emitting module and an infrared laser receiving module.
7. The control system for a ranch self-powered long-endurance driving and herding equipment according to claim 5, characterized in that: It also includes a second comparison module (7), which is communicatively connected to the cow return frequency calculation module (5) and the controller (3). The second comparison module (7) receives the cow return frequency signal and determines whether the cow return frequency signal is greater than zero.
8. The control system for a ranch self-powered long-endurance driving and herding equipment according to claim 5, characterized in that: The driving device can be configured as an electric high-pressure water gun.
9. A computer storage medium that can be read and executed by a computer processor, characterized in that: The device internally stores a computer program, which, when executed by a computer processor, is capable of performing the control method described in any one of claims 1 to 4.