Traditional Chinese medicine traceability management method and system based on block chain
By managing the power and controlling the time of the embedded environmental acquisition terminal, the problem of data interruption under low temperature conditions was solved, ensuring the data continuity and the integrity of traceability records during the cold chain transportation of Ganoderma lucidum spores, and improving the reliability and traceability of the Chinese medicinal material traceability system.
Patent Information
- Application Number
- CN202610096891.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-23
- Publication Date
- 2026-02-24
AI Technical Summary
During the cold chain transportation of Ganoderma lucidum spores, the embedded environmental acquisition terminal is prone to short-term dormancy or response delay under low temperature conditions, which may cause key data such as temperature, humidity and air pressure to be not recorded normally within a certain period of time, resulting in a break in the continuity of time on the chain and affecting the integrity and reliability of traceability data.
By implementing dynamic segmented control of the power management of the embedded environment acquisition terminal, a time-continuous control sequence and dynamic caching mechanism are established to ensure the stability and continuity of data acquisition. Time weight labels and sequential compensation paths are used to maintain the temporal integrity of blockchain data.
It enables continuous recording of environmental data during cold chain transportation, avoids data corruption and consensus rollback, and improves the credibility and traceability of Chinese medicinal materials traceability information.
Smart Images

Figure CN121563576A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of traceability management technology for Chinese medicinal materials, specifically to a blockchain-based method and system for traceability management of Chinese medicinal materials. Background Technology
[0002] Traditional Chinese medicine (TCM) traceability management refers to the recording and tracking of information throughout the entire process of TCM materials, from production, harvesting, processing, transportation to sales, to ensure the authenticity of the source, controllable quality, and traceable flow. Blockchain-based TCM traceability management uses blockchain technology for encrypted storage and distributed verification of this process, leveraging its "immutable, traceable, and shareable" characteristics to ensure the authenticity and reliability of information. For example, when using Ganoderma lucidum spores, the system records data such as cultivation base, variety number, and environmental parameters during the production stage; drying methods, cell-wall breaking processes, testing indicators, and packaging codes during the harvesting and processing stages; and registers each transaction on the blockchain during the circulation and sales stages. Consumers can trace the entire chain of Ganoderma lucidum spores from planting to sales by scanning a code, achieving full-process protection of quality supervision, counterfeit prevention, and brand trust.
[0003] The existing technology has the following shortcomings: During the cold chain transportation of Ganoderma lucidum spores, embedded environmental data acquisition terminals are prone to brief periods of dormancy or response delays under low-temperature conditions. This results in critical data such as temperature, humidity, and air pressure not being recorded correctly within specific time periods, creating write gaps that disrupt the continuity of on-chain time. When blockchain nodes synchronize data, this can cause breaks in the continuous hash value sequence. During consensus verification, the system may misjudge this as malicious data deletion, triggering an abnormal rollback mechanism. This rollback not only causes data corruption throughout the entire Ganoderma lucidum spore traceability chain but also leads to serious consequences such as lost batch information, unverifiable transportation records, and interrupted regulatory traceability, ultimately affecting product traceability and market trust.
[0004] The information disclosed in the background section is only intended to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to provide a blockchain-based method and system for the traceability management of Chinese medicinal materials, in order to solve the problems mentioned in the background.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a blockchain-based method for traceability management of traditional Chinese medicinal materials, comprising the following steps: Step 1: In response to the low-temperature characteristics of Ganoderma lucidum spores during cold chain transportation, dynamic segmented control is implemented on the power management logic of the embedded environmental acquisition terminal. Before the temperature approaches the dormancy critical point, the terminal enters the energy preheating stage to extend its working continuity and provide stable power supply conditions for continuous acquisition of environmental data. Step 2: Under the stable acquisition state formed during the energy preheating stage, establish a time-continuous control sequence at the data output end, accurately arrange the start and end times of each environmental data acquisition cycle, and transform the non-uniform sampling process into a constant interval output, thereby forming a complete time reference that can be used for subsequent time series compensation. Step 3: Based on the constant interval output of the time-continuous control sequence, a dynamic relay buffer is set during the data aggregation process to interpolate and splice the time series before and after the short-term interruption of sampling to generate a continuous time-series data stream, so as to maintain the continuity of environmental data in the time dimension. Step 4: Based on the output characteristics of continuous time-series data streams, perform step-by-step reporting during the data uplink transmission process, transmit the cached data in batches according to time order, and attach time weight labels to each batch of data to ensure that each transmission node maintains a unified timeline during the synchronization process. Step 5: Based on the unified transmission results corresponding to the time weight labels, establish a sequential compensation path during the data recording process to smoothly connect the time gaps formed in the low-temperature segment, maintain the temporal integrity of the blockchain data, and thus avoid consensus rollback and data disorder caused by time breakpoints.
[0007] Preferably, the steps for implementing dynamic segmented control of the power management logic of the embedded environmental acquisition terminal, taking into account the low-temperature characteristics of Ganoderma lucidum spores during cold chain transportation, include: Before the start of cold chain transportation, the power management logic of the embedded environmental acquisition terminal is initialized and configured. Based on the temperature change range in the transportation warehouse and the discharge performance of the energy storage unit, the ambient temperature is divided into a high-temperature stable zone, a critical transition zone, and a low-temperature risk zone, and the output mode is adjusted according to the temperature sensing signal. When the acquisition terminal detects that the ambient temperature has entered the critical transition zone, the power management logic starts the energy segmentation and allocation process, divides the energy storage unit into a basic maintenance zone and a preheating activation zone, and dynamically adjusts the output ratio according to the rate of temperature change to maintain the stable operation of the main control circuit and the environmental data acquisition components. After the energy is allocated in segments, the acquisition terminal enters the energy preheating stage. The power management logic continuously outputs electrical energy and controls the current release rate to achieve uniform heat conduction, forming a stable internal temperature rise environment and maintaining the continuous operation of the acquisition terminal at low temperatures. Once the energy preheating phase reaches a steady state, the power management logic enters the energy stabilization phase. By controlling the dynamic balance between the energy release cycle and the energy storage compensation rate, it maintains the stability of the energy storage voltage and extends the working continuity of the embedded environment acquisition terminal.
[0008] Preferably, during the energy stabilization phase, the power management logic periodically adjusts the output power based on the temperature and current change characteristics during the energy preheating phase, and performs alternating operations between energy release and energy storage compensation to maintain stable energy storage voltage and ensure continuous power supply and stable data acquisition for the embedded environment acquisition terminal throughout the cold chain transportation process.
[0009] Preferably, the steps for establishing a time-continuous control sequence under the stable acquisition state formed during the energy preheating stage include: During the energy preheating stage, when a stable acquisition state is formed, the power management logic continuously provides constant power output to the main control circuit and data acquisition unit. When the voltage reaches a stable threshold, the starting point of the time-continuous control sequence is determined, and a time anchor point is generated through an internal high-precision oscillator to establish a time reference for the acquisition cycle. Once the time reference is established, the main control circuit sequentially schedules the sampling trigger signals of various sensors and precisely arranges the start and end times of each environmental data acquisition cycle to form a continuous time reference with constant intervals. While the time scheduling is being executed, the acquisition terminal establishes a time stamp record structure at the data output end, establishes a correspondence between the timestamp and the acquired data, and forms a time data sequence arranged in chronological order at the output end; Under the stable operation of the time-continuous control sequence, the main control circuit dynamically adjusts the time anchor interval based on the constant power supply provided by the power management logic, maintains a constant output rhythm, and keeps the timing output of the acquisition terminal stable.
[0010] Preferably, during the constant output process of the continuous time control sequence, the main control circuit synchronously monitors the constant power output provided by the power management logic, dynamically corrects the time anchor interval based on voltage fluctuations and temperature changes, and updates the timestamp information based on the time anchor each time data is output, thereby maintaining a constant interval output of the acquisition cycle and maintaining the timing stability of the data acquisition process.
[0011] Preferably, based on the constant interval output of the time-continuous control sequence, the steps of setting a dynamic relay buffer during data aggregation include: When the time-continuous control sequence forms a constant interval output, the data output end of the acquisition terminal enters the data aggregation preparation stage. According to the time output pattern, the environmental data is transmitted to the data aggregation unit, and the output rhythm is monitored through dynamic relay buffer. The short-term interruption of acquisition is identified based on the time tag. Based on the dynamic transit cache to complete the time breakpoint identification, time occupancy points are established according to the time tag intervals before and after the freeze, the broken mining sections are interpolated and spliced to generate a continuous time tag sequence and temporarily stored in the cache space. Once the temporal interpolation is complete, the dynamic transit cache reassembles the original data stream in the cache area according to the time tag order, forming a temporal data stream that is continuous and evenly distributed in the time dimension. During the generation of continuous time-series data streams, the dynamic relay buffer monitors the data output status in a sliding window manner, and adjusts the time occupancy points and output rhythm according to the time continuous control sequence to maintain the time continuity of environmental data within the transmission cycle.
[0012] Preferably, when performing time-series interpolation and splicing, the dynamic relay buffer maps the time occupancy points of the discontinuous sampling section to the time labels of adjacent collected data according to the constant interval output results of the time continuous control sequence, and performs continuous superposition operations according to the time label order during the reassembly process to ensure that the generated time-series data stream maintains a constant interval distribution and time continuous structure at the output end.
[0013] Preferably, based on the output characteristics of continuous time-series data streams, the steps of performing step-by-step reporting and attaching time-weighted labels during data uplink transmission include: Under the state of continuous time-series data stream generation and stable output, the acquisition terminal performs segmented preprocessing on the data in the dynamic relay buffer according to the output rhythm of the time-continuous control sequence, divides it into multiple continuous time batches according to the time order, and records the start time and end time of each batch through time tags. Based on the completion of data batch division, the acquisition terminal transmits the cached data in batches according to the time sequence, using the start time of each batch as the transmission start benchmark, and maintaining the transmission rhythm consistent with the acquisition interval during the batch transmission process. During the step-by-step reporting process, the acquisition terminal adds a time weight label to each batch of data. Taking the output rhythm of the time-continuous control sequence as a reference, it generates weight information containing data batch number, time reference point and time interval index and embeds it into the data stream structure. Once the step-by-step reporting and time weight label attachment are completed, the acquisition terminal sends a synchronization signal to the uplink node according to the weight range of the time weight label, performs uplink synchronization maintenance operation, and ensures that each transmission node maintains a unified timing reference during data reception.
[0014] Preferably, the data batch number, time reference point, and time interval index contained in the time weight label are bound to the start time of each batch during the uplink transmission. The acquisition terminal performs synchronous updates on each batch of data according to the binding relationship, and adjusts the start time of the next batch of data based on the time reference point when sending a synchronization signal to the uplink node, thereby maintaining the time continuity and timing stability of the uplink transmission.
[0015] The blockchain-based traceability management system for Chinese medicinal materials includes a power segmentation control module, a time series establishment module, a dynamic cache splicing module, a step-by-step reporting and transmission module, and a sequence compensation and connection module. Power segment control module: In response to the low temperature characteristics of Ganoderma lucidum spores during cold chain transportation, the power management logic of the embedded environmental acquisition terminal is dynamically segmented and controlled, and the energy preheating stage is entered before the temperature approaches the dormancy critical point. Time series establishment module: Under the stable acquisition state formed during the energy preheating stage, a continuous time control sequence is established at the data output end to accurately arrange the start and end times of each environmental data acquisition cycle, and transform the non-uniform sampling process into a constant interval output. Dynamic buffer splicing module: Based on the constant interval output of the time continuous control sequence, a dynamic relay buffer is set during the data aggregation process to interpolate and splice the time series before and after the short-term interruption of sampling to generate a continuous time series data stream; Step-by-step reporting and transmission module: Based on the output characteristics of continuous time-series data streams, it performs step-by-step reporting during the data uplink transmission process, transmitting the cached data in batches according to time order, and attaching time weight labels to each batch of data; Sequential compensation and connection module: Based on the unified transmission results corresponding to the time weight labels, a sequential compensation path is established during the data recording process to smoothly connect the time gaps formed in the low temperature section.
[0016] The technical effects and advantages provided by the present invention in the above technical solution are as follows: This invention addresses the issue of operational interruptions in low-temperature environments by proactively intervening in the power supply behavior of embedded environmental data acquisition terminals during the early stages of cold chain transportation. This transforms the problem into a controllable energy regulation process. Furthermore, it establishes a mechanism linking a time-continuous control sequence with a dynamic cache, ensuring the continuity and consistency of environmental data throughout the acquisition, aggregation, and transmission stages. Consequently, temperature, humidity, and air pressure data during cold chain transportation no longer experience irrecoverable time gaps due to short-term dormancy. The traceability data exhibits a stable and extended state over time, significantly improving the completeness and reliability of cold chain information recording for traditional Chinese medicine materials.
[0017] This invention introduces time-weighted tags and sequence compensation paths during the data uplink and recording phases, unifying the data transmitted in batches under the same time-series benchmark and ensuring a smooth transition of the time structure before it is uploaded to the blockchain. This prevents time breakpoints from being amplified into structural anomalies during the consensus phase. In this way, the data order in the blockchain ledger remains consistent, the on-chain hash relationship continues stably, and traceability records maintain consistent expression during multi-node synchronization, further guaranteeing the credible presentation and long-term traceability of Chinese medicinal materials traceability information. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0019] Figure 1 This is a flowchart of the blockchain-based traceability management method for traditional Chinese medicine materials according to the present invention.
[0020] Figure 2 This is a schematic diagram of the modules of the blockchain-based traceability management system for traditional Chinese medicine materials according to the present invention. Detailed Implementation
[0021] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that the description of this disclosure will be more complete and fully convey the concept of the exemplary embodiments to those skilled in the art.
[0022] This invention provides, for example Figure 1 The blockchain-based traceability management method for traditional Chinese medicine materials shown includes the following steps: Step 1: In response to the low-temperature characteristics of Ganoderma lucidum spores during cold chain transportation, dynamic segmented control is implemented on the power management logic of the embedded environmental acquisition terminal. Before the temperature approaches the dormancy critical point, the terminal enters the energy preheating stage to extend its working continuity and provide stable power supply conditions for continuous acquisition of environmental data. The specific implementation method for this step is as follows: Before the cold chain transportation begins, the power management logic of the embedded environmental acquisition terminal is initialized and configured. By measuring the temperature variation range of the Ganoderma lucidum spore transportation environment, the temperature fluctuation cycle and minimum operating temperature within the transportation chamber are determined. Based on this, according to the terminal's operating voltage curve and the discharge performance of the energy storage unit, the ambient temperature range is divided into three segments: a high-temperature stable zone, a critical transition zone, and a low-temperature risk zone. During operation, the power management logic monitors the supply voltage, current, and ambient temperature in real time, determining the current temperature range by collecting feedback signals from voltage and temperature sensors. When the temperature drops and approaches the set critical zone, the power management logic activates an energy protection mechanism based on the monitored temperature drop rate, automatically adjusting the energy storage unit's output mode from normal operating mode to low-temperature operating mode. In this mode, the output rate and discharge rhythm of the supply current are moderately adjusted to prevent sudden voltage drops caused by sudden temperature decreases, avoiding the terminal from entering sleep mode due to insufficient power supply voltage. Through this process, the acquisition terminal can complete its operating state adjustment before the cold chain environment temperature decreases, providing a stable temperature response basis for subsequent segmented energy output and thermal energy conversion.
[0023] After the acquisition terminal detects that the ambient temperature has entered the critical transition zone, the power management logic initiates a segmented energy allocation process. During this stage, the energy of the energy storage unit is divided into two sub-regions: a basic maintenance region and a preheating activation region. The basic maintenance region is responsible for maintaining the minimum operating power of the main control unit and the core data acquisition unit, while the preheating activation region is used to provide additional power output under low-temperature conditions. During the segmented energy allocation process, the power management logic dynamically adjusts the current control of the energy storage unit, prioritizing power output to the main control circuit and environmental data acquisition components to ensure that the operating voltage of critical components remains within the normal range as the temperature drops. The energy allocation in this stage is gradually adjusted according to the rate of temperature change and the voltage stability of the acquisition terminal, ensuring a continuous energy release process. In this way, the embedded environmental acquisition terminal can maintain normal acquisition operations of the main control circuit and temperature, humidity, and barometric pressure sensors even in low-temperature environments, thus preventing a decrease in acquisition frequency or signal response delay. Simultaneously, the execution of segmented energy allocation also provides the current basis for the energy preheating in the next stage, ensuring sufficient thermal accumulation space before entering the low-temperature range.
[0024] After energy allocation is completed, the data acquisition terminal enters the energy preheating stage. During this stage, the synergy of energy release and heat conduction ensures that key components maintain sustainable operation in a low-temperature environment. The power management logic continuously outputs electrical energy to the power distribution terminals of the main control circuit and the acquisition components, generating controllable heat as current passes through internal conductors, resulting in a stable internal temperature rise. The energy preheating stage controls the current release rate to achieve a smooth transition from low-power output to constant-power output. During this process, the power management logic monitors the discharge status of the energy storage unit in real time, records the changes in voltage, current, and temperature, and adjusts the energy output rate based on the temperature data to ensure even heat distribution to all electrical connections. To prevent internal heat accumulation, the power management logic sets a power upper limit during energy output. When the target temperature range is reached, the output remains constant, thus preventing overheating of electrical components while ensuring heat accumulation. Continuous operation during the energy preheating stage ensures that the operating temperature of the main control circuit and acquisition sensors remains within their functionally stable range, enabling continuous acquisition and data transmission of environmental parameters such as temperature, humidity, and air pressure in a low-temperature environment. Through this process, a stable thermal equilibrium environment is formed inside the acquisition terminal, which not only prevents the performance degradation of electronic components caused by low temperature, but also provides good thermal inertia conditions for the continuous maintenance of energy output in the next stage.
[0025] Once the energy preheating phase reaches a steady state, the power management logic enters the energy stabilization phase. This phase extends the operational continuity of the embedded environment acquisition terminal by controlling the dynamic balance between the energy release cycle and the energy storage compensation rate. The power management logic continuously monitors the remaining capacity and voltage fluctuations of the energy storage unit and periodically adjusts the output power based on the temperature and current changes during the energy preheating phase, ensuring the output power matches the discharge capacity of the energy storage unit. During energy stabilization, the power management logic performs alternating operations of energy release and energy replenishment, partially replenishing the energy storage unit at certain time intervals to maintain a stable energy storage voltage. This phase also continuously collects real-time ambient temperature data and, combined with the temperature response curve stored in the power management logic, adjusts the output rhythm according to the actual temperature change trend, ensuring the energy release frequency corresponds to external temperature changes, thus maintaining continuous power supply during long-term transportation in cold chain environments. Through this energy stabilization mechanism, the embedded environment acquisition terminal can maintain stable operation throughout the entire transportation process and will not trigger sleep mode due to low-temperature power decay. The operation of the power management logic at this stage ensures a stable cycle between energy output, energy storage status, and temperature conditions, enabling the acquisition terminal to continuously provide power.
[0026] Through this continuous operation, the data acquisition terminal can stably collect and continuously upload environmental data such as temperature, humidity, and air pressure, providing a complete data foundation for the subsequent time-series uploading of blockchain data. This achieves stable power supply and data continuity for the embedded environmental data acquisition terminal during the cold chain transportation of Ganoderma lucidum spores, ensuring the integrity of environmental data records and avoiding time gaps caused by low-temperature dormancy or data interruption.
[0027] Step 2: Under the stable acquisition state formed during the energy preheating stage, establish a time-continuous control sequence at the data output end, accurately arrange the start and end times of each environmental data acquisition cycle, and transform the non-uniform sampling process into a constant interval output, thereby forming a complete time reference that can be used for subsequent time series compensation. The specific implementation method for this step is as follows: After a stable acquisition state is established during the energy preheating phase, the power management logic continuously provides constant power output to the main control circuit and data acquisition unit to maintain stable internal voltage and temperature. Based on this, the main control circuit begins establishing the initial time reference for the continuous time control sequence. To ensure that the start time of the acquisition cycle is synchronized with the power supply status, the main control circuit continuously monitors voltage fluctuations at the power output terminal. When the output voltage reaches a stable threshold, this moment is taken as the starting point of the continuous time control sequence. During this process, the acquisition terminal segments and calibrates the current time node based on the reference time signal generated by the internal high-precision oscillator, forming a time anchor point corresponding to the stable energy output. This time anchor point is used to determine the start and end positions of subsequent acquisition cycles, ensuring that the generation of the time control sequence is based on stable power supply. In this way, the acquisition terminal achieves reference alignment of the continuous time control sequence under stable energy conditions, ensuring that the start time of the acquisition cycle corresponds constantly to the power output, thereby eliminating the sampling timing offset problem caused by power supply fluctuations due to low temperature.
[0028] After the time reference is established, the acquisition terminal begins to precisely schedule the start and end times of each environmental data acquisition cycle. The core of this stage lies in aligning the trigger interval of the acquisition task with the constant interval parameter in the continuous time control sequence. To achieve this, the main control circuit sequentially schedules the sampling trigger signals of various sensors through time control logic, ensuring that each sensor's data acquisition action is executed sequentially within a constant time interval. Each acquisition cycle includes four stages: start time, sampling time, data buffering time, and output time. The main control circuit precisely positions itself at the boundary moments of each stage using the time anchor point in the continuous time control sequence as a reference. By segmenting and adjusting the time intervals, the sensors can still acquire key parameters such as temperature, humidity, and air pressure at a constant rhythm even under low-temperature conditions, and immediately write the data to the buffer after acquisition. To maintain the continuity of the time series, the end time of each acquisition cycle also serves as the start time of the next acquisition cycle, achieving seamless temporal transition. Through this continuous time scheduling method, each data output from the acquisition terminal corresponds to a fixed time interval, forming a stable and constant output rhythm, providing a unified time reference framework for subsequent data interpolation and time compensation stages.
[0029] After the timing orchestration is executed, to further ensure the constant output characteristics of the time-continuous control sequence, the acquisition terminal establishes a time stamp record structure at the data output end. This record structure generates corresponding timestamp information each time data is output, and binds the timestamp with the acquired data to form a one-to-one time data pair. When the main control circuit outputs data, it writes the timestamp information into the data stream, forming a continuous sequence arranged in chronological order at the output end. During this process, the power management logic continuously maintains a stable power supply state during the energy preheating stage, ensuring that the voltage amplitude and sampling timing of the output signal are not affected by changes in the external environment. At the end of each data output cycle, the acquisition terminal updates the starting point of the next time output according to the end time of the previous time data pair, thereby maintaining the self-correcting characteristics of the time-continuous control sequence. The continuous execution of this process ensures the complete distribution of the acquired data in the time dimension, so that each time segment corresponds to a complete set of environmental data output. By precisely synchronizing the time stamp at the data output end with the acquisition process, the structured homogenization of non-uniform sampled data is achieved, enabling parameters such as temperature, humidity, and air pressure in the cold chain environment to form a constant-interval output sequence, providing a continuous time reference for subsequent time compensation and on-chain timing recording.
[0030] After the continuous time control sequence has stabilized, the acquisition terminal enters the timing maintenance phase. In this phase, the acquisition terminal dynamically adjusts the time control logic to ensure stable constant-interval output over extended periods. The power management logic continuously monitors the timing output frequency of the main control circuit based on the stable power supply during the energy preheating phase. When voltage fluctuations or temperature changes cause timing drift, it automatically adjusts the time anchor interval to restore the continuous time control sequence to a constant output rhythm. Furthermore, the main control circuit continuously triggers sensor sampling at fixed time intervals and sends the output data and corresponding timestamps sequentially to the data buffer after each sampling. To ensure smooth timing transitions, the acquisition terminal performs continuous time overlay operations at the output end. That is, at the end of each output cycle, it calculates the start time of the next acquisition cycle based on the current timestamp to maintain a stable rhythm in the time control sequence. Through this continuous adjustment and output maintenance process, the acquisition terminal maintains a constant output frequency throughout the entire cold chain transportation cycle, ensuring a uniform distribution of environmental data on the time axis and avoiding time gaps caused by acquisition delays or intermittent data loss in low-temperature environments.
[0031] Through this series of timing control processes, the acquisition terminal ultimately forms a complete time-continuous control sequence, realizing the conversion of non-uniform sampling data into constant interval output. This provides a continuous, complete, and traceable time reference basis for subsequent time compensation, and creates high-time-complete recording conditions for the traceability data of traditional Chinese medicine during the cold chain transportation of Ganoderma lucidum spores.
[0032] Step 3: Based on the constant interval output of the time-continuous control sequence, a dynamic relay buffer is set during the data aggregation process to interpolate and splice the time series before and after the short-term interruption of sampling to generate a continuous time-series data stream, so as to maintain the continuity of environmental data in the time dimension. The specific implementation method for this step is as follows: After the time-continuous control sequence forms a constant interval output, the data output end of the acquisition terminal enters the data aggregation preparation stage. In this stage, the acquisition terminal transmits the environmental data generated at each constant interval to the data aggregation unit according to the output pattern of the time-continuous control sequence. To prevent timing breakpoints caused by data acquisition intervals in low-temperature environments from affecting data continuity, the acquisition terminal sets up a dynamic relay buffer in the data aggregation stage. The dynamic relay buffer continuously monitors the data output rhythm of the acquisition terminal, records the time interval of transmitted data packets in real time, and sequentially identifies the data of each acquisition cycle in the form of time tags. During operation, the buffer unit determines whether there are brief interruptions in the data stream based on the time tag intervals. Once a data interval exceeds a predetermined constant time threshold, the timing reassembly mechanism of the relay buffer is automatically activated. During this process, the dynamic relay buffer first freezes the currently received data stream and retains the end time of the previous data cycle and the start time of the next data cycle according to the time tag order, providing a time reference interval for subsequent interpolation and splicing. By capturing time breakpoints in advance and maintaining the integrity of the cache structure, the temporal structure of environmental data is effectively locked at the beginning of data aggregation, thereby avoiding time drift caused by low-temperature acquisition delays.
[0033] After the dynamic relay buffer completes time breakpoint identification, it enters the time-series interpolation and splicing stage for the interrupted sampling segment. The core of this stage lies in utilizing the constant-interval output characteristic provided by the continuous time control sequence of the previous stage to smoothly connect the time relationships of the data before and after the interrupted sampling segment. The dynamic relay buffer calculates the time span of the interrupted sampling segment based on the time tag interval before and after the freeze time, and establishes time occupants within this segment using a fixed time interval as a reference. Each time occupant maintains the same interval as the previous valid data output time point, thus ensuring that the entire time series remains evenly distributed after interpolation. To maintain the integrity of the data stream, the dynamic relay buffer performs time mapping between the last set of environmental data before the interruption and the first set of environmental data after the interruption, generating a continuous time tag sequence between the time occupants. During this process, the power management logic continuously maintains a stable energy output state to prevent interruption of the interpolation stage due to voltage fluctuations. After interpolation and splicing are completed, the dynamic relay buffer temporarily stores the reconstructed data sequence in the buffer space, maintaining the continuous order of the time series to ensure a smooth transition in subsequent data output stages. This time-interpolation splicing method based on time intervals enables the restoration of the time structure of short-term interrupted data collection sections, allowing the originally interrupted data sequence to re-form a complete and continuous form on the time axis.
[0034] After the time-series interpolation and splicing are completed, the dynamic relay cache enters the data stream reassembly stage. The goal of this stage is to merge the continuous time series generated in the previous stage with the original data stream in the cache to form a continuous time-series data stream. To this end, the dynamic relay cache uses the order of the timestamps as the primary index to rearrange all data segments within the cache. Specifically, the time data generated by the interpolation segments is sequentially superimposed with the adjacent actual acquired data in time, ensuring that each time segment has a complete time identifier and corresponding environmental data content. During the data stream reassembly process, the dynamic relay cache continuously maintains the order of data output, ensuring that the data stream is transmitted in a continuous time sequence at the output end. To eliminate time boundary differences caused by intermittent sampling and splicing, the cache logic updates the output timing at a constant interval, ensuring that the reassembled data stream maintains consistency with the continuous time control sequence in terms of rhythm. Simultaneously, the power management logic continues to maintain a stable power supply to the acquisition terminal, ensuring that data read and write operations are not interrupted by voltage fluctuations during the reassembly process. Through this reorganization process, the data output end forms a time-series data stream that is continuous and evenly distributed in the time dimension, providing a complete, continuous, and traceable time-series foundation for subsequent uplink transmission.
[0035] After the continuous time-series data stream is generated, the acquisition terminal enters the time continuity maintenance phase. During this phase, a dynamic relay buffer continuously monitors the output status of the data stream using a sliding window. When a new round of data acquisition and output occurs, the buffer automatically adjusts the time position and output rhythm according to the latest time continuity control sequence, ensuring the temporal structure of the data stream remains continuous throughout the entire transmission cycle. During long-term cold chain transportation, the dynamic relay buffer fine-tunes the time stamp interval based on minor fluctuations in the acquisition cycle caused by changes in ambient temperature, ensuring that the time continuity of the output is synchronized with the constant interval output. After each acquisition cycle, the data output terminal gradually releases the continuous time-series data stream from the buffer to the uplink transmission path, while retaining the latest data segment for subsequent time-series compensation operations. The continuous execution of this phase ensures that even if a brief interruption occurs in a low-temperature environment, the acquisition terminal can maintain the continuity of the time series through the dynamic caching mechanism. The entire process, through interpolation and splicing of preceding and following time sequences and buffer reorganization, achieves time-series restoration of the interrupted acquisition segment, maintaining a complete and continuous distribution structure of environmental data in the time dimension.
[0036] Through this continuous maintenance method, key environmental data such as temperature, humidity, and air pressure collected at the terminal during cold chain transportation can be output in a continuous time form, providing a complete time sequence reference for subsequent blockchain data uploading and time compensation, thereby ensuring that the time sequence record of the Chinese medicinal material traceability chain is not affected by the interruption of harvesting, and maintaining the time integrity and continuity of traceability data throughout the entire transportation process.
[0037] Step 4: Based on the output characteristics of continuous time-series data streams, perform step-by-step reporting during the data uplink transmission process, transmit the cached data in batches according to time order, and attach time weight labels to each batch of data to ensure that each transmission node maintains a unified timeline during the synchronization process. The specific implementation method for this step is as follows: After the continuous time-series data stream is generated and output stably, the acquisition terminal enters the data uplink transmission preparation stage. The goal of this stage is to preprocess the continuous time-series data stream in the dynamic relay buffer into segments, providing a clear time division basis for subsequent step-by-step reporting. The acquisition terminal first divides the data in the buffer into multiple consecutive time batches according to the output rhythm of the time-continuous control sequence, with each batch corresponding to a fixed number of acquisition cycles. During this process, the acquisition terminal records the start and end times of each batch using time tags, forming a time boundary index for step-by-step reporting. To ensure the consistency of data timing during transmission, the acquisition terminal maintains the continuous temporal order of the data during batch processing, without rearranging or compressing it. The power management logic continuously provides stable power output during this stage, ensuring that data segmentation and buffering operations are not affected by voltage fluctuations. Through this preprocessing method, the acquisition terminal forms a set of batches with a clear order and time boundaries in the dynamic buffer, providing a time-continuous transmission foundation for subsequent step-by-step reporting.
[0038] After data batching is completed, the acquisition terminal enters the step-by-step reporting phase. The core of this phase is to transmit cached data batch by batch according to time sequence, maintaining consistency and continuity of the data transmission timeline during the uplink process. Following the time batch order determined in the previous phase, the acquisition terminal sequentially extracts data from the cache for each batch and sends it to the uplink transmission path. Before the transmission of each batch begins, the acquisition terminal reads its time boundary index, using the start time of that batch as the time reference for the transmission start signal. During transmission, the acquisition terminal maintains a fixed sending rhythm, ensuring that the transmission interval of each batch of data remains consistent with the original acquisition interval, thus achieving equidistant time intervals in the uplink transmission. To prevent data accumulation due to communication delays in cold chain transportation environments, the acquisition terminal sets a transmission confirmation interval during transmission. The next batch of data is only initiated after the previous batch has been sent, ensuring the sequentiality and stability of data transmission. The power management logic continuously maintains a constant energy output, ensuring stable power supply to the acquisition terminal throughout the step-by-step reporting process, thereby avoiding intermittent interruptions during data transmission. Through this sequential step-by-step reporting method, the acquisition terminal can distribute continuous time-series data streams in an orderly manner according to time sequence, so that the data stream in the uplink transmission path exhibits continuous, stable, and time-arranged characteristics.
[0039] During the step-by-step reporting process, to ensure the timing consistency of data batches transmitted between multiple nodes, the acquisition terminal attaches time weight tags to each batch of data. The purpose of the time weight tags is to provide an independent timing identifier for each data batch, enabling receiving nodes to reconstruct the accurate time sequence based on the weight tags when receiving data. When generating time weight tags, the acquisition terminal uses the output rhythm of the time-continuous control sequence as a reference, mapping the start and end times of each batch to a weight range, and generating a set of time identifier values within this range according to the acquisition cycle. Each time identifier value is bound to a corresponding data segment and embedded in the data stream structure during data transmission. The time weight tag contains three key information elements: the data batch number, the time reference point, and the time interval index. These elements together constitute the position identifier of the batch within the entire time-series data stream. By attaching time weight tags, the acquisition terminal not only ensures the clear temporal order of each batch of data but also enables different nodes to uniformly sort the data timeline using the tag information during synchronization. During this stage, the power management logic maintains a stable power output within the acquisition terminal, ensuring that the time weight tags are not affected by energy fluctuations during the attachment and embedding process, thus guaranteeing a continuous connection between time weight tag generation and data transmission.
[0040] After the step-by-step reporting and time weight label attachment are completed, the acquisition terminal enters the uplink synchronization maintenance phase. The goal of this phase is to maintain a unified timing reference for all transmission nodes during data reception and processing. After each batch of data is sent, the acquisition terminal sends a synchronization signal to the uplink node, indicating the completion of the current batch and providing the time reference point for the next batch. When receiving batches of data, each transmission node performs local time alignment based on the weight range of the time weight label, ensuring that the data reception order at the node is completely consistent with the data transmission order at the acquisition terminal. During data transmission, the acquisition terminal continuously monitors the time deviation of the transmission interval. When a difference is detected between the transmission time and the predetermined time interval, it automatically adjusts the start time of the next batch of data transmission, keeping the overall uplink transmission rhythm synchronized with the continuous time control sequence. The power management logic continues to provide constant power output during this phase to prevent transmission timing drift due to low temperatures during cold chain transportation. Through this uplink synchronization maintenance mechanism, a unified time reference framework is formed between the acquisition terminal and the transmission nodes, ensuring that the time order of data in the transmission link remains continuous and stable. After the entire step-by-step reporting process is completed, all batches of data are synchronized and recorded in the blockchain node network with additional time-weighted labels, thereby achieving unified synchronization based on a time benchmark in a multi-node environment.
[0041] Through the above continuous sub-steps, the acquisition terminal realizes the step-by-step reporting of continuous time-series data streams and the addition of time weight labels in the cold chain environment, so that the uplink transmission path maintains a unified time-series benchmark among multiple nodes, providing complete technical support for the time-series consistency and reliable recording of Chinese medicinal material traceability data.
[0042] Step 5: Based on the unified transmission results corresponding to the time weight labels, establish a sequential compensation path during the data recording process to smoothly connect the time gaps formed in the low temperature section, maintain the temporal integrity of the blockchain data, and thus avoid consensus rollback and data disorder caused by time breakpoints. The specific implementation method for this step is as follows: After the time weight labels are uniformly transmitted, the data recording unit enters the time structure parsing stage. The task of this stage is to sort the data gathered from multiple transmission nodes according to the correspondence of the time weight labels, forming a continuous recording sequence with a unified time-series benchmark. During this process, the data recording unit rearranges the data that has been transmitted uplinked according to the order of their weight values based on the time weight label information contained in each data batch, ensuring that batches of data with continuous time spans form a continuous timeline at the recording end. To prevent data gaps caused by brief interruptions in low-temperature sections from affecting the continuity of the time structure, the data recording unit retains all blank segments in all time spans during the sorting process, using the time range of the time weight labels as the basis for locating these gaps. During this stage, the power management logic continuously provides stable energy output, enabling the recording unit to maintain continuous operation in low-temperature environments and preventing recording interruptions during time sorting. Through this unified parsing method based on time weight labels, the data uploaded by all nodes is reconstructed into a continuously distributed time-series data structure on the timeline, providing a clear time reference framework for subsequently establishing sequence compensation paths.
[0043] After the unified time recording structure is formed, the data recording unit enters the sequential compensation path establishment stage. The core of this stage lies in identifying the time gaps formed in the low-temperature segment and establishing corresponding connecting paths to achieve a smooth extension of the time series. The data recording unit determines the start and end positions of the gaps on the time axis by performing time mapping on the preceding and following boundaries of the blank segments in the continuous time-series data stream. Subsequently, the recording unit constructs a sequential compensation path within this time range, creating a continuous time transition relationship between the end time of the previous valid data record and the start time of the next valid data record. The sequential compensation path establishment process includes three key operations: first, recording the boundary time nodes of the gap segments; second, generating intermediate time reference points based on the interval rules of the time weight labels; and third, continuously associating the intermediate time reference points with the time nodes of the data records on both sides. Through this time-chain connection method, the originally discontinuous time periods are logically connected into a complete time path, compensating for and filling the time gaps caused by the interruption of low-temperature acquisition. During this stage, the power management logic continues to maintain stable power supply, ensuring the continuous construction of the sequential compensation path, thereby maintaining stable operation of the data recording structure at both the energy and time levels.
[0044] After the sequential compensation path is established, the data recording unit enters the smooth transition phase of time gaps. The goal of this phase is to merge the time reference points in the compensation path with the existing time-recorded data, creating a continuous transition of the timeline at the recording layer. Based on the time nodes in the compensation path, the data recording unit embeds the time structure of the compensation path into the original time-series data stream, creating a continuous temporal extension between the original recorded data and the compensation path. During this process, the data recording unit temporally connects the start time node of each compensation path with the end time node of the adjacent data record, and distributes the time difference between them evenly according to the interval of the time weight labels, ensuring the continuity of the data recording timeline during the extension. To ensure the stability of the time structure after the transition, the data recording unit readjusts the time offset of subsequent recorded data after each insertion of a compensation path, maintaining a consistent distribution interval across the overall timeline. Throughout this process, the power management logic continues to maintain a constant power output, allowing recording and adjustment operations to be completed continuously under low-temperature conditions. Through this smooth transition of time gaps, the time discontinuity caused by the interruption of low-temperature acquisition is completely repaired at the data recording layer, forming a continuous and uninterrupted time recording sequence.
[0045] After the smooth transition of time gaps is completed, the data recording unit enters the blockchain on-chain stage. In this stage, all continuous time-series data processed by the sequential compensation path is written into the blockchain ledger structure in a unified chronological order. During the on-chain process, the data recording unit hashes the time nodes generated in the compensation path and the time nodes of the original data records together, based on the sorting results of the time weight tags, generating a time hash sequence containing sequential compensation information. This time hash sequence is consistent with the time base in the blockchain node network, thus ensuring the temporal integrity of all on-chain data. To prevent misjudgments in node consensus due to data gaps in low-temperature segments, the data recording unit maps all compensation segments into continuous time-series blocks according to the time structure of the sequential compensation path during on-chain processing. This ensures that consensus nodes detect continuous time sequences rather than blank segments when performing hash verification. Through this fusion mechanism of sequential compensation path and blockchain on-chain processing, the system maintains temporal continuity during data recording and on-chain synchronization, avoiding consensus rollback and data corruption caused by time gaps. The power management logic maintains a constant energy output throughout the entire on-chain phase, enabling the on-chain operation to continue in a cold chain transportation environment, thereby ensuring that the entire timing compensation and recording process remains stable at both the physical and data layers.
[0046] Through the synergistic effect of the above steps, the data time gaps caused by low temperatures during the cold chain transportation of Ganoderma lucidum spores are fully compensated, the data records are smoothly connected in the time dimension, and the blockchain data maintains completeness and continuity in the time structure. This eliminates consensus anomalies and data disorder caused by time gaps from the root, and provides a stable time sequence guarantee for the continuous and reliable recording of Chinese medicinal material traceability information.
[0047] Beneficial effect 1: This invention addresses the issue of operational interruptions in low-temperature environments by proactively intervening in the power supply behavior of embedded environmental data acquisition terminals during the early stages of cold chain transportation. This transforms the problem into a controllable energy regulation process. Furthermore, it establishes a mechanism linking a time-continuous control sequence with a dynamic cache, ensuring the continuity and consistency of environmental data throughout the acquisition, aggregation, and transmission stages. Consequently, temperature, humidity, and air pressure data during cold chain transportation no longer experience irrecoverable time gaps due to short-term dormancy. The traceability data exhibits a stable and extended state over time, significantly improving the completeness and reliability of cold chain information recording for traditional Chinese medicine materials.
[0048] Benefit 2: This invention introduces time-weighted tags and sequence compensation paths during the data uplink and recording phases, unifying the data transmitted in batches under the same time-series benchmark and ensuring a smooth transition of the time structure before it is uploaded to the blockchain. This prevents time breakpoints from being amplified into structural anomalies during the consensus phase. In this way, the data order in the blockchain ledger remains consistent, the on-chain hash relationship continues stably, and traceability records maintain consistent expression during multi-node synchronization, further guaranteeing the credible presentation and long-term traceability of Chinese medicinal materials traceability information.
[0049] This invention provides, for example Figure 2 The blockchain-based traceability management system for Chinese medicinal materials shown includes a power segmentation control module, a time series establishment module, a dynamic cache splicing module, a step-by-step reporting and transmission module, and a sequence compensation and connection module. Power segment control module: In response to the low temperature characteristics of Ganoderma lucidum spores during cold chain transportation, the power management logic of the embedded environmental acquisition terminal is dynamically segmented and controlled, and the energy preheating stage is entered before the temperature approaches the dormancy critical point. Time series establishment module: Under the stable acquisition state formed during the energy preheating stage, a continuous time control sequence is established at the data output end to accurately arrange the start and end times of each environmental data acquisition cycle, and transform the non-uniform sampling process into a constant interval output. Dynamic buffer splicing module: Based on the constant interval output of the time continuous control sequence, a dynamic relay buffer is set during the data aggregation process to interpolate and splice the time series before and after the short-term interruption of sampling to generate a continuous time series data stream; Step-by-step reporting and transmission module: Based on the output characteristics of continuous time-series data streams, it performs step-by-step reporting during the data uplink transmission process, transmitting the cached data in batches according to time order, and attaching time weight labels to each batch of data; Sequential compensation and connection module: Based on the unified transmission results corresponding to the time weight labels, a sequential compensation path is established during the data recording process to smoothly connect the time gaps formed in the low temperature section.
[0050] The blockchain-based Chinese medicinal herb traceability management method provided in this embodiment of the invention is implemented through the aforementioned blockchain-based Chinese medicinal herb traceability management system. For details of the specific methods and processes of the blockchain-based Chinese medicinal herb traceability management system, please refer to the embodiments of the aforementioned blockchain-based Chinese medicinal herb traceability management method, which will not be repeated here.
[0051] The foregoing has only described certain exemplary embodiments of the present invention by way of illustration. Undoubtedly, those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the foregoing drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
Claims
1. A blockchain-based method for traceability management of traditional Chinese medicinal materials, characterized in that, Includes the following steps: Step 1: In response to the low-temperature characteristics of Ganoderma lucidum spores during cold chain transportation, dynamic segmented control is implemented on the power management logic of the embedded environmental acquisition terminal to enter the energy preheating stage before the temperature approaches the dormancy critical point. Step 2: Under the stable acquisition state formed during the energy preheating stage, establish a time-continuous control sequence at the data output end to precisely arrange the start and end times of each environmental data acquisition cycle, transforming the non-uniform sampling process into a constant interval output. Step 3: Based on the constant interval output of the time-continuous control sequence, a dynamic relay buffer is set during the data aggregation process to interpolate and splice the time series before and after the short-term interruption of sampling to generate a continuous time series data stream. Step 4: Based on the output characteristics of continuous time-series data streams, perform step-by-step reporting during the data uplink transmission process, transmit the cached data in batches according to time order, and attach time weight labels to each batch of data; Step 5: Based on the unified transmission results corresponding to the time weight labels, establish a sequential compensation path during the data recording process to smoothly connect the time gaps formed in the low temperature section.
2. The blockchain-based method for tracing and managing the origin of traditional Chinese medicinal materials according to claim 1, characterized in that, To address the low-temperature characteristics of Ganoderma lucidum spores during cold chain transportation, the steps for implementing dynamic segmented control of the power management logic of the embedded environmental acquisition terminal include: Before the start of cold chain transportation, the power management logic of the embedded environmental acquisition terminal is initialized and configured. Based on the temperature change range in the transportation warehouse and the discharge performance of the energy storage unit, the ambient temperature is divided into a high-temperature stable zone, a critical transition zone, and a low-temperature risk zone, and the output mode is adjusted according to the temperature sensing signal. When the acquisition terminal detects that the ambient temperature has entered the critical transition zone, the power management logic starts the energy segmentation and allocation process, dividing the energy storage unit into a basic maintenance zone and a preheating activation zone, and dynamically adjusting the output ratio according to the rate of temperature change. After the energy is allocated in segments, the acquisition terminal enters the energy preheating stage. The power management logic continuously outputs electrical energy and controls the current release rate to form a stable internal temperature rise environment. Once the energy preheating phase reaches a steady state, the power management logic enters the energy stabilization phase, which controls the dynamic balance between the energy release cycle and the energy storage compensation rate.
3. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 2, characterized in that, During the energy stabilization phase, the power management logic periodically adjusts the output power based on the temperature and current change characteristics during the energy preheating phase, and performs alternating operations between energy release and energy storage compensation.
4. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 2, characterized in that, The steps for establishing a time-continuous control sequence under the stable acquisition state formed during the energy preheating stage include: During the energy preheating stage, when a stable acquisition state is formed, the power management logic continuously provides constant power output to the main control circuit and data acquisition unit. When the voltage reaches a stable threshold, the starting point of the time-continuous control sequence is determined, and a time anchor point is generated through an internal high-precision oscillator to establish a time reference for the acquisition cycle. Based on the establishment of the time reference, the main control circuit sequentially schedules the sampling trigger signals of various sensors and precisely arranges the start and end times of each environmental data acquisition cycle. While the time scheduling is being executed, the acquisition terminal establishes a time stamp record structure at the data output end, establishes a correspondence between the timestamp and the acquired data, and forms a time data sequence arranged in chronological order at the output end; When the time-continuous control sequence is running stably, the main control circuit dynamically adjusts the time anchor interval based on the constant power supply provided by the power management logic.
5. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 4, characterized in that, During the constant output process of the continuous time control sequence, the main control circuit synchronously monitors the constant power output provided by the power management logic, dynamically corrects the time anchor interval based on voltage fluctuations and temperature changes, and updates the timestamp information based on the time anchor each time data is output.
6. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 4, characterized in that, Based on the constant interval output of the time-continuous control sequence, the steps for setting up a dynamic relay buffer during data aggregation include: When the time-continuous control sequence forms a constant interval output, the data output end of the acquisition terminal enters the data aggregation preparation stage. According to the time output pattern, the environmental data is transmitted to the data aggregation unit, and the output rhythm is monitored through dynamic relay buffer. The short-term interruption of acquisition is identified based on the time tag. Based on the dynamic transit cache to complete the time breakpoint identification, time occupancy points are established according to the time tag intervals before and after the freeze, and the broken mining sections are interpolated and spliced to generate a continuous time tag sequence. Once the temporal interpolation is complete, the dynamic transit cache reassembles the original data stream in the cache area according to the time tag order, forming a temporal data stream that is continuous and evenly distributed in the time dimension. During the generation of continuous time-series data streams, a dynamic relay buffer monitors the data output status using a sliding window approach, adjusting the time occupancy points and output rhythm based on the continuous time control sequence.
7. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 6, characterized in that, When performing time-series interpolation and splicing, the dynamic relay buffer outputs results at constant intervals according to the time continuous control sequence, maps the time occupancy points of the discontinuous sampling section to the time labels of adjacent collected data, and performs continuous superposition operations in the order of time labels during the reassembly process.
8. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 6, characterized in that, Based on the output characteristics of continuous time-series data streams, the steps of performing step-by-step reporting and attaching time-weighted labels during data uplink transmission include: Under the state of continuous time-series data stream generation and stable output, the acquisition terminal performs segmented preprocessing on the data in the dynamic relay buffer according to the output rhythm of the time-continuous control sequence, divides it into multiple continuous time batches according to the time order, and records the start time and end time of each batch through time tags. Based on the completion of data batch division, the acquisition terminal transmits the cached data in batches according to the time sequence, using the start time of each batch as the transmission start benchmark, and maintaining the transmission rhythm consistent with the acquisition interval during the batch transmission process. During the step-by-step reporting process, the acquisition terminal adds a time weight label to each batch of data. Taking the output rhythm of the time-continuous control sequence as a reference, it generates weight information containing data batch number, time reference point and time interval index and embeds it into the data stream structure. Once the step-by-step reporting and time weight tag attachment are complete, the acquisition terminal sends a synchronization signal to the uplink node based on the weight range of the time weight tag, and performs uplink synchronization maintenance operation.
9. The blockchain-based method for traceability management of traditional Chinese medicinal materials according to claim 8, characterized in that, The time weight label contains the data batch number, time reference point, and time interval index, which are bound to the start time of each batch during the uplink transmission process. The acquisition terminal performs synchronous updates on each batch of data based on the corresponding binding relationship with the start time of each batch, and adjusts the sending start time of the next batch of data based on the time reference point when sending a synchronization signal to the uplink node.
10. A blockchain-based traceability management system for traditional Chinese medicinal materials, used to implement the blockchain-based traceability management method for traditional Chinese medicinal materials as described in any one of claims 1-9, characterized in that, It includes a power segmentation control module, a time series establishment module, a dynamic buffer splicing module, a step-by-step reporting and transmission module, and a sequence compensation and connection module; Power segment control module: In response to the low temperature characteristics of Ganoderma lucidum spores during cold chain transportation, the power management logic of the embedded environmental acquisition terminal is dynamically segmented and controlled, and the energy preheating stage is entered before the temperature approaches the dormancy critical point. Time series establishment module: Under the stable acquisition state formed during the energy preheating stage, a continuous time control sequence is established at the data output end to accurately arrange the start and end times of each environmental data acquisition cycle, and transform the non-uniform sampling process into a constant interval output. Dynamic buffer splicing module: Based on the constant interval output of the time continuous control sequence, a dynamic relay buffer is set during the data aggregation process to interpolate and splice the time series before and after the short-term interruption of sampling to generate a continuous time series data stream; Step-by-step reporting and transmission module: Based on the output characteristics of continuous time-series data streams, it performs step-by-step reporting during the data uplink transmission process, transmitting the cached data in batches according to time order, and attaching time weight labels to each batch of data; Sequential compensation and connection module: Based on the unified transmission results corresponding to the time weight labels, a sequential compensation path is established during the data recording process to smoothly connect the time gaps formed in the low temperature section.
Citation Information
Patent Citations
Cold chain product whole-process wireless traceability system based on Internet of Things
CN120612104A
LCD display screen production full-period digital tracing method and system
CN121073509A
Intelligent laser clearing system for overhead line system based on deep learning
CN121282763A
Embedded industry display low temperature heating control circuit
CN207586770U
Timing Resiliency Service
US20240129992A1