The present application is a national phase entry under 35 U.S.C. § 371 of International Application No. PCT/CN2016/095542, filed Aug. 16, 2016, entitled “METHOD AND APPARATUS FOR ESTABLISHING COMMUNICATION CONNECTION BETWEEN MOBILE DEVICE AND FIXED DEVICE,” and claims the priority to Chinese patent application No. 201510601708.7, entitled “METHOD AND APPARATUS FOR ESTABLISHING COMMUNICATION CONNECTION BETWEEN MOBILE DEVICE AND FIXED DEVICE” filed with the State Intellectual Property Office of People's Republic of China on Sep. 18, 2015, which are incorporated herein by reference in their entireties.
The present application relates to the field of communication technology, and more particularly to a method and apparatus for establishing a communication connection between a mobile device and a fixed device.
With rapid development of science and technology, mobile devices (such as smart phones) are gradually changing people's life. A user usually needs to operate a mobile device by a fixed device, such as a computer, for example to install applications (trash cleanup application, chat application, etc.) in a smart phone by the computer. Before the user operates the mobile device by the fixed device, it is necessary to establish a communication connection between the mobile device and the fixed device.
A method for connecting a mobile device to a fixed device in the prior art comprises: connecting the mobile device and the fixed device physically via a USB (Universal Serial Bus) cable; and installing corresponding drivers on the fixed device to establish a communication connection between the mobile device and the fixed device.
In the method described above, whenever a communication connection between a mobile device and a fixed device is to be established, a USB cable is required for a physical connection. Also, due to the limited length of the USB cable, areas where the mobile devices can be used are limited.
The objective of embodiments of the present application is to provide a method and apparatus for establishing a communication connection between a mobile device and a fixed device in order to solve the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art. The technical solution is described as follows.
In the first aspect, an embodiment of the present application provides a method for establishing a communication connection between a mobile device and a fixed device, which is applied to a mobile device. The method comprises:
receiving, via a wireless network, a broadcast message containing first connection information related to a fixed device sent by the fixed device;
determining whether the first connection information in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a Universal Serial Bus (USB) connection when the mobile device is connected to the fixed device via the USB connection;
if so, returning a second connection information of the mobile device to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information; and
receiving the connection request to establish a communication connection between the mobile device and the fixed device.
Optionally, receiving, via a wireless network, a broadcast message containing first connection information related to the fixed device sent by the fixed device, comprises:
receiving, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device using User Datagram Protocol (UDP); and
returning a second connection information of the mobile device to the matching fixed device via the wireless network, comprises:
returning the second connection information of the mobile device to the matching fixed device via the wireless network with the UDP.
Optionally, when the second connection information of the mobile device is returned to the matching fixed device via the wireless network, the method further comprises:
starting a port listening thread to listen on a preset port based on HyperText Transport Protocol (HTTP); and
receiving the connection request to establish the communication connection between the mobile device and the fixed device, comprises:
listening with the port listening thread to obtain an HTTP connection request for the preset port of the mobile device; and
establishing the communication connection between the mobile device and the fixed device, and feeding a status code corresponding to a connection success status back to the fixed device after the communication connection is established successfully.
Optionally, after establishing the communication connection between the mobile device and the fixed device, the method further comprises:
receiving an HTTP inquiry request periodically sent by the fixed device; and
feeding a response message corresponding to the HTTP inquiry request back to the fixed device.
Optionally, the method for establishing a communication connection between a mobile device and a fixed device provided by the embodiment of the present application, further comprises:
outputting first prompt information when no HTTP inquiry request sent by the fixed device is received for a predetermined period of time, the first prompt information being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
In the second aspect, an embodiment of the present application provides a method for establishing a communication connection between a mobile device and a fixed device, which is applied to a fixed device. The method comprises:
sending, via a wireless network, a broadcast message containing first connection information related to the fixed device when it is required to establish a communication connection between a mobile device and the fixed device, such that the mobile device receives, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, and when determining that the first connection information matches connection information of a fixed device that has been bound to the mobile device, returns a second connection information of the mobile device to the matching fixed device via the wireless network, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a Universal Serial Bus (USB) connection when the mobile device is connected to the fixed device via the USB connection;
receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device;
creating a connection request for the mobile device based on the second connection information; and
sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device.
Optionally, sending, via a wireless network, a broadcast message containing first connection information related to a fixed device, comprises:
sending, via the wireless network, the broadcast message containing the first connection information related to the fixed device using User Datagram Protocol (UDP); and
receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device, comprises:
receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device using UDP.
Optionally, creating a connection request for the mobile device based on the second connection information, comprises:
creating an HTTP connection request for a preset port of the mobile device based on the second connection information; and
sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, comprises:
sending the HTTP connection request for the preset port of the mobile device to the mobile device, such that the mobile device listens with a started port listening thread to obtain the HTTP connection request for the preset port of the mobile device, establishes the communication connection between the mobile device and the fixed device, and feeds a status code corresponding to a connection success status back to the fixed device after successfully establishing the communication connection; and
receiving the status code corresponding to the connection success status fed back by the mobile device to achieve the communication connection between the mobile device and the fixed device.
Optionally, after sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, the method further comprises:
sending an HTTP inquiry request periodically to the mobile device; and
re-performing the step of sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times.
Optionally, after sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, the method further comprises:
sending an HTTP inquiry request periodically to the mobile device; and
outputting a second prompt message, if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times, the second prompt message being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
In the third aspect, an embodiment of the present application provides an apparatus for establishing a communication connection between a mobile device and a fixed device, which is applied to a mobile device. The apparatus comprises:
a broadcast message receiving module, used to receive, via a wireless network, a broadcast message containing first connection information related to a fixed device sent by the fixed device;
a determination module, used to determine whether the first connection information in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, and if so, trigger a second connection information feedback module, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a Universal Serial Bus (USB) connection when the mobile device is connected to the fixed device via the USB connection;
the second connection information feedback module, used to return a second connection information of the mobile device to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information; and
a communication connection establishment module, used to receive the connection request to establish a communication connection between the mobile device and the fixed device.
Optionally, the broadcast message receiving module is specifically used to:
receive, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device using User Datagram Protocol (UDP); and
the second connection information feedback module is specifically used to return the second connection information of the mobile device to the matching fixed device via the wireless network using UDP.
Optionally, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment of the present application, further comprises:
a thread starting module, used to start a port listening thread to listen on a preset port based on Hyper Text Transport Protocol (HTTP) when the second connection information of the mobile device is returned to the matching fixed device via the wireless network; and
the communication connection establishment module is specifically used to:
listen with the port listening thread to obtain an HTTP connection request for the preset port of the mobile device; and establish the communication connection between the mobile device and the fixed device, and feed a status code corresponding to a connection success status back to the fixed device after successfully establishing the communication connection.
Optionally, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment of the present application, further comprises:
an inquiry request receiving module, used to receive an HTTP inquiry request periodically sent by the fixed device after the communication connection between the mobile device and the fixed device is established; and
a response message feedback module, used to feed a response message corresponding to the HTTP inquiry request back to the fixed device.
Optionally, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment of the present application, further comprises:
a first prompt information output module, used to output first prompt information when no HTTP inquiry request sent by the fixed device is received for a predetermined period of time, the first prompt information being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
In the fourth aspect, an embodiment of the present application provides an apparatus for establishing a communication connection between a mobile device and a fixed device, which is applied to a fixed device. The apparatus comprises:
a broadcast message sending module, used to send, via a wireless network, a broadcast message containing first connection information related to the fixed device when it is required to establish a communication connection between a mobile device and the fixed device, such that the mobile device receives, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, and when determining that the first connection information matches connection information of a fixed device that has been bound to the mobile device, returns a second connection information of the mobile device to the matching fixed device via the wireless network, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a Universal Serial Bus (USB) connection when the mobile device is connected to the fixed device via the USB connection;
a second connection information receiving module, used to receive, via the wireless network, the second connection information related to the mobile device returned by the mobile device;
a connection request creating module, used to create a connection request for the mobile device based on the second connection information; and
a connection request sending module, used to send the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device.
Optionally, the broadcast message sending module is specifically used to:
send the broadcast message containing the first connection information related to the fixed device via the wireless network using User Datagram Protocol (UDP); and
the second connection information receiving module is specifically used to receive, via the wireless network, the second connection information related to the mobile device returned by the mobile device using UDP.
Optionally, the connection request creating module is specifically used to:
create an HTTP connection request for a preset port of the mobile device based on the second connection information; and
the connection request sending module is specifically used to: send the HTTP connection request for the preset port of the mobile device to the mobile device, such that the mobile device listens with a started port listening thread to obtain the HTTP connection request for the preset port of the mobile device, establishes the communication connection between the mobile device and the fixed device, and returns a status code corresponding to a connection success status to the fixed device after successfully establishing the communication connection; and receive the status code corresponding to the connection success status fed back by the mobile device to achieve the communication connection between the mobile device and the fixed device.
Optionally, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment of the present application, further comprises:
an inquiry request sending module, used to send an HTTP inquiry request periodically to the mobile device, after the connection request is sent to the mobile device to establish the communication connection between the mobile device and the fixed device; and
a communication connection reestablishment module, used to resend the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times.
Optionally, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment of the present application, further comprises:
an inquiry request sending module, used to send an HTTP inquiry request periodically to the mobile device, after the connection request is sent to the mobile device to establish the communication connection between the mobile device and the fixed device; and
a second prompt message output module, used to output a second prompt message if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times, the second prompt message being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
In the fifth aspect, an embodiment of the present application provides an mobile device comprising a housing, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power circuit is used to supply power to various circuits or elements of the mobile device; the memory is used to store an executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory to perform the method for establishing a communication connection between a mobile device and a fixed device applied to a mobile device.
In the sixth aspect, an embodiment of the present application provides a fixed device comprising a housing, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power circuit is used to supply power to various circuits or elements of the fixed device; the memory is used to store an executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory to perform the method for establishing a communication connection between a mobile device and a fixed device applied to a fixed device.
In the seventh aspect, an embodiment of the present application provides an application program for performing a method for establishing a communication connection between a mobile device and a fixed device applied to a mobile device when being executed.
In the eighth aspect, an embodiment of the present application provides an application program for performing a method for establishing a communication connection between a mobile device and a fixed device applied to a fixed device when being executed.
In the ninth aspect, an embodiment of the present application provides a storage medium for storing an application program, which is used to perform a method for establishing a communication connection between a mobile device and a fixed device applied to a fixed device.
In the tenth aspect, an embodiment of the present application provides a storage medium for storing an application program, which is used to perform a method for establishing a communication connection between a mobile device and a fixed device applied to a mobile device.
Compared with the prior art, the solutions provided by the embodiments only need to establish a communication connection via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solutions provided by the embodiments solve the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In order to explain the technical solutions of embodiments of the present application or of the prior art, a simple introduction of the drawings required in the description of the embodiments and of prior art will be given. Obviously, the drawings described below are just some embodiments of the present application and other drawings may be obtained by one of ordinary skill in the art without any creative efforts based on these drawings.
The technical solutions of the present application will be described clearly and completely in connection with the drawings of embodiments of the present application. Obviously, the embodiments described are only parts of the embodiments of the present application, instead of all the embodiments. All other embodiments obtained by one of ordinary skill in the art based on the embodiments herein without any creative efforts are within the scope of the present application.
In order to solve the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations, embodiments of the present application provide a method and apparatus for establishing a communication connection between a mobile device and a fixed device.
First, a method for establishing a communication connection between a mobile device and a fixed device provided by an embodiment of the present application will be described.
In the first aspect, an embodiment of the present application provides a method for establishing a communication connection between a mobile device and a fixed device, from perspective of mobile device.
It should be noted that, in practice, the mobile device may include a handheld device, such as smart phone, tablet computer and the like, and the fixed device may include a device such as desktop computer, laptop computer and the like.
Moreover, a functional software for implementing the method for establishing a communication connection between a mobile device and a fixed device provided in the embodiment may be a dedicated client software installed in a mobile device, or may also be a plug-in of an assistant client software or of a management client software installed in a mobile device. These are reasonable.
As shown in
In S101, a broadcast message containing first connection information related to a fixed device sent by the fixed device is received via a wireless network.
The fixed device may send a broadcast message containing first connection information related to the fixed device via a wireless network when it is required to establish a communication connection between the mobile device and the fixed device. Accordingly, the mobile device may receive, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device.
The way to trigger the establishing of a communication connection between a mobile device and a fixed device may include a manual triggering by a user or a non-manual triggering by a user. For example, as to the manual triggering by a user, the user may perform a predetermined operation on an interaction interface presented by the fixed device to trigger the establishing of a communication connection between a mobile device and a fixed device. The predetermined operation may include but is not limited to an operation of clicking a button, a predetermined gesture operation or the like. As to the non-manual triggering by a user, the user may start a functional software, which implements the method for establishing a communication connection between a mobile device and a fixed device, in the fixed device to automatically trigger the establishing of a communication connection between a mobile device and a fixed device. These are reasonable.
It should be noted that, prerequisites for the implementation of the solution provided by the embodiment are that: (1) the mobile device and the fixed device are in the same wireless network, that is, share the same wireless network; (2) the mobile device has successfully established a communication connection with the fixed device via a USB cable once, and after the mobile device establishes the communication connection with the fixed device via the USB cable, the fixed device sends its own connection information to the mobile device, and the mobile device binds and stores the connection information after receiving the connection information sent by the fixed device. The connection information may include but is not limited to MAC address, IP address, name of the fixed device, etc., wherein the IP address is Internet Protocol address, the MAC (Media Access Control) address is the physical address. The mobile device may store the received connection information of the fixed device into a configuration file, and the present application is not limited thereto.
It will be understood that for the above prerequisites, the fixed device may automatically send its own connection information to the mobile device after the mobile device establishes the communication connection with the fixed device via the USB cable. Of course, the fixed device may pop up an inquiry message about whether the mobile device is to be bound, and when the user issues a binding instruction by responding to the inquiry message, the fixed device sends its own connection information to the mobile device. The inquiry message about whether the mobile device is to be bound may refer to
In S102, it is determined whether the first connection information contained in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device; if the first connection information matches the connection information of the fixed device that has been bound to the mobile device, S103 is performed; otherwise, no operation is performed.
After receiving the broadcast message containing the first connection information related to the fixed device sent by the fixed device, the mobile device may determine whether the first connection information contained in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, and perform different operations according to different determination results. Specifically, when it is determined that the first connection information contained in the received broadcast message matches the connection information of the fixed device that has been bound to the mobile device, step S103 may be performed to proceed with the establishment process of communication connection. When it is determined that the first connection information contained in the received broadcast message does not match the connection information of the fixed device that has been bound to the mobile device, no operation is performed.
It is to be noted that the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a Universal Serial Bus (USB) connection when the mobile device is connected to the fixed device via the USB connection, and the mobile device may receive connection information sent by multiple fixed devices and bind and store the connection information.
In S103, a second connection information of the mobile device is returned to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information;
when it is determined that the first connection information contained in the received broadcast message matches the connection information of the fixed device that has been bound to the mobile device, the mobile device may return a second connection information thereof to the matching fixed device via the wireless network, so as to cause the fixed device to actively request a communication connection with the mobile device. Thus, the fixed device may, after receiving the second connection information, create a connection request for the mobile device based on the second connection information and send the connection request to the mobile device.
The second connection information of the mobile device may include but is not limited to MAC address, IP address, name of the mobile device and the like.
In S104, the connection request is received to establish a communication connection between the mobile device and the fixed device.
After the connection request sent by the fixed device is received, the communication connection between the mobile device and the fixed device may be established.
It should be noted that, after the connection request is received, a method in the prior art may be used to implement the specific process of establishing the communication connection between the mobile device and the fixed device.
Compared with the prior art, the solution provided by the embodiment only needs to establish a communication connection via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections may be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
Specifically, receiving, via a wireless network, a broadcast message containing first connection information related to a fixed device sent by the fixed device may comprise:
receiving, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device using User Datagram Protocol (UDP).
Accordingly, sending a second connection information of the mobile device to the matching fixed device via the wireless network, may comprise:
sending the second connection information of the mobile device to the matching fixed device via the wireless network using UDP.
The communication protocol used by the fixed device to send a broadcast message is not limited to UDP, and other existing communication protocols may be used. These are reasonable. Moreover, a method in the prior art may be used to implement the receipt of, via a wireless network, a broadcast message containing first connection information related to a fixed device sent by the fixed device using UDP and the returning of a second connection information of the mobile device to the matching fixed device via the wireless network using UDP.
Specifically, in practice, HyperText Transport Protocol (HTTP) may be used to complete the establishment of communication connection. Thus, when the second connection information of the mobile device is returned to the matching fixed device via the wireless network, the solution provided by the embodiment may further comprise:
starting a port listening thread to listen on a preset port based on Hyper Text Transport Protocol (HTTP).
Accordingly, receiving the connection request to establish the communication connection between the mobile device and the fixed device, may comprise:
listening with the port listening thread to obtain an HTTP connection request for the preset port of the mobile device; and
establishing the communication connection between the mobile device and the fixed device, and returning a status code corresponding to a connection success status to the fixed device after the communication connection is established successfully.
It will be understood that the HTTP connection request may include, but not limited to, an HTTP POST request in the prior art. Specifically, in the HTTP POST request, the IP address, preset port, unique identifier string, and operation instruction string information of the mobile device are spliced into a URL link, which is a link with an additional encrypted operation instruction string information. For example, additional data of http://192.168.1.36:100/wifi/api is xlneofneivhdui3w98, which is encrypted and indicates a specified operation instruction. The specific encryption method may be an existing encryption method or a customized encryption method, which is not limited herein.
The preset port that is listened on based on HTTP may be a free port of a mobile device, which is not limited herein. In addition, the preset port may be a pre-agreed port for the mobile device and the fixed device. Furthermore, in practice, a status code corresponding to a connection success status may be but is not limited to 200.
It should be noted that after the connection information of the fixed device is obtained and the HTTP connection request sent by the fixed device is received, the communication connection between the mobile device and the fixed device may be established with contents provided by HTTP. Furthermore, the protocol used in the establishing of the communication connection may be not limited to HTTP, and may be also other protocols in the prior art.
Furthermore, in order to maintain the communication connection between the mobile device and the fixed device, a heartbeat mechanism may be used, wherein the fixed device periodically sends an HTTP inquiry request to the mobile device, and the mobile device feeds back a response message after receiving the HTTP inquiry request. Based on the heartbeat mechanism, after the communication connection between the mobile device and the fixed device is established, the method for establishing a communication connection between a mobile device and a fixed device provided by the embodiment may further comprise:
receiving an HTTP inquiry request periodically sent by the fixed device;
returning a response message corresponding to the HTTP inquiry request to the fixed device.
An HTTP inquiry request is different from an HTTP connection request. Specific contents of the inquiry request may be set according to actual situations, and the response message corresponds to the HTTP inquiry request.
Based on the heartbeat mechanism described above, the method for establishing a communication connection between a mobile device and a fixed device provided by the embodiment may further comprise:
outputting first prompt information when no HTTP inquiry request sent by the fixed device is received for a predetermined period of time, the first prompt information being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
The predetermined period of time may be set according to actual situations, which will not be described herein. When an HTTP inquiry request sent by the fixed device is not received for the predetermined period of time, it is indicated that the communication connection between the mobile device and the fixed device has been disconnected. In practice, it is reasonable to only wait for the communication connection request of the fixed device, rather than output the first prompt information.
In the second aspect, an embodiment of the present application provides a method for establishing a communication connection between a mobile device and a fixed device, from perspective of a fixed device.
It should be noted that, in practice, the mobile device may include a handheld device, such as smart phone, tablet computer and the like, and the fixed device may include a device such as desktop computer, laptop computer and the like.
Moreover, the functional software for implementing the method for establishing a communication connection between a mobile device and a fixed device provided in the embodiment may be a dedicated client software installed in the fixed device, or may also be a plug-in of an assistant client software or of a management client software installed in the fixed device. These are reasonable.
As shown in
In S201, a broadcast message containing first connection information of a fixed device is sent via a wireless network when it is required to establish the communication connection between the mobile device and the fixed device.
The fixed device may send a broadcast message containing first connection information related to the fixed device via a wireless network when it is required to establish a communication connection between the mobile device and the fixed device. Accordingly, the mobile device may receive, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device.
The way to trigger the establishing of a communication connection between a mobile device and a fixed device may include a manual triggering by a user or a non-manual triggering by a user. For example, as to the manual triggering by a user, the user may perform a predetermined operation on an interaction interface presented by the fixed device to trigger the establishing of a communication connection between a mobile device and a fixed device. The predetermined operation may include but is not limited to an operation of clicking a button, a predetermined gesture operation or the like. As to the non-manual triggering by a user, the user may start a functional software, which implements the method for establishing a communication connection between a mobile device and a fixed device, in the fixed device to automatically trigger the establishing of a communication connection between a mobile device and a fixed device. These are reasonable.
It should be noted that, prerequisites for the implementation of the solution provided by the embodiment are that: (1) the mobile device and the fixed device are in the same wireless network, that is, share the same wireless network; (2) the mobile device has successfully established a communication connection with the fixed device via a USB cable once, and after the mobile device establishes the communication connection with the fixed device via the USB cable, the fixed device sends its own connection information to the mobile device, and the mobile device binds and stores the connection information after receiving the connection information sent by the fixed device. The connection information may include but is not limited to MAC address, IP address, name of the fixed device and the like. The mobile device may store the received connection information of the fixed device into a configuration file, and the present application is not limited thereto.
It will be understood that for the above prerequisites, the fixed device may automatically send its own connection information to the mobile device after the mobile device establishes the communication connection with the fixed device via the USB cable. Of course, the fixed device may pop up an inquiry message about whether the mobile device is to be bound, and when the user issues a binding instruction by responding to the inquiry message, the fixed device sends its own connection information to the mobile device. The inquiry message about whether the mobile device is to be bound may refer to
It should be noted that after receiving, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, the mobile device may determine whether the connection information matches those of a fixed device that has been bound to the mobile device. When the connection information matches those of a fixed device that has been bound to the mobile device, the mobile device returns its own second connection information to the matching fixed device via the wireless network. In addition, the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection. Further, the mobile device may receive connection information sent by multiple fixed devices and bind and save the connection information. The second connection information of the mobile device may include but is not limited to the MAC address, IP address, name of the mobile device and the like.
In S202, the second connection information related to the mobile device returned by the mobile device is received via the wireless network.
Since the mobile device returns its own second connection information to the fixed device via the wireless network when determining that the first connection information matches the connection information of the fixed device bound thereto, the fixed device may receive, via the wireless network, the second connection information related to the mobile device returned by the mobile device, and thereafter perform the subsequent processing based on the second connection information.
In S203, a connection request for the mobile device is created based on the second connection information.
In S204, the connection request is sent to the mobile device to establish the communication connection between the mobile device and the fixed device.
After the second connection information related to the mobile device is received, the connection request for the mobile device may be created based on the second connection information, and the connection request is sent to the mobile device to establish the communication connection between the mobile device and the fixed device.
Compared with the prior art, the solution provided by the embodiment only needs to establish a communication connection via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections may be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
Specifically, sending, via a wireless network, a broadcast message containing first connection information related to the fixed device may comprise:
sending, via the wireless network, the broadcast message containing the first connection information related to the fixed device using UDP.
Accordingly, receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device, may comprise:
receiving the second connection information related to the mobile device returned by the mobile device, via the wireless network using UDP.
The communication protocol used by the fixed device to send a broadcast message is not limited to UDP, and other communication protocols in the prior art may be used. These are reasonable. Moreover, a method in the prior art may be used to implement the step of sending, via the wireless network, a broadcast message containing first connection information related to the fixed device and the step of receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device.
Specifically, HTTP may be used to complete the establishment of communication connection. Therefore, in the solution provided by the embodiment of the present application, creating a connection request for the mobile device based on the second connection information, may comprise:
creating an HTTP connection request for a preset port of the mobile device based on the second connection information.
Accordingly, sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, may comprise:
sending the HTTP connection request for the preset port of the mobile device to the mobile device, such that the mobile device listens with a started port listening thread to obtain the HTTP connection request for the preset port of the mobile device, establishes a communication connection between the mobile device and the fixed device, and returns a status code corresponding to a connection success status to the fixed device after successfully establishing the communication connection; and
receiving the status code corresponding to the connection success status returned by the mobile device to achieve the communication connection between the mobile device and the fixed device.
It will be understood that the HTTP connection request may include, but not limited to, an HTTP POST request in the prior art. Specifically, in the HTTP POST request, the IP address, preset port, unique identifier string, and operation instruction string information of the mobile device are spliced into a URL link, which is a link with an additional encrypted operation instruction string information. For example, additional data of http://192.168.1.36:100/wifi/api is xlneofneivhdui3w98, which is encrypted and indicates a specified operation instruction. The specific encryption method may be an existing encryption method or a customized encryption method, which is not limited herein.
The preset port may be a free port of a mobile device, which is not limited herein. In addition, the preset port may be a pre-agreed port for the mobile device and the fixed device. Furthermore, in practice, a status code corresponding to a connection success status may be but is not limited to 200.
It should be noted that after obtaining the connection information of the fixed device and receiving the HTTP connection request sent by the fixed device, the mobile device may establishes the communication connection between the mobile device and the fixed device with HTTP. Furthermore, the protocol used in the establishing of the communication connection may be not limited to HTTP, and may be also other protocols in the prior art.
Furthermore, in order to maintain the communication connection between the mobile device and the fixed device, a heartbeat mechanism can be used, wherein the fixed device periodically sends an HTTP inquiry request to the mobile device, and the mobile device feeds back a response message after receiving the HTTP inquiry request. Based on the heartbeat mechanism, in a first implementation, after sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, the method for establishing a communication connection between a mobile device and a fixed device provided by the embodiment may further comprise:
sending an HTTP inquiry request periodically to the mobile device; and
re-performing the step of sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device, if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times.
When no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times, which indicates that the communication connection between the mobile device and the fixed device has been disconnected, a connection request may be sent by the fixed device to the mobile device to establish the communication connection between the mobile device and the fixed device. It will be understood that the predetermined number of times may be set according to actual situations, which will not be described herein.
In a second implementation, after sending the connection request to the mobile device to establish a communication connection between the mobile device and the fixed device, the method for establishing a communication connection between a mobile device and a fixed device provided by the embodiment may further comprise:
sending an HTTP inquiry request periodically to the mobile device; and
outputting a second prompt message if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times, the second prompt message being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
When no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times, which indicates that the communication connection between the mobile device and the fixed device has been disconnected, a second prompt message is output, wherein the second prompt message is used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
In practice, the first implementation and the second implementation can be combined. For example, if a response message corresponding to the HTTP inquiry request fed back by the mobile device is not received after a predetermined number of times, the step of sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device is re-performed. Further, if the communication connection is still not be successfully established after the reestablishing of the communication connection is performed the predetermined number of times, the second prompt message is output, which is used to prompt that the communication connection between the mobile device and the fixed device has been disconnected. Thus, the user may check the reason of the communication disconnection, and thereby may ensure a successful establishment of the communication connection between the mobile device and the fixed device.
The method for establishing a communication connection between a mobile device and a fixed device provided by embodiments of the present application will be described below in connection with a specific application example. The mobile device is a smart phone with a first mobile phone assistant installed thereon, and the fixed device is a PC provided with a second mobile phone assistant installed thereon. The first mobile phone assistant is a mobile phone side client of a mobile phone assistant A, and the second mobile phone assistant is a PC side client of the mobile phone assistant A.
(1) Binding Process of a New Mobile Phone:
When establishing a communication connection between the PC and the smart phone for the first time, the user may physically connect the smart phone to the PC via a USB cable, and the second mobile phone assistant in the PC and the first mobile phone assistant in the smart phone complete the USB connection between the PC and the smart phone. After the connection is successfully established, the second mobile phone assistant pops up an inquiry message for inquiring whether the user wants to bind them, as shown in
(2) Establishment Process of Communication Connection after Binding
when the second mobile phone assistant in the PC is started again by a user, the second mobile phone assistant sends a broadcast message containing the first connection information related to the PC via a wireless network using UDP, wherein the first connection information includes host name: AAA, IP address: 1.1.1.1, MAC address: X1-X2-X3-X4-X5-X6.
When the first mobile phone assistant in the smart phone in the wireless network is started by the user, the first mobile phone assistant receives the broadcast message sent by the second mobile phone assistant containing the first connection information related to the PC, reads the configuration file autoconnect.xml thereof, starts a port listening thread to listen on the preset port 2000 based on HTTP when determining that the connection information of a PC that has bound to the smart phone matches the first connection information, and returns a second connection information of the smart phone via the wireless network using UDP, wherein the second connection information includes host name: BBB, IP address: 1.1.1.2, MAC address: X7-X8-X9-X0-X1-X2.
the second mobile phone assistant receives the second connection information related to the smart phone returned by the first mobile phone assistant, via the wireless network using UDP, and creates an HTTP POST request based on the second connection information and sends it to the smart phone, which indicates that the PC is ready to start a connection, wherein the HTTP POST request is in the form of a URL, and the URL may be http://1.1.1.2:2000/wifi/api with data xxxx which is an encrypted data.
After receiving the HTTP POST request, the first mobile phone assistant establishes the communication connection between the smart phone and the PC, and returns a status code 200 corresponding to a connection success status to the PC. The second mobile phone assistant receives the status code 200 and completes the establishment of the communication connection between the smart phone and the PC, and then the second mobile phone assistant outputs a prompt information for prompting the user that the communication connection between the smart phone and the PC has been established, such that the user can perform other operations.
(3) Maintenance of Communication Connection Status Based on Heartbeat Mechanism
The second mobile phone assistant accesses the URL http://1.1.1.2:2000/wifi/api with specific encrypted data every 1 second in the form of an HTTP request. The first mobile phone assistant returns the status code 200 corresponding to the connection success status after receiving the access from the second mobile phone assistant of the PC. The second mobile phone assistant receives the status code and determines the connection is in normal status, and then the user can normally perform operations, such as operations of cleaning of the smart phone memory, installing of mobile phone apps and the like.
When the operations are finished, the user closes the second mobile phone assistant. If the first mobile phone assistant does not receive an HTTP request from the second mobile phone assistant for 3 seconds, it is indicated that the communication between the smart phone and the PC has been disconnected.
Thus, the problems that a USB cable is required for each communication connection the smart phone and the PC, and that mobile devices are subject to area limitations in the prior art can be solved by the application embodiment.
In the third aspect, from the perspective of mobile device, an embodiment of the present application provides an apparatus for establishing a communication connection between a mobile device and a fixed device, which is applied to a mobile device. As shown in
a broadcast message receiving module 310, used to receive, via a wireless network, a broadcast message containing first connection information related to a fixed device sent by the fixed device;
a determination module 320, used to determine whether the first connection information in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, and if so, trigger a second connection information feedback module 330, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
the second connection information feedback module 330, used to return a second connection information of the mobile device to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information;
a communication connection establishment module 340, used to receive the connection request to establish the communication connection between the mobile device and the fixed device.
Compared with the prior art, the solution provided by the embodiment only needs to establish a communication connection via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
Specifically, the broadcast message receiving module 310 is specifically used to:
receive, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device using UDP.
The second connection information feedback module 330 is specifically used to return the second connection information of the mobile device to the matching fixed device via the wireless network using UDP.
Furthermore, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment, further comprises:
a thread starting module, used to start a port listening thread to listen on a preset port based on HTTP when the second connection information of the mobile device is returned to the matching fixed device via the wireless network.
The communication connection establishment module 340 is specifically used to:
listen with the port listening thread to obtain an HTTP connection request for the preset port of the mobile device; and establish the communication connection between the mobile device and the fixed device, and feed a status code corresponding to a connection success status back to the fixed device after successfully establishing the communication connection.
Furthermore, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment, further comprises:
an inquiry request receiving module, used to receive an HTTP inquiry request periodically sent by the fixed device after the communication connection between the mobile device and the fixed device is established; and
a response message feedback module, used to feed a response message corresponding to the HTTP inquiry request back to the fixed device.
Furthermore, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment, further comprises:
a first prompt information output module, used to output first prompt information when no HTTP inquiry request sent by the fixed device is received for a predetermined period of time, the first prompt information being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
By using the embodiment above, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the fourth aspect, from the perspective of fixed device, an embodiment of the present application provides an apparatus for establishing a communication connection between a mobile device and a fixed device, which is applied to a fixed device. As shown in
a broadcast message sending module 410, used to send, via a wireless network, a broadcast message containing first connection information related to the fixed device when it is required to establish a communication connection between the mobile device and the fixed device, such that the mobile device receives, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, and when determining that the first connection information matches connection information of a fixed device that has been bound to the mobile device, returns a second connection information of the mobile device to the matching fixed device via the wireless network, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
a second connection information receiving module 420, used to receive, via the wireless network, the second connection information related to the mobile device returned by the mobile device;
a connection request creating module 430, used to create a connection request for the mobile device based on the second connection information; and
a connection request sending module 440, used to send the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device.
Compared with the prior art, the solution provided by the embodiment only needs to establish a communication connection via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
Specifically, the broadcast message sending module 410 is specifically used to:
send the broadcast message containing the first connection information related to the fixed device via the wireless network using UDP.
The second connection information receiving module 420 is specifically used to receive, via the wireless network, the second connection information related to the mobile device returned by the mobile device using UDP.
The connection request creating module 430 is specifically used to:
create an HTTP connection request for a preset port of the mobile device based on the second connection information.
The connection request sending module 440 is specifically used to send the HTTP connection request for the preset port of the mobile device to the mobile device, such that the mobile device listens with a started port listening thread to obtain the HTTP connection request for the preset port of the mobile device, establishes the communication connection between the mobile device and the fixed device, and returns a status code corresponding to a connection success status to the fixed device after successfully establishing the communication connection; and receive the status code corresponding to the connection success status fed back by the mobile device to achieve the communication connection between the mobile device and the fixed device.
Furthermore, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment, further comprises:
an inquiry request sending module, used to send an HTTP inquiry request periodically to the mobile device, after the connection request is sent to the mobile device to establish the communication connection between the mobile device and the fixed device; and
a communication connection reestablishment module, used to resend the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times.
Furthermore, the apparatus for establishing a communication connection between a mobile device and a fixed device provided by the embodiment, further comprises:
an inquiry request sending module, used to send an HTTP inquiry request periodically to the mobile device, after the connection request is sent to the mobile device to establish the communication connection between the mobile device and the fixed device; and
a second prompt message output module, used to output a second prompt message if no response message corresponding to the HTTP inquiry request fed back by the mobile device is received after a predetermined number of times, the second prompt message being used to prompt that the communication connection between the mobile device and the fixed device has been disconnected.
By applying the embodiment above, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the fifth aspect, an embodiment of the present application further provides a mobile device. As shown in
receiving, via a wireless network, a broadcast message containing first connection information related to a fixed device sent by the fixed device;
determining whether the first connection information in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
if so, returning a second connection information of the mobile device to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information; and
receiving the connection request to establish the communication connection between the mobile device and the fixed device.
The specific execution of the above steps by the processor 602 and the steps further executed by the processor 602 by executing the executable program code may refer to the description for the embodiments shown in
As seen above, in the embodiment of the present application, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the sixth aspect, an embodiment of the present application further provides a fixed device. As shown in
sending, via a wireless network, a broadcast message containing first connection information related to the fixed device when it is required to establish the communication connection between a mobile device and the fixed device, such that the mobile device receives, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, and when determining that the first connection information matches connection information of a fixed device that has been bound to the mobile device, returns a second connection information of the mobile device to the matching fixed device via the wireless network, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device;
creating a connection request for the mobile device based on the second connection information; and
sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device.
The specific execution of the above steps by the processor 702 and the steps further executed by the processor 702 by executing the executable code may refer to the description for the embodiments shown in
As seen above, in the embodiment of the present application, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the seventh aspect, an embodiment of the present application further provides an application program for performing a method for establishing a communication connection between a mobile device and a fixed device applied to a mobile device when being executed. The method for establishing a communication connection between a mobile device and a fixed device comprises:
receiving, via a wireless network, a broadcast message containing first connection information related to the fixed device sent by the fixed device;
determining whether the first connection information in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
if so, returning a second connection information of the mobile device to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information; and
receiving the connection request to establish the communication connection between the mobile device and the fixed device.
As seen above, in the embodiment of the present application, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the eighth aspect, an embodiment of the present application provides an application program for performing a method for establishing a communication connection between a mobile device and a fixed device applied to a fixed device when being executed. The method for establishing a communication connection between a mobile device and a fixed device comprises:
sending, via a wireless network, a broadcast message containing first connection information related to the fixed device when it is required to establish the communication connection between the mobile device and the fixed device, such that the mobile device receives, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, and when determining that the first connection information matches connection information of a fixed device that has been bound to the mobile device, returns a second connection information of the mobile device to the matching fixed device via the wireless network, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device;
creating a connection request for the mobile device based on the second connection information; and
sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device.
As seen above, in the embodiment of the present application, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the ninth aspect, an embodiment of the present application provides a storage medium for storing an application program, wherein the application program is used to perform a method for establishing a communication connection between a mobile device and a fixed device applied to a mobile device.
The method for establishing a communication connection between a mobile device and a fixed device comprises:
receiving, via a wireless network, a broadcast message containing first connection information related to the fixed device sent by the fixed device;
determining whether the first connection information in the received broadcast message matches connection information of a fixed device that has been bound to the mobile device, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
if so, returning a second connection information of the mobile device to the matching fixed device via the wireless network, such that the fixed device sends a connection request to the mobile device according to the second connection information; and
receiving the connection request to establish the communication connection between the mobile device and the fixed device.
As seen above, in the embodiment of the present application, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
In the tenth aspect, an embodiment of the present application provides a storage medium for storing an application program, wherein the application program is used to perform a method for establishing a communication connection between a mobile device and a fixed device applied to a fixed device. The method for establishing a communication connection between a mobile device and a fixed device comprises:
sending, via a wireless network, a broadcast message containing first connection information related to the fixed device when it is required to establish the communication connection between the mobile device and the fixed device, such that the mobile device receives, via the wireless network, the broadcast message containing the first connection information related to the fixed device sent by the fixed device, and when determining that the first connection information matches connection information of a fixed device that has been bound to the mobile device, returns a second connection information of the mobile device to the matching fixed device via the wireless network, wherein the connection information of the fixed device that has been bound to the mobile device is received from the fixed device by the mobile device via a USB connection when the mobile device is connected to the fixed device via the USB connection;
receiving, via the wireless network, the second connection information related to the mobile device returned by the mobile device;
creating a connection request for the mobile device based on the second connection information; and
sending the connection request to the mobile device to establish the communication connection between the mobile device and the fixed device.
As seen above, in the embodiment of the present application, a communication connection only needs to be established via a USB cable between the mobile device and the fixed device once, and the subsequent communication connections can be completed without the USB cable. Thus, the solution provided by the embodiment solves the problems that a USB cable is required for each communication connection and that mobile devices are subject to area limitations in the prior art.
For embodiments of an apparatus, a mobile device, a fixed device, an application program and a storage medium, since they are similar to the embodiments of the method, the description thereof is relatively simple; the relating parts may refer to the parts of the description of embodiments of the method.
It should be noted that, the relationship terms herein such as “first”, “second” etc. are only used for distinguishing one entity or operation from another entity or operation, but do not necessarily require or imply that there is actual relationship or order between these entities or operations. Moreover, the terms “include”, “comprise” or any other variants thereof are intended to cover a non-exclusive inclusion, such that processes, methods, articles, or devices comprising a series of elements comprise not only those elements listed but also those not listed or the elements intrinsic to these processes, methods, articles, or equipment. Without further limitations, elements defined by the sentences “comprise(s) a . . . ” or “include(s) a . . . ” do not exclude that there are other identical elements in the processes, methods, articles, or devices which comprise these elements.
It will be understood by those of ordinary skill in the art that all or some of the steps in the method described above may be accomplished by a program to instruct the associated hardware. Said program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disks, optical disks, etc.
Embodiments described above are just preferred embodiments of the present application, and not intended to limit the scope of the present invention. Any modifications, equivalent, improvement or the like within the spirit and principle of the present invention should be included in the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2015 1 0601708 | Sep 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2016/095542 | 8/16/2016 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2017/045505 | 3/23/2017 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6272518 | Blazo | Aug 2001 | B1 |
6393477 | Paxhia | May 2002 | B1 |
6621834 | Scherpbier | Sep 2003 | B1 |
6701361 | Meier | Mar 2004 | B1 |
7669232 | Jou | Feb 2010 | B2 |
8391195 | Singh | Mar 2013 | B1 |
8479263 | Liu | Jul 2013 | B1 |
9210125 | Nichols | Dec 2015 | B1 |
9503969 | Zakaria | Nov 2016 | B1 |
9743450 | Pallen | Aug 2017 | B2 |
9924243 | Lupien | Mar 2018 | B2 |
20030056002 | Trethewey | Mar 2003 | A1 |
20030137970 | Odman | Jul 2003 | A1 |
20030156558 | Cromer | Aug 2003 | A1 |
20040151132 | Terashima | Aug 2004 | A1 |
20040181692 | Wild | Sep 2004 | A1 |
20050130647 | Matsuda | Jun 2005 | A1 |
20050170889 | Lum | Aug 2005 | A1 |
20050221770 | Shipshock | Oct 2005 | A1 |
20060023651 | Tsuchiuchi | Feb 2006 | A1 |
20060251104 | Koga | Nov 2006 | A1 |
20080003946 | Lee | Jan 2008 | A1 |
20080056722 | Hendrix | Mar 2008 | A1 |
20080109885 | Sim | May 2008 | A1 |
20080189781 | Pathak | Aug 2008 | A1 |
20080299966 | Masuda | Dec 2008 | A1 |
20090029691 | Shen | Jan 2009 | A1 |
20090111378 | Sheynman | Apr 2009 | A1 |
20090119280 | Waters | May 2009 | A1 |
20090119427 | Takahashi | May 2009 | A1 |
20090153342 | Thorn | Jun 2009 | A1 |
20100167651 | Sakuda | Jul 2010 | A1 |
20110228699 | Shin | Sep 2011 | A1 |
20110292835 | Zhu | Dec 2011 | A1 |
20120230315 | Chang | Sep 2012 | A1 |
20120287914 | Smith | Nov 2012 | A1 |
20120289159 | Palin | Nov 2012 | A1 |
20130039356 | Shibuya | Feb 2013 | A1 |
20130044635 | Suzuki | Feb 2013 | A1 |
20130094538 | Wang | Apr 2013 | A1 |
20130159535 | Zhang | Jun 2013 | A1 |
20130170363 | Millington | Jul 2013 | A1 |
20130176956 | Yamamoto | Jul 2013 | A1 |
20130260683 | Suzuki | Oct 2013 | A1 |
20130265997 | Gu | Oct 2013 | A1 |
20130332632 | Rathi | Dec 2013 | A1 |
20140062657 | Adachi | Mar 2014 | A1 |
20140092776 | Shibata | Apr 2014 | A1 |
20140181276 | Silverman et al. | Jun 2014 | A1 |
20140328285 | Sun | Nov 2014 | A1 |
20150016417 | Dees | Jan 2015 | A1 |
20150071271 | Smedman | Mar 2015 | A1 |
20150072653 | Fan | Mar 2015 | A1 |
20150139044 | Maski | May 2015 | A1 |
20150208364 | Fukuhara | Jul 2015 | A1 |
20150222375 | Yamada | Aug 2015 | A1 |
20150237511 | Jackson | Aug 2015 | A1 |
20150264723 | Cheng | Sep 2015 | A1 |
20150373657 | Kim | Dec 2015 | A1 |
20150382194 | Kang | Dec 2015 | A1 |
20160128109 | Widner | May 2016 | A1 |
20160142911 | Kreiner | May 2016 | A1 |
20160156762 | Bailey | Jun 2016 | A1 |
20160184635 | Kwon | Jun 2016 | A1 |
20160309481 | Verma | Oct 2016 | A1 |
20170026778 | Yamada | Jan 2017 | A1 |
20170223615 | Lee | Aug 2017 | A1 |
20180191403 | Pierson | Jul 2018 | A1 |
Number | Date | Country |
---|---|---|
103023989 | Apr 2013 | CN |
103023989 | Apr 2013 | CN |
103687059 | Mar 2014 | CN |
1038888907 | Jun 2014 | CN |
104580376 | Apr 2015 | CN |
2017045505 | Mar 2017 | WO |
Entry |
---|
International Search Report for PCT/CN2016/095542 dated Nov. 4, 2016; 4 pages including English translation. |
Number | Date | Country | |
---|---|---|---|
20180270872 A1 | Sep 2018 | US |