CN114867046B - Wireless network equipment firmware updating method and wireless network equipment - Google Patents
Wireless network equipment firmware updating method and wireless network equipment Download PDFInfo
- Publication number
- CN114867046B CN114867046B CN202210785749.6A CN202210785749A CN114867046B CN 114867046 B CN114867046 B CN 114867046B CN 202210785749 A CN202210785749 A CN 202210785749A CN 114867046 B CN114867046 B CN 114867046B
- Authority
- CN
- China
- Prior art keywords
- firmware
- information
- difference degree
- record information
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本申请提供的无线网络设备固件更新方法和无线网络设备,涉及无线网络设备技术领域。在本申请中,首先,获取目标服务器存储的第一固件版本号信息,其中,第一固件版本号信息与目标无线网络设备上安装的目标固件之间具有对应关系。其次,基于第一固件版本号信息和目标无线网络设备上安装的目标固件的第二固件版本号信息,确定是否对目标固件进行更新。然后,若确定需要对目标固件进行更新,则从目标服务器获取第一固件版本号信息对应的更新固件,其中,更新固件和目标固件属于同一无线网络设备固件的不同版本。最后,基于更新固件对目标固件执行更新操作。基于上述方法,可以改善现有技术中无线网络设备的更新过程存在成本较高和效率较低的问题。
The wireless network device firmware update method and wireless network device provided by the present application relate to the technical field of wireless network devices. In the present application, first, first firmware version number information stored in the target server is obtained, wherein the first firmware version number information and the target firmware installed on the target wireless network device have a corresponding relationship. Next, it is determined whether to update the target firmware based on the first firmware version information and the second firmware version information of the target firmware installed on the target wireless network device. Then, if it is determined that the target firmware needs to be updated, the update firmware corresponding to the first firmware version number information is obtained from the target server, wherein the update firmware and the target firmware belong to different versions of the same wireless network device firmware. Finally, an update operation is performed on the target firmware based on the update firmware. Based on the above method, the problems of high cost and low efficiency in the update process of the wireless network device in the prior art can be improved.
Description
技术领域technical field
本申请涉及无线网络设备技术领域,具体而言,涉及一种无线网络设备固件更新方法和无线网络设备。The present application relates to the technical field of wireless network devices, and in particular, to a method for updating firmware of wireless network devices and a wireless network device.
背景技术Background technique
在无线网络设备技术领域中,基于一定的需求,需要对无线网络设备中的固件进行更新。但是,经发明人研究发现,在现有技术中,一般是基于维护人员通过更新页面进行更新操作,以对无线网络设备中的固件进行更新,如此,使得存在更新的成本较高和效率较低的问题。In the technical field of wireless network devices, based on certain requirements, firmware in the wireless network device needs to be updated. However, the inventor found that, in the prior art, the maintenance personnel generally perform an update operation through the update page to update the firmware in the wireless network device, so that the cost of updating is relatively high and the efficiency is relatively low. The problem.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请的目的在于提供一种无线网络设备固件更新方法和无线网络设备,以改善现有技术中无线网络设备的更新过程存在成本较高和效率较低的问题。In view of this, the purpose of the present application is to provide a wireless network device firmware update method and wireless network device, so as to improve the problems of high cost and low efficiency in the update process of the wireless network device in the prior art.
为实现上述目的,本申请实施例采用如下技术方案:To achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
一种无线网络设备固件更新方法,应用于目标无线网络设备,该目标无线网络设备上安装有目标固件,所述无线网络设备固件更新方法包括:A wireless network device firmware update method, which is applied to a target wireless network device on which target firmware is installed, the wireless network device firmware update method comprising:
获取目标服务器存储的第一固件版本号信息,其中,所述第一固件版本号信息与所述目标无线网络设备上安装的目标固件之间具有对应关系;Obtaining the first firmware version number information stored by the target server, wherein the first firmware version number information has a corresponding relationship with the target firmware installed on the target wireless network device;
基于所述第一固件版本号信息和所述目标无线网络设备上安装的目标固件的第二固件版本号信息,确定是否对该目标固件进行更新,其中,所述第二固件版本号信息为所述目标无线网络设备上当前安装的目标固件的版本号信息;Determine whether to update the target firmware based on the first firmware version information and the second firmware version information of the target firmware installed on the target wireless network device, where the second firmware version information is all Describe the version number information of the target firmware currently installed on the target wireless network device;
若确定需要对所述目标固件进行更新,则从所述目标服务器获取所述第一固件版本号信息对应的更新固件,其中,该更新固件和所述目标固件属于同一无线网络设备固件的不同版本;If it is determined that the target firmware needs to be updated, the update firmware corresponding to the first firmware version number information is obtained from the target server, wherein the update firmware and the target firmware belong to different versions of the same wireless network device firmware ;
基于所述更新固件对所述目标固件执行更新操作。An update operation is performed on the target firmware based on the update firmware.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述基于所述第一固件版本号信息和所述目标无线网络设备上安装的目标固件的第二固件版本号信息,确定是否对该目标固件进行更新的步骤,包括:In a preferred option of the embodiment of the present application, in the above method for updating wireless network device firmware, the second firmware version number based on the first firmware version number information and the target firmware installed on the target wireless network device information to determine whether to update the target firmware, including:
判断所述第一固件版本号信息和所述目标无线网络设备上安装的目标固件的第二固件版本号信息是否相同;Determine whether the first firmware version number information is the same as the second firmware version number information of the target firmware installed on the target wireless network device;
若所述第一固件版本号信息和所述第二固件版本号信息相同,则确定不对所述目标固件进行更新。If the first firmware version number information and the second firmware version number information are the same, it is determined that the target firmware is not to be updated.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述基于所述第一固件版本号信息和所述目标无线网络设备上安装的目标固件的第二固件版本号信息,确定是否对该目标固件进行更新的步骤,还包括:In a preferred option of the embodiment of the present application, in the above method for updating wireless network device firmware, the second firmware version number based on the first firmware version number information and the target firmware installed on the target wireless network device information, the steps for determining whether to update the target firmware, further comprising:
若所述第一固件版本号信息和所述第二固件版本号信息不同,则确定需要对所述目标固件进行更新;或者If the first firmware version number information and the second firmware version number information are different, it is determined that the target firmware needs to be updated; or
若所述第一固件版本号信息和所述第二固件版本号信息不同,则从所述目标服务器获取所述第一固件版本号信息对应更新固件和所述第二固件版本号信息对应的目标固件之间的固件差异度,其中,该固件差异度用于表征所述更新固件和所述目标固件在多个维度上的差异,且该多个维度包括数据量维度、程序逻辑维度和程序内容维度;If the first firmware version number information and the second firmware version number information are different, acquiring the first firmware version number information from the target server corresponds to updating the target corresponding to the firmware and the second firmware version number information The firmware difference degree between firmwares, wherein the firmware difference degree is used to characterize the difference between the update firmware and the target firmware in multiple dimensions, and the multiple dimensions include data volume dimension, program logic dimension and program content dimension;
基于所述固件差异度确定是否对所述目标固件进行更新。Whether to update the target firmware is determined based on the firmware difference degree.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述基于所述固件差异度确定是否对所述目标固件进行更新的步骤,包括:In a preferred option of the embodiment of the present application, in the above method for updating wireless network device firmware, the step of determining whether to update the target firmware based on the firmware difference includes:
判断所述固件差异度是否大于预设的差异度阈值;Judging whether the firmware difference degree is greater than a preset difference degree threshold;
若所述固件差异度小于或等于所述差异度阈值,则确定不对所述目标固件进行更新;If the firmware difference degree is less than or equal to the difference degree threshold, it is determined not to update the target firmware;
若所述固件差异度大于所述差异度阈值,则生成更新确认通知信息,并判断是否获取到响应目标用户基于所述更新确认通知信息进行的更新确认操作生成的更新确认信息;If the firmware difference degree is greater than the difference degree threshold, generate update confirmation notification information, and determine whether to obtain update confirmation information generated in response to the update confirmation operation performed by the target user based on the update confirmation notification information;
若获取到所述更新确认信息,则确定需要对所述目标固件进行更新;If the update confirmation information is obtained, it is determined that the target firmware needs to be updated;
若未获取到所述更新确认信息,则确定不对所述目标固件进行更新。If the update confirmation information is not obtained, it is determined not to update the target firmware.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述无线网络设备固件更新方法还包括生成所述差异度阈值的步骤,该步骤包括:In a preferred option of the embodiment of the present application, in the above method for updating the firmware of a wireless network device, the method for updating the firmware of a wireless network device further includes the step of generating the difference threshold, and the step includes:
获取多条差异度记录信息,其中,每一条所述差异度记录信息用于在历史上每一次基于所述固件差异度确定是否对所述目标固件进行更新之后生成,且该差异度记录信息用于表征在所述固件差异度大于所述差异度阈值时是否确定需要对所述目标固件进行更新;Obtain a plurality of pieces of difference degree record information, wherein, each piece of the difference degree record information is used to generate each time in history whether to update the target firmware based on the firmware difference degree, and the difference degree record information is used for generating. for characterizing whether it is determined that the target firmware needs to be updated when the degree of difference of the firmware is greater than the threshold of the degree of difference;
基于所述多条差异度记录信息对预设的差异度初始阈值进行修正处理,得到所述差异度阈值。The preset initial threshold of the degree of difference is corrected based on the plurality of pieces of record information of the degree of difference to obtain the threshold of the degree of difference.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述基于所述多条差异度记录信息对预设的差异度初始阈值进行修正处理,得到所述差异度阈值的步骤,该步骤包括:In a preferred option of the embodiment of the present application, in the above method for updating the firmware of a wireless network device, the preset initial threshold of the difference degree is modified based on the multiple pieces of difference degree record information to obtain the difference degree threshold value steps, the steps include:
依次将所述多条差异度记录信息中的每一条所述差异度记录信息作为待处理差异度记录信息,计算该待处理差异度记录信息与每一条其它差异度记录信息之间在时间维度上的时间相关性信息;Taking each piece of the difference degree record information in the plurality of difference degree record information in turn as the difference degree record information to be processed, and calculating the time dimension between the to-be-processed difference degree record information and each other piece of difference degree record information time-dependent information;
针对每一条所述待处理差异度记录信息,基于该待处理差异度记录信息与每一条其它差异度记录信息之间的时间相关性信息对每一条其它差异度记录信息进行排序处理,构成该待处理差异度记录信息对应的差异度记录信息有序集合,以得到多个差异度记录信息有序集合,其中,在所述差异度记录信息有序集合中排序在前的差异度记录信息对应的时间相关性大于排序在后的差异度记录信息对应的时间相关性;For each piece of the difference degree record information to be processed, based on the time correlation information between the difference degree record information to be processed and each other piece of difference degree record information, each other difference degree record information is sorted to form the to-be-processed difference degree record information. The ordered set of difference degree record information corresponding to the difference degree record information is processed to obtain a plurality of ordered sets of difference degree record information, wherein, in the ordered set of difference degree record information, the difference degree record information corresponding to the first order is obtained. The time correlation is greater than the time correlation corresponding to the difference degree record information in the later order;
针对每一条所述待处理差异度记录信息,计算该待处理差异度记录信息对应的差异度记录信息有序集合与每一个其它差异度记录信息对应的差异度记录信息有序集合之间的集合相似性信息,得到该待处理差异度记录信息对应的多个集合相似性信息;For each piece of the difference degree record information to be processed, calculate the set between the ordered set of difference degree record information corresponding to the to-be-processed difference degree record information and the ordered set of difference degree record information corresponding to each other difference degree record information similarity information, to obtain a plurality of set similarity information corresponding to the to-be-processed difference degree record information;
针对每一条所述待处理差异度记录信息,对该待处理差异度记录信息对应的所述多个集合相似性信息进行离散值计算,得到该待处理差异度记录信息对应的集合相似性离散信息;For each piece of the to-be-processed difference degree record information, perform discrete value calculation on the plurality of set similarity information corresponding to the to-be-processed difference degree record information, to obtain the set similarity discrete information corresponding to the to-be-processed difference degree record information ;
基于所述集合相似性离散信息,在多条所述待处理差异度记录信息中确定出目标待处理差异度记录信息,并将该目标待处理差异度记录信息对应的差异度记录信息有序集合,确定为目标差异度记录信息有序集合,并基于所述目标待处理差异度记录信息对该目标差异度记录信息有序集合进行更新;Based on the set similarity discrete information, the target to-be-processed difference-degree record information is determined from the multiple pieces of the to-be-processed difference-degree record information, and the difference-degree record information corresponding to the target to-be-processed difference degree record information is collected in an orderly manner is determined as an ordered set of target difference degree record information, and the ordered set of target difference degree record information is updated based on the target difference degree record information to be processed;
基于在更新后的目标差异度记录信息有序集合的排序位置,对每一条所述差异度记录信息进行权重系数确定处理,得到每一条差异度记录信息对应的权重系数,其中,所述差异度记录信息的权重系数与对应的时间相关性信息具有正相关关系;Based on the sorted position of the updated ordered set of target difference degree record information, a weight coefficient determination process is performed on each piece of the difference degree record information to obtain a weight coefficient corresponding to each piece of difference degree record information, wherein the difference degree record information The weight coefficient of the record information has a positive correlation with the corresponding time correlation information;
将表征在所述固件差异度大于所述差异度阈值时确定需要对所述目标固件进行更新的差异度记录信息赋值为第一数值,并将表征在所述固件差异度大于所述差异度阈值时确定不需要对所述目标固件进行更新的差异度记录信息赋值为第二数值;Assign the difference degree record information that characterizes that the target firmware needs to be updated when the firmware difference degree is greater than the difference degree threshold as a first value, and characterize that the firmware difference degree is greater than the difference degree threshold when the firmware difference degree is greater than the difference degree threshold When it is determined that the difference degree record information that does not need to be updated to the target firmware is assigned as the second numerical value;
基于更新后的目标差异度记录信息有序集合中的每一条差异度记录信息对应的赋值和权重系数进行加权求和计算,得到计算结果;A weighted sum calculation is performed based on the assignment and weight coefficient corresponding to each piece of difference record information in the updated target difference degree record information ordered set, and a calculation result is obtained;
基于所述计算结果与所述第一数值和所述第二数值之间的大小关系,对预设的差异度初始阈值进行修正处理,得到所述差异度阈值。Based on the magnitude relationship between the calculation result and the first numerical value and the second numerical value, a preset difference degree initial threshold value is corrected to obtain the difference degree threshold value.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述针对每一条所述待处理差异度记录信息,计算该待处理差异度记录信息对应的差异度记录信息有序集合与每一个其它差异度记录信息对应的差异度记录信息有序集合之间的集合相似性信息的步骤,包括:In a preferred choice of the embodiment of the present application, in the above method for updating the firmware of a wireless network device, for each piece of the difference degree record information to be processed, the difference degree record information corresponding to the to-be-processed difference degree record information is calculated as follows: The steps of collecting similarity information between the ordered set and the ordered sets of the difference degree record information corresponding to each other difference degree record information include:
针对所述多个差异度记录信息有序集合中的每两个差异度记录信息有序集合,将该两个差异度记录信息有序集合分别作为第一差异度记录信息有序集合和第二差异度记录信息有序集合;For every two ordered sets of difference degree record information in the plurality of ordered sets of difference degree record information, the two ordered sets of difference degree record information are respectively regarded as the first ordered set of difference degree record information and the second ordered set of difference degree record information. Ordered collection of difference record information;
基于所述第一差异度记录信息有序集合中每一个差异度记录信息对应的表征值,得到对应的第一表征值有序集合,并基于所述第二差异度记录信息有序集合中每一个差异度记录信息对应的表征值,得到对应的第二表征值有序集合,其中,所述表征值基于所述差异度记录信息表征的内容确定,且具有相同表征内容的差异度记录信息对应的表征值相同,具有不同表征内容的差异度记录信息对应的表征值不同;Based on the characterization value corresponding to each difference degree record information in the first difference degree record information ordered set, a corresponding first characterization value ordered set is obtained, and based on the second difference degree record information in the ordered set, each A characteristic value corresponding to the difference degree record information is obtained, and a corresponding second characteristic value ordered set is obtained, wherein the characteristic value is determined based on the content represented by the difference degree record information, and the difference degree record information with the same characteristic content corresponds to The characterization values are the same, and the characterization values corresponding to the difference record information with different characterization contents are different;
将所述第一表征值有序集合和所述第二表征值有序集合进行对比,得到对应的表征值对比有序集合,其中,所述表征值对比有序集合用于表征所述第一表征值有序集合和所述第二表征值有序集合之间对应排序位置的第一表征值是否相同;Comparing the first ordered set of characterization values with the second ordered set of characterization values to obtain a corresponding ordered set of characterization values compared, wherein the characterization value comparison ordered set is used to characterize the first Whether the first characterization value corresponding to the sorted position between the ordered set of characterization values and the second ordered set of characterization values is the same;
对所述表征值对比有序集合进行解析,得到该表征值对比有序集合对应的表征值对比特征信息,其中,所述表征值对比特征信息用于表征所述第一表征值有序集合和所述第二表征值有序集合之间的相似性信息;The characterization value comparison ordered set is analyzed to obtain characterization value comparison feature information corresponding to the characterization value comparison ordered set, wherein the characterization value comparison feature information is used to characterize the first characterization value ordered set and similarity information between the second characterization value ordered sets;
基于所述表征值对比特征信息,得到对应的第一差异度记录信息有序集合和第二差异度记录信息有序集合之间的集合相似性信息。Based on the characteristic value comparison feature information, the set similarity information between the corresponding ordered set of first difference degree record information and the corresponding ordered set of second difference degree record information is obtained.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,所述获取目标服务器存储的第一固件版本号信息的步骤,包括:In a preferred choice of the embodiment of the present application, in the above method for updating the firmware of a wireless network device, the step of obtaining the first firmware version number information stored by the target server includes:
获取所述目标无线网络设备最近一次执行所述更新操作的时间信息,得到对应的历史时间信息,并计算该历史时间信息与当前时间信息之间的时间差值,得到对应的时间长度信息;Obtain the time information of the last time the target wireless network device performs the update operation, obtain the corresponding historical time information, and calculate the time difference between the historical time information and the current time information to obtain the corresponding time length information;
判断所述时间长度信息是否大于预设的时长阈值信息;Judging whether the time length information is greater than the preset time length threshold information;
若所述时间长度信息大于所述时长阈值信息,则生成版本号请求信息,并将所述版本号请求信息发送给所述目标服务器,其中,所述目标服务器用于基于所述版本号请求信息将存储的所述目标固件对应的第一固件版本号信息发送给所述目标无线网络设备;If the time length information is greater than the time length threshold information, generate version number request information, and send the version number request information to the target server, where the target server is configured to request information based on the version number sending the stored first firmware version number information corresponding to the target firmware to the target wireless network device;
接收所述目标服务器发送的所述第一固件版本号信息。The first firmware version number information sent by the target server is received.
在本申请实施例较佳的选择中,在上述无线网络设备固件更新方法中,在执行所述基于所述更新固件对所述目标固件执行更新操作的步骤之后,所述无线网络设备固件更新方法还包括:In a preferred option of the embodiment of the present application, in the above method for updating the firmware of a wireless network device, after the step of performing an update operation on the target firmware based on the updating firmware, the method for updating the firmware of a wireless network device is performed. Also includes:
运行更新后的目标固件,并获取运行该目标固件的运行状态信息;Run the updated target firmware, and obtain the running status information of running the target firmware;
基于所述运行状态信息确定所述目标固件是否更新成功;Determine whether the target firmware is successfully updated based on the operating state information;
若确定所述目标固件更新成功,则生成用于表征该目标固件更新成功的更新通知信息,并将所述更新通知信息发送给所述目标服务器。If it is determined that the target firmware is successfully updated, update notification information indicating that the target firmware is successfully updated is generated, and the update notification information is sent to the target server.
在上述基础上,本申请实施例还提供了一种无线网络设备,包括:Based on the above, an embodiment of the present application also provides a wireless network device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
与所述存储器连接的处理器,用于执行该存储器存储的计算机程序,以实现上述的无线网络设备固件更新方法。The processor connected with the memory is used for executing the computer program stored in the memory, so as to realize the above-mentioned method for updating the firmware of the wireless network device.
本申请提供的无线网络设备固件更新方法和无线网络设备,通过将目标无线网络设备上目标固件的固件版本号信息与目标服务器上存储的对应的固件版本号信息进行对比,以确定是否对目标固件进行更新,使得在确定需要对目标固件进行更新时,从目标服务器获取第一固件版本号信息对应的更新固件,并基于更新固件对目标固件执行更新操作。基于此,可以通过无线网络设备的判断实现对无线网络设备固件的自动更新,能够有效降低更新的成本,并提高更新的效率,从而改善现有技术中无线网络设备的更新过程存在成本较高和效率较低的问题,使得具有较高的实用价值。In the wireless network device firmware update method and wireless network device provided by the present application, the firmware version number information of the target firmware on the target wireless network device is compared with the corresponding firmware version number information stored on the target server to determine whether to update the target firmware. The update is performed, so that when it is determined that the target firmware needs to be updated, the update firmware corresponding to the first firmware version number information is obtained from the target server, and an update operation is performed on the target firmware based on the update firmware. Based on this, the automatic update of the firmware of the wireless network device can be realized through the judgment of the wireless network device, which can effectively reduce the cost of the update and improve the efficiency of the update, thereby improving the update process of the wireless network device in the prior art. The problem of lower efficiency makes it have higher practical value.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
图1为本申请实施例提供的目标无线网络设备的结构框图。FIG. 1 is a structural block diagram of a target wireless network device according to an embodiment of the present application.
图2为本申请实施例提供的无线网络设备固件更新方法的流程示意图。FIG. 2 is a schematic flowchart of a method for updating firmware of a wireless network device provided by an embodiment of the present application.
图标:10-目标无线网络设备;12-存储器;14-处理器。Icons: 10-target wireless network device; 12-memory; 14-processor.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本申请的一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is only a part of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
如图1所示,本申请实施例提供了一种目标无线网络设备10,可以包括存储器12和处理器14和存储于该存储器12的计算机程序。As shown in FIG. 1 , an embodiment of the present application provides a target
其中,所述存储器12和处理器14之间直接或间接地电性连接,以实现数据的传输或交互。例如,相互之间可通过一条或多条通讯总线或信号线实现电性连接。所述处理器14用于执行所述存储器12中存储的可执行的计算机程序,以实现本申请实施例提供的无线网络设备固件更新方法。Wherein, the
可选地,所述存储器12可以是,但不限于,随机存取存储器(Random AccessMemory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(ProgrammableRead-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-OnlyMemory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-OnlyMemory,EEPROM)等。Optionally, the
并且,所述处理器14可以是一种通用处理器,包括中央处理器(CentralProcessing Unit,CPU)、网络处理器(Network Processor,NP)、片上系统(System onChip,SoC)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。In addition, the
可以理解,图1所示的结构仅为示意,所述目标无线网络设备10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置,例如,还可以包括用于与其它设备(如服务器)进行信息交互的通信单元。It can be understood that the structure shown in FIG. 1 is only for illustration, and the target
结合图2,本申请实施例还提供一种可应用于上述目标无线网络设备10的无线网络设备固件更新方法。其中,所述无线网络设备固件更新方法有关的流程所定义的方法步骤可以由所述目标无线网络设备10实现。With reference to FIG. 2 , an embodiment of the present application further provides a method for updating wireless network device firmware that can be applied to the above target
下面将对图2所示的具体流程,进行详细阐述。The specific flow shown in FIG. 2 will be described in detail below.
步骤S110,获取目标服务器存储的第一固件版本号信息。Step S110: Obtain the first firmware version number information stored in the target server.
在本实施例中,所述目标无线网络设备可以先获取所述目标服务器存储的第一固件版本号信息。其中,所述第一固件版本号信息与所述目标无线网络设备上安装的目标固件之间具有对应关系。例如,所述第一固件版本号信息可以为所述目标固件的最新版本的信息。In this embodiment, the target wireless network device may first obtain the first firmware version number information stored by the target server. Wherein, there is a corresponding relationship between the first firmware version number information and the target firmware installed on the target wireless network device. For example, the first firmware version number information may be information of the latest version of the target firmware.
步骤S120,基于第一固件版本号信息和目标无线网络设备上安装的目标固件的第二固件版本号信息,确定是否对目标固件进行更新。Step S120: Determine whether to update the target firmware based on the first firmware version information and the second firmware version information of the target firmware installed on the target wireless network device.
在本实施例中,在基于步骤S110获取到所述第一固件版本号信息之后,所述目标无线网络设备可以基于该第一固件版本号信息和所述目标无线网络设备上安装的目标固件的第二固件版本号信息,确定是否对所述目标固件进行更新。In this embodiment, after obtaining the first firmware version number information based on step S110, the target wireless network device may, based on the first firmware version number information and the target firmware installed on the target wireless network device, The second firmware version number information is used to determine whether to update the target firmware.
其中,所述第二固件版本号信息为所述目标无线网络设备上当前安装的目标固件的版本号信息。也就是说,基于所述目标无线网络设备上安装的固件的当前版本和所述目标服务器上存储的固件的最新版本,确定是否对固件进行更新。并且,若确定需要对所述目标固件进行更新,则执行步骤S130。The second firmware version number information is the version number information of the target firmware currently installed on the target wireless network device. That is, whether to update the firmware is determined based on the current version of the firmware installed on the target wireless network device and the latest version of the firmware stored on the target server. And, if it is determined that the target firmware needs to be updated, step S130 is executed.
步骤S130,从目标服务器获取第一固件版本号信息对应的更新固件。Step S130: Acquire the updated firmware corresponding to the first firmware version number information from the target server.
在本实施例中,在基于步骤S120确定需要对所述目标固件进行更新之后,所述目标无线网络设备可以从所述目标服务器获取所述第一固件版本号信息对应的更新固件。In this embodiment, after it is determined based on step S120 that the target firmware needs to be updated, the target wireless network device may acquire the updated firmware corresponding to the first firmware version number information from the target server.
其中,所述更新固件和所述目标固件属于同一无线网络设备固件的不同版本。Wherein, the update firmware and the target firmware belong to different versions of the same wireless network device firmware.
步骤S140,基于更新固件对目标固件执行更新操作。Step S140, performing an update operation on the target firmware based on the update firmware.
在本实施例中,在基于步骤S130获取到所述更新固件之后,所述目标无线网络设备可以基于该更新固件对所述目标固件执行更新操作。In this embodiment, after acquiring the update firmware based on step S130, the target wireless network device may perform an update operation on the target firmware based on the update firmware.
基于上述方法,通过将目标无线网络设备上目标固件的固件版本号信息与目标服务器上存储的对应的固件版本号信息进行对比,以确定是否对目标固件进行更新,使得在确定需要对目标固件进行更新时,从目标服务器获取第一固件版本号信息对应的更新固件,并基于更新固件对目标固件执行更新操作。基于此,可以通过无线网络设备的判断实现对无线网络设备固件的自动更新,能够有效降低更新的成本,并提高更新的效率,从而改善现有技术中无线网络设备的更新过程存在成本较高和效率较低的问题。Based on the above method, by comparing the firmware version number information of the target firmware on the target wireless network device with the corresponding firmware version number information stored on the target server, it is determined whether to update the target firmware, so that when it is determined that the target firmware needs to be updated During the update, the update firmware corresponding to the first firmware version number information is obtained from the target server, and an update operation is performed on the target firmware based on the update firmware. Based on this, the automatic update of the firmware of the wireless network device can be realized through the judgment of the wireless network device, which can effectively reduce the cost of the update and improve the efficiency of the update, thereby improving the update process of the wireless network device in the prior art. less efficient problem.
可以理解的是,在上述示例中,固件(Firmware)可以是指,写入可擦写可编程只读存储器(EPROM)或电可擦可编程只读存储器(EEPROM)中的程序,如电子设备内部保存的设备"驱动程序",且电子设备的操作系统需要通过固件才能按照完全驱动工作,例如,固件可以包括电子设备的主板上的基本输入/输出系统(BIOS,Basic Input/Output System)。It can be understood that, in the above example, firmware may refer to a program written in an erasable and programmable read-only memory (EPROM) or an electrically erasable and programmable read-only memory (EEPROM), such as an electronic device. The device "drivers" are stored internally, and the operating system of the electronic device needs to be fully driven by firmware, for example, the firmware may include the Basic Input/Output System (BIOS, Basic Input/Output System) on the motherboard of the electronic device.
第一方面,对于步骤S110需要说明的是,获取所述第一固件版本号信息的具体方式不受限制,可以根据实际应用需求进行选择。In the first aspect, it should be noted for step S110 that the specific manner of acquiring the first firmware version number information is not limited, and may be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以基于以下步骤以获取所述第一固件版本号信息:For example, in an alternative example, the first firmware version number information can be obtained based on the following steps:
首先,获取所述目标无线网络设备最近一次执行所述更新操作的时间信息(即上一次执行更新操作的时间信息),得到对应的历史时间信息,并计算该历史时间信息与当前时间信息之间的时间差值,得到对应的时间长度信息;First, obtain the time information of the last time the target wireless network device performs the update operation (that is, the time information of the last time the update operation was performed), obtain the corresponding historical time information, and calculate the difference between the historical time information and the current time information to obtain the corresponding time length information;
其次,判断所述时间长度信息是否大于预设的时长阈值信息(其中,该时长阈值信息可以基于用户根据实际应用场景进行的配置操作生成);Next, determine whether the time length information is greater than the preset time length threshold information (wherein, the time length threshold information can be generated based on the configuration operation performed by the user according to the actual application scenario);
然后,若所述时间长度信息大于所述时长阈值信息,则生成版本号请求信息,并将所述版本号请求信息发送给所述目标服务器,其中,所述目标服务器用于基于所述版本号请求信息将存储的所述目标固件对应的第一固件版本号信息发送给所述目标无线网络设备;Then, if the time length information is greater than the time length threshold information, generate version number request information, and send the version number request information to the target server, where the target server is used to generate version number request information based on the version number The request information sends the stored first firmware version number information corresponding to the target firmware to the target wireless network device;
最后,接收所述目标服务器发送的所述第一固件版本号信息。Finally, the first firmware version number information sent by the target server is received.
第二方面,对于步骤S120需要说明的是,基于所述第一固件版本号信息和所述第二固件版本号信息确定是否对所述目标固件进行更新的具体方式不受限制,可以根据实际应用需求进行选择。In the second aspect, it should be noted for step S120 that the specific manner of determining whether to update the target firmware based on the first firmware version number information and the second firmware version number information is not limited, and may be determined according to actual applications. needs to choose.
例如,在一种可以替代的示例中,可以基于以下步骤以确定是否对所述目标固件进行更新:For example, in an alternative example, whether to update the target firmware may be determined based on the following steps:
首先,判断所述第一固件版本号信息和所述目标无线网络设备上安装的目标固件的第二固件版本号信息是否相同(其中,所述第一固件版本号信息为所述目标服务器上存储的无线网络设备固件的最新版本号,所述第二固件版本号信息为所述目标无线网络设备上安装的无线网络设备固件的最新版本号);First, determine whether the first firmware version information is the same as the second firmware version information of the target firmware installed on the target wireless network device (wherein, the first firmware version information is stored on the target server). The latest version number of the wireless network device firmware, the second firmware version number information is the latest version number of the wireless network device firmware installed on the target wireless network device);
其次,若所述第一固件版本号信息和所述第二固件版本号信息相同,则确定不对所述目标固件进行更新(也就是说,在确定所述目标无线网络设备上安装的无线网络设备固件为最新版本时,可以确定不对该无线网络设备固件进行更新)。Secondly, if the first firmware version number information and the second firmware version number information are the same, it is determined that the target firmware is not to be updated (that is, the wireless network device installed on the target wireless network device is determined not to be updated). When the firmware is the latest version, it can be determined not to update the firmware of the wireless network device).
在上述示例的基础上,对于步骤S120还需要说明的是,若所述第一固件版本号信息和所述第二固件版本号信息不同,具体的处理方式不受限制。On the basis of the above example, it should be noted that in step S120, if the first firmware version number information and the second firmware version number information are different, the specific processing method is not limited.
例如,在一种可以替代的示例中,若所述第一固件版本号信息和所述第二固件版本号信息不同,则确定需要对所述目标固件进行更新。For example, in an alternative example, if the first firmware version number information and the second firmware version number information are different, it is determined that the target firmware needs to be updated.
也就是说,只要确定所述目标无线网络设备上安装的无线网络设备固件不是最新版本,就需要对该无线网络设备固件进行更新。That is, as long as it is determined that the wireless network device firmware installed on the target wireless network device is not the latest version, the wireless network device firmware needs to be updated.
又例如,在另一种可以替代的示例中,若所述第一固件版本号信息和所述第二固件版本号信息不同,则从所述目标服务器获取所述第一固件版本号信息对应更新固件和所述第二固件版本号信息对应的目标固件之间的固件差异度,其中,该固件差异度用于表征所述更新固件和所述目标固件在多个维度上的差异,且该多个维度包括数据量维度、程序逻辑维度和程序内容维度;基于所述固件差异度确定是否对所述目标固件进行更新。For another example, in another alternative example, if the first firmware version number information and the second firmware version number information are different, the corresponding update of the first firmware version number information is obtained from the target server. The firmware difference degree between the firmware and the target firmware corresponding to the second firmware version number information, wherein the firmware difference degree is used to represent the difference between the update firmware and the target firmware in multiple dimensions, and the multiple The dimensions include a data volume dimension, a program logic dimension, and a program content dimension; and whether to update the target firmware is determined based on the firmware difference degree.
其中,所述数据量维度上的差异可以是指,所述更新固件和所述目标固件在具有的数量之间的差值,如所述更新固件的数据量为1.1G,所述目标固件的数据量为0.98G,如此,在数据量维度上的差异为0.12G。The difference in the dimension of the data volume may refer to the difference between the quantities of the update firmware and the target firmware. For example, if the data volume of the update firmware is 1.1G, the target firmware has a The data volume is 0.98G, so the difference in the data volume dimension is 0.12G.
所述程序逻辑维度上的差异可以是指,所述更新固件和所述目标固件在各个程序段的先后关系之间形成的差异,例如,在所述更新固件中先执行A步骤,再执行B步骤;在所述目标固件中先执行B步骤,再执行A步骤。如此,可以统计存储相反的执行逻辑的程序段的数量,并将该数量作为再程序逻辑维度上的差异;The difference in the program logic dimension may refer to the difference between the sequence relationship between the update firmware and the target firmware in each program segment. For example, in the update firmware, step A is performed first, and then step B is performed. step; firstly execute the B step in the target firmware, and then execute the A step. In this way, the number of program segments that store the opposite execution logic can be counted, and the number can be used as the difference in the dimension of the program logic;
所述程序内容维度上的差异可以是指,所述更新固件和所述目标固件之间具有的不同程序内容的数据量与所述更新固件的总数据量之间的比值。例如,所述更新固件的数据量为X,其中,存在与所述目标固件不同的程序的数据量为Y,则对应的差异为Y/X。The difference in the dimension of the program content may refer to a ratio between the data amount of different program contents between the update firmware and the target firmware and the total data amount of the update firmware. For example, the data amount of the updated firmware is X, and the data amount of a program that is different from the target firmware is Y, and the corresponding difference is Y/X.
所述固件差异度可以是指,将上述多个维度上的差异分别进行归一化之后,再进行加权计算。其中,不同维度上的差异对应的权重系数可以基于用户根据实际应用场景进行的配置操作生成,且若更倾向于数据量维度,则数据量维度上的差异的权重系数可以大于其它维度上的差异的权重系数;若更倾向于程序内容维度,则程序内容维度上的差异的权重系数可以大于其它维度上的差异的权重系数。The firmware difference degree may refer to performing weighting calculation after normalizing the differences in the above-mentioned multiple dimensions respectively. Among them, the weight coefficients corresponding to the differences in different dimensions can be generated based on the configuration operations performed by the user according to the actual application scenario, and if the data volume dimension is more inclined, the weight coefficients of the differences in the data volume dimension can be greater than the differences in other dimensions. If it is more inclined to the program content dimension, the weight coefficient of the difference in the program content dimension can be larger than the weight coefficient of the difference in other dimensions.
可选地,在上述示例中,基于所述固件差异度确定是否对所述目标固件进行更新的具体方式不受限制,可以根据实际应用需求进行选择。Optionally, in the above example, the specific manner of determining whether to update the target firmware based on the firmware difference is not limited, and may be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以通过以下步骤以基于所述固件差异度确定是否对所述目标固件进行更新:For example, in an alternative example, the following steps may be performed to determine whether to update the target firmware based on the firmware difference:
首先,判断所述固件差异度是否大于预设的差异度阈值;First, determine whether the firmware difference degree is greater than a preset difference degree threshold;
其次,若所述固件差异度小于或等于所述差异度阈值,则确定不对所述目标固件进行更新;若所述固件差异度大于所述差异度阈值,则生成更新确认通知信息,并判断是否获取到响应目标用户基于所述更新确认通知信息进行的更新确认操作生成的更新确认信息;Secondly, if the firmware difference degree is less than or equal to the difference degree threshold, it is determined not to update the target firmware; if the firmware difference degree is greater than the difference degree threshold, an update confirmation notification message is generated, and it is determined whether acquiring update confirmation information generated in response to the update confirmation operation performed by the target user based on the update confirmation notification information;
然后,若获取到所述更新确认信息,则确定需要对所述目标固件进行更新;若未获取到所述更新确认信息,则确定不对所述目标固件进行更新(也就是说,在所述固件差异度大于所述差异度阈值时,可以基于用户的需求以确定是否对目标固件进行更新)。Then, if the update confirmation information is obtained, it is determined that the target firmware needs to be updated; if the update confirmation information is not obtained, it is determined not to update the target firmware (that is, in the firmware When the difference degree is greater than the difference degree threshold, it may be determined whether to update the target firmware based on user requirements).
可以理解的是,在上述示例中,所述差异度阈值的生成方式不受限制,可以根据实际应用需求进行选择。It can be understood that, in the above example, the manner of generating the difference threshold is not limited, and can be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以基于用户的配置操作生成所述差异度阈值。又例如,在另一种可以替代的示例中,可以基于以下步骤以生成所述差异度阈值,以降低人力成本:For example, in an alternative example, the difference threshold may be generated based on a user's configuration operation. For another example, in another alternative example, the difference threshold can be generated based on the following steps to reduce labor costs:
首先,获取多条差异度记录信息,其中,每一条所述差异度记录信息用于在历史上每一次基于所述固件差异度确定是否对所述目标固件进行更新之后生成,且该差异度记录信息用于表征在所述固件差异度大于所述差异度阈值时是否确定需要对所述目标固件进行更新;First, obtain a plurality of pieces of difference degree record information, wherein each piece of the difference degree record information is used to generate each time in history whether to update the target firmware based on the firmware difference degree, and the difference degree record The information is used to represent whether it is determined that the target firmware needs to be updated when the firmware difference degree is greater than the difference degree threshold;
其次,基于所述多条差异度记录信息对预设的差异度初始阈值进行修正处理,得到所述差异度阈值,其中,所述差异度初始阈值基于所述目标服务器执行初始阈值操作生成(如基于所述目标服务器的管理人员的配置操作生成,或随机生成的一个值)。Secondly, performing correction processing on the preset initial difference degree threshold based on the plurality of difference degree record information to obtain the difference degree threshold value, wherein the difference degree initial threshold value is generated based on the target server performing an initial threshold value operation (such as Generated based on the configuration operation of the administrator of the target server, or a randomly generated value).
可以理解的是,在上述示例中,对所述差异度初始阈值进行修正处理得到所述差异度阈值的具体方式不受限制,可以根据实际应用需求选择。It can be understood that, in the above example, the specific manner in which the difference degree threshold is obtained by performing correction processing on the difference degree initial threshold is not limited, and can be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以基于以下步骤以对所述差异度初始阈值进行修正处理得到所述差异度阈值:For example, in an alternative example, the difference degree threshold may be obtained by modifying the initial difference degree threshold based on the following steps:
第一步,依次将所述多条差异度记录信息中的每一条所述差异度记录信息作为待处理差异度记录信息,计算该待处理差异度记录信息与每一条其它差异度记录信息之间在时间维度上的时间相关性信息(也就是说,可以计算所述多条差异度记录信息中每两条差异度记录下之间在时间维度上的时间相关性,如生成时间之间的相关性;其中,在一种示例中,可以将生成时间之间的差值的倒数作为该时间相关性信息,即生成时间之间的差值越大,对应的时间相关性信息越小;在另一种示例中,可以将生成时间之间的差值的倒数和对应的时段信息之间的差值的倒数的加权值作为对应的时间相关性信息,例如,可以将每一天分为12个时段,如第一时段、第二时段、......、第十二时段段);The first step is to sequentially use each of the plurality of difference degree record information as the difference degree record information to be processed, and calculate the difference between the to-be-processed difference degree record information and each other difference degree record information. Time correlation information in the time dimension (that is, the time correlation in the time dimension between each two difference degree records in the plurality of difference degree records can be calculated, such as the correlation between the generation times wherein, in one example, the reciprocal of the difference between the generation times can be used as the time correlation information, that is, the larger the difference between the generation times, the smaller the corresponding time correlation information; in another In an example, the weighted value of the inverse of the difference between the generation times and the inverse of the difference between the corresponding period information can be used as the corresponding time correlation information, for example, each day can be divided into 12 periods. , such as the first period, the second period, ..., the twelfth period);
第二步,针对每一条所述待处理差异度记录信息,基于该待处理差异度记录信息与每一条其它差异度记录信息之间的时间相关性信息对每一条其它差异度记录信息进行排序处理,构成该待处理差异度记录信息对应的差异度记录信息有序集合(例如,该差异度记录信息有序集合可以为“差异度记录信息1、差异度记录信息3、差异度记录信息5、差异度记录信息2、差异度记录信息4”),以得到多个差异度记录信息有序集合,其中,在所述差异度记录信息有序集合中排序在前的差异度记录信息对应的时间相关性大于排序在后的差异度记录信息对应的时间相关性;In the second step, for each piece of the difference degree record information to be processed, based on the time correlation information between the to-be-processed difference degree record information and each other piece of difference degree record information, perform sorting processing on each piece of other difference degree record information , constitute an ordered set of difference degree record information corresponding to the difference degree record information to be processed (for example, the ordered set of difference degree record information may be "difference degree record information 1, difference degree record information 3, difference degree record information 5, Difference degree record information 2, difference degree record information 4") to obtain a plurality of ordered sets of difference degree record information, wherein, in the ordered set of difference degree record information, the time corresponding to the previous difference degree record information The correlation is greater than the time correlation corresponding to the difference degree record information after the sorting;
第三步,针对每一条所述待处理差异度记录信息,计算该待处理差异度记录信息对应的差异度记录信息有序集合与每一个其它差异度记录信息对应的差异度记录信息有序集合之间的集合相似性信息,得到该待处理差异度记录信息对应的多个集合相似性信息(例如,针对集合A,可以计算集合A与集合B之间的集合相似性信息、计算集合A与集合C之间的集合相似性信息、计算集合A与集合D之间的集合相似性信息);The third step is to calculate, for each piece of the difference degree record information to be processed, an ordered set of difference degree record information corresponding to the to-be-processed difference degree record information and an ordered set of difference degree record information corresponding to each other difference degree record information The set similarity information between the two sets of similarity information is obtained, and multiple set similarity information corresponding to the difference degree record information to be processed is obtained (for example, for set A, the set similarity information between set A and set B can be calculated, and the set similarity between set A and set A can be calculated. Set similarity information between sets C, calculation set similarity information between sets A and D);
第四步,针对每一条所述待处理差异度记录信息,对该待处理差异度记录信息对应的所述多个集合相似性信息进行离散值计算(例如,针对相似性信息a、相似性信息b和相似性信息c,可以先计算a、b和c的平均值,得到d,如此,可以先计算a与d的差值的绝对值、b与d的差值的绝对值和c与d的差值的绝对值之和,再将和值除以3,得到对应的离散值),得到该待处理差异度记录信息对应的集合相似性离散信息;The fourth step, for each piece of the difference degree record information to be processed, perform discrete value calculation on the plurality of set similarity information corresponding to the to-be-processed difference degree record information (for example, for similarity information a, similarity information b and similarity information c, you can first calculate the average value of a, b and c to get d, so you can first calculate the absolute value of the difference between a and d, the absolute value of the difference between b and d, and the difference between c and d. The sum of the absolute values of the difference values, and then divide the sum value by 3 to obtain the corresponding discrete value), and obtain the set similarity discrete information corresponding to the difference degree record information to be processed;
第五步,基于所述集合相似性离散信息,在多条所述待处理差异度记录信息中确定出目标待处理差异度记录信息(例如,可以将集合相似性离散信息最小的待处理差异度记录信息,作为目标待处理差异度记录信息),并将该目标待处理差异度记录信息对应的差异度记录信息有序集合,确定为目标差异度记录信息有序集合,并基于所述目标待处理差异度记录信息对该目标差异度记录信息有序集合进行更新(例如,可以将所述目标待处理差异度记录信息插入到所述目标差异度记录信息有序集合中,由于在所述差异度记录信息有序集合中排序在前的差异度记录信息对应的时间相关性大于排序在后的差异度记录信息对应的时间相关性,因而,可以将所述目标待处理差异度记录信息插入到集合的首位);The fifth step, based on the set similarity discrete information, determine the target pending difference degree record information from the multiple pieces of the pending difference degree record information (for example, the pending difference degree with the smallest set similarity discrete information can be determined. record information, as the target difference degree record information to be processed), and determine the orderly collection of the difference degree record information corresponding to the target difference degree record information to be processed as the target difference degree record information ordered collection, and based on the target difference degree record information. The processing difference degree record information updates the ordered set of target difference degree record information (for example, the target to-be-processed difference degree record information can be inserted into the ordered set of target difference degree record information, because the difference The time correlation corresponding to the difference degree record information sorted earlier in the ordered set of degree record information is greater than the time correlation corresponding to the difference degree record information that is sorted later. Therefore, the target difference degree record information to be processed can be inserted into the the first position of the set);
第六步,基于在更新后的目标差异度记录信息有序集合的排序位置,对每一条所述差异度记录信息进行权重系数确定处理,得到每一条差异度记录信息对应的权重系数,其中,所述差异度记录信息的权重系数与对应的时间相关性信息具有正相关关系(也就是说,排序位置越靠前,则对应的时间相关性信息越大,对应的权重系数可以越大;其中,各权重系数的和值可以为1);The sixth step is to perform a weight coefficient determination process on each piece of the difference degree record information based on the sorted position of the ordered set of the updated target difference degree record information, and obtain a weight coefficient corresponding to each piece of difference degree record information, wherein, The weight coefficient of the difference degree record information has a positive correlation with the corresponding time correlation information (that is, the higher the sorting position is, the larger the corresponding time correlation information is, and the corresponding weight coefficient may be larger; wherein , the sum of each weight coefficient can be 1);
第七步,将表征在所述固件差异度大于所述差异度阈值时确定需要对所述目标固件进行更新的差异度记录信息赋值为第一数值(如1),并将表征在所述固件差异度大于所述差异度阈值时确定不需要对所述目标固件进行更新的差异度记录信息赋值为第二数值(如-1);The seventh step is to assign a first value (such as 1) to the difference degree record information representing that the target firmware needs to be updated when the degree of difference of the firmware is greater than the threshold of the degree of difference. When the difference degree is greater than the difference degree threshold, it is determined that the difference degree record information that does not need to be updated to the target firmware is assigned a second value (such as -1);
第八步,基于更新后的目标差异度记录信息有序集合中的每一条差异度记录信息对应的赋值(如所述第一数值或所述第二数值)和权重系数进行加权求和计算,得到计算结果;The eighth step is to perform a weighted sum calculation based on the assignment (such as the first numerical value or the second numerical value) and the weight coefficient corresponding to each piece of difference degree record information in the updated target difference degree record information ordered set, get the calculation result;
第九步,基于所述计算结果与所述第一数值和所述第二数值之间的大小关系,对预设的差异度初始阈值进行修正处理,得到所述差异度阈值(例如,在所述第一数值为1、所述第二数值为-1时,若该计算结果大于0,可以减小该差异度初始阈值,得到所述差异度阈值,如减小10%;若该计算结果小于或等于0,可以增加该差异度初始阈值,得到所述差异度阈值,如增加10%)。The ninth step, based on the magnitude relationship between the calculation result and the first numerical value and the second numerical value, perform a correction process on the preset difference degree initial threshold value to obtain the difference degree threshold value (for example, in the When the first numerical value is 1 and the second numerical value is -1, if the calculation result is greater than 0, the initial threshold value of the difference degree can be reduced to obtain the difference degree threshold value, such as reducing by 10%; If it is less than or equal to 0, the initial threshold of the degree of difference can be increased to obtain the threshold of the degree of difference, such as an increase of 10%).
可以理解的是,在上述示例中,计算所述差异度记录信息有序集合之间的集合相似性信息的具体方式不受限制,可以根据实际应用需求选择。It can be understood that, in the above example, the specific method of calculating the set similarity information between the ordered sets of the difference degree record information is not limited, and can be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以基于以下步骤以计算所述差异度记录信息有序集合之间的集合相似性信息:For example, in an alternative example, the set similarity information between the ordered sets of difference record information can be calculated based on the following steps:
第一步,针对所述多个差异度记录信息有序集合中的每两个差异度记录信息有序集合,将该两个差异度记录信息有序集合分别作为第一差异度记录信息有序集合和第二差异度记录信息有序集合;In the first step, for each two ordered sets of difference degree record information in the plurality of ordered sets of difference degree record information, the two ordered sets of difference degree record information are respectively regarded as the first order of difference degree record information. The set and the second degree of difference record information ordered set;
第二步,基于所述第一差异度记录信息有序集合中每一个差异度记录信息对应的表征值(如前文所述第一数值和第二数值),得到对应的第一表征值有序集合,并基于所述第二差异度记录信息有序集合中每一个差异度记录信息对应的表征值,得到对应的第二表征值有序集合,其中,所述表征值基于所述差异度记录信息表征的内容确定,且具有相同表征内容的差异度记录信息对应的表征值相同,具有不同表征内容的差异度记录信息对应的表征值不同;In the second step, based on the characterization value (such as the first value and the second value described above) corresponding to each difference degree record information in the ordered set of the first difference degree record information, obtain the corresponding first characterization value in order collection, and based on the characterization value corresponding to each difference degree record information in the second difference degree record information ordered set, a corresponding second characterization value ordered set is obtained, wherein the characterization value is based on the difference degree record The content of the information representation is determined, and the representation value corresponding to the difference degree record information with the same representation content is the same, and the representation value corresponding to the difference degree record information with different representation content is different;
第三步,将所述第一表征值有序集合和所述第二表征值有序集合进行对比,得到对应的表征值对比有序集合,其中,所述表征值对比有序集合用于表征所述第一表征值有序集合和所述第二表征值有序集合之间对应排序位置的第一表征值是否相同(如所述第一表征值有序集合和所述第二表征值有序集合中对应位置的表征值相同,表征值对比有序集合中对应位置的参数为1;所述第一表征值有序集合和所述第二表征值有序集合中对应位置的表征值不同,表征值对比有序集合中对应位置的参数为0);The third step is to compare the first ordered set of characterization values with the second ordered set of characterization values to obtain a corresponding ordered set of characterization values compared, wherein the characterization value comparison ordered set is used to represent Whether the first characterization values at the corresponding sorting positions between the first ordered set of characterization values and the second ordered set of characterization values are the same (for example, the first ordered set of characterization values and the second ordered set of characterization values have The characterization value of the corresponding position in the ordered set is the same, and the parameter of the characterization value compared to the corresponding position in the ordered set is 1; , the parameter of the corresponding position in the characterization value is 0 compared to the ordered set);
第四步,对所述表征值对比有序集合进行解析,得到该表征值对比有序集合对应的表征值对比特征信息,其中,所述表征值对比特征信息用于表征所述第一表征值有序集合和所述第二表征值有序集合之间的相似性信息(例如,可以将所述表征值对比有序集合中第一参数的数量与所述表征值对比有序集合中所有参数的数量的比值作为所述表征值对比特征信息,该第一参数表征所述第一表征值有序集合和所述第二表征值有序集合中对应位置的标准值相同);The fourth step is to analyze the characterization value comparison ordered set to obtain characterization value comparison feature information corresponding to the characterization value comparison ordered set, wherein the characterization value comparison feature information is used to characterize the first characterization value Similarity information between the ordered set and the second ordered set of characteristic values (for example, the characteristic value can be compared with the number of first parameters in the ordered set and the characteristic value compared with all parameters in the ordered set The ratio of the number of s is used as the characteristic value contrast characteristic information, and the first parameter indicates that the standard value of the corresponding position in the ordered set of the first characteristic value and the ordered set of the second characteristic value is the same);
第五步,基于所述表征值对比特征信息,得到对应的第一差异度记录信息有序集合和第二差异度记录信息有序集合之间的集合相似性信息(例如,可以直接将所述表征值对比特征信息作为所述集合相似性信息)。Step 5: Based on the characteristic value comparison feature information, obtain the set similarity information between the corresponding ordered set of first degree of difference record information and the corresponding ordered set of second degree of difference record information (for example, you can directly The characterization value is compared with the feature information as the set similarity information).
又例如,在另一种可以替代的示例中,可以基于以下步骤以计算所述差异度记录信息有序集合之间的集合相似性信息:For another example, in another alternative example, the set similarity information between the ordered sets of difference record information can be calculated based on the following steps:
第一步,针对所述多个差异度记录信息有序集合中的每两个差异度记录信息有序集合,将该两个差异度记录信息有序集合分别作为第一差异度记录信息有序集合和第二差异度记录信息有序集合;In the first step, for each two ordered sets of difference degree record information in the plurality of ordered sets of difference degree record information, the two ordered sets of difference degree record information are respectively regarded as the first order of difference degree record information. The set and the second degree of difference record information ordered set;
第二步,依次将所述第一差异度记录信息有序集合中的每一条所述差异度记录信息确定为目标差异度记录信息;The second step is to sequentially determine each piece of the difference degree record information in the ordered set of the first difference degree record information as the target difference degree record information;
第三步,基于表征的内容,将所述目标差异度记录信息与所述第二差异度记录信息有序集合中对应位置的差异度记录信息进行比对(例如,所述目标差异度记录信息为所述第一差异度记录信息有序集合中的第一条差异度记录信息,则将该目标差异度记录信息表征的内容与所述第二差异度记录信息有序集合中的第一条差异度记录信息表征的内容进行对比,以确定两条差异度记录信息表征的内容是否相同);The third step is to compare the target difference degree record information with the difference degree record information of the corresponding position in the ordered set of the second difference degree record information based on the content of the representation (for example, the target difference degree record information is the first piece of difference record information in the ordered set of the first difference degree record information, then the content represented by the target difference degree record information and the first piece of the second difference degree record information in the ordered set The content represented by the difference degree record information is compared to determine whether the content represented by the two difference degree record information is the same);
第四步,统计与所述第二差异度记录信息有序集合中对应位置的差异度记录信息之间表征内容相同的目标差异度记录信息的数量,得到第一数量,并基于该第一数量和所述第一差异度记录信息有序集合包括的差异度记录信息的第二数量得到对应的第一比例值(例如,所述第一差异度记录信息有序集合中有5条差异度记录信息,其中,有3条差异度记录信息与所述第二差异度记录信息有序集合中对应位置的差异度记录信息具有相同的表征内容,对应的第一比例值为3/5);The fourth step is to count the number of the target difference degree record information with the same content as the difference degree record information of the corresponding position in the ordered set of the second degree of difference record information, to obtain the first number, and based on the first number and the second quantity of the difference degree record information included in the first difference degree record information ordered set to obtain the corresponding first ratio value (for example, there are 5 difference degree records in the first difference degree record information ordered set. information, among which, there are 3 pieces of difference degree record information and the difference degree record information of the corresponding position in the second ordered set of difference degree record information have the same representation content, and the corresponding first ratio value is 3/5);
第五步,确定至少一个小于或等于所述第二数量的目标值,其中,每一个所述目标值大于1,且为整数(例如,若所述第二数量为5,则可以在2、3、4和5中任意选择一个或多个,其中,对于精度需求越高,选择的目标值的数量可以越大,需要越小的计算量,选择的目标值的数量可以越小);The fifth step is to determine at least one target value less than or equal to the second number, wherein each of the target values is greater than 1 and is an integer (for example, if the second number is 5, it can be between 2, 2, One or more of 3, 4 and 5 are arbitrarily selected, wherein, the higher the accuracy requirement, the larger the number of selected target values, and the smaller the amount of calculation required, the smaller the number of selected target values);
第六步,针对每一个所述目标值,依次将所述第一差异度记录信息有序集合中的每连续的所述目标值条差异度记录信息确定为差异度记录信息有序子集合(例如,所述第一差异度记录信息为“信息1、信息2、信息3、信息4”,所述目标值为3,则所述差异度记录信息有序子集合可以包括“信息1、信息2、信息3”、“信息2、信息3、信息4”);The sixth step, for each of the target values, successively determine each successive piece of the difference degree record information in the first difference degree record information ordered set as the difference degree record information ordered subset ( For example, the first difference degree record information is "Information 1, Information 2, Information 3, Information 4", and the target value is 3, then the ordered subset of difference degree record information may include "Information 1, Information 2. Information 3", "Information 2, Information 3, Information 4");
第七步,基于表征的内容,将所述差异度记录信息有序子集合与所述第二差异度记录信息有序集合中对应位置的所述目标值条连续的差异度记录信息进行比对(例如,基于前述的示例,若所述差异度记录信息有序子集合为“信息1、信息2、信息3”,则将所述第二差异度记录信息有序集合中的第一条差异度记录信息、第二条差异度记录信息和第三条差异度记录信息对比,且只有该信息1与该第一条差异度记录信息表征的内容相同、该信息2与该第二条差异度记录信息表征的内容相同、该信息2与该第三条差异度记录信息表征的内容相同时,才确定“信息1、信息2、信息3”与所述第二差异度记录信息有序集合中的第一条差异度记录信息、第二条差异度记录信息和第三条差异度记录信息之间表征的内容相同);The seventh step, based on the content of the representation, compare the ordered subset of the difference degree record information with the continuous difference degree record information of the target value bar at the corresponding position in the second ordered set of difference degree record information. (For example, based on the foregoing example, if the ordered subset of the difference degree record information is "Information 1, Information 2, Information 3", then the second degree of difference records the first difference in the ordered set of information. The difference degree record information, the second difference degree record information and the third difference degree record information are compared, and only the content represented by the information 1 and the first difference degree record information is the same, and the information 2 and the second difference degree record information. When the content represented by the record information is the same, and the content represented by the information 2 and the third difference degree record information are the same, it is determined that "Information 1, Information 2, and Information 3" are in the ordered set of the second difference degree record information. The first discrepancy record information, the second discrepancy record information and the third discrepancy record information have the same content);
第八步,针对每一个所述目标值,统计与所述第二差异度记录信息有序集合中对应位置的该目标值条连续的差异度记录信息之间表征的内容相同的差异度记录信息有序子集合的数量,得到该目标值对应的第三数量,并基于该第三数量得到该目标值对应的第二比例值(例如,在上述示例的基础上,目标值为3,若表征的内容相同的差异度记录信息有序子集合的数量为1,其中,差异度记录信息有序子集合的总数量为2,则对应的第二比例值为1/2);The eighth step, for each of the target values, count the difference degree record information that is the same as the content of the difference degree record information represented by the continuous difference degree record information of the target value bar at the corresponding position in the second difference degree record information ordered set. The number of ordered subsets, the third number corresponding to the target value is obtained, and the second proportional value corresponding to the target value is obtained based on the third number (for example, on the basis of the above example, the target value is 3, if the representation The number of ordered subsets of difference degree record information with the same content is 1, and the total number of ordered subsets of difference degree record information is 2, then the corresponding second ratio is 1/2);
第九步,基于所述第一比例值和每一个所述目标值对应的所述第二比例值进行加权计算,得到所述第一差异度记录信息有序集合和所述第二差异度记录信息有序集合之间的集合相似性信息,其中,所述第二比例值对应的权重系数大于所述第一比例值对应的权重系数,不同目标值对应的第二比例值的权重系数不同,且所述第二比例值对应的权重系数与对应的目标值之间具有正相关关系(例如,在上述示例的基础上,第一比例值为0.6,对应的权重系数为0.4,第二比例值为0.5,对应的权重系数为0.6,则所述集合相似性信息为0.54)。The ninth step is to perform weighted calculation based on the first proportional value and the second proportional value corresponding to each of the target values to obtain the ordered set of the first difference degree record information and the second difference degree record. Set similarity information between ordered sets of information, wherein the weight coefficient corresponding to the second scale value is greater than the weight coefficient corresponding to the first scale value, and the weight coefficients of the second scale values corresponding to different target values are different, And there is a positive correlation between the weight coefficient corresponding to the second scale value and the corresponding target value (for example, on the basis of the above example, the first scale value is 0.6, the corresponding weight coefficient is 0.4, and the second scale value is 0.4. is 0.5, and the corresponding weight coefficient is 0.6, then the set similarity information is 0.54).
再例如,在另一种可以替代的示例中,可以基于以下步骤以计算所述差异度记录信息有序集合之间的集合相似性信息:For another example, in another alternative example, the set similarity information between the ordered sets of difference record information can be calculated based on the following steps:
第一,针对所述多个差异度记录信息有序集合中的每两个差异度记录信息有序集合,将该两个差异度记录信息有序集合分别作为对应的第一差异度记录信息有序集合和第二差异度记录信息有序集合;First, for every two ordered sets of difference degree record information in the plurality of ordered sets of difference degree record information, the two ordered sets of difference degree record information are respectively used as the corresponding first difference degree record information: an ordered set and an ordered set of record information of the second degree of difference;
第二步,针对对应的每两个差异度记录信息有序集合,确定该两个差异度记录信息有序集合中的每一个差异度记录信息有序集合的第一记录信息有序子集合和第二记录信息有序子集合(即确定所述第一差异度记录信息有序集合的第一记录信息有序子集合和第二记录信息有序子集合,并确定所述第二差异度记录信息有序集合的第一记录信息有序子集合和第二记录信息有序子集合);In the second step, for each of the corresponding ordered sets of difference degree record information, determine the first ordered subset of record information of each of the two ordered sets of difference degree record information in the two ordered sets of difference degree record information and The second ordered subset of record information (that is, to determine the ordered subset of first record information and the second ordered subset of record information of the ordered set of first degree of difference record information, and to determine the second degree of difference record The first ordered subset of record information and the second ordered subset of record information of the ordered set of information);
第三步,针对对应的每两个差异度记录信息有序集合,确定对应的所述第一差异度记录信息有序集合和所述第二差异度记录信息有序集合构成的第三差异度记录信息有序集合(例如,可以获取所述第一差异度记录信息有序集合中的差异度记录信息和所述第二差异度记录信息有序集合中的差异度记录信息的并集,得到记录信息并集,然后,计算该记录信息并集中每一个差异度记录信息在所述第一差异度记录信息有序集合和所述第二差异度记录信息有序集合中具有的时间相关性信息的平均值信息,再基于该平均值信息的大小关系对该记录信息并集中的每一个差异度记录信息进行排序,得到该第三差异度记录信息有序集合,如排序在前的差异度记录信息对应的平均值信息较大);Step 3: For each two corresponding ordered sets of difference degree record information, determine a third degree of difference formed by the corresponding ordered set of first difference degree record information and the second order set of difference degree record information. The ordered set of record information (for example, the union of the difference degree record information in the ordered set of the first difference degree record information and the difference degree record information in the ordered set of the second difference degree record information can be obtained to obtain Record information union, and then calculate the time correlation information of each difference degree record information in the first difference degree record information ordered set and the second difference degree record information ordered set in the record information union Then, based on the size relationship of the average value information, sort each difference degree record information in the record information union to obtain the third difference degree record information ordered set, such as the difference degree record in the first order. The average information corresponding to the information is larger);
第四步,针对每一个所述第三差异度记录信息有序集合,确定该第三差异度记录信息有序集合的第三记录信息有序子集合和第四记录信息有序子集合,其中,所述第一记录信息有序子集合和所述第二记录信息有序子集合在对应的差异度记录信息有序集合中互为补集,所述第三记录信息有序子集合和所述第四记录信息有序子集合在对应的差异度记录信息有序集合中互为补集,且所述第一记录信息有序子集合与所述第三记录信息有序子集合基于相同的采样规则采样得到(例如,可以在对应的差异度记录信息有序集合中,将奇数位的差异度记录信息构成所述第一记录信息有序子集合或构成所述第三记录信息有序子集合);The fourth step is to determine, for each ordered set of third degree of difference record information, a third ordered subset of record information and a fourth ordered subset of record information of the ordered set of third degree of difference record information, wherein , the first ordered subset of record information and the second ordered subset of record information are complementary sets in the corresponding ordered set of difference degree record information, and the third ordered subset of record information and all The fourth ordered subset of record information is complementary to each other in the corresponding ordered set of difference degree record information, and the first ordered subset of record information and the third ordered subset of record information are based on the same Sampling rule sampling (for example, in the corresponding ordered set of difference degree record information, odd-digit difference degree record information can be formed into the first record information ordered subset or the third record information ordered subset. gather);
第五步,根据每一个所述差异度记录信息有序集合的第一记录信息有序子集合和对应的所述第三差异度记录信息有序集合的第三记录信息有序子集合,计算所述差异度记录信息有序集合的第一关联值,其中,所述第一关联值用于表征所述第一记录信息有序子集合与所述第三记录信息有序子集合之间的关联关系;Step 5: According to the first ordered subset of record information of each of the ordered sets of difference degree record information and the corresponding ordered subset of third record information of the ordered set of third degree of difference record information, calculate The first correlation value of the ordered set of difference degree record information, wherein the first correlation value is used to represent the relationship between the ordered subset of the first record information and the ordered subset of the third record information. connection relation;
第六步,根据每一个所述差异度记录信息有序集合的第二记录信息有序子集合和对应的所述第三差异度记录信息有序集合的第四记录信息有序子集合,计算所述差异度记录信息有序集合的第二关联值,其中,所述第一关联值用于表征所述第二记录信息有序子集合与所述第四记录信息有序子集合之间的关联关系;The sixth step is to calculate according to the second ordered subset of record information of each of the ordered sets of difference degree record information and the corresponding ordered subset of fourth record information of the ordered set of third degree of difference record information. The second correlation value of the ordered set of difference degree record information, wherein the first correlation value is used to represent the relationship between the ordered subset of the second record information and the ordered subset of the fourth record information. connection relation;
第七步,基于预先确定的权重系数,对每一个所述差异度记录信息有序集合的第一关联值和第二关联值进行加权计算,得到所述差异度记录信息有序集合与所述第三差异度记录信息有序集合之间的集合相似性信息(可以理解的是,所述权重系数可以基于用户根据实际应用场景进行的配置操作生成,其具体数值不受限制,只要满足所述第一关联值和所述第二关联值的权重系数之和为1即可);The seventh step is to perform weighted calculation on the first correlation value and the second correlation value of each ordered set of difference degree record information based on a predetermined weight coefficient, to obtain the ordered set of difference degree record information and the The third degree of difference records the set similarity information between the ordered sets of information (it can be understood that the weight coefficient can be generated based on the configuration operation performed by the user according to the actual application scenario, and its specific value is not limited, as long as the The sum of the weight coefficients of the first associated value and the second associated value is 1);
第八步,针对对应的每两个差异度记录信息有序集合,计算该两个差异度记录信息有序集合包括的每一个差异度记录信息有序集合与对应的所述第三差异度记录信息有序集合之间的集合相似性信息的平均值,得到该两个差异度记录信息有序集合包括的第一差异度记录信息有序集合和第二差异度记录信息有序集合之间的集合相似性信息(例如,将所述第一差异度记录信息有序集合与所述第三差异度记录信息有序集合之间的集合相似性信息加上所述第二差异度记录信息有序集合与所述第三差异度记录信息有序集合之间的集合相似性信息,再除以2,得到所述第一差异度记录信息有序集合和所述第二差异度记录信息有序集合之间的集合相似性信息)。The eighth step, for each two corresponding ordered sets of difference degree record information, calculate each ordered set of difference degree record information included in the two ordered sets of difference degree record information and the corresponding third difference degree record. The average value of the set similarity information between the ordered sets of information is obtained, and the average value between the ordered set of the first and the second ordered set of record information of the difference degree included in the two ordered sets of difference degree record information is obtained. Set similarity information (for example, adding the set similarity information between the ordered set of the first difference degree record information and the ordered set of the third difference degree record information plus the second difference degree record information in an orderly manner. The set similarity information between the set and the ordered set of the third degree of difference record information is divided by 2 to obtain the ordered set of the first degree of difference record information and the ordered set of the second degree of difference record information set similarity information between).
可以理解的是,在上述示例中,计算所述差异度记录信息有序集合的第一关联值的具体方式不受限制,可以根据实际需求选择。It can be understood that, in the above example, the specific manner of calculating the first correlation value of the ordered set of difference degree record information is not limited, and can be selected according to actual requirements.
例如,在一种可以替代的示例中,可以基于以下步骤以计算所述差异度记录信息有序集合的第一关联值:For example, in an alternative example, the first associated value of the ordered set of difference record information may be calculated based on the following steps:
首先,计算所述差异度记录信息有序集合的第一记录信息有序子集合的标准差(即计算第一记录信息有序子集合中各差异度记录信息的表征值的标准差,该表征值如前所述),并计算所述第三差异度记录信息有序集合的第三记录信息有序子集合的标准差(即计算第三记录信息有序子集合中各差异度记录信息的表征值的标准差);First, calculate the standard deviation of the first ordered subset of record information in the ordered set of difference degree record information (that is, calculate the standard deviation of the characterization values of each difference degree record information in the first ordered subset of record information, the characterization value as described above), and calculate the standard deviation of the ordered subset of the third record information of the ordered set of the third degree of difference record information (that is, to calculate the difference of the degree of difference record information in the ordered subset of the third record information standard deviation of the characterization value);
其次,计算所述差异度记录信息有序集合的第一记录信息有序子集合与所述第三差异度记录信息有序集合的第三记录信息有序子集合的协方差(即计算第一记录信息有序子集合中各差异度记录信息的表征值与第三记录信息有序子集合中各差异度记录信息的表征值之间的协方差);Next, calculate the covariance of the first ordered subset of record information of the ordered set of difference degree record information and the third ordered subset of record information of the ordered set of third degree of difference record information (that is, to calculate the first the covariance between the characteristic value of the record information of each degree of difference in the ordered subset of record information and the characteristic value of the record information of each degree of difference in the ordered subset of the third record information);
然后,根据所述第一记录信息有序子集合的标准差、所述第三记录信息有序子集合的标准差和所述第一记录信息有序子集合与所述第三记录信息有序子集合的协方差,计算所述差异度记录信息有序集合的第一关联值(例如,可以计算两个标准差和该协方差的均值,再基于该均值得到该第一关联值,其中,该均值与该第一关联值之间具有负相关关系,如将该值的绝对值的倒数作为该第一关联值)。Then, according to the standard deviation of the ordered subset of the first record information, the standard deviation of the ordered subset of the third record information, and the ordered subset of the first record information and the third record information are ordered The covariance of the subsets is calculated, and the first correlation value of the ordered set of difference record information is calculated (for example, two standard deviations and the mean of the covariance can be calculated, and then the first correlation value can be obtained based on the mean, wherein, There is a negative correlation between the mean value and the first associated value, for example, the inverse of the absolute value of the value is taken as the first associated value).
可以理解的是,在上述示例中,计算所述差异度记录信息有序集合的第二关联值的具体方式不受限制,可以根据实际应用需求进行选择。It can be understood that, in the above example, the specific manner of calculating the second correlation value of the ordered set of difference degree record information is not limited, and can be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以基于以下步骤以计算所述差异度记录信息有序集合的第二关联值:For example, in an alternative example, the second association value of the ordered set of difference record information may be calculated based on the following steps:
首先,计算所述差异度记录信息有序集合的第二记录信息有序子集合的标准差(即计算第二记录信息有序子集合中各差异度记录信息的表征值的标准差),并计算所述第三差异度记录信息有序集合的第四记录信息有序子集合的标准差(即计算第四记录信息有序子集合中各差异度记录信息的表征值的标准差);First, calculate the standard deviation of the ordered subset of the second record information of the ordered set of difference degree record information (that is, calculate the standard deviation of the characteristic value of each difference degree record information in the ordered subset of the second record information), and calculating the standard deviation of the ordered subset of the fourth record information of the ordered set of the third degree of difference record information (that is, calculating the standard deviation of the representation value of each degree of difference record information in the ordered subset of the fourth record information);
其次,计算所述差异度记录信息有序集合的第二记录信息有序子集合与所述第三差异度记录信息有序集合的第四记录信息有序子集合的协方差(即计算第二记录信息有序子集合中各差异度记录信息的表征值与第四记录信息有序子集合中各差异度记录信息的表征值之间的协方差);Next, calculate the covariance of the second ordered subset of record information of the ordered set of difference degree record information and the fourth ordered subset of record information of the third ordered set of difference degree record information (that is, to calculate the second the covariance between the characteristic value of each difference degree record information in the ordered subset of record information and the characteristic value of each difference degree record information in the fourth record information ordered subset);
然后,根据所述第二记录信息有序子集合的标准差、所述第四记录信息有序子集合的标准差和所述第二记录信息有序子集合与所述第四记录信息有序子集合的协方差,计算所述差异度记录信息有序集合的第二关联值(例如,可以计算两个标准差和该协方差的均值,再基于该均值得到该第二关联值,其中,该均值与该第二关联值之间具有负相关关系,如将该值的绝对值的倒数作为该第二关联值)。Then, according to the standard deviation of the ordered subset of the second record information, the standard deviation of the ordered subset of the fourth record information, and the ordered subset of the second record information and the fourth record information are ordered The covariance of the subset is calculated, and the second correlation value of the ordered set of difference record information is calculated (for example, two standard deviations and the mean value of the covariance can be calculated, and then the second correlation value can be obtained based on the mean value, wherein, There is a negative correlation between the mean value and the second correlation value, for example, the reciprocal of the absolute value of the value is taken as the second correlation value).
第三方面,对于步骤S130需要说明的是,从所述目标服务器获取所述第一固件版本号信息对应的更新固件的具体方式不受限制,可以根据实际应用需求进行选择。In the third aspect, it should be noted that in step S130, the specific manner of acquiring the updated firmware corresponding to the first firmware version number information from the target server is not limited, and may be selected according to actual application requirements.
例如,在一种可以替代的示例中,若确定需要对所述目标固件进行更新,可以先生成请求信息,其中,该请求信息中可以携带所述第一固件版本号信息。然后,将该请求信息发送给所述目标服务器,使得该目标服务器可以基于该请求信息,将所述第一固件版本号信息对应的更新固件发生给所述目标无线网络设备。For example, in an alternative example, if it is determined that the target firmware needs to be updated, request information may be generated first, where the request information may carry the first firmware version number information. Then, the request information is sent to the target server, so that the target server can update the firmware corresponding to the first firmware version number information to the target wireless network device based on the request information.
第四方面,对于步骤S140需要说明的是,基于所述更新固件对所述目标固件执行更新操作的具体方式不受限制,可以根据实际应用需求选择。In the fourth aspect, it should be noted for step S140 that the specific manner of performing the update operation on the target firmware based on the update firmware is not limited, and can be selected according to actual application requirements.
例如,在一种可以替代的示例中,可以直接将所述目标固件替换为所述更新固件,以实现对所述目标固件的更新。For example, in an alternative example, the target firmware can be directly replaced with the update firmware to implement the update of the target firmware.
在上述示例的基础上,在执行所述基于所述更新固件对所述目标固件执行更新操作的步骤之后,所述无线网络设备固件更新方法还可以包括以下步骤:On the basis of the above example, after performing the step of performing an update operation on the target firmware based on the update firmware, the method for updating the firmware of a wireless network device may further include the following steps:
首先,运行更新后的目标固件,并获取运行该目标固件的运行状态信息;其次,基于所述运行状态信息确定所述目标固件是否更新成功(即确定所述更新后的目标固件是否能够正常运行,若不能够正常运行,则确定未更新成功,若能够正常运行,则确定更新成功);然后,若确定所述目标固件更新成功,则生成用于表征该目标固件更新成功的更新通知信息,并将所述更新通知信息发送给所述目标服务器。First, run the updated target firmware, and obtain running status information for running the target firmware; secondly, determine whether the target firmware is successfully updated based on the running status information (that is, determine whether the updated target firmware can run normally , if it cannot run normally, it is determined that the update is not successful, and if it can run normally, it is determined that the update is successful); then, if it is determined that the target firmware is updated successfully, an update notification message for characterizing the success of the target firmware update is generated, and send the update notification information to the target server.
综上所述,本申请提供的无线网络设备固件更新方法和无线网络设备,通过将目标无线网络设备上目标固件的固件版本号信息与目标服务器上存储的对应的固件版本号信息进行对比,以确定是否对目标固件进行更新,使得在确定需要对目标固件进行更新时,从目标服务器获取第一固件版本号信息对应的更新固件,并基于更新固件对目标固件执行更新操作。基于此,可以通过无线网络设备的判断实现对无线网络设备固件的自动更新,能够有效降低更新的成本,并提高更新的效率,从而改善现有技术中无线网络设备的更新过程存在成本较高和效率较低的问题,使得具有较高的实用价值。To sum up, the wireless network device firmware update method and wireless network device provided by this application, by comparing the firmware version number information of the target firmware on the target wireless network device with the corresponding firmware version number information stored on the target server, to Whether to update the target firmware is determined, so that when it is determined that the target firmware needs to be updated, the update firmware corresponding to the first firmware version number information is obtained from the target server, and an update operation is performed on the target firmware based on the update firmware. Based on this, the automatic update of the firmware of the wireless network device can be realized through the judgment of the wireless network device, which can effectively reduce the cost of the update and improve the efficiency of the update, thereby improving the update process of the wireless network device in the prior art. The problem of lower efficiency makes it have higher practical value.
在本申请实施例所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置和方法实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided by the embodiments of this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus and method embodiments described above are only illustrative, for example, the flowcharts and block diagrams in the accompanying drawings show the architecture, possible implementation of the apparatus, method and computer program product according to various embodiments of the present application, function and operation. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,电子设备,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes . It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210785749.6A CN114867046B (en) | 2022-07-06 | 2022-07-06 | Wireless network equipment firmware updating method and wireless network equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210785749.6A CN114867046B (en) | 2022-07-06 | 2022-07-06 | Wireless network equipment firmware updating method and wireless network equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114867046A CN114867046A (en) | 2022-08-05 |
| CN114867046B true CN114867046B (en) | 2022-09-13 |
Family
ID=82626794
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210785749.6A Active CN114867046B (en) | 2022-07-06 | 2022-07-06 | Wireless network equipment firmware updating method and wireless network equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114867046B (en) |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130047039A1 (en) * | 2011-08-18 | 2013-02-21 | Avanquest Software Usa, Inc. | System and method for computer analysis |
| US20130170417A1 (en) * | 2011-09-06 | 2013-07-04 | Evan A. Thomas | Distributed low-power monitoring system |
| US9417999B2 (en) * | 2012-12-17 | 2016-08-16 | International Business Machines Corporation | Write peformance in solid state storage by recognizing copy source to target operations and only storing updates instead of entire block |
| CN109597642A (en) * | 2017-09-30 | 2019-04-09 | 车伯乐(北京)信息科技有限公司 | A kind of code statistical method, device, server, equipment and readable medium |
| JP7210908B2 (en) * | 2018-06-05 | 2023-01-24 | ソニーグループ株式会社 | Information processing device, information processing method and program |
| CN109976784A (en) * | 2019-01-24 | 2019-07-05 | 金卡智能集团股份有限公司 | Intelligent internet of things measuring instrument remote firmware updating method and system |
| CN112445507B (en) * | 2019-09-05 | 2024-06-11 | 阿里巴巴集团控股有限公司 | Equipment upgrading method and device |
| EP3798822A1 (en) * | 2019-09-27 | 2021-03-31 | Argus Cyber Security Ltd | System and method for block and delta based update |
| CN110727456A (en) * | 2019-10-12 | 2020-01-24 | 上海莉莉丝科技股份有限公司 | Method, device, equipment and system for downloading application program patch package |
| CN111258621B (en) * | 2019-11-19 | 2022-08-02 | 浙江瑞银电子有限公司 | Differentiated firmware upgrading method |
| CN111158738B (en) * | 2019-12-30 | 2023-10-24 | 青岛歌尔智能传感器有限公司 | Headset firmware upgrading method and device and readable storage medium |
| CN113468118B (en) * | 2021-05-11 | 2023-09-22 | 深圳前海移联科技有限公司 | File increment storage method, device and storage medium based on blockchain |
| CN114138907B (en) * | 2021-12-02 | 2025-07-29 | 中国工商银行股份有限公司 | Data processing method, computer device, storage medium and computer program product |
-
2022
- 2022-07-06 CN CN202210785749.6A patent/CN114867046B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN114867046A (en) | 2022-08-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106649831B (en) | Data filtering method and device | |
| US9471544B1 (en) | Anomaly detection in a signal | |
| CN110471821B (en) | Abnormality change detection method, server, and computer-readable storage medium | |
| CN115033453B (en) | Abnormality detection method, device, equipment, storage medium and program | |
| CN106598822A (en) | Abnormal data detection method and device applied to capacity estimation | |
| CN110647447B (en) | Abnormal instance detection method, device, equipment and medium for distributed system | |
| CN112328688B (en) | Data storage method, device, computer equipment and storage medium | |
| CN110737691B (en) | Method and apparatus for processing access behavior data | |
| CN106033574B (en) | Method and device for identifying cheating behaviors | |
| CN112445690A (en) | Information acquisition method and device and electronic equipment | |
| CN111861328B (en) | Method for establishing logistics identification database, method and equipment for querying and updating logistics trajectory | |
| Ulrich et al. | Fast and space-efficient taxonomic classification of long reads with hierarchical interleaved XOR filters | |
| CN114780606B (en) | Big data mining method and system | |
| CN114867046B (en) | Wireless network equipment firmware updating method and wireless network equipment | |
| CN112445835A (en) | Business data processing method and device, network management server and storage medium | |
| CN112527622B (en) | A performance test result analysis method and device | |
| CN115114343A (en) | Root cause rule establishment method, root cause analysis method and device | |
| CN117834231A (en) | Target user identification method and device and electronic equipment | |
| CN107656927A (en) | A kind of feature selection approach and equipment | |
| CN115238779B (en) | A cloud disk anomaly detection method, device, equipment and medium | |
| CN114791914A (en) | User behavior statistics method, device, device and medium based on Bitmap | |
| CN112684398B (en) | Electric energy meter operation error monitoring method and system based on dynamic line loss | |
| CN111695829B (en) | Index fluctuation period calculation method and device, storage medium and electronic equipment | |
| CN108984101A (en) | In the method and device for determining relationship between event in distributed memory system | |
| CN111767198A (en) | System risk prediction method and device based on classification label sequence matching |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PP01 | Preservation of patent right | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20250513 Granted publication date: 20220913 |