CN115397033B - Wireless communication method, wireless communication device, wireless communication module, medium, and program product - Google Patents

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

Info

Publication number
CN115397033B
CN115397033B CN202110571548.1A CN202110571548A CN115397033B CN 115397033 B CN115397033 B CN 115397033B CN 202110571548 A CN202110571548 A CN 202110571548A CN 115397033 B CN115397033 B CN 115397033B
Authority
CN
China
Prior art keywords
wireless communication
communication connection
communication module
connection
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110571548.1A
Other languages
Chinese (zh)
Other versions
CN115397033A (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

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

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 currently has the established first wireless communication connection, establishing a second wireless communication connection with the second equipment by using an address used when the first wireless communication connection is established; 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 first wireless communication connection is used to wirelessly communicate with a first device and the second wireless communication connection is used to wirelessly communicate with a second device. The transmission efficiency of the wireless communication module is improved.

Description

Wireless communication method, wireless communication device, wireless communication module, medium, and program product
Technical Field
The present disclosure relates to communication technologies, and in particular, to a wireless communication method, device, wireless communication module, medium, and program product.
Background
The wireless communication module can use the obtained internet protocol (Internet Protocol, IP) address to establish communication connection between the upper computer and the server, so that data transmission can be carried out between the upper computer and the server through the communication connection. The wireless communication module is also provided with a firmware over-the-air upgrade (Firmware Over The Air, FOTA) module. The FOTA module can be used for realizing firmware upgrade of the wireless communication module so as to perfect the functions 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 upgrading server, so as to obtain the FOTA upgrading packet.
At present, under the condition that the wireless communication module has established communication connection between the wireless communication module and the server corresponding to the upper computer, if the wireless communication module still needs to acquire the FOTA upgrade package, the wireless communication module needs to disconnect the communication connection between the servers corresponding to the upper computer. Then, a new IP address is acquired, and a communication connection with the FOTA upgrading server is established by using the new IP address.
However, the above wireless communication method makes the transmission efficiency of the wireless communication module lower and the network resources occupy more.
Disclosure of Invention
The application provides a wireless communication method, a wireless communication device, a wireless communication module, a medium and a program product, so as to improve 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, where 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 a first device;
if the established first wireless communication connection exists, establishing a second wireless communication connection with the second equipment by using an address used when the first wireless communication connection is established; 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 wireless communication with the first device using the first wireless communication connection and the 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 for transmitting 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 the second wireless communication connection is established with the second device using the address used in establishing the first wireless communication connection, the method further includes:
wireless connection parameters used in establishing the second wireless communication connection with the second device are stored.
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 for transmitting communication data between 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 the second device, the second device is a firmware over-the-air FOTA upgrading server.
In a second aspect, the present application provides a wireless communication device, the device is applied to a wireless communication module, the wireless communication module is connected with an upper computer, the upper computer performs wireless communication through the wireless communication module, the device includes:
a determining module, configured to determine whether an established first wireless communication connection exists in the wireless communication module currently; the first wireless communication connection is a communication connection between the wireless communication module and a first device;
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 when the first wireless communication connection is established; 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;
And the communication module is used for carrying out wireless communication with the first equipment by using the first wireless communication connection and carrying out wireless communication with the second equipment by using the second wireless communication connection.
In a third aspect, the present application provides a wireless communication module, comprising: at least one processor, memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes 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 which, when executed by a processor, implement the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the first aspects.
The wireless communication method, apparatus, wireless communication module, medium and program product provided by the present application establish a second wireless communication connection with a second device by using an address used when establishing the first wireless communication connection after determining that the wireless communication module has established the first wireless communication connection with the first device. The wireless communication module may then wirelessly communicate with the first device using the first wireless communication connection and with the second device using the second wireless communication connection. The first wireless communication connection and the second wireless communication connection can be established without using two addresses by the method, so that the data transmission between the upper computer and one device is ensured, and the wireless communication module can also perform data transmission with the other device. Furthermore, compared with the existing method for respectively establishing the first wireless communication connection and the second wireless communication connection through two addresses, the method for establishing the first wireless communication connection and the second wireless communication connection by using only one address reduces waste of network resources.
Drawings
For a clearer description of the technical solutions of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a wireless communication module;
fig. 2 is a schematic flow chart of a wireless communication method provided in the present application;
fig. 3 is a flow chart of another wireless communication method provided in the present application;
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 provided in the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a schematic diagram 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 use the acquired IP address to establish communication connection between the upper computer and the server corresponding to the upper computer, so that data transmission can be carried out between the upper computer and the server through the communication connection.
The upper computer may be any electronic device capable of controlling the wireless communication module to establish communication connection between the upper computer and other devices through an instruction. The upper computer may be, for example, a central processing unit (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 video camera, a desktop computer, a micro control unit (Microcontroller Unit, MCU).
For example, taking the upper computer as a desktop computer, the desktop computer can send the instruction information to the wireless communication module through the communication interface. The communication interface may be integrated in the upper computer or may be an entity device independent of the upper computer. The communication interface may be, for example, a universal serial bus (Universal Serial Bus, USB) interface. The wireless communication module may be, for example, a wireless network card. 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 tablet computer as an example, the upper computer and the wireless communication module shown in fig. 1 may be both integrated in the mobile phone or 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 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 video camera can be connected with the background server through communication established by the wireless communication module, and the video collected by the video camera is sent to the background server. The backend server may then output the video to a display device for viewing by the user.
It should be understood that the present application is not limited to the wireless communication manner that the wireless communication module can implement. 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 (Wide Area Network, WAN) interface, or the FOTA upgrade server may perform communication connection. Furthermore, it should be understood that fig. 1 is only an exemplary illustration of modules related to the present application in a wireless communication module, and the present application is not limited to whether the wireless communication module further includes other modules.
The wireless communication module is also provided with a FOTA module. The FOTA module can be used for realizing firmware upgrade of the wireless communication module so as to perfect the functions 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 upgrading server, so as to obtain the FOTA upgrading packet.
At present, the wireless communication method for acquiring the FOTA upgrade package by the wireless communication module mainly comprises the following two steps:
firstly, the wireless communication module needs to disconnect the communication connection between the servers corresponding to the upper computer. Then, a new IP address is acquired, and a communication connection with the FOTA upgrade server is established using the new IP address. Through the communication connection with the FOTA upgrading server, the wireless communication module can acquire the FOTA upgrading packet.
That is, the wireless communication module needs to use one IP address to establish a communication connection with the server corresponding to the upper computer, and use another IP address to establish a communication connection with 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 at the same time. That is, the wireless communication module can only maintain one wireless communication connection at a time. For example, taking the case that the wireless communication module maintains the communication connection with the FOTA server, the wireless communication module disconnects the communication connection between the servers corresponding to the upper computer, which results in that data transmission between the upper computer and the servers corresponding to the upper computer cannot be performed. Still take the above-mentioned host computer as the camera for example, if the wireless communication module breaks and establishes communication connection between the backstage servers corresponding to the camera, the video collected by the camera can not be transmitted to the backstage servers. Therefore, the method makes the transmission efficiency of the wireless communication module lower. In addition, in the method, the wireless communication module occupies two IP addresses, so that more network resources are occupied.
Second, the wireless communication module can use two different IP addresses to respectively establish communication connection between servers corresponding to the upper computer and communication connection between the servers and the FOTA upgrading server.
Although the method can realize data transmission between the upper computer and one device, the wireless communication module can also realize data transmission with the other device. In reality, however, 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 at the same time. In addition, in the method, the wireless communication module occupies two IP addresses, so that more network resources are occupied.
In view of the above problems of the existing wireless communication method, the present application proposes a method that can realize data transmission between an upper computer and one device without using two addresses, and at the same time, the wireless communication module can also perform data transmission with another device. Compared with the existing method, the wireless communication method provided by the application does not need to use two addresses, is suitable for most wireless communication modules, ensures that data transmission can be performed between an upper computer and one device, and meanwhile, the wireless communication module can also perform data transmission with the other device, so that the transmission efficiency of the wireless communication module is improved. Meanwhile, the method can also save network resources.
In particular, the main execution body of the method is a wireless communication module.
The technical scheme of the present application will be described in detail with reference to specific embodiments. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 2 is a flow chart of a wireless communication method provided in the present application. As shown in fig. 2, the method comprises the steps of:
s101, determining whether the wireless communication module currently has an established first wireless communication connection. If yes, step S102 is executed. If not, the wireless communication module may optionally execute step S104.
S102, establishing a second wireless communication connection with the second device by using an address used when the first wireless communication connection is established.
S103, performing wireless communication with the first device by using the first wireless communication connection and performing wireless communication with the second device by using the second wireless communication connection.
S104, acquiring an address used for establishing a second wireless communication connection with the second device.
S105, using the address, establishing a second wireless communication connection with the second device.
S106, using the second wireless communication connection, performing wireless communication with the second device.
The first wireless communication connection is a communication connection between the wireless communication module and the first device.
In one 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.
In this implementation manner, the first device may be a server corresponding to the upper computer, or other electronic devices 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 other cameras, etc. The second device may be an FOTA upgrade server, or an electronic device storing an "FOTA upgrade package" required for FOTA upgrade by the wireless communication module.
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 an "FOTA upgrade package" required for FOTA upgrade by the wireless communication module. The second device may be a server corresponding to the upper computer, or other electronic devices 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 other cameras, etc.
Optionally, after the first communication connection is established with the first device, the wireless communication module may generate an identification for indicating that the wireless communication has the first wireless communication connection established. The wireless communication module may determine whether the wireless communication module currently has an established first wireless communication connection by detecting whether the wireless communication module has the identification. If the wireless communication module is detected to have the identifier, the wireless communication module can be determined to have the established first wireless communication connection. If the wireless communication module is detected to not have the identifier, the wireless communication module can be determined to not have 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 to the wireless communication module indicating that the wireless communication has the established first wireless communication connection. Accordingly, the wireless communication module may determine whether the wireless communication module currently has an established first wireless communication connection according to whether the identification is received. If the wireless communication module receives the identification, it may be determined that the wireless communication module has an established first wireless communication connection. If the wireless communication module does not receive the identification, it may be determined that the wireless communication module does not have the established first wireless communication connection.
It should be understood that the present application is not limited to the form of the above-described identification for indicating that the wireless communication exists with the established first wireless communication connection. The identification may be, for example, a specific numerical value (e.g., number 1), or a specific combination of letters, or a specific file, etc.
The address used when the first wireless communication connection is established may be, for example, an IP address obtained by the wireless communication module from the core network device. Alternatively, the address may be, for example, an identifier that can represent unique identity information of the wireless communication module, such as a media access control layer (Media Access Control, MAC) address, or the like.
Optionally, the wireless communication module may establish the second wireless communication connection with the second device according to the "wireless connection parameters required for establishing the second wireless communication connection with the second device" and the address used when the first wireless communication connection is established. Optionally, the wireless connection parameters may be stored in the wireless communication module in advance by the user. Alternatively, the wireless communication module may also receive wireless connection parameters input by the user. The wireless connection parameters may include, for example, parameters such as an access point name (Access Point Name, APN), IP version type (e.g., IPv4 or IPv 6), and the like.
It should be understood that the present application is not limited to how the wireless communication module establishes the second wireless communication connection with the second device using the address used when establishing the first wireless communication connection. In particular, the wireless communication module may use the address to establish a second wireless communication connection with the second device, for example, by way of network driver interface specification (Network Driver Interface Specification, NDIS) dialing, network sharing (telephoting) dialing, or the like.
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 use the first wireless communication connection to send information of the upper computer to the server corresponding to the upper computer, and send information of the server corresponding to the upper computer. When the wireless communication between the upper computer and the server corresponding to the upper computer is realized, the wireless communication module can use the second wireless communication connection to send the identification information of the wireless communication module to the FOTA upgrading server, and then the FOTA upgrading packet for upgrading the wireless communication module is obtained from the FOTA upgrading server.
If it is determined that the wireless communication module currently does not have the established first wireless communication connection, the wireless communication module may acquire an address used to establish the second wireless communication connection with the second device. The address may be an IP address, for example. In this example, the wireless communication module may obtain, from the core network device, an IP address used to establish the second wireless communication connection with the second device.
The wireless communication module may then establish a second wireless communication connection with the second device using the address. And then using the established second wireless communication connection to perform wireless communication with the second device.
In this embodiment, after determining that the wireless communication module has established the first wireless communication connection with the first device, a second wireless communication connection with the second device is established by using an 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 with the second device using the second wireless communication connection. The first wireless communication connection and the second wireless communication connection can be established without using two addresses by the method, so that the data transmission between the upper computer and one device is ensured, and the wireless communication module can also perform data transmission with the other device. Furthermore, compared with the existing method for respectively establishing the first wireless communication connection and the second wireless communication connection through two addresses, the method for establishing the first wireless communication connection and the second wireless communication connection by using only one address reduces waste of network resources.
The following describes in detail how the wireless communication module uses the first wireless communication connection to wirelessly communicate with the first device and uses the second wireless communication connection to wirelessly communicate with the second device. 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, go to 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.
In the following, taking as an 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, it is exemplified how to determine whether the target data is received based on the first wireless communication connection or the second wireless communication connection.
For example, taking the first device as a server corresponding to the upper computer as an example, the server corresponding to the upper computer may send, after sending the target data to the wireless communication module, an identifier for indicating that the transmission of the target data is completed to the wireless communication module. Accordingly, the wireless communication module can determine whether to complete receiving the target data according to whether the identification is received.
Taking the second device as an 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 step 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 the 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 the receiving object of the target data is the wireless communication module.
If the object of receiving the target data is determined to be an upper computer, the wireless communication module sends the target data to the upper computer. Or if the receiving object of the target data is determined to be a wireless communication module, the wireless communication module can decode the target data. In the implementation manner, the FOTA upgrading module of the wireless communication module can decode the target data and write the target data into the target partition, so that the wireless communication module is upgraded. The target partition may be, for example, a flash partition of a wireless communication module.
As a possible implementation manner, taking the above second wireless communication connection 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 for requesting to establish a wireless communication connection with the second device. The wireless communication connection instruction may be, for example, an Attention (AT) instruction.
In this implementation manner, by taking the upper computer as an example of a CPU of the mobile phone, the wireless communication module in the mobile phone may receive an AT instruction sent by the CPU. After receiving the AT command, the wireless communication module determines whether an established first wireless communication connection currently exists.
In another possible implementation, the wireless communication module may need to be firmware upgraded after it has been used for a predetermined period of time. Therefore, the wireless communication module can determine whether the wireless communication module currently has the established first wireless communication connection after the preset time period is reached when the wireless communication module is used. And then, referring to the method described in the previous embodiments, the FOTA upgrade package of the wireless communication module is obtained.
As a possible implementation, the wireless communication module may further store 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. For example, the wireless communication module may store the wireless connection parameters in a non-volatile memory (NVRAM), so that the wireless connection parameters are not lost even if the wireless communication module is powered down, thereby improving the security of storing the wireless connection parameters.
In this embodiment, by storing the wireless connection parameter used when the second wireless communication connection is established with the second device, the wireless connection parameter can be directly invoked when the next wireless communication module establishes the second wireless communication connection with the second device, so that the user is prevented from setting the wireless communication parameter when the wireless communication module establishes the second wireless communication connection with the second device, the communication efficiency of the wireless communication module is improved, and the user experience is improved.
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, it is assumed 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 flow chart of another wireless communication method provided in 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 instruction is for requesting a wireless communication connection to be established with the FOTA upgrade server.
S202, determining whether the wireless communication module currently has an established first wireless communication connection.
If yes, go to step S203. If not, step S208 is performed.
S203, using the IP address used when the first wireless communication connection is established, establishing a second wireless communication connection with the FOTA upgrading server through an NDIS dialing mode.
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 upgrading server by using the second wireless communication connection so as to obtain the FOTA upgrading packet.
S205, determining whether target data is received based on the first wireless communication connection and target data is received based on the second wireless communication connection. If yes, go to step S206. If not, step 207 is performed.
S206, disconnecting the NDIS dialing.
S207, maintaining wireless communication connection with unfinished target data transmission; the wireless communication connection for which the target data transmission has been completed is deactivated.
If the wireless communication task between the wireless communication module and the server corresponding to the upper computer is completed, the first wireless communication connection is deactivated 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 packet, deactivating the second wireless communication connection 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, acquiring an IP address from the core network equipment, and establishing a second wireless communication connection with the second equipment by using the IP address.
S209, performing wireless communication with the FOTA upgrade server by using the second wireless communication connection so as to acquire the FOTA upgrade packet of the wireless communication module.
S210, after the FOTA upgrade pack is acquired, the second wireless communication connection is deactivated.
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 determining module 31, a building module 32, a communication module 33. Wherein,
a 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 a first device.
An establishing module 32 for establishing, when there is an established first wireless communication connection, a second wireless communication connection with a second device using an address used when the first wireless communication connection is established. 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 33 for wirelessly communicating with the first device using the first wireless communication connection and with the second device using the second wireless communication connection.
Optionally, the communication module 33 is specifically configured to determine, when receiving the target data based on the first wireless communication connection or the second wireless communication connection, 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 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 decode the target data.
Optionally, if the second wireless communication connection is used for transmitting 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 the established first wireless communication connection. Wherein the wireless communication connection instruction is used for requesting to establish wireless communication connection with the second device.
Optionally, the apparatus may further comprise a storage module 35 for storing 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 obtain an address used for establishing a second wireless communication connection with the second device when it is determined that the wireless communication module does not currently have the established first wireless communication connection; and establishing the second wireless communication connection with the second device using the address. In this implementation, the communication module 33 is configured to wirelessly communicate with the second device using the second wireless communication connection.
Optionally, when the first wireless communication connection is used for transmitting communication data between the wireless communication module and the first device, the first device upgrades the FOTA upgrade server for firmware over the air; or when the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second equipment, the second equipment upgrades the FOTA upgrading server for firmware in the air.
The wireless communication device provided in the present application is configured to execute the foregoing embodiment of the wireless communication method, and its implementation principle is similar to that of the technical effect, and will not be described again.
Fig. 5 is a schematic structural diagram of a wireless communication module provided in the present application. As shown in fig. 5, the wireless communication module 400 may include: at least one processor 401 and a memory 402.
A memory 402 for storing a program. In particular, the program may include program code including computer-operating instructions.
Memory 402 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 401 is configured to execute computer-executable instructions stored in the memory 402 to implement the wireless communication method described in the foregoing method embodiment. The processor 401 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement 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 by a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the communication interface 403, the memory 402, and the processor 401 are integrated on a chip, the communication interface 403, the memory 402, and the processor 401 may complete communication through internal interfaces.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc., in which program codes may be stored, and in particular, the computer-readable storage medium stores program instructions for the methods in the above 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 instructions from the readable storage medium, and execution of the execution instructions by the at least one processor causes the wireless communication module to implement the wireless communication methods provided in the various embodiments described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting 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 scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The wireless communication method is characterized in that the 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 a first device;
if the established first wireless communication connection exists, establishing a second wireless communication connection with the second equipment by using an address used when the first wireless communication connection is established; 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 the 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, the determining whether the wireless communication module currently has the established first wireless communication connection, further comprises:
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 the method further comprises, after establishing a second wireless communication connection with a second device using an address used when establishing the first wireless communication connection:
wireless connection parameters used in establishing the second wireless communication connection with the second device are stored.
5. The method according to claim 1 or 2, wherein after said determining whether the wireless communication module currently has an 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 of claim 1 or 2, wherein 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 FOTA upgrade server;
or if the second wireless communication connection is used for transmitting communication data between the wireless communication module and the second device, the second device is a firmware over-the-air FOTA upgrading server.
7. The utility model provides a wireless communication device, its characterized in that, the device is applied to wireless communication module, wireless communication module is connected with the host computer, the host computer passes through wireless communication module carries out radio communication, the device includes:
a determining module, configured to determine whether an established first wireless communication connection exists in the wireless communication module currently; the first wireless communication connection is a communication connection between the wireless communication module and a first device;
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 when the first wireless communication connection is established; 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;
And the communication module is used for carrying out wireless communication with the first equipment by using the first wireless communication connection and carrying out wireless communication with the second equipment by using the second wireless communication connection.
8. A wireless communication module, comprising: at least one processor, memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory to cause the wireless communication module to perform the method of any one of claims 1-6.
9. A computer readable storage medium having stored thereon computer executable instructions which, when executed by a processor, implement the method of any of claims 1-6.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of any of claims 1-6.
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 CN115397033A (en) 2022-11-25
CN115397033B true 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.2017,全文. *
ITU-R Ad Hoc.Proposed revision of PDNR ITU-R M.[IP CHAR].3GPP tsg_ran\TSG_RAN.2006,(TSGR_31),全文. *
基于Wi-Fi和3G的双模无线网卡的设计与实现;贺艳;优秀硕士学位论文全文库;20120731;全文 *
异构无线传感器网络多链路传输技术的设计和实现;崔捷;优秀硕士学位论文全文库;20101122;全文 *

Also Published As

Publication number Publication date
CN115397033A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US10104700B2 (en) Message processing method, MME selection method, and apparatuses
JP5313301B2 (en) Wireless internet access device, SD control chip, and data communication method
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
CN109428773B (en) Communication method and device
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
US20190391935A1 (en) SPI-Based Data Transmission Method and Device
EP3780900A1 (en) Terminal application activation method, apparatus and system
WO2014146229A1 (en) Communication method and apparatus for nfc device, and nfc device
WO2020258782A1 (en) Data transmission method applicable to bluetooth card reader, and electronic apparatus
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
US20200162419A1 (en) Address assignment method and related device
JP6374666B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
CN115397033B (en) Wireless communication method, wireless communication device, wireless communication module, medium, and program product
CN112422485B (en) Communication method and device of transmission control protocol
US10635606B2 (en) Method and apparatus for maintaining continuity of on-going session over wired or wireless interface
CN109639698B (en) Data processing method and server
CN116860391A (en) GPU computing power resource scheduling method, device, equipment and medium
EP3110088B1 (en) Packet data processing method, device and system
WO2016054898A1 (en) Data transmission method, terminal and computer storage medium
CN112787828B (en) Application flow statistical method and device and mobile electronic device
CN102891888B (en) A kind of data access method and relevant device, system
CN109245970B (en) Message forwarding method, device and system
CN113886296B (en) Data transmission method, device, equipment and storage medium
CN115202902B (en) Method for controlling process interaction and related device
CN112235784B (en) vSIM-based code number management method, device and 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