CN114759944A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN114759944A
CN114759944A CN202011603488.9A CN202011603488A CN114759944A CN 114759944 A CN114759944 A CN 114759944A CN 202011603488 A CN202011603488 A CN 202011603488A CN 114759944 A CN114759944 A CN 114759944A
Authority
CN
China
Prior art keywords
communication module
wired interface
wired
interface
data processing
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
CN202011603488.9A
Other languages
Chinese (zh)
Other versions
CN114759944B (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 CN202011603488.9A priority Critical patent/CN114759944B/en
Publication of CN114759944A publication Critical patent/CN114759944A/en
Application granted granted Critical
Publication of CN114759944B publication Critical patent/CN114759944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a communication method and equipment, wherein the method comprises the following steps: in the starting process of the communication module, determining a first wired interface from at least two wired interfaces according to the wired interface information; powering on the first wired interface; the first wired interface is associated to a data processing channel of the communication module, and the data processing channel is used for processing data received or to be sent by at least two wired interfaces; after the communication module is started, the communication module is communicated with the electronic equipment through the first wired interface, and data received or to be sent by the first wired interface is processed through the data processing channel. The communication module can process the data received or to be sent by at least two wired interfaces through one data processing channel, and realize the processing logic of the data processing channel through one software version, thereby reducing the development and maintenance cost. In addition, the problem that the software version selected by the user does not correspond to the wired interface is solved, and communication failure is avoided.

Description

Communication method and device
Technical Field
The present invention relates to communications technologies, and in particular, to a communication method and device.
Background
Electronic devices are devices with simple computing and processing capabilities, and electronic devices also typically have wireless communication capabilities. However, some electronic devices are not equipped with wireless communication functionality. These electronic devices (hereinafter referred to as first devices) having no wireless communication function can be provided with a communication module having a wireless communication function, so that the first devices can communicate with the remaining electronic devices (hereinafter referred to as second devices) through the communication module.
In the prior art, a communication module is usually provided with a wired interface, which is connected to a first device. In addition, the communication module is provided with a software version corresponding to the wired interface, and data received or to be sent on the wired interface is processed through the software version corresponding to the software version. Thus, the communication between the first device and the second device can be realized through the communication module. For example, the communication module receives data of the first device through the wired interface to transmit the data to the second device, or the communication module receives data of the second device to transmit the data to the first device through the wired interface.
However, the existing communication module has the problems of high development and maintenance cost and communication failure.
Disclosure of Invention
The invention provides a communication method and equipment, which are used for reducing development and maintenance cost and avoiding communication failure.
In a first aspect, the present invention provides a communication method applied to a communication module having a wireless communication function, where the communication module is configured to provide the wireless communication function for a first device without the wireless communication function, and the communication module has at least two wired interfaces, and the method includes:
in the starting process of the communication module, determining a first wired interface from the at least two wired interfaces according to pre-recorded wired interface information;
powering on the first wired interface;
associating the first wired interface to a data processing channel of the communication module, wherein the data processing channel is used for processing data received or to be sent by the at least two wired interfaces;
after the communication module is started, the communication module communicates with the first device through the first wired interface, and processes data received or to be sent by the first wired interface through the data processing channel.
In a second aspect, the present invention provides a first device, the first device having no wireless communication function, the first device providing a wireless communication function through a communication module, the method comprising:
receiving a start completion notification sent by the communication module, where the start completion notification is used to notify the first device that the communication module communicates with the first device using the first wired interface;
and responding to the starting completion notice, and communicating with the communication module according to the first wired interface of the communication module.
In a third aspect, the present invention provides a communication module having a wireless communication function, the communication module being configured to provide the wireless communication function for a first device without the wireless communication function, the communication module having at least two wired interfaces, the communication module comprising:
the first wired interface determining module is used for determining a first wired interface from the at least two wired interfaces according to pre-recorded wired interface information in the starting process of the communication module;
the first wired interface power-on module is used for powering on the first wired interface;
a data processing channel association module, configured to associate the first wired interface with a data processing channel of the communication module, where the data processing channel is configured to process data received or to be sent by the at least two wired interfaces;
and the communication module is used for communicating with the first equipment through the first wired interface after the communication module is started, and processing the data received or to be sent by the first wired interface through the data processing channel.
In a fourth aspect, the present invention provides a first device, the first device having no wireless communication function, the first device providing a wireless communication function through a communication module, the first device comprising:
a start completion notification receiving module, configured to receive a start completion notification sent by the communication module, where the start completion notification is used to notify the first device that the communication module communicates with the first device using the first wired interface;
and the communication module is used for responding to the starting completion notice and communicating with the communication module according to the first wired interface of the communication module.
In a fifth aspect, the present invention provides a communication module, comprising: a memory and a processor;
wherein the memory is configured to store executable instructions of the processor;
the processor is configured to execute the executable instructions to cause the communication module to implement the method of the first aspect.
In a sixth aspect, the present invention provides a first apparatus comprising: a memory and a processor;
wherein the memory is configured to store executable instructions of the processor;
the processor is configured to, when executing the executable instructions, cause the first device to implement the method of the second aspect.
In a seventh aspect, the present invention provides a communication system, which includes the communication module in the third aspect or the fifth aspect, and the first device in the fourth aspect or the sixth aspect, where the wired interface in the first device is connected to the wired interface of the communication module correspondingly.
In an eighth aspect, the present invention provides a computer program for implementing the method of the first or second aspect.
In a ninth aspect, the present invention provides a computer readable storage medium having stored therein computer executable instructions, which when executed by a processor of a communication module, enable the communication module to implement the method of the first aspect, and which when executed by a processor of a first device, enable the first device to implement the method of the second aspect.
According to the communication method and the communication equipment, in the starting process of the communication module, the communication module determines a first wired interface from at least two wired interfaces according to the pre-recorded wired interface information, the communication module is used for providing a wireless communication function for first equipment without the wireless communication function, and the communication module is provided with at least two wired interfaces; the communication module powers on the first wired interface; the communication module associates the first wired interface to a data processing channel of the communication module, and the data processing channel is used for processing data received or to be sent by at least two wired interfaces; after the communication module is started, the communication module communicates with the first device through the first wired interface, and processes data received or to be sent by the first wired interface through the data processing channel. The communication module is provided with at least two wired interfaces, and data received or to be sent by the at least two wired interfaces are processed through one data processing channel, so that the processing logic of the data processing channel is realized only by one software version, and the development and maintenance cost is reduced. In addition, because only one software version is provided, the problem that the software version selected by a user does not correspond to the wired interface is avoided, the communication module can process data received or to be sent by different wired interfaces, and the communication module is beneficial to avoiding communication failure between the communication module and the first device and between the first device and the second device.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic structural diagram of a communication system according to an exemplary embodiment of the present invention;
fig. 2 is a schematic structural diagram of a software system of a communication module according to an exemplary embodiment of the present invention;
FIG. 3 is a flow chart illustrating steps of a communication method according to an exemplary embodiment of the present invention;
FIG. 4 is a flow chart illustrating steps of another communication method according to an exemplary embodiment of the present invention;
fig. 5 is a schematic diagram illustrating interaction between a communication module and a first device according to an exemplary embodiment of the present invention;
fig. 6 is a schematic structural diagram of a communication module according to an exemplary embodiment of the present invention;
fig. 7 is a schematic structural diagram of a first device according to an exemplary embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device exemplarily shown in the embodiment of the present invention.
Specific embodiments of the present disclosure have been shown by way of example in the drawings and will be described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The communication method provided by the present invention can be applied to the communication system shown in fig. 1, wherein the communication system shown in fig. 1 comprises a first device, a second device and a communication module. The communication module is provided with a wireless interface so as to have a wireless communication function, the first device is not provided with the wireless interface so as not to have the wireless communication function, and the second device is provided with the wireless interface so as to have the wireless communication function.
The communication module in fig. 1 is used to provide a wireless communication function for a first device, so that wireless communication can be performed between the first device and a second device. When the communication module is connected with the wired interface corresponding to the first equipment, wired communication is realized between the communication module and the first equipment through the wired interface. The communication module has a wireless communication function, so that the communication module can realize wireless communication between the first device and the second device, namely, the communication module can receive data sent by the first device through the wired interface and send the data sent by the first device to the second device through the wireless interface, and the communication module can also receive data sent by the second device through the wireless interface and send the data sent by the second device to the first device through the wired interface.
The first device may be any electronic device without a wireless communication function, the first device has a wired interface corresponding to the communication module, and the second device may be any electronic device with a wireless communication function.
In the prior art, the communication module is usually provided with a wired interface, and the wired interface is connected with the first device. In addition, the communication module is provided with a software version corresponding to the wired interface, and data received or to be sent on the wired interface is processed through the software version corresponding to the software version.
However, the above solution requires development and maintenance of different software versions for different wired interfaces, which makes development and maintenance costly. In addition, when a user uses the communication module, the user needs to install a corresponding software version according to the wired interface of the communication module, and if the installed software version is not the software version corresponding to the wired interface, the communication module cannot process data received or to be sent by the wired interface, so that communication between the communication module and the first device fails, and communication between the first device and the second device fails.
In order to solve the technical problem, the communication module is provided with at least two wired interfaces, and data to be received or sent by the at least two wired interfaces are processed through one data processing channel, so that only one software version is needed to realize the processing logic of the data processing channel, and the development and maintenance cost is reduced. In addition, because only one software version is provided, the problem that the software version selected by a user does not correspond to the wired interface is avoided, the communication module can process data received or to be sent by different wired interfaces, and the communication module is beneficial to avoiding communication failure between the communication module and the first device and between the first device and the second device.
The following describes the technical solution of the present invention and how to solve the above technical problems with 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. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic structural diagram of a software system of a communication module according to an exemplary embodiment of the present invention, including: a data receiving layer, an interface normalization layer and a hardware layer.
The data receiving and sending layer is configured to receive data or send data through a wired interface, where the received data may be an Application Transfer (AT) command, a serial port command, and service data, and the sent data may be service data. In the embodiment of the present invention, the currently used wired interface is an interface pre-registered by the device registration channel, and is referred to as a first wired interface.
The hardware layer includes at least two wired interfaces. Two wired interfaces are shown as an example in fig. 2: a Universal Serial Bus (USB) interface and a Peripheral Component Interconnect (PCIE) interface.
The interface normalization layer includes: a data processing channel and a device registration channel. The data processing channel is used for processing received or to-be-sent data, the data processing channel is divided into a command data processing channel and a service data processing channel, the command data processing channel is used for processing a control command, for example, processing an AT command and a serial port command, and the serial port command may be a universal asynchronous receiver/transmitter (UART) command. The service data processing channel is configured to process service data, that is, forward the service data sent by the first device to the modem in a form of an Internet Protocol (IP) packet or a Media Access Control (MAC) packet, or receive the service data sent by the modem. The device registration channel is used to register the wired interface, and the registration process may specifically refer to S101 to S103 in fig. 3.
As can be seen from fig. 2, the embodiment of the present invention implements normalization processing of at least two wired interfaces through an interface normalization layer, which specifically includes: firstly, registering one first wired interface of two wired interfaces, namely associating the first wired interface to a command data processing channel and a network data processing channel; then, the AT command and the serial port command received by the first wired interface are processed through the command data processing channel respectively, and the service data received or to be sent by the first wired interface are processed through the network data processing channel.
Fig. 3 is a flowchart illustrating steps of a communication method according to an exemplary embodiment of the present invention, which includes steps S101 to S103:
s101: in the starting process of the communication module, the communication module determines a first wired interface from at least two wired interfaces according to the pre-recorded wired interface information.
It is understood that the wired interface information may be identification information of the first wired interface, and the wired interface information may be recorded in a storage device of the communication module, where data stored in the storage device is not lost after the communication module is restarted. The storage device can be a hard disk or a flash. Of course, considering the problem of reading speed, a flash with a higher reading speed may be preferentially selected as the storage device for storing the wired interface information.
S102: the communication module powers on the first wired interface.
It can be understood that the communication module powers on the first wired interface, but does not power on the remaining wired interfaces except the first wired interface in the at least two wired interfaces of the communication module, and if the communication module defaults to power on the remaining wired interfaces, the remaining wired interfaces may be powered off after the power on. Therefore, after the communication module is started, the first communication interface is used for communication, and the rest wired interfaces are not used for communication, so that the consumption of the rest wired interfaces on electric quantity can be avoided, and the power consumption speed of the communication module is reduced.
S103: the communication module associates the first wired interface with a data processing channel of the communication module, and the data processing channel is used for processing data received or to be sent by at least two wired interfaces.
When the data is a control instruction, the data processing channel may distribute the received control instruction to different execution modules for response. For example, when the control instruction is a dialing instruction, the data processing channel can implement a dialing function through the dialing module; when the control instruction is a read flash instruction, the data processing channel can read the wired interface information from the flash.
When the data is service data, the data processing channel may send the service data to the network device, so that the network device forwards the service data to the second device. When the service data is transmitted to the network device, the service data may be in the form of an IP packet or a MAC packet.
The data received by the data processing channel is data received or to be transmitted by one of the at least two wired interfaces (i.e. the first wired interface), and the first wired interface can be switched continuously among the at least two wired interfaces. For example, if the wired interfaces are the USB interface and the PCIE interface, after the first boot, the first wired interface may be the USB interface, after the second boot, the first wired interface may be the PCIE interface, and after the third boot, the first wired interface may be the USB interface, and the steps are repeated. It can be understood that, when the first wired interface is a USB interface, the data processing channel is used to process data received or to be sent by the USB interface; when the first wired interface is a PCIE interface, the data processing channel is configured to process data received or to be sent by the PCIE interface.
S104: after the communication module is started, the communication module communicates with the first device through the first wired interface, and processes data received or to be sent by the first wired interface through the data processing channel.
It will be appreciated that the purpose of the communication module with the first device is to: the communication module is controlled through the first equipment, and wireless communication between the first equipment and the second equipment is achieved through the communication module.
When the communication module sends data to the first equipment, the data processing channel processes the data to be sent and sends the data to the first equipment through the first wired interface; when the first device sends data to the communication module, the data processing channel receives the data through the first wired interface and processes the data.
Optionally, in an example of the embodiment of the present invention, the data processing channel includes a command data processing channel, and the S104 includes S1041 to S1042:
s1041: the communication module generates a start-up completion notification through the command data processing channel, the start-up completion notification for notifying the first device that the communication module is to communicate with the first device using the first wired interface.
The command data processing channel is a channel for processing the control command, and the start completion notification may carry the identifier of the first wired interface and the start completion information.
S1042: the communication module sends a start completion notification to the first device through the first wired interface.
After the first device receives the start-up completion notification, it may send data to the first wired interface to enable wired communication between the first device to the communication module.
Optionally, in an example of the embodiment of the present invention, after the step S1042, the step S1043 to the step S1044 are further included:
s1043: the communication module receives an interface switching instruction sent by the first device, wherein the interface switching instruction carries target wired interface information.
The interface switching instruction is generated and sent by the first device after receiving an interface switching operation input by a user, the target wired interface information is specified by the interface switching operation, and the target wired interface information is an identifier of one wired interface in at least two wired interfaces in the communication module.
S1044: and the communication module responds to the interface switching instruction and updates the recorded wired interface information into target wired interface information through the command data processing channel.
The wired interface information can be stored in the flash of the communication module, so that the wired interface information recorded in the flash can be updated to be the target wired interface information, and the communication module can communicate with the first device by using the wired interface corresponding to the target wired interface information after being started next time.
Optionally, in an example of the embodiment of the present invention, the data processing channel includes a service data processing channel, and S1042 then further includes S1045 to S1046:
s1045: the communication module receives service data sent by the first device through the first wired interface.
The service data is data sent by the first device to the second device, and the service data is forwarded to the network device through the service data processing channel, so that the network device forwards the service data to the second device.
S1046: and the communication module sends the service data to the second equipment through the service data processing channel.
The service data processing channel sends the service data to a modem of the communication module, so that the modem sends the service data to the network equipment, and the network equipment sends the service data to the second equipment.
Optionally, in an example of the embodiment of the present invention, the method further includes S1047 to S1049:
s1047: the communication module receives first data sent by the second equipment.
S1048: the communication module sends the first data to the first wired interface through the service data processing channel.
S1049: the communication module sends the first data to the first device through the first wired interface.
The first device is service data sent by the second device to the first device. The modem of the communication module receives first data sent by the second device, the modem sends the first data to the service data processing channel, the service data processing channel sends the first data to the first wired interface, and the first wired interface sends the first data to the first device. Thus, communication between the second device and the first device is achieved.
Fig. 4 is a flowchart illustrating steps of another communication method according to an embodiment of the present invention, where the method includes steps S201 to S202:
s201: the first device receives a start completion notification sent by the communication module, wherein the start completion notification is used for notifying the first device that the communication module uses the first wired interface to communicate with the first device.
This step is a step executed by the first device side corresponding to S1042, and for a detailed description, reference may be made to S1041, which is not described herein again.
S202: in response to the start completion notification, the first device communicates with the communication module according to the first wired interface of the communication module.
Specifically, the first device may send data to the first wired interface through the second wired interface connected to the first wired interface, so as to implement communication between the first device and the communication module. The first device may continuously monitor whether the wired interface in the first device receives the start-up completion notification, and if one of the wired interfaces receives the start-up completion notification, determine that the wired interface is a wired interface connected to the first wired interface, that is, a second wired interface, so that the first device may send data to the communication module through the second wired interface.
Optionally, in an example of the embodiment of the present invention, the first device has at least two wired interfaces, and the communicating with the communication module according to the first wired interface of the communication module in S202 includes S2021 to S2022:
s2021: the first device determines a second wired interface of the at least two wired interfaces corresponding to the first wired interface.
Wherein the second wired interface may be an interface connected with the first wired interface.
S2022: and the first equipment sends data to the first wired interface of the communication module through the second wired interface.
Specifically, the first device may receive data sent by the communication module through the second wired interface, and may also send data to the communication module through the second wired interface.
Optionally, in an example of the embodiment of the present invention, the above S2022 includes S20221 to S20222:
s20221: the first device receives an interface switching operation input by a user, wherein the interface switching operation is used for switching pre-recorded wired interface information into target wired interface information.
The interface switching operation may be an operation of a user inputting target wired interface information in an operation interface provided by the first device, or may be a switching operation between a plurality of pieces of wired interface information.
S20222: and the first equipment responds to the interface switching operation and sends an interface switching instruction carrying target wired interface information to the first wired interface of the communication module through the second wired interface.
This step is a step executed by the first device side corresponding to S1043, and details of S1043 may be referred to, and are not described herein again.
Fig. 5 is a schematic diagram illustrating an interaction process between a communication module and a first device according to an exemplary embodiment of the present invention, including S301 to S306:
s301: after the communication module finishes starting, a starting completion notice is sent to the first equipment through the first wired interface, and the starting completion notice is used for informing the first equipment that the communication module uses the first wired interface to communicate with the first equipment.
S302: the first device determines a second wired interface of the at least two wired interfaces corresponding to the first wired interface.
S303: and the first equipment sends data to the first wired interface of the communication module through the second wired interface.
S304: the first device receives an interface switching operation input by a user, wherein the interface switching operation is used for switching the pre-recorded wired interface information into target wired interface information.
S305: and the first equipment responds to the interface switching operation and sends an interface switching instruction carrying the target wired interface information to the first wired interface of the communication module through the second wired interface.
S306: and the communication module responds to the interface switching instruction and updates the recorded wired interface information into target wired interface information through the command data processing channel.
Fig. 6 is a block diagram illustrating an exemplary configuration of a communication module 400 according to an embodiment of the present invention, where the communication module 400 is used to provide a wireless communication function for a first device without a wireless communication function, and the communication module 400 has at least two wired interfaces, and the communication module 400 includes:
the first wired interface determining module 401 is configured to determine, during a start-up process of the communication module, a first wired interface from the at least two wired interfaces according to pre-recorded wired interface information.
A first wired interface power-up module 402, configured to power up the first wired interface.
A data processing channel associating module 403, configured to associate the first wired interface to a data processing channel of the communication module, where the data processing channel is configured to process data received or to be sent by at least two wired interfaces.
The communication module 404 is configured to communicate with the first device through the first wired interface after the communication module is started, and process data received or to be sent by the first wired interface through the data processing channel.
Optionally, in an example of the embodiment of the present invention, the data processing channel includes a command data processing channel, and the communication module 404 is further configured to:
generating a start-up completion notification through the command data processing channel, the start-up completion notification for notifying the first device communication module to communicate with the first device using the first wired interface;
a start-up completion notification is sent to the first device over the first wired interface.
Optionally, in an example of the embodiment of the present invention, the communication module 404 is further configured to:
receiving an interface switching instruction sent by first equipment, wherein the interface switching instruction carries target wired interface information;
and responding to the interface switching instruction, and updating the recorded wired interface information into target wired interface information through a command data processing channel.
Optionally, in an example of the embodiment of the present invention, the data processing channel further includes a service data processing channel, and the communication module 404 is further configured to:
receiving service data sent by first equipment through a first wired interface;
and sending the service data to the second equipment through the service data processing channel.
Optionally, in an example of the embodiment of the present invention, the communication module 204 is further configured to:
receiving first data sent by second equipment;
sending the first data to a first wired interface through a service data processing channel;
the first data is transmitted to the first device through the first wired interface.
Optionally, in an example of the embodiment of the present invention, the at least two wired interfaces include a USB interface and a PCIE interface.
The embodiment of the communication module is an apparatus embodiment corresponding to the method embodiment in fig. 3, and has the same technical effects as the method embodiment, and the detailed description may refer to the detailed description of the method embodiment, which is not repeated herein.
Fig. 7 is a block diagram illustrating a configuration of a first device 500 according to an exemplary embodiment of the present invention, where the first device 500 does not have a wireless communication function, and the first device 500 provides the wireless communication function through a communication module, and the first device 500 includes:
a start-up completion notification receiving module 501, configured to receive a start-up completion notification sent by the communication module, where the start-up completion notification is used to notify the first device that the communication module uses the first wired interface to communicate with the first device.
The communication module 502 is configured to communicate with the communication module according to the first wired interface of the communication module in response to the start completion notification.
Optionally, in an example of the embodiment of the present invention, the first device 500 has at least two wired interfaces, and the communication module 502 is further configured to:
determining a second wired interface corresponding to the first wired interface in the at least two wired interfaces;
and sending data to the first wired interface of the communication module through the second wired interface.
Optionally, in an example of the embodiment of the present invention, the communication module 502 is further configured to:
receiving an interface switching operation input by a user, wherein the interface switching operation is used for switching pre-recorded wired interface information into target wired interface information;
and responding to the interface switching operation, and sending an interface switching instruction carrying target wired interface information to the first wired interface of the communication module through the second wired interface.
The embodiment of the first device is an embodiment of an apparatus corresponding to the embodiment of the method in fig. 4, and has the same technical effects as the embodiment of the method, and the detailed description may refer to the detailed description of the embodiment of the method, which is not described herein again.
Both the communication module and the first device may be referred to as an electronic device, and fig. 8 is a block diagram illustrating an exemplary configuration of an electronic device 600 according to an embodiment of the present invention. The electronic device 600 comprises a memory 602 and a processor 601;
the memory 602 is used for storing executable instructions of the processor 601;
when the electronic device 600 is a communication module, the processor 601 is configured to execute the executable instructions to enable the communication module to implement the communication method in fig. 3;
when the electronic device 600 is a first device, the processor 601 is configured to execute the executable instructions to enable the first device to implement the aforementioned communication method in fig. 4;
in addition, the electronic device may further include a receiver 603 and a transmitter 604, the receiver 603 being configured to receive information from the remaining apparatuses or devices and forward the information to the processor 601, and the transmitter 604 being configured to transmit the information to the remaining apparatuses or devices.
An embodiment of the present invention further provides a communication system, including: the communication module is connected with the first equipment, and the wired interface in the communication module is correspondingly connected with the wired interface of the first equipment.
The embodiment of the invention also provides a computer program, and the computer program is used for realizing the communication method.
An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions in the storage medium are executed by a processor of a communication module, the communication module is enabled to implement the aforementioned communication method in fig. 3, and when the computer-executable instructions in the storage medium are executed by a processor of a first device, the first device is enabled to implement the aforementioned communication method in fig. 4.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A communication method applied to a communication module having a wireless communication function, the communication module being used for providing the wireless communication function for a first device without the wireless communication function, the communication module having at least two wired interfaces, the method comprising:
in the starting process of the communication module, determining a first wired interface from the at least two wired interfaces according to pre-recorded wired interface information;
powering on the first wired interface;
associating the first wired interface to a data processing channel of the communication module, wherein the data processing channel is used for processing data received or to be sent by the at least two wired interfaces;
after the communication module is started, the communication module communicates with the first device through the first wired interface, and processes data received or to be sent by the first wired interface through the data processing channel.
2. The method of claim 1, wherein the data processing channel comprises a command data processing channel, wherein the communicating with the first device over the first wired interface and the processing of data received or to be transmitted over the first wired interface over the data processing channel comprises:
generating a start completion notification through the command data processing channel, the start completion notification being used to notify the first device that the communication module communicates with the first device using the first wired interface;
sending the boot completion notification to the first device over the first wired interface.
3. The method of claim 2, wherein after sending the boot completion notification to the first device over the first wired interface, further comprising:
receiving an interface switching instruction sent by the first device, wherein the interface switching instruction carries target wired interface information;
and responding to the interface switching instruction, and updating the recorded wired interface information into the target wired interface information through the command data processing channel.
4. The method of claim 2, wherein the data processing channel further comprises a service data processing channel, and wherein after sending the boot complete notification to the first device via the first wired interface, further comprising:
receiving service data sent by the first equipment through a first wired interface;
and sending the service data to the second equipment through the service data processing channel.
5. The method of claim 4, further comprising:
receiving first data sent by the second equipment;
sending the first data to the first wired interface through the service data processing channel;
transmitting the first data to the first device through the first wired interface.
6. The method of any one of claims 1 to 5, wherein the at least two wired interfaces comprise a USB interface and a PCIE interface.
7. A communication method applied to a first device, the first device having no wireless communication function, the first device providing a wireless communication function through a communication module, the method comprising:
receiving a start completion notification sent by the communication module, where the start completion notification is used to notify the first device that the communication module communicates with the first device using the first wired interface;
and responding to the starting completion notice, and communicating with the communication module according to the first wired interface of the communication module.
8. The method of claim 7, wherein the first device has at least two wired interfaces, and wherein communicating with the communication module according to the first wired interface of the communication module comprises:
determining a second wired interface corresponding to the first wired interface in the at least two wired interfaces;
and sending data to the first wired interface of the communication module through the second wired interface.
9. The method of claim 8, wherein sending data to the first wired interface of the communication module via the second wired interface comprises:
receiving an interface switching operation input by a user, wherein the interface switching operation is used for switching pre-recorded wired interface information into target wired interface information;
and responding to the interface switching operation, and sending an interface switching instruction carrying the target wired interface information to the first wired interface of the communication module through the second wired interface.
10. A communication module having wireless communication capabilities, the communication module being configured to provide wireless communication capabilities for a first device that does not have wireless communication capabilities, the communication module having at least two wired interfaces, the communication module comprising:
the first wired interface determining module is used for determining a first wired interface from the at least two wired interfaces according to pre-recorded wired interface information in the starting process of the communication module;
the first wired interface power-on module is used for powering on the first wired interface;
a data processing channel association module, configured to associate the first wired interface with a data processing channel of the communication module, where the data processing channel is configured to process data received or to be sent by the at least two wired interfaces;
and the communication module is used for communicating with the first equipment through the first wired interface after the communication module is started, and processing the data received or to be sent by the first wired interface through the data processing channel.
11. A first device, wherein the first device does not have a wireless communication function, and wherein the first device provides the wireless communication function through a communication module, the first device comprising:
a start completion notification receiving module, configured to receive a start completion notification sent by the communication module, where the start completion notification is used to notify the first device that the communication module communicates with the first device using the first wired interface;
and the communication module is used for responding to the starting completion notice and communicating with the communication module according to the first wired interface of the communication module.
12. A communication module, comprising: a memory and a processor;
wherein the memory is configured to store executable instructions of the processor;
the processor is configured to, when executing the executable instructions, cause the communication module to implement the method of any of claims 1 to 6.
13. A first device, characterized in that the first device comprises: a memory and a processor;
wherein the memory is configured to store executable instructions of the processor;
the processor is configured to, when executing the executable instructions, cause the first device to implement the method of any one of claims 7 to 9.
14. A communication system, comprising the communication module according to claim 10 or 12 and the first device according to claim 11 or 13, wherein the wired interface of the first device is connected to the wired interface of the communication module.
15. A computer program for implementing the method according to any one of claims 1 to 6 or 7 to 9.
16. A computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor of a communication module, enable the communication module to implement the method of any one of claims 1 to 6; the computer executable instructions in the storage medium, when executed by the processor of the first device, enable the first device to implement the method of any one of claims 7 to 9.
CN202011603488.9A 2020-12-29 2020-12-29 Communication method and device Active CN114759944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011603488.9A CN114759944B (en) 2020-12-29 2020-12-29 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011603488.9A CN114759944B (en) 2020-12-29 2020-12-29 Communication method and device

Publications (2)

Publication Number Publication Date
CN114759944A true CN114759944A (en) 2022-07-15
CN114759944B CN114759944B (en) 2023-04-25

Family

ID=82324525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011603488.9A Active CN114759944B (en) 2020-12-29 2020-12-29 Communication method and device

Country Status (1)

Country Link
CN (1) CN114759944B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120233365A1 (en) * 2011-03-09 2012-09-13 Baek Joon Hyun Input interface providing usb apparatus and interface providing method
US20130346665A1 (en) * 2012-06-20 2013-12-26 International Business Machines Corporation Versatile lane configuration using a pcie pie-8 interface
US20140215016A1 (en) * 2011-10-31 2014-07-31 Beijing Lenovo Software Ltd. Communication method, communication apparatus and electronic device
CN111641431A (en) * 2019-11-08 2020-09-08 广州视源电子科技股份有限公司 Data transmission method and data transmission equipment
CN111782568A (en) * 2020-06-23 2020-10-16 维沃移动通信有限公司 Data transmission assembly and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120233365A1 (en) * 2011-03-09 2012-09-13 Baek Joon Hyun Input interface providing usb apparatus and interface providing method
US20140215016A1 (en) * 2011-10-31 2014-07-31 Beijing Lenovo Software Ltd. Communication method, communication apparatus and electronic device
US20130346665A1 (en) * 2012-06-20 2013-12-26 International Business Machines Corporation Versatile lane configuration using a pcie pie-8 interface
CN111641431A (en) * 2019-11-08 2020-09-08 广州视源电子科技股份有限公司 Data transmission method and data transmission equipment
CN111782568A (en) * 2020-06-23 2020-10-16 维沃移动通信有限公司 Data transmission assembly and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴乙雨 等: "基于有线网络的多屏互动融合新业态方案设计", 《广播与电视技术》 *

Also Published As

Publication number Publication date
CN114759944B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US7818022B2 (en) Communication apparatus and electric power control method
US20100241772A1 (en) Thin client server system and method of managing a driver of a usb device
CN101622600A (en) Boot negotiation between a plurality of equipment with guidance capability
WO2009097776A1 (en) System, device and method for achieving service upgrade
WO2011116583A1 (en) Method and apparatus for implementing management of multi-protocol communication components
JP2005182624A (en) Information processor, information processing system, communication speed setting method, communication speed setting program, and recording medium having the program recorded thereon
WO2012113196A1 (en) Method and apparatus for realizing upgrade of master single-board and slave single-board
KR20190065101A (en) An electronic device for transmitting and receiving data in a wireless communication system and a method thereof
CN108874700B (en) Electronic device
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
JP2021519465A (en) Access methods, Internet of Things platforms, applied equipment and service equipment
US20120005500A1 (en) Peripheral-device utilizing system, server device, and method
CN101388792B (en) Single board plug-and-use processing method, device and telecommunication system
CN107786350B (en) Method and device for restoring factory configuration of network equipment and network equipment
CN102314360A (en) Image processing system and image formation system
CN112153628B (en) Activation management, instruction processing and restarting management method and device for code number resources
CN114759944B (en) Communication method and device
CN101267351B (en) Realization method, system and device for online software upgrade based on application architecture
US20120294188A1 (en) Wireless Data Card, Method and System for Communicating between Wireless Data Card and Computer Side
US9210568B1 (en) Hardware-capability update method for a portable device with multiple SIM cards
CN111818463A (en) Method and device for transmitting mirror image file, storage medium and electronic equipment
EP3694151A1 (en) Terminal network sharing method, apparatus, air conditioning adjustment device, and storage medium
CN112312394B (en) Wireless fidelity Wi-Fi management method, device and related equipment
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN105867954B (en) system data updating method, electronic equipment and system

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