CN112423281A - Wireless module upgrading method and device, computer equipment and storage medium - Google Patents

Wireless module upgrading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112423281A
CN112423281A CN202011185876.XA CN202011185876A CN112423281A CN 112423281 A CN112423281 A CN 112423281A CN 202011185876 A CN202011185876 A CN 202011185876A CN 112423281 A CN112423281 A CN 112423281A
Authority
CN
China
Prior art keywords
wireless module
internet protocol
protocol address
upgrading
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.)
Granted
Application number
CN202011185876.XA
Other languages
Chinese (zh)
Other versions
CN112423281B (en
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202011185876.XA priority Critical patent/CN112423281B/en
Publication of CN112423281A publication Critical patent/CN112423281A/en
Application granted granted Critical
Publication of CN112423281B publication Critical patent/CN112423281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a wireless module upgrading method, a wireless module upgrading device, computer equipment and a storage medium. The method comprises the following steps: acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. And establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address. And based on the connection of the webpage communication protocol, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module. By adopting the method, the upgrading efficiency of the wireless module can be improved.

Description

Wireless module upgrading method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for upgrading a wireless module, a computer device, and a storage medium.
Background
With the development of computer technology, wireless communication technology has emerged, which is a communication method for exchanging information using the property that electromagnetic wave signals can propagate in free space. The implementation of wireless communication needs to rely on wireless modules, and to ensure the iterative update of wireless modules, the wireless modules often need to be upgraded. In The conventional technology, The wireless module is usually upgraded by using FOTA (Firmware Over-The-Air) which is a cloud upgrading technology. However, upgrading the wireless module with FOTA requires that the wireless module must have networking capabilities. When the wireless module has a network fault, the wireless module is difficult to upgrade, so that the upgrading efficiency of the wireless module is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a wireless module upgrading method, device, computer device and storage medium capable of improving the wireless module upgrading efficiency.
A wireless module upgrade method, the method comprising:
acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and sending the target upgrading file packet to a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
In one embodiment, the obtaining the first internet protocol address and the target upgrade file package corresponding to the wireless module includes:
establishing communication connection with the wireless module;
acquiring a first internet protocol address allocated by a virtual address allocation server built in the wireless module based on communication connection with the wireless module;
and acquiring a target upgrading file packet corresponding to the wireless module.
In one embodiment, the obtaining the target upgrade file package corresponding to the wireless module includes:
acquiring a module identification of the wireless module;
searching a candidate upgrading file packet corresponding to the wireless module based on a website client interface according to the module identification;
determining the version number corresponding to each candidate upgrading file package;
and determining the candidate upgrading file packet with the latest version number as a target upgrading file packet corresponding to the wireless module.
In one embodiment, the sending the target upgrade file package to the website server of the wireless module includes:
acquiring a history upgrading file packet corresponding to the wireless module;
comparing the file data in the target upgrading file package with the file data in the historical upgrading file package;
and when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
In one embodiment, the method further comprises:
receiving successful storage result information fed back by the website server after the wireless module stores the target upgrade file package;
generating an upgrading instruction according to the successful storage result information;
and sending the upgrading instruction to the website server to instruct the website server to upgrade the wireless module according to the upgrading instruction and the target upgrading file packet.
A wireless module upgrade method, the method comprising:
allocating a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
A wireless module upgrade apparatus, the apparatus comprising:
the acquisition module is used for acquiring a first Internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
the first establishing module is used for establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and the sending module is used for sending the target upgrading file packet to a website server of the wireless module based on the webpage communication protocol connection, and the target upgrading file is used for upgrading the wireless module.
A wireless module upgrade apparatus, the apparatus comprising:
the distribution module is used for distributing a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
the second establishing module is used for establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and the receiving module is used for receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and sending the target upgrading file packet to a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
allocating a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and sending the target upgrading file packet to a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
allocating a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
According to the wireless module upgrading method, the wireless module upgrading device, the computer equipment and the storage medium, the first internet protocol address and the target upgrading file packet corresponding to the wireless module are obtained; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. And establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address. And based on the connection of the webpage communication protocol, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module. Therefore, the website server is built in the wireless module, the internet protocol addresses in the same local area network are distributed to the wireless module and the control terminal respectively, the control terminal and the wireless module can establish webpage communication protocol connection, data interaction is carried out based on the webpage communication protocol connection, and the wireless module can be upgraded through the control terminal and the website server regardless of whether the wireless module has a networking function, so that the dependence of wireless module upgrading on the network is avoided, and the upgrading efficiency of the wireless module is improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary wireless module upgrade method;
FIG. 2 is a flow diagram illustrating a method for upgrading a wireless module according to one embodiment;
FIG. 3 is a schematic diagram of a wireless module upgrade method in one embodiment;
FIG. 4 is a flowchart illustrating a wireless module upgrade method according to another embodiment;
FIG. 5 is a flowchart illustrating a wireless module upgrade method according to yet another embodiment;
FIG. 6 is a block diagram of an embodiment of a wireless module upgrade apparatus;
FIG. 7 is a block diagram of an upgrade apparatus for a wireless module according to another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment;
fig. 9 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The wireless module upgrading method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a wireless module 102 and a control terminal 104, and a website server is built in the wireless module 102. Wireless module 102 and control terminal 104 may communicate. The control terminal 104 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a notebook computer, and the like. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
The control terminal 104 obtains a first internet protocol address and a target upgrade file packet corresponding to the wireless module 102, where the first internet protocol address and a second internet protocol address of the wireless module 102 are in the same local area network. The control terminal 104 establishes a web communication protocol connection with the wireless module 102 according to the first internet protocol address and the second internet protocol address. The control terminal 104 sends the target upgrade file package to the web server of the wireless module 102 based on the web communication protocol connection, and the target upgrade file is used for upgrading the wireless module 102.
In one embodiment, as shown in fig. 2, a method for upgrading a wireless module is provided, which is described by taking the method as an example for being applied to the control terminal 104 in fig. 1, and includes the following steps:
s202, acquiring a first Internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network.
The first internet protocol address is a network address of the control terminal, and the second internet protocol address is a network address of the wireless module.
Specifically, the control terminal can be in communication connection with the wireless module, and based on the communication connection, the wireless module can assign a first internet protocol address to the control terminal, and the control terminal can acquire the first internet protocol address assigned by the wireless module. The wireless module is provided with a second internet protocol address, and the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. The control terminal can obtain the target upgrading file package corresponding to the wireless module from the external equipment or from the cloud. The external device may be a USB (Universal Serial Bus) flash drive or a hard disk.
In one embodiment, the communication connection between the control terminal and the wireless module may be a wired connection, for example, a wired connection through a USB data line, or a wireless connection, for example, a wireless connection through bluetooth.
And S204, establishing a webpage communication protocol connection with the wireless module according to the first Internet protocol address and the second Internet protocol address.
The WEB page communication protocol connection is a communication connection mode based on a World Wide WEB (World Wide WEB) technology.
Specifically, the control terminal can establish a web communication protocol connection between the local and the wireless module according to the first internet protocol address and the second internet protocol address.
And S206, based on the webpage communication protocol connection, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module.
The website service end is a service application program which is arranged in the wireless module and used for providing website services.
Specifically, the control terminal can send the target upgrade file package to a website server of the wireless module based on the web communication protocol connection. The website server of the wireless module may receive the target upgrade file package sent by the control terminal, and may store the target upgrade file package in the wireless module through a Common Gateway Interface (CGI). The target upgrading file is used for upgrading the wireless module.
In the wireless module upgrading method, a first internet protocol address and a target upgrading file packet corresponding to the wireless module are obtained; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. And establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address. And based on the connection of the webpage communication protocol, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module. Therefore, the website server is built in the wireless module, the internet protocol addresses in the same local area network are distributed to the wireless module and the control terminal respectively, the control terminal and the wireless module can establish webpage communication protocol connection, data interaction is carried out based on the webpage communication protocol connection, and the wireless module can be upgraded through the control terminal and the website server regardless of whether the wireless module has a networking function, so that the dependence of wireless module upgrading on the network is avoided, and the upgrading efficiency of the wireless module is improved.
In an embodiment, the step S202, that is, the step of obtaining the first internet protocol address and the target upgrade file package corresponding to the wireless module, specifically includes: establishing communication connection with the wireless module; acquiring a first internet protocol address allocated by a virtual address allocation server built in the wireless module based on communication connection with the wireless module; and acquiring a target upgrading file packet corresponding to the wireless module.
The virtual address allocation server is used for allocating internet protocol addresses to the wireless module and the control terminal.
Specifically, a virtual address distribution server is arranged in the wireless module, and the virtual address distribution server can distribute a first internet protocol address to the control terminal and a second internet protocol address to the wireless module. The control terminal can establish communication connection with the wireless module. Based on the communication connection with the wireless module, the control terminal can acquire the first internet protocol address allocated by the virtual address allocation server built in the wireless module. The control terminal can obtain the target upgrading file packet corresponding to the wireless module.
In one embodiment, as shown in fig. 3, the wireless module has a thttpd, i.e. a virtual address assignment server, built in, and a web server, i.e. a web server, built in. The thttpd may assign a first internet protocol address to the control terminal, for example, the first internet protocol address may be 192.168.0.1. the thttpd may also assign a second internet protocol address to the wireless module, for example, the second internet protocol address may be 192.168.0.2. The control terminal can establish communication connection between the local and the wireless module through the USB data line. Based on the communication connection, thttpd in the wireless module may assign a first internet protocol address, i.e. 192.168.0.1 in fig. 3, to the control terminal. 192.168.0.1 and 192.168.0.2 belong to the same local area network. The web communication protocol connection between the wireless module and the control terminal can be established through 192.168.0.1 and 192.168.0.2. The user can select the target upgrading file package through the control terminal, and the control terminal can obtain the target upgrading file package selected by the user. The control terminal can be connected based on a webpage communication protocol, upload the target upgrading file package to a web server in the wireless module through an upload button, and control upgrading of the wireless module through an upgrade button.
In the above embodiment, the virtual address assignment server built in the wireless module assigns the internet protocol addresses in the same local area network to the wireless module and the control terminal, so that a web communication protocol connection can be established between the wireless module and the control terminal, and the wireless module is upgraded without depending on the network connection function of the wireless module.
In one embodiment, the step of obtaining the target upgrade file package corresponding to the wireless module specifically includes: acquiring a module identification of the wireless module; searching a candidate upgrading file packet corresponding to the wireless module based on a website client interface according to the module identification; determining the version number corresponding to each candidate upgrading file package; and determining the candidate upgrading file packet with the latest version number as a target upgrading file packet corresponding to the wireless module.
The module identification is a character string which uniquely identifies the wireless module. The module identifier may specifically include at least one of a number, a letter, a special character, and the like. The special character may specifically be at least one of an underline, a percentile, a number sign key, and the like.
Specifically, the wireless module has a corresponding module identifier, and the control terminal can display the website client interface and acquire the module identifier of the wireless module based on the website client interface. The control terminal stores a mapping relation list of the module identification and the corresponding candidate upgrading file package. The control terminal can search the candidate upgrading file packet corresponding to the wireless module from the mapping relation list based on the website client interface according to the module identification. The control terminal can determine the version number corresponding to each candidate upgrading file package, and determine the candidate upgrading file package with the latest version number as the target upgrading file package corresponding to the wireless module.
In the above embodiment, the latest candidate upgrade file package is determined to be the target upgrade file package corresponding to the wireless module through the module identifier of the wireless module and the respective found version number of each candidate upgrade file package, so that the upgrade efficiency of the wireless module is further improved.
In an embodiment, the step of sending the target upgrade file package to the website server of the wireless module in step S206 specifically includes: acquiring a history upgrading file packet corresponding to the wireless module; comparing the file data in the target upgrading file package with the file data in the historical upgrading file package; and when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
The history upgrading file package is an upgrading file package stored in the wireless module before the wireless module is upgraded.
Specifically, the control terminal can generate a history upgrading file package obtaining instruction and send the history upgrading file package obtaining instruction to the wireless module, and the wireless module can obtain the history upgrading file package according to the history upgrading file package obtaining instruction and send the history upgrading file package to the control terminal. The terminal can receive the history upgrading file packet sent by the wireless module. The control terminal can respectively extract the file data in the target upgrading file package and the file data in the historical upgrading file package, and compare the file data in the target upgrading file package with the file data in the historical upgrading file package. And when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
In one embodiment, when the comparison is consistent, it indicates that the historical upgrade file package in the wireless module is the target upgrade file package, and the wireless module is the latest version. At this time, the target upgrade file package does not need to be sent to the website server of the wireless module.
In the embodiment, the file data in the target upgrade file package is compared with the file data in the historical upgrade file package, and when the comparison is inconsistent, the target upgrade file package is sent to the website server of the wireless module. In this way, repeated upgrades to the wireless module are avoided.
In one embodiment, the wireless module upgrading method further comprises: receiving successful storage result information fed back by a website server after the wireless module stores the target upgrade file package; generating an upgrading instruction according to the successful storage result information; and sending the upgrading instruction to the website server to instruct the website server to upgrade the wireless module according to the upgrading instruction and the target upgrading file package.
The successful storage result information is information indicating that the website server successfully stores the target upgrade file package to the wireless module.
Specifically, after the wireless module stores the target upgrade file package, the wireless module may generate successful storage result information, and may send the successful storage result information to the website server through the CGI interface. The wireless module can send the successful storage result information to the control terminal through the website server. The control terminal can receive successful storage result information fed back by the wireless module through the website server side and generate an upgrading instruction according to the successful storage result information. The control terminal can send the upgrading instruction to the website server. Furthermore, the website server can upgrade the wireless module according to the upgrade instruction and the target upgrade file packet.
In the above embodiment, after receiving the successful storage result information fed back by the web server, the upgrade instruction is generated to instruct the web server to upgrade the wireless module. Therefore, after the wireless module is ensured to successfully acquire the target upgrading file package, the website server is instructed to upgrade the wireless module, and the success rate of upgrading the wireless module is improved.
In one embodiment, as shown in fig. 4, a User may access a web UI (User Interface Design) Interface of the control terminal, i.e., a website client Interface, and select a target upgrade file package through the web UI Interface. The control terminal can upload the target upgrade file package to a web server, namely a website server, through the http get request and the http post request. After the website server receives the target upgrading file package and stores the target upgrading file package into the wireless module through the CGI, the wireless module can be upgraded according to the target upgrading file package.
In one embodiment, as shown in fig. 5, a method for upgrading a wireless module is provided, which is described by taking the method as an example for the wireless module 102 in fig. 1, and includes the following steps:
s502, allocating a first Internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network.
Specifically, the control terminal can be in communication connection with the wireless module, and based on the communication connection, the wireless module can assign a first internet protocol address to the control terminal, and the control terminal can acquire the first internet protocol address assigned by the wireless module. The wireless module is provided with a second internet protocol address, and the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network.
S504, establishing a webpage communication protocol connection with the control terminal according to the first Internet protocol address and the second Internet protocol address.
Specifically, the wireless module can establish a web communication protocol connection between the local and the control terminal according to the first internet protocol address and the second internet protocol address.
S506, receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
Specifically, the control terminal can send the target upgrade file package to a website server of the wireless module based on the web communication protocol connection. The website server of the wireless module can receive the target upgrading file packet sent by the control terminal and store the target upgrading file packet to the wireless module through the CGI interface. The target upgrading file is used for upgrading the wireless module.
In the above embodiment, the first internet protocol address is allocated to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. And establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address. And based on the connection of the webpage communication protocol, receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module. Therefore, the website server is built in the wireless module, the internet protocol addresses in the same local area network are distributed to the wireless module and the control terminal respectively, the control terminal and the wireless module can establish webpage communication protocol connection, data interaction is carried out based on the webpage communication protocol connection, and the wireless module can be upgraded through the control terminal and the website server regardless of whether the wireless module has a networking function, so that the dependence of wireless module upgrading on the network is avoided, and the upgrading efficiency of the wireless module is improved.
It should be understood that although the various steps of fig. 2 and 5 are shown sequentially in order, these steps are not necessarily performed sequentially in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 5 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a wireless module upgrading apparatus 600, including: an obtaining module 601, a first establishing module 602, and a sending module 603, wherein:
an obtaining module 601, configured to obtain a first internet protocol address and a target upgrade file package corresponding to a wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network.
A first establishing module 602, configured to establish a web communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address.
The sending module 603 is configured to send the target upgrade file package to a website server of the wireless module based on the web communication protocol connection, where the target upgrade file is used to upgrade the wireless module.
In one embodiment, the obtaining module 601 is further configured to establish a communication connection with a wireless module; acquiring a first internet protocol address allocated by a virtual address allocation server built in the wireless module based on communication connection with the wireless module; and acquiring a target upgrading file packet corresponding to the wireless module.
In one embodiment, the obtaining module 601 is further configured to obtain a module identifier of the wireless module; searching a candidate upgrading file packet corresponding to the wireless module based on a website client interface according to the module identification; determining the version number corresponding to each candidate upgrading file package; and determining the candidate upgrading file packet with the latest version number as a target upgrading file packet corresponding to the wireless module.
In one embodiment, the sending module 603 is further configured to obtain a history upgrade file package corresponding to the wireless module; comparing the file data in the target upgrading file package with the file data in the historical upgrading file package; and when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
In one embodiment, the sending module 603 is further configured to receive information of a successful storage result fed back by the website server after the wireless module stores the target upgrade file package; generating an upgrading instruction according to the successful storage result information; and sending the upgrading instruction to the website server to instruct the website server to upgrade the wireless module according to the upgrading instruction and the target upgrading file package.
The wireless module upgrading device obtains a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. And establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address. And based on the connection of the webpage communication protocol, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module. Therefore, the website server is built in the wireless module, the internet protocol addresses in the same local area network are distributed to the wireless module and the control terminal respectively, the control terminal and the wireless module can establish webpage communication protocol connection, data interaction is carried out based on the webpage communication protocol connection, and the wireless module can be upgraded through the control terminal and the website server regardless of whether the wireless module has a networking function, so that the dependence of wireless module upgrading on the network is avoided, and the upgrading efficiency of the wireless module is improved.
Referring to fig. 7, in an embodiment, the wireless module upgrading apparatus 700 further includes: a distribution module 701, a second establishing module 702, and a receiving module 703, wherein:
an allocating module 701, configured to allocate a first internet protocol address to a control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network.
A second establishing module 702, configured to establish a web communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address.
The receiving module 703 is configured to receive, based on the web communication protocol connection, a target upgrade file package sent by the control terminal through a website server of the wireless module, where the target upgrade file is used to upgrade the wireless module.
The wireless module upgrading device distributes a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network. And establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address. And based on the connection of the webpage communication protocol, receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module. Therefore, the website server is built in the wireless module, the internet protocol addresses in the same local area network are distributed to the wireless module and the control terminal respectively, the control terminal and the wireless module can establish webpage communication protocol connection, data interaction is carried out based on the webpage communication protocol connection, and the wireless module can be upgraded through the control terminal and the website server regardless of whether the wireless module has a networking function, so that the dependence of wireless module upgrading on the network is avoided, and the upgrading efficiency of the wireless module is improved.
For the specific limitation of the wireless module upgrading apparatus, reference may be made to the above limitation of the wireless module upgrading method, which is not described herein again. All or part of the modules in the wireless module upgrading device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the control terminal 104 in fig. 1, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a wireless module upgrade method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, which may be the wireless module 102 in fig. 1, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing wireless module upgrading data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a wireless module upgrade method.
Those skilled in the art will appreciate that the configurations shown in fig. 8 and 9 are merely block diagrams of portions of configurations related to aspects of the present application, and do not constitute limitations on the computing devices to which aspects of the present application may be applied, as particular computing devices may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and based on the connection of the webpage communication protocol, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
establishing communication connection with the wireless module;
acquiring a first internet protocol address allocated by a virtual address allocation server built in the wireless module based on communication connection with the wireless module;
and acquiring a target upgrading file packet corresponding to the wireless module.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a module identification of the wireless module;
searching a candidate upgrading file packet corresponding to the wireless module based on a website client interface according to the module identification;
determining the version number corresponding to each candidate upgrading file package;
and determining the candidate upgrading file packet with the latest version number as a target upgrading file packet corresponding to the wireless module.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a history upgrading file packet corresponding to the wireless module;
comparing the file data in the target upgrading file package with the file data in the historical upgrading file package;
and when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving successful storage result information fed back by a website server after the wireless module stores the target upgrade file package;
generating an upgrading instruction according to the successful storage result information;
and sending the upgrading instruction to the website server to instruct the website server to upgrade the wireless module according to the upgrading instruction and the target upgrading file package.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
allocating a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and based on the connection of the webpage communication protocol, receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and based on the connection of the webpage communication protocol, sending the target upgrading file packet to a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing communication connection with the wireless module;
acquiring a first internet protocol address allocated by a virtual address allocation server built in the wireless module based on communication connection with the wireless module;
and acquiring a target upgrading file packet corresponding to the wireless module.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a module identification of the wireless module;
searching a candidate upgrading file packet corresponding to the wireless module based on a website client interface according to the module identification;
determining the version number corresponding to each candidate upgrading file package;
and determining the candidate upgrading file packet with the latest version number as a target upgrading file packet corresponding to the wireless module.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a history upgrading file packet corresponding to the wireless module;
comparing the file data in the target upgrading file package with the file data in the historical upgrading file package;
and when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving successful storage result information fed back by a website server after the wireless module stores the target upgrade file package;
generating an upgrading instruction according to the successful storage result information;
and sending the upgrading instruction to the website server to instruct the website server to upgrade the wireless module according to the upgrading instruction and the target upgrading file package.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
allocating a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and based on the connection of the webpage communication protocol, receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module, wherein the target upgrading file is used for upgrading the wireless module.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for upgrading a wireless module, the method comprising:
acquiring a first internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and sending the target upgrading file packet to a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
2. The method of claim 1, wherein obtaining the first internet protocol address and the target upgrade file package corresponding to the wireless module comprises:
establishing communication connection with the wireless module;
acquiring a first internet protocol address allocated by a virtual address allocation server built in the wireless module based on communication connection with the wireless module;
and acquiring a target upgrading file packet corresponding to the wireless module.
3. The method of claim 2, wherein the obtaining of the target upgrade file package corresponding to the wireless module comprises:
acquiring a module identification of the wireless module;
searching a candidate upgrading file packet corresponding to the wireless module based on a website client interface according to the module identification;
determining the version number corresponding to each candidate upgrading file package;
and determining the candidate upgrading file packet with the latest version number as a target upgrading file packet corresponding to the wireless module.
4. The method of claim 1, wherein sending the target upgrade file package to a web server of the wireless module comprises:
acquiring a history upgrading file packet corresponding to the wireless module;
comparing the file data in the target upgrading file package with the file data in the historical upgrading file package;
and when the comparison is inconsistent, sending the target upgrading file packet to a website server of the wireless module.
5. The method according to any one of claims 1 to 4, further comprising:
receiving successful storage result information fed back by the website server after the wireless module stores the target upgrade file package;
generating an upgrading instruction according to the successful storage result information;
and sending the upgrading instruction to the website server to instruct the website server to upgrade the wireless module according to the upgrading instruction and the target upgrading file packet.
6. A method for upgrading a wireless module, the method comprising:
allocating a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
7. A wireless module upgrade apparatus, the apparatus comprising:
the acquisition module is used for acquiring a first Internet protocol address and a target upgrading file packet corresponding to the wireless module; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
the first establishing module is used for establishing a webpage communication protocol connection with the wireless module according to the first internet protocol address and the second internet protocol address;
and the sending module is used for sending the target upgrading file packet to a website server of the wireless module based on the webpage communication protocol connection, and the target upgrading file is used for upgrading the wireless module.
8. A wireless module upgrade apparatus, the apparatus comprising:
the distribution module is used for distributing a first internet protocol address to the control terminal; the first internet protocol address and the second internet protocol address of the wireless module are in the same local area network;
the second establishing module is used for establishing a webpage communication protocol connection with the control terminal according to the first internet protocol address and the second internet protocol address;
and the receiving module is used for receiving a target upgrading file packet sent by the control terminal through a website server of the wireless module based on the webpage communication protocol connection, wherein the target upgrading file is used for upgrading the wireless module.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011185876.XA 2020-10-30 2020-10-30 Wireless module upgrading method, device, computer equipment and storage medium Active CN112423281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185876.XA CN112423281B (en) 2020-10-30 2020-10-30 Wireless module upgrading method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185876.XA CN112423281B (en) 2020-10-30 2020-10-30 Wireless module upgrading method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112423281A true CN112423281A (en) 2021-02-26
CN112423281B CN112423281B (en) 2023-11-24

Family

ID=74828208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185876.XA Active CN112423281B (en) 2020-10-30 2020-10-30 Wireless module upgrading method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112423281B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132961A (en) * 2021-03-15 2021-07-16 深圳市有方科技股份有限公司 Internet of things complete equipment debugging method and device, computer equipment and storage medium
CN113190244A (en) * 2021-03-26 2021-07-30 深圳市广和通无线股份有限公司 Method and device for upgrading wireless module, computer equipment and storage medium
CN115397033A (en) * 2021-05-25 2022-11-25 成都鼎桥通信技术有限公司 Wireless communication method, wireless communication apparatus, wireless communication module, medium, and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744699A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Method and device for software upgrading of intelligent electric equipment
CN104320774A (en) * 2014-10-16 2015-01-28 小米科技有限责任公司 Updating method, device and facility
CN109495433A (en) * 2017-09-13 2019-03-19 腾讯科技(深圳)有限公司 Data download method and device, storage medium and electronic device
CN110750285A (en) * 2019-10-17 2020-02-04 和美(深圳)信息技术股份有限公司 Firmware upgrading method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744699A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Method and device for software upgrading of intelligent electric equipment
CN104320774A (en) * 2014-10-16 2015-01-28 小米科技有限责任公司 Updating method, device and facility
CN109495433A (en) * 2017-09-13 2019-03-19 腾讯科技(深圳)有限公司 Data download method and device, storage medium and electronic device
CN110750285A (en) * 2019-10-17 2020-02-04 和美(深圳)信息技术股份有限公司 Firmware upgrading method and device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132961A (en) * 2021-03-15 2021-07-16 深圳市有方科技股份有限公司 Internet of things complete equipment debugging method and device, computer equipment and storage medium
CN113190244A (en) * 2021-03-26 2021-07-30 深圳市广和通无线股份有限公司 Method and device for upgrading wireless module, computer equipment and storage medium
CN115397033A (en) * 2021-05-25 2022-11-25 成都鼎桥通信技术有限公司 Wireless communication method, wireless communication apparatus, wireless communication module, medium, and program product
CN115397033B (en) * 2021-05-25 2024-04-09 成都鼎桥通信技术有限公司 Wireless communication method, wireless communication device, wireless communication module, medium, and program product

Also Published As

Publication number Publication date
CN112423281B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN112423281B (en) Wireless module upgrading method, device, computer equipment and storage medium
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN111651178A (en) Container configuration updating method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN112052374B (en) A page display method a device(s) computer device and storage medium
CN113507516A (en) File service method, access server, computer device and storage medium
CN109118291B (en) User authentication method and device in advertisement task popularization and computer equipment
CN114281263A (en) Storage resource processing method, system and equipment of container cluster management system
CN110730205B (en) Cluster system deployment method, device, computer equipment and storage medium
CN110362341B (en) Business management method, device, equipment and storage medium based on micro-service architecture
CN111126537A (en) Identification code ID generation method and related product
CN111026988A (en) Page loading method, device and system and computer equipment
CN110837391A (en) Application program hot updating method and device, storage medium and electronic equipment
CN112311820A (en) Edge device scheduling method, connection method, device and edge device
CN106161075B (en) Service processing method, device and system
CN111786825B (en) Method, device, system and storage medium for dynamically configuring interface service
CN115221156A (en) Database cluster capacity expansion method and device, computer equipment and storage medium
CN110784414B (en) Data interaction method, device, electronic equipment and storage medium
CN114064985A (en) Advertisement putting method, device, computer equipment, storage medium and system
CN110049535B (en) Network searching method, device, equipment and storage medium
CN109241371B (en) Map data storage method, map data loading method, map data storage device, map data loading device and computer 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
GR01 Patent grant
GR01 Patent grant