Communication method, device, equipment, readable storage medium and product

Information is transmitted in the signaling channel through USSD protocol messages, which solves the problem of low information transmission efficiency between PCs and electronic devices, achieves timely arrival and efficient transmission of information, and improves the connection success rate.

CN118632225APending Publication Date: 2024-09-10VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846022.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the information transmission efficiency between the PC and the electronic device is low, and the information cannot be transmitted in time, resulting in a low connection success rate.

Method used

By using USSD protocol messages and signaling channels to transmit information, it does not rely on the data service network and is transmitted directly through the operator's network to ensure timely arrival and efficient transmission of information.

Benefits of technology

It improves the efficiency of information transmission, improves the connection success rate and timeliness of information transmission between electronic devices, and solves the problem of untimely arrival of information caused by the data service network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632225A
    Figure CN118632225A
Patent Text Reader

Abstract

The invention discloses a communication method, device and equipment, a readable storage medium and a product, and belongs to the technical field of communication. The method comprises the steps that first electronic equipment receives a first USSD protocol message sent by network side equipment, and the first USSD protocol message carries first information and / or second information; wherein the first information is information which needs to be sent to the first electronic equipment by the second electronic equipment through an access network; the second information is information used for establishing near-field connection between the first electronic equipment and the second electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a communication method, device, equipment, readable storage medium and product. Background Art

[0002] The office suite is a cross-terminal collaborative office that is achieved on the premise of establishing a near-field connection between a personal computer (PC) and an electronic device. The user logs in to the same account on the PC-side office suite and the electronic device, and the electronic device and PC will report the current network status, account information, etc. to the server. The PC side obtains a list of devices under the same account from the server and displays it to the user. When the user starts the connection, the PC and the electronic device try to establish a Bluetooth connection.

[0003] When the Bluetooth connection is successful, the PC and the electronic device rely on the Bluetooth connection to transmit the relevant information of the near-field connection, thereby establishing a wifi-p2p connection; wifi-p2p is a technology based on the original wifi technology that allows devices to connect directly to each other, allowing users to communicate one-to-one or one-to-many without the help of a local area network or access point. wifi-p2p is also called wifi-direct, wifi-peer to peer.

[0004] However, in actual applications, there are situations where information cannot be transmitted between a PC and an electronic device or cannot be transmitted in a timely manner, resulting in low information transmission efficiency. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a communication method, apparatus, device, readable storage medium and product to improve the efficiency of information transmission.

[0006] In a first aspect, an embodiment of the present application provides a communication method, the method comprising:

[0007] The first electronic device receives a first USSD protocol message sent by a network side device, where the first USSD protocol message carries first information and / or second information;

[0008] The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

[0009] In a second aspect, an embodiment of the present application provides a communication method, the method comprising:

[0010] The network side device receives a second USSD protocol message sent by a second electronic device or a server, where the second USSD protocol message carries the first information and / or the second information;

[0011] The network side device sends a first USSD protocol message to the first electronic device, where the first USSD protocol message carries the first information and / or the second information;

[0012] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0013] In a third aspect, an embodiment of the present application provides a communication method, the method comprising:

[0014] The second electronic device or the server sends a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information;

[0015] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0016] In a fourth aspect, an embodiment of the present application provides a communication device, applied to a first electronic device, the device comprising:

[0017] A first receiving module, configured to receive a first USSD protocol message sent by a network side device, wherein the first USSD protocol message carries first information and / or second information;

[0018] The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

[0019] In a fifth aspect, an embodiment of the present application provides a communication device, which is applied to a network side device, and the device includes:

[0020] A second receiving module is used to receive a second USSD protocol message sent by a second electronic device or a server, where the second USSD protocol message carries the first information and / or the second information;

[0021] A second sending module, configured to send a first USSD protocol message to a first electronic device, wherein the first USSD protocol message carries first information and / or second information;

[0022] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0023] In a sixth aspect, an embodiment of the present application provides a communication device, applied to a second electronic device or a server, the device comprising:

[0024] A third sending module, configured to send a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information;

[0025] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0026] In a seventh aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0027] In an eighth aspect, an embodiment of the present application provides a network side device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.

[0028] In the ninth aspect, an embodiment of the present application provides an electronic device or server, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the third aspect are implemented.

[0029] In the tenth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented, or the steps of the method described in the third aspect are implemented.

[0030] In the eleventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect, or to implement the method described in the second aspect, or to implement the method described in the third aspect.

[0031] In the twelfth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method as described in the first aspect, or the method as described in the second aspect, or the method as described in the third aspect.

[0032] In an embodiment of the present application, a network side device sends the first information and / or the second information to the first electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate and information transmission timeliness between electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 One of the flow charts showing the steps of the communication method provided in the embodiment of the present application;

[0034] Figure 2 A second flowchart showing the communication method provided in an embodiment of the present application;

[0035] Figure 3 A third flowchart showing the communication method provided in an embodiment of the present application;

[0036] Figure 4 A schematic diagram showing the principle of an office suite provided in an embodiment of the present application;

[0037] Figure 5 A flowchart showing an example provided by an embodiment of the present application;

[0038] Figure 6 One of the structural schematic diagrams of the communication device provided in the embodiment of the present application is shown;

[0039] Figure 7 A second structural diagram showing a communication device provided in an embodiment of the present application;

[0040] Figure 8 A third structural diagram showing a communication device provided in an embodiment of the present application;

[0041] Fig. 9 One of the structural schematic diagrams of the electronic device provided in the embodiment of the present application is shown;

[0042] Fig.10 A second structural schematic diagram of an electronic device provided in an embodiment of the present application is shown;

[0043] Fig.11 A schematic diagram showing the structure of a network side device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0045] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0046] The communication method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0047] like Figure 1 As shown, an embodiment of the present application provides a communication method, the method comprising:

[0048] Step 11: The first electronic device receives a first USSD protocol message sent by a network side device, where the first USSD protocol message carries first information and / or second information;

[0049] The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

[0050] Optionally, the "network" in "access network", "no network", "poor network", etc. mentioned in the embodiments of the present application can be understood as a data service network, for example, a data network or a WiFi network, and is not specifically limited here.

[0051] The first USSD protocol message and the second USSD protocol message mentioned in the embodiment of the present application are transmitted through a mobile network (such as a network used for call services).

[0052] It should be noted that Unstructured Supplementary Service Data (USSD) is a communication protocol used in the Global System for Mobile Communications (GSM). It allows two-way interaction between electronic devices and mobile networks without the need to establish a persistent connection. USSD protocol messages are usually sent by electronic devices to the core network of the mobile network through a signaling channel, and then the core network performs corresponding processing and returns the results to the electronic device. USSD has low network requirements. Even if the user uses 2G, USSD can be used stably and has low environmental requirements.

[0053] Optionally, the above-mentioned network side device is an operator network side device, which can also be understood as a core network device, and is not specifically limited here.

[0054] In the embodiment of the present application, a signaling channel is added between the first electronic device and the network side device to transmit USSD protocol messages. The USSD protocol messages do not depend on data traffic and are forwarded through services such as SMS and voice call services. As long as the first electronic device can make and receive calls normally, it can promptly receive the first USSD protocol message sent by the network side device.

[0055] It should be noted that the office suite specifically refers to: cross-terminal collaborative office work achieved under the premise of establishing a near-field (wifi-p2p) connection between the PC and the terminal device. The user logs in to the same account on the PC-side office suite and the terminal device, and the terminal device and the PC will report the current network status, account information, etc. to the server. The PC obtains a list of terminal devices (mobile phones) under the same account from the server and displays it to the user. When the user starts the connection, the PC and the terminal device try to establish a Bluetooth connection. Among them, in the embodiment of the present application, the first electronic device is a terminal device in the office suite, and the second electronic device is a PC in the office suite.

[0056] Optionally, when the Bluetooth connection between the PC and the electronic device fails, the server needs to send a push message to the electronic device, but the following situations exist:

[0057] 1. If the electronic device has no network (no mobile network and no wifi network), it will not receive push messages. When the network signal is very poor or the electronic device is not connected to the Internet, the electronic device will not receive push messages. At this time, even if the PC and the electronic device meet the necessary conditions for near-field connection, they cannot establish a wifi-p2p connection.

[0058] 2. The arrival rate and arrival time of push messages will affect the near field connection. Push messages will not reach the target device 100%. Even if they do, if the arrival time is too long and exceeds the near field connection timeout, the push message will become invalid, and in this case, the wifi-p2p connection between the PC and the electronic device cannot be established.

[0059] In the first application scenario, the first USSD protocol message carries the second information; the application scenario is specifically as follows: in a scenario where the Bluetooth connection between the first electronic device and the second electronic device is unsuccessful, if the push message from the server cannot reach the first electronic device in time, the operator network device sends the second information to the first electronic device via the first USSD protocol message, so that the second information can reach the first electronic device in time, thereby improving the success rate of the second information, and thus improving the success rate of the near-field connection.

[0060] In the second application scenario, the first USSD protocol message carries the first information; the application scenario is specifically as follows: in the absence of a network or a poor network, if the second electronic device cannot send the first information to the first electronic device through the service server, the second electronic device carries the first information to the network side device through the second USSD protocol message, and the network side device carries the first information to the first electronic device through the first USSD protocol message, thereby improving the push success rate of the first information and shortening the arrival time of the first information, thereby improving the timeliness of information transmission.

[0061] Optionally, the embodiments of the present application can also be applied to scenarios where the Bluetooth connection between a PC and an electronic device is successful, or scenarios where the Bluetooth connection fails but the data network is unobstructed. When applied in these scenarios, there is no need to first confirm whether the Bluetooth connection is successful or whether the data network is unobstructed, thereby speeding up the transmission efficiency of information.

[0062] In at least one embodiment of the present application, the method further includes:

[0063] The first electronic device establishes a wifi-p2p connection with the second electronic device according to the second information;

[0064] The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0065] Optionally, when the Bluetooth connection between the first electronic device and the second electronic device fails, the USSD protocol serves as auxiliary information to assist the first electronic device and the second electronic device in establishing a wifi-p2p connection.

[0066] In at least one embodiment of the present application, before step 11, the method further includes:

[0067] The first electronic device sends a first request to the network side device in response to a first secret code input by a user in a dialing interface; the first request is used to request the network side device to send a first USSD protocol message corresponding to the first secret code.

[0068] In other words, in an embodiment of the present application, the network side device can directly send the first USSD protocol message to the first electronic device, or it can send the first USSD protocol message to the first electronic device in response to the first request after receiving the first request from the first electronic device, and no specific limitation is made here.

[0069] In one implementation, the first code is a code negotiated in advance between the server or the second electronic device and the network side device. After the USSD protocol message corresponding to the first code is sent successfully, the network side device temporarily stores the USSD protocol message corresponding to the first code on the USSD server. After the network side device successfully sends the first USSD protocol message to the first electronic device or fails to send the first USSD protocol message within a preset time, the USSD protocol message corresponding to the first code is deleted.

[0070] In summary, in an embodiment of the present application, a network side device sends the first information and / or the second information to a first electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate and information transmission timeliness between electronic devices.

[0071] like Figure 2 As shown, the embodiment of the present application also provides a communication method, the method comprising:

[0072] Step 21: The network side device receives a second USSD protocol message sent by a second electronic device or a server, where the second USSD protocol message carries the first information and / or the second information;

[0073] Step 22: The network-side device sends a first USSD protocol message to the first electronic device, where the first USSD protocol message carries the first information and / or the second information;

[0074] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0075] Optionally, the above-mentioned network side device is an operator network side device, which can also be understood as a core network device, and is not specifically limited here.

[0076] Optionally, the embodiments of the present application can also be applied to scenarios where the Bluetooth connection between a PC and an electronic device is successful, or scenarios where the Bluetooth connection fails but the data network is unobstructed. When applied in these scenarios, there is no need to first confirm whether the Bluetooth connection is successful or whether the data network is unobstructed, thereby speeding up the transmission efficiency of information.

[0077] In the embodiment of the present application, a signaling channel is added between the first electronic device and the network side device to transmit USSD protocol messages. The USSD protocol messages do not depend on data traffic and are forwarded through services such as SMS and voice call services. As long as the first electronic device can make and receive calls normally, it can promptly receive the first USSD protocol message sent by the network side device.

[0078] In the first application scenario, the first USSD protocol message carries the second information; the application scenario is specifically as follows: in a scenario where the Bluetooth connection between the first electronic device and the second electronic device is unsuccessful, if the push message from the server cannot reach the first electronic device in time, the operator network device sends the second information to the first electronic device via the first USSD protocol message, so that the second information can reach the first electronic device in time, thereby improving the success rate of the second information, and thus improving the success rate of the near-field connection.

[0079] In the second application scenario, the first USSD protocol message carries the first information; the application scenario is specifically as follows: in the absence of a network or a poor network, if the second electronic device cannot send the first information to the first electronic device through the service server, the second electronic device carries the first information to the network side device through the second USSD protocol message, and the network side device carries the first information to the first electronic device through the first USSD protocol message, thereby improving the push success rate of the first information and shortening the arrival time of the first information, thereby improving the timeliness of information transmission.

[0080] As an optional embodiment, the second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0081] Optionally, when the Bluetooth connection between the first electronic device and the second electronic device fails, the USSD protocol serves as auxiliary information to assist the first electronic device and the second electronic device in establishing a wifi-p2p connection.

[0082] In at least one embodiment of the present application, when the second USSD protocol message carries the second information, before step 22, the method further includes:

[0083] Receiving a first request triggered by the first electronic device in response to a user inputting a first secret code on a dialing interface, wherein the first request is used to request a first USSD protocol message corresponding to the first secret code from the network side device;

[0084] According to the first request, a first USSD protocol message corresponding to the telephone number of the first electronic device and the first secret code is queried and determined.

[0085] In one implementation, the first code is a code negotiated in advance between the server or the second electronic device and the network side device. After the USSD protocol message corresponding to the first code is sent successfully, the network side device temporarily stores the corresponding USSD protocol message corresponding to the first code on the USSD server. After the network side device successfully sends the corresponding USSD protocol message to the first electronic device or fails to send the first USSD protocol message within a preset time, the USSD protocol message corresponding to the first code is deleted.

[0086] In another implementation, in order to prevent other electronic devices from requesting the network side device to send the first USSD protocol message corresponding to the first secret code through the first secret code after obtaining the first secret code, the first USSD protocol message in the embodiment of the present application, in addition to corresponding to the secret code, also needs to be bound to or correspondingly stored or mapped to the telephone number of the electronic device, that is, after the network side device receives the call request and parses the first secret code, it also needs to search for the first USSD protocol message according to the telephone number of the first electronic device, and after determining the first USSD protocol message corresponding to the telephone number of the first electronic device and the first secret code, it sends it to the first electronic device; thereby, other electronic devices can be prevented from obtaining the first USSD protocol message from the network side device, thereby ensuring the security of the transmission of the first USSD protocol message.

[0087] In summary, in an embodiment of the present application, a network device sends the first information and / or the second information to an electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0088] like Figure 3 As shown, the embodiment of the present application also provides a communication method, the method comprising:

[0089] Step 31: The second electronic device or the server sends a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information;

[0090] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0091] Optionally, the above-mentioned network side device is an operator network side device, which can also be understood as a core network device, and is not specifically limited here.

[0092] In the first application scenario, the first USSD protocol message carries the second information; the application scenario is specifically as follows: in a scenario where the Bluetooth connection between the first electronic device and the second electronic device is unsuccessful, if the push message from the server cannot reach the first electronic device in time, the operator network device sends the second information to the first electronic device via the first USSD protocol message, so that the second information can reach the first electronic device in time, thereby improving the success rate of the second information, and thus improving the success rate of the near-field connection.

[0093] In the second application scenario, the first USSD protocol message carries the first information; the application scenario is specifically as follows: in the absence of a network or a poor network, if the second electronic device cannot send the first information to the first electronic device through the service server, the second electronic device carries the first information to the network side device through the second USSD protocol message, and the network side device carries the first information to the first electronic device through the first USSD protocol message, thereby improving the push success rate of the first information and shortening the arrival time of the first information, thereby improving the timeliness of information transmission.

[0094] In at least one embodiment of the present application, the second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0095] Optionally, when the Bluetooth connection between the first electronic device and the second electronic device fails, the USSD protocol serves as auxiliary information to assist the first electronic device and the second electronic device in establishing a wifi-p2p connection.

[0096] Optionally, the embodiments of the present application can also be applied to scenarios where the Bluetooth connection between a PC and an electronic device is successful, or scenarios where the Bluetooth connection fails but the data network is unobstructed. When applied in these scenarios, there is no need to first confirm whether the Bluetooth connection is successful or whether the data network is unobstructed, thereby speeding up the transmission efficiency of information.

[0097] In at least one embodiment of the present application, when the second USSD protocol message carries the second information, the method further includes:

[0098] The server sends notification information to the second electronic device, and the notification information is used to notify the second electronic device to display the first secret code. Thus, the user obtains the first secret code from the second electronic device, and can enter the first secret code in the dial-up access of the first electronic device, thereby sending a first request to the network side device to obtain a first USSD protocol message corresponding to the first secret code.

[0099] In one implementation, before step 31, the method further includes:

[0100] The server receives a second request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, where the second request carries the second information;

[0101] Accordingly, step 31 includes:

[0102] The server sends the second USSD protocol message to the network side device according to the second request.

[0103] In another implementation, before step 31, the method further includes:

[0104] The server receives a third request sent by the second electronic device when a Bluetooth connection between the first electronic device and the second electronic device fails, wherein the third request carries the second information;

[0105] The server sends a push message carrying the second information to the first electronic device according to the third request;

[0106] Accordingly, step 31 includes:

[0107] If no push receipt is received from the first electronic device within a preset time period after sending the push message, the server sends the second USSD protocol message to the network side device according to the push message.

[0108] For example, Figure 4 As shown, the office suite specifically refers to: cross-terminal collaborative office work achieved on the premise that a near-field (wifi-p2p) connection is established between the PC and the terminal device. The user logs in to the same account on the PC-side office suite and the terminal device, and the terminal device and the PC will report the current network status, account information, etc. to the server. The PC obtains a list of terminal devices (mobile phones) under the same account from the server and displays it to the user. When the user starts the connection, the PC and the terminal device try to establish a Bluetooth connection. Among them, in an embodiment of the present application, the first electronic device is a terminal device in the office suite, and the second electronic device is a PC in the office suite.

[0109] like Figure 4As shown, in the above office suite, when the Bluetooth connection between the PC (i.e., the second electronic device) and the mobile phone (i.e., the first electronic device) fails, the PC sends a connection message to the server (including WLAN / wifi-p2p information of the near-field connection, etc.), and the server pushes the connection message to the mobile phone through a push message. When the push message times out, the server sends a second USSD protocol message to the operator device, and the operator device sends the first USSD protocol message to the mobile phone, and the mobile phone establishes a near-field wifi-p2p connection with the PC. Alternatively, after the Bluetooth connection between the PC and the mobile phone fails, the server directly sends a second USSD protocol message to the operator device, and the operator device sends the first USSD protocol message to the mobile phone, and the mobile phone establishes a near-field wifi-p2p connection with the PC.

[0110] In summary, in an embodiment of the present application, a second electronic device or a server sends a second USSD protocol message to a network side device, so that the network device sends the first information and / or the second information to the electronic device through the USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0111] In order to more clearly describe the communication method provided in the embodiment of the present application, an example and the attached Figure 5 Provide explanation.

[0112] Example 1: When the Bluetooth connection fails and the push message times out, the USSD protocol is used as an auxiliary means to establish a Wifi-p2p connection. The steps are as follows:

[0113] Step 101, download and install the office suite on the PC, and log in with the same account as the mobile phone.

[0114] Step 102, the mobile phone and PC report the current device information to the server;

[0115] Step 103, the PC obtains a list of devices with the same account from the server;

[0116] Step 104, click Connect Now, and the PC initiates a Bluetooth connection with the mobile phone;

[0117] Step 105, when the Bluetooth of the mobile phone is not turned on, or the connection fails due to other reasons; the timeout occurs, the PC sends a WiFi-p2p connection request for the current mobile phone device to the server;

[0118] Step 106: After receiving the connection request from the PC, the server pushes a connection request push message to the corresponding mobile phone according to the mobile device information, which includes necessary information such as the WiFi-P2P information of the PC.

[0119] After the server sends a push message, it will wait for 15 seconds. If no push receipt is received from the mobile phone within 15 seconds, it is considered that the push message has timed out and has not arrived.

[0120] Step 107: After the push message times out (i.e., the push message is unsuccessful), the server sends a USSD protocol message containing wifi-p2p information corresponding to the password to the operator, such as the password is: *2321321456#; at the same time, the server notifies the PC to display the corresponding password, such as: *2321321456#.

[0121] Step 108: According to the screen prompt of the PC, the user manually enters *2321321456# on the mobile phone to request the operator for the USSD message corresponding to the code. After receiving the code, the operator queries the USSD protocol message corresponding to the mobile phone number and sends the USSD protocol message. After sending, the USSD server deletes the currently stored message.

[0122] Step 109: After receiving the USSD protocol message sent by the operator, the mobile phone parses the message content to obtain WiFi-P2P information.

[0123] Step 110: The mobile phone initiates a wifi-p2p connection with the PC based on the parsed wifi-p2p information.

[0124] In summary, in the embodiments of the present application, the network device sends the first information and / or the second information to the electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0125] The communication method provided in the embodiment of the present application can be executed by a communication device. In the embodiment of the present application, the communication device provided in the embodiment of the present application is described by taking the communication device executing the communication method as an example.

[0126] like Figure 6 As shown, an embodiment of the present application further provides a communication device, applied to a first electronic device, the device comprising:

[0127] The first receiving module 601 is used to receive a first USSD protocol message sent by a network side device, where the first USSD protocol message carries first information and / or second information;

[0128] The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

[0129] As an optional embodiment, the device further includes:

[0130] A connection module, configured to establish a wifi-p2p connection with the second electronic device according to the second information;

[0131] The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0132] As an optional embodiment, the device further includes:

[0133] The first sending module is used to send a first request to the network side device in response to a first password input by the user in the dialing interface; the first request is used to request the network side device to send a first USSD protocol message corresponding to the first password.

[0134] In an embodiment of the present application, a network device sends the first information and / or the second information to an electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0135] It should be noted that the communication device provided in the embodiment of the present application is a device capable of executing the above-mentioned communication method. All embodiments of the above-mentioned communication method are applicable to the device and can achieve the same or similar beneficial effects, which will not be repeated here.

[0136] like Figure 7 As shown, the embodiment of the present application also provides a communication device, which is applied to a network side device, and the device includes:

[0137] The second receiving module 701 is used to receive a second USSD protocol message sent by a second electronic device or a server, where the second USSD protocol message carries the first information and / or the second information;

[0138] The second sending module 702 is used to send a first USSD protocol message to the first electronic device, where the first USSD protocol message carries the first information and / or the second information;

[0139] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0140] As an optional embodiment, the second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0141] As an optional embodiment, when the second USSD protocol message carries the second information, the apparatus further includes:

[0142] A third receiving module is used to receive a first request triggered by the first electronic device in response to a user inputting a first secret code on a dialing interface, wherein the first request is used to request the network side device to send a first USSD protocol message corresponding to the first secret code;

[0143] The query and determination module is used to query and determine the first USSD protocol message corresponding to the telephone number of the first electronic device and the first secret code according to the first request.

[0144] In an embodiment of the present application, a network device sends the first information and / or the second information to an electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0145] It should be noted that the communication device provided in the embodiment of the present application is a device capable of executing the above-mentioned communication method. All embodiments of the above-mentioned communication method are applicable to the device and can achieve the same or similar beneficial effects, which will not be repeated here.

[0146] like Figure 8 As shown, an embodiment of the present application further provides a communication device, which is applied to a second electronic device or a server, and the device includes:

[0147] The third sending module 801 is used to send a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information;

[0148] Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

[0149] As an optional embodiment, the second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0150] As an optional embodiment, when the second USSD protocol message carries the second information, the apparatus further includes:

[0151] The fourth sending module is used to send notification information to the second electronic device, where the notification information is used to notify the second electronic device to display the first secret code.

[0152] As an optional embodiment, the device further includes:

[0153] A fourth receiving module, configured to receive a second request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, wherein the second request carries the second information;

[0154] The third sending module includes:

[0155] The first sending submodule is used to send the second USSD protocol message to the network side device according to the second request.

[0156] As an optional embodiment, the device further includes:

[0157] A fifth receiving module, configured to receive a third request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, wherein the third request carries the second information;

[0158] a fifth sending module, configured to send a push message carrying the second information to the first electronic device according to the third request;

[0159] The third sending module includes:

[0160] The second sending submodule is used to send the second USSD protocol message to the network side device according to the push message if no push receipt is received from the first electronic device within a preset time length after sending the push message.

[0161] In an embodiment of the present application, a second electronic device or a server sends a second USSD protocol message to a network side device, so that the network device sends the first information and / or the second information to the electronic device through the USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0162] It should be noted that the communication device provided in the embodiment of the present application is a device capable of executing the above-mentioned communication method. All embodiments of the above-mentioned communication method are applicable to the device and can achieve the same or similar beneficial effects, which will not be repeated here.

[0163] The device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0164] The device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0165] The device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0166] Alternatively, if Fig. 9As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores a program or instruction that can be executed on the processor 901, and when the program or instruction is executed by the processor 901, the various steps of the above-mentioned communication method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0167] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0168] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0169] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0170] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0171] The radio frequency unit 1001 is configured to receive a first USSD protocol message sent by a network side device, where the first USSD protocol message carries first information and / or second information;

[0172] The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

[0173] Optionally, the processor 1010 is configured to establish a wifi-p2p connection with the second electronic device according to the second information;

[0174] The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0175] Optionally, the processor 1010 is used to respond to a first code input by the user in the dialing interface, and send a first request to the network side device through the radio frequency unit 1001; the first request is used to request the network side device to send a first USSD protocol message corresponding to the first code.

[0176] Alternatively, the radio frequency unit 1001 is configured to send a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information;

[0177] The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

[0178] Optionally, the second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

[0179] Optionally, when the second USSD protocol message carries the second information, the radio frequency unit 1001 is used to send notification information to the second electronic device, where the notification information is used to notify the second electronic device to display the first secret code.

[0180] Optionally, the radio frequency unit 1001 is also used to receive a second request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, and the second request carries the second information; and according to the second request, send the second USSD protocol message to the network side device.

[0181] Optionally, the radio frequency unit 1001 is also used to receive a third request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, and the third request carries the second information; and according to the third request, send a push message carrying the second information to the first electronic device; if no push receipt is received from the first electronic device within a preset time length after sending the push message, send the second USSD protocol message to the network side device according to the push message.

[0182] In an embodiment of the present application, a network device sends the first information and / or the second information to an electronic device via a USSD protocol message. The USSD protocol message is an operator supplementary message that does not require a data service network. Therefore, it can solve the problem in the prior art that the first information and / or the second information cannot be delivered or arrives untimely due to the data service network, thereby improving the information transmission efficiency of the first information and / or the second information, and improving the connection success rate or information transmission timeliness between electronic devices.

[0183] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0184] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0185] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0186] The embodiment of the present application also provides a network side device, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 2The steps of the method embodiment shown. This network side device embodiment corresponds to the above network side device method embodiment, and each implementation process and implementation mode of the above method embodiment can be applied to this network side device embodiment and can achieve the same technical effect.

[0187] Specifically, the embodiment of the present application further provides a network side device, which can be Figure 7 The communication device shown. Fig.11 As shown, the network side device 1100 includes: an antenna 111, a radio frequency device 112, a baseband device 113, a processor 114 and a memory 115. The antenna 111 is connected to the radio frequency device 112. In the uplink direction, the radio frequency device 112 receives information through the antenna 111 and sends the received information to the baseband device 113 for processing. In the downlink direction, the baseband device 113 processes the information to be sent and sends it to the radio frequency device 112, and the radio frequency device 112 processes the received information and sends it out through the antenna 111.

[0188] The method executed by the network-side device in the above embodiment may be implemented in the baseband device 113, which includes a baseband processor.

[0189] The baseband device 113 may include, for example, at least one baseband board on which a plurality of chips are arranged. Fig.11 As shown, one of the chips is, for example, a baseband processor, which is connected to the memory 115 through a bus interface to call the program in the memory 115 to execute the network device operations shown in the above method embodiment.

[0190] The network side device may further include a network interface 116, which is, for example, a Common Public Radio Interface (CPRI).

[0191] Specifically, the network side device 1100 of the embodiment of the present application further includes: instructions or programs stored in the memory 115 and executable on the processor 114, and the processor 114 calls the instructions or programs in the memory 115 to execute Figure 7 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.

[0192] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned communication method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0193] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0194] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned communication method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0195] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0196] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned communication method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0197] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0198] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0199] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A communication method, characterized in that: The method comprises: The first electronic device receives a first USSD protocol message sent by a network side device, where the first USSD protocol message carries first information and / or second information; The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

2. The method according to claim 1, characterized in that The method further comprises: The first electronic device establishes a wifi-p2p connection with the second electronic device according to the second information; The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

3. The method according to claim 1, characterized in that Before the first electronic device receives the first USSD protocol message sent by the network side device, the method further includes: The first electronic device sends a first request to the network side device in response to a first secret code input by a user in a dialing interface; the first request is used to request the network side device to send a first USSD protocol message corresponding to the first secret code.

4. A communication method, characterized in that: The method comprises: The network side device receives a second USSD protocol message sent by a second electronic device or a server, where the second USSD protocol message carries the first information and / or the second information; The network side device sends a first USSD protocol message to the first electronic device, where the first USSD protocol message carries the first information and / or the second information; Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

5. The method according to claim 4, characterized in that The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

6. The method according to claim 4, characterized in that In the case where the second USSD protocol message carries the second information, before the network side device sends the first USSD protocol message to the first electronic device, the method further includes: Receiving a first request triggered by the first electronic device in response to a user inputting a first secret code on a dialing interface, wherein the first request is used to request a first USSD protocol message corresponding to the first secret code from the network side device; According to the first request, a first USSD protocol message corresponding to the telephone number of the first electronic device and the first secret code is queried and determined.

7. A communication method, characterized in that: The method comprises: The second electronic device or the server sends a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information; Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

8. The method according to claim 7, characterized in that The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

9. The method according to claim 7, characterized in that: In a case where the second USSD protocol message carries the second information, the method further includes: The server sends notification information to the second electronic device, where the notification information is used to notify the second electronic device to display the first secret code.

10. The method according to any one of claims 7 to 9, characterized in that: Before the server sends the second USSD protocol message to the network side device, the method further includes: The server receives a second request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, where the second request carries the second information; The server sends a second USSD protocol message to the network side device, including: The server sends the second USSD protocol message to the network side device according to the second request.

11. The method according to any one of claims 7 to 9, characterized in that: Before the server sends the second USSD protocol message to the network side device, the method further includes: The server receives a third request sent by the second electronic device when a Bluetooth connection between the first electronic device and the second electronic device fails, wherein the third request carries the second information; The server sends a push message carrying the second information to the first electronic device according to the third request; The server sends a second USSD protocol message to the network side device, including: If no push receipt is received from the first electronic device within a preset time period after sending the push message, the server sends the second USSD protocol message to the network side device according to the push message.

12. A communication device, characterized in that: Applied to a first electronic device, the device comprises: A first receiving module, configured to receive a first USSD protocol message sent by a network side device, wherein the first USSD protocol message carries first information and / or second information; The first information is information that the second electronic device needs to send to the first electronic device through the access network; and the second information is information used to establish a near field connection between the first electronic device and the second electronic device.

13. The device according to claim 12, characterized in that The device also includes: A connection module, configured to establish a wifi-p2p connection with the second electronic device according to the second information; The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

14. The device according to claim 12, characterized in that The device also includes: The first sending module is used to send a first request to the network side device in response to a first password input by the user in the dialing interface; the first request is used to request the network side device to send a first USSD protocol message corresponding to the first password.

15. A communication device, characterized in that: Applied to a network side device, the device comprises: A second receiving module is used to receive a second USSD protocol message sent by a second electronic device or a server, where the second USSD protocol message carries the first information and / or the second information; A second sending module, configured to send a first USSD protocol message to a first electronic device, wherein the first USSD protocol message carries first information and / or second information; Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

16. The device according to claim 15, characterized in that The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

17. The device according to claim 15, characterized in that In a case where the second USSD protocol message carries the second information, the apparatus further includes: A third receiving module is used to receive a first request triggered by the first electronic device in response to a user inputting a first secret code on a dialing interface, wherein the first request is used to request the network side device to send a first USSD protocol message corresponding to the first secret code; The query and determination module is used to query and determine the first USSD protocol message corresponding to the telephone number of the first electronic device and the first secret code according to the first request.

18. A communication device, characterized in that: Applied to a second electronic device or a server, the device comprises: A third sending module, configured to send a second USSD protocol message to the network side device, where the second USSD protocol message carries the first information and / or the second information; Among them, the first information is information that the second electronic device needs to send to the first electronic device through the access network; the second information is information used to establish a near-field connection between the first electronic device and the second electronic device; and the server is a service server accessed by the second electronic device.

19. The device according to claim 18, characterized in that The second information includes: wireless local area network WLAN information of the near field connection, and / or wifi-p2p information of the near field connection.

20. The device according to claim 18, characterized in that In a case where the second USSD protocol message carries the second information, the apparatus further includes: The fourth sending module is used to send notification information to the second electronic device, where the notification information is used to notify the second electronic device to display the first secret code.

21. The device according to any one of claims 18 to 20, characterized in that The device also includes: A fourth receiving module, configured to receive a second request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, wherein the second request carries the second information; The third sending module includes: The first sending submodule is used to send the second USSD protocol message to the network side device according to the second request.

22. The device according to any one of claims 18 to 20, characterized in that The device also includes: A fifth receiving module, configured to receive a third request sent by the second electronic device when the Bluetooth connection between the first electronic device and the second electronic device fails, wherein the third request carries the second information; a fifth sending module, configured to send a push message carrying the second information to the first electronic device according to the third request; The third sending module includes: The second sending submodule is used to send the second USSD protocol message to the network side device according to the push message if no push receipt is received from the first electronic device within a preset time length after sending the push message.

23. A first electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the communication method according to any one of claims 1 to 3 are implemented.

24. A network side device, characterized in that it includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the communication method according to any one of claims 4 to 6 are implemented.

25. A second electronic device or server, characterized in that it comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the communication method as described in any one of claims 7 to 11 are implemented.

26. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, it implements the steps of the communication method as described in any one of claims 1 to 3, or implements the steps of the communication method as described in any one of claims 4 to 6, or implements the steps of the communication method as described in any one of claims 7 to 11.

27. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the communication method as described in any one of claims 1 to 3, or implement the steps of the communication method as described in any one of claims 4 to 6, or implement the steps of the communication method as described in any one of claims 7 to 11.