Animal product traceability terminal based on Beidou positioning
By installing a traceability terminal based on Beidou positioning on cattle and sheep, the problems of inconvenience in wearing and insufficient battery life are solved, monitoring and traceability of the entire process of livestock products has been realized, supervision and traceability have been improved, supervision efficiency and consumer confidence have been extended, and The usage time of the device.
Patent Information
- Application Number
- CN202411154000.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Due to its large size and weight, the existing cattle and sheep management smart collars are inconvenient to wear and insufficient battery life, and cannot meet the traceability needs of the entire process of livestock products from birth to feeding and processing.
A livestock product traceability terminal based on Beidou positioning is designed, using power management module, antenna, data acquisition module and communication module, combining hashing processing and NB-IOT wireless communication, supporting GPS/Beidou dual-mode signal reception, and using it once Powered by lithium sub-battery, it realizes small, waterproof and anti-falling equipment, has ultra-long standby time, built-in high-precision Beidou positioning module and sensors, and monitors livestock trajectory and vital signs in real time.
The full-process monitoring and traceability of beef cattle and sheep has been realized, the efficiency of government supervision and consumer confidence has been improved, the battery life has been extended, and the battery life has been supported for three years, meeting the full-process traceability needs from breeding to dining table.
Smart Images

Figure CN119124260A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Beidou satellite navigation and communication, and in particular to a livestock product tracing terminal based on Beidou positioning. Background Art
[0002] Cattle and sheep are an important livestock product and the main meat product for public consumption. How to ensure that the information of cattle and sheep from breed, breeding, feeding to processing can be supervised and traced throughout the entire process is a matter of great concern to regulatory authorities, production companies and consumers.
[0003] The current livestock production management work cannot monitor the growth, quarantine, health, etc. of livestock in real time, making it difficult to track and trace the quality of agricultural and livestock products.
[0004] There are two common problems with the existing smart collars for cattle and sheep management on the market. First, their large size and weight make them inconvenient for livestock to wear, affecting subsequent supervision. Second, their battery life has certain defects and cannot meet the traceability requirements of livestock products from birth to breeding and processing. Summary of the invention
[0005] The present invention provides a livestock product traceability terminal based on Beidou positioning, which solves the livestock product traceability problem of monitoring the entire process of beef cattle and sheep breeding, slaughtering, logistics, sales, etc. The technical solution is as follows:
[0006] A livestock product traceability terminal based on Beidou positioning comprises a power management module, an antenna, a data acquisition module, a communication module and a main processor installed on a circuit board mainboard, wherein the main processor is connected to the data acquisition module and the communication module respectively, the data acquisition module comprises an acceleration sensor, a Beidou positioning module and a temperature sensor, which are respectively used to collect movement step data, position information data and vital sign status data of the raised animals, the communication module is connected to the antenna, and the data collected by the data acquisition module is sent and received through the antenna, and the power management module supplies power to the terminal.
[0007] The main processor can pre-calculate the result data of the set operation and put it in Flash, reduce the calculation frequency to save power consumption, and extract the setting information of the data through hashing, and use this information as the key value for storage and search. The specific steps are as follows:
[0008] S1: Determine the size and range of the hash table, according to the memory size of the microcontroller used by the main processor and the amount of data, determine the size and range of the hash table;
[0009] S2: Design a hash function to convert key information of data into a hash value;
[0010] S3: Allocate memory space for the hash table according to the size and range of the hash table.
[0011] S4: Fill the hash table, calculate the hash value of the key information of all data, and store the data in the corresponding hash table position;
[0012] S5; search for data. When you need to search for a hashed data, first calculate the hash value of the data, then search for the corresponding position in the hash table. If the data is found, return the data, otherwise return empty or throw an exception.
[0013] The communication module adopts an NB-IOT wireless communication module, which enters the eDRX mode after startup, the SIM card adopts a NB-IOT dedicated NanoSIM card, and the server communication transmission protocol adopts the MQTT protocol built into the communication module.
[0014] After receiving the positioning data of the Beidou positioning module, the main processor determines whether the positioning is completed. When the positioning is completed, the main processor wakes up the NB-IoT wireless communication module, encapsulates the positioning data, waits for the communication module to complete the connection, and then sends the positioning data out; if the positioning is not completed, the communication module will not be activated, and the Beidou positioning module will continue to search for positioning; if the positioning is still not completed for 5 seconds, it is determined that the Beidou positioning module is not within the satellite coverage range, and the Beidou positioning module is directly put into sleep mode.
[0015] The Beidou positioning module supports GPS / Beidou dual-mode signal reception, downloads predicted ephemeris through the NB network, uses predicted precise ephemeris inside the chip of the Beidou positioning module, and uses predicted ephemeris instead of star search ephemeris to complete positioning settlement in a few seconds.
[0016] The power module is powered by a disposable lithium-ion battery and supplies power to the main processor, the communication module and the Beidou positioning module respectively through a low voltage difference linear regulator.
[0017] The antenna includes an NB-IOT antenna and a Beidou antenna. The NB-IOT antenna adopts an FPC antenna, which is attached to the inside of the terminal shell and connected through a PogoPIN connector on the circuit board motherboard; the Beidou antenna adopts a ceramic antenna and is installed by PCB welding. The signal is amplified by the onboard LNA and then connected to the Beidou positioning module.
[0018] The communication module uses the MQTT protocol for server communication transmission, and the data message includes:
[0019] Login message, sent to the server when the device starts, indicating that the device is online. The message content includes the device IMEI number and software and hardware version information;
[0020] Login response message: After receiving the device login message, the server records the device login status and sends a response message. The message content includes data such as device configuration information and timestamp;
[0021] Data reporting message: the device periodically sends the device status information to the server, including all the data obtained by the acquisition module;
[0022] Data reporting response message: after receiving the data reporting message, the server sends a response message to the device. The message includes the changed device configuration information and mode switching information.
[0023] The spatiotemporal intelligent optimization algorithm of the livestock product traceability terminal based on Beidou positioning includes the following steps:
[0024] S11: Self-detection state when powered on, used to detect whether the signal quality meets the positioning requirements;
[0025] S12: Static state scene recognition, determined according to the current speed of the animal. When the animal speed is 0m / s, it is in a static state. When the animal speed is greater than 0m / s and less than 10m / s, it goes to step S13. When the animal speed is greater than 10m / s, it goes to step S14.
[0026] S13: The terminal's positioning frequency is set to be once every five minutes. After positioning is completed, the terminal reports the data and enters the sleep state in time;
[0027] S14: The terminal's positioning frequency is set to be once per minute, and the data is reported after the positioning is completed.
[0028] Furthermore, in step S12, the static state scene recognition includes the determination of the first sleep state and the determination of the second sleep state:
[0029] When the animal speed is 0m / s, it is judged that the animal is in a static state. At this time, the state flag is recorded once and enters the first sleep state;
[0030] After the first set time, the terminal wakes up and performs a new round of position positioning. When the animal's speed is still 0m / s, the terminal enters the second round of sleep state;
[0031] After the second set time, the terminal performs a wake-up process and performs a new round of position positioning to determine whether the animal speed is 0 m / s. If so, it continues to enter the second round of sleep state, otherwise it enters the slow moving state.
[0032] The livestock product traceability terminal based on Beidou positioning is small in size and convenient for cattle and sheep to wear. It has a waterproof and anti-fall design and an ultra-long standby time. It reports the standby time once a day and the battery life can be up to 3 years. It has a built-in high-precision Beidou positioning module and various sensors such as pedometer and temperature, which can monitor the trajectory, vital signs and movement of livestock in real time.
[0033] The present invention combines the precise spatiotemporal information of Beidou with the traceability system, installs Beidou + IoT collars on beef cattle and sheep to collect spatiotemporal and ontological information, and prints QR codes on the terminal to manage the ID cards of beef cattle and sheep, so as to achieve "one item, one code", and realize the full process monitoring of information such as beef cattle and sheep breeding, slaughter, logistics, and sales, and create a traceable platform for livestock such as beef cattle and sheep, which plays an important role in improving the government's regulatory efficiency, enhancing consumers' purchasing confidence, and improving the digital management level of enterprises. It realizes the positioning supervision of livestock products raised by enterprises, the government's full traceability of livestock products from breeding to dining table, and consumers' verifiability of the production process of livestock products. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the principle of the livestock product traceability terminal based on Beidou positioning;
[0035] Figure 2 It is a circuit design diagram of the livestock product traceability terminal based on Beidou positioning;
[0036] Figure 3 It is a shell structure diagram of the livestock product traceability terminal based on Beidou positioning;
[0037] Figure 4 This is the RNSS system block diagram of the livestock product traceability terminal based on Beidou positioning. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0039] like Figure 1As shown, the livestock product traceability terminal based on Beidou positioning provided by the present invention includes a power management module 4, an antenna 5, a data acquisition module, a communication module 2 and a main processor 1 installed on a circuit board mainboard, the main processor 1 is connected to the data acquisition module and the communication module 2 respectively, the data acquisition module includes an acceleration sensor, a Beidou positioning module 3 and a temperature sensor, which are respectively used to collect movement step data, position information data and vital sign status data of the raised animals, the communication module 2 is connected to the antenna, and the data collected by the data acquisition module is sent and received by the antenna 5, and the power management module 4 supplies power to the terminal.
[0040] like Figure 2 As shown, the main processor passes I 2 The C interface communicates with the motion sensor to obtain the livestock's movement data and three-axis acceleration information. The main processor obtains battery power information and temperature sampling data through the ADC interface. The main processor communicates with the Beidou module through the serial port to obtain Beidou positioning data. The main processor communicates with the communication module through the serial port to realize data reporting and server command execution. The main processor realizes timed wake-up through the internal RTC for low power management.
[0041] Further, the main processor 1 adopts a low-power single-chip microcomputer, and utilizes the clock control function of the single-chip microcomputer, by using a low-power crystal oscillator or reducing the clock frequency in sleep mode, the power consumption of the single-chip microcomputer is effectively reduced, and the single-chip microcomputer is placed in a low-power state when no task is executed to extend the battery life. The single-chip microcomputer model used by the main processor 1 in this embodiment adopts an STM32 series single-chip microcomputer.
[0042] The reset switch (GPIO pin) of the main processor 1 is connected to an external button through a lead wire to control the reset of the main processor 1. The main processor 1 is powered by a 3.6V regulated power supply. To ensure that the main processor 1 can work stably for a long time, a filter capacitor and an annular magnetic ring are added between the power management module and the main processor 1. The filter capacitor is as close as possible to the power port of the main processor 1 to reduce external noise. The annular magnetic ring can suppress spike interference on the power line and absorb electrostatic pulses, thereby increasing the stability of the positioning device.
[0043] The main processor 1 can pre-calculate the data results of the set operation (i.e., the latitude and longitude, elevation, temperature, speed, acceleration, direction and other data obtained by the device) and store them in Flash, thereby reducing the calculation frequency to save power consumption, and extract the data through hashing, and use these setting information as key values for storage and search, thereby greatly improving the efficiency of data processing; the setting information includes the name and unit of the data, for example, for longitude and latitude, Lontitude and Latitude are extracted as their names, and the unit is °;
[0044] The specific steps are as follows:
[0045] S1: Determine the size and range of the hash table. Determine the size and range of the hash table according to the memory size of the single-chip computer used by the main processor 1 and the amount of data.
[0046] S2: Design a hash function. According to specific needs and scenarios, design a corresponding hash function to convert the key information of the data into a hash value.
[0047] Since the present invention is generally installed on cattle and sheep as a positioning collar, it is necessary to obtain the location and vital signs information of livestock products around the clock, so the data volume is large, so SHA-256 and SHA-3 series hash functions can be selected. These hash functions provide a larger output length, increase the processing capacity of larger data sets, and maintain a high level of security.
[0048] S3: Allocate memory space. Allocate memory space for the hash table according to the size and range of the hash table.
[0049] S4: Fill the hash table. Calculate the hash value of the key information of all data and store the data in the corresponding hash table position.
[0050] S5: Searching for data. When you need to search for a hashed data, first calculate the hash value of the data (for example, for longitude and latitude information, search for the keywords Latitude, Lontitude and the corresponding unit format according to its name, and perform fuzzy search in the table to return the location of the data), then search for the corresponding location in the hash table. If the location is found, return the data, otherwise return nothing or throw an exception.
[0051] The communication module 2 adopts the NB-IOT wireless communication module, which has lower power consumption than the traditional GSM module. In order to prevent the network port from failing, the traditional GSM module will continuously send heartbeat packets to the server, otherwise it needs to re-register the network when it is restarted. In the case of a long sleep cycle, the communication module will do a lot of useless work, resulting in extremely high power consumption waste. The NB-IOT wireless communication module adopted by the present invention adopts Quectel's BC95, which has the characteristics of low power consumption, long-distance coverage and high reliability. It is suitable for the low power consumption and wide area connection requirements of Internet of Things devices, and has ultra-low power consumption and ultra-high sensitivity. Its power consumption is only 5uA in the customized working mode, and the peak current in the transmitting state is only 200mA, which can effectively reduce power consumption.
[0052] After obtaining the positioning information, the traditional positioning device will directly extract and cache the data without judgment, and send it out through the communication module after packaging. The data received by the server may be invalid data, but as long as the frame format is correct, the system will not prompt an error, causing the positioning terminal to do a lot of useless work. The communication module of the present invention adopts a high-performance, low-power, multi-band NB-IOT wireless communication module. The communication module communicates with the main processor through the serial port, and enters the eDRX mode after starting the module to save signal communication energy. The SIM card uses the NB-IOT dedicated NanoSIM card, and the server communication transmission protocol uses the MQTT protocol built into the communication module to reduce communication content and further save energy consumption.
[0053] After receiving the positioning data of the Beidou positioning module, the main processor 1 of the present invention extracts the relevant information of the positioning data and determines whether the positioning is completed. Taking the GGA sentence in the NMEA protocol data packet as an example, the positioning state in its field can be used to test whether the positioning is completed. Only when the positioning state is 2 (single-point positioning), it indicates that the positioning is completed. At this time, the main processor 1 wakes up the NB-IoT wireless communication module, and encapsulates the positioning data at the same time, waits for the communication module to complete the connection, and then sends the positioning data. When the positioning state is 0, it means that the Beidou positioning module has not completed the positioning. At this time, the communication module is not activated, and the Beidou positioning module is waited for to continue searching for positioning. If the positioning is still not completed for 5 seconds, it is determined that the Beidou positioning module is not within the satellite coverage range, and the Beidou positioning module is directly put into sleep state. This working mode greatly reduces the power consumption of the Beidou positioning module.
[0054] The data acquisition module is used to realize the timing acquisition of various reported data. The data to be collected include: the number of steps of movement, through I 2 The C interface is obtained from the accelerometer, which has the following characteristics: wide operating voltage, ultra-small package, large measurement range, support for different output data rates, and factory programmable offset and sensitivity; Beidou positioning data, obtain NMEA data from the Beidou positioning module through the uart interface, and parse out information such as longitude and latitude, altitude, and positioning accuracy; battery voltage data, the battery voltage is connected to AD after voltage division, and the AD data is read and converted into actual voltage data; ambient temperature data, directly read the internal temperature data of the main processor 1 as ambient temperature data; body surface temperature data, temperature sampling is achieved through NTC resistors, and the main processor 1 obtains body surface temperature data through the AD acquisition voltage of the temperature sensor, that is, temperature acquisition is achieved by connecting the external NTC probe and the on-board resistor voltage division to the AD input; after data acquisition, it is sent to the communication module 2 for processing.
[0055] Compared with traditional positioning devices, the Beidou positioning module 3 has the effect of reducing the time of solving positioning to reduce power consumption. Traditional positioning devices have the following problems: 1) When the positioning module is first turned on, it takes 30 seconds to update the ephemeris, which is slow to locate and takes a long time to work; 2) Under micro and low power conditions, the signal receiver of the positioning device has low power, which will reduce the probability of capturing satellite signals and increase the positioning time; 3) The positioning device needs to switch between sleep state and wake-up state frequently, and poor switching strategy leads to increased power consumption or failure to meet the use requirements. The Beidou positioning module supports satellite signals such as BDS B1I, B1C and GPSL1C / A, supports single-system independent positioning and multi-system joint positioning, and has A-GNSS auxiliary positioning function, which can shorten the initial positioning time of the positioning module and reduce power consumption.
[0056] The Beidou positioning module 3 of the present invention supports GPS / Beidou dual-mode signal reception, and can receive GPS and Beidou satellite signals at the same time. Since the approximate area and working hours are known in advance, the predicted ephemeris is downloaded through the NB network (narrowband Internet of Things NB-IoT), and the predicted precise ephemeris is used inside the chip of the Beidou positioning module. There is no need to search for stars before each positioning. The predicted ephemeris is used instead of the search for stars, and the positioning settlement is completed in a few seconds. At the same time, due to the use of the NB network predicted ephemeris, the signal reception strength and time are reduced, and the time for solving the positioning is also reduced, which facilitates switching between sleep and wake-up, and further reduces the power consumption of the module.
[0057] The Beidou positioning module 3 is used to obtain the actual position of the livestock and can output the corresponding trajectory afterwards, and cooperate with the communication module 2 to transmit the corresponding point data to the terminal, thereby realizing the full process supervision of the livestock.
[0058] The power module 4 is powered by a disposable lithium-ion battery with an output voltage of 3.6V, an output accuracy of ±2%, and stable operation using ceramic capacitors and tantalum capacitors, and has current limiting protection and over-temperature protection. The main processor 1, the communication module 2, and the Beidou positioning module 3 are powered by a low-voltage difference linear regulator respectively; due to the small size of the livestock product traceability terminal and the limited space for installing the battery, it is necessary to further increase the actual discharge capacity of the battery under the condition of limited battery power, thereby improving the endurance of the livestock product traceability terminal. Combined with the working mode of the positioning device designed by the present invention, a customized lithium-ion battery is used as the power module to meet the volume requirements of the positioning device. As long as the daily power consumption is guaranteed to be within 7mAh, it can continue to work for more than 3 years.
[0059] The processor is powered by a 1.8V output 150mA low quiescent current low-dropout linear regulator; the communication module is powered by a 3V output, 500mA low-dropout linear regulator; the Beidou positioning module is powered by a 3V output 150mA low quiescent current low-dropout linear regulator.
[0060] Furthermore, the device battery uses 2 ER18505 lithium thionyl chloride batteries, the 2 batteries are connected in parallel, the nominal capacity of a single battery is 4000mAh, and the nominal voltage is 3.6V. The battery has the following characteristics: high specific energy up to 650Wh / k, long life and long reliability life prediction; high stable voltage, nominal voltage 3.6V and good working voltage stability; low self-discharge rate, annual self-discharge rate ≤1% under room temperature 20℃, ultra-wide temperature application -60℃~+85℃.
[0061] The antenna 5 includes an NB-IOT antenna and a Beidou antenna. The NB-IOT antenna uses an FPC antenna, which is attached to the inside of the terminal shell and connected through a PogoPIN connector on the circuit board motherboard; the Beidou antenna uses a ceramic antenna, PCB welding installation, and amplifies the signal through the onboard LNA and then connects to the Beidou positioning module 3. Furthermore, the antenna 5 also includes Bluetooth.
[0062] Furthermore, the power line and signal line of the circuit board motherboard work differently, so the power line should be wider than the signal line, using 12mil and 10mil line widths. In addition, to facilitate the purchase and welding of electronic components in the later stage, the electronic components should be standardized and unified as much as possible, so all capacitors and resistors are packaged in 0402, and the inner diameter of all vias is 12mil and the outer diameter is 18mil. The distance between components is greater than 3mm, and the distance between components and chips should be greater than 1.5mm to avoid heat affecting the performance of the device. The filter capacitor designed at the power port should be placed as close to the port as possible.
[0063] When in use, the data acquisition module is used to realize the timed collection of various reported data, and the communication module realizes the control of the NB-IOT module and server communication through AT commands. The control of the NB-IOT module includes power on and off control, server configuration, MQTT parameter configuration, etc.
[0064] The communication module uses the MQTT protocol for server communication transmission, and the data message is a custom message. The main messages include the following: a login message, which is sent to the server when the device is started, indicating that the device is online, and the message content includes the device IMEI number, software and hardware versions and other information; a login response message, after the server receives the device login message, it records the device login status and sends a response message, and the message content includes device configuration information and timestamp and other data; a data reporting message, the device periodically sends the device status information to the server, including all data obtained by the acquisition module; a data reporting response message, a response message sent by the server to the device after receiving the data reporting message, and the message includes the changed device configuration information, mode switching information, etc.
[0065] The main processor 1 is responsible for storing the data that was not reported normally and the configuration information of the device. When the communication module fails to report the data, the unsuccessful data will be saved in the built-in Flash space of the main processor 1. The saved content is the label + timestamp + valid data, and the unreported data will be reported again when waiting for the next report; in addition, some configuration information of the terminal, such as the device serial number, server address, port number, user name, password and other information also needs to be saved in the built-in Flash and read from the Flash when the terminal starts.
[0066] The power management module 4 also includes RTC timed wake-up and low power consumption control. The terminal wakes up through RTC timed wake-up to check whether data reporting or alarm reporting is required. If no reporting is required, it continues to enter the low power consumption working mode. Otherwise, it reports and enters the low power consumption mode after reporting is completed.
[0067] like Figure 3 The terminal shell structure diagram is shown. The terminal shell provided by the present invention is only 7.4cm long, 4.7cm wide, and 3.0cm high. The weight of the whole machine is about 110g without straps. The two ends of the terminal shell are fixedly connected to the two ends of the collar body respectively. The circle formed by the two is used to wear around the neck of the animal. It is a wearable electronic collar specially designed for cattle and sheep. In this way, it has an ultra-light, low-power, waterproof, anti-falling, elastic collar design. Cattle and sheep can wear it one week after birth. It can standby for a long time. The standby time can be up to three years if it is reported once a day. The device has a built-in motion sensor, which can collect the movement of livestock in real time; the built-in temperature sensor can monitor the surface temperature of livestock; the built-in high-precision Beidou module can obtain the precise location information of livestock; the built-in NBIOT communication module can send the acquired livestock movement, body temperature and positioning information to the central server regularly, so as to realize the monitoring of livestock location, health status, estrus, grazing abnormalities, etc.
[0068] like Figure 4The Beidou RNSS module of the Beidou positioning module 3 shown in the figure, the RNSS antenna receives the RNSS navigation signal broadcast by the Beidou satellite, and after pre-filtering and low-noise amplification processing, it is sent to the RNSS module for subsequent processing. The RNSS module completes the down-conversion and amplification of the RNSS navigation signal, and generates the local oscillator signal required for down-conversion and the clock signal required for the subsequent digital circuit through the frequency synthesizer.
[0069] In the RNSS module, the intermediate frequency analog signal is converted into a digital intermediate frequency signal through high-speed A / D conversion, and then becomes an orthogonal baseband signal after digital orthogonal down-conversion. The RNSS module searches and captures the signals of each satellite in a code division multiple access manner (including two capture methods: precise ranging code direct capture and ordinary ranging code guidance capture). After capture, the signal is tracked, despread, data demodulated, pseudo-range measured, carrier phase measured, and a series of digital processing is performed, and the obtained navigation message and measurement data are sent to the main processor 1.
[0070] In order to achieve more stable and accurate low-power positioning, in this embodiment, preferably: the present invention proposes an improved spatiotemporal intelligent optimization algorithm, and the specific steps are as follows:
[0071] S11: Self-detection state at startup: If the signal quality does not meet the positioning requirements after multiple detections, the terminal will enter sleep mode. After the set time, it will automatically start to detect the signal quality again. If the signal quality meets the requirements, it will perform an initial positioning and enter the indoor and outdoor places according to the signal strength. If the signal quality is still not good, it will enter sleep mode again, wait for a certain period of time, and repeat in sequence until it detects a signal that meets the positioning quality and enters the next state.
[0072] S12: Static state scene recognition. The state recognition of wearing this terminal is mainly determined by the current speed of the livestock. When the livestock speed is 0m / s, it can be judged that the livestock is in a static state scene. At this time, the state flag is recorded once and enters the initial sleep state. At this time, the main chips on the micro positioning terminal are in low power consumption mode.
[0073] Since the livestock wearing the terminal may only be still for a short period of time, the scene is only identified as short-term stillness at this time, and the device enters sleep time preset to five minutes. After five minutes, the device wakes up and performs a new round of position positioning. If the speed of the cattle and sheep is still 0m / s at this time, then the scene can be identified as a long rest scene, because the cattle and sheep will not move in the next period of time. At this time, the device enters a longer sleep time, which is the second round of sleep state, and so on. The walking speed of a normal livestock is about 1 to 2m / s, taking the median of 1.5m / s, so it takes about 11 minutes to walk one kilometer.
[0074] In order to prevent the livestock from suddenly moving when the device enters the second sleep state, the sleep time is controlled at 11 minutes to ensure that even if the device starts walking immediately after entering the sleep state, the livestock will not walk more than one kilometer. If the livestock speed is detected to be non-zero at the end of each sleep round, the static state scene will be jumped out and the slow moving state or fast moving state mode scene will be entered.
[0075] S13: Slow moving state. It is mainly used in scenes where livestock are walking or running. When the speed is greater than 0m / s and less than 10m / s, it can be determined as a slow moving state. At this time, the positioning frequency can be set to be once every five minutes. After positioning is completed, the data is reported and the device enters the sleep state in time to save power.
[0076] S14: When the speed is greater than 10m / s, it is determined to be a motor vehicle, and the positioning frequency is set to be once per minute. After positioning is completed, it enters sleep mode to save power. According to the different speeds of livestock each time, the scene where the livestock is located is dynamically adjusted, so as to further adopt the sleep strategy adopted in the corresponding scene.
[0077] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A livestock product traceability terminal based on Beidou positioning, characterized by: The device comprises a power management module, an antenna, a data acquisition module, a communication module and a main processor installed on a circuit board mainboard. The main processor is connected to the data acquisition module and the communication module respectively. The data acquisition module comprises an acceleration sensor, a Beidou positioning module and a temperature sensor, which are respectively used to collect movement step data, position information data and vital sign status data of the raised animals. The communication module is connected to the antenna, and the data collected by the data acquisition module is sent and received through the antenna. The power management module supplies power to the terminal.
2. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The main processor can pre-calculate the result data of the set operation and put it in Flash, reduce the calculation frequency to save power consumption, and extract the setting information of the data through hashing, and use this information as the key value for storage and search. The specific steps are as follows: S1: Determine the size and range of the hash table, according to the memory size of the microcontroller used by the main processor and the amount of data, determine the size and range of the hash table; S2: Design a hash function to convert key information of data into a hash value; S3: Allocate memory space for the hash table according to the size and range of the hash table. S4: Fill the hash table, calculate the hash value of the key information of all data, and store the data in the corresponding hash table position; S5; search for data. When you need to search for a hashed data, first calculate the hash value of the data, then search for the corresponding position in the hash table. If the data is found, return the data, otherwise return empty or throw an exception.
3. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The communication module adopts an NB-IOT wireless communication module, which enters the eDRX mode after startup, the SIM card adopts a NB-IOT dedicated NanoSIM card, and the server communication transmission protocol adopts the MQTT protocol built into the communication module.
4. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: After receiving the positioning data of the Beidou positioning module, the main processor determines whether the positioning is completed. When the positioning is completed, the main processor wakes up the NB-IoT wireless communication module, encapsulates the positioning data, waits for the communication module to complete the connection, and then sends the positioning data out; if the positioning is not completed, the communication module will not be activated, and the Beidou positioning module will continue to search for positioning; if the positioning is still not completed for 5 seconds, it is determined that the Beidou positioning module is not within the satellite coverage range, and the Beidou positioning module is directly put into sleep mode.
5. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The Beidou positioning module supports GPS / Beidou dual-mode signal reception, downloads predicted ephemeris through the NB network, uses predicted precise ephemeris inside the chip of the Beidou positioning module, and uses predicted ephemeris instead of star search ephemeris to complete positioning settlement in a few seconds.
6. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The power module is powered by a disposable lithium-ion battery and supplies power to the main processor, the communication module and the Beidou positioning module respectively through a low voltage difference linear regulator.
7. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The antenna includes an NB-IOT antenna and a Beidou antenna. The NB-IOT antenna adopts an FPC antenna, which is attached to the inside of the terminal shell and connected through a PogoPIN connector on the circuit board motherboard; the Beidou antenna adopts a ceramic antenna and is installed by PCB welding. The signal is amplified by the onboard LNA and then connected to the Beidou positioning module.
8. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The communication module uses the MQTT protocol for server communication transmission, and the data message includes: Login message, sent to the server when the device starts, indicating that the device is online. The message content includes the device IMEI number and software and hardware version information; Login response message: After receiving the device login message, the server records the device login status and sends a response message. The message content includes data such as device configuration information and timestamp; Data reporting message: the device periodically sends the device status information to the server, including all the data obtained by the acquisition module; Data reporting response message: after receiving the data reporting message, the server sends a response message to the device. The message includes the changed device configuration information and mode switching information.
9. The livestock product traceability terminal based on Beidou positioning according to claim 1 is characterized in that: The spatiotemporal intelligent optimization algorithm of the livestock product traceability terminal based on Beidou positioning includes the following steps: S11: Self-detection state when powered on, used to detect whether the signal quality meets the positioning requirements; S12: Static state scene recognition, determined according to the current speed of the animal. When the animal speed is 0m / s, it is in a static state. When the animal speed is greater than 0m / s but less than 10m / s, it proceeds to step S13. When the animal speed is greater than 10m / s, it proceeds to step S14. S13: The terminal's positioning frequency is set to be once every five minutes. After positioning is completed, the terminal reports the data and enters the sleep state in time; S14: The terminal's positioning frequency is set to be once per minute, and the data is reported after the positioning is completed.
10. The livestock product traceability terminal based on Beidou positioning according to claim 9 is characterized in that: In step S12, the static state scene recognition includes the judgment of the first sleep state and the judgment of the second sleep state: When the animal speed is 0m / s, it is judged that the animal is in a static state. At this time, the state flag is recorded once and enters the first sleep state; After the first set time, the terminal wakes up and performs a new round of position positioning. When the animal's speed is still 0m / s, the terminal enters the second round of sleep state; After the second set time, the terminal performs a wake-up process and performs a new round of position positioning to determine whether the animal speed is 0 m / s. If so, it continues to enter the second round of sleep state, otherwise it enters the slow moving state.
Citation Information
Patent Citations
Wearable apparatus for an animal
CN110381734A
Intelligent grazing system based on Beidou short messages and monitoring method of intelligent grazing system
CN113156463A
System and method for controlling animals
CN113795144A
Smart pasture livestock management information system based on Internet of Things
CN115237063A
Livestock management system
CN116887670A
Cited By
Automatic real-time pasturing livestock feed intake monitoring method based on Beidou navigation and positioning
CN119469283A
