The present disclosure relates to the field of communications technologies, and in particular, to an intelligent communications method, terminal, and system.
Nowadays, with popularization and development of mobile intelligent terminals, when using a mobile intelligent terminal, a user has a conventional communication demand. Moreover, in daily life and work, the user depends on many terminal applications (applications such as map, navigation, weather forecast, microblog, WECHAT, electronic-mail (Email), and short message service (SMS) message) installed on the mobile intelligent terminal.
In the prior art, a conventional voice channel and a third-party application data channel are independent of each other and are operated separately. The conventional voice channel and the third-party application data channel use different “point-to-point addressing” mechanisms. In conventional voicing, a mobile terminal number is used as a feature code for addressing, to determine a calling party/a called party. For a third-party application, registration information of respective users of a sending party and a receiving party is used to determine the sending party/the receiving party. In addition, the conventional voice channel is used to transmit only voice data between the calling party and the called party. For file transfer, identity authentication, image sharing, and the like, operations can be performed only using the third-party application to perform transmission between the sending party and the receiving party. Therefore, at least two local applications need to be enabled on a mobile intelligent terminal if a voice call and service data transmission need to be implemented simultaneously. That is, a voice channel is established using a mobile terminal number, and authentication and login are performed using a user identity of a third-party application when the voice channel is established. The voice call and the service data transmission can be implemented simultaneously only in this way. However, consequently, system architecture of a terminal is complex, steps of interaction between a mobile terminal and a network are cumbersome, and multiple authentications are required.
Embodiments of the present disclosure provide an intelligent communications method, terminal, and system, which avoids cumbersome multiple authentications in the prior art and more effectively uses a voice call channel that has already been established.
To achieve the foregoing objective, the following technical solutions are used in the embodiments of the present disclosure.
According to a first aspect, a first terminal for implementing intelligent communication is provided, where there is a voice channel, established using a circuit switched domain, between the first terminal and a second terminal, and the first terminal includes a generation unit configured to generate a feature code of the first terminal, and generate, based on the feature code, a voice packet, where the voice packet includes the feature code, a first sending unit configured to send the voice packet to the second terminal using the voice channel, a second sending unit configured to send the feature code of the first terminal to a server, for security authentication, where the security authentication is completed by the server based on the feature code of the first terminal and a received feature code of the second terminal, and a processing unit configured to establish a data link channel between the first terminal and the second terminal after the security authentication succeeds.
According to a second aspect, a first terminal for implementing intelligent communication is provided, where there is a voice channel, established using a circuit switched domain, between the first terminal and a second terminal, and the first terminal includes a generation unit configured to generate a first feature code of the first terminal, and generate, based on the first feature code, a voice packet, where the voice packet includes the first feature code, a first sending unit configured to send the voice packet to the second terminal using the voice channel, a receiving unit configured to receive a second feature code of the second terminal that is returned by the second terminal using the voice channel, an authentication unit configured to perform security authentication on the second terminal according to the first feature code and the second feature code, and an establishment unit configured to establish a data link channel between the first terminal and the second terminal after the authentication unit confirms that the authentication succeeds.
According to a third aspect, an intelligent communication method is provided, where there is a voice channel, established using a circuit switched domain, between a first terminal and a second terminal, and includes generating a feature code of the first terminal, and generating a voice packet according to the feature code, where the voice packet includes the feature code, sending the voice packet to the second terminal using the voice channel, sending the feature code of the first terminal to a server, for security authentication, where the security authentication is completed by the server based on the feature code of the first terminal and a received feature code of the second terminal, and establishing a data link channel between the first terminal and the second terminal after the security authentication succeeds.
According to a fourth aspect, an intelligent communications system is provided, where there is a voice channel, established using a circuit switched domain, between a first terminal and a second terminal, the first terminal needs to establish a data link channel to the second terminal, and the system includes that the first terminal sends a feature code to a server, the first terminal sends the feature code to the second terminal using the voice channel, the second terminal obtains a feature code of the second terminal according to the received feature code of the first terminal, and the server determines, according to the feature code of the first terminal and the feature code of the second terminal, that security authentication succeeds, and establishes the data link channel between the first terminal and the second terminal after receiving the feature code of the first terminal and the feature code of the second terminal that is sent by the second terminal.
According to a fifth aspect, an intelligent communication method is provided, where there is a voice channel, established using a circuit switched domain, between a first terminal and a second terminal, and includes generating a first feature code of the first terminal, sending the first feature code to the second terminal using the voice channel, receiving a second feature code of the second terminal that is returned by the second terminal using the voice channel, performing security authentication on the second terminal according to the first feature code and the second feature code, and establishing a data link channel between the first terminal and the second terminal after the security authentication succeeds.
According to the intelligent communications method, terminal, and system provided in the embodiments of the present disclosure, when implementing a voice call, a mobile terminal can perform synchronization transmission of service data. For example, in a voice call process, crucial information (such as, location information or personal identity information) may be carried, and emotion expression (such as pros, cons, or emotion reminding) may be further added in the voice call process. In this way, voice communication is directly converted into an instant message mode in order to achieve seamless integration between a voice and a message, which facilitates effective communication mode in a special case, also simplifies steps of interaction between a terminal system architecture and a mobile terminal network, and avoids repeated authentication.
The following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The described embodiments are merely some but not all of the embodiments of the present disclosure.
Based on the networking structure shown in
Manner 1: There is a voice channel, established using a circuit switched domain, between the first terminal 11 and the second terminal 12. When the first terminal 11 needs to establish a data link channel to the second terminal 12, after the server 13 receives a feature code of the first terminal 11 that is sent by the first terminal 11 and a feature code of the second terminal 12 that is sent by the second terminal 12, the server 13 completes security authentication according to the feature code of the first terminal 11 and the feature code of the second terminal 12, and establishes the data link channel between the first terminal 11 and the second terminal 12 such that the first terminal 11 transmits, using the data link channel, service data needed to be transmitted to the second terminal 12.
Manner 2: There is a voice channel, established using a circuit switched domain, between the first terminal 11 and the second terminal 12. When the first terminal 11 needs to establish a data link channel to the second terminal 12, the first terminal 11 sends a feature code of the first terminal 11 to the second terminal 12 using the voice channel such that the second terminal 12 can extract, from the first feature code, a necessary element for a second feature code of the second terminal, and then the first terminal 11 performs security authentication on the second terminal according to the first feature code and the second feature code. After the authentication succeeds, the data link channel is established between the first terminal 11 and the second terminal 12 in a wireless connection mode (such as a peer-to-peer (P2P) direct network connection, a WIFI connection, or a BLUETOOTH connection) such that the first terminal 11 transmits, using the data link channel, service data needed to be transmitted to the second terminal 12.
Based on the foregoing description, it can be learned that in both the foregoing two manners, that is, manner 1 and manner 2, a voice call and synchronization transmission of service data are implemented by establishing a data link channel between a first terminal and a second terminal. In addition, the present disclosure further provides a third manner in which the voice channel between the first terminal 11 and the second terminal 12 is directly used to transmit service data.
Manner 3: There is a voice channel, established using a circuit switched domain, between the first terminal 11 and the second terminal 12. The first terminal 11 encodes, according to an encoding rule, service data needed to be transmitted to obtain a voice packet transmittable on the voice channel, and sends the voice packet to the second terminal 12 using the voice channel such that the second terminal 12 decodes the voice packet to obtain the service data.
Other embodiments of the present disclosure further involve a solution implemented according to a preset threshold for a service data amount and with reference to manner 1 and manner 3 or with reference to manner 2 and manner 3.
As shown in
The generation unit 21 is configured to generate a feature code of the first terminal 2, and generate, based on the feature code, a voice packet, where the voice packet includes the feature code.
Constitution of the feature code of the first terminal includes a random code and one or more of the following elements: a user identity (ID) of the first terminal 2 or a user ID of the second terminal. The random code is generated by the first terminal 2 when the feature code needs to be generated. The user ID of the first terminal 2 and the user ID of the second terminal are pre-stored on the first terminal 2, or are obtained when the user ID of the first terminal 2 and the user ID of the second ID are entered for dialing. The first terminal 2 and the second terminal that are mentioned in this embodiment may be wired or wireless electronic devices with a communication function, such as smartphones or palmtop computers.
The first sending unit 22 is configured to send the voice packet to the second terminal using the voice channel such that the second terminal parses the voice packet to obtain a feature code of the second terminal. The second sending unit 23 is configured to send, to a server, the feature code of the first terminal 2 that is generated by the generation unit 21.
The second sending unit 23 completes, using a signaling channel between the first terminal 2 and the server, sending of the feature code of the first terminal.
A processing unit 24 configured to complete security authentication according to the feature code of the first terminal and the feature code of the second terminal, and establish the data link channel between the first terminal 2 and the second terminal, where the security authentication is completed based on the feature code of the first terminal 2 and the feature code of the second terminal that is sent by the second terminal.
Constitution of the feature code of the second terminal includes the random code and one or more of the following elements: the user ID of the first terminal 2 or the user ID of the second terminal. The random code in the feature code of the first terminal 2 is same as the random code in the feature code of the second terminal.
The user ID of the first terminal and the user ID of the second terminal may be mobile subscriber numbers (for example mobile subscriber (MS) international integrated services digital net work (ISDN)/public switched telephone net work (PSTN) Number (MSISDN)).
According to the first terminal 2 provided in this embodiment of the present disclosure, there is a voice channel, established using a circuit switched domain, between the first terminal 2 and a second terminal, and when the first terminal 2 needs to establish a data link channel to the second terminal, after a server completes security authentication according to a feature code of the first terminal 2 and a feature code of the second terminal, the server establishes the data link channel between the first terminal 2 and the second terminal such that the first terminal 2 can send, using the data link channel, service data needed to be transmitted to the second terminal, and the mobile terminals can implement establishment of the data link channel using the voice channel and complete service data transmission. In this way, voice communication is directly established into an instant message mode in order to achieve seamless integration between a voice and a message, which facilitates effective communication mode in a special case, also simplifies steps of interaction between a terminal system architecture and a mobile terminal network, and avoids repeated authentication.
In this embodiment, when the first sending unit 22 sends the feature code of the first terminal using the voice channel, the processing unit 24 generally packs the feature code as a global system for mobile communications (GSM) voice data packet, then loads the data packet in a specified location of a normal voice packet by means of wavelet transform, and sends the normal voice packet to the second terminal. After receiving the data packet, the second terminal parses the related packet according to an agreed location, to obtain the feature code that is sent by the first terminal.
Optionally, when both the data link channel and the voice channel are established between the first terminal 2 and the second terminal, and the first terminal 2 sends service data to the second terminal, as shown in
The determining unit 25 is configured to determine whether the service data is greater than a preset threshold.
The service data may be input by a user using the first terminal, or may be read from a file stored on the first terminal, or may be input based on another sensor or apparatus.
The second sending unit 23 sends the service data to the second terminal using the data link channel between the first terminal 2 and the second terminal if the determining unit 25 determines that the service data is greater than the preset threshold.
The first sending unit 22 encodes the service data according to an encoding rule to obtain a voice packet transmittable on the voice channel, and sends the voice packet to the second terminal using the voice channel if the determining unit 25 determines that the service data is less than or equal to the preset threshold. The second terminal decodes the voice packet to obtain the service data after receiving the voice packet.
Exemplarily, to avoid unnecessary waste of network resources, service data needed to be transmitted may be screened herein. When the service data is less than the preset threshold, it indicates that the service data is relatively small, and a packet data network resource does not need to be wasted. The service data may be directly packed as a data packet that is similar to a GSM voice. Then the data packet is loaded into a normal voice by means of wavelet transform and is sent to the second terminal, or can be transmitted in a wireless connection mode (such as a peer-to-peer (P2P) network, BLUETOOTH, WIFI). Correspondingly, when the service data is greater than the preset threshold, it indicates that the service data is relatively large. To ensure that the service data can be transmitted successfully, the data link channel that has already been established is used to perform transmission. Preferably, a process for establishing the data link channel in this embodiment may be performed only when it is determined that the service data needed to be transmitted is greater than the preset threshold.
Optionally, as shown in
The decoding unit 26 is configured to decode the voice packet to obtain the service data that is sent by the second terminal after the voice packet that carries the service data of the second terminal is received on the voice channel.
The display unit 27 is configured to display the service data of the second terminal that is obtained by means of decoding by the decoding unit 26.
Optionally, the display unit 27 is further configured to transfer, according to a type of the service data of the second terminal, the service data to a corresponding application on the first terminal, for displaying.
Exemplarily, when the first terminal receives, on the voice channel, the service data of the second terminal, that is, when the first terminal is a receive end, after receiving the service data sent by the second terminal, the first terminal may display the service data according to the service data type of the service data; or may invoke a local third-party application client. For example, third-party map software is invoked to display user location information, or third-party image player software is invoked to display a shared image.
In this embodiment, in a manner of implementing establishment of a data link channel using a voice channel, a random code way is considered. However, in specific implementation, some existing well-known encryption algorithms may be further used for implementation, and details are not described herein.
In this embodiment of the present disclosure, unit division of the first terminal 2 is exemplarily described. In practice, there may be multiple division methods for units that constitute the first terminal 2 in this embodiment of the present disclosure.
An embodiment of the present disclosure provides a first terminal for implementing intelligent communication. As shown in
The generation unit 31 is configured to generate the first feature code of the first terminal 3 and transfer the first feature code to the first sending unit 32, and is further configured to generate a voice packet according to the first feature code, where the voice packet includes the first feature code.
The first sending unit 32 is configured to send the voice packet to the second terminal using the voice channel.
The receiving unit 33 is configured to receive the second feature code of the second terminal that is returned by the second terminal using the voice channel.
The authentication unit 34 is configured to perform security authentication on the second terminal according to the first feature code generated by the generation unit 31 and the second feature code received by the receiving unit 33.
Constitution of the first feature code of the first terminal 3 includes a user ID of the first terminal 3 and a first random code. The feature code of the second terminal includes a user ID of the second terminal and a second random code.
Optionally, the authentication unit 34 is further configured to verify whether the first feature code of the first terminal 3 that is generated by the generation unit 31 and the second feature code of the second terminal that is received by the receiving unit 33 meet a security authentication condition after the second feature code of the second terminal is received, and if met, confirm that the authentication succeeds, where the security authentication condition includes that the random code carried in the received second feature code is the same as the random code included in the first feature code.
Exemplarily, the authentication unit 34 is further configured to confirm that the security authentication for the second terminal succeeds when it is confirmed that the second random code is the same as the first random code and that the user ID of the second terminal is the same as a user ID of a peer end of the data link channel needed to be established by the first terminal 3 currently.
The establishment unit 35 is configured to establish the data link channel between the first terminal 3 and the second terminal in a wireless connection mode after the authentication performed by the authentication unit 34 succeeds.
The voice packet that carries the first feature code further carries related information that is used for establishing the wireless connection mode if the wireless connection mode includes a P2P network connection mode, a WIFI connection mode, or a BLUETOOTH connection mode. Further, for example, an identifier of the wireless connection mode, protocol version information.
According to the first terminal 3 provided in this embodiment of the present disclosure, when there is a voice channel, established using a circuit switched domain, between the first terminal 3 and a second terminal, and the first terminal 3 needs to establish a data link channel to the second terminal, the first terminal 3 establishes a data link channel between the first terminal 3 and the second terminal in a wireless connection mode according to a first feature code of the first terminal 3 and a second feature code of the second terminal such that the first terminal can send, using the data link channel, service data needed to be transmitted to the second terminal, and then the mobile terminals can implement establishment of the wireless connection mode using the voice channel.
Step 401: The first terminal generates the feature code of the first terminal, and generates a voice packet according to the feature code, where the voice packet includes the feature code.
Constitution of the feature code of the first terminal includes a first random code and one or more of a user ID of the first terminal or a user ID of the second terminal. The first random code is temporarily generated by the first terminal when the first random code needs to be used. The user ID of the first terminal and the user ID of the second terminal are stored on the first terminal. The first terminal and the second terminal that are mentioned in this embodiment may be wired or wireless electronic devices with a communication function, such as smartphones or palmtop computers.
Step 402: The first terminal sends the voice packet to the second terminal using the voice channel such that the second terminal parses the voice packet to obtain the feature code of the second terminal.
Exemplarily, when sending the feature code of the first terminal to the second terminal using the voice channel, the first terminal generally packs the feature code as a data packet that is similar to a GSM voice, then loads the data packet in a specified location of a normal voice by means of wavelet transform, and sends the normal voice to the second terminal. After receiving the data packet, the second terminal parses the related packet according to a location that is agreed in advance, to generate the feature code sent by the first terminal.
Further, when packing the feature code, the first terminal may first convert the feature code into special audio information, then encode, in a voice encoding mode, the special audio information into the data packet that is similar to the GSM voice, and finally load the data packet in the specified location of the normal voice and send the data packet to the second terminal. The special audio information may be obtained by encoding the feature code according to a pre-defined rule, such as a character-audio comparison table. For example, an English letter, data, and a special character are represented using corresponding special audio. During parsing, the second terminal may obtain, in direct comparison with a local audio library of the second terminal, the feature code by means of restoration, or may use an amplitude law for audio analysis, and use a special amplitude law to carry the feature code such that the second terminal parses the special audio information according to a preset amplitude law to generate the feature code, or may use a special audio processing means to directly convert a to-be-transmitted feature code into audio, and overlap the audio to a conventional voice signal such that the second terminal directly parses the special audio information to obtain the feature code.
It can be learned from the foregoing disclosed content that a feature code is transmitted using a voice channel that, for implementation of manner 3 in which the voice channel is used to transmit service data and that is proposed at the beginning of the present disclosure, reference may be made to corresponding implementation, and details are not described herein.
Optionally, step 402 further includes the following content: the first terminal generates, according to an encoding rule and the feature code, a voice packet transmittable on the voice channel, and the second terminal decodes the voice packet to obtain the feature code that is used as the feature code of the second terminal after receiving the voice packet.
Constitution of the feature code of the second terminal includes a second random code and one or more of the user ID of the first terminal or the user ID of the second terminal.
Exemplarily, when obtaining, by the second terminal, the feature code of the first terminal that is sent by the first terminal, the feature code may be directly used as the feature code of the second terminal and be sent to the server such that after the server receives the feature code that is sent by the first terminal and the feature code that is sent by the second terminal, and verifies that the received feature code of the first terminal and the received feature code of the second terminal meet a security authentication condition, the server confirms that the authentication succeeds, where the security authentication condition includes the random code carried in the received second feature code is the same as the random code included in the first feature code, or the second terminal may obtain the identity ID of the second terminal when receiving the feature code of the first terminal, and generate the feature code of the second terminal according to the identity ID of the second terminal and the random code in the feature code of the first terminal such that after the server receives the feature code of the first terminal and the feature code of the second terminal, the server performs identity verification according to the user ID of the first terminal in the feature code of the first terminal, performs identity authentication according to the user ID of the second terminal in the feature code of the second terminal, and completes, according to that the random code carried in the feature code of the first terminal is the same as the random code carried in the feature code of the second terminal, security authentication for establishment of the data link channel.
Step 403: The first terminal sends the feature code of the first terminal to the server such that after the server receives the feature code of the first terminal and the feature code of the second terminal that is sent by the second terminal, the server completes security authentication according to the feature code of the first terminal and the feature code of the second terminal, and establishes the data link channel between the first terminal and the second terminal.
Optionally, step 403 further includes the following steps.
Step 403a: The first terminal sends the feature code of the first terminal to the server such that after the server receives the feature code, the server completes identity verification for the first terminal, and establishes a first data link between the first terminal and the server.
Step 403b: After the server completes establishment of a second data link to the second terminal, the first terminal establishes, based on the first data link and the second data link, the data link channel between the first terminal and the second terminal.
Optionally, when both the data link channel and the voice channel are established between the first terminal and the second terminal, the first terminal sends service data to the second terminal, and before step 403 or after step 403, step 404a, step 404b1, and step 404b2 are further included. A solution implemented when step 404a is performed before step 403 is to obtain the service data first, and then determine, according to a bigger-or-smaller relationship between the service data and a threshold, whether the data link channel needs to be established to complete transmission. A solution implemented when step 404a is performed after step 403 is to establish the data link channel first, and then select one channel from the voice channel and the data link channel according to the bigger-or-smaller relationship between the service data and a threshold to perform transmission.
Step 404a: The first terminal determines whether the service data is greater than a preset threshold.
The service data includes but is not limited to an image, text, user location information, user identity information, multi-media information, and the like. Further, proceed to step 404b1 if the service data is greater than the preset threshold, or proceed to step 404b2 if the service data is less than or equal to the preset threshold.
Step 404b1: The service data is sent to the second terminal using the data link channel between the first terminal and the second terminal if the service data is greater than the preset threshold.
Exemplarily, after obtaining service data needed to be transmitted, the first terminal sends the service data to the server using the first data link between the first terminal and the server. After receiving the service data, the server confirms, according to a feature code of a receive end (that is, the feature code of the second terminal) that is sent by the first terminal, that the second terminal is a receiving party, and then sends the service data to the second terminal using the second data link between the second terminal and the server.
Step 404b2: The service data is encoded according to an encoding rule to obtain a voice packet transmittable on the voice channel, and the voice packet is sent to the second terminal using the voice channel such that the second terminal decodes the voice packet to obtain the service data if the service data is less than or equal to the preset threshold.
Optionally, when the first terminal receives, on the voice channel, service data of the second terminal, the method further includes the following steps.
Step a1: After receiving, on the voice channel, a voice packet that carries the service data of the second terminal, the first terminal decodes the voice packet in an audio decoding mode that is agreed in advance, to obtain the service data sent by the second terminal.
Step a2: The first terminal displays the service data of the second terminal that is obtained by means of decoding.
Optionally, step a2 further includes: the service data is transferred, according to a type of the service data of the second terminal, to a corresponding application on the first terminal, for displaying. Exemplarily, the first terminal displays the service data according to the service data type of the service data, or may invoke a local third-party application client to display the service data. For example, third-party map software is invoked to display user location information, or third-party image player software is invoked to display a shared image.
Exemplarily, when the intelligent communication method provided in the present disclosure is actually applied, the following effects can be achieved. In a process of a voice call performed between a first terminal and a second terminal, important and crucial information (that is, service data) may be carried, such as user information including user location information, a phone number, a bank account, a name, an address, have an e-mail address, or an ID card number. In addition, to enhance emotion expression in the call process, information about the emotion expression (such as pros, cons, or emotion reminding) (that is, the service data) may be sent, or during the call, voice communication may be converted into an instant message mode in order to achieve seamless integration between a voice and an instant message, which facilitates effective communication mode in a special case for users, or during the call, a session association mechanism may be started temporarily, that is, an association mechanism for sharing an image, a camera, a video, or the like is started temporarily such that two users on the call can share information such as the image or the video during the call.
According to the intelligent communication method provided in this embodiment of the present disclosure, in addition to a verification code, information required for establishment of a data link channel between a first terminal and a server may be further carried in a message that is sent by the first terminal to the server, which can be implemented, based on the disclosed content of the present disclosure, by a person skilled in the art. However, this is not the focus of the present disclosure, and details are not described again.
The following exemplarily describes, with reference to a specific application scenario, the intelligent communication method provided in the embodiments of the present disclosure. In addition, for a main description of technical terms and concepts that are related to the foregoing embodiment in the following embodiment, reference may be made to the foregoing embodiment.
Exemplarily, the following embodiments are mainly applied to a scenario in which there is a voice channel, established using a circuit switched domain, between a first terminal and a second terminal and in which the first terminal needs to establish a data link channel to the second terminal, and are mainly targeted for a process in which a server establishes the data link channel between the first terminal and the second terminal according to a feature code of the first terminal and a feature code of the second terminal. Further, referring to
According to a first intelligent communication method shown in
Step 501a: The first terminal generates the feature code of the first terminal, and generates, based on the feature code, a voice packet, where the voice packet includes the feature code.
Step 502a: The first terminal sends the voice packet to the second terminal using the voice channel.
Exemplarily, that the voice packet is generated based on the feature code includes that the first terminal packs the feature code as a data packet that is similar to a GSM voice, then loads the data packet into a normal voice by means of wavelet transform, and sends the normal voice to the second terminal.
Step 503a: The second terminal parses the voice packet, and uses the feature code that is obtained by means of parsing as the feature code of the second terminal.
Step 504a: The second terminal sends the feature code of the second terminal to the server using a signaling channel between the second terminal and the server.
Step 505a: The first terminal sends the feature code of the first terminal to the server.
Step 506a: After the server receives the feature code of the first terminal and the feature code of the second terminal that is sent by the second terminal, and verifies that the feature code of the first terminal is same as the feature code of the second terminal, the server confirms that security authentication for the first terminal and the second terminal is completed, and establishes the data link channel between the first terminal and the second terminal.
Optionally, when both the data link channel and the voice channel are established between the first terminal and the second terminal, the first terminal sends service data to the second terminal, and after step 506a, the method further includes following step.
Step 507a: The first terminal determines whether the service data is greater than a preset threshold, and sends the service data to the second terminal using the data link channel between the first terminal and the second terminal if the service data is greater than the preset threshold.
Further, to avoid unnecessary waste of network resources, service data needed to be transmitted may be screened herein. When the service data is greater than the preset threshold, it indicates that the service data is relatively large. To ensure that the service data can be transmitted successfully, the server needs to use the data link channel between the first terminal and the second terminal. Correspondingly, when the service data is less than the preset threshold, it indicates that the service data is relatively small, and a packet data network resource does not need to be wasted. By directly using the voice channel, the service data may be packed as a data packet that is similar to a GSM voice, and is carried in a normal voice and is sent to the second terminal. Optionally, when there is a wireless connection mode between the first terminal and the second terminal, transmission may also be performed in the wireless connection mode.
According to a first intelligent communication method shown in
Step 501b: The first terminal generates a feature code of the first terminal, and generates, based on the feature code, a voice packet, where the voice packet includes the feature code.
The feature code includes a random code and an identifier of the first terminal.
Step 502b: The first terminal sends the voice packet to the second terminal using a voice channel.
Step 503b: After receiving the feature code of the first terminal, the second terminal uses the random code in the feature code as a random code in a feature code of the second terminal, and generates the feature code of the second terminal according to the random code and a user ID of the second terminal.
Step 504b: The second terminal sends the generated feature code to the server using a signaling channel between the second terminal and the server.
Step 505b: The first terminal sends the feature code of the first terminal to the server using a signaling channel between the first terminal and the server.
Step 506b: After the server receives the feature code of the first terminal and the feature code of the second terminal, the server performs identity verification according to a user ID of the first terminal in the feature code of the first terminal and performs identity verification according to the user ID of the second terminal in the feature code of the second terminal, completes security authentication when it is verified that the random code in the feature code of the first terminal is the same as the random code in the feature code of the second terminal, and establishes the data link channel between the first terminal and the second terminal after the verification is completed.
Preferably, when the first terminal sends the feature code to the server, an Internet Protocol (IP) address of the first terminal is carried. Optionally, data service related information (such as a size of a data packet, a priority) that is required for establishment of a data link channel may be further carried, to establish a data link channel between the first terminal and the server. A similar condition may also be applied to the second terminal, and details are not described herein.
The user IDs may be terminal numbers (for example, mobile phone numbers) of the mobile terminals. Exemplarily, when both the feature code of the first terminal and the feature code of the second terminal are mobile phone numbers, the first terminal may use an existing comet (a push technology used in a web, which can enable a server to transfer updated information to a client in real time without a need of sending a request by the client) persistent connection such that the server uses the mobile phone number of the first terminal as a key value for the persistent connection, to establish a first data link between the first terminal and the server. Similarly, the second terminal also uses an existing comet persistent connection such that the server uses the mobile phone number of the second terminal as a key value for the persistent connection, to establish a second data link between the second terminal and the server.
Optionally, when both the data link channel and the voice channel are established between the first terminal and the second terminal, the first terminal sends service data to the second terminal, and after step 506b, the method further includes the following step.
Step 507b: The first terminal determines whether the service data is greater than a preset threshold, and sends the service data to the second terminal using the data link channel between the first terminal and the second terminal if the service data is greater than the preset threshold.
Further, to avoid unnecessary waste of network resources, service data needed to be transmitted may be screened herein. When the service data is greater than the preset threshold, it indicates that the service data is relatively large. To ensure that the service data can be transmitted successfully, the server needs to use the data link channel between the first terminal and the second terminal. Correspondingly, when the service data is less than the preset threshold, it indicates that the service data is relatively small, and a packet data network resource does not need to be wasted. By directly using the voice channel, the service data may be packed as a data packet that is similar to a GSM voice, and is loaded into a normal voice and is sent to the second terminal, or may be transmitted in a wireless connection mode.
Exemplarily, after the second terminal receives, using the data link channel between the first terminal and the second terminal, the service data sent by the first terminal, the second terminal may select a corresponding terminal application to display the service data according to a service data type of the service data, or may invoke a local third-party application client to display the service data. For example, third-party map software is invoked to display user location information, or third-party image player software is invoked to display a shared image.
Exemplarily, in this embodiment, a specific procedure in which the server establishes, for the first time, the data link channel between the first terminal and the second terminal is described as follows.
Step 508b: The first terminal sends the feature code of the first terminal to the server, after the server receives the feature code of the first terminal and the feature code of the second terminal, the server performs identity verification according to the user ID of the first terminal in the feature code of the first terminal, and after the verification is completed, establishes the first data link between the first terminal and the server.
Step 509b: The server performs identity verification according to the user ID of the second terminal in the feature code of the second terminal, and after the verification is completed, establishes the second data link between the second terminal and the server.
Step 510b: The first terminal sends the service data and the feature code of the second terminal to the server using the first data link such that the server determines, according to the random code that is shared by the first terminal with the second terminal and/or the feature code of the second terminal, that a receive end is the second terminal, and sends the service data to the second terminal using the second data link.
Exemplarily, after the server performs identity authentication on the first terminal and the second terminal when transmitting the service data for the first time, the first terminal and the second terminal may constitute the data link channel between the first terminal and the second terminal based on the first data link, the server, and the second data link. When transmitting service data subsequently, the first terminal may directly perform transmission using the service data channel between the first terminal and the second terminal.
An embodiment of the present disclosure provides an intelligent communication method, which may be implemented by the first terminal shown in
Step 601: The first terminal generates a first feature code of the first terminal.
Constitution of the first feature code of the first terminal includes a user ID of the first terminal and a first random code.
Step 602: The first terminal sends the first feature code to the second terminal using the voice channel.
Step 603: The first terminal receives a second feature code of the second terminal that is returned by the second terminal using the voice channel.
Constitution of the second feature code of the second terminal includes a user ID of the second terminal and a second random code. Exemplarily, the second random code of the second terminal may be the first random code in the first feature code that is sent by the first terminal, or may be a random code that is pre-configured on the second terminal.
Step 604: The first terminal performs security authentication on the second terminal according to the first feature code and the second feature code.
Optionally, step 604 further includes the following step.
Step 604b: When the first terminal confirms that the second random code is the same as the first random code and that the user ID of the second terminal is the same as a user ID of a peer end of the data link channel needed to be established by the first terminal currently, the first terminal confirms that the security authentication for the second terminal succeeds.
Step 605: After the first terminal confirms that the authentication succeeds, the first terminal establishes the data link channel between the first terminal and the second terminal in a wireless connection mode.
The wireless connection mode includes but is not limited to a P2P network connection mode, a WIFI connection mode, a BLUETOOTH connection mode, or the like.
Optionally, after step 605, the method further includes: the first terminal determines whether service data is greater than a preset threshold. The service data is sent to the second terminal using the data link channel between the first terminal and the second terminal if the service data is less than the preset threshold.
Further, to avoid unnecessary waste of network resources, the service data may be screened herein. When the service data is less than the preset threshold, it indicates that the service data is relatively small, and a packet data network resource does not need to be wasted. Transmission needs to be performed using the data link channel that is established between the first terminal and the second terminal in the wireless connection mode (such as a P2P network, BLUETOOTH, WIFI) provided shown in this embodiment. Correspondingly, when the service data is greater than the preset threshold, it indicates that the service data is relatively large. To ensure that the service data can be transmitted successfully, the server needs to establish the data link channel between the first terminal and the second terminal.
Optionally, when the first terminal receives, on the voice channel, service data of the second terminal, the method further includes the following steps.
Step a1: After receiving, on the voice channel, a voice packet that carries the service data of the second terminal, the first terminal decodes the voice packet to obtain the service data that is sent by the second terminal.
Step a2: The first terminal displays the service data of the second terminal that is obtained by means of decoding.
Optionally, step a2 further includes: the service data is transferred, according to a type of the service data of the second terminal, to a corresponding application on the first terminal, for displaying. Exemplarily, after receiving the voice packet of the service data that is sent by the second terminal, the first terminal decodes the voice packet to obtain the service data, and displays the service data according to the service data type of the service data, or may invoke a local third-party application client to display the service data. For example, third-party map software is invoked to display user location information, or third-party image player software is invoked to display a shared image.
Exemplarily, the first terminal encodes, according to an encoding rule, the service data into a data packet that is similar to a GSM voice and that is transmittable on the voice channel, then loads the data packet into a normal voice by means of wavelet transform, and sends the normal voice to the second terminal. Correspondingly, after receiving the data packet, the second terminal parses the related packet according to a location that is agreed in advance, to obtain the service data that is sent by the first terminal. Further, when packing the service data, the first terminal may first convert the service data into special audio information, then encode, in a voice encoding mode, the special audio information into the data packet that is similar to the GSM voice, and finally load the data packet into the normal voice and send the data packet to the second terminal. The special audio information may be obtained by encoding the service data according to a manually-defined rule. For example, an English letter, data, and a special character are represented using special audio. In this way, during parsing, the second terminal may directly do restoration in direct comparison with a local audio library of the second terminal, or may use an amplitude law for audio analysis, and use a special amplitude law to carry the service data such that the second terminal parses the special audio information according to a preset law to obtain the service data, or may use a special audio processing means to directly convert service data needed to be transmitted into audio, and overlap the audio to a conventional voice signal such that the second terminal directly parses the special audio information to obtain the service data.
An embodiment of the present disclosure provides an intelligent communication method. As shown in
Step 701: A first terminal obtains service data.
Step 702: The first terminal determines whether the service data is greater than a preset threshold.
If the service data is greater than the preset threshold, a data link channel passing through a server is established by performing steps 704a1 to 704a4 to implement the intelligent communication method in the present disclosure.
Step 703: If the service data is less than or equal to the preset threshold, the first terminal determines whether to start a wireless access device such as WIFI or BLUETOOTH.
If the wireless access device is started, a data link channel between two terminals is established by performing steps 704b1 to 704b6 to implement the intelligent communication method in the present disclosure. If the wireless access device is not started, step 704c1 is performed to implement the intelligent communication method in the present disclosure using a voice channel.
Steps 704a1 to 704a4 are shown as follows.
Step 704a1: The first terminal obtains a feature code of the first terminal.
Constitution of the feature code of the first terminal includes one or more of the following elements of a user ID of the first terminal, a user ID of a second terminal, or a random code.
Step 704a2: The first terminal sends the feature code to the second terminal using the voice channel such that the second terminal sends the received feature code to the server.
Step 704a3: The first terminal sends the feature code of the first terminal to the server such that after the server receives the feature code of the first terminal and the feature code of the second terminal that is sent by the second terminal, the server completes security authentication according to the feature code of the first terminal and the feature code of the second terminal, and establishes a data link channel between the first terminal and the second terminal.
Constitution of the feature code of the second terminal includes one or more of the user ID of the second terminal or the random code.
Step 704a4: The first terminal sends the service data to the second terminal using the data link channel.
It should be noted that, for the content described in steps 704b1 to 704b4, details have been described in the embodiments corresponding to
Step 704c1 is shown as follows.
Step 704c1: The first terminal encodes, according to an encoding rule, the service data into a voice packet transmittable on the voice channel, and transmits the voice packet to a second terminal using the voice channel such that after receiving the voice packet, the second terminal obtains the service data by means of decoding.
It should be noted that, for the content described in step 704c1, details have been described in the embodiment corresponding to
An embodiment of the present disclosure provides an intelligent communications system in order to implement the intelligent communication methods provided in the embodiments shown in
The first terminal 81 sends, to the server 82, a feature code that is used for security verification when the data link channel is to be established, and sends a voice-encoded feature code to the second terminal 83 using the voice channel.
The second terminal 83 obtains the feature code of the second terminal 83 according to the received feature code of the first terminal 81.
After the server 82 receives the feature code of the first terminal 81 and the feature code of the second terminal 83 that is sent by the second terminal 83, the server 82 determines, according to the feature code of the first terminal 81 and the feature code of the second terminal 83, that the security authentication succeeds, and establishes the data link channel between the first terminal 81 and the second terminal 83.
Optionally, that the first terminal 81 sends the feature code to the second terminal 83 using the voice channel, and that the second terminal 83 obtains the feature code of the second terminal 83 according to the received feature code of the first terminal further include that the first terminal 81 generates, according to an encoding rule and the feature code of the first terminal 81, a voice packet transmittable on the voice channel, and after receiving the voice packet, the second terminal 83 obtains the feature code of the first terminal by means of decoding, uses the feature code of the first terminal 81 as the feature code of the second terminal 83, and forwards the feature code of the second terminal 83 to the server 82.
Optionally, if the feature code of the first terminal 81 includes a user ID of the first terminal 81 and a random code, and the feature code of the second terminal 83 includes a user ID of the second terminal 83 and the random code, the security authentication according to the feature code of the first terminal 81 and the feature code of the second terminal 83 is determined succeed when the server 82 verifies that information included in the received feature code of the first terminal 81 is the same as the random code included in the received feature code of the second terminal 83, the server 82 determines that security authentication for the first terminal 81 and the second terminal 83 succeeds, or after the server 82 receives the feature code of the first terminal 81 and the feature code of the second terminal 83, the server 82 performs identity verification according to the user ID of the first terminal 81 in the feature code of the first terminal 81, performs identity verification according to the user ID of the second terminal 83 in the feature code of the second terminal 83, and when the random code included in a verification code of the first terminal is the same as the random code included in a verification code of the second terminal, completes security authentication for establishment of the data link channel. For other features, reference is made to the method embodiments, and details are not described herein. An embodiment of the present disclosure provides a first terminal, which may be configured to implement the first terminal in the embodiments shown in
As shown in
The bus 91 is configured to transfer data and signaling among the transmitter 93, the receiver 94 and the processor 92.
The processor 92 is configured to generate a feature code of the first terminal 9, and generate, based on the feature code, a voice packet, where the voice packet includes the feature code.
The transmitter 93 sends the voice packet to the second terminal using the voice channel, and is further configured to send the feature code of the first terminal 9 to a server, for security authentication.
The receiver 94 is configured to receive a message indicating that the security authentication succeeds, and the processor 92 establishes a data link channel between the first terminal 9 and the second terminal.
For a related optional or preferable processing means related to the processor 92, reference may be made to the apparatus embodiments corresponding to
An embodiment of the present disclosure provides a first terminal, which may be configured to implement the first terminal in the embodiments shown in
As shown in
The bus 101 is configured to transfer data and signaling among the transmitter 103, the receiver 104 and the processor 102.
The processor 102 is configured to obtain a first feature code of the first terminal 10.
The transmitter 103 is configured to send the first feature code to a second terminal using a voice channel.
The receiver 104 is configured to receive, using a communications unit, a second feature code of the second terminal that is returned by the second terminal using the voice channel.
The processor 102 is further configured to perform security authentication on the second terminal according to the first feature code and the second feature code, and establish a data link channel between the first terminal 10 and the second terminal in a wireless connection mode after it is confirmed that the authentication succeeds.
This embodiment of the present disclosure provides a first terminal, which may be configured to implement the first terminal in the embodiment shown in
It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, division of the foregoing function modules is used as an example for illustration. In actual application, the foregoing functions can be allocated to different function modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or some of the functions described above. For a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the module or unit division is merely logical function division and may be other division in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate. Parts displayed as units may or may not be physical units, and may be located in one position or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present application essentially, or the part contributing to the prior art, or all or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or a part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes any medium that can store program code, such as a universal serial bus (USB) flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
The foregoing descriptions are merely specific implementation manners of the present disclosure, but are not intended to limit the protection scope of the present disclosure. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present disclosure shall fall within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410152546.9 | Apr 2014 | CN | national |
This application is a continuation of international application number PCT/CN2014/087634 filed on Sep. 28, 2014, which claims priority to Chinese patent application number 201410152546.9 filed on Apr. 16, 2014. The disclosures of the aforementioned applications are incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/087634 | Sep 2014 | US |
Child | 15293810 | US |