CN115348173A - Area upgrading control method for household intelligent gateway - Google Patents

Area upgrading control method for household intelligent gateway Download PDF

Info

Publication number
CN115348173A
CN115348173A CN202211132006.5A CN202211132006A CN115348173A CN 115348173 A CN115348173 A CN 115348173A CN 202211132006 A CN202211132006 A CN 202211132006A CN 115348173 A CN115348173 A CN 115348173A
Authority
CN
China
Prior art keywords
mac
intelligent gateway
home intelligent
configuration file
file
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.)
Pending
Application number
CN202211132006.5A
Other languages
Chinese (zh)
Inventor
雷鹏
邵长利
郭中磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN202211132006.5A priority Critical patent/CN115348173A/en
Publication of CN115348173A publication Critical patent/CN115348173A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a regional upgrade control method for a home intelligent gateway, which comprises the following steps: receiving and analyzing the downloaded configuration file; acquiring a configuration file version number in a configuration file; judging whether the version number is consistent with the current MAC version number of the home intelligent gateway or not; if the version number is not consistent with the MAC version number, downloading a new configuration file according to the URL corresponding to the version number; searching whether an MAC address matched with the MAC of the home intelligent gateway exists in an MAC address library contained in the configuration file; if the matched MAC address exists in the MAC address library, downloading an upgrade file according to a download address corresponding to the MAC address; and after the upgrade file is successfully verified, upgrading the home intelligent gateway according to the upgrade file. According to the method and the device, the installation area is identified through the MAC address in the configuration file, server identification is not needed, and the configuration file only contains the download address of the upgrade file, so that the calculation capacity and the flow of the server are saved.

Description

Area upgrading control method for household intelligent gateway
This application is a divisional application, filed as original application No. 202210612943.4, filed as 2022, 5/31, the entire contents of which are incorporated herein by reference.
Technical Field
The application relates to the technical field of home intelligent gateways, in particular to a regional upgrade control method of a home intelligent gateway.
Background
With the rise and development of the internet of things, a large number of sensors and routers capable of accessing the internet are integrated into the life of people. Nowadays, internet of things devices are in billions, and the ever-changing requirements of people are met by continuously upgrading firmware and updating software of routers.
At present, the upgrading of a router comprises Content Delivery Network (CDN) upgrading and centralized control upgrading, in an OTA (Over The Air, depending on Over The Air) scheme of a conventional router based on CDN technology, the MAC addresses of The router in a packing box are continuous, and The routers distributed to various cities are transported based on The packing box, so that The upgrading of a designated area can be completed by using a limited number of MAC address sections; the centralized control usually includes that the terminal periodically initiates an upgrade request to establish a session with the server, the upgrade request includes information of the terminal, and the server extracts the information of the terminal and compares the information with the information of the server database to determine whether to upgrade or not and upgrade the version used.
However, the CDN upgrade method is not accurate enough in regional locking, and in an actual use scenario, often, due to some errors in management, the router is installed in a disordered manner, and the MAC address cannot be used to control an address in a real space; the centralized control upgrading mode comprises a large amount of transportation and system I/O (input/output) inside the server, an upgrading packet of the upgrading mode cannot be stored by using the CDN, the network speed of the computing center can generate a bottleneck in the upgrading process of millions of platforms, other services of the computing center are forced to be stopped, the server has to adopt a flow control algorithm to ensure that the services of the computing center are normal, the computational overhead of a server side is increased, and the real-time performance of terminal upgrading is reduced.
Disclosure of Invention
The embodiment of the application provides a regional upgrading control method for a home intelligent gateway, which aims to accurately identify an installation region of the home intelligent gateway and save calculation power and flow of a server when the home intelligent gateway is upgraded.
The application provides a regional upgrade control method for a home intelligent gateway, which comprises the following steps:
receiving and analyzing the downloaded configuration file;
acquiring the version number of the configuration file in the configuration file;
judging whether the version number is consistent with the current MAC version number of the home intelligent gateway or not;
if the version number is not consistent with the current MAC version number of the home intelligent gateway, downloading a new configuration file according to the URL corresponding to the version number, and updating the MAC version number of the home intelligent gateway;
searching whether an MAC address matched with the MAC of the household intelligent gateway to be upgraded exists in an MAC address library contained in the configuration file;
if the matched MAC address exists in the MAC address library, downloading an upgrade file according to a download address corresponding to the MAC address;
checking the MD5 configuration file in the upgrading file;
and after the upgrade file is successfully checked, upgrading the home intelligent gateway according to the upgrade file.
In the regional upgrade control method for the home intelligent gateway, the home intelligent gateway comprises an interface and a CPU electrically connected with the interface, the interface is used for receiving downloaded configuration files, namely the home intelligent gateway sends an upgrade request to a CDN (content delivery network) through the interface so as to download the configuration files from the CDN, and the configuration files comprise an MAC (media access control) address library of the home intelligent gateway in a region and an upgrade file download address corresponding to the MAC address, so that the home intelligent gateway receives the MAC address library containing MAC addresses of all home intelligent gateways in an installation region so as to identify the installation region of the home intelligent gateway; when the home intelligent gateways are upgraded, the MAC address of each home intelligent gateway needs to be matched and identified, so that the home intelligent gateways in an installation area can be upgraded simultaneously; after receiving the downloaded configuration file, the home intelligent gateway searches whether an MAC address matched with the MAC of the home intelligent gateway to be upgraded exists in an MAC address library, namely, whether the MAC address of the home intelligent gateway to be upgraded belongs to the installation region is checked; if the matched MAC address exists in the MAC address library, the home intelligent gateway to be upgraded belongs to the installation region, the upgrade file is downloaded according to the download address corresponding to the matched MAC address, and after the upgrade file is successfully verified, the home intelligent gateway is upgraded according to the upgrade file. That is, the configuration file only contains the download address of the upgrade file, and the home intelligent gateway downloads the upgrade file from the CDN network according to the download address without the need for the server to provide an upgrade package, which can save server effort and traffic. According to the method, a configuration file downloaded from a CDN by a home intelligent gateway comprises an MAC address base of the home intelligent gateway in a region and an upgrade file download address corresponding to the MAC address, the installation region of the home intelligent gateway is identified according to whether the MAC address base has the MAC address matched with the MAC of the home intelligent gateway to be upgraded, so that the home intelligent gateway in the installation region can be upgraded conveniently, and the positioning algorithm does not depend on auxiliary algorithms such as protocols and sensors in a network topology angle; after the home intelligent gateway is positioned, the upgrading file is downloaded according to the downloading address corresponding to the matched MAC address, so that the calculation capacity and the flow of the server can be saved; the method has the advantages of accurately positioning the area of the user, optimizing the structure, miniaturizing the server, simplifying the calculation of the server side, simplifying the overstaffed server overhead, saving the hardware cost and the maintenance cost of the server and saving the network flow cost of the server outlet.
Drawings
FIG. 1 is a diagram of a connection relationship between a home intelligent gateway and a server, according to some embodiments;
fig. 2 is a connection relationship diagram of a home intelligent gateway and a content distribution network provided in the embodiment of the present application;
fig. 3 is a first flowchart of a method for controlling a zone upgrade of a home intelligent gateway according to an embodiment of the present application;
fig. 4 is a second flowchart of a method for controlling area upgrade of a home intelligent gateway according to an embodiment of the present application.
Detailed Description
To facilitate the description of the claimed embodiments, some concepts related to the present application will be described below.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a diagram of a connection relationship between a home intelligent gateway and a server according to some embodiments. As shown in fig. 1, when the home intelligent gateway is installed in a region, the home intelligent gateway is directly connected to the server, the MAC address of the home intelligent gateway is stored in the storage region of the server, and the server sends an upgrade file to the home intelligent gateway, so that the home intelligent gateway can be upgraded according to the upgrade file. When other home intelligent gateways are installed in the same area, a CDN network is connected between the server and the home intelligent gateways, namely the server and the CDN network are in communication connection, the CDN network is in communication connection with each home intelligent gateway, and MAC addresses of all the home intelligent gateways installed in the area are stored in the CDN network. Therefore, when the home intelligent gateway sends an upgrading request to the server, the server transmits the configuration file to the CDN, the home intelligent gateway sends the upgrading request to the CDN, and the upgrading file is downloaded in the CDN. In some embodiments, the home intelligent gateway includes a router, and the upgrade control method of the home intelligent gateway may be described by taking router upgrade as an example.
When The existing home intelligent gateway is upgraded, the upgrading mode mainly comprises CDN upgrading and centralized control upgrading, in The OTA (Over The Air, depending on Over The Air) scheme of The conventional home intelligent gateway based on CDN technology, the MAC addresses of The home intelligent gateway in a packing box are continuous, the home intelligent gateways distributed to various cities are transported based on The packing box, and therefore The upgrading of a designated area can be completed by using a limited number of MAC address sections. Namely, the MAC address field of a region is segmented continuously, for example, the MAC address of a region is segmented, 40 household intelligent gateways are taken as one segment, the MAC addresses of the 40 household intelligent gateways are 1-9, 11-19, 21-29, 30-39 and the like, when the household intelligent gateways in the region are upgraded, the segmentation is upgraded, namely, the 40 household intelligent gateways are upgraded firstly, and then the next 40 household intelligent gateways are upgraded after the upgrade is finished. However, the CDN upgrade method is not accurate enough in regional locking, and in an actual use scenario, the home intelligent gateway is often installed disorderly due to some errors in management, and the MAC address cannot be used to control the address in the real space.
When the centralized control upgrading is adopted, the centralized control usually means that a terminal periodically initiates an upgrading request to establish a session with a server, the upgrading request comprises terminal information, the server extracts the terminal information and compares the terminal information with the information of a server database to judge whether the upgrading is needed or not and upgrade the version used, namely, whether the upgrading is needed or not and whether the upgrading is needed or not are judged at the server. However, the centralized control upgrading mode includes a large amount of transportation and system I/O inside the server, and an upgrading packet of the upgrading mode cannot be stored by using the CDN, so that in a million-level upgrading process, a network rate of the computing center may become a bottleneck, which causes other services of the computing center to be forced to be suspended, and in order to ensure that a service of the computing center is normal, the server has to adopt a flow control algorithm, which increases computational overhead of a server side, and reduces real-time performance of terminal upgrading.
In order to solve the problems, the distributed algorithm is applied to an access network terminal (a home intelligent gateway), the network topology structure and the centralized server are not relied on, the region identification calculation is distributed to the cloud, and the calculation power and the flow of the server are saved.
Fig. 2 is a connection relationship diagram between a home intelligent gateway and a content distribution network according to the embodiment of the present application. As shown in fig. 2, the home intelligent gateway includes an interface and a CPU, and the home intelligent gateway is in communication connection with the CDN network through the interface, for example, when the home intelligent gateway performs upgrade, the home intelligent gateway sends an upgrade request to the CDN network through the interface, and after the CDN network receives the upgrade request, the CDN network downloads the configuration file into the home intelligent gateway through the interface.
The MAC version stored in the current database of the home intelligent gateway and the version of the configuration file downloaded through the interface may be the same or different, and if the MAC version is the same, the MAC version in the current database is the latest version and does not need to be updated; if not, the MAC version in the current database is not the latest version and a new version needs to be downloaded.
To facilitate identifying the version of the configuration file, the configuration file is in the format:
Figure BDA0003850322620000031
the product _ ID, the hw _ version, the sw _ src _ ver and the sw _ dst _ ver represent version information, and whether the MAC version stored in the current database of the home intelligent gateway is the same as the version of the configuration file downloaded through the interface can be detected according to the version information.
In order to make the MAC version in the current database of the home intelligent gateway be the latest version, the configuration file downloaded by the home intelligent gateway through the interface comprises a URL for identifying the configuration file MAC _ CFG and a version number for identifying the configuration file MAC _ CFG, and the version number corresponds to the URL. That is, the configuration file is changed, a MAC _ config field is added to the configuration file, for example, the URL of the configuration file MAC _ CFG is recorded in the MAC _ config _ URL field, and a new configuration file MAC _ CFG can be downloaded from the CDN network according to the URL of the configuration file MAC _ CFG; the MAC _ config _ ver field is added to record the version number of the configuration file MAC _ CFG to confirm whether the version number is downloaded in the home intelligent gateway or not through the version number.
In some embodiments, the configuration file is changed, adding the mac _ config field:
{
"img":
{
"product_ID":"VS002",
"hw_version":"V1.0.0",
"sw_src_ver":"V1.0.1.120",
"sw_dst_ver":"V1.1.5.138b",
"mac_limits":
{
"mac_config_enable":"1",
"mac_config_ver":"1235",
"mac_config_url":"http://ota.hbmtservice.com/VS007/mac_config.cfg",
}
"target_URI":"http://ota.hbmtservice.com/VS007/img115138b.tar",
"target_MD5":"92332638aaa2bd84cd3a1d51f62cd716",
"cycle_time":90000
}
}
wherein, product _ ID, hw _ version, sw _ src _ ver and sw _ dst _ ver in the configuration file represent version information of the configuration file, mac _ config _ ver represents the version number of the configuration file, and mac _ config _ URL represents the download address URL of the configuration file.
After receiving the downloaded configuration file through the interface, the home intelligent gateway analyzes the configuration file, obtains the version number recorded by the configuration file, compares the version number with the current MAC version number of the home intelligent gateway (the MAC version number stored in the home intelligent gateway database), and judges whether the version number obtained by analysis is consistent with the current MAC version number of the home intelligent gateway or not so as to confirm whether the home intelligent gateway needs to be upgraded or not.
If the version number obtained by analysis is consistent with the current MAC version number of the home intelligent gateway, the current MAC version number of the home intelligent gateway is the latest version number, and the home intelligent gateway does not need to be upgraded.
If the version number obtained by analysis is not consistent with the current MAC version number of the home intelligent gateway, the version number of the home intelligent gateway in the installation area is updated by the server, the home intelligent gateway needs to be upgraded, and the MAC version number in the database of the home intelligent gateway is updated according to the version number obtained by analysis.
And when the version number obtained by analysis is not consistent with the current MAC version number of the home intelligent gateway, the home intelligent gateway downloads a new configuration file MAC _ CFG according to the URL of the configuration file MAC _ CFG identified by the MAC _ config _ URL field in the configuration file, so that the home intelligent gateway is upgraded by the new configuration file MAC _ CFG.
After the MAC version number of the home intelligent gateway is successfully matched, the address information needs to be matched, namely whether the home intelligent gateway MAC is contained in an MAC address library in the configuration file is judged. When the home intelligent gateway MAC is contained in the MAC address library of the configuration file, the home intelligent gateway is successfully matched with the address information.
In some embodiments, the CDN network may periodically send the configuration file to each installation area, and after the home intelligent gateway receives the downloaded configuration file, the MAC address included in the configuration file received by the home intelligent gateway may be a home intelligent gateway MAC address library of another installation area, that is, the MAC address of the home intelligent gateway and the MAC address library included in the received configuration file belong to different installation areas, so that the installation area needs to be confirmed according to the MAC address of the home intelligent gateway and the MAC address library included in the configuration file.
In order to identify the installation area of the home intelligent gateway, the configuration file downloaded by the home intelligent gateway through the interface further comprises a config file, the config file comprises an MAC address base of the home intelligent gateway in the area and an upgrade file downloading address corresponding to the MAC address, and the MAC address in the MAC address base is discontinuous. Namely, downloading configuration files orderly from the CDN network, adding a MAC _ config file to which MAC address libraries of all home intelligent gateways in the installation area are added, the MAC addresses in the MAC address libraries being sorted by small and large, and the MAC addresses being separated by fixed delimiters, such as 08674E00001234, 08674E0005678, 08674E0000abcd,08674e000bcde.
When the installation area of the home intelligent gateway is identified, the home intelligent gateway analyzes the downloaded configuration file to obtain a config file in the configuration file, and searches whether an MAC address matched with the MAC of the home intelligent gateway exists in an MAC address library in the config file, namely, whether the MAC address of the home intelligent gateway exists in the MAC address library in the config file, if the MAC address of the home intelligent gateway exists in the MAC address library, the home intelligent gateway and the home intelligent gateway of each MAC address in the config file are positioned in the same installation area; if the MAC address of the home intelligent gateway does not exist in the MAC address base, the home intelligent gateway and the home intelligent gateway of each MAC address in the config file are located in different installation areas, at this time, the upgrade is quitted, the configuration file needs to be downloaded from the CDN again, and the installation areas are identified again.
Since each MAC address in the configuration file is a character string, a field of each MAC character string is fixed in length, and the MAC address can be represented in a numerical manner. Each MAC character string is in a 16-system form, and each MAC character string can be converted into a numerical value through the 16-system form, namely, each MAC address in a MAC address library contained in a configuration file is converted into a MAC numerical value through the character string.
After each MAC address in the MAC address pool is converted to a MAC value, the converted MAC values are sorted by size and by size, and the values corresponding to each MAC address are separated by a fixed separator, e.g., 23653818799924, 2365384518817400, etc.
And after converting each MAC address from the character string into a shaping numerical value, searching by a dichotomy by using a comparative shaping method, if a config file contains 5 MAC addresses, converting the 5 MAC addresses from the character string into the numerical values, sequencing the converted numerical values from small to large, and searching the sequenced numerical values by adopting the dichotomy, wherein the sequence is 1,2,3,4 and 5.
For example, when the home intelligent gateway MAC is converted into a value of 2, firstly, 3 is searched for from the sorted 1,2,3,4,5 by using the dichotomy, and 2 is continuously searched for from 1,2,3 by using the dichotomy, so that the MAC address matched with the home intelligent gateway MAC exists in the MAC address library.
When the home intelligent gateway MAC is converted into a numerical value of 6, 3 is searched from the sorted 1,2,3,4 and 5 by adopting the dichotomy, 2 is searched from the 1,2 and 3 continuously by adopting the dichotomy, 1 is searched from the 1,2 continuously by adopting the dichotomy, and thus the numerical value 6 corresponding to the home intelligent gateway MAC is not searched after the sorted numerical value is searched by adopting the dichotomy, so that the MAC address library does not have the MAC address matched with the home intelligent gateway MAC.
If the MAC address matched with the home intelligent gateway MAC is not found from the MAC address library in the config file, the matching of the MAC address is failed, the home intelligent gateway MA C and the MAC address in the configuration file are in different installation areas, and the home intelligent gateway is quitted from upgrading.
If the MAC address matched with the home intelligent gateway MAC is found from the MAC address library in the config file, the matching of the MAC address is successful, the home intelligent gateway MAC and the MAC address in the configuration file are in the same installation area, and the home intelligent gateway is upgraded through the configuration file.
And when the MAC address is successfully matched, the CPU acquires an upgrading file downloading address IMG _ URL corresponding to the matched MAC address from the analyzed configuration file, acquires an upgrading file IMG _ TAR according to the downloading address IMG _ URL, and performs version upgrading on the home intelligent gateway through the upgrading file IMG _ TAR.
In some embodiments, when the home intelligent gateway downloads the upgrade file IMG _ TAR according to the download address IMG _ URL, the configuration file MAC _ CFG may be deleted from the configuration file first because the upgrade file is large and the occupied field is large, and then the upgrade file IMG _ TAR is downloaded according to the download address IMG _ URL.
When the server uploads the home intelligent gateway upgrading file to the CDN, the server calculates upgrading data of the upgrading file through an algorithm to obtain an MD5 configuration file, and then uploads the upgrading file and the MD5 configuration file to the CDN together.
In order to verify that the upgrade file IMG _ TAR downloaded by the home intelligent gateway is the same as the upgrade data uploaded by the server, after the home intelligent gateway downloads the upgrade file IMG _ TAR from the CDN network, the downloaded upgrade file IMG _ TAR and the MD5 configuration file are calculated through the same algorithm, namely the MD5 configuration file of the upgrade file IMG _ TAR is verified.
If the verification of the MD5 configuration file of the upgrade file IMG _ TAR is successful, it is indicated that the upgrade file IMG _ TAR downloaded by the home intelligent gateway is the same as the upgrade data in the upgrade file uploaded by the server, and the home intelligent gateway can upgrade the home intelligent gateway according to the downloaded upgrade file IMG _ TAR.
If the MD5 configuration file of the upgrade file IMG _ TAR is not successfully verified, the upgrade data in the upgrade file IMG _ TAR downloaded by the home intelligent gateway is different from the upgrade data in the upgrade file uploaded by the server, so that the home intelligent gateway exits the upgrade at this time, and the home intelligent gateway downloads the configuration file from the CDN network again.
The household intelligent gateway comprises an interface and a CPU (central processing unit) electrically connected with the interface, wherein the interface is used for receiving a downloaded configuration file, namely the household intelligent gateway sends an upgrading request to a CDN (content delivery network) through the interface so as to download the configuration file from the CDN, and the configuration file comprises an MAC (media access control) address library of the household intelligent gateway in an area and an upgrading file downloading address corresponding to an MAC address, so that the household intelligent gateway receives the MAC address library containing all the MAC addresses of the household intelligent gateway in an installation area so as to identify the installation area of the household intelligent gateway; the MAC addresses in the MAC address library are discontinuous, and when the home intelligent gateways of the installation area are upgraded, the MAC addresses of all the home intelligent gateways need to be matched and identified, so that the home intelligent gateways of the installation area can be upgraded at the same time; after receiving the downloaded configuration file, the home intelligent gateway searches whether an MAC address matched with the MAC of the home intelligent gateway to be upgraded exists in an MAC address library, namely, whether the MAC address of the home intelligent gateway to be upgraded belongs to the installation region is checked; if the matched MAC address exists in the MAC address library, the home intelligent gateway to be upgraded belongs to the installation region, the upgrade file is downloaded according to the download address corresponding to the matched MAC address, and after the upgrade file is successfully verified, the home intelligent gateway is upgraded according to the upgrade file. The configuration file only contains a download address of the upgrade file, and the home intelligent gateway downloads the upgrade file from the CDN according to the download address without providing an upgrade package by a server, so that the calculation power and the flow of the server can be saved.
The positioning algorithm does not depend on protocols, sensors and other auxiliary algorithms in the network topology angle, and the space where the user is located is accurately positioned. The structure is optimized, the server is miniaturized, the server side is accurately and simply calculated, the cost of components is saved, the overstaffed server overhead is simplified, the hardware cost and the maintenance cost of the server are saved, and the network flow cost of the server outlet is saved.
Based on the home intelligent gateway described in the above embodiment, the embodiment of the present application further provides a method for controlling the area upgrade of the home intelligent gateway, the method applies a distributed algorithm to the home intelligent gateway, the positioning algorithm does not depend on auxiliary algorithms such as protocols and sensors in terms of network topology, the space where the user is located is accurately positioned, the server is miniaturized, the server side is refined and simplified in calculation, and the terminal optimization is realized.
Fig. 3 is a first flowchart of a method for controlling area upgrade of a home intelligent gateway according to an embodiment of the present application. As shown in fig. 3, a method for controlling area upgrade of a home intelligent gateway provided in an embodiment of the present application includes:
s100: and receiving a downloaded configuration file, wherein the configuration file comprises an MAC address base of the home intelligent gateway in the region and an upgrade file download address corresponding to the MAC address, and the MAC addresses in the MAC address base are discontinuous.
The CDN network may periodically send the configuration file to each installation area, and after the home intelligent gateway receives the downloaded configuration file, the MAC address base included in the configuration file received by the home intelligent gateway may be the MAC address of the home intelligent gateway in another installation area, so that the installation area needs to be confirmed according to the MAC address of the home intelligent gateway and the MAC address base included in the configuration file.
In order to identify the installation area of the home intelligent gateway, the configuration file downloaded by the home intelligent gateway through the interface further comprises a config file, the config file comprises an MAC address base of the home intelligent gateway in the area and an upgrade file downloading address corresponding to the MAC address, and the MAC address in the MAC address base is discontinuous. The method comprises the steps that configuration files are downloaded from a CDN in sequence, MAC _ config files are added in the configuration files, MAC address libraries of all home intelligent gateways in an installation area are added in the MAC _ config files, MAC addresses in the MAC address libraries are sorted by small and large, and the MAC addresses are separated by fixed separators.
Fig. 4 is a second flowchart of a method for controlling area upgrade of a home intelligent gateway according to an embodiment of the present application. As shown in fig. 4, when the address is matched with the home intelligent gateway MAC through the MAC address library in the config file, the version number of the identifier in the configuration file needs to be obtained through parsing, and whether the parsed version number is consistent with the current MAC version number of the home intelligent gateway is determined, so as to determine whether the home intelligent gateway needs to be upgraded.
The specific method for determining whether the home intelligent gateway needs to be upgraded according to the version number obtained by analysis comprises the following steps:
s110: and analyzing the configuration file.
S120: and acquiring the version number of the configuration file in the configuration file.
S130: and judging whether the version number is consistent with the current MAC version number of the home intelligent gateway or not.
S140: and if the version number is not consistent with the current MAC version number of the home intelligent gateway, downloading a new configuration file according to the URL corresponding to the version number, and updating the MAC version number of the home intelligent gateway.
After the home intelligent gateway receives the downloaded configuration file through the interface, the configuration file comprises a URL for identifying the configuration file MAC _ CFG and a version number for identifying the configuration file MAC _ CFG, and the version number corresponds to the URL, so that the configuration file is analyzed, the version number recorded by the configuration file is obtained, the version number is compared with the current MAC version number of the home intelligent gateway (the MAC version number stored in a home intelligent gateway database), and whether the analyzed version number is consistent with the current MAC version number of the home intelligent gateway is judged to confirm whether the home intelligent gateway needs to be upgraded or not.
And if the version number obtained by the analysis is consistent with the current MAC version number of the home intelligent gateway, the current MAC version number of the home intelligent gateway is the latest version number, and S200 is executed.
If the version number obtained by the analysis is not consistent with the current MAC version number of the home intelligent gateway, the server updates the version number of the home intelligent gateway in the installation area, the home intelligent gateway needs to be upgraded, the home intelligent gateway downloads a new configuration file MAC _ CFG according to the URL of the MAC _ config _ URL identification configuration file MAC _ CFG in the configuration file, and S200 is executed.
S200: and searching whether the MAC address matched with the home intelligent gateway MAC exists in the MAC address library.
After each MAC address in the MAC address library is converted into a MAC value, the converted MAC values are sorted according to the size, and the values corresponding to each MAC address are separated by a fixed separator. And then, a dichotomy search is carried out by using a comparative shaping method so as to carry out address matching after the version information is successfully matched, and if the home intelligent gateway MAC is contained in an MAC address base of the configuration file, the matching is successful.
S300: and if the MAC address matched with the household intelligent gateway MAC exists in the MAC address library, downloading the upgrade file according to the download address corresponding to the MAC address.
And when the MAC address is successfully matched, the CPU acquires an upgrading file downloading address IMG _ URL corresponding to the matched MAC address from the analyzed configuration file, acquires an upgrading file IMG _ TAR according to the downloading address IMG _ URL, and performs version upgrading on the home intelligent gateway through the upgrading file IMG _ TAR.
S400: and after the upgrade file is successfully verified, the home intelligent gateway is upgraded.
When the server uploads the home intelligent gateway upgrading file to the CDN, the server calculates upgrading data of the upgrading file through an algorithm to obtain an MD5 configuration file, and then uploads the upgrading file and the MD5 configuration file to the CDN together.
In order to verify that the upgrade file IMG _ TAR downloaded by the home intelligent gateway is the same as the upgrade data uploaded by the server, after the home intelligent gateway downloads the upgrade file IMG _ TAR from the CDN network, the downloaded upgrade file IMG _ TAR and the MD5 configuration file are calculated through the same algorithm, namely the MD5 configuration file of the upgrade file IMG _ TAR is verified.
If the verification of the MD5 configuration file of the upgrade file IMG _ TAR is successful, the upgrade file IMG _ TAR downloaded by the home intelligent gateway is the same as the upgrade data in the upgrade file uploaded by the server, and the home intelligent gateway can upgrade the home intelligent gateway according to the downloaded upgrade file IMG _ TAR.
According to the area upgrading control method for the home intelligent gateway, a distributed algorithm is applied to an access network terminal (the home intelligent gateway), a network topology structure is not relied on, a centralized server is not relied on, area identification calculation is distributed to a cloud end, and calculation power and flow of the server are saved. The method comprises the steps of a technology centralized configuration method, a regional query distributed algorithm, server network optimization, network flow control optimization, equipment algorithm optimization and equipment memory space optimization.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. A zone upgrading control method for a home intelligent gateway is characterized by comprising the following steps:
receiving and analyzing the downloaded configuration file;
acquiring the version number of the configuration file in the configuration file;
judging whether the version number is consistent with the current MAC version number of the home intelligent gateway or not;
if the version number is not consistent with the current MAC version number of the home intelligent gateway, downloading a new configuration file according to a URL corresponding to the version number, and updating the MAC version number of the home intelligent gateway;
searching whether an MAC address matched with the MAC of the household intelligent gateway to be upgraded exists in an MAC address library contained in the configuration file;
if the matched MAC address exists in the MAC address library, downloading an upgrade file according to a download address corresponding to the MAC address;
checking the MD5 configuration file in the upgrade file;
and after the upgrade file is successfully checked, upgrading the home intelligent gateway according to the upgrade file.
2. The area upgrade control method for a home intelligent gateway according to claim 1, wherein the downloading of a new configuration file according to a URL corresponding to the version number includes:
when the version number contained in the configuration file is not consistent with the current MAC version number of the home intelligent gateway, acquiring the URL of the configuration file corresponding to the version number;
and downloading the configuration file corresponding to the version number according to the URL so as to update the configuration file.
3. The method as claimed in claim 1, wherein the MAC addresses in the MAC address bank are sorted by size, and adjacent MAC addresses are separated by a separator.
4. The zone upgrading control method for the home intelligent gateway according to claim 1, further comprising:
and identifying the installation area of the household intelligent gateway according to whether the MAC address matched with the household intelligent gateway MAC to be upgraded exists in the MAC address base.
5. The area upgrading control method of the home intelligent gateway as claimed in claim 1, wherein the step of searching whether the MAC address matched with the MAC of the home intelligent gateway to be upgraded exists from the MAC address library comprises the steps of:
converting each MAC address in the MAC address library into an MAC numerical value from a character string, and sequencing the converted MAC numerical values;
and converting the MAC of the home intelligent gateway into an MAC value, and searching whether the MAC value exists in the sequenced MAC values through a dichotomy.
6. The area upgrade control method of a home intelligent gateway according to claim 5, further comprising:
and when the MAC value exists in the sequenced MAC values, acquiring an upgrade file download address corresponding to the matched MAC address in the configuration file.
7. The area upgrading control method of the home intelligent gateway according to claim 6, wherein after obtaining the download address of the upgrading file, the method comprises:
deleting the configuration file;
downloading the upgrading file according to the downloading address;
and checking the MD5 configuration file in the upgrading file.
8. The area upgrade control method of a home intelligent gateway according to claim 7, wherein checking an MD5 configuration file in the upgrade file includes:
analyzing the MD5 configuration file through an algorithm to obtain upgrading data corresponding to the MD5 configuration file;
and verifying the upgrade file according to the upgrade data.
9. The zone upgrade control method of a home intelligent gateway according to claim 1, wherein the MAC addresses in the MAC address bank are discontinuous.
CN202211132006.5A 2022-05-31 2022-05-31 Area upgrading control method for household intelligent gateway Pending CN115348173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211132006.5A CN115348173A (en) 2022-05-31 2022-05-31 Area upgrading control method for household intelligent gateway

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210612943.4A CN115022170A (en) 2022-05-31 2022-05-31 Intelligent gateway and area upgrading control method thereof
CN202211132006.5A CN115348173A (en) 2022-05-31 2022-05-31 Area upgrading control method for household intelligent gateway

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202210612943.4A Division CN115022170A (en) 2022-05-31 2022-05-31 Intelligent gateway and area upgrading control method thereof

Publications (1)

Publication Number Publication Date
CN115348173A true CN115348173A (en) 2022-11-15

Family

ID=83070668

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210612943.4A Pending CN115022170A (en) 2022-05-31 2022-05-31 Intelligent gateway and area upgrading control method thereof
CN202211132006.5A Pending CN115348173A (en) 2022-05-31 2022-05-31 Area upgrading control method for household intelligent gateway

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210612943.4A Pending CN115022170A (en) 2022-05-31 2022-05-31 Intelligent gateway and area upgrading control method thereof

Country Status (1)

Country Link
CN (2) CN115022170A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360809A (en) * 2023-05-31 2023-06-30 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080134165A1 (en) * 2006-12-01 2008-06-05 Lori Anderson Methods and apparatus for software provisioning of a network device
KR20110032723A (en) * 2009-09-24 2011-03-30 엘지전자 주식회사 Software downloading method
CN106375122A (en) * 2016-08-31 2017-02-01 上海澳润信息科技有限公司 Intelligent gateway strategy upgrading method based on LAMP (Linux+Apache+Mysql/MariaDB+Perl/PHP/Python)
JP2017033310A (en) * 2015-07-31 2017-02-09 富士通株式会社 Network device setting method, information processor, and bios program
WO2017190547A1 (en) * 2016-05-06 2017-11-09 中兴通讯股份有限公司 Method for upgrading apparatus, device, and configuration point
WO2018121250A1 (en) * 2016-12-30 2018-07-05 深圳创维-Rgb电子有限公司 Remote system upgrading method utilized in smart apparatus
CN108471361A (en) * 2018-03-28 2018-08-31 新华三技术有限公司 A kind of version upgrading method and device
CN109347931A (en) * 2018-09-28 2019-02-15 四川长虹电器股份有限公司 A kind of OTA upgrading method for down loading based on layering interaction design
CN109561118A (en) * 2017-09-26 2019-04-02 比亚迪股份有限公司 Method for upgrading software, device, system, storage medium, electronic equipment and vehicle
CN111147314A (en) * 2019-12-30 2020-05-12 深圳市丰润达科技有限公司 Switch upgrading method, device and storage medium
CN111433773A (en) * 2017-11-30 2020-07-17 Abb瑞士股份有限公司 Updating gateways in substations
CN113805933A (en) * 2020-06-12 2021-12-17 深圳市中兴微电子技术有限公司 Set top box system upgrading method and device, set top box, system and storage medium
CN114461239A (en) * 2021-06-30 2022-05-10 荣耀终端有限公司 Software upgrading system and software upgrading method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW595160B (en) * 2003-04-14 2004-06-21 Benq Corp Update processing system and method for network devices
CN103269375A (en) * 2013-05-30 2013-08-28 厦门亿联网络技术股份有限公司 Method for updating client-side configuration information automatically
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
CN114301990A (en) * 2021-12-29 2022-04-08 中国电信股份有限公司 Node scheduling method, device and storage medium based on content distribution network

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080134165A1 (en) * 2006-12-01 2008-06-05 Lori Anderson Methods and apparatus for software provisioning of a network device
KR20110032723A (en) * 2009-09-24 2011-03-30 엘지전자 주식회사 Software downloading method
JP2017033310A (en) * 2015-07-31 2017-02-09 富士通株式会社 Network device setting method, information processor, and bios program
WO2017190547A1 (en) * 2016-05-06 2017-11-09 中兴通讯股份有限公司 Method for upgrading apparatus, device, and configuration point
CN106375122A (en) * 2016-08-31 2017-02-01 上海澳润信息科技有限公司 Intelligent gateway strategy upgrading method based on LAMP (Linux+Apache+Mysql/MariaDB+Perl/PHP/Python)
WO2018121250A1 (en) * 2016-12-30 2018-07-05 深圳创维-Rgb电子有限公司 Remote system upgrading method utilized in smart apparatus
CN109561118A (en) * 2017-09-26 2019-04-02 比亚迪股份有限公司 Method for upgrading software, device, system, storage medium, electronic equipment and vehicle
CN111433773A (en) * 2017-11-30 2020-07-17 Abb瑞士股份有限公司 Updating gateways in substations
CN108471361A (en) * 2018-03-28 2018-08-31 新华三技术有限公司 A kind of version upgrading method and device
CN109347931A (en) * 2018-09-28 2019-02-15 四川长虹电器股份有限公司 A kind of OTA upgrading method for down loading based on layering interaction design
CN111147314A (en) * 2019-12-30 2020-05-12 深圳市丰润达科技有限公司 Switch upgrading method, device and storage medium
CN113805933A (en) * 2020-06-12 2021-12-17 深圳市中兴微电子技术有限公司 Set top box system upgrading method and device, set top box, system and storage medium
CN114461239A (en) * 2021-06-30 2022-05-10 荣耀终端有限公司 Software upgrading system and software upgrading method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360809A (en) * 2023-05-31 2023-06-30 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal
CN116360809B (en) * 2023-05-31 2023-08-22 深圳市微克科技有限公司 Remote firmware upgrading method, system and medium for embedded intelligent terminal

Also Published As

Publication number Publication date
CN115022170A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN111491013B (en) Server scheduling method, device, system, storage medium and computer equipment
US8798051B2 (en) Information and communication processing system, method, and network node
CN102025595A (en) Flow optimization method and system
CN109995866B (en) Distributed file verification method and device, computer device and storage medium
KR20140051447A (en) Cloud computing enhanced gateway for communication networks
CN115348173A (en) Area upgrading control method for household intelligent gateway
WO2013004059A1 (en) Version upgrade method, terminal and version upgrade system
WO2019134240A1 (en) Method for identifying multiple packets, method for identifying data packet, and traffic guiding method
CN106657371B (en) Scheduling method and device for transmission node
WO2019179423A1 (en) Card calling method and device, information pushing method and device, and card allocation system
CN112783541A (en) Equipment upgrading method and device and server
CN114390060A (en) Method for distributing edge computing network and storage medium
CN114090033A (en) OTA (over the air) upgrading method and device, electronic equipment and readable medium
CN112052023A (en) Intelligent terminal upgrading strategy management method
CN103491522A (en) Terminal adaption method and device
CN111277628A (en) Server configuration method and device and service server
CN110674427A (en) Method, device, equipment and storage medium for responding to webpage access request
CN102137102B (en) Realizing method of service supporting platform for supporting multiclass information publishing modes
CN112130931B (en) Application deployment method, node, system and storage medium
CN109922083B (en) Network protocol flow control system
CN109905430A (en) A kind of method for upgrading software and system
WO2014177058A1 (en) Transmission method and device for file data
EP3975610A1 (en) Method and system for data synchronization in multi-access edge computing environments
CN113612811A (en) Method, system, equipment and medium for client mounting in multiple channels
CN112306518A (en) Protocol updating method and device and electronic equipment

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