Attribute value determination method, device, non-volatile storage medium and computer equipment
By obtaining and analyzing the attribute data of the reference device, the attribute value of the target device is automatically determined, which solves the problem of time-consuming for backend personnel to manually enter the attribute data of the device and improves the installation efficiency and user experience of the Lightmao.
Patent Information
- Application Number
- CN202210743661.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-06-28
AI Technical Summary
Backstage personnel consume a lot of manpower when manually entering the device attribute data returned from the front line, resulting in reduced installation efficiency of Lightmax and affecting the user experience.
By obtaining multiple reference attribute data one by one with multiple reference devices, selecting highly representative device attributes, automatically obtaining the attribute value of the target device, and determining the remaining attribute values of the target device based on the reference data.
It realizes automatic and accurate determination of device attribute values, reduces the workload of manual entry by backend personnel, and improves the installation efficiency and user experience of Lightmao.
Smart Images

Figure CN114936849B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining an attribute value, a non-volatile storage medium, and a computer device. Background Art
[0002] When on-site installation and maintenance personnel go deep into residential areas, streets, and office buildings to install optical modems (i.e., optical modems) for fixed IP services, they usually notify the resident back-end staff of the various attribute values of the optical modem through telephone, text messages, or instant messaging software. The back-end staff needs to query the attribute values of the corresponding optical line terminal (OLT) in the background, and then flash the data containing the optical modem and the corresponding OLT attribute values to the OLT under the SecureCRT data generation system to complete the configuration.
[0003] When the staff uses the SecureCRT data generation system (a data generation and flashing software that supports multiple remote connection protocols such as SSH and Telnet) to fill in the attribute values of the optical modem and OLT, they need to manually fill in multiple attribute values one by one in the corresponding positions. Since the back-end staff usually face multiple on-site installers and the installation work period is busy, the back-end staff may receive multiple sets of device attribute values from multiple installers at the same time. It is difficult for the staff to complete the flashing of multiple sets of attribute values in a short time, which affects the efficiency of optical modem installation and thus affects the user experience.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method, apparatus, non-volatile storage medium and computer device for determining attribute values, so as to at least solve the technical problem of labor-consuming manual entry of attribute data of devices returned from the front line by backstage personnel.
[0006] According to one aspect of an embodiment of the present invention, there is provided a method for determining an attribute value, comprising: acquiring a plurality of reference attribute data corresponding one-to-one to a plurality of reference devices, wherein the plurality of reference attribute data are respectively used to record the attribute values of a plurality of device attributes of the corresponding reference devices; selecting a first attribute from the plurality of device attributes based on the plurality of reference attribute data; acquiring a first attribute value of a target device, wherein the first attribute value is the attribute value of the first attribute of the target device; determining a second attribute value corresponding to the target device based on the first attribute value and the plurality of reference attribute data, wherein the second attribute value is the attribute value of a second attribute, and the second attribute is an attribute included in the plurality of device attributes that is different from the first attribute.
[0007] Optionally, selecting the first attribute from the multiple device attributes based on the multiple reference attribute data includes: calculating representative indicators of each of the multiple device attributes based on the multiple reference attribute data, wherein the representative indicators include at least one of a concentration index, a correlation index and a distribution index, the concentration index is used to characterize the degree of concentration of attribute values of device attributes, the correlation index is used to characterize the degree of concentration of attribute values of the multiple device attributes other than the attributes corresponding to the correlation indicators, and the distribution index is used to characterize the proportion of the value range of the attribute values of the device attributes in the multiple reference attribute data to the theoretical value range of the device attributes; selecting the first attribute from the multiple device attributes based on the representative indicators of each of the multiple device attributes.
[0008] Optionally, selecting the first attribute from the multiple device attributes according to the representative indicators of each of the multiple device attributes includes: when the representative indicator includes multiple indicators, sorting the multiple device attributes according to the multiple indicators included in the representative indicator, and obtaining multiple initial sorting results that correspond one-to-one to the multiple indicators included in the representative indicator; calculating the average ranking of each of the multiple device attributes according to the multiple initial sorting results; and selecting the first attribute from the multiple device attributes according to the average ranking.
[0009] Optionally, determining the second attribute value corresponding to the target device based on the first attribute value and the multiple reference attribute data includes: judging whether the multiple reference attribute data include the first attribute value; in a case where the multiple reference attribute data include the first attribute value, calculating the concentration corresponding to the second attribute based on the multiple reference attribute data; in a case where the concentration of the second attribute is greater than a concentration threshold, determining the highest frequency value corresponding to the second attribute in the multiple reference attribute data as the second attribute value.
[0010] Optionally, the method further includes: obtaining actual attribute values of the target device, wherein the actual attribute values include attribute values of the multiple device attributes except the first attribute; and if the second attribute value does not match the actual attribute value, replacing the second attribute value according to the actual attribute value.
[0011] Optionally, the above method also includes: when the second attribute value includes multiple values, determining the replacement frequency of using the actual attribute value to replace the second attribute value; when the replacement frequency is greater than a replacement threshold, updating the multiple reference attribute data to obtain updated reference attribute data; based on the updated reference attribute data, selecting a third attribute from the multiple device attributes; when the first attribute is the same as the third attribute, issuing a prompt message, wherein the prompt message is used to prompt manual input of the attribute value corresponding to the third attribute of the target device.
[0012] Optionally, in the case where the type of the reference device and the target device is an optical line terminal, the multiple device attributes include at least one of the following: a frame, a slot, a port, an identification code of an optical modem, an inner virtual LAN, an outer virtual LAN, a product serial number, a media storage control address and an optical modem description.
[0013] According to another aspect of an embodiment of the present invention, there is also provided an attribute value determination device, comprising: a first acquisition module, used to acquire a plurality of reference attribute data corresponding one-to-one to a plurality of reference devices, wherein the plurality of reference attribute data are respectively used to record the attribute values of a plurality of device attributes of the corresponding reference devices; a selection module, used to select a first attribute from the plurality of device attributes according to the plurality of reference attribute data; a second acquisition module, used to acquire a first attribute value of a target device, wherein the first attribute value is the attribute value of the first attribute of the target device; a determination module, used to determine a second attribute value corresponding to the target device according to the first attribute value and the plurality of reference attribute data, wherein the second attribute value is the attribute value of a second attribute, and the second attribute is an attribute included in the plurality of device attributes and different from the first attribute.
[0014] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, wherein the non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned attribute value determination methods.
[0015] According to another aspect of the embodiments of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above-mentioned attribute value determination methods is executed.
[0016] In an embodiment of the present invention, by acquiring multiple reference attribute data corresponding to multiple reference devices one by one, wherein the multiple reference attribute data are respectively used to record the attribute values of multiple device attributes of the corresponding reference devices; selecting a first attribute from the multiple device attributes based on the multiple reference attribute data; acquiring the first attribute value of the target device, wherein the first attribute value is the attribute value of the first attribute of the target device; determining the second attribute value corresponding to the target device based on the first attribute value and the multiple reference attribute data, the purpose of automatically and relatively accurately determining the first attribute value is achieved, thereby achieving the technical effect of reducing the workload of backstage personnel in manually entering attribute data, and further solving the technical problem of manpower consumption when backstage personnel manually enter attribute data of devices returned from the front line. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 A hardware structure block diagram of a computer terminal for implementing a method for determining an attribute value is shown;
[0019] Figure 2 is a flow chart of a method for determining an attribute value according to an embodiment of the present invention;
[0020] Figure 3 is a schematic flow chart of a first attribute selection method provided according to an optional embodiment of the present invention;
[0021] Figure 4 is a structural block diagram of a device for determining a property value according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] According to an embodiment of the present invention, an embodiment of a method for determining an attribute value is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0025] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a method for determining an attribute value. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0026] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0027] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the attribute value determination method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the attribute value determination method of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0028] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0029] Figure 2 This is a flow chart of a method for determining an attribute value according to an embodiment of the present invention. This method can solve the problem of low input efficiency when operator staff manually input network attribute values of OLT. By generating a second attribute value and filling it into the position where the attribute value of the target device needs to be filled in the SecureCRT data generation system software, it can save the data entry time of the back-end staff, improve efficiency, and reduce the occurrence of errors. Figure 2 As shown, the method comprises the following steps:
[0030] Step S202 : acquiring a plurality of reference attribute data corresponding one-to-one to a plurality of reference devices, wherein the plurality of reference attribute data are respectively used to record attribute values of a plurality of device attributes of the corresponding reference devices.
[0031] Optionally, the reference device can be a device of the same type as the target device, for example, when the target device is an optical modem, the reference device is also an optical modem, or when the target device is an OLT, the reference device is also an OLT. The reference attribute data can be historical data retained when the staff previously entered attribute values for other devices. After the attribute values of the target device are entered according to the method of this embodiment, the attribute values of each device attribute of the target device can also be used as one of the reference attribute data for the next device.
[0032] Step S204, select a first attribute from multiple device attributes based on multiple reference attribute data. It should be noted that the first attribute can be a representative attribute among multiple device attributes, or a more critical attribute. By obtaining the attribute value of the first attribute of the target device, it is easier to match the remaining attributes of the target device with a higher accuracy. Optionally, the fill position corresponding to the first attribute can be highlighted in the SecureCRT data generation system software to prompt the backend staff to fill in the value there.
[0033] Step S206, obtaining the first attribute value of the target device, wherein the first attribute value is the attribute value of the first attribute of the target device. In this step, the first attribute value of the target device obtained may be the actual value of the first attribute of the target device determined by the back-end staff based on the photos taken by the front-line installer or the information in the returned text message. In this step, the first attribute value may be manually entered by the back-end staff as a basis for subsequently determining the second attribute value.
[0034] Step S208, determine the second attribute value corresponding to the target device based on the first attribute value and multiple reference attribute data, wherein the second attribute value is the attribute value of the second attribute, and the second attribute is an attribute different from the first attribute included in multiple device attributes. It should be noted that the second attribute value corresponding to the target device can be a predicted value determined based on multiple reference attribute data, and the value does not necessarily match the actual attribute value of the attribute of the target device. After obtaining the second attribute value through step S208, the system can automatically fill the second attribute value into the SecureCRT data generation system software and display it to the back-end staff for confirmation. If the back-end staff finds that the second attribute value does not match the actual attribute value of the target device, they can manually change it. If the two match, the back-end staff only needs to confirm it, and no longer needs to manually enter data, thereby reducing their workload and improving work efficiency.
[0035] Through the above steps, by obtaining multiple reference attribute data corresponding to multiple reference devices one by one, wherein the multiple reference attribute data are respectively used to record the attribute values of multiple device attributes of the corresponding reference devices; selecting a first attribute from multiple device attributes according to the multiple reference attribute data; obtaining the first attribute value of the target device, wherein the first attribute value is the attribute value of the first attribute of the target device; determining the second attribute value corresponding to the target device according to the first attribute value and the multiple reference attribute data, the purpose of automatically and relatively accurately determining the first attribute value is achieved, thereby achieving the technical effect of reducing the workload of back-end personnel in manually entering attribute data, and further solving the technical problem of manpower consumption when back-end personnel manually enter attribute data of devices returned from the front line.
[0036] As an optional embodiment, in the case where the types of the reference device and the target device are optical line terminals, the multiple device attributes include at least one of the following: frame, slot, port, optical modem (i.e. optical modem) identification code (abbreviated as ID), inner virtual local area network (abbreviated as inner VLAN), outer virtual local area network (abbreviated as outer VLAN), product serial number (abbreviated as SN code), media storage control address (abbreviated as MAC address) and optical modem description. Among them, the frame, slot and port are all frames, slots and ports of optical line terminals.
[0037] As an optional embodiment, selecting a first attribute from multiple device attributes based on multiple reference attribute data may include the following steps: calculating representative indicators of each of the multiple device attributes based on the multiple reference attribute data, wherein the representative indicators include at least one of a concentration index, a correlation index and a distribution index, the concentration index is used to characterize the degree of concentration of attribute values of the device attributes, the correlation index is used to characterize the degree of concentration of attribute values of the remaining attributes other than the attributes corresponding to the correlation indicators in the multiple device attributes, and the distribution index is used to characterize the proportion of the value range of the attribute values of the device attributes in the multiple reference attribute data to the theoretical value range of the device attributes; selecting a first attribute from the multiple device attributes based on the representative indicators of each of the multiple device attributes.
[0038] According to this optional embodiment, a specific embodiment for calculating the concentration index, correlation index and distribution index is proposed here. It should be noted that in addition to the following embodiments, the concentration index, correlation index and distribution index can also be calculated in other ways, and the embodiment shown below is not the only method.
[0039] First, for each device attribute, the correlation index of the attribute value can be determined according to the concentration degree of other attribute values of the attribute value of the device attribute at each specific value.
[0040] Table 1
[0041]
[0042]
[0043] Table 1 records multiple reference attribute data corresponding to multiple reference devices. Each reference attribute data includes attribute values of multiple device attributes such as frame, slot, port, ID, SN code, outer VLAN, inner VLAN and description. Each row corresponds to a reference device.
[0044] First, for the device attribute "frame", the device attribute includes three specific attribute values 1, 0, and 4 in the reference attribute data. When the attribute value "frame" is equal to 1, there are 5 sets of reference attribute data shown in Table 2.
[0045] Table 2
[0046]
[0047] Calculate the concentration levels C, C of the remaining device attributes (including slot, port, ID, SN code, outer VLAN, inner VLAN, and description) except for the device attribute "box". i =N s / N g Where N g Indicates the number of reference attribute data. As shown in the table above, when the attribute value of the attribute "box" is equal to 1, the reference attribute data is 5, so its N g Equals 5. s Indicates that the i-th remaining device attribute is in N g The maximum number of identical attribute values in a reference attribute data. As shown in the table above, in the five reference attribute data, the five attribute values of the device attribute "slot" are all 1, so its N s =5. The three values of the device attribute "ID" are 60 and the two values are 64, so its N s =3. The device attribute "Outer VLAN" has 4 values of 500 and 1 value of 505, so its N s =4. According to the above formula, the concentration levels of slot, port, ID, SN code, outer VLAN, inner VLAN, description and other device attributes are 1, 1, 0.6, 1, 0.8, 1, 1 respectively. Further, a threshold value of 0.75 can be pre-set to determine the number of device attributes greater than the threshold value. For this embodiment, the concentration levels of 6 remaining device attributes are greater than or equal to the threshold value 0.75. Therefore, when the attribute value of the device attribute "box" is equal to 1, the component of the corresponding correlation index is equal to 6.
[0048] Furthermore, the correlation index component is calculated when the attribute value of the device attribute "box" is equal to 0. When the attribute value of the device attribute "box" is equal to 0, there are the following 3 reference attribute data, as shown in Table 3.
[0049] Table 3
[0050]
[0051] In the same way, when the attribute value of the device attribute "box" is calculated to be equal to 0, the corresponding correlation index component is equal to 2.
[0052] When the attribute value of the device attribute "box" is equal to 4, there are a total of the following 4 reference attribute data.
[0053] Table 4
[0054]
[0055] In the same way, when the attribute value of the device attribute "box" is calculated to be 4, the corresponding correlation index component is equal to 3.
[0056] Finally, by averaging the multiple relevance index components of the device attribute "box", we can get the relevance index of the device attribute "box" equal to 3.67. In the same way, we can calculate the relevance index of device attributes such as slot, port, ID, SN code, outer VLAN, inner VLAN, and description.
[0057] It should be noted that the calculated correlation index can reflect the degree of correlation between a device attribute and other device attributes. The greater the degree of correlation between a device attribute and other device attributes, when the user enters the attribute value of the device attribute, it is easier for the system to match the values of other device attributes from the reference attribute data as historical data based on the value of the device attribute, and it can ensure that the matched values have high accuracy. For example, the device attribute "box" has a high degree of correlation with other device attributes. When the value entered for the device attribute "box" is 1, according to the reference attribute data, the value of the device attribute "slot" is likely to be 1, and the value of the device attribute "outer VLAN" is likely to be 500.
[0058] Optionally, the concentration index of the device attribute may be determined in the following manner.
[0059] The concentration index C of each device attribute is (N G -N S ) / N G , where N G Indicates the number of reference attribute data. According to Table 1, N G is equal to 12. SIndicates that for a certain device attribute, the device attribute is G How many values are there in the group? According to Table 1, the device attribute "box" has three specific values of 1, 0, and 4 in the 12 groups of device attributes, so its N S is equal to 3. According to the above formula, the concentration index of the device attribute "box" is equal to 0.75.
[0060] In the same way, the concentration index of device attributes such as slot, port, ID, SN code, outer VLAN, inner VLAN, and description can be calculated.
[0061] It should be noted that the calculated concentration index can reflect the concentration of device attributes. The higher the concentration index of device attributes, the more likely it is that when a user enters a new attribute value of the device attribute, the new attribute value is equal to the historical attribute value in the reference attribute data of the device attribute. Only when the new attribute value is equal to the historical attribute value can the specific attribute values of the remaining device attributes be matched based on the historical attribute value. If the new attribute value entered by the user is not equal to the historical attribute value, but a completely new attribute value (i.e., an attribute value that has not been recorded) is entered, the attribute values of the remaining device attributes cannot be matched from the historical attribute values based on the new attribute value.
[0062] Optionally, the distribution index of the device attribute may be determined in the following manner.
[0063] The distribution index of each device attribute D = N S / N A , where N A Indicates the theoretical range of possible values for device attributes. For example, based on the network configuration, assuming that the device attribute "box" can theoretically have seven values, 0, 1, 2, 3, 4, 5, and 6, then N A is equal to 7. S Indicates how many attribute values a device attribute has in multiple groups of device attributes. According to Table 1, the device attribute "box" has three specific attribute values of 1, 0, and 4 in 12 groups of device attributes, so its N S It is equal to 3. According to the above formula, the distribution index of the device attribute "box" is equal to 0.43.
[0064] In the same way, the distribution indicators of device attributes such as slot, port, ID, SN code, outer VLAN, inner VLAN, description, etc. can be calculated.
[0065] It should be noted that the calculated distribution index can reflect the distribution of historical device attributes within the theoretical value range. If the distribution index is very high, it means that the historical device attributes almost cover the theoretical fillable range, and the next time the user enters the device attribute, the possibility of entering a completely new value (i.e., a value that has never been recorded) for the device attribute is relatively low. In the present invention, only when the value entered by the user is a historical value can the specific values of the remaining device attributes be matched based on the historical value. If the new value entered by the user is not equal to the historical value, but is equal to a completely new value (i.e., a value that has not been recorded), the values of the remaining device attributes cannot be matched from the historical values based on the completely new value.
[0066] As an optional embodiment, a first attribute is selected from a plurality of device attributes according to respective representative indicators of the plurality of device attributes, including: when the representative indicator includes a plurality of indicators, the plurality of device attributes are sorted respectively according to the plurality of indicators included in the representative indicator, to obtain a plurality of initial sorting results corresponding one-to-one to the plurality of indicators included in the representative indicator; based on the plurality of initial sorting results, an average ranking of the plurality of device attributes is calculated; and based on the average ranking, a first attribute is selected from the plurality of device attributes.
[0067] Optionally, the correlation index of each device attribute may be sorted from large to small to obtain a first sorting result of each device attribute. The higher the sorting, the greater the first sorting result.
[0068] For each device attribute concentration index, the concentration index of each device attribute is sorted from large to small to obtain a second sorting result of each device attribute. The higher the ranking, the greater the second sorting result.
[0069] For each device attribute distribution indicator, the distribution indicator of each device attribute is sorted from large to small to obtain a third sorting result of each device attribute. The higher the ranking, the greater the third sorting result.
[0070] The multiple initial sorting results include the above-mentioned first sorting result, second sorting result and third sorting result. For each device attribute, the average of the first sorting result, second sorting result and third sorting result of the device attribute, that is, the average ranking, can be calculated to obtain the recommendation index of the device attribute, and then the first attribute is selected and highlighted based on the recommendation index, prompting the backend personnel to enter the attribute value of the first attribute.
[0071] As an optional embodiment, the second attribute value corresponding to the target device can be determined based on the first attribute value and multiple reference attribute data through the following process: determine whether the multiple reference attribute data include the first attribute value; when the multiple reference attribute data include the first attribute value, calculate the concentration corresponding to the second attribute based on the multiple reference attribute data; when the concentration of the second attribute is greater than the concentration threshold, determine the highest frequency value corresponding to the second attribute in the multiple reference attribute data as the second device attribute.
[0072] After the first attribute, i.e., the first attribute, is determined, the filling position of the first attribute can be highlighted to prompt the user to fill in the first attribute first. After the system detects the value of the first attribute entered by the user, it first determines whether the value is a historical attribute value of the first attribute, i.e., whether the value has appeared in the reference attribute data. If so, the concentration of the remaining device attributes is obtained, and for the concentration greater than or equal to the concentration threshold of 0.75, the value with the most records is predicted as the attribute value corresponding to the second attribute to be entered by the user, and automatically filled.
[0073] For example, assuming that the first attribute is "box", and the value entered by the user is equal to 1, then when the device attribute "box" is equal to 1, the concentration indexes of the remaining device attributes such as slot, port, ID, SN code, outer VLAN, inner VLAN, and description are obtained: 1, 1, 0.6, 1, 0.8, 1, 1. Among them, the concentration of slot, port, SN code, outer VLAN, inner VLAN, and description is greater than the concentration threshold of 0.75, so the historical attribute value with the most records can be matched for slot, port, SN code, outer VLAN, inner VLAN, and description. Specifically, the slot is 3, the port is 2, the SN code is 123321, the outer VLAN is 500, the inner VLAN is 510, and the description is TC-11. Since the concentration of ID is equal to 0.6, which is less than the threshold of 0.75, in order to avoid matching inaccurate IDs and causing users to need to manually replace them, the system can not match the ID, so the background staff needs to manually enter the ID.
[0074] As an optional embodiment, the actual attribute value of the target device is obtained, wherein the actual attribute value includes attribute values of attributes other than the first attribute among multiple device attributes; when the second attribute value does not match the actual attribute value, the second attribute value is replaced according to the actual attribute value.
[0075] As an optional embodiment, when the second attribute value includes multiple values, determine the replacement frequency of using the actual attribute value to replace the second attribute value; when the replacement frequency is greater than the replacement threshold, update multiple reference attribute data to obtain updated reference attribute data; based on the updated reference attribute data, select a third attribute from multiple device attributes; when the first attribute is the same as the third attribute, issue a prompt message, wherein the prompt message is used to prompt manual input of the attribute value corresponding to the third attribute of the target device.
[0076] After the system helps the backend staff to automatically fill in the attribute values each time, it can detect the number of attribute values manually replaced by the backend staff, and then calculate the ratio of the number of replacements to the number of automatic fillings. Assume that the system helps the backend staff to automatically fill in the six attribute values of slot, port, SN code, outer VLAN, inner VLAN, and description, and the backend staff manually replaces the outer VLAN and inner VLAN attributes, so the ratio is 2 / 6, that is, 0.33.
[0077] Optionally, the above detection is performed continuously. When the replacement ratio of the backstage staff after automatic filling for N consecutive times (for example, 5 consecutive times) exceeds the replacement threshold (for example, the threshold is equal to 0.4), it is determined that the current selection of the first attribute is no longer appropriate. It is difficult to help the backstage staff automatically match the accurate values of the remaining attributes based on the current first attribute. Therefore, the latest accumulated reference attribute data, that is, the updated reference attribute data, can be obtained to redefine the new third attribute as the key attribute. If the re-determined third attribute is the same as the first attribute, it means that it is difficult to improve the prediction accuracy of the remaining attribute values by replacing the highlighted attribute. In order to avoid predicting a large number of inaccurate attribute values for the staff, which causes the backstage staff to need to be replaced frequently, the highlighting function and the automatic filling function can be automatically turned off when the third attribute is the same as the first attribute.
[0078] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0079] Through the description of the above implementation methods, those skilled in the art can clearly understand that the attribute value determination method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.
[0080] According to the latest accumulated historical values, the attribute value comparison algorithm is executed to determine the target attribute value. When the user needs to enter the attribute value, the filling position of the target attribute value is highlighted to prompt the user to fill in the target attribute value first. The system automatically matches and fills in the remaining attribute values according to the target attribute value manually filled in by the user. The user only needs to check / replace the remaining attribute values, which can significantly improve the efficiency of attribute value filling.
[0081] Figure 3 is a flow chart of a first attribute selection method provided according to an optional embodiment of the present invention. Figure 3 As shown, in the case where the representativeness includes the correlation index, the concentration index and the distribution index, the first attribute can be selected from the device attributes through the following process:
[0082] Step S1, for each device attribute, according to the concentration degree of other device attributes when the device attribute is at each specific value, determine the correlation index of the device attribute.
[0083] Step S2: for each device attribute, determine the concentration index of the device attribute according to the concentration degree of the device attribute itself.
[0084] Step S3, for each device attribute, according to the value distribution of the device attribute itself and the theoretical fillable range of the device attribute, determine the distribution index of the device attribute.
[0085] Step S4, calculating the recommendation index of each device attribute according to the correlation index, concentration index and distribution index of each device attribute, and taking the device attribute with the largest recommendation index as the target device attribute, that is, the first attribute.
[0086] The above solution can solve the problem that the operator staff manually inputs the optical modem data inefficiently and easily, which leads to the failure of data flashing. The present invention saves time, improves work efficiency, and reduces errors.
[0087] According to an embodiment of the present invention, there is also provided a property value determining device for implementing the above property value determining method. Figure 4 is a structural block diagram of a device for determining a property value according to an embodiment of the present invention. Figure 4 As shown, the attribute value determination device includes: a first acquisition module 42, a selection module 44, a second acquisition module 46 and a determination module 48. The attribute value determination device is described below.
[0088] A first acquisition module 42 is used to acquire a plurality of reference attribute data corresponding to a plurality of reference devices, wherein the plurality of reference attribute data are respectively used to record attribute values of a plurality of device attributes of the corresponding reference devices;
[0089] A selection module 44, connected to the first acquisition module 42, for selecting a first attribute from a plurality of device attributes according to a plurality of reference attribute data;
[0090] A second acquisition module 46, connected to the selection module 44, is used to acquire a first attribute value of the target device, wherein the first attribute value is an attribute value of a first attribute of the target device;
[0091] The determination module 48 is connected to the above-mentioned second acquisition module 46, and is used to determine the second attribute value corresponding to the target device according to the first attribute value and multiple reference attribute data, wherein the second attribute value is the attribute value of the second attribute, and the second attribute is an attribute different from the first attribute included in multiple device attributes.
[0092] It should be noted that the first acquisition module 42, the selection module 44, the second acquisition module 46 and the determination module 48 correspond to steps S202 to S208 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules as part of the device can be run in the computer terminal 10 provided in the embodiment.
[0093] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0094] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the attribute value determination method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned attribute value determination method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain multiple reference attribute data corresponding to multiple reference devices one by one, wherein the multiple reference attribute data are respectively used to record the attribute values of multiple device attributes of the corresponding reference devices; select a first attribute from multiple device attributes based on the multiple reference attribute data; obtain the first attribute value of the target device, wherein the first attribute value is the attribute value of the first attribute of the target device; determine the second attribute value corresponding to the target device based on the first attribute value and the multiple reference attribute data, wherein the second attribute value is the attribute value of the second attribute, and the second attribute is an attribute included in the multiple device attributes that is different from the first attribute.
[0096] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0097] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the attribute value determination method provided in the above embodiment.
[0098] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0099] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining a plurality of reference attribute data corresponding one-to-one to a plurality of reference devices, wherein the plurality of reference attribute data are respectively used to record attribute values of a plurality of device attributes of the corresponding reference devices; selecting a first attribute from a plurality of device attributes based on the plurality of reference attribute data; obtaining a first attribute value of a target device, wherein the first attribute value is an attribute value of the first attribute of the target device; determining a second attribute value corresponding to the target device based on the first attribute value and the plurality of reference attribute data, wherein the second attribute value is an attribute value of a second attribute, and the second attribute is an attribute included in the plurality of device attributes that is different from the first attribute.
[0100] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0101] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0102] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0104] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0106] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for determining an attribute value, characterized in that: include: Acquire a plurality of reference attribute data corresponding to a plurality of reference devices one by one, wherein the plurality of reference attribute data are respectively used to record attribute values of a plurality of device attributes of the corresponding reference devices; selecting a first attribute from the plurality of device attributes according to the plurality of reference attribute data; Acquire a first attribute value of a target device, wherein the first attribute value is an attribute value of the first attribute of the target device; Determine, according to the first attribute value and the plurality of reference attribute data, a second attribute value corresponding to the target device, wherein the second attribute value is an attribute value of a second attribute, and the second attribute is an attribute included in the plurality of device attributes and different from the first attribute; The selecting the first attribute from the multiple device attributes according to the multiple reference attribute data comprises: calculating representative indicators of the multiple device attributes respectively according to the multiple reference attribute data, wherein the representative indicators include at least one of a concentration indicator, a correlation indicator and a distribution indicator, the concentration indicator is used to characterize the concentration degree of the attribute values of the device attributes, the correlation indicator is used to characterize the concentration degree of the attribute values of the remaining attributes other than the attribute corresponding to the correlation indicator in the multiple device attributes, and the distribution indicator is used to characterize the proportion of the value range of the attribute value of the device attribute in the multiple reference attribute data to the theoretical value range of the device attribute; selecting the first attribute from the multiple device attributes according to the representative indicators of the multiple device attributes; The selecting the first attribute from the plurality of device attributes according to the respective representative indicators of the plurality of device attributes comprises: when the representative indicator comprises a plurality of indicators, sorting the plurality of device attributes respectively according to the plurality of indicators included in the representative indicator, and obtaining a plurality of initial sorting results corresponding to the plurality of indicators included in the representative indicator; calculating the average ranking of the plurality of device attributes according to the plurality of initial sorting results; and selecting the first attribute from the plurality of device attributes according to the average ranking; Determining the second attribute value corresponding to the target device according to the first attribute value and the plurality of reference attribute data includes: judging whether the plurality of reference attribute data includes the first attribute value; if the plurality of reference attribute data includes the first attribute value, calculating the concentration corresponding to the second attribute according to the plurality of reference attribute data; if the concentration of the second attribute is greater than a concentration threshold, determining the value with the highest frequency corresponding to the second attribute in the plurality of reference attribute data as the second attribute value; The method further includes: obtaining an actual attribute value of the target device, wherein the actual attribute value includes attribute values of the multiple device attributes except the first attribute; if the second attribute value does not match the actual attribute value, replacing the second attribute value according to the actual attribute value; It also includes: when the second attribute value includes multiple values, determining the replacement frequency of using the actual attribute value to replace the second attribute value; when the replacement frequency is greater than a replacement threshold, updating the multiple reference attribute data to obtain updated reference attribute data; based on the updated reference attribute data, selecting a third attribute from the multiple device attributes; when the first attribute is the same as the third attribute, issuing a prompt message, wherein the prompt message is used to prompt manual input of the attribute value corresponding to the third attribute of the target device.
2. The method according to claim 1, characterized in that In the case where the types of the reference device and the target device are optical line terminals, the multiple device attributes include at least one of the following: Frame, slot, port, optical modem identification code, inner VLAN, outer VLAN, product serial number, media storage control address and optical modem description.
3. A device for determining an attribute value, characterized in that: include: A first acquisition module is used to acquire a plurality of reference attribute data corresponding to a plurality of reference devices, wherein the plurality of reference attribute data are respectively used to record attribute values of a plurality of device attributes of the corresponding reference devices; A selection module, configured to select a first attribute from the plurality of device attributes according to the plurality of reference attribute data; A second acquisition module, configured to acquire a first attribute value of a target device, wherein the first attribute value is an attribute value of the first attribute of the target device; a determination module, configured to determine a second attribute value corresponding to the target device according to the first attribute value and the plurality of reference attribute data, wherein the second attribute value is an attribute value of a second attribute, and the second attribute is an attribute included in the plurality of device attributes and different from the first attribute; The selection module is further used to calculate representative indicators of the multiple device attributes according to the multiple reference attribute data, wherein the representative indicators include at least one of a concentration index, a correlation index and a distribution index, the concentration index is used to characterize the concentration degree of attribute values of the device attributes, the correlation index is used to characterize the concentration degree of attribute values of the remaining attributes other than the attributes corresponding to the correlation index in the multiple device attributes, and the distribution index is used to characterize the proportion of the value range of the attribute value of the device attribute in the multiple reference attribute data to the theoretical value range of the device attribute; the first attribute is selected from the multiple device attributes according to the representative indicators of the multiple device attributes; The device is further configured to, when the representative index includes multiple indexes, sort the multiple device attributes according to the multiple indexes included in the representative index, respectively, to obtain multiple initial sorting results corresponding to the multiple indexes included in the representative index; calculate the average ranking of each of the multiple device attributes according to the multiple initial sorting results; and select the first attribute from the multiple device attributes according to the average ranking; The determination module is configured to determine whether the plurality of reference attribute data include the first attribute value; if the plurality of reference attribute data include the first attribute value, calculate the concentration corresponding to the second attribute according to the plurality of reference attribute data; if the concentration of the second attribute is greater than a concentration threshold, determine the value with the highest frequency corresponding to the second attribute in the plurality of reference attribute data as the second attribute value; The apparatus is further configured to obtain an actual attribute value of the target device, wherein the actual attribute value includes attribute values of the multiple device attributes except the first attribute; if the second attribute value does not match the actual attribute value, replace the second attribute value according to the actual attribute value; The device is also used to, when the second attribute value includes multiple values, determine a replacement frequency of using the actual attribute value to replace the second attribute value; when the replacement frequency is greater than a replacement threshold, update the multiple reference attribute data to obtain updated reference attribute data; select a third attribute from the multiple device attributes based on the updated reference attribute data; and when the first attribute is the same as the third attribute, issue a prompt message, wherein the prompt message is used to prompt manual input of the attribute value corresponding to the third attribute of the target device.
4. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the attribute value determination method according to claim 1 or 2.
5. A computer device, characterized in that: The computer device comprises a processor, and the processor is used to run a program, wherein the program executes the attribute value determination method of claim 1 or 2 when running.
Citation Information
Patent Citations
Intelligent material attribute value filling method
CN111859878A
Filling method of input page and computer program product
CN113962202A