Ear tag state updating method and device, storage medium and electronic device
By acquiring and identifying ear tag status data and updating ear tag status, the problem of farmers being unable to understand the health status of livestock in a timely manner is solved, and real-time monitoring of ear tag status is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN ZHONGRONG DIGITAL TECH CO LTD
- Filing Date
- 2021-04-15
- Publication Date
- 2026-07-21
AI Technical Summary
Farmers cannot know the current status of the ear tags worn by livestock in real time, which makes it impossible to detect in time whether the ear tags are not worn or damaged, thus affecting the monitoring of livestock health.
By acquiring the status data collected by the ear tags, identifying the data type and numerical range, and updating the current status of the ear tags, including whether they are worn, not worn, or damaged.
It enables real-time updates of ear tag status, ensuring that farmers can promptly understand the health status of livestock and avoid data collection failures.
Smart Images

Figure CN115211844B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of livestock breeding, specifically to a method, apparatus, storage medium, and electronic device for updating ear tag status. Background Technology
[0002] With the continuous development of the livestock industry and the increasing demands for food hygiene, large-scale livestock farms are emerging. During the livestock breeding process, the health of the animals is a major concern for breeders. Currently, the livestock industry generally monitors the health of livestock by attaching ear tags, allowing breeders to easily understand the animals' health status.
[0003] However, in the relevant technologies, farmers cannot know the current status of the ear tags worn by livestock in real time, making it impossible for farmers to detect in a timely manner whether the ear tags are not worn or damaged, thus preventing farmers from understanding the health status of livestock in a timely manner. Summary of the Invention
[0004] This application provides a method, apparatus, storage medium, and electronic device for updating the status of ear tags, which can update the status of ear tags in a timely manner to prevent farmers from failing to detect that the ear tags are not being worn, thus preventing the ear tags from collecting livestock status data normally and causing farmers to be unable to understand the health status of livestock in a timely manner.
[0005] In a first aspect, embodiments of this application provide a method for updating the state of an ear tag, including:
[0006] Acquire the status data of the ear tag acquisition;
[0007] Identify the data type of the state data, and identify the numerical range of the state data;
[0008] Update the current state of the ear tag according to the data type and the numerical range.
[0009] Secondly, embodiments of this application also provide an ear tag status updating device, comprising:
[0010] The acquisition module is used to acquire the status data of the ear tag acquisition.
[0011] The identification module is used to identify the data type of the status data and the numerical range of the status data.
[0012] The status update module is used to update the current status of the ear tag according to the data type and the numerical range.
[0013] Thirdly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when run on a computer, causes the computer to perform an ear tag status update method as provided in any embodiment of this application.
[0014] Fourthly, embodiments of this application also provide an electronic device, including a processor and a memory, the memory having a computer program, the processor executing an ear tag status update method as provided in any embodiment of this application by calling the computer program.
[0015] The technical solution provided in this application acquires the status data collected by the ear tag, identifies the data type and numerical range of the status data, and then updates the current status of the ear tag based on the data type and numerical range. This application can update the ear tag status, preventing farmers from failing to notice when the ear tag is not being worn, thus preventing the ear tag from properly collecting livestock status data and causing farmers to be unable to understand the livestock's health status in a timely manner. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating an application scenario of the ear tag status update method provided in this application embodiment.
[0018] Figure 2 This is a schematic diagram of a first method for updating the ear tag status provided in an embodiment of this application.
[0019] Figure 3 This is a second flowchart illustrating the method for updating the ear tag status provided in an embodiment of this application.
[0020] Figure 4 A schematic diagram of the structure of the ear tag status updating device provided in the embodiments of this application.
[0021] Figure 5 This is a schematic diagram of a first structure of an electronic device provided in an embodiment of this application.
[0022] Figure 6 This is a schematic diagram of a second structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application 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 this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.
[0024] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0025] This application provides a method for updating the state of an ear tag. The execution subject of this method can be the ear tag state updating device provided in this application, or an electronic device integrating the ear tag state updating device. The ear tag state updating device can be implemented in hardware or software. The electronic device can be a smartphone, tablet computer, PDA, laptop computer, or desktop computer, etc.
[0026] For example, regarding the specific integration of ear tag status updates into smartphones or laptops, see [link to relevant documentation]. Figure 1 The smartphone or laptop can acquire the status data collected by the ear tags, identify the data type and numerical range of the status data, and then update the current status of the ear tags based on the data type and numerical range. Farmers can view the current status of each ear tag via their smartphone or laptop, and thus manage the livestock corresponding to that ear tag based on the current status. The smartphone or laptop can acquire the status data collected by the ear tags from a data terminal via a communication link. This data terminal can collect not only the status data collected by the ear tags, but also information collected by various environmental sensors installed in the farm, as well as the identification information of each livestock, etc.
[0027] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0028] Please see Figure 2 , Figure 2This is a schematic flowchart of a first method for updating the ear tag status provided in this application embodiment. This ear tag status updating method can be applied to electronic devices, including smartphones, tablets, PDAs, laptops, or desktop computers. The specific flow of the ear tag status updating method provided in this application embodiment is as follows:
[0029] 101. Obtain the status data of the ear tag acquisition.
[0030] With the continuous development of livestock farming and the increasing demands for food hygiene, large-scale livestock farms are emerging. During livestock breeding, the health status of livestock is a major concern for farmers. Currently, livestock farming generally monitors livestock health by using ear tags, allowing farmers to easily understand the animals' health conditions. However, in related technologies, farmers cannot monitor the real-time status of the ear tags, making it difficult to detect when tags are not being worn or are damaged, thus hindering timely understanding of the livestock's health. In this embodiment, the status data includes a series of collected data such as the livestock's surrounding environment and physiological indicators, including temperature and movement data.
[0031] 102. Identify the data type of the status data and the numerical range of the status data.
[0032] For example, the data type of state data can be either temperature state data type or motion state data type.
[0033] It is understandable that when identifying the numerical range of temperature status data, the numerical range of temperature status data can be the range of values of the collected temperature status data, for example, it can be 20 degrees to 25 degrees, or it can be 30 degrees to 32 degrees.
[0034] It should be noted that when identifying the numerical range of motion state data, for example, the range can be determined by measuring physical quantities related to motion, such as position, displacement, velocity, acceleration, vibration displacement, amplitude, and wave propagation. For instance, assuming motion state data is recorded by changes in position, if a change in position is detected, the numerical range of the motion state data is recorded as 1; if the position does not change, the numerical range is recorded as 0. Understandably, this case is concerned with whether motion state data exists. Therefore, by setting numerical ranges for when motion state data exists and when it does not, the two scenarios can be distinguished.
[0035] 103. Update the current state of the ear tag according to the data type and numerical range.
[0036] For example, if the data type of the collected status data is temperature status data, the current status of the ear tag can be updated by the numerical range of the temperature status data.
[0037] For example, if the collected status data includes both temperature status data and motion status data, then the current status of the ear tag can be updated using both temperature status data and motion status data.
[0038] In this embodiment, the current state of the ear tag may include a worn state, an unworn state, and a damaged state. To further clarify the current state of the ear tag, the unworn state may also include a detached state.
[0039] For example, if the status data includes temperature status data, and the value range of the temperature status data intersects with or is outside the first preset value range, the current status of the ear tag is updated to damaged status.
[0040] The first preset value range is an empirical value summarized based on actual application scenarios. For example, this first preset value range can be based on the temperature data collected and summarized by farmers in their farms. For instance, if the ambient temperature data collected by environmental sensors and the temperature status data collected by ear tags in the farm are between -20 degrees and 44 degrees, it indicates that the temperature range is within the normal range, and the first preset value range can be set to -20 degrees to 44 degrees.
[0041] That is, when the temperature data collected by the ear tag is not within the normal temperature range of the farm, the current status of the ear tag will be updated to damaged.
[0042] Understandably, when no status data is acquired from the ear tag, the current status of the ear tag will be updated to "no status data acquired".
[0043] In practice, this application is not limited by the execution order of the described steps. Without causing conflicts, some steps may be performed in other orders or simultaneously.
[0044] As can be seen from the above, the ear tag status update method and technical solution provided in this application embodiment acquire the status data collected by the ear tag, identify the data type and numerical range of the status data, and then update the current status of the ear tag according to the data type and numerical range. This application can update the ear tag status, avoiding situations where farmers cannot promptly detect that the ear tag is not being worn, thus preventing the ear tag from properly collecting livestock status data and causing farmers to be unable to understand the health status of livestock in a timely manner.
[0045] Based on the methods described in the preceding embodiments, the following examples will provide further detailed explanations.
[0046] Please see Figure 3 , Figure 3 This is a second flowchart illustrating the ear tag status update method provided in an embodiment of the present invention. This ear tag status update method can be applied to electronic devices, including smartphones, tablets, PDAs, laptops, or desktop computers. The method includes:
[0047] 201. Obtain the status data of the ear tag acquisition.
[0048] In this embodiment of the application, the status data includes a series of data collected, such as the surrounding environment data of the livestock's life and the physiological indicators of the livestock. For example, the status data can be data such as temperature status data and movement status data.
[0049] 202. Identify the data type of a portion of the state data within a preset time period, and identify the numerical range of that portion of the state data.
[0050] For example, the preset time period can be the first time period, the second time period, and the third time period, etc.
[0051] For example, when the first time period is 24 hours, it refers to the state data collected by the ear tag within the 24 hours preceding the current time, and the range of values for that state data within the 24 hours preceding the current time. It can be understood that this portion of the state data refers to the state data collected by the ear tag within the 24 hours preceding the current time. Specifically, if the current time is 9:00 AM on Saturday, then the 24 hours preceding the current time is the 24 hours between 9:00 AM the day before Saturday and 9:00 AM on Saturday.
[0052] For example, when the second time period is 3 hours, it refers to the state data collected by the ear tag within the 3 hours preceding the current time, and the numerical range of the state data within the 3 hours preceding the current time. It can be understood that this part of the state data refers to the state data collected by the ear tag within the 3 hours preceding the current time. Specifically, if the current time is 9:00 AM on Saturday, then the 3 hours preceding the current time are the 3 hours between 6:00 AM and 9:00 AM on Saturday.
[0053] 203. Update the current state of the ear tag according to the data type and numerical range of the state data in this part.
[0054] It is understandable that the ear tag status can include being worn, not being worn, and being damaged. In order to further clarify the current status of the ear tag, the unworn state can also include the detached state.
[0055] It is understood that, in this embodiment of the application, when the data type of the collected status data is temperature status data type, and the value range of the temperature status data intersects with or is outside the first preset value range, the current status of the ear tag is updated to damaged status.
[0056] The first preset value range is an empirical value summarized from actual application scenarios. For example, this first preset value range could be based on the temperature data collected and summarized by farmers in their farms. For instance, if the ambient temperature data collected by environmental sensors and the temperature status data collected by ear tags in the farm are between -20 degrees Celsius and 44 degrees Celsius, this indicates that the temperature range is within the normal range, and the first preset value range can be set to -20 degrees Celsius to 44 degrees Celsius. That is, when the temperature status data collected by the ear tag is outside the normal temperature range, the current status of the ear tag is updated to "damaged".
[0057] For example, assuming the first preset value range is (-20°, 44°), when the electronic device receives status data corresponding to a certain ear tag that is not within the range of (-20°, 44°), the current status of the ear tag is updated to damaged. That is, when the minimum value of the temperature status data collected by the ear tag is less than -20° or the maximum value of the temperature status data collected by the ear tag is greater than 44°, the current status of the ear tag is updated to damaged.
[0058] Understandably, when no status data is acquired from the ear tag, the current status of the ear tag will be updated to "no status data acquired".
[0059] In one implementation, the step "update the current state of the ear tag according to the data type and numerical range of the partial state data" may further include the following steps:
[0060] (1) When the state data in the first past time period includes temperature state data and motion state data, obtain the state data in the second past time period, wherein the first time period is longer than the second time period.
[0061] For example, the first time period can be 24 hours, and the second time period can be 3 hours. Or, for another example, the first time period can be 12 hours, and the second time period can be 2 hours.
[0062] Specifically, the values of the first time period and the second time period can be determined according to the actual application scenario. For example, the accuracy of ear tag status judgment under different values of the first time period and the second time period can be statistically analyzed, and the data that makes the ear tag status prediction more accurate can be selected as the values of the first time period and the second time period.
[0063] (2) When the status data in the past second time period includes temperature status data and motion status data, and the temperature status data is within the second preset value range, the current status of the ear tag is updated to the wearing status.
[0064] The second preset value range is an empirical value summarized based on actual application scenarios. For example, this second preset value range can be based on the temperature data collected and summarized by farmers in their farms. For instance, if the ambient temperature data collected by environmental sensors and the temperature status data collected by ear tags in the farm are between -20 degrees and 44 degrees, it indicates that the temperature range is within the normal range, and the second preset value range can be set to -20 degrees to 44 degrees.
[0065] For example, suppose the first time period is 24 hours, the second time period is 3 hours, and the second preset value range is (-20°, 44°). That is, when the electronic device receives the status data of an ear tag over the past 24 hours, including temperature and motion data, and the temperature data is between (-20°, 44°), it retrieves the status data over the past 3 hours. When the status data over the past 3 hours is between (-20°, 44°), the current status of the ear tag is updated to "worn".
[0066] In one implementation, the step "update the current state of the ear tag according to the data type and numerical range of the partial state data" may further include the following steps:
[0067] (1) When the state data in the past second time period includes temperature state data but does not include motion state data, and the temperature state data is within the second preset value range, the current state of the ear tag is updated to the unworn state.
[0068] For example, suppose the first time period is 24 hours, the second time period is 3 hours, and the second preset value range is (-20°, 44°). That is, when the electronic device receives status data of an ear tag over the past 24 hours, including temperature data but excluding motion data, and the temperature data is between (-20°, 44°), it retrieves status data from the past 3 hours. If the status data from the past 3 hours is not within the range of (-20°, 44°), the current status of the ear tag is updated to "not worn".
[0069] In one implementation, to further clarify the current state of the ear tag, the initial state of the ear tag can also be obtained, and it can be detected whether the initial state of the ear tag is a wearing state. If so, the current state of the ear tag is updated to a detached state.
[0070] The initial state of an ear tag is the state of the ear tag before the time of the ear tag state update. For example, if the ear tag state is updated once a day at 9:00 AM, that is, the ear tag update time cycle is 24 hours, and if the current time is 9:00 AM, then the initial state of the ear tag is the ear tag state in the previous cycle.
[0071] In one implementation, the step "update the current state of the ear tag according to the data type and numerical range of the partial state data" may further include the following steps:
[0072] (1) When the state data in the past first time period includes temperature state data but does not include motion state data, and the temperature state data is within the second preset value range, the current temperature state data of the ear tag and the minimum ambient temperature value in the past third time period are obtained, wherein the first time period is longer than the third time period.
[0073] In this embodiment of the application, the ambient temperature can be detected by various environmental sensors installed in the breeding farm.
[0074] For example, the first time period could be 24 hours, and the third time period could be 1 hour. Alternatively, the first time period could be 12 hours, and the second time period could be 2 hours. Similarly, the values for the first and third time periods can be determined based on the actual application scenario. For instance, we can statistically analyze the accuracy of ear tag status judgment under different values for the first and third time periods, and then select the data with the higher accuracy as the values for the first and second time periods.
[0075] For example, assuming the first time period is 24 hours, the third time period is 1 hour, and the second preset value range is (-20°, 44°), when the electronic device receives the status data of an ear tag over the past 24 hours, including temperature status data but excluding motion status data, and the temperature status data is between (-20°, 44°), it obtains the current temperature status data of the ear tag and the minimum ambient temperature value of the past 1 hour.
[0076] (2) When the current temperature status data of the ear tag is greater than the minimum ambient temperature value, the current status of the ear tag is updated to the wearing status;
[0077] In one embodiment, to improve the accuracy of ear tag status prediction, a certain value can be added to the detected minimum ambient temperature value before making the above judgment. For example, if the detected minimum ambient temperature value is 26°C, 26°C + 1.2°C can be used as the minimum ambient temperature value for the above judgment. It should be noted that the internal ambient temperature of the farm can be controlled and regulated by temperature control equipment to meet the requirements of livestock breeding.
[0078] (3) When the current temperature status data of the ear tag is not greater than the minimum ambient temperature value, the current status of the ear tag is updated to the unworn status.
[0079] To further clarify the current state of the ear tag, the initial state of the ear tag can also be obtained, and it can be detected whether the initial state of the ear tag is a wearing state. If so, the current state of the ear tag is updated to a detached state.
[0080] The initial state of an ear tag is the state of the ear tag before the time of the ear tag state update. For example, if the ear tag state is updated once a day at 9:00 AM, that is, the ear tag update time cycle is 24 hours, and if the current time is 9:00 AM, then the initial state of the ear tag is the ear tag state in the previous cycle.
[0081] As can be seen from the above, the ear tag status update method proposed in this embodiment of the invention, and the technical solution provided in this application embodiment, acquires the status data collected by the ear tag, identifies the data type and the numerical range of the status data, and then updates the current status of the ear tag according to the data type and the numerical range. This application can update the ear tag status, avoiding situations where farmers cannot promptly detect that the ear tag is not being worn, thus preventing the ear tag from properly collecting livestock status data and causing farmers to be unable to understand the health status of livestock in a timely manner.
[0082] In one embodiment, an ear tag status updating device is also provided. See also... Figure 4 , Figure 4 This is a schematic diagram of the ear tag status updating device 300 provided in an embodiment of this application. The ear tag status updating device 300 is applied to an electronic device and includes an acquisition module 301, an identification module 302, and a status updating module 303, as follows:
[0083] The acquisition module 301 is used to acquire the status data of the ear tag acquisition;
[0084] The identification module 302 is used to identify the data type of the status data and the numerical range of the status data;
[0085] The status update module 303 is used to update the current status of the ear tag according to the data type and the numerical range.
[0086] In one embodiment, the identification module 302 is further configured to identify the data type of a portion of the state data within a preset time period in the past, and to identify the numerical range of the portion of the state data.
[0087] In one embodiment, the state update module 303 is further configured to update the current state of the ear tag according to the data type of the partial state data and the numerical range of the partial state data.
[0088] In one embodiment, the status update module 303 is further configured to update the current status of the ear tag to a damaged state when the status data includes temperature status data and the value range of the temperature status data intersects with or is outside the first preset value range.
[0089] In one implementation, the state update module 303 is further configured to acquire state data in a second past time period when the state data in the first past time period includes temperature state data and motion state data, wherein the first time period is longer than the second time period.
[0090] When the status data within the past second time period includes temperature status data and motion status data, and the temperature status data is within a second preset value range, the current status of the ear tag is updated to the wearing status.
[0091] In one embodiment, the status update module 303 is further configured to update the current status of the ear tag to an unworn state when the status data in the past second time period includes temperature status data but does not include motion status data, and the temperature status data is within the second preset value range.
[0092] In one embodiment, the state update module 303 is further configured to: acquire the current temperature status data of the ear tag and the minimum ambient temperature value of the ambient temperature in the past third time period when the state data in the past first time period includes temperature status data but does not include motion status data, and the temperature status data is within the second preset value range; wherein the first time period is longer than the third time period; update the current state of the ear tag to a wearing state when the current temperature status data of the ear tag is greater than the minimum ambient temperature value; and update the current state of the ear tag to an unwearing state when the current temperature status data of the ear tag is not greater than the minimum ambient temperature value.
[0093] In one embodiment, the status update module 303 is further configured to update the current status of the ear tag to "no status data acquired" when no status data is acquired from the ear tag.
[0094] This application also provides an electronic device. The electronic device may be a smartphone, tablet computer, or similar device. Please refer to... Figure 5 , Figure 5This is a schematic diagram of a first structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 401 and a memory 402. The processor 401 and the memory 402 are electrically connected.
[0095] The processor 401 is the control center of the electronic device 400. It connects various parts of the electronic device through various interfaces and lines. By running or calling computer programs stored in the memory 402 and calling data stored in the memory 402, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.
[0096] Memory 402 can be used to store computer programs and data. The computer programs stored in memory 402 contain instructions that can be executed in the processor. The computer programs can be composed of various functional modules. The processor 401 executes various functional applications and data processing by calling the computer programs stored in memory 402.
[0097] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions:
[0098] Acquire the status data of the ear tag acquisition;
[0099] Identify the data type of the state data, and identify the numerical range of the state data;
[0100] Update the current state of the ear tag according to the data type and the numerical range.
[0101] In one implementation, please refer to Figure 6 , Figure 6 This is a second structural schematic diagram of the electronic device provided in an embodiment of this application. The electronic device 400 further includes: a radio frequency circuit 403, a display screen 404, a control circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display screen 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power supply 409.
[0102] The radio frequency circuit 403 is used to transmit and receive radio frequency signals to communicate with network devices or other electronic devices via wireless communication.
[0103] The display screen 404 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of electronic devices, which can be composed of images, text, icons, videos, and any combination thereof.
[0104] The control circuit 405 is electrically connected to the display screen 404 and is used to control the display screen 404 to display information.
[0105] The input unit 406 can be used to receive input numeric or character information or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
[0106] The audio circuit 407 provides an audio interface between the user and the electronic device via a speaker and a microphone. The audio circuit 407 includes a microphone, which is electrically connected to the processor 401. The microphone is used to receive voice information input by the user.
[0107] Sensor 408 is used to collect information about the external environment. Sensor 408 may include one or more sensors such as an ambient light sensor, an accelerometer, and a gyroscope.
[0108] The power supply 409 is used to supply power to the various components of the electronic device 400. In one embodiment, the power supply 409 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0109] Although not shown in the figure, electronic device 400 may also include a camera, Bluetooth module, etc., which will not be described in detail here.
[0110] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions:
[0111] Acquire the status data of the ear tag acquisition;
[0112] Identify the data type of the state data, and identify the numerical range of the state data;
[0113] Update the current state of the ear tag according to the data type and the numerical range.
[0114] In one implementation, the processor 401 performs the following: identifying the data type of a portion of the state data within a preset time period in the past, and identifying the numerical range of the portion of the state data.
[0115] In one implementation, the processor 401 performs the following: updating the current state of the ear tag based on the data type of the partial state data and the numerical range of the partial state data.
[0116] In one implementation, the processor 401 executes: when the state data in the past first time period includes temperature state data and motion state data, it acquires the state data in the past second time period, wherein the first time period is longer than the second time period; when the state data in the past second time period includes temperature state data and motion state data, and the temperature state data is within a second preset value range, it updates the current state of the ear tag to the wearing state.
[0117] In one implementation, the processor 401 executes: when the state data in the past second time period includes temperature state data but does not include motion state data, and the temperature state data is within the second preset value range, the current state of the ear tag is updated to an unworn state.
[0118] In one implementation, the processor 401 executes the following: when the state data within the past first time period includes temperature state data but excludes motion state data, and the temperature state data is within the second preset value range, the processor acquires the current temperature state data of the ear tag and the minimum ambient temperature value within the past third time period, wherein the first time period is longer than the third time period; when the current temperature state data of the ear tag is greater than the minimum ambient temperature value, the processor updates the current state of the ear tag to a wearing state; when the current temperature state data of the ear tag is not greater than the minimum ambient temperature value, the processor updates the current state of the ear tag to an unwearing state.
[0119] In one implementation, the processor 401 executes the following: when no state data of the ear tag is acquired, the current state of the ear tag is updated to "no state data acquired".
[0120] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description of the ear tag status update method above, which will not be repeated here.
[0121] The ear tag status updating device provided in this application embodiment belongs to the same concept as the ear tag status updating method in the above embodiment. Any method provided in the ear tag status updating method embodiment can be run on the ear tag status updating device. For details of its implementation process, please refer to the ear tag status updating method embodiment, which will not be repeated here.
[0122] It should be noted that, regarding the ear tag status update method described in the embodiments of this application, those skilled in the art will understand that all or part of the process of implementing the ear tag status update method described in the embodiments of this application can be accomplished by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor. During execution, it can include the process of the embodiments of the ear tag status update method described. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), etc.
[0123] For the ear tag status updating device described in this application embodiment, its functional modules can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0124] The above provides a detailed description of an ear tag status update method, apparatus, storage medium, and electronic device provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for updating the state of an ear tag, characterized in that, include: Acquire the status data of the ear tag acquisition; Identify the data type of the state data, and identify the numerical range of the state data; Update the current state of the ear tag according to the data type and the numerical range; The step of updating the current state of the ear tag according to the data type and the numerical range includes: When the status data includes temperature status data, and the value range of the temperature status data intersects with or is outside the first preset value range, the current status of the ear tag is updated to a damaged state; or, When the data type of the status data includes a portion of the status data from a preset past time period, and the numerical range of the status data includes the numerical range of the portion of the status data. When the state data in the first past time period includes temperature state data and motion state data, the state data in the second past time period is obtained, wherein the first time period is longer than the second time period. When the state data in the past second time period includes temperature state data and motion state data, and the temperature state data is within a second preset value range, the current state of the ear tag is updated to the wearing state. When the status data in the past second time period includes temperature status data but does not include motion status data, and the temperature status data is within the second preset value range, the current status of the ear tag is updated to an unworn state. When the state data within the first past time period includes temperature state data but excludes motion state data, and the temperature state data is within the second preset value range, the current temperature state data of the ear tag and the minimum ambient temperature value within the third past time period are obtained, wherein the first time period is longer than the third time period; when the current temperature state data of the ear tag is greater than the minimum ambient temperature value, the current state of the ear tag is updated to the wearing state; when the current temperature state data of the ear tag is not greater than the minimum ambient temperature value, the current state of the ear tag is updated to the not-wearing state.
2. The method as described in claim 1, characterized in that, After acquiring the status data of the ear tag acquisition, the following is also included: When no status data is acquired from the ear tag, the current status of the ear tag is updated to "no status data acquired".
3. An ear tag status updating device, characterized in that, include: The acquisition module is used to acquire the status data of the ear tag acquisition. The identification module is used to identify the data type of the status data and the numerical range of the status data. The status update module is used to update the current status of the ear tag according to the data type and the numerical range; The status update module is also used for: When the status data includes temperature status data, and the value range of the temperature status data intersects with or is outside the first preset value range, the current status of the ear tag is updated to a damaged state. or, When the data type of the status data includes a portion of the status data from a preset past time period, and the numerical range of the status data includes the numerical range of the portion of the status data. When the state data in the first past time period includes temperature state data and motion state data, the state data in the second past time period is obtained, wherein the first time period is longer than the second time period. When the state data in the past second time period includes temperature state data and motion state data, and the temperature state data is within a second preset value range, the current state of the ear tag is updated to the wearing state. When the status data in the past second time period includes temperature status data but does not include motion status data, and the temperature status data is within the second preset value range, the current status of the ear tag is updated to an unworn state. When the state data within the first past time period includes temperature state data but excludes motion state data, and the temperature state data is within the second preset value range, the current temperature state data of the ear tag and the minimum ambient temperature value within the third past time period are obtained, wherein the first time period is longer than the third time period; when the current temperature state data of the ear tag is greater than the minimum ambient temperature value, the current state of the ear tag is updated to the wearing state; when the current temperature state data of the ear tag is not greater than the minimum ambient temperature value, the current state of the ear tag is updated to the not-wearing state.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is run on a computer, it causes the computer to perform the ear tag status update method as described in any one of claims 1 to 2.
5. An electronic device comprising a processor and a memory, the memory storing a computer program, characterized in that, The processor invokes the computer program to execute the ear tag status update method as described in any one of claims 1 to 2.