Incubator Data Printing System, Incubator Data Printing Method and Related Equipment
The system dynamically adjusts sensor sampling frequency to manage paper usage, ensuring complete data printing in insulated boxes despite transportation delays.
Patent Information
- Application Number
- CN202510575928.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2045-05-06
AI Technical Summary
The increase in the transportation time of the existing insulated box leads to insufficient remaining paper and the inability to print all temperature and humidity data.
By monitoring the transportation duration and sampling frequency in real time, dynamically adjusting the sampling frequency and printing density of sensor data, ensuring that the paper margin is sufficient to print all data, including reducing sampling frequency and increasing printing density in case of transportation delays.
In the case of limited paper margin, ensure that all sensor data is successfully printed, avoid data loss, and ensure data traceability during transportation.
Smart Images

Figure CN120096214B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data printing for incubators, and in particular, to an incubator data printing system, an incubator data printing method, and related devices. Background Art
[0002] There is a type of existing incubator on which an all-in-one machine is installed. The all-in-one machine is integrated with temperature and humidity sensors, and the temperature and humidity sensors are used to measure the internal temperature and humidity of the incubator. The measured temperature and humidity data will be recorded at a fixed sampling frequency. In order to obtain paper data immediately for the convenience of users to sign and confirm, the all-in-one machine is also integrated with a printer. Users can use the printer to print out all the temperature and humidity data recorded during the entire transportation process. However, in actual application, the amount of paper pre-installed in the printer is prepared according to the estimated duration of the entire transportation process (the amount of data to be recorded, that is, the amount of data to be printed, can be calculated based on the estimated duration and the sampling frequency, and thus the amount of paper used can be estimated). During the actual transportation process, due to reasons such as traffic jams and vehicle failures, the transportation is delayed, so that the final duration of the entire transportation process is longer than the estimated duration, resulting in an increase in the amount of data to be recorded, that is, an increase in the amount of data to be printed, thus causing the pre-installed paper amount to be insufficient to print all the data, resulting in a paper shortage problem, and further affecting the immediate acquisition of paper data.
[0003] In response to the above problems, there is currently no effective technical solution. Summary of the Invention
[0004] The purpose of the present invention is to provide an incubator data printing system, an incubator data printing method, and related devices, which solve the problem that the remaining paper amount is insufficient to print all the data due to the increase in the transportation duration, and achieve the avoidance of paper shortage, ensure that all data can be printed, and smoothly realize the immediate acquisition of paper data.
[0005] In a first aspect, the present invention provides an incubator data printing system, including an incubator and an all-in-one machine installed on the incubator. The all-in-one machine is integrated with a sensor and a printer. The sensor is used to measure a specified parameter of the incubator, and the specified parameter is recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper;
[0006] The all-in-one machine is used to perform the following steps:
[0007] S1. Obtain the actual transportation duration;
[0008] S2. Compare the actual transportation duration with a preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all the sensing data according to the actual transportation duration and the initial sampling frequency;
[0009] S3. Compare the total required paper quantity with the remaining paper quantity of the printer. When the total required paper quantity is greater than the remaining paper quantity, issue an alarm and wait for a frequency reduction instruction; otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency or wait for a frequency increase instruction.
[0010] S4. After receiving the frequency reduction instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency.
[0011] S5. After receiving the frequency increase instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency.
[0012] S6. After recording the sensing data according to the target sampling frequency, control the printer to print the sensing data on paper.
[0013] The data printing system for the incubator of the present invention reduces the increased data volume caused by transportation delays by reducing the sampling frequency, ensures that the remaining paper quantity can print all sensing data, avoids data loss and paper shortage problems, and smoothly realizes the instant acquisition of paper data.
[0014] Further, when the all-in-one machine is used to execute step S2, it executes:
[0015] S21. Real-time obtain the specified parameters of the incubator, and continuously detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and record the relevant abnormal data; the abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value.
[0016] S22. Calculate the basic required paper quantity for printing all sensing data according to the actual transportation duration and the initial sampling frequency.
[0017] S23. Based on the preset priority for printing abnormal data, calculate the additional required paper quantity for printing the abnormal data according to the recorded abnormal data.
[0018] S24. Add the basic required paper quantity and the additional required paper quantity to obtain the total required paper quantity for printing all sensing data.
[0019] The calculation of the total required paper quantity not only considers the situation of transportation delays but also considers the situation of abnormal temperature fluctuations during transportation, making the paper quantity estimation more accurate.
[0020] Further, when the all-in-one machine is used to execute step S21, it executes:
[0021] S211. Obtain the specified parameters of the incubator in real time, and calculate the difference between the specified parameters of two adjacent sampling points with the same specified parameters;
[0022] S212. Divide the difference of the specified parameters by the sampling time interval to obtain the change rate of the specified parameters;
[0023] S213. Determine whether the absolute value of the change rate of the specified parameters exceeds a preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation;
[0024] S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of continuous sampling points exceeding the preset threshold by the sampling time interval, and the maximum difference of the specified parameters during the abnormal fluctuation.
[0025] The detection sensitivity of abnormal fluctuations can be flexibly adjusted according to different transportation requirements, so that the recording of abnormal data better meets the needs of actual applications.
[0026] Furthermore, when the all-in-one machine is used to execute step S3, it executes:
[0027] S31. Compare the total required paper amount with the remaining paper amount of the printer. If the total required paper amount is greater than the remaining paper amount, execute step S32; otherwise, keep the initial sampling frequency unchanged and use it as the target sampling frequency, or wait for an up-frequency instruction;
[0028] S32. Determine whether the difference between the total required paper amount and the remaining paper amount exceeds a preset warning threshold. If it exceeds the preset warning threshold, issue a warning and wait for a down-frequency instruction; otherwise, execute step S33;
[0029] S33. Increase the printing density, and recalculate the total required paper amount according to the increased printing density. If the recalculated total required paper amount is less than or equal to the remaining paper amount, use the current printing density as the target printing density; otherwise, issue a warning and wait for a down-frequency instruction; the target printing density is used to control the printer to print the sensing data measured by the sensor on the paper at the target printing density when executing step S6.
[0030] This avoids the problem of frequent warnings due to a single warning judgment method, which reduces the user experience. At the same time, it meets the printing requirements by increasing the printing density and avoids the loss of key data.
[0031] Second aspect, the present invention provides a method for printing incubator data, which is applied to an incubator data printing system. The incubator data printing system includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine is integrated with a sensor and a printer. The sensor is used to measure specified parameters of the incubator. The specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper;
[0032] The method for printing incubator data includes the following steps:
[0033] S1. Obtain the actual transportation duration;
[0034] S2. Compare the actual transportation duration with a preset planned transportation duration. When the actual transportation duration is greater than the planned transportation duration, calculate the total amount of paper required to print all sensing data according to the actual transportation duration and the initial sampling frequency;
[0035] S3. Compare the total amount of paper required with the remaining paper amount of the printer. When the total amount of paper required is greater than the remaining paper amount, issue an alarm and wait for a down-frequency instruction. Otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for an up-frequency instruction;
[0036] S4. After receiving the down-frequency instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency;
[0037] S5. After receiving the up-frequency instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency;
[0038] S6. After recording the sensing data according to the target sampling frequency, control the printer to print the sensing data on paper.
[0039] By adjusting the sampling frequency, the system can save printing paper as much as possible on the premise of ensuring data integrity. Especially when the actual transportation duration exceeds the planned transportation duration, it can effectively avoid the problem of data printing interruption due to insufficient paper.
[0040] Further, the specific steps in step S2 include:
[0041] S21. Continuously obtain the specified parameters of the incubator and constantly detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and the relevant abnormal data is recorded; the abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value;
[0042] S22. Calculate the basic required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency;
[0043] S23. Calculate the additional required paper amount for printing abnormal data based on the preset priority of abnormal data printing according to the recorded abnormal data;
[0044] S24. Add the basic required paper amount and the additional required paper amount to obtain the total required paper amount for printing all sensing data.
[0045] Further, the specific steps in step S21 include:
[0046] S211. Obtain the specified parameters of the incubator in real time and calculate the difference between the specified parameters of two adjacent sampling points with the same specified parameters;
[0047] S212. Divide the difference of the specified parameters by the sampling time interval to obtain the change rate of the specified parameters;
[0048] S213. Determine whether the absolute value of the change rate of the specified parameters exceeds a preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation;
[0049] S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of continuous sampling points exceeding the preset threshold by the sampling time interval, and the maximum difference of the specified parameters during the abnormal fluctuation.
[0050] In a third aspect, the present invention provides an incubator data printing device, which is applied to an incubator data printing system. The incubator data printing system includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine is integrated with a sensor and a printer. The sensor is used to measure the specified parameters of the incubator. The specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper;
[0051] The incubator data printing device includes:
[0052] An acquisition module, which is used to acquire the actual transportation duration;
[0053] A calculation module, which is used to compare the actual transportation duration with a preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency;
[0054] A control module, configured to compare the total required paper amount with the remaining paper amount of the printer, and when the total required paper amount is greater than the remaining paper amount, issue an alarm and wait for a frequency reduction instruction; otherwise, maintain the initial sampling frequency unchanged and use it as the target sampling frequency, or wait for a frequency increase instruction;
[0055] A frequency reduction module, configured to reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency after receiving the frequency reduction instruction;
[0056] A frequency increase module, configured to increase the initial sampling frequency and use the increased frequency as the target sampling frequency after receiving the frequency increase instruction;
[0057] A printing module, configured to control the printer to print the sensing data on paper after recording the sensing data according to the target sampling frequency.
[0058] The incubator data printing device provided by the present invention can still successfully print a complete temperature record of the transportation process when the paper margin is limited, avoiding the problem of data printing interruption due to insufficient paper, and ensuring the traceability of temperature data during the cold chain transportation process.
[0059] In a fourth aspect, the present invention provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the incubator data printing method provided in the second aspect above are run.
[0060] In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the incubator data printing method provided in the second aspect above are run.
[0061] As can be seen from the above, the incubator data printing system provided by the present invention analyzes the transportation duration and, when the transportation duration exceeds the planned duration, reduces the amount of data to be recorded by changing the sampling frequency of the sensing data, so that the remaining paper amount can meet the requirement of printing all the sensing data, avoiding the problem of paper shortage, and thus ensuring that all data can be printed and smoothly realizing the instant acquisition of paper data.
[0062] Other features and advantages of the present invention will be described in the subsequent specification, and some of them will become obvious from the specification or can be understood by implementing the embodiments of the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in the written specification and the drawings. Description of the Drawings
[0063] Figure 1Schematic diagram of the incubator equipped with an all-in-one machine in the embodiment of the present invention.
[0064] Figure 2 Schematic diagram of the all-in-one machine in the embodiment of the present invention.
[0065] Figure 3 A flowchart of the method for printing incubator data provided by the embodiment of the present invention.
[0066] Figure 4 Schematic diagram of the structure of the incubator data printing device provided by the embodiment of the present invention.
[0067] Figure 5 Schematic diagram of the structure of the electronic device provided by the embodiment of the present invention.
[0068] Label description:
[0069] 1. Incubator; 2. All-in-one machine; 100. Acquisition module; 200. Calculation module; 300. Control module; 400. Frequency reduction module; 500. Frequency increase module; 600. Printing module; 13. Electronic device; 1301. Processor; 1302. Memory; 1303. Communication bus. Detailed implementation manners
[0070] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Usually, the components of the embodiments of the present invention described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed present invention, but only represents the selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.
[0071] It should be noted that: Similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used for distinguishing descriptions, and cannot be understood as indicating or implying relative importance.
[0072] Refer to the attached Figure 1 and the attached Figure 2, the present invention provides a data printing system for an incubator, which includes an incubator 1 and an all-in-one machine 2 installed on the incubator 1. The all-in-one machine 2 is integrated with a sensor and a printer. The sensor is used to measure specified parameters of the incubator, and the specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper;
[0073] The all-in-one machine is used to perform the following steps:
[0074] S1. Obtain the actual transportation duration;
[0075] S2. Compare the actual transportation duration with a preset planned transportation duration. When the actual transportation duration is greater than the planned transportation duration, calculate the total amount of paper required to print all the sensing data according to the actual transportation duration and the initial sampling frequency;
[0076] S3. Compare the total amount of paper required with the remaining paper amount of the printer. When the total amount of paper required is greater than the remaining paper amount, issue an alarm and wait for a frequency reduction instruction. Otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for a frequency increase instruction;
[0077] S4. After receiving the frequency reduction instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency;
[0078] S5. After receiving the frequency increase instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency;
[0079] S6. After recording the sensing data according to the target sampling frequency, control the printer to print the sensing data on paper.
[0080] In step S1, obtain the actual transportation duration. The actual transportation duration can be automatically recorded by the system (refer to the delivery duration acquisition method in the existing express delivery industry or transportation industry), or manually input by the user.
[0081] In step S2, the actual transportation duration is compared with the planned transportation duration. If the actual transportation duration is greater than the planned transportation duration (the planned transportation duration can be calculated by subtracting the currently elapsed transportation duration from the estimated duration of the entire transportation process), it indicates that the transportation is delayed. At this time, the system calculates the total amount of paper required to print all subsequent sensing data based on the actual transportation duration and the initial sampling frequency, that is, the total required paper quantity (it should be noted that different from the paper quantity required for the entire transportation process, the paper quantity required for the entire transportation process = the paper quantity required to print the already recorded sensing data + the paper quantity required to print the subsequent sensing data to be recorded. For example, if the currently elapsed transportation duration is 2 hours, the sensing data during these 2 hours has been recorded at the initial sampling frequency, so the paper quantity required for its printing, that is, the paper quantity required to print the already recorded sensing data, can be calculated. At this time, the transportation still needs to continue for 8 hours, that is, the actual transportation duration is 8 hours. If the sensing data during these 8 hours is recorded at the initial sampling frequency, the paper quantity required for its printing, that is, the paper quantity required to print the subsequent sensing data to be recorded, can also be calculated; in addition, the paper quantity required for the entire transportation process should be less than or equal to the paper quantity pre-installed in the printer to print all data). The purpose of calculating the total required paper quantity is to estimate the subsequent consumption of paper, so as to prepare for the subsequent judgment of the paper remaining quantity.
[0082] In step S3, the total required paper quantity is compared with the remaining paper quantity of the printer. The remaining paper quantity of the printer (i.e., the paper remaining quantity) can be calculated by subtracting the paper quantity required to print the already recorded sensing data from the paper quantity pre-installed before transportation. If the total required paper quantity is greater than the remaining paper quantity, it means that the paper in the printer may not be sufficient to complete the printing of all subsequent data. In this case, the system issues an alarm signal to prompt the user that the paper may be insufficient and waits to receive a frequency reduction instruction. The alarm method can be a sound alarm or an indicator light alarm, etc. If the total required paper quantity is less than or equal to the remaining paper quantity, it indicates that the paper is sufficient, and the system maintains the initial sampling frequency unchanged and uses it as the target sampling frequency, or waits to receive a frequency increase instruction. The frequency increase instruction and the frequency reduction instruction can be manually issued by the user according to the actual situation (realized through remote control). For example, the user can decide whether to adjust the sampling frequency according to the value of the transported goods or the requirement for data accuracy.
[0083] Steps S4 and S5 are frequency adjustment steps. After receiving the frequency reduction instruction, the system reduces the initial sampling frequency and sets the reduced frequency as the target sampling frequency. Reducing the sampling frequency means that fewer data points are recorded in the same time, thereby reducing the amount of data to be printed, achieving the purpose of saving paper. On the contrary, after receiving the frequency increase instruction, the system increases the initial sampling frequency and sets the increased frequency as the target sampling frequency to improve the density of data recording.
[0084] Finally, in step S6, the system records the sensing data at the target sampling frequency (it should be noted that the sensing data already recorded at the initial sampling frequency is retained, and subsequent sensing data is recorded at the target sampling frequency). The target sampling frequency is the sampling frequency adjusted through steps S3, S4, or S5. After obtaining the sensed data, the system controls the printer to print this sensed data on paper. By adjusting the sampling frequency, the system can save printing paper as much as possible while ensuring data integrity. Especially when the actual transportation duration exceeds the planned transportation duration, it can effectively avoid the problem of data printing interruption due to insufficient paper.
[0085] It should be noted that the actual transportation duration may change multiple times, and each change in the actual transportation duration may cause the sampling frequency to be adjusted. At this time, the total amount of paper required for the entire transportation process will be calculated multiple times. The steps for calculating the total amount of paper required each time are the same and will not be elaborated here; at this time, the amount of paper required for the entire transportation process is expressed as: the amount of paper required for the entire transportation process = the amount of paper required to print the sensed data already recorded at the initial sampling frequency + the amount of paper required to print the sensed data recorded at the target sampling frequency obtained from the first adjustment + ······ + the amount of paper required to print the sensed data recorded at the target sampling frequency obtained from the Nth adjustment.
[0086] Specifically, its working principle is as follows:
[0087] After the system starts, it first obtains the actual transportation duration. The actual transportation duration can be obtained by the system's automatic timing or manually input by the user. At the same time, the system calculates the planned transportation duration and presets an initial sampling frequency. The initial sampling frequency determines the density of data recording. The higher the frequency, the more data points are recorded, and the more detailed the data is, but at the same time, more paper is required for printing.
[0088] After obtaining the actual transportation duration, the system compares the actual transportation duration with the planned transportation duration. If the actual transportation duration is equal to or less than the planned transportation duration, the system normally collects and prints data at the initial sampling frequency without frequency adjustment.
[0089] When the actual transportation duration is greater than the planned transportation duration, the system determines that the transportation is delayed. At this time, the system calculates how much paper is required in total if it continues to record data at the initial sampling frequency and prints all subsequent data, that is, the total amount of paper required. The calculation related to the amount of paper can be estimated based on parameters such as the number of data rows that can be printed on each page of paper and the length of paper occupied by each row of data preset.
[0090] After calculating the total required paper quantity, the system will compare the total required paper quantity with the current remaining paper quantity of the printer. The remaining paper quantity of the printer can be obtained by manually inputting the quantity of pre-loaded paper in the printer by the user during system initialization and decreasingly calculating according to the paper quantity required for printing the currently recorded sensing data.
[0091] If the total required paper quantity is less than or equal to the remaining paper quantity of the printer, it indicates that there is enough paper for printing. The system maintains the current initial sampling frequency as the target sampling frequency and continues with data acquisition and printing operations. At this time, the system can also choose to wait for an up-frequency instruction. If the user wishes to increase the data sampling density, an up-frequency instruction can be sent, and the system will increase the sampling frequency according to the up-frequency instruction.
[0092] If the total required paper quantity is greater than the remaining paper quantity of the printer, it indicates that according to the current sampling frequency and actual transportation duration, the printing paper may be insufficient. At this time, the system will issue an alarm to prompt the user that the paper may not be enough. The purpose of the alarm is to remind the user to pay attention to the paper margin and consider whether to adjust the sampling frequency to save paper. After issuing the alarm, the system will wait to receive a down-frequency instruction. If the user believes that the paper shortage problem is serious or has low requirements for data accuracy, a down-frequency instruction can be sent. After receiving the down-frequency instruction, the system will lower the current sampling frequency and use the lowered frequency as the target sampling frequency. After lowering the sampling frequency, the density of data recording will decrease, thereby reducing the paper quantity required for subsequent printing.
[0093] After setting the target sampling frequency, the system will continuously collect the specified parameters of the incubator according to the target sampling frequency and store the collected sensing data. When the transportation process ends, or when the user needs to print the data, the system will control the printer to print the stored sensing data on paper. Since the system reduces the data volume by lowering the sampling frequency when the paper may be insufficient, it can effectively avoid the problem of paper shortage caused by the actual transportation duration exceeding the plan, ensuring that the complete incubator data record can be successfully printed under various transportation conditions.
[0094] In some specific embodiments, the incubator data printing system is applied to the cold chain transportation scenario. The incubator is used to load temperature-sensitive drugs or foods. The all-in-one machine is installed outside the incubator or integrated on the body of the incubator. The sensor is a high-precision temperature sensor for real-time monitoring of the temperature change inside the incubator. The initial sampling frequency is preset to sample once per minute, that is, record one temperature data per minute. The printer is a thermal printer that uses roll thermal paper.
[0095] During a transportation mission, the initial sampling frequency is once per minute. The estimated duration of the entire transportation process is set to 10 hours. According to the estimated duration, the system pre-installed enough thermal paper before transportation to print data for 10 hours. After 3 hours of transportation, it is calculated that the planned transportation duration is 10 - 3 = 7 hours, that is, the remaining paper at this time is only enough to print data for 7 hours. However, during the actual transportation process, due to traffic congestion, the actual transportation duration is extended to 12 hours (that is, the final duration of the entire transportation process is 12 + 3 = 15 hours). At this time, the transportation duration is extended by 12 - 7 = 5 hours, and the system obviously cannot print the extra 5 hours of data.
[0096] When the system compares the actual transportation duration with the planned transportation duration and finds that the actual transportation duration is greater than the planned transportation duration, the system calculates the amount of data that needs to be recorded and printed based on the 12-hour transportation duration and the initial sampling frequency (once per minute), and estimates the total amount of paper required to print this data. The system compares the total amount of paper required with the remaining paper amount in the printer. Assuming that the remaining paper amount in the printer at this time is not enough to print all the data, the system will issue an audible and visual alarm, indicating that the paper may be insufficient.
[0097] After receiving the alarm, the user evaluates that the data sampling density can be appropriately reduced to save paper. The user can send a frequency reduction command to the all-in-one machine through remote control or directly operate on the all-in-one machine. After receiving the frequency reduction command, the system reduces the sampling frequency from once per minute to once every two minutes, and sets the new sampling frequency as the target sampling frequency. The system continues to record temperature data at a frequency of once every two minutes. After the transportation mission ends, the system controls the printer to print out all the temperature data recorded according to the target sampling frequency. Since the sampling frequency is reduced, the total amount of data is reduced, which ensures that under the limited paper margin, the temperature record of the entire transportation process can still be successfully printed, avoiding the problem of data printing interruption due to insufficient paper, and ensuring the traceability of temperature data during the cold chain transportation process.
[0098] In some embodiments, when the all-in-one machine is used to execute step S2, it executes:
[0099] S21. Obtain the specified parameters of the incubator in real time, and always detect whether the change rate of the specified parameters exceeds the preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and the relevant abnormal data is recorded; the abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value;
[0100] S22. Calculate the basic amount of paper required to print all the sensing data according to the actual transportation duration and the initial sampling frequency;
[0101] S23. Based on the preset priority for printing abnormal data, calculate the additional amount of paper required to print the abnormal data according to the recorded abnormal data;
[0102] S24. Add the basic required paper amount and the additional required paper amount to obtain the total required paper amount for printing all sensing data.
[0103] In step S21, the detection of the specified parameter change rate can be achieved in the following way: The processor in the all-in-one machine periodically reads the value of the specified parameter measured by the sensor. The processor calculates the difference of the specified parameter between the current sampling point and the previous sampling point, and then divides this difference by the sampling time interval to obtain the specified parameter change rate. The preset threshold is stored in the memory of the all-in-one machine and can be adjusted according to the actual application requirements. When the absolute value of the calculated specified parameter change rate exceeds this threshold, the system determines that there is an abnormal fluctuation. When an abnormal fluctuation is detected, the system records the time point when the abnormal fluctuation occurs and the value of the specified parameter at this time. The time point can be obtained by the real-time clock of the all-in-one machine, and the value of the specified parameter is directly read from the sensor.
[0104] In step S23, the preset abnormal data printing priority determines the amount of paper occupied by the abnormal data on the paper. For example, different priorities can be set for different levels of abnormal fluctuation amplitudes. Abnormal data with a higher priority may require printing more context information or using a higher printing density to highlight it. The calculation of the additional required paper amount can be completed based on the number of abnormal data, the priority, and the preset paper occupancy parameters. For example, each abnormal data record can be estimated to occupy a fixed number of lines of paper, and abnormal data records with a higher priority occupy more lines.
[0105] Specifically, in the scenario of transporting valuable items in an incubator, the stability of the internal temperature of the incubator is crucial. This embodiment aims to solve the problem that simply calculating the required paper quantity based on the actual transportation duration and the initial sampling frequency may not be able to handle unexpected situations, resulting in important abnormal data being ignored due to subsequent frequency reduction. The all-in-one machine monitors the internal temperature of the incubator in real time, and the initial sampling frequency is set to once per minute. For example, the planned transportation duration is 8 hours (it can also be in days, such as 1 day, 3 days, or 7 days). During the actual transportation, if there is a traffic jam and the actual transportation duration is extended to 10 hours. After the all-in-one machine obtains the actual transportation duration of 10 hours in step S1, it compares it with the planned transportation duration of 8 hours and determines that the actual transportation duration is greater than the planned transportation duration. Then it enters step S2, and the all-in-one machine starts to calculate the total required paper quantity in detail. In step S21, the all-in-one machine monitors the temperature change rate in real time. For example, the preset threshold is set to 0.5 °C per minute. At the 5th hour of transportation, due to a sudden change in the external environmental temperature, the internal temperature of the incubator changes by 3 °C within 5 minutes, and the calculated temperature change rate is 0.6 °C per minute, exceeding the preset threshold. The system determines that an abnormal fluctuation occurs at this time and records the abnormal data, including the time point when the abnormality occurs and the temperature value at that time (the preset threshold is set by the user according to the storage temperature during incubator transportation. In actual applications, these temperature-related thresholds are also used to trigger an alarm. For example, when the temperature change rate exceeds the preset threshold or the temperature inside the incubator exceeds the preset temperature range, an alarm is issued). In step S22, based on the actual transportation duration of 10 hours and the initial sampling frequency of once per minute, the basic required paper quantity is calculated. Assuming that 5 cm of paper is required for data printing per hour, the basic required paper quantity is 50 cm. In step S23, based on the preset printing priority of abnormal data, the additional required paper quantity is calculated. Assuming that an additional 5 cm of paper is required for each abnormal data record, and one abnormal data is recorded this time, the additional required paper quantity is 5 cm. In step S24, the basic required paper quantity of 50 cm and the additional required paper quantity of 5 cm are added together to obtain the total required paper quantity of 55 cm. Thus, the calculation of the total required paper quantity not only considers the situation of transportation delay but also the situation of abnormal temperature fluctuations during transportation, making the paper quantity estimation more accurate.
[0106] In some specific embodiments, the preset threshold can be adjusted according to the transportation requirements of different types of items. For example, for the transportation of drugs that are very sensitive to temperature fluctuations, the preset threshold can be set lower, such as 0.2 °C per minute, so as to more sensitively detect abnormal temperature fluctuations and record them. The printing priority of abnormal data can also be set in levels. For example, it can be divided into three levels: "high", "medium", and "low". Different levels correspond to different paper consumption amounts. High-priority abnormal data may require a detailed print of the temperature change curve before and after the occurrence of the abnormality. Medium-priority abnormal data can only print the time point and temperature value at the time of the abnormality. Low-priority abnormal data can only be recorded but not printed immediately. In the case of very tight paper, it can be considered to omit printing low-priority abnormal data. Through these flexible parameter settings, the paper usage strategy can be adjusted according to actual needs, while ensuring that important data is recorded and printed, and saving paper as much as possible. Thus, in the case where the actual transportation duration exceeds the planned transportation duration and there are abnormal fluctuations in the specified parameters during the transportation process, the required paper amount can be calculated more accurately, ensuring that important abnormal data is recorded and printed, and avoiding data loss problems caused by insufficient paper.
[0107] In certain embodiments, when the all-in-one machine is used to execute step S21, it performs:
[0108] S211. Obtain the specified parameters of the incubator in real time, and calculate the difference between the specified parameters of two adjacent sampling points of the same specified parameter;
[0109] S212. Divide the difference between the specified parameters by the sampling time interval to obtain the specified parameter change rate;
[0110] S213. Determine whether the absolute value of the specified parameter change rate exceeds the preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation;
[0111] S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of continuous sampling points exceeding the preset threshold by the sampling time interval, and the maximum difference between the specified parameters during the abnormal fluctuation.
[0112] In step S211, the all-in-one machine receives the measured values of the specified parameters sent by the sensor in real time. As a way, the measured values of the specified parameters measured by the sensor are periodically recorded at a preset initial sampling frequency or target sampling frequency. When the measured value of the specified parameter at the current sampling point is recorded, the measured value of the specified parameter at the previous sampling point is obtained, and then the difference between the specified parameter values of these two adjacent sampling points is calculated, thereby obtaining the difference between the specified parameters.
[0113] In step S212, the sampling time interval refers to the time interval between two adjacent sampling points, which is determined by a preset sampling frequency. After dividing the specified parameter difference by the sampling time interval, the change amount of the specified parameter per unit time, that is, the specified parameter change rate, can be obtained.
[0114] In step S213, the preset threshold is a critical value preset for determining whether the change of the specified parameter is abnormal. By judging whether the absolute value of the specified parameter change rate exceeds the preset threshold, it is possible to effectively identify whether the specified parameter has changed violently, and thus determine whether there is an abnormal fluctuation.
[0115] In step S214, when it is determined that there is an abnormal fluctuation, the all-in-one machine will record a series of data related to the abnormal fluctuation for subsequent analysis and traceability. The time point when the abnormal fluctuation occurs is the sampling time point when the specified parameter change rate is first detected to exceed the preset threshold. The corresponding specified parameter value is the value of the specified parameter measured by the sensor at this time point. The duration of the abnormal fluctuation is calculated by counting the number of sampling points that continuously exceed the preset threshold and then multiplying by the sampling time interval. By comparing the specified parameter differences between two adjacent sampling points in all abnormal data, the maximum value obtained is the maximum specified parameter difference.
[0116] Specifically, this embodiment aims to solve the problem that abnormal fluctuations with a long duration and a large change amplitude may have a greater impact on the quality of items, and the problem that the existing recording method cannot distinguish the impact degree of abnormal fluctuations on the quality of items. During the actual operation of the incubator data printing system, a sensor, such as a temperature sensor, will continuously monitor the temperature inside the incubator. The all-in-one machine receives the temperature data sent by the temperature sensor at a set initial sampling frequency or target sampling frequency, for example, sampling once per minute. After the all-in-one machine receives new temperature data each time, it will calculate the difference between the current temperature value and the temperature value of the previous minute to obtain the temperature difference. Then, this temperature difference is divided by the sampling time interval, that is, 1 minute, to obtain the temperature change rate. The system presets a temperature change rate threshold, for example, 0.5 °C / minute. If the absolute value of the calculated temperature change rate exceeds 0.5 °C / minute, it is determined that the temperature has an abnormal fluctuation. Once it is determined that there is an abnormal fluctuation, the all-in-one machine will record: the time point when the abnormal fluctuation occurs, for example, 10:30 in the morning; the temperature value at this time, for example, -5 °C; the duration of the abnormal fluctuation, for example, if the temperature change rates of the subsequent 3 consecutive sampling points all exceed the threshold, the duration is 3 minutes; and the maximum temperature difference during the abnormal fluctuation, for example, within the continuous 3 minutes, the maximum value of the temperature differences between adjacent sampling points is 0.8 °C.
[0117] In some specific embodiments, the preset threshold can be adjusted according to the actual application scenario and the requirements for the stability of specified parameters. For example, for the transportation of drugs or vaccines with extremely high requirements for temperature stability, the preset threshold can be set relatively low to more sensitively detect subtle temperature fluctuations. On the contrary, for the transportation of ordinary items with relatively low requirements for temperature stability, the preset threshold can be appropriately increased. Thus, the detection sensitivity of abnormal fluctuations can be flexibly adjusted according to different transportation requirements, making the recording of abnormal data more in line with the needs of actual applications.
[0118] In certain embodiments, when the all-in-one machine is used to execute step S3, it performs:
[0119] S31. Compare the total required paper amount with the remaining paper amount of the printer. If the total required paper amount is greater than the remaining paper amount, then execute step S32; otherwise, maintain the initial sampling frequency unchanged and use it as the target sampling frequency, or wait for an up-frequency instruction.
[0120] S32. Determine whether the difference between the total required paper amount and the remaining paper amount exceeds a preset warning threshold. If it exceeds the preset warning threshold, then issue a warning and wait for a down-frequency instruction; otherwise, execute step S33.
[0121] S33. Increase the printing density, and recalculate the total required paper amount according to the increased printing density. If the recalculated total required paper amount is less than or equal to the remaining paper amount, then use the current printing density as the target printing density; otherwise, issue a warning and wait for a down-frequency instruction. The target printing density is used to control the printer to print the sensed data measured by the sensor on the paper at the target printing density when executing step S6.
[0122] In step S31, the all-in-one machine first performs the comparison operation between the total required paper amount and the remaining paper amount of the printer. If the total required paper amount is less than or equal to the remaining paper amount of the printer, the system determines that the paper amount is sufficient, maintains the initial sampling frequency, or responds to an up-frequency instruction to increase the sampling frequency. On the contrary, if the total required paper amount is greater than the remaining paper amount of the printer, then proceed to step S32 for further processing of the insufficient paper amount situation.
[0123] In step S32, the system determines whether the difference between the total required paper amount and the remaining paper amount exceeds a preset warning threshold. The preset warning threshold is the upper limit value of the paper amount difference set in advance, which is used to distinguish the degree of insufficient paper amount. If the paper amount difference exceeds the preset warning threshold, it indicates that the paper amount is seriously insufficient. At this time, the system issues a warning signal to prompt the user that the current paper amount cannot complete the printing task and waits to receive a down-frequency instruction, hoping to reduce the data volume by reducing the sampling frequency, thereby reducing paper consumption. If the paper amount difference does not exceed the preset warning threshold, it indicates that although the paper amount is insufficient, there is still a certain margin, and the system attempts to actively solve the problem of insufficient paper amount by executing step S33.
[0124] In step S33, the system saves paper by increasing the printing density, that is, by increasing the printing content per unit paper area. After the printing density is increased, the system recalculates the total required paper amount. If the recalculated total required paper amount is less than or equal to the remaining paper amount of the printer, the system determines that the current printing density meets the paper amount requirement, and sets the current printing density as the target printing density for subsequent data printing. If even after increasing the printing density, the total required paper amount is still greater than the remaining paper amount, indicating a serious shortage of paper, the system issues an alarm and waits for a frequency reduction instruction to prompt the user that the paper amount can no longer meet the minimum printing requirements.
[0125] Specifically, aiming at the problem that the printing paper may be insufficient when the transportation time of the incubator data printing system in the prior art is extended, this solution provides a more refined paper shortage handling mechanism by executing step S3 in the all-in-one machine. This avoids the problem of frequent alarms caused by a single alarm judgment method, resulting in a reduction in user experience. At the same time, by increasing the printing density to meet the printing requirements, key data loss is avoided.
[0126] First, in step S31, the system pre-evaluates the total amount of paper required for the printing task and the current remaining paper amount of the printer. If the paper amount is initially judged to be insufficient, the system does not immediately issue an alarm, but enters the subsequent optimization processing flow.
[0127] Next, in step S32, the system introduces an alarm threshold to classify and judge the degree of paper shortage. For the case of slightly insufficient paper amount, the system will automatically execute step S33 to try to solve the problem.
[0128] Then, in step S33, the system further increases the printing density to more effectively save paper by increasing the amount of information printed on the paper. Through the adjustment of the printing density, when the paper amount is insufficient, the system gives priority to self-optimization and strives to complete the printing task without completely sacrificing data integrity.
[0129] Only when the paper amount is seriously insufficient and still cannot meet the printing requirements even after frequency reduction and density adjustment, the system will issue an alarm to remind the user to replenish paper or take other measures. This processing method avoids frequent alarms, improves the intelligence level of the system and user experience. By setting the target printing density, it is ensured that the printer can still work and complete the data printing task as much as possible under the condition of limited paper amount, while avoiding key data loss.
[0130] In some specific embodiments, the preset alarm threshold can be set to a fixed value of the difference between the total required paper amount and the remaining paper amount, such as 10 centimeters. In step S32, when the calculated paper amount difference is greater than 10 centimeters, the system issues a paper amount alarm; conversely, if the paper amount difference is less than or equal to 10 centimeters, the system will automatically execute step S33.
[0131] The improvement of the printing density can be achieved by increasing the number of characters printed per line or reducing the line spacing. For example, the initial printing density is 40 characters per line, and the improved printing density can be 50 characters per line.
[0132] In step S33, when the total required paper amount recalculated after increasing the printing density is still greater than the remaining paper amount, the system can issue a high-level paper amount warning again, such as an audible and visual warning, to attract the user's high attention and force waiting for the user to intervene, such as replenishing paper. Through the setting of the above specific parameters and the processing flow, the problem of insufficient paper amount that may occur during the data printing of the incubator can be effectively addressed, ensuring the continuity and integrity of data printing.
[0133] Refer to the appendix Figure 3 The present invention provides an incubator data printing method, which is applied to an incubator data printing system. The incubator data printing system includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine is integrated with a sensor and a printer. The sensor is used to measure the specified parameters of the incubator, and the specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper.
[0134] The incubator data printing method includes the following steps:
[0135] S1. Obtain the actual transportation duration.
[0136] S2. Compare the actual transportation duration with the preset planned transportation duration. When the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency.
[0137] S3. Compare the total required paper amount with the remaining paper amount of the printer. When the total required paper amount is greater than the remaining paper amount, issue a warning and wait for a downsampling instruction. Otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency or wait for an upsampling instruction.
[0138] S4. After receiving the downsampling instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency.
[0139] S5. After receiving the upsampling instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency.
[0140] S6. After obtaining the sensing data according to the target sampling frequency, control the printer to print the sensing data on paper.
[0141] In some embodiments, the specific steps in step S2 include:
[0142] S21. Obtain the specified parameters of the incubator in real time, and continuously detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and the relevant abnormal data is recorded; the abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value.
[0143] S22. Calculate the basic required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency.
[0144] S23. Based on the preset printing priority of abnormal data, calculate the additional required paper amount for printing the abnormal data according to the recorded abnormal data.
[0145] S24. Add the basic required paper amount and the additional required paper amount to obtain the total required paper amount for printing all sensing data.
[0146] In some embodiments, the specific steps in step S21 include:
[0147] S211. Obtain the specified parameters of the incubator in real time, and calculate the difference between two adjacent sampling points of the same specified parameter.
[0148] S212. Divide the specified parameter difference by the sampling time interval to obtain the change rate of the specified parameters.
[0149] S213. Determine whether the absolute value of the change rate of the specified parameters exceeds the preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation.
[0150] S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of continuous sampling points exceeding the preset threshold by the sampling time interval, and the maximum specified parameter difference during the abnormal fluctuation.
[0151] In some embodiments, the specific steps in step S3 include:
[0152] S31. Compare the total required paper amount with the remaining paper amount of the printer. If the total required paper amount is greater than the remaining paper amount, execute step S32; otherwise, keep the initial sampling frequency unchanged and use it as the target sampling frequency, or wait for the upsampling instruction.
[0153] S32. Determine whether the difference between the total required paper amount and the remaining paper amount exceeds the preset alarm threshold. If it exceeds the preset alarm threshold, issue an alarm and wait for the downsampling instruction; otherwise, execute step S33.
[0154] S33. Increase the printing density and recalculate the total required paper amount according to the increased printing density. If the recalculated total required paper amount is less than or equal to the remaining paper amount, use the current printing density as the target printing density; otherwise, issue an alarm and wait for a frequency reduction instruction. The target printing density is used to control the printer to print the sensing data measured by the sensor on the paper according to the target printing density when executing step S6.
[0155] Please refer to Figure 4 , Figure 4 A data printing device for an incubator in some embodiments of the present invention is applied to an incubator data printing system. The data printing device for an incubator is integrated in a backend control device in the form of a computer program. The incubator data printing system includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine is integrated with a sensor and a printer. The sensor is used to measure specified parameters of the incubator, and the specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on the paper.
[0156] The data printing device for an incubator includes:
[0157] An acquisition module 100 for acquiring the actual transportation duration.
[0158] A calculation module 200 for comparing the actual transportation duration with a preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculating the total required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency.
[0159] A control module 300 for comparing the total required paper amount with the remaining paper amount of the printer, and when the total required paper amount is greater than the remaining paper amount, issuing an alarm and waiting for a frequency reduction instruction; otherwise, maintaining the initial sampling frequency unchanged and using it as the target sampling frequency, or waiting for a frequency increase instruction.
[0160] A frequency reduction module 400 for reducing the initial sampling frequency and using the reduced frequency as the target sampling frequency after receiving a frequency reduction instruction.
[0161] A frequency increase module 500 for increasing the initial sampling frequency and using the increased frequency as the target sampling frequency after receiving a frequency increase instruction.
[0162] A printing module 600 for controlling the printer to print the sensing data on the paper after recording the sensing data according to the target sampling frequency.
[0163] In some embodiments, when the calculation module 200 is used to compare the actual transportation duration with a preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency, it executes:
[0164] S21. Obtain the specified parameters of the incubator in real time, and continuously detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and the relevant abnormal data is recorded. The abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value;
[0165] S22. Calculate the basic required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency;
[0166] S23. Based on the preset printing priority of abnormal data, calculate the additional required paper amount for printing abnormal data according to the recorded abnormal data;
[0167] S24. Add the basic required paper amount and the additional required paper amount to obtain the total required paper amount for printing all sensing data.
[0168] In some embodiments, when the calculation module 200 is used to obtain the specified parameters of the incubator in real time, and continuously detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and the relevant abnormal data is recorded, it executes:
[0169] S211. Obtain the specified parameters of the incubator in real time, and calculate the difference between two adjacent sampling points of the same specified parameter;
[0170] S212. Divide the specified parameter difference by the sampling time interval to obtain the change rate of the specified parameters;
[0171] S213. Determine whether the absolute value of the change rate of the specified parameters exceeds the preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation;
[0172] S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of continuous sampling points exceeding the preset threshold by the sampling time interval, and the maximum specified parameter difference during the abnormal fluctuation.
[0173] In some embodiments, when the control module 300 is used to compare the total required paper amount with the remaining paper amount of the printer, and when the total required paper amount is greater than the remaining paper amount, issue an alarm and wait for a downsampling instruction, otherwise maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for an upsampling instruction, it executes:
[0174] S31. Compare the total required paper amount with the remaining paper amount of the printer. If the total required paper amount is greater than the remaining paper amount, execute step S32, otherwise maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for an upsampling instruction;
[0175] S32. Determine whether the difference between the total required paper amount and the remaining paper amount exceeds a preset alarm threshold. If it exceeds the preset alarm threshold, issue an alarm and wait for a frequency reduction instruction; otherwise, execute step S33;
[0176] S33. Increase the printing density, and recalculate the total required paper amount according to the increased printing density. If the recalculated total required paper amount is less than or equal to the remaining paper amount, use the current printing density as the target printing density; otherwise, issue an alarm and wait for a frequency reduction instruction; The target printing density is used to control the printer to print the sensed data measured by the sensor on the paper according to the target printing density when step S6 is executed.
[0177] Please refer to Figure 5 , Figure 5 FIG. [FIG. number not provided in the original] is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The present invention provides an electronic device 13, including: a processor 1301 and a memory 1302. The processor 1301 and the memory 1302 are interconnected and communicate with each other through a communication bus 1303 and / or other forms of connection mechanisms (not marked). The memory 1302 stores computer-readable instructions executable by the processor 1301. When the electronic device runs, the processor 1301 executes the computer-readable instructions to execute the insulation box data printing method in any optional implementation manner of the above embodiment to achieve the following functions: obtain the actual transportation duration; compare the actual transportation duration with the preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all sensed data according to the actual transportation duration and the initial sampling frequency; compare the total required paper amount with the remaining paper amount of the printer, and when the total required paper amount is greater than the remaining paper amount, issue an alarm and wait for a frequency reduction instruction; otherwise, keep the initial sampling frequency unchanged and use it as the target sampling frequency, or wait for a frequency increase instruction; after receiving a frequency reduction instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency; after receiving a frequency increase instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency; after recording the sensed data according to the target sampling frequency, control the printer to print the sensed data on the paper.
[0178] Note: There seems to be a missing figure number in the text for item . Also, the reference in is not fully clear as no specific reference is provided in the original. The translation is done as accurately as possible based on the given text.An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it executes the insulation box data printing method in any optional implementation manner of the above embodiment to achieve the following functions: obtaining the actual transportation duration; comparing the actual transportation duration with a preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculating the total amount of paper required to print all sensing data according to the actual transportation duration and the initial sampling frequency; comparing the total amount of paper required with the remaining paper amount of the printer, and when the total amount of paper required is greater than the remaining paper amount, issuing an alarm and waiting for a down-frequency instruction, otherwise maintaining the initial sampling frequency unchanged as the target sampling frequency, or waiting for an up-frequency instruction; after receiving the down-frequency instruction, reducing the initial sampling frequency and using the reduced frequency as the target sampling frequency; after receiving the up-frequency instruction, increasing the initial sampling frequency and using the increased frequency as the target sampling frequency; after recording the sensing data according to the target sampling frequency, controlling the printer to print the sensing data on paper.
[0179] Among them, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, abbreviated as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviated as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, abbreviated as EPROM), programmable read-only memory (Programmable Red-Only Memory, abbreviated as PROM), read-only memory (Read-Only Memory, abbreviated as ROM), magnetic memory, flash memory, magnetic disk or optical disc.
[0180] In the embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0181] In addition, the units described as separation components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] Furthermore, in each embodiment of the present invention, the functional modules may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
[0183] In this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0184] The above are only the embodiments of the present invention and are not used to limit the protection scope of the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data printing system for an incubator, characterized in that, It includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine integrates a sensor and a printer. The sensor is used to measure specified parameters of the incubator. The specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper; The all-in-one machine is used to perform the following steps: S1. Obtain the actual transportation duration; S2. Compare the actual transportation duration with a preset planned transportation duration. When the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all the sensing data based on the actual transportation duration and the initial sampling frequency; S3. Compare the total required paper amount with the remaining paper amount of the printer. When the total required paper amount is greater than the remaining paper amount, issue an alarm and wait for a frequency reduction instruction. Otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for a frequency increase instruction; S4. After receiving the frequency reduction instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency; S5. After receiving the frequency increase instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency; S6. After obtaining the sensing data according to the target sampling frequency, control the printer to print the sensing data on paper; When the all-in-one machine is used to perform step S2, it performs: S21. Continuously obtain the specified parameters of the incubator and constantly detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and record the relevant abnormal data; the abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value; S22. Calculate the basic required paper amount for printing all the sensing data based on the actual transportation duration and the initial sampling frequency; S23. Based on a preset abnormal data printing priority, calculate the additional required paper amount for printing the abnormal data according to the recorded abnormal data; S24. Add the basic required paper amount and the additional required paper amount to obtain the total required paper amount for printing all the sensing data.
2. The incubator data printing system according to claim 1, characterized in that, When the all-in-one machine is used to perform step S21, it performs: S211. Continuously obtain the specified parameters of the incubator and calculate the difference between two adjacent sampling points of the same specified parameter; S212. Divide the specified parameter difference by the sampling time interval to obtain the specified parameter change rate; S213. Determine whether the absolute value of the specified parameter change rate exceeds the preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation; S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of consecutive sampling points exceeding the preset threshold by the sampling time interval, and the maximum specified parameter difference during the abnormal fluctuation.
3. The incubator data printing system according to claim 1, wherein, When the all-in-one machine is used to perform step S3, it performs: S31. Compare the total required paper amount with the remaining paper amount of the printer. If the total required paper amount is greater than the remaining paper amount, execute step S32; otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for an up-frequency instruction. S32. Determine whether the difference between the total required paper amount and the remaining paper amount exceeds a preset warning threshold. If it exceeds the preset warning threshold, issue a warning and wait for a down-frequency instruction; otherwise, execute step S33. S33. Increase the printing density, and recalculate the total required paper amount according to the increased printing density. If the recalculated total required paper amount is less than or equal to the remaining paper amount, use the current printing density as the target printing density; otherwise, issue a warning and wait for a down-frequency instruction. The target printing density is used to control the printer to print the sensing data measured by the sensor on the paper according to the target printing density when executing step S6.
4. A method for printing incubator data, which is applied to an incubator data printing system, is characterized in that, The incubator data printing system includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine integrates a sensor and a printer. The sensor is used to measure specified parameters of the incubator. The specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on the paper. The incubator data printing method includes the following steps: S1. Obtain the actual transportation duration. S2. Compare the actual transportation duration with a preset planned transportation duration. When the actual transportation duration is greater than the planned transportation duration, calculate the total required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency. S3. Compare the total required paper amount with the remaining paper amount of the printer. When the total required paper amount is greater than the remaining paper amount, issue a warning and wait for a down-frequency instruction; otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for an up-frequency instruction. S4. After receiving the down-frequency instruction, reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency. S5. After receiving the up-frequency instruction, increase the initial sampling frequency and use the increased frequency as the target sampling frequency. S6. After recording the sensing data according to the target sampling frequency, control the printer to print the sensing data on the paper. The specific steps in step S2 include: S21. Obtain the specified parameters of the incubator in real time, and continuously detect whether the change rate of the specified parameters exceeds a preset threshold. If the change rate of the specified parameters exceeds the preset threshold, determine that there is an abnormal fluctuation and record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value. S22. Calculate the basic required paper amount for printing all sensing data according to the actual transportation duration and the initial sampling frequency. S23. Calculate the additional required paper amount for printing abnormal data based on the preset abnormal data printing priority according to the recorded abnormal data. S24. Add the basic required paper amount and the additional required paper amount to obtain the total required paper amount for printing all sensing data.
5. The method for printing incubator data according to claim 4, characterized in that The specific steps in step S21 include: S211. Obtain the specified parameters of the incubator in real time, and calculate the difference between two adjacent sampling points of the same specified parameter; S212. Divide the specified parameter difference by the sampling time interval to obtain the specified parameter change rate; S213. Determine whether the absolute value of the specified parameter change rate exceeds a preset threshold. If it exceeds, it is determined that there is an abnormal fluctuation; S214. If it is determined that there is an abnormal fluctuation, record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs, the corresponding specified parameter value, the duration of the abnormal fluctuation obtained by multiplying the number of continuous sampling points exceeding the preset threshold by the sampling time interval, and the maximum specified parameter difference during the abnormal fluctuation.
6. A data printing device for an incubator, applied to an incubator data printing system, characterized in that The incubator data printing system includes an incubator and an all-in-one machine installed on the incubator. The all-in-one machine is integrated with a sensor and a printer. The sensor is used to measure the specified parameters of the incubator. The specified parameters are recorded as sensing data according to a preset initial sampling frequency. The printer is used to print the sensing data on paper; The incubator data printing device includes: An acquisition module, used to acquire the actual transportation duration; A calculation module, used to compare the actual transportation duration with a preset planned transportation duration. When the actual transportation duration is greater than the planned transportation duration, calculate the total amount of paper required to print all sensing data according to the actual transportation duration and the initial sampling frequency; A control module, used to compare the total amount of paper required with the remaining paper amount of the printer. When the total amount of paper required is greater than the remaining paper amount, issue an alarm and wait for a downsampling instruction. Otherwise, maintain the initial sampling frequency unchanged as the target sampling frequency, or wait for an upsampling instruction; A downsampling module, used to reduce the initial sampling frequency and use the reduced frequency as the target sampling frequency after receiving the downsampling instruction; An upsampling module, used to increase the initial sampling frequency and use the increased frequency as the target sampling frequency after receiving the upsampling instruction; A printing module, used to control the printer to print the sensing data on paper after recording the sensing data according to the target sampling frequency; When the calculation module is used to compare the actual transportation duration with a preset planned transportation duration, and when the actual transportation duration is greater than the planned transportation duration, calculate the total amount of paper required to print all sensing data according to the actual transportation duration and the initial sampling frequency, it executes: S21. Obtain the specified parameters of the incubator in real time, and continuously detect whether the specified parameter change rate exceeds a preset threshold. If the specified parameter change rate exceeds the preset threshold, it is determined that there is an abnormal fluctuation, and record the relevant abnormal data. The abnormal data includes the time point when the abnormal fluctuation occurs and the corresponding specified parameter value; S22. Calculate the basic amount of paper required to print all sensing data according to the actual transportation duration and the initial sampling frequency; S23. Based on a preset abnormal data printing priority, calculate the additional amount of paper required to print the abnormal data according to the recorded abnormal data; S24. Add the basic amount of paper required and the additional amount of paper required to obtain the total amount of paper required to print all sensing data.
7. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the incubator data printing method according to any one of claims 4-5 are run.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps in the incubator data printing method according to any one of claims 4-5 are run.
Citation Information
Patent Citations
Printer paper amount monitoring method applied to self-service terminal
CN109353130A
Adaptive sampling
CN111417525A