CN115397033A - Wireless communication method, wireless communication apparatus, wireless communication module, medium, and program product - Google Patents

Wireless communication method, wireless communication apparatus, wireless communication module, medium, and program product Download PDF

Info

Publication number
CN115397033A
CN115397033A CN202110571548.1A CN202110571548A CN115397033A CN 115397033 A CN115397033 A CN 115397033A CN 202110571548 A CN202110571548 A CN 202110571548A CN 115397033 A CN115397033 A CN 115397033A
Authority
CN
China
Prior art keywords
wireless communication
communication connection
communication module
module
connection
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
CN202110571548.1A
Other languages
Chinese (zh)
Other versions
CN115397033B (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202110571548.1A priority Critical patent/CN115397033B/en
Publication of CN115397033A publication Critical patent/CN115397033A/en
Application granted granted Critical
Publication of CN115397033B publication Critical patent/CN115397033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a wireless communication method, a wireless communication device, a wireless communication module, a medium and a program product. The method comprises the following steps: when the wireless communication module has the established first wireless communication connection at present, establishing a second wireless communication connection with second equipment by using the address used in the establishment of the first wireless communication connection; the first wireless communication connection is used for transmitting communication data between the upper computer and the first equipment, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment; or the first wireless communication connection is used for transmitting communication data between the wireless communication module and the first equipment, and the second wireless communication connection is used for transmitting communication data between the upper computer and the second equipment; the method includes wirelessly communicating with a first device using a first wireless communication connection and wirelessly communicating with a second device using a second wireless communication connection. The application improves the transmission efficiency of the wireless communication module.

Description

Wireless communication method, wireless communication apparatus, wireless communication module, medium, and program product
Technical Field
The present application relates to communications technologies, and in particular, to a wireless communication method, apparatus, wireless communication module, medium, and program product.
Background
The wireless communication module can establish communication connection between the upper computer and the server by using the acquired Internet Protocol (IP) address, so that data transmission can be performed between the upper computer and the server through the communication connection. The wireless communication module is also provided with a Firmware Over The Air (FOTA) module. The FOTA module can be used for upgrading the firmware of the wireless communication module so as to perfect the function of the wireless communication module. When the firmware of the wireless communication module is upgraded, the wireless communication module also needs an IP address to establish communication connection between the wireless communication module and the FOTA upgrade server so as to acquire the FOTA upgrade package.
At present, under the condition that the wireless communication module has established the communication connection between the wireless communication module and the server corresponding to the upper computer, if the wireless communication module needs to acquire the FOTA upgrade package, the wireless communication module needs to disconnect the communication connection between the server corresponding to the upper computer. And then acquiring a new IP address, and establishing a communication connection with the FOTA upgrading server by using the new IP address.
However, the wireless communication method causes the wireless communication module to have low transmission efficiency and occupy more network resources.
Disclosure of Invention
The application provides a wireless communication method, a wireless communication device, a wireless communication module, a medium and a program product, which are used for improving the transmission efficiency of the wireless communication module.
In a first aspect, the present application provides a wireless communication method, where the method is applied to a wireless communication module, the wireless communication module is connected to an upper computer, and the upper computer performs wireless communication through the wireless communication module, and the method includes:
determining whether the wireless communication module currently has an established first wireless communication connection; the first wireless communication connection is a communication connection between the wireless communication module and first equipment;
if the established first wireless communication connection exists, establishing a second wireless communication connection with a second device by using an address used in establishing the first wireless communication connection; the first wireless communication connection is used for transmitting communication data between the upper computer and the first equipment, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment; or the first wireless communication connection is used for transmitting communication data between the wireless communication module and the first equipment, and the second wireless communication connection is used for transmitting communication data between the upper computer and the second equipment;
wirelessly communicating with the first device using the first wireless communication connection and wirelessly communicating with the second device using the second wireless communication connection.
Optionally, the performing wireless communication with the first device using the first wireless communication connection and performing wireless communication with the second device using the second wireless communication connection includes:
if target data is received based on the first wireless communication connection or the second wireless communication connection, determining a receiving object of the target data according to source address information of the target data; the receiving object is the wireless communication module or the upper computer;
if the receiving object is the upper computer, the target data is sent to the upper computer; or, if the receiving object is the wireless communication module, decoding the target data.
Optionally, if the second wireless communication connection is used to transmit communication data between the upper computer and the second device, before determining whether the wireless communication module currently has the established first wireless communication connection, the method further includes:
and receiving a wireless communication connection instruction sent by the upper computer, wherein the wireless communication connection instruction is used for requesting to establish wireless communication connection with the second equipment.
Optionally, after establishing the second wireless communication connection with the second device by using the address used in establishing the first wireless communication connection, the method further includes:
storing wireless connection parameters for use in establishing the second wireless communication connection with the second device.
Optionally, after determining whether the wireless communication module currently has the established first wireless communication connection, the method further includes:
if the established first wireless communication connection does not exist, acquiring an address used for establishing a second wireless communication connection with the second equipment;
establishing the second wireless communication connection with the second device using the address;
wirelessly communicating with the second device using the second wireless communication connection.
Optionally, if the first wireless communication connection is used to transmit communication data between the wireless communication module and the first device, the first device is a firmware over-the-air upgrade FOTA upgrade server;
or if the second wireless communication connection is used for transmitting communication data between the wireless communication module and second equipment, the second equipment is a firmware over-the-air upgrading FOTA upgrading server.
In a second aspect, the present application provides a wireless communication device, the device is applied to the wireless communication module, the wireless communication module is connected with the host computer, the host computer passes through the wireless communication module carries out radio communication, the device includes:
the determining module is used for determining whether the wireless communication module currently has an established first wireless communication connection; the first wireless communication connection is a communication connection between the wireless communication module and first equipment;
an establishing module, configured to establish, when there is an established first wireless communication connection, a second wireless communication connection with a second device using an address used in establishing the first wireless communication connection; the first wireless communication connection is used for transmitting communication data between the upper computer and the first equipment, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment; or the first wireless communication connection is used for transmitting communication data between the wireless communication module and the first equipment, and the second wireless communication connection is used for transmitting communication data between the upper computer and the second equipment;
a communication module to wirelessly communicate with the first device using the first wireless communication connection and to wirelessly communicate with the second device using the second wireless communication connection.
In a third aspect, the present application provides a wireless communication module, comprising: at least one processor, a memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the wireless communication module to perform the method of any of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the method of any one of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method of any of the first aspects.
According to the wireless communication method, the wireless communication device, the wireless communication module, the medium and the program product, after the wireless communication module is determined to establish the first wireless communication connection with the first equipment, the second wireless communication connection with the second equipment is established by using the address used when the first wireless communication connection is established. The wireless communication module may then wirelessly communicate with the first device using the first wireless communication connection and wirelessly communicate with the second device using the second wireless communication connection. According to the method, the first wireless communication connection and the second wireless communication connection can be established without using two addresses, so that data transmission between the upper computer and one device is guaranteed, and meanwhile, the wireless communication module can also perform data transmission with another device. Further, compared with the existing method for establishing the first wireless communication connection and the second wireless communication connection through two addresses respectively, the method for establishing the first wireless communication connection and the second wireless communication connection through only one address reduces waste of network resources.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive labor.
FIG. 1 is a schematic diagram of an application scenario of a wireless communication module;
fig. 2 is a flowchart illustrating a wireless communication method according to the present application;
fig. 3 is a flow chart illustrating another method of wireless communication provided herein;
fig. 4 is a schematic structural diagram of a wireless communication device provided in the present application;
fig. 5 is a schematic structural diagram of a wireless communication module according to the present application.
Specific embodiments of the present application have been shown by way of example in the drawings and will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
To make the objects, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. 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 schematic view of an application scenario of a wireless communication module. As shown in fig. 1, the upper computer may send instruction information for instructing the wireless communication module to establish a communication connection between the upper computer and a server corresponding to the upper computer to the routing module of the wireless communication module. After receiving the instruction information, the routing module in the wireless communication module can establish communication connection between the upper computer and the server corresponding to the upper computer by using the acquired IP address, so that data transmission can be carried out between the upper computer and the server through the communication connection.
The upper computer can be any electronic equipment capable of controlling the wireless communication module to establish communication connection between the upper computer and other equipment through instructions. Illustratively, the host computer may be, for example, a Central Processing Unit (CPU) of an electronic device such as a tablet computer, a notebook computer, a mobile phone, or an electronic device such as a camera, a desktop computer, and a Micro Controller Unit (MCU).
For example, taking the upper computer as a desktop computer, the desktop computer may send the instruction information to the wireless communication module through the communication interface. The communication interface can be integrated in the upper computer or an entity device independent of the upper computer. The communication interface may be a Universal Serial Bus (USB) interface, for example. The wireless communication module may be a wireless network card, for example. In this example, the server corresponding to the upper computer may be, for example, a World Wide Web (Web) application server, or a server corresponding to application software installed in the upper computer.
Taking the above-mentioned upper computer as the CPU of the mobile phone or the tablet computer as an example, the upper computer and the wireless communication module shown in fig. 1 may be integrated in the mobile phone or the tablet computer. In this example, the server corresponding to the upper computer may be, for example, a server corresponding to an Application (APP) installed in a mobile phone or a tablet computer.
Taking the above upper computer as a camera as an example, the server corresponding to the upper computer may be a background server corresponding to the camera, for example. The camera can send the video collected by the camera to the background server through the communication connection between the camera and the background server established by the wireless communication module. The backend server can then output the video to a display device for viewing by a user.
It should be understood that the present application is not limited to the wireless communication method that can be implemented by the wireless communication module. For example, as shown in fig. 1, the wireless communication module may implement a server corresponding to the upper computer through a Wide Area Network (WAN) interface, or the FOTA upgrade server performs communication connection. In addition, it should be understood that fig. 1 only shows the modules related to the present application in the wireless communication module by way of example, and the present application does not limit whether the wireless communication module further includes other modules.
The wireless communication module is also provided with an FOTA module. The FOTA module can be used for upgrading the firmware of the wireless communication module so as to perfect the function of the wireless communication module. When the firmware of the wireless communication module is upgraded, the wireless communication module also needs an IP address to establish communication connection between the wireless communication module and the FOTA upgrade server so as to acquire the FOTA upgrade package.
At present, there are two wireless communication methods for acquiring FOTA upgrade package by wireless communication module:
first, the wireless communication module needs to disconnect the communication connection between the servers corresponding to the upper computer. And then, acquiring a new IP address, and establishing a communication connection with the FOTA upgrading server by using the new IP address. Through the communication connection with the FOTA upgrade server, the wireless communication module can acquire the FOTA upgrade package.
That is, the wireless communication module needs to use one IP address to establish a communication connection between servers corresponding to the upper computer, and use another IP address to establish a communication connection between the servers and the FOTA upgrade server, and the two communication connections cannot exist at the same time.
With this wireless communication method, two communication connections cannot exist simultaneously. That is, the wireless communication module can only maintain one wireless communication connection at a time. For example, taking the wireless communication module to maintain the communication connection with the FOTA server as an example, the wireless communication module may disconnect the communication connection between the servers corresponding to the upper computer at this time, and this way may cause that data transmission cannot be performed between the upper computer and the server corresponding to the upper computer. Still taking the above-mentioned upper computer as a camera as an example, if the wireless communication module disconnects the communication connection with the background server corresponding to the camera, the video collected by the camera cannot be transmitted to the background server. Therefore, the method makes the transmission efficiency of the wireless communication module low. In addition, the wireless communication module in the method occupies two IP addresses, which results in more network resource occupation.
Second, the wireless communication module can use two different IP addresses to establish communication connection between the servers corresponding to the upper computer and the FOTA upgrade server, respectively.
Although the method can realize data transmission between the upper computer and one device, the wireless communication module can also carry out data transmission with another device. However, in fact, most wireless communication modules can only provide one IP address at a time. That is, this method is not applicable to most wireless communication modules that cannot use two IP addresses simultaneously. In addition, the wireless communication module in the method occupies two IP addresses, which results in more network resource occupation.
In view of the above problems of the existing wireless communication method, the present application provides a method for realizing data transmission between an upper computer and one device without using two addresses, and simultaneously, enabling a wireless communication module to perform data transmission with another device. Compared with the prior art, the wireless communication method provided by the application does not need to use two addresses, is suitable for most wireless communication modules, ensures that the data transmission can be carried out between the upper computer and one device, and simultaneously can also carry out the data transmission with another device, thereby improving the transmission efficiency of the wireless communication module. Meanwhile, the method can save network resources.
In the specific implementation, the execution main body of the method is the wireless communication module.
The technical solution of the present application will be described in detail with reference to specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart illustrating a wireless communication method according to the present application. As shown in fig. 2, the method comprises the steps of:
s101, determining whether the wireless communication module currently has the established first wireless communication connection. If yes, go to step S102. If not, optionally, the wireless communication module may execute step S104.
S102, establishing a second wireless communication connection with the second equipment by using the address used when the first wireless communication connection is established.
S103, wirelessly communicating with a first device using a first wireless communication connection, and wirelessly communicating with a second device using a second wireless communication connection.
S104, acquiring an address used for establishing a second wireless communication connection with the second equipment.
And S105, establishing a second wireless communication connection with the second equipment by using the address.
And S106, performing wireless communication with the second equipment by using the second wireless communication connection.
The first wireless communication connection is a communication connection between the wireless communication module and the first device.
In a possible implementation manner, the first wireless communication connection may be used to transmit communication data between the upper computer and the first device, and the second wireless communication connection may be used to transmit communication data between the wireless communication module and the second device.
Under the implementation mode, the first equipment can be a server corresponding to the upper computer, or other electronic equipment capable of establishing wireless communication connection with the wireless communication module. For example, if the upper computer is a camera, the first device may be a background server corresponding to the camera, or another camera. The second device may be an FOTA upgrade server, or an electronic device storing a FOTA upgrade package required by the wireless communication module to perform FOTA upgrade.
In another possible implementation manner, the first wireless communication connection may also be used to transmit communication data between the wireless communication module and the first device, and the second wireless communication connection is used to transmit communication data between the upper computer and the second device.
In this implementation manner, the first device may be an FOTA upgrade server, or an electronic device storing a FOTA upgrade package required by the wireless communication module to perform FOTA upgrade. The second equipment can be a server corresponding to the upper computer, or other electronic equipment capable of establishing wireless communication connection with the wireless communication module. For example, if the upper computer is a camera, the second device may be a background server corresponding to the camera, or another camera.
Alternatively, after establishing the first communication connection with the first device, the wireless communication module may generate an identifier indicating that the wireless communication has the established first wireless communication connection. The wireless communication module can determine whether the established first wireless communication connection exists in the wireless communication module currently by detecting whether the identifier exists in the wireless communication module. If the wireless communication module is detected to have the identifier, it can be determined that the wireless communication module has the established first wireless communication connection. If the wireless communication module is detected to be absent of the identifier, it can be determined that the wireless communication module is absent of the established first wireless communication connection.
Alternatively, if the first communication connection is established between the wireless communication module and the first device, the core network device may send an identifier indicating that the wireless communication has the established first wireless communication connection to the wireless communication module. Accordingly, the wireless communication module may determine whether the wireless communication module currently has the established first wireless communication connection according to whether the identifier is received. If the wireless communication module receives the identifier, it can be determined that the wireless communication module has the established first wireless communication connection. If the wireless communication module does not receive the identifier, it can be determined that the wireless communication module does not have the established first wireless communication connection.
It should be understood that the form of the above-mentioned identifier for indicating that the wireless communication exists in the established first wireless communication connection is not limited in the present application. Illustratively, the identifier may be, for example, a particular numerical value (e.g., the number 1), or a particular combination of letters, or a particular file, etc.
The address used when establishing the first wireless communication connection may be, for example, an IP address acquired by the wireless communication module from the core network device. Alternatively, the address may be, for example, other identifiers capable of representing unique identity information of the wireless communication module, such as a Media Access Control (MAC) address.
Optionally, the wireless communication module may establish the second wireless communication connection with the second device according to a "wireless connection parameter required to be used to establish the second wireless communication connection with the second device" and the address used when establishing the first wireless communication connection. Optionally, the wireless connection parameter may be pre-stored in the wireless communication module by the user. Alternatively, the wireless communication module may also receive wireless connection parameters input by a user. For example, the wireless connection parameter may include an Access Point Name (APN), an IP version type (e.g., IPv4 or IPv 6), and other parameters.
It should be understood that the present application does not limit how the wireless communication module uses the address used when establishing the first wireless communication connection, and establishes the second wireless communication connection with the second device. In a specific implementation, the wireless communication module may establish, for example, a second wireless communication connection with the second device through Network Driver Interface Specification (NDIS) dialing, network sharing (Tethering) dialing, and the like using the address.
Taking the first device as a server corresponding to the upper computer and the second device as an FOTA upgrade server as an example, the wireless communication module may send information of the upper computer to the server corresponding to the upper computer by using the first wireless communication connection, and send information of the server corresponding to the upper computer. When wireless communication between the server corresponding to the upper computer and the upper computer is realized, the wireless communication module can use second wireless communication connection to send the identification information of the wireless communication module to the FOTA upgrade server, and then the FOTA upgrade package for upgrading the wireless communication module is obtained from the FOTA upgrade server.
If it is determined that the wireless communication module does not currently have the established first wireless communication connection, the wireless communication module may acquire an address used for establishing a second wireless communication connection with the second device. Illustratively, the address may be an IP address. In this example, the wireless communication module may acquire, from the core network device, an IP address used to establish the second wireless communication connection with the second device.
The wireless communication module can then establish a second wireless communication connection with the second device using the address. And then wirelessly communicating with a second device using the established second wireless communication connection.
In the present embodiment, after determining that the wireless communication module has established the first wireless communication connection with the first device, the second wireless communication connection with the second device is established by using the address used when the first wireless communication connection is established. The wireless communication module may then wirelessly communicate with the first device using the first wireless communication connection and wirelessly communicate with the second device using the second wireless communication connection. According to the method, the first wireless communication connection and the second wireless communication connection can be established without using two addresses, so that data transmission between the upper computer and one device is guaranteed, and meanwhile, the wireless communication module can also perform data transmission with another device. Further, compared with the existing method for establishing the first wireless communication connection and the second wireless communication connection through two addresses respectively, the method for establishing the first wireless communication connection and the second wireless communication connection through only one address reduces waste of network resources.
The following describes in detail how the wireless communication module wirelessly communicates with a first device using a first wireless communication connection and wirelessly communicates with a second device using a second wireless communication connection. As a possible implementation manner, the foregoing step S103 may include the following steps:
step 1, determining whether target data is received based on the first wireless communication connection or the second wireless communication connection. If yes, executing step 2. If not, optionally, the wireless communication module may continue to maintain the first wireless communication connection and the second wireless communication connection to continue to acquire the target data.
Taking the first wireless communication connection for transmitting the communication data between the host computer and the first device and the second wireless communication connection for transmitting the communication data between the wireless communication module and the second device as an example, how to determine whether to receive the target data based on the first wireless communication connection or the second wireless communication connection is exemplarily described below.
For example, taking the first device as a server corresponding to the upper computer as an example, after the server corresponding to the upper computer sends the target data to the wireless communication module, the server corresponding to the upper computer may also send an identifier indicating that the target data transmission is completed to the wireless communication module. Accordingly, the wireless communication module may determine whether to finish receiving the target data according to whether the identifier is received.
Taking the second device as the FOTA upgrade server as an example, if the wireless communication module receives the FOTA upgrade packet, it may be determined that the target data is received. If the FOTA upgrade package is not received, it may be determined that the target data is not received.
And 2, determining a receiving object of the target data according to the source address information of the target data. Wherein, the receiving object is a wireless communication module or an upper computer. The source address information is used for indicating the source of the target data, and the source address information of the target data sent by different devices is different. The target data may carry the source address information.
For example, if the source address information of the target data indicates that the target data is sent by the server corresponding to the upper computer, the wireless communication module may determine that a receiving object of the target data is the upper computer. If the source address information of the target data indicates that the target data is sent by the FOTA application server, the wireless communication module may determine that a receiving object of the target data is the wireless communication module.
And if the receiving object of the target data is determined to be the upper computer, the wireless communication module sends the target data to the upper computer. Alternatively, if it is determined that the target data is received by the wireless communication module, the wireless communication module may decode the target data. In this implementation manner, the FOTA upgrade module of the wireless communication module can decode the target data, and write the target data into the target partition, thereby implementing upgrade of the wireless communication module. The target partition may be, for example, a flash (flash) partition of the wireless communication module.
As a possible implementation manner, taking the second wireless communication connection used for transmitting communication data between the upper computer and the second device as an example, before determining whether the wireless communication module currently has the established first wireless communication connection, the wireless communication module may further receive a wireless communication connection instruction sent by the upper computer. Wherein the wireless communication connection instruction is used for requesting to establish a wireless communication connection with the second device. Illustratively, the wireless communication connection command may be an Attention (AT) command, for example.
In this implementation manner, for example, the upper computer is a CPU of the mobile phone, and the wireless communication module in the mobile phone can receive the AT instruction sent by the CPU. After receiving the AT command, the wireless communication module determines whether there is a first wireless communication connection established currently.
In another possible implementation manner, the wireless communication module may need to perform firmware upgrade after the usage duration reaches the preset duration. Therefore, the wireless communication module can determine whether the wireless communication module currently has the established first wireless communication connection after the usage time reaches the preset time. Then, referring to the method described in the foregoing embodiments, the FOTA upgrade package of the wireless communication module is obtained.
As a possible implementation manner, after the second wireless communication connection is established with the second device by using the address used when the first wireless communication connection is established, the wireless communication module may further store the wireless connection parameter used when the second wireless communication connection is established with the second device. For example, the wireless communication module may store the wireless connection parameter in a non-volatile memory (NVRAM), so that the wireless connection parameter is not lost even if the wireless communication module is powered off, thereby improving the security of storing the wireless connection parameter.
In this embodiment, by storing the wireless connection parameter used when the second wireless communication connection with the second device is established, the wireless connection parameter can be directly called when the next time the wireless communication module establishes the second wireless communication connection with the second device, which avoids the need for the user to set the wireless communication parameter when the wireless communication module establishes the second wireless communication connection with the second device, improves the communication efficiency of the wireless communication module, and improves the user experience.
Still taking the example that the first wireless communication connection is used for transmitting communication data between the upper computer and the first device, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second device, assuming that the first device is a server corresponding to the upper computer, and the second device is an FOTA upgrade server, in this example, fig. 3 is a schematic flow chart of another wireless communication method provided by the present application.
As shown in fig. 3, the method comprises the steps of:
s201, receiving an AT command sent by an upper computer.
The AT command is used to request establishment of a wireless communication connection with the FOTA upgrade server.
S202, whether the established first wireless communication connection exists in the wireless communication module is determined.
If yes, go to step S203. If not, go to step S208.
S203, establishing a second wireless communication connection with the FOTA upgrade server by using the IP address used when the first wireless communication connection is established and through an NDIS dialing mode.
And S204, performing wireless communication with a server corresponding to the upper computer by using the first wireless communication connection, and performing wireless communication with the FOTA upgrade server by using the second wireless communication connection to acquire the FOTA upgrade package.
S205, determine whether the target data is received based on the first wireless communication connection, and receive the target data based on the second wireless communication connection. If yes, go to step S206. If not, go to step 207.
S206, disconnecting the NDIS dialing.
S207, keeping the wireless communication connection with unfinished target data transmission; the wireless communication connection for which the target data transfer has been completed is deactivated.
And if the wireless communication task between the wireless communication module and the server corresponding to the upper computer is completed, deactivating the first wireless communication connection so as to disconnect the first wireless communication connection. If the wireless communication task between the wireless communication module and the server corresponding to the upper computer is not completed, the first wireless communication connection is maintained. And if the wireless communication module receives the FOTA upgrade package, deactivating the second wireless communication connection so as to disconnect the second wireless communication connection. If the wireless communication module does not receive the FOTA upgrade packet, the second wireless communication connection is maintained.
S208, the IP address is obtained from the core network equipment, and the second wireless communication connection is established with the second equipment by using the IP address.
S209, the FOTA upgrading server is wirelessly communicated by using the second wireless communication connection so as to obtain the FOTA upgrading packet of the wireless communication module.
S210, after the FOTA upgrade package is acquired, deactivating the second wireless communication connection.
Fig. 4 is a schematic structural diagram of a wireless communication device provided in the present application. The device is applied to a wireless communication module, the wireless communication module is connected with an upper computer, and the upper computer performs wireless communication through the wireless communication module. As shown in fig. 4, the apparatus includes: a determination module 31, a setup module 32, a communication module 33. Wherein the content of the first and second substances,
the determining module 31 is configured to determine whether the wireless communication module currently has an established first wireless communication connection. The first wireless communication connection is a communication connection between the wireless communication module and first equipment.
The establishing module 32 is configured to establish, when there is an established first wireless communication connection, a second wireless communication connection with a second device using an address used in establishing the first wireless communication connection. The first wireless communication connection is used for transmitting communication data between the upper computer and the first equipment, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment; or the first wireless communication connection is used for transmitting the communication data between the wireless communication module and the first equipment, and the second wireless communication connection is used for transmitting the communication data between the upper computer and the second equipment.
A communication module 33, configured to perform wireless communication with the first device using the first wireless communication connection, and perform wireless communication with the second device using the second wireless communication connection.
Optionally, the communication module 33 is specifically configured to, when target data is received based on the first wireless communication connection or the second wireless communication connection, determine a receiving object of the target data according to source address information of the target data. And the receiving object is the wireless communication module or the upper computer.
If the receiving object is the upper computer, the communication module 33 is specifically configured to send the target data to the upper computer; if the receiving object is the wireless communication module, the communication module 33 is specifically configured to perform decoding processing on the target data.
Optionally, if the second wireless communication connection is used to transmit communication data between the upper computer and the second device, the apparatus may further include a receiving module 34, configured to receive a wireless communication connection instruction sent by the upper computer before determining whether the wireless communication module currently has an established first wireless communication connection. Wherein the wireless communication connection instruction is used for requesting to establish a wireless communication connection with the second device.
Optionally, the apparatus may further include a storage module 35, configured to store the wireless connection parameters used when establishing the second wireless communication connection with the second device after establishing the second wireless communication connection with the second device using the address used when establishing the first wireless communication connection.
Optionally, the establishing module 32 is further configured to, when it is determined that the wireless communication module does not currently have an established first wireless communication connection, obtain an address used for establishing a second wireless communication connection with a second device; establishing the second wireless communication connection with the second device using the address. In this implementation, the communication module 33 is configured to perform wireless communication with the second device using the second wireless communication connection.
Optionally, when the first wireless communication connection is used to transmit communication data between the wireless communication module and the first device, the first device is a firmware over-the-air upgrade FOTA upgrade server; or when the second wireless communication connection is used for transmitting communication data between the wireless communication module and second equipment, the second equipment is a firmware over-the-air upgrading FOTA upgrading server.
The wireless communication apparatus provided in the present application is configured to execute the foregoing wireless communication method embodiments, and the implementation principle and the technical effect are similar, which are not described again.
Fig. 5 is a schematic structural diagram of a wireless communication module according to the present application. As shown in fig. 5, the wireless communication module 400 may include: at least one processor 401 and memory 402.
A memory 402 for storing programs. In particular, the program may include program code including computer operating instructions.
Memory 402 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Processor 401 is configured to execute computer-executable instructions stored by memory 402 to implement the wireless communication methods described in the foregoing method embodiments. The processor 401 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Optionally, the wireless communication module 400 may further include a communication interface 403. In a specific implementation, if the communication interface 403, the memory 402 and the processor 401 are implemented independently, the communication interface 403, the memory 402 and the processor 401 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. Buses may be classified as address buses, data buses, control buses, etc., but do not represent only one bus or type of bus.
Optionally, in a specific implementation, if the communication interface 403, the memory 402 and the processor 401 are integrated into a single chip, the communication interface 403, the memory 402 and the processor 401 may complete communication through an internal interface.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and in particular, the computer-readable storage medium stores program instructions, and the program instructions are used in the method in the foregoing embodiments.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the wireless communication module may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the wireless communication module to implement the wireless communication method provided in the various embodiments described above.
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 or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A wireless communication method is applied to a wireless communication module, the wireless communication module is connected with an upper computer, and the upper computer performs wireless communication through the wireless communication module, and the method comprises the following steps:
determining whether the wireless communication module currently has an established first wireless communication connection; the first wireless communication connection is a communication connection between the wireless communication module and first equipment;
if the established first wireless communication connection exists, establishing a second wireless communication connection with a second device by using an address used in establishing the first wireless communication connection; the first wireless communication connection is used for transmitting communication data between the upper computer and the first equipment, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment; or the first wireless communication connection is used for transmitting communication data between the wireless communication module and the first equipment, and the second wireless communication connection is used for transmitting communication data between the upper computer and the second equipment;
wirelessly communicating with the first device using the first wireless communication connection and wirelessly communicating with the second device using the second wireless communication connection.
2. The method of claim 1, wherein the wirelessly communicating with the first device using the first wireless communication connection and wirelessly communicating with the second device using the second wireless communication connection comprises:
if target data is received based on the first wireless communication connection or the second wireless communication connection, determining a receiving object of the target data according to source address information of the target data; the receiving object is the wireless communication module or the upper computer;
if the receiving object is the upper computer, the target data is sent to the upper computer; or, if the receiving object is the wireless communication module, decoding the target data.
3. The method according to claim 1 or 2, wherein if the second wireless communication connection is used for transmitting communication data between the host computer and the second device, before the determining whether the wireless communication module currently has the established first wireless communication connection, further comprising:
and receiving a wireless communication connection instruction sent by the upper computer, wherein the wireless communication connection instruction is used for requesting to establish wireless communication connection with the second equipment.
4. The method according to claim 1 or 2, wherein after establishing the second wireless communication connection with the second device using the address used in establishing the first wireless communication connection, the method further comprises:
storing wireless connection parameters for use in establishing the second wireless communication connection with the second device.
5. The method of claim 1 or 2, wherein after determining whether the wireless communication module currently has the established first wireless communication connection, the method further comprises:
if the established first wireless communication connection does not exist, acquiring an address used for establishing a second wireless communication connection with the second equipment;
establishing the second wireless communication connection with the second device using the address;
wirelessly communicating with the second device using the second wireless communication connection.
6. The method according to claim 1 or 2, wherein if the first wireless communication connection is used for transmitting communication data of the wireless communication module and the first device, the first device is a firmware over the air FOTA upgrade server;
or if the second wireless communication connection is used for transmitting communication data between the wireless communication module and second equipment, the second equipment is a firmware over-the-air upgrading FOTA upgrading server.
7. The utility model provides a wireless communication device, its characterized in that, the device is applied to the wireless communication module, the wireless communication module is connected with the host computer, the host computer passes through the wireless communication module carries out radio communication, the device includes:
the determining module is used for determining whether the wireless communication module currently has an established first wireless communication connection; the first wireless communication connection is a communication connection between the wireless communication module and first equipment;
an establishing module, configured to establish, when there is an established first wireless communication connection, a second wireless communication connection with a second device using an address used in establishing the first wireless communication connection; the first wireless communication connection is used for transmitting communication data between the upper computer and the first equipment, and the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment; or the first wireless communication connection is used for transmitting communication data between the wireless communication module and the first equipment, and the second wireless communication connection is used for transmitting communication data between the upper computer and the second equipment;
a communication module to wirelessly communicate with the first device using the first wireless communication connection and to wirelessly communicate with the second device using the second wireless communication connection.
8. A wireless communication module, comprising: at least one processor, a memory;
the memory stores computer execution instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the wireless communication module to perform the method of any of claims 1-6.
9. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-6 when executed by a processor.
CN202110571548.1A 2021-05-25 2021-05-25 Wireless communication method, wireless communication device, wireless communication module, medium, and program product Active CN115397033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110571548.1A CN115397033B (en) 2021-05-25 2021-05-25 Wireless communication method, wireless communication device, wireless communication module, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110571548.1A CN115397033B (en) 2021-05-25 2021-05-25 Wireless communication method, wireless communication device, wireless communication module, medium, and program product

Publications (2)

Publication Number Publication Date
CN115397033A true CN115397033A (en) 2022-11-25
CN115397033B CN115397033B (en) 2024-04-09

Family

ID=84114469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110571548.1A Active CN115397033B (en) 2021-05-25 2021-05-25 Wireless communication method, wireless communication device, wireless communication module, medium, and program product

Country Status (1)

Country Link
CN (1) CN115397033B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO20033655D0 (en) * 2003-08-18 2003-08-18 Telenor Asa Establishment of VPN connection
KR20050011822A (en) * 2003-07-24 2005-01-31 삼성전자주식회사 Apparatus for connecting plurality of device with same address to one bus controller and operation method thereof
EP2375797A1 (en) * 2010-03-29 2011-10-12 Vodafone Group PLC ADSL and 3G Traffic Aggregation in Home Gateway Environment
WO2013060012A1 (en) * 2011-10-27 2013-05-02 Nokia Corporation A method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
CN106681766A (en) * 2016-12-26 2017-05-17 广东芬尼克兹节能设备有限公司 Remote firmware upgrading controlling method and system
WO2018113086A1 (en) * 2016-12-24 2018-06-28 华为技术有限公司 Wireless connection switching method and terminal
CN109688179A (en) * 2017-10-19 2019-04-26 华为技术有限公司 Communication means and communication device
CN110933614A (en) * 2019-10-12 2020-03-27 阿里巴巴集团控股有限公司 Communication processing method and device and electronic equipment
CN111314593A (en) * 2020-03-18 2020-06-19 Oppo广东移动通信有限公司 Terminal device, image shooting method and device and storage medium
CN111567109A (en) * 2017-12-22 2020-08-21 瑞典爱立信有限公司 QoS in a hybrid communication network
EP3723444A1 (en) * 2019-04-12 2020-10-14 Samsung Electronics Co., Ltd. Electronic device supporting dual connectivity and method of operating the same
CN211830814U (en) * 2020-06-04 2020-10-30 中冶华天工程技术有限公司 Multifunctional Internet of things wireless data gateway
CN112423281A (en) * 2020-10-30 2021-02-26 深圳市广和通无线股份有限公司 Wireless module upgrading method and device, computer equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050011822A (en) * 2003-07-24 2005-01-31 삼성전자주식회사 Apparatus for connecting plurality of device with same address to one bus controller and operation method thereof
NO20033655D0 (en) * 2003-08-18 2003-08-18 Telenor Asa Establishment of VPN connection
EP2375797A1 (en) * 2010-03-29 2011-10-12 Vodafone Group PLC ADSL and 3G Traffic Aggregation in Home Gateway Environment
WO2013060012A1 (en) * 2011-10-27 2013-05-02 Nokia Corporation A method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
WO2018113086A1 (en) * 2016-12-24 2018-06-28 华为技术有限公司 Wireless connection switching method and terminal
CN106681766A (en) * 2016-12-26 2017-05-17 广东芬尼克兹节能设备有限公司 Remote firmware upgrading controlling method and system
CN109688179A (en) * 2017-10-19 2019-04-26 华为技术有限公司 Communication means and communication device
CN111567109A (en) * 2017-12-22 2020-08-21 瑞典爱立信有限公司 QoS in a hybrid communication network
EP3723444A1 (en) * 2019-04-12 2020-10-14 Samsung Electronics Co., Ltd. Electronic device supporting dual connectivity and method of operating the same
CN110933614A (en) * 2019-10-12 2020-03-27 阿里巴巴集团控股有限公司 Communication processing method and device and electronic equipment
CN111314593A (en) * 2020-03-18 2020-06-19 Oppo广东移动通信有限公司 Terminal device, image shooting method and device and storage medium
CN211830814U (en) * 2020-06-04 2020-10-30 中冶华天工程技术有限公司 Multifunctional Internet of things wireless data gateway
CN112423281A (en) * 2020-10-30 2021-02-26 深圳市广和通无线股份有限公司 Wireless module upgrading method and device, computer equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AHMED AL-KINANI; CHENG-XIANG WANG; FOURAT HAIDER; HARALD HAAS; WENSHENG ZHANG; XIANG CHENG: "Light and RF dual connectivity for the next generation cellular systemsks", IEEE/CIC, 24 October 2017 (2017-10-24) *
ITU-R AD HOC: "Proposed revision of PDNR ITU-R M.[IP CHAR]", 3GPP TSG_RAN\\TSG_RAN, no. 31, 10 March 2006 (2006-03-10) *
崔捷: "异构无线传感器网络多链路传输技术的设计和实现", 优秀硕士学位论文全文库, 22 November 2010 (2010-11-22) *
贺艳: "基于Wi-Fi和3G的双模无线网卡的设计与实现", 优秀硕士学位论文全文库, 31 July 2012 (2012-07-31) *

Also Published As

Publication number Publication date
CN115397033B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US10104700B2 (en) Message processing method, MME selection method, and apparatuses
US20200344204A1 (en) Session management method and apparatus
CN109428773B (en) Communication method and device
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
US20120106429A1 (en) Method for interconnecting mobile communication terminals in ad-hoc network
US11903062B2 (en) Method for operating application requiring communication with external device, and electronic device therefor
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
JP2023051930A (en) Terminal application activation method, apparatus and system
WO2014146229A1 (en) Communication method and apparatus for nfc device, and nfc device
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
US10635606B2 (en) Method and apparatus for maintaining continuity of on-going session over wired or wireless interface
US20200162419A1 (en) Address assignment method and related device
CN112422485B (en) Communication method and device of transmission control protocol
CN115397033B (en) Wireless communication method, wireless communication device, wireless communication module, medium, and program product
CN112787828B (en) Application flow statistical method and device and mobile electronic device
CN112367362B (en) Data processing method, device, equipment and computer storage medium
EP3015990A1 (en) Information processing device, and destination information updating method and program
EP3758384B1 (en) Method for controlling video sharing through rich communication suite service and electronic device therefor
CN109120731B (en) Universal communication method, system and device
CN113259928A (en) OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product
CN113297123A (en) USB connection method and device, electronic equipment and storage medium
WO2019011328A1 (en) Wireless access method and device
CN109275134B (en) System and method for providing wireless fidelity (WIFI) signal

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