Material matching method and server

By optimizing the material pairing process through the server, combinations with small size differences and high retention rates are selected for assembly, thus solving the problem of uneven assembly gaps caused by random pairing and improving the accuracy and efficiency of material assembly.

CN122155587APending Publication Date: 2026-06-05HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-12-03
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In the existing technology, the random matching method in the material matching process leads to uneven assembly gaps, which reduces the material assembly yield.

Method used

The system obtains material size and retention data from the server, determines N pairing combinations based on material pairing rules, and selects the combination with the smallest matching value for assembly. The material pairing process is optimized by combining retention degree and size difference.

Benefits of technology

It improves the accuracy and yield of material assembly, avoids materials from staying in the material warehouse for a long time, and improves assembly efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122155587A_ABST
    Figure CN122155587A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of material matching method and server, it is suitable for material matching technical field, wherein, material matching method includes: the size data of each material to be matched and retention data are acquired, retention data indicates the retention degree of material in material warehouse, retention data includes one or more of the following: retention duration, frequency of waiting for warehouse;Determine N kind of pairing combination based on material pairing rule;According to the size data and retention data of each material in each pairing combination, determine the matching value of the pairing combination, the matching value of the pairing combination is positively correlated with the size difference of each material in the pairing combination, the matching value of the pairing combination is negatively correlated with the retention degree of each material in the pairing combination;The pairing combination with minimum matching value in N kind of pairing combination is determined as target pairing combination, and the target pairing combination is the pairing combination of this time warehouse assembly.The embodiment of the application can improve the accuracy of pairing between materials, thereby improving material assembly yield.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of material matching technology, and in particular to a material matching method and server. Background Technology

[0002] Material matching refers to pairing and assembling different types of materials according to certain rules so that the assembled product meets production requirements. In practical applications, in order to achieve better product precision, there are relatively precise requirements for the assembly gaps between materials.

[0003] In related technologies, random matching is typically used during material matching. However, this random matching method is prone to issues such as large materials being matched with small materials or vice versa, resulting in larger assembly gaps and reduced material assembly yield. Summary of the Invention

[0004] In view of this, embodiments of this application provide a material matching method, a server, a computer-readable storage medium, a chip system, and a computer program product, which can improve the accuracy of matching between materials, thereby improving the material assembly yield.

[0005] Firstly, embodiments of this application provide a material matching method, which can be applied to a server. The server can be, but is not limited to, devices such as laptops, tablets, personal computers (PCs), virtual reality (VR) devices, web servers, cloud servers, and embedded devices. Embodiments of this application do not limit the type of server. The material matching method may include: First, the server can obtain the size data and retention data of each material among multiple materials to be matched. Then, the server can determine N matching combinations of the multiple materials based on material matching rules. Next, the server can determine the matching value of the first matching combination based on the size data and retention data of each material in the first matching combination. Finally, the server can determine the matching combination with the smallest matching value among the N matching combinations as the target matching combination, which is the matching combination to be assembled in this outbound shipment.

[0006] The retention data indicates the degree to which materials remain in the material warehouse. Retention data may include, but is not limited to, one or more of the following: retention duration and number of times materials are awaited for release. Retention duration indicates the length of time materials remain in the material warehouse, which can be the time interval from the moment the material enters the warehouse to the current moment. Number of times materials are awaited for release from the material warehouse indicates the number of times materials are waiting to be released.

[0007] Where N is a positive integer. The material pairing rule is a pre-defined rule for pairing materials. The material pairing rule can include the type of material and the quantity of each type. For example, the material pairing rule can be to pair a mobile phone battery cover (referred to as battery cover) with a mobile phone mid-frame (referred to as mid-frame). Further, if there are 8 materials to be matched, of which 3 are of type 1 and 5 are of type 2, and the material pairing rule is 1 type 1 material paired with 1 type 2 material, then the value of N can be 15, where 15 equals 3 multiplied by 5.

[0008] The first pairing combination is any one of the N pairing combinations. The matching value of the first pairing combination is positively correlated with the size difference of each material in the first pairing combination, and negatively correlated with the retention degree of each material in the first pairing combination. Understandably, the size difference of each material in the first pairing combination can be calculated from the size data of each material.

[0009] In this embodiment, since the matching value is positively correlated with the size difference of each material in the pairing combination and negatively correlated with the retention degree of each material in the pairing combination, that is, the target pairing combination is a pairing combination with small size differences between each material and large retention degree. Therefore, assembling the target pairing combination out of the warehouse can ensure the accuracy of material matching while avoiding long-term retention of materials in the material warehouse, thereby improving the material assembly yield.

[0010] In a first possible implementation of the first aspect, the server determines the matching value of the first pairing combination based on the size data and retention data of each material in the first pairing combination. This may include: First, the server determines the gap difference of the first pairing combination based on the size data of each material in the first pairing combination. Then, the server determines the target retention data of the first pairing combination based on the retention data of each material in the first pairing combination. Finally, the server determines the matching value of the first pairing combination based on the gap difference and the target retention data.

[0011] The gap difference of the first pairing combination is the absolute value of the difference between the first gap data and the expected gap data. The first gap data indicates the size of the gap that will be formed by the assembly of each material in the first pairing combination. The expected gap data indicates the size of the gap that needs to be formed by the assembly of each material in the first pairing combination. The gap that needs to be formed by the assembly of each material is the expected gap. The expected gap can also be called the assembly design gap or design gap. The design gap is the space reserved between materials to ensure that the materials can be correctly assembled, operate, and meet the expected functions.

[0012] The target retention data refers to the retention data corresponding to the paired combination. The target retention data indicates the retention level of the paired combination. As an example, the server can determine the retention data of any one material in a paired combination as the retention data (i.e., the target retention data) for that paired combination.

[0013] Specifically, the matching value of the first pairing combination is positively correlated with the gap difference of the first pairing combination, and negatively correlated with the target retention data of the first pairing combination. In other words, for each pairing combination, the smaller the gap difference of the pairing combination, the smaller the matching value of the pairing combination; and the larger the target retention data of the pairing combination, the smaller the matching value of the pairing combination.

[0014] Understandably, dimensional data can include one or more elements. For example, dimensional data can include one or more of the following: length, width, height, diameter, inner diameter, and outer diameter.

[0015] As an example, when the size data for each material includes multiple elements, the size data can be implemented as a vector. If there are two materials in each pairing combination, the server can calculate the gap data between the two paired materials as follows: the server can determine the gap data between the two materials by the absolute value of the difference between the two vectors.

[0016] Optionally, when there are more than two materials in a pairing combination, when calculating the gap data (i.e., the first gap data) corresponding to the pairing combination, the gap data between each pair of materials can be calculated first, and then the first gap data corresponding to the pairing combination can be calculated using the obtained multiple gap data. For example, the sum of multiple gap data can be determined as the gap data corresponding to the pairing combination.

[0017] In this embodiment, the gaps between multiple paired materials (referred to as assembly gaps) typically need to meet certain requirements. If the gaps are too large or too small, poor assembly gaps may occur. Generally, the smaller the difference between the assembly gap and the desired gap (or design gap), the better. This difference is reflected in the value of the gap difference. In other words, the smaller the gap difference between paired combinations, the better the assembly effect between the materials in that pair. Furthermore, since the matching value is positively correlated with the gap difference of paired combinations and negatively correlated with the retention degree of paired combinations, and the target paired combination is the pair with the smallest matching value—meaning it has a good assembly effect and a high retention degree—assembling the target paired combination out of the warehouse can further ensure the accuracy of material matching while avoiding long-term retention of materials in the material warehouse, thereby improving the material assembly yield.

[0018] In a second possible implementation of the first aspect, the server determines the target retention data of the first pairing combination based on the retention data of each material in the first pairing combination, which may include, but is not limited to, any one of the following methods one to three.

[0019] Method 1: Determine the maximum value among the retention data of each material in the first pairing as the target retention data of the first pairing. Method 2: Determine the average value among the retention data of each material in the first pairing as the target retention data of the first pairing. Method 3: Determine the sum of the retention data of each material in the first pairing as the target retention data of the first pairing.

[0020] The target retention data refers to the retention data corresponding to the paired combination. The target retention data can indicate the retention level of the entire paired combination.

[0021] In this embodiment of the application, for each pairing combination, the server can use the retention data of each material in the pairing combination to calculate the retention data corresponding to the entire pairing combination, which is the target retention data.

[0022] As an example, if the inventory retention data for each material includes the number of times it waits to be stored, and each pairing includes two materials, material one and material two, with material one having a waiting count of "first waiting count" and material two having a waiting count of "second waiting count," then, based on method one above, the target inventory retention data for the pairing is the maximum of the first and second waiting counts. Based on method two above, the target inventory retention data for the pairing is the average of the first and second waiting counts. Based on method three above, the target inventory retention data for the pairing is the sum of the first and second waiting counts.

[0023] As another example, if the retention data for each material includes the number of times it waits to be stored and the duration of its storage, the retention data can be represented as a vector containing the number of times it waits to be stored and the duration of its storage. If each pairing includes two materials, material one and material two, the retention data for material one can be represented as a first vector, and the retention data for material two can be represented as a second vector. In this case, based on method one above, the target retention data for the pairing is the maximum value between the first and second vectors. Based on method two above, the target retention data for the pairing is the average of the first and second vectors. Based on method three above, the target retention data for the pairing is the sum of the first and second vectors.

[0024] It is understood that the above-listed methods for determining the target retention data of pairing combinations are merely examples and are not specific limitations on how to determine the target retention data of pairing combinations in the embodiments of this application.

[0025] In a third possible implementation of the first aspect, the server determines the matching value of the first pairing combination based on the gap difference of the first pairing combination and the target retention data, including: determining the ratio of the gap difference of the first pairing combination to the first data item as the matching value of the first pairing combination.

[0026] The first data item may include the sum of a first preset value and a first product. The first product is the product of a first coefficient and the target retention data of the first pairing combination. The first preset value is a pre-set value, which is greater than or equal to 1, and the first coefficient is a positive number. Optionally, the first preset value may be 1.

[0027] In some embodiments, the server may also determine the matching value of each pairing combination as follows: if the pairing combination is the third pairing combination, then the matching value of the pairing combination is determined as the ratio of the gap difference to the first data item. If the pairing combination is not the third pairing combination, then the matching value of the pairing combination is determined as the gap difference. The third pairing combination is the pairing combination with the largest retention rate among the N pairing combinations.

[0028] As an example, the third pairing can be the pairing with the highest number of waiting times. In other words, the probability of warehouse release can be increased only for the pairing with the longest waiting time. The number of waiting times for a pairing can be determined by the number of waiting times for each material in that pairing. For example, the maximum number of waiting times for each material in the pairing can be determined as the total number of waiting times for the pairing. It is understood that this application does not limit the specific process for determining the number of waiting times for a pairing.

[0029] As another example, the third pairing combination can also be a pairing combination where the number of pending transactions exceeds a preset threshold. In other words, the probability of exiting a pairing combination that has been pending for a relatively long time can be increased. Here, the preset threshold is a pre-defined number of transactions; for example, the preset threshold can be 10.

[0030] In this embodiment, for the same pairing combination, the first matching value of the pairing combination must be less than the second matching value. The first matching value is equal to the ratio of the gap difference to the first data item, and the second matching value is equal to the gap difference. Furthermore, since a smaller matching value for a pairing combination increases the probability of it leaving the warehouse, setting the matching value of the pairing combination as the ratio of the gap difference to the first data item can improve the probability of the pairing combination leaving the warehouse. Therefore, by only increasing the probability of leaving the warehouse for the third pairing combination, the server can specifically increase the probability of leaving materials with a high degree of retention, helping to further avoid long-term retention of materials in the warehouse.

[0031] In a fourth possible implementation of the first aspect, after determining the pairing with the smallest matching value among the N pairing combinations as the target pairing combination, the server may further adjust the first coefficient (or retention factor). The process of the server adjusting the first coefficient may include: first, determining a second pairing combination from the N pairing combinations based on the combination information of each pairing combination among the N pairing combinations; then, adjusting the first coefficient based on the first ranking value and / or the second ranking value of the second pairing combination.

[0032] The combined information may include one or more of the following: target retention data, a first ranking value, and a second ranking value. The first ranking value is determined based on the first ranking rule and the matching value of each paired combination. The second ranking value is determined based on the second ranking rule and the gap difference of each paired combination.

[0033] The first sorting rule and the second sorting rule are compatible. When the first sorting rule is a descending order, the second sorting rule is also a descending order. When the first sorting rule is an ascending order, the second sorting rule is also an ascending order. Specifically, if the first sorting rule sorts the N pairs of combinations in ascending order of matching values, then the second sorting rule sorts the N pairs of combinations in ascending order of gap differences. If the first sorting rule sorts the N pairs of combinations in descending order of matching values, then the second sorting rule sorts the N pairs of combinations in descending order of gap differences.

[0034] The second pairing is typically a pairing with a higher degree of retention. There can be one or more second pairings; the number of second pairings is not limited in this embodiment.

[0035] Here, the server can sort the N pairs of pairs based on the matching value of each pair, thus obtaining a sort value for each pair, denoted as the first sort value. The server can also sort the N pairs of pairs based on the gap difference of each pair, thus obtaining a sort value for each pair, denoted as the second sort value. Afterwards, the server can adjust the value of the first coefficient by combining the first sort value and / or the second sort value of the second pair.

[0036] In this embodiment, since the matching value is the ratio of the gap difference to the first data item, as the retention degree of the paired combination increases, the matching value corresponding to the paired combination will gradually decrease, meaning the probability of the paired combination being released from the warehouse will gradually increase. In this case, it is easy for the compatibility between the materials in the paired combination to be not very high, but when the retention degree of the paired combination is large enough, the paired combination is still released from the warehouse, resulting in insufficient accuracy in material matching. In this embodiment, by continuously adjusting the first coefficient (i.e., the retention factor), the influence of the retention degree of the paired combination on the release probability can be changed, thus avoiding an excessive impact of the retention degree of the paired combination on the material matching result.

[0037] In the fifth possible implementation of the first aspect, both the first sorting rule and the second sorting rule are either descending or ascending order.

[0038] In this embodiment, the first sorting rule and the second sorting rule have the same arrangement rule. This allows for a direct representation of the impact of the retention rate of a paired combination on its exit probability using the first and second sorting values. This helps to adjust the first coefficient when the retention rate has a significant impact on the exit probability, thus reducing its influence, and conversely, when the retention rate has a small impact, increasing its influence. In other words, the identical arrangement rule for the first and second sorting rules ensures accurate and effective adjustment of the first coefficient.

[0039] In the sixth possible implementation of the first aspect, the server determines the second pairing combination from the N pairing combinations based on the combination information of each pairing combination in the N pairing combinations, which may include: taking the pairing combination with the largest target retention data in the N pairing combinations as the second pairing combination.

[0040] Here, the pair with the largest target retention data indicates a severe retention rate for that pair, and this retention rate significantly impacts the pair's exit probability. The pair with the largest target retention data is selected as the second pair, making it highly representative and requiring less data processing. This helps improve material matching efficiency while ensuring accurate and effective adjustment of the first coefficient.

[0041] As an example, if the target pending data includes the number of pending transactions, then the pair with the highest number of pending transactions can be used as the second pair.

[0042] In the seventh possible implementation of the first aspect, the server determines the second pairing combination from the N pairing combinations based on the combination information of each pairing combination. This can include: the server first determines the sorting increment of each pairing combination based on the combination information of each pairing combination in the N pairing combinations. Then, the server selects the pairing combination with the largest sorting increment among the N pairing combinations as the second pairing combination.

[0043] The sorting increment of a pair is the absolute value of the difference between the first sorting value and the second sorting value of the pair.

[0044] Here, the pairing combination with the largest ranking increment indicates that the retention rate of this pairing combination is relatively high, and the retention rate has a significant impact on the exit probability of this pairing combination. Taking the pairing combination with the largest ranking increment as the second pairing combination is more representative and requires less data processing, which helps to improve material matching efficiency while ensuring accurate and effective adjustment of the first coefficient.

[0045] In an eighth possible implementation of the first aspect, the server adjusts the first coefficient based on the first and / or second sort values ​​of the second pairing combination. This adjustment may include: the server first determining the sort increment of the second pairing combination based on the first and second sort values. Then, in response to the sort increment of the second pairing combination being less than the first data value, the first coefficient is increased. In response to the sort increment of the second pairing combination being equal to the first data value, the first coefficient remains unchanged. In response to the sort increment of the second pairing combination being greater than the first data value, the first coefficient is decreased.

[0046] Among them, the first data value is positively correlated with N, and the first data value is a positive number less than 1.

[0047] In this embodiment, when the sorting increment of the second pairing combination is small, the first coefficient (also known as the retention factor) can be increased to appropriately increase the influence of retention degree on the material matching result. When the sorting increment of the second pairing combination is large, the value of the retention factor can be decreased to reduce the influence of retention degree on the material matching result. In this case, the influence of the retention degree of each material in the pairing combination on the material matching result can be avoided.

[0048] In the ninth possible implementation of the first aspect, the first sorting rule is to sort the paired combinations in ascending order of matching values. In this case, the smaller the first sorting value, the smaller the matching value and the higher the probability of exiting the position, which means that the degree of retention has a greater impact on the probability of exiting the position. The larger the first sorting value, the larger the matching value and the lower the probability of exiting the position, which means that the degree of retention has a smaller impact on the probability of exiting the position.

[0049] In this case, the server adjusts the first coefficient based on the first sort value and / or the second sort value of the second pairing combination, including: increasing the first coefficient in response to the first sort value of the second pairing combination being greater than the second data value; keeping the first coefficient unchanged in response to the first sort value of the second pairing combination being equal to the second data value; and decreasing the first coefficient in response to the first sort value of the second pairing combination being less than the second data value.

[0050] The second data value is positively correlated with N, and the second data value is a positive number less than 1.

[0051] In this embodiment, when the pairings are sorted in ascending order of matching values, a larger first ranking value for the second pairing indicates a larger matching value and a lower probability of exiting the warehouse. In this case, the value of the retention factor can be increased to appropriately increase the impact of retention on the material matching result. Conversely, a smaller first ranking value for the second pairing indicates a smaller matching value and a higher probability of exiting the warehouse. In this case, the value of the first coefficient (also known as the retention factor) can be decreased to reduce the impact of retention on the material matching result. In other words, this embodiment can prevent the retention degree of each material in a pairing from having an excessive impact on the material matching result.

[0052] In the tenth possible implementation of the first aspect, the first sorting rule is to sort the paired combinations in descending order of matching values. In this case, the smaller the first sorting value, the larger the matching value and the lower the probability of exiting the position, which means that the degree of retention has a smaller impact on the probability of exiting the position. The larger the first sorting value, the smaller the matching value and the higher the probability of exiting the position, which means that the degree of retention has a greater impact on the probability of exiting the position.

[0053] In this case, the server adjusts the first coefficient based on the first and / or second sort values ​​of the second pairing combination, including: decreasing the first coefficient in response to the first sort value of the second pairing combination being greater than the third data value; keeping the first coefficient unchanged in response to the first sort value of the second pairing combination being equal to the third data value; and increasing the first coefficient in response to the first sort value of the second pairing combination being less than the third data value.

[0054] The third data value is positively correlated with N, and the third data value is a positive number less than 1.

[0055] In this embodiment, when the pairings are sorted in descending order of matching values, if the first ranking value of the second pairing is large, it indicates that the matching value of the second pairing is small and the probability of leaving the warehouse is high. In this case, the value of the retention factor can be reduced to appropriately increase the impact of retention on the material matching result. If the first ranking value of the second pairing is small, it indicates that the matching value of the second pairing is large and the probability of leaving the warehouse is low. In this case, the value of the first coefficient (also known as the retention factor) can be increased to appropriately increase the impact of retention on the material matching result. That is, this embodiment can avoid the retention degree of each material in the pairings having an excessive impact on the material matching result.

[0056] It is understood that the first data value, the second data value, and the third data value can be the same or different, and this application embodiment does not limit this.

[0057] In the eleventh possible implementation of the first aspect, each of the N pairing combinations includes a first material and a second material, the first material being stored in a first material warehouse and the second material being stored in a second material warehouse.

[0058] In this case, the server obtains the size data and retention data of each material among the multiple materials to be matched, which may include: in response to receiving a first ready signal from the first material warehouse and a second ready signal from the second material warehouse, the server obtains the size data and retention data of each first material in the first material warehouse, and obtains the size data and retention data of each second material in the second material warehouse.

[0059] The ready signal is a signal indicating that the material warehouse is ready. It is understood that the embodiments of this application do not specifically limit the content and implementation form of the ready signal.

[0060] In this embodiment of the application, the server performs the material matching operation only when both the first and second material warehouses are ready, which can ensure the orderly progress of material matching.

[0061] In some embodiments, the operating modes of each material bin (e.g., the first material bin and the second material bin) may include a normal mode (or the first mode) and a clearing mode (or the second mode).

[0062] When the quantity of materials in the material warehouse reaches a preset threshold, the system enters a normal mode. In normal mode, the quantity of materials in the warehouse remains stable; that is, after one material is removed from the warehouse, another material is immediately added back in. The preset threshold is a pre-defined value and is an integer greater than 1. It is understood that the preset thresholds for different material warehouses can be the same or different, and this embodiment does not specifically limit this.

[0063] In situations where the material warehouse cannot receive timely replenishment, such as when there is no material available, the material warehouse can enter a clearing mode. While in clearing mode, the amount of material in the warehouse will gradually decrease as materials are matched and discharged.

[0064] In this embodiment, on the one hand, a larger quantity of materials in the material warehouse ensures higher accuracy in material matching, thus improving the yield during material assembly. However, excessive material quantity in the warehouse reduces the material matching speed. Therefore, maintaining the quantity of materials in the warehouse at a stable value, such as a first quantity threshold, balances accuracy and efficiency in material matching. On the other hand, since situations where materials are unavailable for replenishment frequently occur, the material warehouse can perform material matching and dispensing when the quantity is stable, and can also dispense remaining materials when the quantity is insufficient, ensuring high material utilization.

[0065] Optionally, there can be multiple first material warehouses. There can also be multiple second material warehouses. In other words, the same material can be stored in multiple material warehouses.

[0066] Optionally, the first and second material warehouses can be the same warehouse. This warehouse can have multiple partitions, some of which are used to store the first material and others to store the second material. In other words, a single warehouse can hold multiple materials.

[0067] In some embodiments, the first material warehouse may send a first ready signal to the server when a first preset condition is met. The first preset condition is a pre-defined condition that triggers the first material warehouse to send a ready signal to the server.

[0068] Optionally, the first preset condition may include, but is not limited to, any one of the following first and second items.

[0069] The first condition is that the quantity of material in the first material warehouse is equal to a first quantity threshold. Here, the first quantity threshold is a pre-set value, and it is an integer greater than 1. For example, the first quantity threshold could be 40.

[0070] The second item is that the first material warehouse is in clearing mode.

[0071] In some embodiments, the second material warehouse can send a second ready signal to the server when a second preset condition is met. The second preset condition is a pre-defined condition that triggers the second material warehouse to send a ready signal to the server.

[0072] Optionally, the second preset condition may include, but is not limited to, any one of the following third and fourth items.

[0073] Thirdly, the quantity of material in the second material warehouse is equal to the second quantity threshold. The second quantity threshold is a pre-set value and is an integer greater than 1. For example, the second quantity threshold could be 10.

[0074] Fourthly, the second material warehouse is in clearing mode.

[0075] It is understood that the second quantity threshold and the first quantity threshold may be the same or different. The embodiments of this application do not limit the specific values ​​of the first quantity threshold and the second quantity threshold.

[0076] In some embodiments, the material warehouse can respond to a user's operation to switch the working mode, switching the working mode of the material warehouse from one mode to another, such as switching from the normal mode to the clearing mode.

[0077] In some embodiments, the material silo entering the clearing mode may include: when the material quantity is lower than a preset quantity threshold, the material silo automatically switches its working mode from the normal mode to the clearing mode.

[0078] In other embodiments, the material silo entering the clearing mode may include: when the material quantity is lower than the aforementioned preset quantity threshold, the material silo outputs a prompt message indicating a switch to the operating mode. In response to the user's first switching operation, the material silo switches its operating mode from the normal mode to the clearing mode. The first switching operation is the operation of switching from the normal mode to the clearing mode.

[0079] In some embodiments, among multiple material bins corresponding to multiple materials to be matched, if some material bins are depleted while others are not, some or all of the material bins can output a prompt message, such as playing an audio message indicating that the material is depleted. This allows the user to take timely action based on the prompt. For example, the user can promptly replenish the depleted material bins to continue material matching. Alternatively, the user can remove all the material from the remaining material bins to stop material matching.

[0080] In some embodiments, each material warehouse can display the occupancy status of each location within that material warehouse and the occupancy status of each location in other material warehouses. Other material warehouses refer to all material warehouses other than this material warehouse. For example, if multiple materials to be matched are stored in multiple material warehouses, and these multiple material warehouses are designated as the first material warehouse and the second material warehouse, then for the first material warehouse, this material warehouse is considered the first material warehouse, and the other material warehouses are considered the second material warehouse.

[0081] Secondly, embodiments of this application provide a material matching device, which is applied in a server and includes:

[0082] The data acquisition unit is used to acquire the size data and retention data of each material among multiple materials to be matched. The retention data indicates the degree of retention of the material in the material warehouse. The retention data includes one or more of the following: retention time and number of times waiting to be warehoused. The number of times waiting to be warehoused indicates the number of times the material is waiting to be warehoused.

[0083] The first determining unit is used to determine N pairing combinations of multiple materials based on material pairing rules, where N is a positive integer;

[0084] The second determining unit is used to determine the matching value of the first pairing combination based on the size data and retention data of each material in the first pairing combination. The first pairing combination is any pairing combination among N kinds of pairing combinations. The matching value of the first pairing combination is positively correlated with the size difference of each material in the first pairing combination and negatively correlated with the retention degree of each material in the first pairing combination.

[0085] The target selection unit is used to determine the pairing combination with the smallest matching value among N pairing combinations as the target pairing combination, which is the pairing combination to be assembled in this shipment.

[0086] As an embodiment of this application, the material matching device can implement the method as described in any of the first aspects above.

[0087] Thirdly, embodiments of this application provide a server, which includes a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method as described in any of the first aspects above.

[0088] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any of the first aspects above.

[0089] Fifthly, embodiments of this application provide a chip system including a processor coupled to a memory. The processor executes a computer program stored in the memory to implement the method described in any of the first aspects above. The chip system may be a single chip or a chip module composed of multiple chips.

[0090] Sixthly, embodiments of this application provide a computer program product that, when run on a server, causes the server to execute the method described in any of the first aspects above.

[0091] It is understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0092] Figure 1 This is a schematic diagram of the architecture of the material matching system provided in the embodiments of this application;

[0093] Figure 2 This is a schematic diagram of the structure of the material warehouse provided in an embodiment of this application;

[0094] Figure 3 This is a schematic diagram of the structure of the control equipment in the material warehouse provided in the embodiments of this application;

[0095] Figure 4 A timing diagram of the material matching method provided in the embodiments of this application;

[0096] Figure 5 A schematic diagram of the interface of the battery cover compartment provided in an embodiment of this application;

[0097] Figure 6 A flowchart illustrating a material matching method provided in an embodiment of this application;

[0098] Figure 7 A schematic diagram illustrating the storage conditions of each material warehouse provided in the embodiments of this application;

[0099] Figure 8 A flowchart illustrating the adjustment of the retention factor provided in an embodiment of this application;

[0100] Figure 9 A timing diagram illustrating the interaction between a terminal device and a server, provided in an embodiment of this application.

[0101] Figure 10 The interface effect diagram of the terminal device provided in the embodiments of this application;

[0102] Figure 11 A flowchart illustrating another material matching method provided in an embodiment of this application;

[0103] Figure 12This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0104] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0105] The following explains some concepts that may be involved in the embodiments of this application:

[0106] (1) Multiple: Unless otherwise specified, in the embodiments of this application, multiple refers to two or more.

[0107] (2) Mobile phone mid-frame and mobile phone battery cover: In this embodiment, the mobile phone mid-frame is an important frame part of the mobile phone, located between the front panel and the back cover. It supports various internal components of the mobile phone, such as the battery, motherboard, camera, flex cable, various sensors, microphone, earpiece, etc., and is the "skeleton" for fixing and installing these components. At the same time, the mobile phone mid-frame also plays a role in protecting the internal components of the mobile phone, preventing them from being impacted and damaged by external forces.

[0108] A mobile phone battery cover is a component used to cover the mobile phone battery. It is usually integrated into the back of the phone, and its main function is to fix the battery and protect it.

[0109] In this embodiment of the application, for ease of description, the mobile phone frame can also be simply referred to as the frame and the mobile phone battery cover as the battery cover.

[0110] (3) Product Serial Number (SN): In this embodiment, the SN code is a unique identifier assigned by the manufacturer when the product leaves the factory, and it usually consists of a string of numbers or letters. The SN code is the product's "ID card" and is used to identify and track the uniqueness of the product.

[0111] Material matching refers to assembling different types of materials according to certain rules so that the assembled product meets production requirements. In practical applications, to achieve better product precision, there are relatively precise requirements for the assembly gaps between materials.

[0112] In related technologies, random pairing is typically used during material matching. For example, when assembling a mobile phone battery cover and mid-frame, random pairing involves first randomly selecting a battery cover, then randomly selecting a mid-frame, and finally assembling the battery cover and mid-frame together. However, this random pairing method is prone to issues such as large-to-small or small-to-large mismatches. For instance, a large-sized battery cover might be paired with a small-sized mid-frame, leading to larger assembly gaps and reduced material assembly yield.

[0113] To improve material assembly yield, one option is to use a tiered matching method. The tiered matching process can be as follows: before matching, measure the dimensions of each material to be matched. Then, based on the dimensions of each material, tier each type of material is categorized. Finally, the materials to be matched are assembled within the same tier.

[0114] Taking battery covers and mid-frames as examples, the dimensions of each battery cover and each mid-frame can be measured first. Then, based on the dimensions of each battery cover, they are divided into P grades, for example, grades A, B, and C. Similarly, based on the dimensions of each mid-frame, they are divided into P grades, for example, grades A, B, and C. Here, P is an integer greater than 1. Finally, battery covers and mid-frames of the same grade are assembled. For example, grade A battery covers are paired with grade A mid-frames, grade B battery covers with grade B mid-frames, and grade C battery covers with grade C mid-frames. It is understood that the materials to be matched can also be other materials used for interoperability; this embodiment does not specifically limit the materials to be matched.

[0115] Optionally, P size ranges can be pre-set for each material, with each size range corresponding to a grade. In this case, when grading each material, the size data of each material can be compared with the size range corresponding to each grade. If the size data of a material falls within the size range corresponding to a certain grade, then the material is assigned to that grade. For example, if a battery cover can have three grades: A, B, and C, and grade A corresponds to size range 1, grade B to size range 2, and grade C to size range 3, then when grading battery cover 1, the size data of battery cover 1 can be compared sequentially with size range 1, size range 2, and size range 3. If the size data of battery cover 1 falls within size range 1, then battery cover 1 is assigned to grade A.

[0116] However, matching materials by grade can have the following drawbacks:

[0117] 1. For each type of material, materials at different price levels need to be placed separately. For example, multiple containers need to be configured for each type of material, with each container used to hold materials at one price level. In this case, the more price levels there are, the more complicated the operation becomes, which can easily increase costs and the complexity of the material matching process.

[0118] 2. The quantities of materials in two paired gears are often different. For example, the number of battery covers in gear A is much smaller than the number of middle frames in gear A. This can easily lead to the assembly of battery covers from other gears with middle frames from gear A, which can result in cross-gear assembly and cause confusion in the matching assembly.

[0119] In view of the aforementioned technical problems in related technologies, in order to improve the material assembly yield, in this embodiment of the application, the server combines the size data and retention data of the materials in each material warehouse to determine the matching value corresponding to each pairing combination, and determines the pairing combination with the smallest matching value as the target pairing combination. The target pairing combination is the pairing combination that is shipped out and assembled this time. It can be understood that each pairing combination includes multiple materials that are paired with each other. Taking the paired materials as a battery cover and a middle frame as an example, each pairing combination includes one battery cover and one middle frame.

[0120] In this embodiment, since the matching value is positively correlated with the size difference of each material in the pairing combination and negatively correlated with the retention degree of each material in the pairing combination, that is, the target pairing combination is a pairing combination with small size differences between each material and large retention degree. Therefore, assembling the target pairing combination out of the warehouse can ensure the accuracy of material matching while avoiding long-term retention of materials in the material warehouse, thereby improving the material assembly yield.

[0121] Optionally, after determining the target pairing combination, the server can distribute the information of the target pairing combination, such as the storage location of each material in the target pairing combination in the material warehouse, to the material warehouses where each material is located, so that each material warehouse can release the materials in the target pairing combination to assemble the target pairing combination.

[0122] Optionally, the aforementioned matching value can be the ratio of the gap difference to the retention degree data (or the first data item). The gap difference can be the absolute value of the difference between the mating gap (or assembly gap) and the pre-set desired gap. The mating gap between two materials (i.e., the gap formed by material assembly) can be the absolute value of the difference between the dimensional data of the two materials respectively. The desired gap can also be called the assembly design gap or design gap. The design gap is the space reserved between materials to ensure that the materials can be correctly assembled, operate, and meet the expected functions.

[0123] The first data item mentioned above can characterize the retention level of the paired combination. Optionally, the retention level of each material is positively correlated with the retention time and / or the number of times it waits to leave the warehouse. The retention time is the time interval from the material's entry into the warehouse to the current time. The number of times it waits to leave the warehouse is the number of times the material has undergone material matching operations (or the number of times it waits to leave the warehouse) from the time it entered the warehouse. Taking battery cover 1 as an example, when battery cover 1 enters the warehouse, its waiting count is 0. If, after one material matching, battery cover 1 does not leave the warehouse, its waiting count is updated to 1. Similarly, after n material matchings, if battery cover 1 does not leave the warehouse, its waiting count is updated to n. It is understandable that for any material, when it leaves the warehouse, the server can reset the waiting count to zero. For example, when battery cover 1 leaves the warehouse, the server can reset its waiting count to zero.

[0124] As an example, the expression for the first data item can be 1+α×(max[n(i),n(j)]), where n(i) is the number of times one material is waiting to be stored, n(j) is the number of times another material is waiting to be stored, max[n(i),n(j)] is the maximum value of the two waiting times, and α is the retention coefficient, or the first coefficient.

[0125] As another example, the expression for the first data item can also be in other forms, such as 1+α×(max[l(i),l(j)]), where l(i) is the residence time of one material, l(j) is the residence time of the other material, max[l(i),l(j)] is the maximum value of the two residence times, and α is the residence factor, or the first coefficient.

[0126] It is understood that the embodiments of this application do not specifically limit the form of the first data item.

[0127] It should be noted that in actual material matching processes, some materials often remain in the warehouse, sometimes for extended periods. The server combines the degree of material retention in the warehouse with the material matching process to prevent prolonged material retention. Furthermore, since a smaller matching value generally indicates smaller dimensional differences between the materials in that pair, the higher the degree of matching during assembly, selecting the pair with the smallest matching value for assembly ensures accurate material matching and improves assembly yield.

[0128] It should be noted that in the embodiments of this application, there is no need to classify the materials during the entire material matching process, which can avoid problems caused by classification, such as the problem of cross-class assembly.

[0129] The following describes the usage scenarios of the embodiments of this application:

[0130] The embodiments of this application can be applied to scenarios involving material matching for assembling matched pairs. Specifically, the material matching method provided in this application can be applied to scenarios involving matching two materials, such as matching a battery cover and a mid-frame. The material matching method provided in this application can also be applied to scenarios involving matching multiple materials, such as matching a battery cover, a mid-frame, and a screen. This application does not specifically limit the number of materials to be matched.

[0131] The material matching method provided in this application can be applied to servers, which may include, but are not limited to, devices such as laptops, tablets, personal computers, virtual reality devices, web servers, cloud servers, and embedded devices. This application does not limit the type of server.

[0132] The following example uses two materials to be matched, combined with... Figures 1 to 3 Describe a material matching system that includes a server. Among other things, Figure 1 This is a schematic diagram of the architecture of the material matching system provided in the embodiments of this application.

[0133] Combination Figure 1 The material matching system may include a measuring device 101, a server 102, a first material bin 103, and a second material bin 104.

[0134] The measuring device 101 can measure the dimensional data of each material to be assembled and send the material information to the server 102. The material information may include, but is not limited to, the material's dimensional data, serial number (SN), and other information related to the material. As an example, the aforementioned other information related to the material may include the project number of the production project corresponding to the material. It is understood that the dimensional data may include one or more elements; for example, the dimensional data may include one or more of the following: length, width, height, diameter, inner diameter, and outer diameter. Optionally, when the dimensional data includes multiple elements, the dimensional data can be implemented as a vector.

[0135] The measuring device 101 can take many forms, such as an image size measuring instrument, an electronic size measuring instrument, etc. It is understood that the embodiments of this application do not limit the specific form of the measuring device 101.

[0136] The first material storage 103 and the second material storage 104 can store materials and send the storage location information of the stored materials to the server 102. The storage location information may include, but is not limited to, the material's serial number (SN) and storage location identifier, with the storage location identifier indicating the storage location of the material in the material storage silo (such as the first material storage silo or the second material storage silo).

[0137] Optionally, the measuring device 101, the first material bin 103, and the second material bin 104 may be connected to a barcode scanner. The barcode scanner is used to scan the serial number (SN) of the material and send the scanned SN to the connected measuring device 101, the first material bin 103, or the second material bin 104.

[0138] Understandably, in some application scenarios, the measuring device 101, the first material bin 103, and the second material bin 104 can have built-in barcode scanning functionality. In this case, the measuring device 101, the first material bin 103, and the second material bin 104 do not need to be connected to a separate barcode scanning device; they can directly scan the materials to obtain the material's serial number (SN).

[0139] The materials in the first material storage 103 are used to pair and assemble with the materials in the second material storage 104. For the sake of distinction, the materials in the first material storage 103 can be referred to as the first material or the first type of material, and the materials in the second material storage 104 can be simply referred to as the second material or the second type of material.

[0140] As an example, the material in the first material compartment 103 can be a mobile phone battery cover (hereinafter referred to as the battery cover), and the material in the second material compartment 104 can be a mobile phone mid-frame (hereinafter referred to as the mid-frame). It should be understood that the first material being a battery cover and the second material being a mid-frame is merely an example, and the embodiments of this application do not specifically limit the first material and the second material.

[0141] Server 102 can use the location information of each first material in the first material warehouse 103 to find the size data of each first material, and use the location information of each second material in the second material warehouse 104 to find the size data of each second material. Then, server 102 can combine the size data of the first materials in the first material warehouse 103 and the size data of the second materials in the second material warehouse 104 to perform material matching calculations and obtain matching results. These matching results can include the location information of the matched first and second materials. Server 102 can then send the matching results to the first material warehouse 103 and the second material warehouse 104 respectively. In this way, the first material warehouse 103 can release the matched first materials, and the second material warehouse 104 can release the matched second materials, enabling subsequent assembly processes to be based on the released first and second materials.

[0142] Understandable. Figure 1 The first material bin 103 and the second material bin 104 shown are merely examples, and the embodiments of this application do not specifically limit the number of material bins in the material matching system.

[0143] Optionally, the material matching system may have only one material warehouse. In this case, the first material warehouse 103 and the second material warehouse 104 can be implemented as a single material warehouse, which may have multiple partitions, some of which are used to store the first material and others are used to store the second material.

[0144] Understandably, the materials to be matched can be two types, such as a battery cover and a mid-frame, or three or more types. This application does not specifically limit the number of types of materials to be matched. When there are multiple types of materials to be matched, a material bin can be set up for each type of material, or a material bin can be set up for multiple types of materials.

[0145] Figure 2 This is a schematic diagram of the structure of a material silo provided in an embodiment of this application. Figure 2 As shown, the material warehouse (e.g.) Figure 1 The first material bin 103 or the second material bin 104 shown may include a control device 21 and at least one material storage space 22.

[0146] Material storage space 22 is used to store materials. When control device 21 detects materials to be stored, it can store the materials in material storage space 22 and send the storage location information of the stored materials to server 102. Control device 21 can also release the specific materials indicated by the matching result when it receives the matching result returned by server 102.

[0147] Combination Figure 1 and Figure 2 It can be seen that the material matching system provided in this application embodiment is responsible for the server to perform matching calculations on the materials in the first material warehouse and the second material warehouse, and distribute the matching results to the first material warehouse and the second material warehouse. The first material warehouse and the second material warehouse execute the material outbound and inbound processes. In the entire material matching process, there is no need to classify the materials, which can avoid the problems caused by classification, such as avoiding the problem of cross-class assembly.

[0148] Figure 3 This is a schematic diagram of the control equipment in a material warehouse provided in an embodiment of this application. Figure 3As shown, the control device 21 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a camera 193, a display screen 194 (also referred to as a screen), and a SIM card interface 195, etc.

[0149] The sensor module 180 may include pressure sensors, touch sensors, temperature sensors, proximity sensors, etc. Different sensors are used to sense different signals, enabling the processor 110 to perform calculations based on these signals to achieve different functions of the control device 21. For example, a proximity sensor can be used to determine whether there is material to be put into the material silo at the inlet.

[0150] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, GPU, HWC, image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of control device 21. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0151] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0152] The processor 110 can run the material matching method provided in the embodiments of this application, so as to send the location information of each material entering the material warehouse to the server 102, and when the server 102 determines the optimal pairing combination, remove the materials in the pairing combination from the warehouse.

[0153] It should be understood that, in practical applications, the control device 21 may include more than Figure 3 The number of more or fewer components shown is not limited in the embodiments of this application. The illustrated control device 21 is merely an example, and the control device 21 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0154] The following example uses two types of materials to be assembled, namely a mobile phone battery cover (hereinafter referred to as the battery cover) and a mobile phone mid-frame (hereinafter referred to as the mid-frame), and, in conjunction with the figures shown above, illustrates the data interaction process between various devices in the material matching system during the implementation of the material matching method of this application. Among them, Figure 4 A timing diagram of the material matching method provided in the embodiments of this application.

[0155] Figure 4 In this case, it can be measured by a measuring device (see...) Figure 1 Measuring equipment in the middle), first material warehouse (see Figure 1 The first material warehouse 103 and the second material warehouse (see Figure 1 The second material warehouse 104) and the server (see Figure 1 The interaction between servers 102 in the system enables automatic material matching.

[0156] Here, when the materials to be matched are the battery cover and the middle frame, the first material bin (see...) Figure 1 The first material in the first material bin (103) can be a battery cover, and the second material bin (see Figure 1 The second material in the second material compartment 104 can be a middle frame. It should be understood that the first material being a battery cover and the second material being a middle frame is only an example, and the embodiments of this application do not specifically limit the first material and the second material.

[0157] Figure 4 The timing diagram of the material matching method shown can include at least the following steps:

[0158] Step 401: The measuring device sends material information to the server.

[0159] The material information may include, but is not limited to, the material's size data, serial number (SN), the project number of the corresponding production project (or matching project), and an identifier indicating the stage of the production project (referred to as the stage identifier). As an example, the material information for a certain material could be [SN1, Size 1, Project F001, Stage 3], where SN1 is the material's SN, Size 1 is the material's size data, Project F001 is the project number, and Stage 3 is the stage identifier. It is understood that the material's size data may include one or more elements; for example, the size data may include one or more of the following: length, width, height, diameter, inner diameter, and outer diameter. Optionally, when the size data includes multiple elements, the size data can be implemented as a vector.

[0160] Here, for each material to be assembled, such as each battery cover and each mid-frame, the measuring device can measure the dimensional data of the material and send the material information to the server.

[0161] Optionally, before sending material information to the server, the measuring device can first establish a communication connection with the server. The process of establishing a communication connection between the measuring device and the server may include:

[0162] (1) The measuring device sends the first connection request to the server.

[0163] (2) The server responds to the first connection request and establishes a communication connection with the measuring device.

[0164] Here, the first connection request is a connection request sent by the measuring device to the server. The connection request is used to request the establishment of a communication connection with the server. As an example, the content of the connection request can be "connect" or "001". It is understood that this application embodiment does not limit the specific content of the connection request.

[0165] The transmission protocol between the measuring device and the server can be either WebSocket or Hypertext Transfer Protocol (HTTP). As an example, when the transmission protocol between the measuring device and the server is HTTP, the connection request is an HTTP request. It is understood that this application does not specifically limit the transmission protocol between the measuring device and the server.

[0166] In this embodiment of the application, the server and the measuring device can establish a communication connection using solutions disclosed in related technologies, which will not be elaborated here.

[0167] Optionally, the network through which the measuring device communicates with the server can be a local area network (LAN). It is understood that this application embodiment does not specifically limit the network used for communication between the measuring device and the server.

[0168] Step 402: Upon receiving the material information, the server stores the material information.

[0169] Optionally, the server can store the received material information in a database.

[0170] Optionally, upon receiving material information, the server can also send a response message to the measuring device. In this way, the measuring device can confirm that the material information has been successfully sent to the server upon receiving the response message.

[0171] Step 403: The battery cover is stored in the first material warehouse, and the location information of the battery cover is sent to the server.

[0172] Here, the first material in the first material bin is a battery cover. The storage location information of the stored battery cover may include the battery cover's serial number (SN) and a storage location identifier, where the storage location identifier indicates the storage location of the battery cover in the first material bin. As an example, the storage location information of a certain battery cover may be [SN1, A01], where SN1 is the battery cover's serial number (SN) and A01 is the storage location identifier.

[0173] Step 404: Upon receiving the location information of the battery cover, the server searches for the material information of the battery cover.

[0174] Here, when the server receives the storage location information of the battery cover, it can extract the SN code of the battery cover from the storage location information. Then, the server can look up the corresponding material information based on the SN code.

[0175] For example, if the warehouse location information received by the server is [SN1, A01], the server can look up the material information with SN code SN1. For example, the material information found could be [SN1, Size 1, Item F001, Stage 3].

[0176] Optionally, in step 404 above, after the server finds the material information of the battery cover, it can also use the storage location information to update the material information to obtain the updated material information about the battery cover.

[0177] For example, if the server receives the storage location information as [SN1, A01], and the found material information is [SN1, Size 1, Item F001, Stage 3], then after updating the material information using the storage location information, the updated material information can be: [SN1, Size 1, Item F001, Stage 3, A01]. Here, A01 is the identifier indicating the storage location of the battery cover in the first material storage compartment.

[0178] Optionally, after step 404 above, the server can also send the material information of the battery cover to the first material warehouse, so that users can interact with the first material warehouse to view the storage status of each battery cover in the first material warehouse, which helps to improve the user experience.

[0179] Optionally, after step 404 above, the server can also send the battery cover material information to the second material warehouse, so that the user can interact with the second material warehouse to view the storage status of each battery cover in the first material warehouse. In this case, the user can view the storage status of materials in multiple material warehouses in the same material warehouse, which helps to further improve the user experience.

[0180] Step 405: The second material warehouse is stored in the middle frame, and the warehouse location information of the middle frame is sent to the server.

[0181] Step 406: Upon receiving the location information of the middle frame, the server searches for the material information of the middle frame.

[0182] Optionally, in step 406 above, after the server finds the material information of the middle frame, it can also use the warehouse location information to update the material information to obtain the updated material information about the middle frame.

[0183] Optionally, after step 406 above, the server can also send the material information of the middle frame to the second material warehouse, so that users can interact with the second material warehouse to view the storage status of each middle frame in the second material warehouse, which helps to improve the user experience.

[0184] Optionally, after step 406 above, the server can also send the material information of the middle frame to the first material warehouse, so that the user can interact with the first material warehouse to view the storage status of each middle frame in the second material warehouse. In this case, the user can view the storage status of materials in multiple material warehouses in the same material warehouse, which helps to further improve the user experience.

[0185] Understandably, the operations in steps 405 to 406 are basically the same as those in steps 403 to 404, and will not be repeated here.

[0186] Optionally, a communication connection can be established with the server before the material warehouse (such as the first material warehouse and the second material warehouse) sends the material location information to the server. That is, the first material warehouse can establish a communication connection with the server before step 403 above, and the second material warehouse can establish a communication connection with the server before step 405 above.

[0187] The following example uses the WebSocket protocol for communication between a material warehouse and a server to illustrate the process of establishing a communication connection. The process of establishing a communication connection between each material warehouse and the server may include:

[0188] (1) The material warehouse sends a second connection request to the server.

[0189] (2) The server responds to the second connection request by sending a message to the material warehouse indicating that the connection was successful.

[0190] Here, the second connection request is a connection request sent from the material warehouse to the server. The connection request is used to request the establishment of a communication connection with the server. As an example, the content of the connection request can be "ok". It is understood that this application embodiment does not limit the specific content of the connection request.

[0191] When the transmission protocol between the material warehouse and the server is the WebSocket protocol, the connection request is a WebSocket request.

[0192] Here, when the transmission protocol between the material warehouse and the server is the WebSocket protocol, the material warehouse can send the aforementioned second connection request to the server based on the HTTP protocol. In this case, the server can send the aforementioned information indicating a successful connection to the material warehouse based on the HTTP protocol.

[0193] It should be noted that when the transmission protocol between the material warehouse and the server is the Websocket protocol, the material warehouse and the server communicate based on the HTTP protocol during the process of establishing a communication connection, and after the material warehouse and the server successfully establish a communication connection, they communicate based on the Websocket protocol.

[0194] In this embodiment of the application, the material warehouse and the server can establish a communication connection using solutions disclosed in related technologies, which will not be elaborated here.

[0195] Optionally, the network for communication between the material warehouse and the server can be a local area network (LAN). It is understood that this application embodiment does not specifically limit the network for communication between the material warehouse and the server.

[0196] It is understood that steps 403 to 404, which precede steps 405 to 406, are merely an example. In some embodiments, steps 405 to 406 may be executed first, followed by steps 403 to 404. In other embodiments, steps 405 to 406 may be executed simultaneously with steps 403 to 404.

[0197] Step 407: When the first material warehouse meets the first preset condition, the first material warehouse sends a first ready signal to the server.

[0198] The first ready signal is a ready signal from the first material bin. The ready signal is used to indicate that the material bin is ready. It is understood that the embodiments of this application do not specifically limit the content and implementation form of the ready signal.

[0199] The first preset condition is a pre-set condition that can trigger the first material warehouse to send a ready signal to the server.

[0200] Optionally, the first preset condition may include, but is not limited to, any one of the following first and second items.

[0201] The first condition is that the quantity of material in the first material warehouse is equal to a first quantity threshold. Here, the first quantity threshold is a pre-set value, and it is an integer greater than 1. For example, the first quantity threshold could be 40.

[0202] The second item is that the first material warehouse is in clearing mode.

[0203] In practical applications, a material silo can have two operating modes: a normal mode (or the first mode) and a clearing mode (or the second mode). Taking the first material silo as an example, when the quantity of material in the first material silo reaches the aforementioned first quantity threshold, the first material silo can enter the normal mode. In the normal mode, the quantity of material in the first material silo remains stable; that is, after each piece of material leaves the silo, another piece of material immediately enters.

[0204] It should be noted that a larger quantity of materials in the material warehouse ensures higher accuracy in material matching, which in turn improves the yield rate during material assembly. However, considering that the material matching speed will decrease when the quantity of materials in the warehouse is too large, in order to balance the accuracy and efficiency of material matching, the quantity of materials in the warehouse can be maintained at a stable value, such as the aforementioned first quantity threshold.

[0205] Considering that there may frequently be situations where materials are unavailable for replenishment, in some embodiments, the material warehouse can respond to user commands to switch operating modes, changing its operating mode from one mode to another, such as from a normal mode to a clearing mode. When the material warehouse is in clearing mode, the quantity of materials in the warehouse will gradually decrease as materials are matched and discharged.

[0206] It should be noted that when the material warehouse is in clearing mode, sending a ready signal to the server can ensure that the remaining materials in the material warehouse are properly matched and that the material utilization rate is guaranteed.

[0207] Considering the possibility that some material bins might run out of material—for example, the first material bin might be empty while the second bin remains. In this case, some or all material bins could output a notification message, such as playing an audio message indicating that material has been depleted. This allows users to take timely action based on the notification. For instance, users can replenish material in the depleted bins to continue material matching. Alternatively, users can remove all material from the bins that are still in use to stop material matching.

[0208] The following example uses the first material in the first material compartment as the battery cover and the second material in the second material compartment as the middle frame. Figure 5 The interface of the material storage compartment is shown, illustrating the material storage compartment's inbound and outbound management process. In this application, when the first material in the first material compartment is a battery cover, the first material compartment can be referred to as the battery cover compartment. When the second material in the second material compartment is a mid-frame, the second material compartment can be referred to as the mid-frame compartment.

[0209] It should be understood that the first material being a battery cover and the second material being a middle frame is merely an example, and the embodiments of this application do not specifically limit the first material and the second material.

[0210] Figure 5 This is a schematic diagram of the interface of the battery cover compartment provided in an embodiment of this application. It can be understood that... Figure 5 This example uses the battery cover compartment as an example. Optionally, the interface displayed for each material compartment (e.g., the battery cover compartment and the mid-frame compartment) is roughly the same.

[0211] It should be noted that, for the purpose of differentiation, in this embodiment, the thickness of the lines is used to distinguish whether a storage location in the material warehouse is currently occupied. Specifically, a bold icon can be used to indicate that it is currently occupied, and a non-bold icon can be used to indicate that it is currently unoccupied. It should be understood that when a storage location in the material warehouse is occupied, it means that material is stored in that location. It is understood that this embodiment does not specifically limit how to distinguish whether a storage location in the material warehouse is currently occupied. For example, in some application scenarios, a triangle icon can be used to indicate that it is currently occupied, and a circle icon can be used to indicate that it is currently unoccupied. Furthermore, in other application scenarios, color can be used to distinguish whether a storage location in the material warehouse is currently occupied; specifically, a gray icon can be used to indicate that it is currently occupied, and a white icon can be used to indicate that it is currently unoccupied.

[0212] like Figure 5 As shown, the interface 501 of the battery cover compartment can display a first area 502 and a second area 503. The first area 502 displays the occupancy status of each compartment in the battery cover compartment. The second area 503 displays the occupancy status of each compartment in the middle frame compartment.

[0213] Combination Figure 5 In the first area 502, the battery cover compartment (also known as the first material compartment) has 50 slots, designated as slots 1 to 50. Slots 1 to 40 are marked with bold icons, indicating they are currently occupied and have battery covers placed on them. Slots 41 to 50 are marked with non-bold icons, indicating they are currently unoccupied and have no battery covers placed on them. In practice, each slot can hold one material.

[0214] Combination Figure 5 In the second area 503, it can be seen that the middle frame warehouse (that is, the second material warehouse) has 20 storage locations, namely storage locations 1 to 20. Among them, the icons of storage locations 1 to 10 are bold icons, indicating that storage locations 1 to 10 in the middle frame warehouse are currently occupied, that is, they are filled with middle frames. The icons of storage locations 11 to 20 are not bold icons, indicating that storage locations 11 to 20 are not occupied, that is, they are not filled with middle frames.

[0215] from Figure 5 It can be observed that the battery cover compartment interface 501 can simultaneously display the occupancy status of both the battery cover compartment and the mid-frame compartment. In other words, a single material compartment interface can simultaneously display the material status of multiple interconnected material compartments. This allows users to intuitively view the material status of each material compartment on a single interface, enhancing the user experience.

[0216] Optionally, the battery cover can respond to a user clicking any compartment icon on interface 501, displaying information about the materials placed in the compartment corresponding to that icon on interface 501. Combined with... Figure 5 The battery cover compartment can respond to the user clicking the icon of compartment 1 in the first area 502, and display the information of the battery cover in compartment 1 on the interface 501. As an example, the information of the battery cover in compartment 1 displayed on the interface 501 can be: On the right side of the interface 501, the information of the battery cover placed in compartment 1 is displayed, and the displayed information can be: "Compartment 1; SN code: 11223344778899; Length 100 mm, Width 10 mm" (not shown in the figure).

[0217] In some optional implementations, the battery cover compartment can respond to operations such as clicking a first compartment icon in the first area 502 and a second compartment icon in the second area 503 to eject the battery cover from the compartment corresponding to the first compartment icon, and to instruct the middle frame compartment to eject the middle frame from the compartment corresponding to the second compartment icon. The first compartment icon can be any bolded compartment icon displayed in the first area 502. The second compartment icon can be any bolded compartment icon displayed in the second area 503.

[0218] Further integration Figure 5 The interface 501 of the battery cover compartment may also include an information area 504, a mode area 505, and a control area 506.

[0219] Information area 504 can display information related to the material matching process. Combined with... Figure 5 Information area 504 can display location information, floor information, production line information, project information, stage information, and solution information. Location information indicates the building number where the material warehouse is located, such as B4. Floor information indicates the floor where the material warehouse is located, such as the 1st floor. Production line information indicates the production line where the material warehouse is located, such as production line number 1. Project information indicates the production project to which the material warehouse belongs, such as production project number Fa1. Stage information indicates the current stage of the production project in which the material matching is performed, such as stage V3. Solution information indicates the solution used for the current material matching, such as solution A1.

[0220] Figure 5 In the mode area 505, there are two options: normal mode 5a and cleaning mode 5b. Normal mode 5a is selected, indicating that the current working mode of the battery cover compartment is normal mode.

[0221] Optionally, when the quantity of materials in the battery cover compartment is equal to a certain preset value (e.g., the first quantity threshold mentioned above), the battery cover compartment can be set to the normal mode.

[0222] Optionally, if the amount of material in the battery cover compartment is lower than the preset value as material matching proceeds, it indicates that the battery cover compartment is not continuously receiving battery covers. In this case, the battery cover compartment can be switched from the normal mode to the clearing mode.

[0223] In some embodiments, the battery cover can automatically switch the working mode from the normal mode to the clearing mode when the amount of material is lower than the preset value.

[0224] In other embodiments, the battery cover compartment may also output a prompt message to switch operating modes when the material quantity falls below the aforementioned preset value. Subsequently, the battery cover compartment can respond to the user's first switching operation by switching its operating mode from the normal mode to the clearing mode. The first switching operation is used to switch the operating mode of the material compartment from the normal mode to the clearing mode. Combined with... Figure 5 The first switching operation can be the operation of clicking the material clearing mode option 5b.

[0225] Understandably, displaying the working mode of the material warehouse on the interface allows users to intuitively perceive the working status of the material warehouse, which helps to further improve the user experience.

[0226] Figure 5 In the control area 506, there are controls for starting operation (5c), stopping operation (5d), discharging from storage compartment (5e), ​​and clearing equipment (5f). The currently operating storage compartment (referred to as the current storage compartment), such as the battery cover compartment, can start operating the current storage compartment and / or other storage compartments in response to the user clicking the start control (5c). The other storage compartments are those used in conjunction with the current storage compartment. For example, if the materials in the first storage compartment and the second storage compartment are paired and assembled, then the first storage compartment and the second storage compartment are used in conjunction. When the current storage compartment is the first storage compartment, the other storage compartments are the second storage compartments.

[0227] The current material warehouse can also respond to the user's click on the stop operation control 5d to stop the current material warehouse and / or other material warehouses.

[0228] The current material bin can also respond to the user's click on the bin discharge control 5e, opening the bin door so that the user can retrieve the material from it.

[0229] The current material bin can also respond to the user's click on the equipment clearing control 5f, opening the bin door and simultaneously controlling other material bins to open their doors, so that the user can take out the remaining materials in each bin.

[0230] from Figure 5 It can also be found that users can interact with one material warehouse and operate multiple material warehouses that work together, which can greatly facilitate user operation and further improve the user experience.

[0231] Understandable. Figure 5 The interface of the material warehouse shown is merely an example and does not constitute any limitation on the interface of the material warehouse involved in the material matching method provided in the embodiments of this application.

[0232] Step 408: When the second material warehouse meets the second preset condition, the second material warehouse sends a second ready signal to the server.

[0233] The second ready signal is a ready signal from the second material warehouse. The ready signal is used to indicate that the material warehouse is ready.

[0234] The second preset condition is a pre-set condition that can trigger the second material warehouse to send a ready signal to the server.

[0235] Optionally, the second preset condition may include, but is not limited to, any one of the following third and fourth items.

[0236] Thirdly, the quantity of material in the second material warehouse is equal to the second quantity threshold. The second quantity threshold is a pre-set value and is an integer greater than 1. For example, the second quantity threshold could be 10.

[0237] It is understood that the second quantity threshold may be the same as or different from the aforementioned first quantity threshold. The specific values ​​of the first quantity threshold and the second quantity threshold are not limited in the embodiments of this application.

[0238] Fourthly, the second material warehouse is in clearing mode.

[0239] It should be noted that the operation in step 408 is basically the same as that in step 407, and will not be described in detail here.

[0240] It is understood that the execution order of steps 407 and 408 is not limited in the embodiments of this application.

[0241] Step 409: Upon receiving the first and second ready signals, the server executes a material matching operation.

[0242] Here, when the server receives both the first and second ready signals simultaneously, it indicates that both the first and second material warehouses are ready. At this point, the server can execute a material matching method to determine a pairing combination, such as a battery cover and a frame. The server can then send the information of this pairing combination to both the first and second material warehouses. The first material warehouse can then dispense the first material from the pairing combination, such as the battery cover. The second material warehouse can dispense the second material from the pairing combination, such as the frame. In this scenario, subsequent assembly can be performed based on the dispensed first and second materials.

[0243] The following example uses the first material in the first material compartment as the battery cover and the second material in the second material compartment as the middle frame. Figure 6The illustrated material matching process explains how the server performs material matching operations. Figure 6 This is a flowchart illustrating the material matching method provided in an embodiment of this application.

[0244] Step 601: The server determines the mating gap for each pairing combination, resulting in M ​​mating gaps.

[0245] The mating gap, also known as the assembly gap or the first gap data, indicates the size of the gap that will be formed when each material in a paired assembly is assembled.

[0246] Here, each pairing includes a battery cover in the first material compartment and a middle frame in the second material compartment.

[0247] There are M possible pairings, where M is an integer greater than 0. The value of M is the product of the first quantity and the second quantity, where the first quantity is the number of battery covers in the first material bin and the second quantity is the number of middle frames in the second material bin.

[0248] Here, for each battery cover in the first material bin, the server can calculate the mating gap between the battery cover and each middle frame in the second material bin. That is, each pairing combination can correspond to a mating gap.

[0249] In practice, the clearance between two materials can be the absolute difference between their respective dimensional data. Here, the absolute difference between the two data points is the absolute value of the difference between the two data points.

[0250] As an example, if the size of the battery cover 1 is x1 and the size of the middle frame 2 is y2, then the clearance between the battery cover 1 and the middle frame 2 can be d. 12 , where d 12 =|x1-y2|.

[0251] Understandably, dimensional data can include one or more elements. For example, dimensional data can include one or more of the following: length, width, height, diameter, inner diameter, and outer diameter.

[0252] As an example, when the dimensional data of each material includes multiple elements, the absolute difference corresponding to each element can be calculated separately, and then the mean or maximum value of the absolute differences can be determined as the mating gap between the two materials.

[0253] Optionally, when the dimensional data includes multiple elements, the dimensional data can be implemented as a vector. As another example, when the dimensional data for each material includes multiple elements, the absolute value of the difference between the two vectors corresponding to the two dimensional data can be calculated.

[0254] It should be understood that the embodiments of this application do not specifically limit how to calculate the intercompany gap between two compatible materials.

[0255] Combination Figure 7 , Figure 7 This is a schematic diagram illustrating the storage conditions of each material warehouse provided in the embodiments of this application. For example... Figure 7 As shown in (a) above, the first material warehouse contains 64 items. Figure 7 As shown in (b) above, the second material warehouse contains 64 items. (Combined with...) Figure 7 Given that there are 64 battery covers in the first material compartment and 64 middle frames in the second material compartment, M interlocking gaps can be calculated in step 601, and M = 64 × 64.

[0256] Step 602: Based on the M matching gaps corresponding to the M pairing combinations, the server selects N pairing combinations that meet the selection criteria from the M pairing combinations.

[0257] Where N is an integer greater than or equal to 0, N <M。

[0258] The above filtering conditions are pre-set conditions, which may include filtering mating gaps within the design gap range. The design gap range can be [LSL, USL], where LSL is the lower limit of the design gap range and USL is the upper limit of the design gap range.

[0259] It should be noted that the gaps between multiple materials being paired and assembled typically need to meet certain requirements. If the gaps are too large or too small, poor assembly gaps may occur. In step 602, the gaps of the mating materials that do not meet the screening criteria are removed. This reduces the amount of data processing and improves the efficiency of material matching. Furthermore, it avoids pairing and assembling materials that do not meet the gap yield requirements, thus improving the accuracy of material matching.

[0260] Step 603: The server determines the matching value for each pairing combination based on the N mutual matching gaps corresponding to the N pairing combinations.

[0261] Optionally, the matching value for each pairing combination can be the same as the gap difference for that pairing combination. The gap difference is the absolute value of the difference between the mating gap and the design gap. The design gap is the space reserved between materials to ensure that they can be correctly assembled, operate, and meet their intended functions.

[0262] Here, for each pairing combination, the server can calculate a gap difference using the corresponding matching gap. That is, in step 603, the server can calculate N gap differences for N pairing combinations. Then, the server can determine the value of the gap difference for each pairing combination as the matching value for that pairing combination, thus obtaining the matching value for each pairing combination.

[0263] The following example illustrates the calculation process for the matching value of each pairing combination when the matching value and gap difference are the same. Let the dimensions of battery cover i be x. i The dimensions of the middle frame j are y j With a design gap of d, the matching value between the battery cover i and the middle frame j can be s. ij , and s ij The calculation formula can be shown in formula (1):

[0264] s ij =||x i -y j |-d| (1)

[0265] Step 604: The server selects the pairing with the smallest matching value from the N pairing combinations as the target pairing combination.

[0266] Here, the target pairing is the pairing that is about to be shipped out.

[0267] In this embodiment, since the matching value and the gap difference are the same, and the smaller the gap difference, the higher the matching degree of each material in the pairing combination when they are assembled, the target pairing combination with the smallest matching value is sent out for assembly, which can ensure the accuracy of material matching and thus improve the material assembly yield.

[0268] Considering that in practical applications, some materials often remain in the warehouse, even for a long time, in order to reduce the retention phenomenon, in this embodiment of the application, the server can perform material matching based on the retention degree of each material in the material warehouse.

[0269] For each material, the factors affecting the retention level of that material may include, but are not limited to, retention duration and the number of times it has been stored in the material warehouse. In other words, for each material, the retention data indicating the retention level of that material may include, but are not limited to, at least one of the following: retention duration and number of times it has been stored in the warehouse.

[0270] Among them, the dwell time indicates the length of time that the material stays in the material warehouse. The dwell time can be the time interval from the time the material enters the warehouse to the current time.

[0271] The waiting count refers to the number of times a material has been matched since it entered the warehouse. Taking battery cover 1 as an example, when battery cover 1 enters the warehouse, its waiting count is 0. If, after one matching operation, battery cover 1 has not left the warehouse, its waiting count is updated to 1. This continues until, after n matching operations, battery cover 1 has not left the warehouse, at which point its waiting count is updated to n. It's understandable that for any material, when it leaves the warehouse, the server can reset its waiting count to zero. For example, when battery cover 1 leaves the warehouse, the server can reset its waiting count to zero.

[0272] Optionally, for each pairing, the retention rate data (or first data item) indicating the retention rate of that pairing can be R, where R = 1 + α × (max[n(i), n(j)]). Here, α is the retention factor (or first coefficient), n(i) is the number of times one material in the pairing is stored, and n(j) is the number of times the other material in the pairing is stored. max[n(i), n(j)] is the maximum of the two storage counts.

[0273] Understandably, the formula for expressing the degree of lingering can also be in other forms. For example, the formula for expressing the degree of lingering can also be R=1+α×(average[n(i),n(j)]), where (average[n(i),n(j)]) is the average of the two waiting times.

[0274] Optionally, the matching value for each pair can be the ratio of the gap difference of the pair to the retention degree data of the pair.

[0275] Taking the pairing of battery cover i and middle frame j as an example, this paper illustrates the calculation process of the matching value for each pairing combination, where the matching value is the ratio of the gap difference to the retention degree data. If the size data of battery cover i is x... i The dimensions of the middle frame j are y j With a design gap of d, the matching value between the battery cover i and the middle frame j can be s. ij , and s ij The calculation formula can be shown in formula (2):

[0276]

[0277] Where, ||x i -y j |-d| represents the gap difference corresponding to the paired combination of battery cover i and middle frame j, |x i -y j| represents the mating gap between battery cover i and middle frame j, d represents the design gap, 1+α×(max[n(i),n(j)]) represents the retention level data, α represents the retention factor, n(i) represents the number of times battery cover i waits to be stored, and n(j) represents the number of times middle frame j waits to be stored. max[n(i),n(j)] is the maximum value of the two waiting times. The value of α is usually small, and the initial value of α is also relatively small; for example, the initial value of α can be a random number between 0 and 0.01.

[0278] Combining formula (2), it can be found that when the matching value is the ratio of the gap difference to the retention degree data, the greater the number of times each material in the pairing combination waits in the warehouse, the smaller the matching value, the greater the probability of the pairing combination leaving the warehouse (or simply the probability of leaving the warehouse), thus avoiding the long-term retention of materials in the material warehouse.

[0279] In some optional implementations, the server can first determine the third pairing with a higher retention rate from the N pairing combinations in step 603. Then, when determining the matching value of the third pairing combination, the server can use the ratio of the gap difference of that pairing combination to its retention rate data as the matching value for that pairing combination. When determining the matching values ​​of other pairing combinations, the server can use the gap difference of that pairing combination as its matching value. Here, "other pairing combinations" refers to pairing combinations other than the third pairing combination from the N pairing combinations.

[0280] In other words, the server only increases the exit probability for the third pairing combination. For example, it uses formula (2) to calculate the matching value of the third pairing combination and formula (1) to calculate the matching value of other pairing combinations. Understandably, by increasing the exit probability only for the third pairing combination, the server can specifically increase the exit probability of materials with a high degree of retention, which helps to further avoid materials from being retained in the material warehouse for a long time.

[0281] As an example, the third pairing combination can be the pairing combination with the highest number of waiting times. In other words, the probability of being released can be increased only for the pairing combination with the longest waiting time. The number of waiting times for a pairing combination can be determined by the number of waiting times for each material in that pairing combination. Taking the pairing combination of battery cover i and middle frame j as an example, if the number of waiting times for battery cover i is n(i) and the number of waiting times for middle frame j is n(j), then the number of waiting times for the pairing combination of battery cover i and middle frame j can be the largest of n(i) and n(j), or it can be the average of n(i) and n(j). It is understood that the specific process for determining the number of waiting times for a pairing combination is not limited in the embodiments of this application.

[0282] As another example, the third pairing combination can also be a pairing combination that has been waiting for more than a preset threshold. In other words, the probability of exiting a pairing combination that has been waiting for a relatively long time can be increased. Here, the preset threshold is a pre-set number of times, for example, the value of the preset threshold can be 10.

[0283] Further combining with the above formula (2), when the matching value is the ratio of the gap difference to the retention rate data, if the number of times each material in the pairing combination waits in the warehouse is greater, the matching value corresponding to the pairing combination will be smaller, that is, the probability of the pairing combination being released from the warehouse will be greater. In this case, it is easy for the compatibility between the materials in the pairing combination to be not very high, but when the retention rate of the pairing combination is large enough, the pairing combination will still be released from the warehouse, resulting in a low accuracy of material matching.

[0284] In some embodiments, to avoid the influence of the retention degree of each material in the pairing combination on the material matching result being too large, the retention factor can be adjusted. In this case, the server can also adjust the retention factor after step 604 above.

[0285] Here, the server adjusts the retention factor in a timely manner, which can weigh the retention degree of each material and the compatibility between materials, so as to prioritize the release of pairs with better compatibility and heavier retention.

[0286] Optionally, the server can adjust the retention factor using the following adjustment method 1.

[0287] The adjustment process for adjustment method 1 can be found in [link / reference]. Figure 8 .in, Figure 8 This is a schematic diagram of the process for adjusting the retention factor provided in an embodiment of this application.

[0288] like Figure 8 As shown, the adjustment process of adjustment method 1 may include the following steps 701 to 706.

[0289] Step 701: The server determines the first matching value for various pairing combinations. The first matching value is the matching value that takes into account the degree of retention.

[0290] Combining step 603 above, consider the matching value of the degree of retention, which is the ratio of the gap difference to the degree of retention data.

[0291] Here, the server can determine a first matching value for each pairing combination. That is, for N pairing combinations, N first matching values ​​can be determined.

[0292] Optionally, for each pairing combination, the server may use the above formula (2) to determine the first matching value of the pairing combination.

[0293] Step 702, the server determines the second matching value for various pairing combinations. The second matching value is the matching value without considering the degree of retention.

[0294] Combining step 603 above, the matching value and the gap difference are the same regardless of the degree of retention.

[0295] Here, the server can determine a second matching value for each pairing combination. That is, for N pairing combinations, N second matching values ​​can be determined.

[0296] Optionally, for each pairing combination, the server may use the above formula (1) to determine the second matching value for that pairing combination.

[0297] Step 703: The server sorts the various pairing combinations based on the values ​​of the first matching values ​​corresponding to each pairing combination, and obtains the first sorting value for each pairing combination.

[0298] Here, sorting the various pairing combinations can be implemented as follows: sorting the pairing combinations in ascending order of the first matching value. Alternatively, it can be implemented as follows: sorting the pairing combinations in descending order of the first matching value. That is to say, the sorting order of the various pairing combinations in step 703 can be either ascending or descending.

[0299] Step 704: The server sorts the various pairing combinations based on the values ​​of the second matching values ​​corresponding to each pairing combination, and obtains the second sorting value for each pairing combination.

[0300] Here, sorting the various pairing combinations can be implemented as follows: sorting the pairing combinations in ascending order of the second matching value. Alternatively, it can be implemented as follows: sorting the pairing combinations in descending order of the second matching value. That is to say, the sorting order of the various pairing combinations in step 704 can be either ascending or descending.

[0301] Understandably, the sorting order in step 703 is the same as the sorting order in step 704. For example, if step 703 sorts the pairs according to the first matching value in ascending order, then step 704 sorts the pairs according to the second matching value in ascending order.

[0302] It should be noted that when the sorting order in step 703 is the same as the sorting order in step 704, and both are sorted in ascending order of value, the smaller the matching value, the smaller the sorting value. Conversely, when the sorting order in step 703 is the same as the sorting order in step 704, and both are sorted in descending order of value, the smaller the matching value, the larger the sorting value.

[0303] Step 705: The server determines the sorting increments corresponding to each pairing combination.

[0304] For each pairing combination, the sorting increment is the difference between the second sorting value and the first sorting value.

[0305] Specifically, when the sorting order in step 703 is the same as the sorting order in step 704, and both are sorted in ascending order (i.e., in ascending order), the sorting increment is equal to the difference between the second sorting value and the first sorting value. When the sorting order in step 703 is the same as the sorting order in step 704, and both are sorted in descending order (i.e., in descending order), the sorting increment is equal to the difference between the first sorting value and the second sorting value.

[0306] Optionally, in step 705, the server can determine the sorting increment for some pairing combinations, or it can determine the sorting increment for all pairing combinations (see the N pairing combinations in step 603). As an example, the server can determine only the sorting increment for the pairing combination with the largest number of waiting times. The number of waiting times for a pairing combination can be determined by the number of waiting times for each material in that pairing combination. Taking the pairing combination of battery cover i and middle frame j as an example, if the number of waiting times for battery cover i is n(i) and the number of waiting times for middle frame j is n(j), then the number of waiting times for the pairing combination of battery cover i and middle frame j can be the largest of n(i) and n(j), or it can be the average of n(i) and n(j). It is understood that the specific process for determining the number of waiting times for a pairing combination is not limited in the embodiments of this application.

[0307] Step 706: The server adjusts the retention factor based on the sorting increment or first sorting value corresponding to each pairing combination.

[0308] Here, the server can select the pairing with the larger ranking increment (referred to as the second pairing) and adjust the retention factor based on this pairing and its ranking increment. In some scenarios, there can be one second pairing. In other scenarios, there can be multiple second pairings.

[0309] As an example, the second pairing could be the pairing with the largest corresponding sorting increment.

[0310] As another example, the second pairing can be the pairing with the largest number of waiting times.

[0311] As another example, the second pairing can be the pairing with the longest corresponding stay.

[0312] Optionally, the server can adjust the retention factor based on the following adjustment formula (3):

[0313]

[0314] Where α is the retention factor. p and m are constants, both positive numbers greater than 1. For example, p can be 50 and m can be 2. Δ is the sorting increment of the second pairing combination, and length is the total sorting quantity, which is the total number of pairing combinations or the total number of first sorting values, such as N (see N pairing combinations in step 603). Understandably, when there are multiple second pairing combinations, Δ can be the average of the sorting increments of multiple second pairing combinations.

[0315] From formula (3), it can be seen that the ratio of p+1 to p is greater than 1, while the ratio of p to p+1 is less than 1. The larger the value of p, the smaller the adjustment range of the retention factor each time, which means that fine-tuning of the retention factor can be achieved. The smaller the value of p, the larger the adjustment range of the retention factor each time, which means that coarse-tuning of the retention factor can be achieved.

[0316] Formula (3) also reveals that when the proportion of the ranking change of the second pairing combination in the total ranking is small, the value of the retention factor can be increased to appropriately increase the influence of retention degree on the material matching result. When the proportion of the ranking change of the second pairing combination in the total ranking is large, the value of the retention factor can be decreased to reduce the influence of retention degree on the material matching result. In this case, the influence of the retention degree of each material in the pairing combination on the material matching result can be avoided.

[0317] Optionally, if the sorting order in step 703 is the same as the sorting order in step 704, and both are sorted in ascending order of value, the server can also adjust the retention factor based on the following adjustment formula (4):

[0318]

[0319] Where α is the retention factor. p and m are constants, both positive numbers greater than 1. index is the first sort value of the second pairing combination. length is the total number of sorts.

[0320] From formula (4), it can be seen that when sorting the pairings according to the first matching value from smallest to largest, if the first ranking value of the second pairing is larger, it indicates that the first matching value of the second pairing is larger and the probability of leaving the warehouse is smaller. In this case, the value of the retention factor can be increased to appropriately increase the influence of the retention degree on the material matching result. If the first ranking value of the second pairing is smaller, it indicates that the first matching value of the second pairing is smaller and the probability of leaving the warehouse is larger. In this case, the value of the retention factor can be decreased to reduce the influence of the retention degree on the material matching result. That is, the embodiments of this application can avoid the retention degree of each material in the pairing combination from having too great an influence on the material matching result.

[0321] Optionally, when the sorting order in step 703 is the same as the sorting order in step 704, and both are sorted in descending order of value, the server can adjust the retention factor in the opposite way to the adjustment method shown in formula (4) above. For example, when the first sorting value of the second pairing combination is large, it indicates that the matching value of the second pairing combination is small and the probability of leaving the warehouse is large. At this time, the value of the retention factor is reduced to appropriately increase the influence of the retention degree on the material matching result. When the first sorting value of the second pairing combination is small, it indicates that the matching value of the second pairing combination is large and the probability of leaving the warehouse is small. At this time, the value of the first coefficient (also known as the retention factor) is increased to appropriately increase the influence of the retention degree on the material matching result.

[0322] Optionally, the server can also adjust the retention factor as follows: when the sorting increment of the second pairing combination is greater than a preset increment value, decrease the value of the retention factor; when the sorting increment is less than the preset increment value, increase the value of the retention factor, in order to avoid the retention degree of each material in the pairing combination having too much influence on the material matching result. The preset increment value can be a pre-set value, for example, 5.

[0323] It is understood that the above-listed methods for adjusting the retention factor, such as adjusting the retention factor based on adjustment formula (3) or adjustment formula (4), are merely examples and do not constitute a specific limitation on the methods for adjusting the retention factor involved in the material matching method provided in this application embodiment.

[0324] Step 410: The server sends a first matching result to the first material warehouse, which describes the target pairing combination.

[0325] Step 411: The server sends a second matching result to the second material warehouse, which describes the target pairing combination.

[0326] Optionally, the content of the first matching result may differ from the content of the second matching result. As an example, the first matching result may include only the information of the first material in the target pairing combination, such as only the SN code and / or compartment identifier of the battery cover, while the second matching result may include only the information of the second material in the target pairing combination, such as only the SN code and / or compartment identifier of the middle frame.

[0327] Optionally, the content of the first matching result can be the same as the content of the second matching result. In this case, both the first and second matching results include information about each material in the target pairing combination. For example, they can include the storage location information of the battery cover and the storage location information of the middle frame. The storage location information includes the SN code and the storage location identifier.

[0328] Optionally, after step 411 above, the server can also update the material information of each material based on the target pairing combination. For example, for any material, after the material is paired and shipped out of the warehouse, the server can update the material information of that material. For instance, it can delete the material information of that material, or it can add information indicating that it has been shipped out of the warehouse to the material information of that material.

[0329] In this embodiment, a smaller matching value generally indicates a smaller size difference between the materials in the pair, resulting in a higher degree of matching during assembly. By selecting the target pair with the smallest matching value for assembly, the accuracy of material matching can be ensured, thereby improving the material assembly yield. Furthermore, in actual material matching processes, some materials often remain in the warehouse, sometimes for extended periods. The server combines the degree of material retention in the warehouse with the material matching process to prevent prolonged material retention. In other words, this embodiment can ensure the accuracy of material matching while avoiding prolonged material retention in the warehouse, thus improving the material assembly yield.

[0330] In some optional implementations of the embodiments of this application, the material matching system (see...) Figure 1 The server in the illustrated material matching system can also communicate with terminal devices to display the material matching status to the user, thereby improving the user experience. The terminal devices can be tablets, mobile phones, wearable devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. This application does not limit the specific type of terminal device.

[0331] The following is combined with Figure 9 and Figure 10 This describes the interaction process between the terminal device and the server. Figure 9 This is a timing diagram illustrating the interaction between a terminal device and a server, as provided in an embodiment of this application. Figure 10 The interface effect diagram of the terminal device provided in the embodiment of this application is shown.

[0332] like Figure 9 As shown, the timing diagram of the interaction between the terminal device and the server may include the following steps:

[0333] Step 801: In response to the user's first operation, the terminal device sends a first request for a webpage link to the server.

[0334] Here, the first operation can be entering configuration information and confirming the page loading. The first request is used to request the webpage content corresponding to the configuration information.

[0335] Combination Figure 10 The terminal device's interface 900 may include a configuration area 901 and a configuration preview area 902. The configuration area 901 may include a query control 91g and multiple configuration controls, such as a first configuration control 91a, a second configuration control 91b, a third configuration control 91c, a fourth configuration control 91d, a fifth configuration control 91e, and a sixth configuration control 91f. The first configuration control 91a is used to configure location information, the second configuration control 91b is used to configure floor information, the third configuration control 91c is used to configure production line information, the fourth configuration control 91d is used to configure project information, the fifth configuration control 91e is used to configure stage information, and the sixth configuration control 91f is used to configure scheme information. Location information may indicate the building number where the material warehouse is located, such as building B4. Floor information may indicate the floor where the material warehouse is located, such as floor 1. Production line information may indicate the production line where the material warehouse is located, such as production line number 1. Project information may indicate the production project to which the material warehouse belongs, such as production project number Fa1. Stage information indicates which stage of the production project the current material matching is in, such as stage V3. Solution information indicates the solution used for the current material matching, such as solution A1.

[0336] Figure 10 In this configuration, the terminal device can respond to user input of configuration information in at least one configuration control in the configuration area 901, and display the contents of the configured information in the configuration preview area 902. Understandably, the input configuration information is used to find the corresponding material matching items (or production items). For example, Fa1 can be a matching item for the battery cover and the middle frame, T400 can be a matching item for the middle frame and the screen, and so on.

[0337] Combination Figure 10The terminal device interface 900 may also include a battery cover compartment area 903, a middle frame compartment area 904, and a first display area 905. The battery cover compartment area 903 displays the occupancy status of each compartment within the battery cover compartment. The middle frame compartment area 904 displays the occupancy status of each compartment within the middle frame compartment. The first display area 905 displays the pairing combinations in the pairing process and the matching result data for those combinations. The pairing combinations in the pairing process are the material combinations that are about to be shipped out.

[0338] Figure 10 In addition, the terminal device can further respond to the user's click query control 91g, obtain the data of the battery cover compartment and the middle frame compartment from the server, and display the data of the battery cover compartment and the middle frame compartment in the battery cover compartment area 903, the middle frame compartment area 904 and the first display area 905.

[0339] Combination Figure 10 In the battery cover compartment area 903, it can be seen that the battery cover compartment (that is, the first material compartment) has 40 compartments, namely compartment 1 to compartment 40. Among them, the icons of compartment 1 to compartment 40 are bold icons, indicating that compartment 1 to compartment 40 in the battery cover compartment are currently occupied, that is, battery covers are placed there.

[0340] Combination Figure 10 In the middle frame warehouse area 904, it can be seen that the middle frame warehouse (that is, the second material warehouse) has 10 storage locations, namely storage locations 1 to 10. Among them, the icons of storage locations 1 to 10 are bold icons, indicating that storage locations 1 to 10 in the middle frame warehouse are currently occupied, that is, they are occupied by middle frames.

[0341] Combination Figure 10 In the battery cover compartment area 903, the middle frame compartment area 904, and the first display area 905, it can be seen that the battery cover of compartment 9 is being paired with the middle frame of compartment 7. For clarity, the materials being paired are indicated by dashed lines in the battery cover compartment area 903 and the middle frame compartment area 904.

[0342] Combination Figure 10 The terminal device's interface 900 may also include a second display area 906. The terminal device can also respond to a user clicking on a blank area in the battery cover compartment area 903, displaying the overall fit of the battery cover in the second display area 906. Combined with... Figure 10 The content displayed in the second display area 906 can include the overall matching status of the battery cover, which may include the percentage of battery covers that have been matched (e.g., 86%) and the percentage of battery covers that have not been matched (e.g., 14%).

[0343] Optionally, the terminal device can also respond to the user clicking on a blank area in the middle frame compartment area 904 and display the overall matching status of the middle frame in the second display area 906.

[0344] Optionally, the terminal device can also respond to user clicks on a specific location on the interface 900, such as clicking a blank space in the battery cover compartment area 903 or a blank space in the mid-frame compartment area 904, displaying the overall matching status of one or more materials in the second display area 906, for example, simultaneously displaying the overall matching status of the battery cover and the mid-frame. The overall matching status of the materials includes the percentage of materials that have been matched and the percentage that have not been matched.

[0345] from Figure 10 It can be seen that users can intuitively check the progress of each material matching project through terminal devices, which helps to improve the user experience.

[0346] Understandable. Figure 10 The interface of the terminal device shown is merely an example and does not constitute any limitation on the interface of the terminal device provided in the embodiments of this application.

[0347] Combination Figure 10 In step 801 above, the first operation can be the operation of the user entering configuration information in at least one configuration control in the configuration area 901 and clicking the query control 91g.

[0348] Step 802: The server responds to the terminal device's request and establishes a connection with the terminal device.

[0349] Here, the connection between the server and the terminal device can be established using publicly available technologies, which will not be elaborated here.

[0350] Step 803: When the server and terminal device are successfully connected, the server sends the data of each material warehouse to the terminal device.

[0351] The data for the material warehouse may include, but is not limited to: the occupancy status of each storage location, materials about to be released from the warehouse, and the warehouse's overall status. The warehouse status includes ready and not ready states. Materials about to be released from the warehouse can be found in [reference needed]. Figure 10 The battery cover of compartment 9 and the middle frame of compartment 7 are shown in the image.

[0352] Step 804: The terminal device displays the data received from each material warehouse.

[0353] Here, combined Figure 10 The terminal device can display the data of each material compartment in the battery cover compartment area 903, the middle frame compartment area 904 and the first display area 905.

[0354] In step 805, the terminal device responds to the user's second operation by sending a second request for report data to the server.

[0355] Here, the second operation is used to request the first report. The first report can be any of several preset reports. Reports can be tables, graphs, etc., used to display data. Combined with... Figure 10 The second operation can be performed by the user clicking on a specific location on the interface 900, such as clicking on a blank location in the battery cover area 903.

[0356] The second request is used to request report data from the first report. Report data refers to a collection of data presented in tables, graphs, or other forms. As an example, the content of the second request could be "Report - Battery Cover - Overall Matching Status," used to request a report on the overall matching status of the battery cover. It is understood that this application embodiment does not specifically limit the content of the second request.

[0357] In step 805, the report data is related to the report requested by the second operation. For example, if the first report is a report on the overall matching status of a certain material, then the report data is data indicating the overall matching status of that material. As an example, the report data could be the percentage of that material that has been matched and the percentage that has not been matched. Combined with... Figure 10 The report data can be the data related to the graphs displayed in the second display area 906.

[0358] Step 806: The server responds to the second request by querying report data.

[0359] Here, the server can retrieve the report data corresponding to the second request from the database it is connected to.

[0360] It should be understood that the server can use publicly available solutions in related technologies to find data related to the request, which will not be elaborated here.

[0361] Step 807: The server sends the report data to the terminal device.

[0362] Step 808: The terminal device displays the first report based on the report data.

[0363] Here, the terminal device can use publicly available solutions based on relevant technologies to display report data in report form.

[0364] Combination Figure 9 and Figure 10 It can be seen that users can intuitively check the progress of each material matching project through terminal devices, which helps to improve the user experience.

[0365] Figure 11This is a schematic flowchart illustrating a material matching method provided in an embodiment of this application. See also... Figure 11 This method can be applied to servers (see...) Figure 1 The illustrated material matching system includes a server. Servers can be devices including, but are not limited to, laptops, tablets, personal computers, virtual reality devices, web servers, cloud servers, embedded devices, etc. This application does not limit the type of server.

[0366] like Figure 11 As shown, the material matching method may include the following steps 1101 to 1106.

[0367] It is understood that the above material matching method may include all of the steps in steps 1101 to 1106, or may include only some of them. It is also understood that the steps in the material matching method can be combined arbitrarily without conflict. As an optional embodiment of this application, the material matching method may be a scheme that includes only steps 1101 to 1104.

[0368] Step 1101: The server obtains the size data and retention data of each material among the multiple materials to be matched.

[0369] The retention data indicates the degree to which materials remain in the material warehouse. Retention data may include, but is not limited to, one or more of the following: retention duration and number of times materials are awaited for release. Retention duration indicates the length of time materials remain in the material warehouse, which can be the time interval from the moment the material enters the warehouse to the current moment. Number of times materials are awaited for release from the material warehouse indicates the number of times materials are waiting to be released.

[0370] For details, please refer to the material warehouse. Figure 1 The first material bin 103 and the second material bin 104 are shown, or see [other examples]. Figure 2 and Figure 3 The material warehouse shown, or see [link / reference] Figure 5 and Figure 10 The battery cover compartment and the middle frame compartment are shown.

[0371] In some optional implementations of the embodiments of this application, each of the N pairing combinations includes a first material and a second material, the first material being stored in a first material warehouse and the second material being stored in a second material warehouse. In step 1101 above, the server obtains the size data and retention data of each material among the multiple materials to be matched, including: in response to receiving a first ready signal from the first material warehouse and a second ready signal from the second material warehouse, obtaining the size data and retention data of each first material in the first material warehouse, and obtaining the size data and retention data of each second material in the second material warehouse.

[0372] The first ready signal can be found in [reference needed]. Figure 4 The first ready signal is shown in step 407. The second ready signal can be found in [reference needed]. Figure 4 The second ready signal is shown in step 408.

[0373] The ready signal is a signal indicating that the material warehouse is ready. It is understood that the embodiments of this application do not specifically limit the content and implementation form of the ready signal.

[0374] In this embodiment of the application, the server performs the material matching operation only when both the first and second material warehouses are ready, which can ensure the orderly progress of material matching.

[0375] In some embodiments, the operating modes of each material bin may include a normal mode and a clearing mode.

[0376] See Figure 5 In mode area 505, when the material silo is in normal mode, option 5a is selected; when the material silo is in cleaning mode, option 5b is selected.

[0377] When the quantity of materials in the material warehouse reaches a preset threshold, the system enters a normal mode. In normal mode, the quantity of materials in the warehouse remains stable; that is, after one material is removed from the warehouse, another material is immediately added back in. The preset threshold is a pre-defined value and is an integer greater than 1. It is understood that the preset thresholds for different material warehouses can be the same or different, and this embodiment does not specifically limit this.

[0378] In situations where the material warehouse cannot receive timely replenishment, such as when there is no material available, the material warehouse can enter a clearing mode. While in clearing mode, the amount of material in the warehouse will gradually decrease as materials are matched and discharged.

[0379] In this embodiment, on the one hand, a larger quantity of materials in the material warehouse ensures higher accuracy in material matching, thus improving the yield during material assembly. However, excessive material quantity in the warehouse reduces the material matching speed. Therefore, maintaining the quantity of materials in the warehouse at a stable value, such as a first quantity threshold, balances accuracy and efficiency in material matching. On the other hand, since situations where materials are unavailable for replenishment frequently occur, the material warehouse can perform material matching and dispensing when the quantity is stable, and can also dispense remaining materials when the quantity is insufficient, ensuring high material utilization.

[0380] In some embodiments, the material warehouse can respond to a user's operation to switch the working mode, switching the working mode of the material warehouse from one mode to another, such as switching from the normal mode to the clearing mode.

[0381] See here. Figure 5 Switching between working modes can be done by clicking option 5a (normal mode) or option 5b (cleaning mode).

[0382] In some embodiments, the material silo entering the clearing mode may include: when the material quantity is lower than a preset quantity threshold, the material silo automatically switches its working mode from the normal mode to the clearing mode.

[0383] In other embodiments, the material silo entering the clearing mode may include: when the material quantity falls below the aforementioned preset quantity threshold, the material silo outputs a prompt message indicating a switch to a different operating mode. In response to the user's first switching operation, the material silo switches its operating mode from the normal mode to the clearing mode. The first switching operation is the operation of switching from the normal mode to the clearing mode. See also... Figure 5 The first switching operation can be the operation of clicking the material clearing mode option 5b.

[0384] Optionally, there can be multiple first material warehouses. There can also be multiple second material warehouses. In other words, the same material can be stored in multiple material warehouses.

[0385] Optionally, the first and second material warehouses can be the same warehouse. This warehouse can have multiple partitions, some of which are used to store the first material and others to store the second material. In other words, a single warehouse can hold multiple materials.

[0386] In some embodiments, the first material warehouse may send a first ready signal to the server when a first preset condition is met (see [link to relevant documentation]). Figure 4 (The first ready signal shown in step 407). Here, the first preset condition is a pre-set condition that can trigger the first material warehouse to send a ready signal to the server.

[0387] Optionally, the first preset condition may include, but is not limited to, any one of the following first and second items.

[0388] The first condition is that the quantity of material in the first material warehouse is equal to a first quantity threshold. Here, the first quantity threshold is a pre-set value, and it is an integer greater than 1. For example, the first quantity threshold could be 40.

[0389] Second, the first material warehouse is in clearing mode. See also... Figure 5When the first material bin is in cleaning mode, the cleaning mode option 5b displayed on the interface of the first material bin is selected.

[0390] In some embodiments, the second material warehouse may send a second ready signal to the server when a second preset condition is met (see [link to relevant documentation]). Figure 4 (The second ready signal shown in step 408). The second preset condition is a pre-set condition that can trigger the second material warehouse to send a ready signal to the server.

[0391] Optionally, the second preset condition may include, but is not limited to, any one of the following third and fourth items.

[0392] Thirdly, the quantity of material in the second material warehouse is equal to the second quantity threshold. The second quantity threshold is a pre-set value and is an integer greater than 1. For example, the second quantity threshold could be 10.

[0393] Fourthly, the second material warehouse is in clearing mode. See also... Figure 5 When the second material bin is in cleaning mode, the cleaning mode option 5b displayed on the interface of the second material bin is selected.

[0394] It is understood that the second quantity threshold and the first quantity threshold may be the same or different. The embodiments of this application do not limit the specific values ​​of the first quantity threshold and the second quantity threshold.

[0395] In some embodiments, among multiple material bins corresponding to multiple materials to be matched, if some material bins are depleted while others are not, some or all of the material bins can output a prompt message, such as playing an audio message indicating that the material is depleted. This allows the user to take timely action based on the prompt. For example, the user can promptly replenish the depleted material bins to continue material matching. Alternatively, the user can remove all the material from the remaining material bins to stop material matching.

[0396] In some embodiments, each material warehouse can display the occupancy status of each location within the warehouse and the occupancy status of each location in other material warehouses.

[0397] See Figure 5 The battery cover compartment interface can simultaneously display the battery cover compartment area 502 and the middle frame compartment area 503. The battery cover compartment area 502 displays the occupancy status of each compartment in the battery cover compartment, and the middle frame compartment area 503 displays the occupancy status of each compartment in the middle frame compartment.

[0398] In this context, "other material warehouses" refers to material warehouses other than this material warehouse among multiple material warehouses. For example, if multiple materials to be matched are stored in multiple material warehouses, and these multiple material warehouses are designated as the first material warehouse and the second material warehouse, then for the first material warehouse, this material warehouse is the first material warehouse, and the other material warehouses are designated as the second material warehouse.

[0399] Step 1102: The server determines N possible pairing combinations of multiple materials based on the material pairing rules.

[0400] Where N is a positive integer. See also Figure 7 N can be the product of the quantity of materials in the first material warehouse and the quantity of materials in the second material warehouse. The quantity of materials in the first material warehouse is 64, and the quantity of materials in the second material warehouse is 64.

[0401] The material pairing rules are pre-defined rules for pairing materials. These rules can include the type of material and the quantity of each material. For example, a material pairing rule could pair a battery cover with a mid-frame.

[0402] To give another example, if there are 8 materials to be matched, of which 3 are of the first type and 5 are of the second type, and the material pairing rule is that 1 material of the first type is paired with 1 material of the second type, then the value of N can be 15, where 15 equals 3 multiplied by 5.

[0403] For the operation in step 1102, please refer to [link / reference]. Figure 6 The embodiment section corresponding to steps 601 to 602 in the example.

[0404] Step 1103: The server determines the matching value of the first pairing combination based on the size data and retention data of each material in the first pairing combination.

[0405] The first pairing is any one of the N pairing combinations.

[0406] The matching value of the first pairing combination is positively correlated with the size difference of each material in the first pairing combination, and negatively correlated with the retention degree of each material in the first pairing combination.

[0407] For the operation in step 1103, please refer to [link / reference]. Figure 6 The embodiment section corresponding to step 603 in the text.

[0408] Understandably, the size differences between the materials in the first pairing can be calculated using the size data of each material.

[0409] In some optional implementations of the embodiments of this application, step 1103, in which the server determines the matching value of the first pairing combination based on the size data and retention data of each material in the first pairing combination, may include the following steps one to three:

[0410] Step 1: The server determines the gap difference of the first pairing combination based on the size data of each material in the first pairing combination.

[0411] Wherein, the gap difference of the first pairing combination is the absolute value of the difference between the first gap data and the expected gap data.

[0412] The first gap data indicates the size of the gap that will be formed when the materials in the first pairing are assembled.

[0413] The expected gap data indicates the required gap size for the assembly of each material in the first pairing combination. The required gap for the assembly of each material is the expected gap. The expected gap can also be called the assembly design gap or design gap.

[0414] In some optional implementations of the embodiments of this application, in step one above, the server determines the matching value of the first pairing combination based on the gap difference of the first pairing combination and the target retention data. This may include: the server determining the matching value of the first pairing combination as the ratio of the gap difference of the first pairing combination to the first data item. The first data item may include the sum of a first preset value and a first product. The first product is the product of a first coefficient and the target retention data of the first pairing combination. The first preset value is greater than or equal to 1, and the first coefficient is a positive number.

[0415] The first preset value is a pre-set value, such as 1.

[0416] Optionally, the server may determine the matching value of each pairing combination in the following way: if the pairing combination is the third pairing combination, then the matching value of the pairing combination is determined as the ratio of the gap difference to the first data item; if the pairing combination is not the third pairing combination, then the matching value of the pairing combination is determined as the gap difference. Here, the third pairing combination is the pairing combination with the largest retention rate among the N pairing combinations.

[0417] For the same pairing combination, the first matching value must be less than the second matching value. The first matching value is equal to the ratio of the gap difference to the first data item, and the second matching value is equal to the gap difference. Furthermore, since a smaller matching value for a pairing combination increases the probability of it leaving the warehouse, setting the matching value of the pairing combination as the ratio of the gap difference to the first data item can improve the probability of the pairing combination leaving the warehouse. Therefore, by only increasing the probability of leaving the warehouse for the third pairing combination, the server can specifically increase the probability of leaving materials with higher retention rates, helping to further prevent materials from remaining in the warehouse for extended periods.

[0418] As an example, the third pairing can be the pairing with the highest number of waiting times. In other words, the probability of warehouse release can be increased only for the pairing with the longest waiting time. The number of waiting times for a pairing can be determined by the number of waiting times for each material in that pairing. For example, the maximum number of waiting times for each material in the pairing can be determined as the total number of waiting times for the pairing. It is understood that this application does not limit the specific process for determining the number of waiting times for a pairing.

[0419] As another example, the third pairing combination can also be a pairing combination whose corresponding waiting number of times exceeds a preset threshold. In other words, the probability of exiting a pairing combination that has been waiting for a relatively long time can be increased. Here, the preset threshold is a pre-set number of times; for example, the preset threshold can be 10.

[0420] Step 2: The server determines the target retention data for the first pairing combination based on the retention data of each material in the first pairing combination.

[0421] The target retention data refers to the retention data corresponding to the paired combination. The target retention data indicates the retention level of the paired combination. As an example, the server can determine the retention data of any one material in a paired combination as the retention data (i.e., the target retention data) for that paired combination.

[0422] In some optional implementations of the embodiments of this application, in step two above, determining the target retention data of the first pairing combination based on the retention data of each material in the first pairing combination may include, but is not limited to, any one of the following methods one to three.

[0423] Method 1: The maximum value among the retention data of each material in the first pairing combination is determined as the target retention data of the first pairing combination.

[0424] Method 2: The average value of the retention data of each material in the first pairing combination is determined as the target retention data of the first pairing combination.

[0425] Method 3: The sum of the retention data of each material in the first pairing combination is determined as the target retention data of the first pairing combination.

[0426] The target retention data refers to the retention data corresponding to the paired combination. The target retention data can indicate the retention level of the entire paired combination.

[0427] In this embodiment of the application, for each pairing combination, the server can use the retention data of each material in the pairing combination to calculate the retention data corresponding to the entire pairing combination, which is the target retention data.

[0428] As an example, if the inventory retention data for each material includes the number of times it waits to be stored, and each pairing includes two materials, material one and material two, with material one having a waiting count of "first waiting count" and material two having a waiting count of "second waiting count," then, based on method one above, the target inventory retention data for the pairing is the maximum of the first and second waiting counts. Based on method two above, the target inventory retention data for the pairing is the average of the first and second waiting counts. Based on method three above, the target inventory retention data for the pairing is the sum of the first and second waiting counts.

[0429] As another example, if the retention data for each material includes retention time, and each pairing includes two materials, material 1 and material 2, with material 1 having a retention time of 1 and material 2 having a retention time of 2. In this case, based on method one above, the target retention data for the pairing is the maximum of the first and second retention times. Based on method two above, the target retention data for the pairing is the average of the first and second retention times. Based on method three above, the target retention data for the pairing is the sum of the first and second retention times.

[0430] As another example, if the retention data for each material includes the number of times it waits to be stored and the duration of its storage, the retention data can be represented as a vector containing the number of times it waits to be stored and the duration of its storage. If each pairing includes two materials, material one and material two, the retention data for material one can be represented as a first vector, and the retention data for material two can be represented as a second vector. In this case, based on method one above, the target retention data for the pairing is the maximum value between the first and second vectors. Based on method two above, the target retention data for the pairing is the average of the first and second vectors. Based on method three above, the target retention data for the pairing is the sum of the first and second vectors.

[0431] It is understood that the above-listed methods for determining the target retention data of pairing combinations are merely examples and are not specific limitations on how to determine the target retention data of pairing combinations in the embodiments of this application.

[0432] Step 3: The server determines the matching value of the first pairing combination based on the gap difference of the first pairing combination and the target retention data.

[0433] Specifically, the matching value of the first pairing combination is positively correlated with the gap difference of the first pairing combination, and negatively correlated with the target retention data of the first pairing combination. In other words, for each pairing combination, the smaller the gap difference of the pairing combination, the smaller the matching value of the pairing combination; and the larger the target retention data of the pairing combination, the smaller the matching value of the pairing combination.

[0434] Understandably, dimensional data can include one or more elements. For example, dimensional data can include one or more of the following: length, width, height, diameter, inner diameter, and outer diameter.

[0435] As an example, when the size data for each material includes multiple elements, if there are two materials in each pairing combination, the server can calculate the gap data between the two paired materials as follows: The server can calculate the absolute difference corresponding to each element separately, and then determine the mean or maximum value of the absolute differences as the gap data between the two materials. Here, the absolute difference between the two data points is the absolute value of the difference between the two data points.

[0436] As another example, when the size data for each material includes multiple elements, the size data can be implemented as a vector. If there are two materials in each pairing combination, the server can calculate the gap data between the two paired materials as follows: the server can determine the gap data between the two materials by the absolute value of the difference between the two vectors.

[0437] It should be understood that the embodiments of this application do not specifically limit how to calculate the gap data between two paired materials.

[0438] Optionally, when there are more than two materials in a pairing combination, when calculating the gap data (i.e., the first gap data) corresponding to the pairing combination, the gap data between each pair of materials can be calculated first, and then the first gap data corresponding to the pairing combination can be calculated using the obtained multiple gap data. For example, the sum of multiple gap data can be determined as the gap data corresponding to the pairing combination.

[0439] In this embodiment, the gaps between multiple materials in a pair assembly (referred to as assembly gaps) typically need to meet certain requirements. If the gaps are too large or too small, poor assembly gaps may occur. Generally, the smaller the difference between the assembly gap and the desired gap (or design gap), the better. This difference is reflected in the gap difference value; that is, the smaller the gap difference of the pairing combination, the better the assembly effect between the materials in that pairing combination. Furthermore, since the matching value is positively correlated with the gap difference of the pairing combination and negatively correlated with the retention degree of the pairing combination, and the target pairing combination is the pairing combination with the smallest matching value—meaning the target pairing combination has a good assembly effect and a large retention degree—outbound assembly of the target pairing combination can further ensure the accuracy of material matching while avoiding long-term retention of materials in the material warehouse, thereby improving the material assembly yield.

[0440] Step 1104: The server determines the pairing with the smallest matching value among the N pairing combinations as the target pairing combination, which is the pairing combination to be assembled in this shipment.

[0441] Here, the operation of step 1104 can be found in [reference]. Figure 6 The embodiment section corresponding to step 604 in the text.

[0442] In this embodiment, since the matching value is positively correlated with the size difference of each material in the pairing combination and negatively correlated with the retention degree of each material in the pairing combination, that is, the target pairing combination is a pairing combination with small size differences between each material and large retention degree. Therefore, assembling the target pairing combination out of the warehouse can ensure the accuracy of material matching while avoiding long-term retention of materials in the material warehouse, thereby improving the material assembly yield.

[0443] Step 1105: The server determines the second pairing combination from the N pairing combinations based on the combination information of each pairing combination in the N pairing combinations.

[0444] The combined information includes one or more of the following: target retention data, a first ranking value, and a second ranking value. The first ranking value is determined based on the first ranking rule and the matching value of each paired combination. The second ranking value is determined based on the second ranking rule and the gap difference of each paired combination.

[0445] The first sorting rule and the second sorting rule are compatible. When the first sorting rule is a descending order, the second sorting rule is also a descending order. When the first sorting rule is an ascending order, the second sorting rule is also an ascending order. Specifically, if the first sorting rule sorts the N pairs of combinations in ascending order of matching values, then the second sorting rule sorts the N pairs of combinations in ascending order of gap differences. If the first sorting rule sorts the N pairs of combinations in descending order of matching values, then the second sorting rule sorts the N pairs of combinations in descending order of gap differences.

[0446] The second pairing is typically a pairing with a higher degree of retention. There can be one or more second pairings; the number of second pairings is not limited in this embodiment.

[0447] Here, the server can sort the N pairs of pairs based on the matching value of each pair, thus obtaining a sort value for each pair, denoted as the first sort value. The server can also sort the N pairs of pairs based on the gap difference of each pair, thus obtaining a sort value for each pair, denoted as the second sort value.

[0448] Optionally, both the first and second sorting rules can be either descending or ascending order.

[0449] It should be noted that the first sorting rule and the second sorting rule have the same arrangement rules. This allows for a direct representation of the impact of the retention rate of a paired combination on its exit probability through the first and second sorting values. This helps to adjust the first coefficient when the retention rate has a significant impact on the exit probability, thus reducing its influence, and conversely, when the retention rate has a small impact, thus increasing its influence. In other words, the identical arrangement rules of the first and second sorting rules ensure accurate and effective adjustment of the first coefficient.

[0450] In some optional implementations of the embodiments of this application, the server determines the second pairing combination from the N pairing combinations based on the combination information of each pairing combination in the N pairing combinations. This may include: taking the pairing combination with the largest target retention data among the N pairing combinations as the second pairing combination.

[0451] Here, the pair with the largest target retention data indicates a severe retention rate for that pair, and the retention rate typically has a significant impact on the exit probability of that pair. The pair with the largest target retention data is selected as the second pair, making it highly representative and requiring less data processing. This helps to improve material matching efficiency while ensuring accurate and effective adjustment of the first coefficient.

[0452] As an example, if the target pending data includes the number of pending transactions, then the pair with the highest number of pending transactions can be used as the second pair.

[0453] In some optional implementations of this application, the server determines a second pairing combination from the N pairing combinations based on the combination information of each pairing combination in the N pairing combinations. This may include: determining the sorting increment of each pairing combination based on the combination information of each pairing combination in the N pairing combinations. The sorting increment of a pairing combination is the absolute value of the difference between the first sorting value and the second sorting value of the pairing combination. The pairing combination with the largest sorting increment among the N pairing combinations is selected as the second pairing combination.

[0454] The sorting increment of a pair is the absolute value of the difference between the first sorting value and the second sorting value of the pair.

[0455] Here, the pairing combination with the largest ranking increment indicates that the retention rate of this pairing combination is relatively high, and the retention rate usually has a significant impact on the exit probability of this pairing combination. Taking the pairing combination with the largest ranking increment as the second pairing combination is more representative and requires less data processing, which helps to improve material matching efficiency while ensuring accurate and effective adjustment of the first coefficient.

[0456] Step 1106: The server adjusts the first coefficient based on the first sort value and / or the second sort value of the second pairing combination.

[0457] Here, the server can adjust the value of the first coefficient by combining the first sort value and / or the second sort value of the second pairing combination.

[0458] Here, the operations of steps 1105 to 1106 can be found in [reference needed]. Figure 8 The embodiment section corresponding to steps 701 to 706 in the example.

[0459] In this embodiment, since the matching value is the ratio of the gap difference to the first data item, as the retention degree of the paired combination increases, the matching value corresponding to the paired combination will gradually decrease, meaning the probability of the paired combination being released from the warehouse will gradually increase. In this case, it is easy for the compatibility between the materials in the paired combination to be not very high, but when the retention degree of the paired combination is large enough, the paired combination is still released from the warehouse, resulting in insufficient accuracy in material matching. In this embodiment, by continuously adjusting the first coefficient (i.e., the retention factor), the influence of the retention degree of the paired combination on the release probability can be changed, thus avoiding an excessive impact of the retention degree of the paired combination on the material matching result.

[0460] In some optional implementations of this application, the server adjusts the first coefficient based on the first and / or second sorting values ​​of the second pairing combination. This adjustment may include: the server first determining the sorting increment of the second pairing combination based on the first and second sorting values. Then, in response to the sorting increment of the second pairing combination being less than a first data value, the first coefficient is increased. The first data value is positively correlated with N and is a positive number less than 1. In response to the sorting increment of the second pairing combination being equal to the first data value, the first coefficient remains unchanged. In response to the sorting increment of the second pairing combination being greater than the first data value, the first coefficient is decreased.

[0461] In this embodiment, when the sorting increment of the second pairing combination is small, the value of the first coefficient (also known as the retention factor) can be increased to appropriately increase the influence of retention degree on the material matching result. When the sorting increment of the second pairing combination is large, the value of the retention factor can be decreased to reduce the influence of retention degree on the material matching result. In this case, the influence of the retention degree of each material in the pairing combination on the material matching result can be avoided.

[0462] In some embodiments, increasing the first coefficient may include: switching the value of the first coefficient to the sum of the first coefficient and the first incremental data. The first incremental data is a preset data value, for example, 0.1.

[0463] In other embodiments, increasing the first coefficient may include switching the value of the first coefficient to the product of the first coefficient and the first adjustment parameter. The first adjustment parameter may be a value greater than 1, for example, 1.1. Referring to the aforementioned formulas (3) and (4), the first adjustment parameter may be p+1 divided by p, where p is a value greater than 1.

[0464] In some embodiments, reducing the first coefficient may include: switching the value of the first coefficient to the difference between the first coefficient and the first incremental data.

[0465] In other embodiments, reducing the first coefficient may include switching the value of the first coefficient to the product of the first coefficient and the second adjustment parameter. The second adjustment parameter can be a value greater than 0 and less than 1, for example, 0.98. Referring to the aforementioned formulas (3) and (4), the second adjustment parameter can be p divided by p+1, where p is a value greater than 1.

[0466] In some optional implementations of this application's embodiments, the first sorting rule is to sort each pairing combination in ascending order of matching values. The server adjusts the first coefficient based on the first and / or second sorting values ​​of the second pairing combination, including: increasing the first coefficient in response to the first sorting value of the second pairing combination being greater than the second data value, wherein the second data value is positively correlated with N; keeping the first coefficient unchanged in response to the first sorting value of the second pairing combination being equal to the second data value; and decreasing the first coefficient in response to the first sorting value of the second pairing combination being less than the second data value.

[0467] The first sorting rule ranks the pairs according to their matching values ​​from smallest to largest. In this case, a smaller first sorting value indicates a smaller matching value and a higher probability of exiting the position, meaning the degree of retention has a greater impact on the probability of exiting the position. Conversely, a larger first sorting value indicates a larger matching value and a lower probability of exiting the position, meaning the degree of retention has a smaller impact on the probability of exiting the position.

[0468] In this embodiment, when the pairings are sorted in ascending order of matching values, a larger first ranking value for the second pairing indicates a larger matching value and a lower probability of exiting the warehouse. In this case, the value of the retention factor can be increased to appropriately increase the impact of retention on the material matching result. Conversely, a smaller first ranking value for the second pairing indicates a smaller matching value and a higher probability of exiting the warehouse. In this case, the value of the first coefficient (also known as the retention factor) can be decreased to reduce the impact of retention on the material matching result. In other words, this embodiment can prevent the retention degree of each material in a pairing from having an excessive impact on the material matching result.

[0469] In some optional implementations of this application's embodiments, the first sorting rule is to sort each pairing combination in descending order of matching values. The server adjusts the first coefficient based on the first and / or second sorting values ​​of the second pairing combination, including: decreasing the first coefficient in response to the first sorting value of the second pairing combination being greater than the third data value, where the third data value is positively correlated with N; keeping the first coefficient unchanged in response to the first sorting value of the second pairing combination being equal to the third data value; and increasing the first coefficient in response to the first sorting value of the second pairing combination being less than the third data value.

[0470] The first sorting rule ranks the pairs in descending order of their matching values. In this case, a smaller first sorting value indicates a larger matching value and a lower probability of exiting the position, meaning the degree of retention has a smaller impact on the probability of exiting. Conversely, a larger first sorting value indicates a smaller matching value and a higher probability of exiting the position, meaning the degree of retention has a greater impact on the probability of exiting.

[0471] In this embodiment, when the pairings are sorted in descending order of matching values, if the first ranking value of the second pairing is large, it indicates that the matching value of the second pairing is small and the probability of leaving the warehouse is high. In this case, the value of the retention factor can be reduced to appropriately increase the impact of retention on the material matching result. If the first ranking value of the second pairing is small, it indicates that the matching value of the second pairing is large and the probability of leaving the warehouse is low. In this case, the value of the first coefficient (also known as the retention factor) can be increased to appropriately increase the impact of retention on the material matching result. That is, this embodiment can avoid the retention degree of each material in the pairings having an excessive impact on the material matching result.

[0472] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0473] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0474] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0475] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0476] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. It should also be understood that although the terms "first," "second," etc., are used in the text to describe various elements in some embodiments of this application, these elements should not be limited by these terms. These terms are merely used to distinguish one element from another.

[0477] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0478] The material matching method provided in this application can be applied to servers, which can be desktop computers, network servers, cloud servers, embedded devices, etc. This application does not limit the type of server.

[0479] To better understand the embodiments of this application, the following is combined with... Figure 12 The structure of the server in the embodiments of this application will be described.

[0480] Figure 12 This is a schematic diagram of the structure of a server provided in an embodiment of this application. The server includes at least one processor 111, a communication bus 112, a memory 113, and at least one communication interface 114.

[0481] The processor 111 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0482] The communication bus 112 may include a path for transmitting information between the aforementioned components.

[0483] Communication interface 114 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.

[0484] Memory 113 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory may exist independently and be connected to the processor via a bus. Memory may also be integrated with the processor.

[0485] The memory 113 stores the application code that executes the solution of this application, and its execution is controlled by the processor 111. The processor 111 executes the application code stored in the memory 113 to implement the material matching method in the above embodiments.

[0486] As one embodiment, processor 111 may include one or more CPUs, such as CPU 0 and CPU 1.

[0487] As one embodiment, the server may include multiple processors, such as Figure 12 The system contains two processors 111. Each processor can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.

[0488] As one embodiment, the server may also include an output device 115 and an input device 116. The output device 115 communicates with the processor 111 and can display information in various ways. For example, the output device 115 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc.

[0489] Input device 116 communicates with processor 111 and can accept user input in various ways. For example, input device 116 can be a mouse, keyboard, touch screen, or sensing device.

[0490] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the server. In other embodiments of this application, the server may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0491] Furthermore, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. In the various embodiments of this application, each functional unit can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0492] Furthermore, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. In the various embodiments of this application, each functional unit can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0493] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps described in the above-described method embodiments.

[0494] This application provides a computer program product that, when run on a server, enables the server to implement the steps described in the various method embodiments above.

[0495] This application also provides a chip system, which includes a processor coupled to a memory. The processor executes a computer program stored in the memory to implement the steps in the above-described method embodiments.

[0496] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0497] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0498] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0499] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0500] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A material matching method, characterized in that, The method includes: Obtain the size data and retention data of each material among multiple materials to be matched. The retention data indicates the degree of retention of the material in the material warehouse. The retention data includes one or more of the following: retention time and number of times the material waits to be shipped out of the material warehouse. Based on the material pairing rules, N pairing combinations of the multiple materials are determined, where N is a positive integer; Based on the size data and retention data of each material in the first pairing combination, the matching value of the first pairing combination is determined. The first pairing combination is any pairing combination among the N pairing combinations. The matching value of the first pairing combination is positively correlated with the size difference of each material in the first pairing combination, and negatively correlated with the retention degree of each material in the first pairing combination. The pairing combination with the smallest matching value among the N pairing combinations is determined as the target pairing combination, which is the pairing combination for this outbound assembly.

2. The material matching method according to claim 1, characterized in that, The step of determining the matching value of the first pairing combination based on the size data and retention data of each material in the first pairing combination includes: Based on the size data of each material in the first pairing combination, the gap difference of the first pairing combination is determined. The gap difference of the first pairing combination is the absolute value of the difference between the first gap data and the expected gap data. The first gap data indicates the size of the gap that will be formed when each material in the first pairing combination is assembled. Based on the retention data of each material in the first pairing combination, determine the target retention data of the first pairing combination; Based on the gap difference of the first pairing combination and the target retention data, the matching value of the first pairing combination is determined. The matching value of the first pairing combination is positively correlated with the gap difference of the first pairing combination, and negatively correlated with the target retention data of the first pairing combination.

3. The material matching method according to claim 2, characterized in that, The step of determining the target retention data for the first pairing combination based on the retention data of each material in the first pairing combination includes: The maximum value among the retention data of each material in the first pairing combination is determined as the target retention data of the first pairing combination; Alternatively, the average retention data of each material in the first pairing combination can be determined as the target retention data of the first pairing combination. Alternatively, the sum of the retention data of each material in the first pairing combination can be determined as the target retention data of the first pairing combination.

4. The material matching method according to claim 2, characterized in that, The step of determining the matching value of the first pairing combination based on the gap difference of the first pairing combination and the target retention data includes: The ratio of the gap difference of the first pairing combination to the first data item is determined as the matching value of the first pairing combination. The first data item includes the sum of a first preset value and a first product. The first product is the product of a first coefficient and the target retention data of the first pairing combination. The first preset value is greater than or equal to 1, and the first coefficient is a positive number.

5. The material matching method according to claim 4, characterized in that, After determining the pairing with the smallest matching value among the N pairing combinations as the target pairing combination, the method further includes: Based on the combination information of each pairing combination in the N pairing combinations, a second pairing combination is determined from the N pairing combinations, wherein the combination information includes one or more of the following: target retention data, a first ranking value, and a second ranking value; the first ranking value is determined based on a first ranking rule and the matching value of each pairing combination; the second ranking value is determined based on a second ranking rule and the gap difference of each pairing combination. The first coefficient is adjusted based on the first sort value and / or the second sort value of the second pairing combination.

6. The material matching method according to claim 5, characterized in that, Both the first sorting rule and the second sorting rule are either descending or ascending order.

7. The material matching method according to claim 5, characterized in that, The step of determining a second pairing combination from the N pairing combinations based on the combination information of each pairing combination in the N pairing combinations includes: The pairing combination with the largest target retention data among the N pairing combinations is selected as the second pairing combination.

8. The material matching method according to claim 5, characterized in that, The step of determining a second pairing combination from the N pairing combinations based on the combination information of each pairing combination in the N pairing combinations includes: Based on the combination information of each pairing combination in the N kinds of pairing combinations, the sorting increment of each pairing combination is determined, wherein the sorting increment of the pairing combination is the absolute value of the difference between the first sorting value and the second sorting value of the pairing combination. The pairing combination with the largest sorting increment among the N pairing combinations is selected as the second pairing combination.

9. The material matching method according to any one of claims 5-8, characterized in that, The adjustment of the first coefficient based on the first ranking value and / or the second ranking value of the second pairing combination includes: Based on the first and second sort values ​​of the second pairing combination, determine the sort increment of the second pairing combination; In response to the sorting increment of the second pairing combination being less than the first data value, the first coefficient is increased, and the first data value is positively correlated with N; In response to the sorting increment of the second pairing combination being equal to the first data value, the first coefficient remains unchanged; In response to the sorting increment of the second pairing combination being greater than the first data value, the first coefficient is reduced.

10. The material matching method according to any one of claims 5-8, characterized in that, The first sorting rule is to sort each pairing combination in ascending order of matching value; the step of adjusting the first coefficient based on the first sorting value and / or the second sorting value of the second pairing combination includes: In response to the first ranking value of the second pairing combination being greater than the second data value, the first coefficient is increased, and the second data value is positively correlated with N; In response to the first sorting value of the second pairing combination being equal to the second data value, the first coefficient remains unchanged; In response to the first sort value of the second pairing combination being less than the second data value, the first coefficient is reduced.

11. The material matching method according to any one of claims 5-8, characterized in that, The first sorting rule is to sort each pairing combination in descending order of matching value; the step of adjusting the first coefficient based on the first sorting value and / or the second sorting value of the second pairing combination includes: In response to the first ranking value of the second pairing combination being greater than the third data value, the first coefficient is reduced, wherein the third data value is positively correlated with N; In response to the first sorting value of the second pairing combination being equal to the third data value, the first coefficient remains unchanged; In response to the first sorting value of the second pairing combination being less than the third data value, the first coefficient is increased.

12. The material matching method according to any one of claims 1-11, characterized in that, Each of the N pairing combinations includes a first material and a second material, wherein the first material is stored in a first material warehouse and the second material is stored in a second material warehouse; the step of obtaining the size data and retention data of each material among the multiple materials to be matched includes: In response to receiving a first ready signal from the first material warehouse and a second ready signal from the second material warehouse, the system acquires the size data and retention data of each first material in the first material warehouse, and acquires the size data and retention data of each second material in the second material warehouse.

13. A server, characterized in that, The server includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the material matching method as described in any one of claims 1 to 12.

14. A chip system comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, The processor is used to execute the computer program to implement the material matching method as described in any one of claims 1 to 12.

15. A computer program product, characterized in that, When the computer program product is run on the server, it causes the server to perform the material matching method as described in any one of claims 1 to 12.