Intelligent terminal synchronization method and system for real-time updating of meat inventory
Through the intelligent terminal synchronization method, the error values of the primary and secondary target ports are calculated and compensated, real-time updates and dynamic priority adjustments of meat inventory are realized, and the problems of response lag and error accumulation in traditional systems are solved, and the real-time and reliability of inventory management are improved.
Patent Information
- Application Number
- CN202510668893.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-05-23
AI Technical Summary
Traditional meat warehousing management systems have problems such as lagging response, error accumulation and resource allocation, especially in terms of inventory updates and multi-target port priority management, it is difficult to meet the needs of real-time, accuracy and multi-port collaboration.
Provide an intelligent terminal synchronization method for real-time update of meat inventory. By calculating the first error value of the first-level target port and the second error value of the second-level target port, error chain compensation and dynamic priority adjustment are realized to ensure the synchronization of inventory instructions and physical operations.
Effectively eliminate timing deviations caused by network delay and equipment heterogeneity, improve the real-time and reliability of meat inventory management, ensure that the status of all levels of the warehousing system is strictly consistent, and avoid the risks of "oversold" or "out of stock".
Smart Images

Figure CN120198057A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inventory management, and particularly to an intelligent terminal synchronization method and system for real-time updating of meat inventory. Background Art
[0002] In traditional meat warehousing management systems, inventory updates usually rely on manual records or single-layer automated devices, suffering from problems such as response lag, error accumulation, and rigid resource allocation.
[0003] For example, when a user initiates an inventory call request, due to network latency, device heterogeneity, and the lack of a multi-level port coordination mechanism, it often leads to inconsistent instruction transmission timestamps and difficult-to-dynamically-compensate secondary port response deviations, thus causing the inventory data to be out of sync with the actual goods status.
[0004] In addition, existing technologies mostly adopt a fixed weight strategy for the priority division of multiple target ports, which cannot be dynamically adjusted according to real-time errors and environmental parameters, resulting in high-priority tasks being possibly delayed due to local error accumulation, affecting the warehousing scheduling efficiency. Especially in the meat warehousing scenario, where the inventory categories are complex and the timeliness requirements are high, the static management mode of existing systems is difficult to meet the real-time, accuracy, and multi-port coordination requirements. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide an intelligent terminal synchronization method and system for real-time updating of meat inventory, which can realize an intelligent terminal synchronization method with error chain compensation, dynamic priority adjustment, and multi-level status synchronization, so as to improve the real-time performance and reliability of meat inventory management.
[0006] The present invention provides an intelligent terminal synchronization method for real-time updating of meat inventory, including: The intelligent terminal obtains a call request issued by a user and generates a call instruction according to the call request. The call instruction includes a primary target port, a secondary target port, call item parameters, and the timestamp when the call request is issued; Send the call instruction to the primary target port, and obtain a call instruction receipt. Determine a first error value on the primary target port side according to the relevant parameters of the call instruction and the call instruction receipt, and update the timestamp when the call instruction receipt is issued according to the first error value; Send the call instruction receipt to multiple secondary target ports. After receiving the call instruction receipt, the secondary target ports determine a second error value on the secondary target port side in combination with the first error value and upload it to the intelligent terminal; The intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, and creates multiple call orders in sequence based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once. Calculate the primary priority of the call order based on the secondary priority of the call order, the call item parameters, and the same-category item parameters of the primary target port. Send the call orders to the primary target port in sequence based on the primary priority and the first error value, and synchronously update the parameter status of the primary target port.
[0007] In one embodiment, the intelligent terminal obtains a call request issued by a user and generates a call instruction according to the call request, including: The intelligent terminal obtains an input signal of the call request issued by the user through an input device; Parse the call request according to the type of the input signal to obtain a general parsing result; Perform encapsulation processing on the general parsing result to generate a standardized call instruction.
[0008] In one embodiment, the determining the first error value on the primary target port side according to the call instruction and the relevant parameters of the call instruction receipt includes: Extract the call item parameters and the timestamp parameter of the call request from the call instruction and the call instruction receipt, compare the two parameters, and determine the network path between the intelligent terminal and the primary target port; Determine the expected response time on the primary target port side based on a preset error calculation formula; Calculate the first error value on the primary target port side based on the expected response time and the actual response time, and perform normalization processing on the first error value; Substitute the processed first error value into a preset first error value calculation formula, and update the first error value calculation formula.
[0009] In one embodiment, the sending the call instruction receipt to multiple secondary target ports and updating the sending timestamp of the call instruction receipt according to the first error value includes: Copy the call instruction receipt into multiple copies, encapsulate them into formats suitable for each secondary target port respectively, and send them to the multiple secondary target ports in parallel; Calculate the expected time compensation amounts on the sides of multiple secondary target ports based on the first error value; Dynamically correct the sending timestamp of the call instruction receipt based on the expected time compensation amounts.
[0010] In one embodiment, after receiving the call instruction receipt, the secondary target port determines the second error value on the secondary target port side in combination with the first error value, including: Correct the second error value calculation formula according to the first error value and the associated parameters of the secondary target port; Obtain the execution environment indicators of the secondary target port, and compare the local reception timestamp of the secondary target port with the issued timestamp in the call instruction receipt; Obtain the actual elapsed time for processing the call instruction through the comparison, and compare it with the expected elapsed time of the call instruction to obtain the original deviation; Substitute the original deviation into the corrected second error value calculation formula to obtain the second error value.
[0011] In one embodiment, the intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, including: Establish a mapping relationship between the call instruction, the second error value and the secondary target port; Divide the weights of the call instructions by using the preset indicators of the secondary target port; Use the preset correction formula to correct and sort the divided weights as the secondary priority.
[0012] In one embodiment, multiple call orders are created in sequence based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once, including: Create a pending queue in descending order of the secondary priority, and allocate resource quotas for each secondary target port; Create multiple call orders based on the pending queue and the resource quotas, and at the same time update the status parameters of the remaining secondary target ports.
[0013] In one embodiment, the primary priority of the call order is calculated according to the secondary priority of the call order, the call item parameters and the same category item parameters of the primary target port, including: Normalize the secondary priority of the call order, the call item parameters and the same category item parameters of the primary target port, and generate a composite feature; Construct an adaptive weight matrix, substitute the composite feature, and calculate the primary priority of the call order.
[0014] In one embodiment, the call orders are sequentially sent to the primary target port based on the primary priority and the first error value, and the parameter status of the primary target port is synchronously updated, including: Substitute the first error value into multiple call orders obtained in descending order of the primary priority, and correct the issued timestamp of the call order; Send the corrected call orders to the primary target ports in sequence, and synchronously update the parameter status of the primary target ports.
[0015] The present invention also provides an intelligent terminal synchronization system for real-time update of meat inventory, which is applied to the intelligent terminal synchronization method for real-time update of meat inventory described in any one of the above embodiments, and includes: A call instruction generation module, the intelligent terminal obtains a call request issued by a user, and generates a call instruction according to the call request, where the call instruction includes a target port, call item parameters, and a time stamp when the call request is issued; A first error calculation module, sends the call instruction to the primary target port, and obtains a call instruction receipt returned after the call instruction reaches the target port, and determines a first error value on the primary target port side according to relevant parameters of the call instruction and the call instruction receipt; A second error calculation module, sends the call instruction receipt to multiple secondary target ports, and updates the time stamp when the call instruction receipt is issued according to the first error value. After receiving the call instruction receipt, the secondary target port determines a second error value on the secondary target port side in combination with the first error value, and uploads it to the intelligent terminal; A least significant bit first processing module, the intelligent terminal determines the least significant bit priority of the secondary target port according to the call instruction and the second error value, and sequentially creates multiple call orders based on the least significant bit priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once; A most significant bit first processing module, calculates the most significant bit priority of the call order according to the least significant bit priority of the call order, call item parameters, and the same category item parameters of the primary target port, and sequentially sends the call orders to the primary target port based on the most significant bit priority and the first error value, and synchronously updates the parameter status of the primary target port.
[0016] The above intelligent terminal synchronization method and system for real-time update of meat inventory effectively eliminate the timing deviation caused by network latency and device heterogeneity by calculating the first error value of the primary target port and dynamically correcting the time stamp, and then compensating with the second error value of the secondary target port, ensuring strict synchronization between inventory instructions and physical operations; based on a two-layer sorting strategy of least significant bit priority and most significant bit priority, realizing flexible scheduling of call orders; at the same time, by parsing the user request into a standardized instruction including primary / secondary port identifiers, item parameters, and time stamps, the method can be compatible with different warehousing devices and communication protocols, reducing the system deployment complexity, especially suitable for the collaborative scenario of multi-brand cold storage equipment; and each time a call order is generated, the intelligent terminal immediately updates the parameter status of the secondary port, and refreshes the global inventory data when the order is finally synchronized to the primary port, ensuring that the status of each layer of the warehousing system is strictly consistent, and avoiding the risks of "overselling" or "out of stock". Brief Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0018] Figure 1 It is a flowchart of the intelligent terminal synchronization method for real-time update of meat inventory provided by the present invention; Figure 2 It is a framework diagram of the intelligent terminal synchronization system for real-time update of meat inventory provided by the present invention. Detailed Embodiments
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0020] As Figure 1 shown, in one embodiment, an intelligent terminal synchronization method for real-time update of meat inventory includes the following steps: The intelligent terminal obtains a call request sent by the user and generates a call instruction according to the call request. The call instruction includes a primary target port, a secondary target port, call item parameters, and the timestamp when the call request is sent.
[0021] Send the call instruction to the primary target port, and obtain a call instruction receipt. Determine the first error value on the primary target port side according to the relevant parameters of the call instruction and the call instruction receipt, and update the timestamp when the call instruction receipt is sent according to the first error value.
[0022] Send the call instruction receipt to multiple secondary target ports. After receiving the call instruction receipt, the secondary target ports determine the second error value on the secondary target port side in combination with the first error value and upload it to the intelligent terminal.
[0023] The intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, and sequentially creates multiple call orders based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once.
[0024] Calculate the first priority of the call order based on the secondary priority of the call order, the call item parameters, and the same-category item parameters of the primary target port. Send the call order to the primary target port successively based on the first priority and the first error value, and synchronously update the parameter status of the primary target port.
[0025] The above intelligent terminal synchronization method for real-time update of meat inventory effectively eliminates the timing deviation caused by network latency and device heterogeneity by calculating the first error value of the primary target port and dynamically correcting the time stamp, and then compensating with the second error value of the secondary target port, ensuring the strict synchronization of inventory instructions and physical operations; based on the double-layer sorting strategy of secondary priority (secondary port weight) and first priority (comprehensive item parameters and primary port status), realizes the flexible scheduling of call orders; at the same time, by parsing the user request into a standardized instruction including primary / secondary port identifiers, item parameters and time stamps, this method can be compatible with different warehousing devices and communication protocols, reducing the system deployment complexity, especially suitable for the collaborative scenario of multi-brand cold storage equipment; and each time a call order is generated, the intelligent terminal immediately updates the parameter status of the secondary port (such as inventory balance, occupancy flag), and refreshes the global inventory data when the order is finally synchronized to the primary port, ensuring the strict consistency of the status of all levels of the warehousing system and avoiding the risks of "overselling" or "out of stock".
[0026] In one embodiment, the intelligent terminal obtains a call request issued by a user and generates a call instruction according to the call request, including the following steps: The intelligent terminal obtains the input signal of the call request issued by the user through the input device.
[0027] Parse the call request according to the type of the input signal to obtain a general parsing result.
[0028] Perform encapsulation processing on the general parsing result to generate a standardized call instruction.
[0029] Specifically, the user initiates an operation through an input device supported by the intelligent terminal (such as a touch screen, a voice assistant, a physical button, a barcode scanner, etc.).
[0030] For example, in the scenario of meat inventory management, the user may scan the product barcode with a barcode scanner, or click the "Inventory Transfer" button on the touch screen, or say "Query beef inventory" through a voice command. The input device converts the user's operation into an original signal (such as an electrical signal, digital coding, audio waveform, etc.) and transmits it to the central processing unit of the intelligent terminal; the input management module of the intelligent terminal automatically identifies the input type according to the signal source; if the signal format is abnormal (such as a failed barcode scan or unclear voice), the terminal will trigger an error prompt (such as "Please scan again") and wait for the user to re-enter; the parsing module converts the original signal into an instruction intention understandable by the system according to the input type and preset business rules; the protocol encapsulation module of the intelligent terminal converts the general parsing result into a standard format compatible with the internal or external interfaces of the system.
[0031] In one embodiment, determining a first error value on the first-level target port side according to the call instruction and relevant parameters of the call instruction receipt includes the following steps: Extract the call item parameters and the timestamp parameter of the call request from the call instruction and the call instruction receipt, and compare the two parameters to determine the network path between the intelligent terminal and the first-level target port.
[0032] Specifically, extract the timestamp when the call instruction is issued and the receipt timestamp Calculate the actual response time:
[0033] Determine the expected response time on the first-level target port side based on a preset error calculation formula.
[0034] Specifically, the preset error calculation formula is the exponentially weighted moving average (EWMA) model:
[0035] where is the expected response time calculated based on the exponentially weighted moving average model, is the previously calculated expected response time, is the smoothing factor of the exponentially weighted moving average model, which takes a value of 0.2 in this embodiment.
[0036] Calculate the first error value on the first-level target port side based on the expected response time and the actual response time, and normalize the first error value.
[0037] Specifically, the calculation formula for the first error value is:
[0038] Substitute the processed first error value into the preset first error value calculation formula and update the first error value calculation formula.
[0039] Specifically, dynamically update for the current to achieve self - calibration of the first error value calculation formula.
[0040] In one embodiment, send the call instruction receipt to multiple secondary target ports and update the issuance timestamp of the call instruction receipt according to the first error value, including the following steps: Copy the call instruction receipt into multiple copies, encapsulate them into formats suitable for each secondary target port respectively, and send them to multiple secondary target ports in parallel.
[0041] Calculate the expected time compensation amounts on the sides of multiple secondary target ports based on the first error value.
[0042] Specifically, the calculation formula for the time compensation amount is:
[0043] Where is the time compensation amount, is the network distance between the i - th secondary target port and the primary target port, and this part can be obtained by IP address resolution.
[0044] Dynamically correct the issuance timestamp of the call instruction receipt based on the expected time compensation amount.
[0045] Specifically, the dynamic correction formula for the timestamp is:
[0046] Where is the corrected receipt timestamp of the i - th secondary target port, is the instruction sending timestamp of the i - th secondary target port.
[0047] In one embodiment, after receiving the call instruction receipt, the secondary target port determines the second error value on the side of the secondary target port in combination with the first error value, including the following steps: Correct the second error value calculation formula according to the first error value and the associated parameters of the secondary target port.
[0048] Specifically, the corrected second error value calculation formula is:
[0049] Where is the expected time consumption, is the environmental impact coefficient, which takes a value of 0.5 in this embodiment and is used to correct the impact of inventory saturation on the error. is the inventory saturation of the secondary target port ( ), where 0 indicates an empty warehouse and 1 indicates a full warehouse.
[0050] Obtain the execution environment indicators of the secondary target port, and compare the local reception timestamp of the secondary target port with the sending timestamp in the call instruction receipt.
[0051] Obtain the actual elapsed time for processing the call instruction through the comparison, and compare it with the expected elapsed time of the call instruction to obtain the original deviation.
[0052] Specifically, obtain the execution environment indicators (such as temperature, network load) through sensors, calculate the actual elapsed time, and then calculate the original deviation:
[0053] Substitute the original deviation into the corrected second error value calculation formula to obtain the second error value.
[0054] Specifically, after calculating the original deviation, substitute the original deviation into the corrected second error value calculation formula to obtain , and upload it to the intelligent terminal.
[0055] In one embodiment, the intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, including the following steps: Establish a mapping relationship between the call instruction, the second error value, and the secondary target port.
[0056] Use the preset indicators of the secondary target port to divide the weights of the call instructions.
[0057] Specifically, define the indicator set .
[0058] It should be noted that the weight assignment formula is:
[0059] where is the basic weight value of the i-th secondary target port, is the inventory quantity of the i-th secondary target port, is the remaining shelf life of the items in the i-th secondary target port, is the inventory quantity indicator weight, which takes the value of 0.4 in this embodiment, is the inventory saturation indicator weight, which takes the value of 0.3 in this embodiment, is the remaining shelf life indicator weight, which takes the value of 0.3 in this embodiment.
[0060] The divided weights are corrected and sorted using a preset correction formula as the secondary priority.
[0061] Specifically, it is calculated using the following formula:
[0062] Wherein, is the secondary priority of the i-th secondary target port (the priority after considering error correction).
[0063] In one embodiment, multiple call orders are successively created based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once, including; A pending queue is created in descending order of the secondary priority, and resource quotas are assigned to each secondary target port.
[0064] Specifically, according to the above A pending queue is generated in descending order, resource quotas (such as the maximum number of concurrent orders) are assigned to each port, call orders are successively created, and the inventory status is updated.
[0065] Multiple call orders are created based on the pending queue and resource quotas, and at the same time, the status parameters of the remaining secondary target ports are updated.
[0066] In one embodiment, the primary priority of the call order is calculated based on the secondary priority of the call order, the call item parameters, and the same-category item parameters of the primary target port, including the following steps: The secondary priority of the call order, the call item parameters, and the same-category item parameters of the primary target port are normalized, and a composite feature is generated.
[0067] Specifically, for the secondary priority , the call quantity N, and the same-category inventory of the primary target port are normalized:
[0068]
[0069]
[0070] Composite feature vector:
[0071] Wherein, is the value of the normalized secondary priority, is the value of the normalized call quantity, N is the actual call quantity, is the value of the normalized same-category inventory of the primary target port, is the minimum value of the secondary priority, is the maximum value of the secondary priority, is the minimum value of the call quantity, is the maximum value of the call quantity, is the actual inventory quantity, is the minimum value of the same-category inventory of the primary target port, is the maximum value of the same-category inventory of the primary target port.
[0072] Construct an adaptive weight matrix, substitute the composite features, and calculate the first priority of the call order.
[0073] Specifically, the state-dependent Riccati equation (SDRE) technology is used to construct a dynamic weight matrix :
[0074] Among them, , and are all weight matrix adjustment coefficients (corresponding to the dynamic adjustments of inventory, call quantity, and secondary priority respectively, and taking values of 0.1, 0.05, and 0.2 in this embodiment).
[0075] The calculation formula for the first priority is:
[0076] Among them, is obtained by integrating the final priorities of the secondary priority, call quantity, and inventory, In one embodiment, based on the first priority and the first error value, the call orders are sequentially sent to the primary target port, and the parameter status of the primary target port is synchronously updated, including the following steps: Substitute the first error value into multiple call orders sorted in descending order based on the first priority, and correct the issuance timestamp of the call orders.
[0077] Specifically, the correction formula is as follows:
[0078] Among them, is the corrected order sending timestamp, is a random number with a value range between -1 and 1.
[0079] Send the corrected call orders to the primary target port in sequence, and synchronously update the parameter status of the primary target port.
[0080] According to Send the order to the primary target port in descending order, and synchronously update parameters such as inventory quantity and shelf life.
[0081] The intelligent terminal synchronization method for real-time update of the above meat inventory has the following process when applied: In the meat inventory management scenario of a certain chain supermarket, the intelligent terminal receives user operation requests through diverse input devices.
[0082] For example, the warehouse administrator uses a barcode scanner to scan the barcode on the beef packaging, triggering the "inventory transfer" instruction; or clicks the "query pork inventory of each store" button on the touch screen; or issues a voice instruction "apply to replenish 50 kg of mutton to store A" through the voice assistant.
[0083] The input device converts the user operation into a raw signal (such as the digital code generated by scanning, the electrical signal generated by touching, the audio waveform converted from voice), and transmits it to the central processing unit of the intelligent terminal.
[0084] The input management module of the terminal automatically identifies the signal type: if the barcode scanning fails (such as the barcode being damaged), the system pops up a prompt "please rescan the barcode"; if the voice instruction is recognized vaguely, it prompts "please re-enter the voice instruction".
[0085] The parsing module converts the raw signal into an instruction intention according to preset rules (such as barcode scanning corresponding to inventory query, touching corresponding to instruction selection, voice corresponding to order application), for example, "transfer 50 kg of mutton from the central warehouse to store A, with a validity period of 3 days". Finally, the protocol encapsulation module standardizes the instruction intention into a call instruction containing the following elements: Primary target port: central warehouse server address; Secondary target port: list of terminal devices such as store A, store B, etc.; Invoked item parameters: category (mutton), quantity (50 kg), shelf life requirement (≥3 days); Timestamp: the exact time when the instruction is issued (such as 10:00:00 on May 15, 2025).
[0086] The intelligent terminal sends a call instruction to the central warehouse (primary target port) and records the issued timestamp =10:00:00. After receiving the instruction, the central warehouse processes it and returns a receipt, and the terminal records the receipt reception timestamp =10:00:08, and calculates the actual response time (round-trip time) as 8 seconds.
[0087] The system uses the exponentially weighted moving average model (EWMA) to predict the expected response time: At the first communication, the initial expected value Set it to the measured value of 8 seconds; in each subsequent calculation, the expected value is calculated according to the formula = 0.8 × + 0.2 × and updated dynamically.
[0088] For example, if the next measured response time is 6 seconds, the new expected value is 0.8×8 + 0.2×6 = 7.6 seconds.
[0089] The first error value is calculated by the deviation rate between the actual response time and the expected value: , and the result is normalized to the interval [0, 1].
[0090] For example, when the measured value is 8 seconds and the expected value is 7.6 seconds, ≈ 0.053, indicating that the network delay error is 5.3%. After the calculation is completed, the system will be updated to the current (7.6 seconds) to achieve self-calibration of the error model.
[0091] The intelligent terminal copies the instruction receipt returned by the central warehouse into multiple copies, encapsulates them according to the system protocols of each store (secondary target ports) (for example, Store A uses the JSON format and Store B uses the XML format), and sends them through parallel network channels.
[0092] Since the network distances between each store and the central warehouse are different (obtained by IP address resolution, for example, Store A is 200 kilometers away and Store B is 100 kilometers away), the system calculates the time compensation amount according to the first error value: .
[0093] Taking the door as an example, seconds, the corrected receipt reception timestamp is = 10:00:08 + 0.75 = 10:00:08.75.
[0094] After each store terminal receives the corrected receipt, it calculates the second error value in combination with the local environment: First, compare the local actual receipt timestamp with the corrected sending timestamp to obtain the actual processing time (for example, the actual time consumed by Store A is 2 seconds); then compare it with the preset standard time consumption (for example, 1.5 seconds) to calculate the original deviation: . Combining the inventory saturation (for example, the mutton inventory saturation of Store A = 0.6) and the environmental impact coefficient = 0.5, the corrected second error value is: = 0.33×(1 + 0.5×0.6) = 0.43, and upload it to the intelligent terminal.
[0095] The intelligent terminal determines the secondary priority by comprehensively considering three indicators based on the call instruction parameters and the error value of the secondary target port: Inventory quantity ( ): The current mutton inventory in Store A is 80 kg , and after normalization, it is 0.8; Inventory saturation ( ): =0.6 (the value range is 0 ≤ Si ≤ 1); Remaining shelf life ( ): The average remaining shelf life of the existing inventory is 5 days, and after normalization, it is 0.6.
[0096] The basic weight is calculated according to the preset ratio: =0.4×0.8 + 0.3×0.6 + 0.3×0.6 = 0.7; Combined with the second error value =0.43, the secondary priority is: =0.7×0.57 = 0.399.
[0097] Each store is sorted in descending order of priority to generate a queue to be processed (e.g., Store A has the second priority and Store B has the first priority), and a resource quota is allocated to each store (e.g., the maximum number of concurrent orders is 3). Call orders are created in sequence and the inventory is deducted in real-time (e.g., after Store A creates 50 kg allocation orders, the inventory is updated to 30 kg ).
[0098] The intelligent terminal normalizes the secondary priority ( =0.399), the call quantity ( =50 kg ), and the central warehouse inventory ( =200 kg ): Normalization of the secondary priority: (Assume the minimum value is 0.2 and the maximum value is 0.5, then F sub = 0.66); Normalization of the call quantity: (Assume the minimum call volume is 10 kg , the maximum is 100 kg , then FN =0.5); Normalization of the central inventory: (Assume the minimum inventory is 100 kg , the maximum is 300 kg , then FQ =0.5).
[0099] Construct a dynamic weight matrix: .
[0100] The first priority is obtained through matrix operations: = 0.66×21 + 0.5×3.5 + 0.5×1.08 = 15.22.
[0101] When sending an order, the system sorts in descending order according to the first priority and introduces a random time perturbation to avoid network congestion: (such as the perturbation range is ±0.053 seconds).
[0102] After the order is sent to the central warehouse, the inventory quantity and shelf life information are updated in real time to complete the full-link inventory synchronization.
[0103] As Figure 2 shown, in one embodiment, an intelligent terminal synchronization system for real-time update of meat inventory, which is applied to the intelligent terminal synchronization method for real-time update of meat inventory in any of the above embodiments, includes: A call instruction generation module, the intelligent terminal obtains a call request issued by the user and generates a call instruction according to the call request. The call instruction includes a target port, call item parameters, and the timestamp when the call request is issued; A first error calculation module, sends the call instruction to the primary target port, and obtains a call instruction receipt returned after the call instruction reaches the target port. Determines the first error value on the primary target port side according to the relevant parameters of the call instruction and the call instruction receipt; A second error calculation module, sends the call instruction receipt to multiple secondary target ports, and updates the timestamp when the call instruction receipt is issued according to the first error value. The secondary target port determines the second error value on the secondary target port side in combination with the first error value after receiving the call instruction receipt and uploads it to the intelligent terminal; A secondary priority processing module, the intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, and creates multiple call orders in sequence based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once; A primary priority processing module, calculates the primary priority of the call order according to the secondary priority of the call order, call item parameters, and the same-category item parameters of the primary target port, and sends the call order to the primary target port in sequence based on the primary priority and the first error value, and synchronously updates the parameter status of the primary target port.
[0104] The intelligent terminal synchronization system for real-time updating of the above-mentioned meat inventory effectively eliminates the timing deviation caused by network latency and device heterogeneity by calculating the first error value of the primary target port and dynamically correcting the timestamp, and then compensating with the second error value of the secondary target port, ensuring strict synchronization between inventory instructions and physical operations; based on a two-layer sorting strategy of secondary priority (secondary port weight) and primary priority (combining item parameters and primary port status), it realizes elastic scheduling of call orders; at the same time, by parsing user requests into standardized instructions containing primary / secondary port identifiers, item parameters, and timestamps, this method can be compatible with different warehousing devices and communication protocols, reducing the complexity of system deployment, especially suitable for the collaborative scenario of multi-brand cold storage equipment; and each time a call order is generated, the intelligent terminal immediately updates the parameter status of the secondary port (such as inventory balance, occupancy flag), and refreshes the global inventory data when the order is finally synchronized to the primary port, ensuring strict consistency of the status of all levels of the warehousing system and avoiding the risks of "overselling" or "stockout".
[0105] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0106] The above-described embodiments merely represent several implementation manners of the present invention. The description is relatively specific and detailed, but it should not be construed as a limitation to the scope of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.
Claims
1. An intelligent terminal synchronization method for real-time update of meat inventory, characterized in that, Including: The intelligent terminal obtains a call request sent by a user, and generates a call instruction according to the call request. The call instruction includes a primary target port, a secondary target port, call item parameters, and a timestamp of the call request; Send the call instruction to the primary target port, and obtain a call instruction receipt. Determine a first error value on the primary target port side according to relevant parameters of the call instruction and the call instruction receipt, and update the timestamp of the call instruction receipt according to the first error value; Send the call instruction receipt to multiple secondary target ports. After receiving the call instruction receipt, the secondary target port determines a second error value on the secondary target port side in combination with the first error value, and uploads it to the intelligent terminal; The intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, and sequentially creates multiple call orders based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once; Calculate the primary priority of the call order according to the secondary priority of the call order, the call item parameters, and the same-category item parameters of the primary target port. Based on the primary priority and the first error value, sequentially send the call orders to the primary target port, and synchronously update the parameter status of the primary target port.
2. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 1, characterized in that The intelligent terminal obtains a call request sent by a user, and generates a call instruction according to the call request, including: The intelligent terminal obtains an input signal of a call request sent by a user through an input device; Parse the call request according to the type of the input signal to obtain a general parsing result; Perform encapsulation processing on the general parsing result to generate a standardized call instruction.
3. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 1, wherein The determining the first error value on the primary target port side according to relevant parameters of the call instruction and the call instruction receipt includes: Extract the call item parameters and the timestamp parameter of the call request from the call instruction and the call instruction receipt, compare the two parameters, and determine the network path between the intelligent terminal and the primary target port; Determine the expected response time on the primary target port side based on a preset error calculation formula; Calculate the first error value on the primary target port side based on the expected response time and the actual response time, and perform normalization processing on the first error value; Substitute the processed first error value into a preset first error value calculation formula, and update the first error value calculation formula.
4. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 1, characterized in that The sending the call instruction receipt to multiple secondary target ports and updating the timestamp of the call instruction receipt according to the first error value includes: Copy the call instruction receipt into multiple copies, respectively encapsulate them into formats suitable for each secondary target port, and send them to multiple secondary target ports in parallel; Calculate the expected time compensation amounts on the sides of multiple secondary target ports based on the first error value; Dynamically correct the timestamp of the call instruction receipt based on the expected time compensation amount.
5. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 4, characterized in that, The secondary target port determines the second error value on the secondary target port side in combination with the first error value after receiving the call instruction receipt, including: Correct the second error value calculation formula according to the first error value and the associated parameters of the secondary target port; Obtain the execution environment metrics of the secondary target port, and compare the local reception timestamp of the secondary target port with the issued timestamp in the call instruction receipt; Obtain the actual elapsed time for processing the call instruction through the comparison, and compare it with the expected elapsed time of the call instruction to obtain the original deviation; Substitute the original deviation into the corrected second error value calculation formula to obtain the second error value.
6. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 1, characterized in that, The intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, including: Establish a mapping relationship between the call instruction, the second error value and the secondary target port; Divide the weights of the call instructions by using the preset metrics of the secondary target port; Use the preset correction formula to correct and sort the divided weights as the secondary priority.
7. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 6, characterized in that, Based on the secondary priority, create multiple call orders in sequence. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once, including; Create a pending queue in descending order of the secondary priority, and allocate resources for each secondary target port; Create multiple call orders based on the pending queue and resource allocation, and simultaneously update the status parameters of the remaining secondary target ports.
8. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 1, characterized in that, The first priority of the call order is calculated according to the secondary priority of the call order, the call item parameters and the same-category item parameters of the primary target port, including: Normalize the secondary priority of the call order, the call item parameters and the same-category item parameters of the primary target port, and generate composite features; Construct an adaptive weight matrix, substitute the composite features, and calculate the first priority of the call order.
9. The intelligent terminal synchronization method for real-time update of meat inventory according to claim 8, characterized in that, Based on the first priority and the first error value, send the call orders to the primary target port in sequence, and synchronously update the parameter status of the primary target port, including: Substitute the first error value into multiple call orders obtained in descending order of the first priority, and correct the issued timestamp of the call order; Send the corrected call orders to the primary target port in sequence, and synchronously update the parameter status of the primary target port.
10. An intelligent terminal synchronization system for real-time update of meat inventory, which is applied to the intelligent terminal synchronization method for real-time update of meat inventory according to any one of claims 1 to 9 above, and is characterized in that, Including: Call instruction generation module. The intelligent terminal obtains the call request issued by the user and generates a call instruction according to the call request. The call instruction includes the target port, the call item parameters and the issued timestamp of the call request; First error calculation module. Send the call instruction to the primary target port, and obtain the call instruction receipt returned after the call instruction reaches the target port. Determine the first error value on the primary target port side according to the relevant parameters of the call instruction and the call instruction receipt; Second error calculation module. Send the call instruction receipt to multiple secondary target ports, and update the issued timestamp of the call instruction receipt according to the first error value. After receiving the call instruction receipt, the secondary target port determines the second error value on the secondary target port side in combination with the first error value and uploads it to the intelligent terminal; The secondary priority processing module. The intelligent terminal determines the secondary priority of the secondary target port according to the call instruction and the second error value, and successively creates multiple call orders based on the secondary priority. Whenever a call order is created, the intelligent terminal updates the parameter status of the current secondary target port once. The primary priority processing module calculates the primary priority of the call order based on the secondary priority of the call order, the call item parameters, and the same-category item parameters of the primary target port, and successively sends the call order to the primary target port based on the primary priority and the first error value, and synchronously updates the parameter status of the primary target port.
Citation Information
Patent Citations
Beidou high-precision intelligent navigation method and system
CN118962747A
Multi-node collaborative logistics data real-time synchronization method and system
CN119854319A
Time phase work pool management for returned inventory asset routing
US20090299881A1
Task queuing methodology for reducing traffic jam and to control transmission priority in an automatic material handling system
US7664561B1