CN108551459B - Method and device for communication between devices and readable storage medium - Google Patents

Method and device for communication between devices and readable storage medium Download PDF

Info

Publication number
CN108551459B
CN108551459B CN201810779040.9A CN201810779040A CN108551459B CN 108551459 B CN108551459 B CN 108551459B CN 201810779040 A CN201810779040 A CN 201810779040A CN 108551459 B CN108551459 B CN 108551459B
Authority
CN
China
Prior art keywords
terminal
communication
user
received
communication request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810779040.9A
Other languages
Chinese (zh)
Other versions
CN108551459A (en
Inventor
李月
王熙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810779040.9A priority Critical patent/CN108551459B/en
Publication of CN108551459A publication Critical patent/CN108551459A/en
Application granted granted Critical
Publication of CN108551459B publication Critical patent/CN108551459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure relates to a method, an apparatus, and a readable storage medium for inter-device communication, which is applied to a first terminal, and first detects whether a communication request sent by a third terminal is received during communication between the first terminal and a second terminal, then interrupts communication with the second terminal and communicates with the third terminal using a communication component of the first terminal when the communication request sent by the third terminal is received, and finally sends the communication request to the second terminal to resume the communication with the second terminal when the communication end of the first terminal and the third terminal is detected, that is, after the communication with the third terminal is ended by the first terminal, the first terminal can automatically dial back to the second terminal that has been suddenly interrupted, reducing the time taken when the first terminal dials back to the second terminal after the communication with the third terminal is ended, the quality of the communication of the user using the terminal is improved, and the bad experience of the user using the terminal is reduced.

Description

Method and device for communication between devices and readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for inter-device communication, and a readable storage medium.
Background
With the popularization of mobile terminals and social networks, people have become very popular in daily life to perform real-time communication through terminals. In particular, the number of terminals used has increased with the development of wechat and QQ software. Therefore, depending on the number of people using the system, the third-party development and application of WeChat and QQ are continuously expanded, and users can chat with friends in WeChat and QQ through voice or video.
In general, when a first user and a second user are in a conversation state, or perform voice chat or video chat by using WeChat and QQ software, a phone of a third user may suddenly enter or receive a voice or video chat request of the third user, at this time, if the first user chooses to answer the phone of the third user or receives the voice or video chat request of the third user, communication with the second user is interrupted, and after the communication between the first user and the third user is finished, when the first user communicates with the second user again, the second user needs to dial back the phone, or dial back the voice chat or video chat request, so as to achieve communication with the second user.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a readable storage medium for communication between devices.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for inter-device communication, which is applied to a first terminal, and includes:
detecting whether a communication request sent by a third terminal is received or not in the process of communication between the first terminal and the second terminal;
when the communication request sent by the third terminal is received, the communication with the second terminal is interrupted, and the communication component of the first terminal is utilized to communicate with the third terminal;
and when detecting that the communication between the first terminal and the third terminal is finished, sending the communication request to the second terminal to recover the communication with the second terminal.
Optionally, when it is detected that the communication between the first terminal and the third terminal is ended, sending the communication request to the second terminal to resume the communication with the second terminal includes:
determining whether a communication resuming operation input by a user of the first terminal is detected when the first terminal is detected to end communication with the third terminal, wherein the communication resuming operation is used for resuming communication with the second terminal;
and when the communication restoring operation input by the user of the first terminal is detected, sending the communication request to the second terminal to restore the communication with the second terminal.
Optionally, the method further comprises:
detecting whether the communication request sent by a fourth terminal is received or not in the process of communication between the first terminal and the third terminal;
when the communication request sent by the fourth terminal is received, determining the priority of the user information corresponding to the second terminal and the priority of the user information corresponding to the fourth terminal;
when detecting that the communication between the first terminal and the third terminal is ended, sending the communication request to the second terminal to resume the communication with the second terminal, including:
and when the first terminal and the third terminal are detected to be finished in communication and the priority of the user information corresponding to the second terminal is higher than that of the user information corresponding to the fourth terminal, sending the communication request to the second terminal so as to recover the communication with the second terminal.
Optionally, after the communication with the second terminal is interrupted and the communication component of the first terminal is utilized to communicate with the third terminal when the communication request sent by the third terminal is received, the method further includes:
and sending prompt information to the second terminal to prompt a user corresponding to the second terminal that the first terminal is in a communication state.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for inter-device communication, which is applied to a first terminal, and includes:
the first detection module is configured to detect whether a communication request sent by a third terminal is received or not in the process of communication between the first terminal and the second terminal;
an interruption module configured to interrupt communication with the second terminal and communicate with the third terminal by using a communication component of the first terminal when the communication request sent by the third terminal is received;
a first sending module configured to send the communication request to the second terminal to resume communication with the second terminal when detecting that the first terminal ends communication with the third terminal.
Optionally, the first sending module comprises:
a determination sub-module configured to determine whether a resume communication operation input by a user of the first terminal is detected when the first terminal is detected to end communication with the third terminal, the resume communication operation being for resuming communication with the second terminal;
a first transmitting sub-module configured to transmit the communication request to the second terminal to resume communication with the second terminal upon detection of the resume communication operation input by the user of the first terminal.
Optionally, the apparatus further comprises:
the second detection module is configured to detect whether the communication request sent by a fourth terminal is received or not in the process of communication between the first terminal and the third terminal;
a determining module configured to determine, when the communication request sent by the fourth terminal is received, the priority levels of the user information corresponding to the second terminal and the user information corresponding to the fourth terminal;
the first transmitting module includes:
and the second sending submodule is configured to send the communication request to the second terminal to recover the communication with the second terminal when the first terminal and the third terminal are detected to be finished communicating and the priority of the user information corresponding to the second terminal is higher than the priority of the user information corresponding to the fourth terminal.
Optionally, the apparatus further comprises:
the second sending module is configured to send prompt information to the second terminal to prompt a user corresponding to the second terminal that the first terminal is in a communication state.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for inter-device communication, which is applied to a first terminal, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the steps of the method for implementing inter-device communication as provided in the first aspect of the fair embodiment are performed.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method for inter-device communication provided by the first aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method for communication between devices provided by the disclosed embodiment is applied to a first terminal, firstly, during the communication between the first terminal and a second terminal, whether a communication request sent by a third terminal is received is detected, then, when the communication request sent by the third terminal is received, the communication with the second terminal is interrupted, and the communication component of the first terminal is utilized to communicate with the third terminal, and finally, when the communication between the first terminal and the third terminal is detected to be finished, the communication request is sent to the second terminal to recover the communication with the second terminal, namely, after the communication between the first terminal and the third terminal is finished, the first terminal can automatically dial back to the second terminal which is suddenly interrupted, the time spent when the first terminal dials back to the second terminal after finishing the communication with the third terminal is reduced, and the quality of the communication between users using the terminals is improved, and the bad experience of the user in using the terminal is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow chart illustrating a method of inter-device communication in accordance with an example embodiment.
Fig. 2 is another flow chart illustrating a method of inter-device communication in accordance with an example embodiment.
FIG. 3 is a schematic diagram illustrating a first terminal interface according to an example embodiment.
Fig. 4 is another flow chart illustrating a method of inter-device communication in accordance with an example embodiment.
Fig. 5 is another flow chart illustrating a method of inter-device communication in accordance with an example embodiment.
FIG. 6 is a block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment.
FIG. 7 is another block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment.
FIG. 8 is another block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment.
FIG. 9 is another block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment.
FIG. 10 is a block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
In order to solve the problem that after the first terminal finishes the communication with the third terminal, it takes some time to dial back to the second terminal, which results in the fact that the users cannot communicate in time, the second terminal is used for representing the terminal which is interrupted suddenly when the first terminal and the third terminal establish communication. The disclosed embodiment provides a method, a device and a readable storage medium for communication between devices, wherein the method is applied to a first terminal, when the first terminal and a second terminal are in the communication process and a communication request of a third terminal is received, the communication with the second terminal is suddenly interrupted, a communication connection is established with the third terminal, and after the first terminal finishes the communication with the third terminal, the communication with the second terminal is recovered, so that the time spent when the first terminal dials back to the second terminal can be avoided, and a user can conveniently communicate with the user of the second terminal in time.
Referring to fig. 1, fig. 1 is a flow chart illustrating a method of inter-device communication in accordance with an example embodiment. As shown in fig. 1, the method for inter-device communication provided by the embodiment of the present disclosure is applied to a first terminal, and includes the following steps.
In step S11, during the communication between the first terminal and the second terminal, it is detected whether a communication request sent by a third terminal is received.
In step S12, upon receiving the communication request sent by the third terminal, the communication with the second terminal is interrupted, and the communication component of the first terminal is utilized to communicate with the third terminal.
In step S13, upon detecting that the first terminal has finished communicating with the third terminal, the communication request is sent to the second terminal to resume communication with the second terminal.
In an implementation scenario of the method for inter-device communication provided by the embodiment of the present disclosure, at least three terminals are involved, specifically, taking the three terminals as an example, the three terminals are respectively a first terminal, a second terminal and a third terminal, the three terminals may be a smart phone, a smart band, a tablet computer and a device having at least one of telephone communication, voice communication and video communication functions, and the first terminal, the second terminal and the third terminal do not belong to the same terminal. The first terminal and the second terminal are in a communication process, that is, the communication function of the first terminal is in a state occupied by the second terminal, at this time, the third terminal sends a communication request to the first terminal, and since the communication function of the first terminal can only allow one terminal to be occupied in the same time period, in the process of communication between the first terminal and the second terminal, when the communication request of the third terminal is received, the communication with the second terminal is interrupted, and the communication component of the first terminal is utilized to communicate with the third terminal. However, since the second terminal is a terminal that is suddenly interrupted, the communication between the user of the first terminal and the user of the second terminal may not be completely ended, and after the communication between the first terminal and the third terminal is ended, the communication with the second terminal needs to be resumed to ensure that the user of the first terminal and the user of the second terminal continue to communicate.
First, in step S11, when the first terminal is in communication with the second terminal, the communication function of the first terminal is in a state occupied by the second terminal, that is, the first terminal and the second terminal are in any one of a call state, a voice chat state and a video chat state, and accordingly, when the first terminal and the second terminal are in the call state or the voice chat state, the second terminal is communicating with the second terminal by using an earphone and a microphone of the first terminal; when the first terminal and the second terminal are in a video chat state, the second terminal communicates with the second terminal by using an earphone, a microphone and a camera of the first terminal. When the first terminal and the second terminal are in any one of the three states, detecting whether a communication request sent by a third terminal is received in real time, wherein the communication request is used for representing a request for the third terminal to communicate with the first terminal.
Then, the first terminal establishes communication with the third terminal when receiving a communication request sent by the third terminal, and because the first terminal can only communicate with one terminal by using the communication component of the first terminal at the same time, the first terminal interrupts the communication with the second terminal and communicates with the third terminal by using the communication component of the first terminal, at this time, the second terminal is in an interrupted state.
And finally, when the communication between the first terminal and the third terminal is detected to be finished, namely the communication function of the first terminal is in an idle state, the first terminal recovers the communication with the second terminal so as to ensure that the user of the first terminal and the user of the second terminal continue to communicate.
Referring specifically to fig. 2, fig. 2 is a flow chart illustrating a method of inter-device communication in accordance with an example embodiment. As shown in fig. 2, when it is detected that the communication between the first terminal and the third terminal is ended, the method sends the communication request to the second terminal to resume the communication with the second terminal, and specifically includes the following steps.
In step S131, upon detecting that the first terminal and the third terminal are in communication end, it is determined whether a resume communication operation input by a user of the first terminal is detected, the resume communication operation being for resuming communication with the second terminal.
In step S132, upon detecting the communication resuming operation input by the user of the first terminal, the communication request is transmitted to the second terminal to resume communication with the second terminal.
In the embodiment of the present disclosure, after ending the communication with the third terminal, the first terminal resumes the communication with the second terminal, optionally, the communication with the second terminal is resumed in one of and not limited to the following two possible embodiments: the first terminal automatically resumes communication with the second terminal after ending communication with the third terminal; a second possible implementation is: the first terminal may resume communication with the second terminal according to the user's operation. The second possible implementation is specifically as follows: after the first terminal finishes communication with the third terminal, the first terminal determines whether the first terminal detects a recovery communication operation input by a user of the first terminal, the recovery communication operation is used for recovering communication with the second terminal, and when the recovery communication operation input by the user of the first terminal is detected, a communication request is sent to the second terminal to recover communication with the second terminal.
For example, as shown in fig. 3, after the first terminal finishes communication with the third terminal, an editable interface of "whether to resume communication with the second terminal" may be displayed in the interface of the first terminal, where in the embodiment of the present disclosure, the second terminal is an interrupted party, in the interface, the user may select whether to resume communication with the interrupted party according to actual conditions, and when the user selects a "yes" button, the first terminal may detect a communication resuming operation input by the user, and further send a communication request to the interrupted party to resume communication with the second terminal.
In the embodiment of the present disclosure, when detecting a communication resuming operation input by a user, a first terminal sends a communication request to a second terminal according to the communication resuming operation to resume communication with the second terminal, and when not detecting a communication resuming operation input by a user, it indicates that the user of the first terminal does not need to communicate with the user of the second terminal any more, so that the first terminal does not send a communication request to the second terminal any more.
The method for communication between devices provided by the disclosed embodiment is applied to a first terminal, firstly, during the communication between the first terminal and a second terminal, whether a communication request sent by a third terminal is received is detected, then, when the communication request sent by the third terminal is received, the communication with the second terminal is interrupted, and the communication component of the first terminal is utilized to communicate with the third terminal, and finally, when the communication between the first terminal and the third terminal is detected to be finished, the communication request is sent to the second terminal to recover the communication with the second terminal, namely, after the communication between the first terminal and the third terminal is finished, the first terminal can automatically dial back to the second terminal which is suddenly interrupted, the time spent when the first terminal dials back to the second terminal after finishing the communication with the third terminal is reduced, and the quality of the communication between users using the terminals is improved, and the bad experience of the user in using the terminal is reduced.
Optionally, please refer to fig. 4 for another flowchart illustrating a method of inter-device communication according to an example embodiment. As shown in fig. 4, the method further includes the following steps.
In step S14, it is detected whether the communication request sent by a fourth terminal is received during the communication between the first terminal and the third terminal.
In step S15, when the communication request sent by the fourth terminal is received, the priority levels of the user information corresponding to the second terminal and the user information corresponding to the fourth terminal are determined.
Accordingly, step S13 specifically includes step S133.
In step S133, when it is detected that the communication between the first terminal and the third terminal is ended and the priority of the user information corresponding to the second terminal is greater than the priority of the user information corresponding to the fourth terminal, the communication request is sent to the second terminal to resume the communication with the second terminal.
It should be noted that when the phone number of the user of the first terminal is known, anyone using the terminal can talk to the first user, or anyone in the WeChat and QQ contact list of the first user can send a voice chat or video chat request to the first user. In general, during a communication between a first terminal and a third terminal, a communication request transmitted by another terminal (hereinafter, referred to as a fourth terminal) may be received, and therefore, during the communication between the first terminal and the third terminal, the first terminal needs to detect whether the communication request transmitted by the fourth terminal is received in real time, and when detecting that the communication request transmitted by the fourth terminal exists, determine the priority levels of the user information corresponding to the fourth terminal and the user information corresponding to the interrupted second terminal. If the importance of the content of the communication between the fourth terminal and the first terminal is higher than that of the content of the communication between the second terminal and the first terminal, after the communication between the first terminal and the third terminal is finished, the first terminal still preferably recovers the communication with the second terminal, the use experience of the first user corresponding to the first terminal will be influenced, and even more, the user of the first terminal will be influenced to obtain important information in time. Therefore, in the embodiment of the present disclosure, the first user may set priorities for a plurality of contact groups included in the first terminal in advance, form a priority list, store the priority list in the first terminal, and after knowing user information for sending a communication request, may determine a priority corresponding to a group in which the user is located.
Specifically, when the first terminal receives a communication request sent by the fourth terminal, the user information for the fourth terminal may be determined according to the communication request, the priority levels of the user information corresponding to the fourth terminal and the user information corresponding to the interrupted second terminal may be determined according to the user information for the fourth terminal and the user information corresponding to the second terminal in a priority level list pre-stored in the first terminal, and the first terminal determines the terminal that has a priority to resume communication according to the relationship between the determined priority levels.
Optionally, when it is determined that the priority of the user information of the interrupted second terminal is greater than the priority of the user information of the fourth terminal and the communication between the first terminal and the third terminal is ended, a communication request is sent to the second terminal to resume the communication with the second terminal. Correspondingly, if the priority of the interrupted user information of the second terminal is determined to be smaller than the priority of the user information of the fourth terminal, when the communication between the first terminal and the third terminal is detected to be finished, the communication request is preferentially sent to the fourth terminal so as to establish the communication with the fourth terminal.
For example, assuming that a user sets a priority list of the first terminal as family > co-workers > friends for a contact group stored in the first terminal, a group in which a user corresponding to the second terminal is located is a co-worker, and a group in which a user corresponding to the fourth terminal is located is a friend, since the priority of the user corresponding to the second terminal is greater than that of the user corresponding to the fourth terminal, the first terminal preferentially sends a communication request to the second terminal after finishing communication with the third terminal, so as to resume communication with the second terminal.
By adopting the technical scheme, the user can set a priority list in the terminal in advance, and when a communication request sent by other terminals (fourth terminals) is detected in the communication process of the first terminal and the third terminal, the user information corresponding to the fourth terminal can be compared with the user information corresponding to the interrupted second terminal to determine the priority size relationship. When the first terminal finishes the communication with the third terminal and the priority of the interrupted user information corresponding to the second terminal is higher than that of the user corresponding to the fourth terminal, the first terminal sends a communication request to the second terminal to recover the communication with the second terminal, namely, the first terminal can automatically select to communicate with an important user, so that the intellectualization of the terminal can be improved and the requirement of the user for preferentially communicating with important contacts can be met.
Optionally, please refer to fig. 5 is another flowchart illustrating a method of inter-device communication according to an example embodiment. As shown in fig. 5, after step S12, the method further includes step S16.
In step S16, a prompt message is sent to the second terminal to prompt a user corresponding to the second terminal that the first terminal is in a communication state.
As described above, the communication component on the terminal can only communicate with one terminal at the same time, and therefore, when the first terminal and the second terminal are in a communication state and receive a communication request from the third terminal, the communication with the second terminal is interrupted and the communication with the third terminal is performed, and because the interrupted second terminal may not know whether the communication is interrupted due to a network reason or any other reason, the communication component continues to send a call, a voice chat or a video chat request to the user, which may cause a communication obstacle between users and affect the experience of the user in communicating with the terminal. Therefore, in the embodiment of the present disclosure, when the first terminal receives the communication request of the third terminal and interrupts communication with the second terminal, a prompt message is sent to the interrupted second terminal to prompt a user of the second terminal that the first terminal is in a communication state, where the communication state includes: any one of a telephone call, a voice call, and a video call.
Wherein, the prompt message can be a terminal default prompt message or a prompt message edited by a user according to the actual situation, when the first user sets itself according to the requirement, the time for the first terminal to finish the communication with the third terminal can be estimated by referring to the estimated time length of the first user to communicate with the third terminal, the time message is contained in the prompt message, and the prompt message containing the time message is sent to the interrupted second terminal, so that the user corresponding to the second terminal can know the time for the first terminal to finish the communication, the user corresponding to the second terminal can receive the communication request sent by the first terminal, and further the first terminal can recover the communication with the second terminal, therefore, by adopting the technical scheme, the first user can edit the prompt message sent to the interrupted terminal according to the self requirement, the edited prompt message can better inform the reason that the interrupted party is interrupted or inform the interrupted party of the time for finishing the communication with the third terminal, the prompt message is edited in real time, and the prompt message can be more flexibly sent to the interrupted party.
Based on the same inventive concept, the embodiment of the disclosure also provides a device for communication between devices. Referring to fig. 6, fig. 6 is a block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment. As shown in fig. 6, the apparatus 60 includes:
a first detection module 61, configured to detect whether a communication request sent by a third terminal is received in a process of communication between the first terminal and a second terminal;
an interrupting module 62 configured to interrupt communication with the second terminal and communicate with the third terminal using a communication component of the first terminal upon receiving the communication request sent by the third terminal;
a first sending module 63 configured to send the communication request to the second terminal to resume communication with the second terminal when detecting that the first terminal and the third terminal are finished communicating.
Optionally, referring to fig. 7, fig. 7 is another block diagram illustrating an apparatus for inter-device communication according to an example embodiment. As shown in fig. 7, the first transmitting module 63 includes:
a determination sub-module 631 configured to determine whether a resume communication operation input by a user of the first terminal for resuming communication with the second terminal is detected when the end of communication between the first terminal and the third terminal is detected;
a first sending sub-module 632 configured to send the communication request to the second terminal to resume communication with the second terminal when the communication resuming operation input by the user of the first terminal is detected.
Optionally, referring to fig. 8, fig. 8 is another block diagram illustrating an apparatus for inter-device communication according to an example embodiment. As shown in fig. 8, the apparatus 60 further includes:
a second detecting module 64, configured to detect whether the communication request sent by a fourth terminal is received in the process of the first terminal communicating with the third terminal;
a determining module 65, configured to determine, when receiving the communication request sent by the fourth terminal, priority levels of the user information corresponding to the second terminal and the user information corresponding to the fourth terminal;
the first transmission module 63 includes:
a second sending sub-module 633 configured to, when it is detected that the communication between the first terminal and the third terminal is ended and the priority of the user information corresponding to the second terminal is greater than the priority of the user information corresponding to the fourth terminal, send the communication request to the second terminal to resume the communication with the second terminal.
Optionally, referring to fig. 9, fig. 9 is another block diagram illustrating an apparatus for inter-device communication according to an example embodiment. As shown in fig. 9, the apparatus 60 further includes:
a second sending module 66 configured to send a prompt message to the second terminal to prompt a user corresponding to the second terminal that the first terminal is in a communication state.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of inter-device communication provided by the present disclosure.
FIG. 10 is a block diagram illustrating an apparatus for inter-device communication in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the method of inter-device communication described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods of inter-device communication.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 to perform the above-described method of inter-device communication is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A method for communication between devices, applied to a first terminal, includes:
detecting whether a communication request sent by a third terminal is received or not in the process of communication between the first terminal and the second terminal;
when the communication request sent by the third terminal is received, the communication with the second terminal is interrupted, and the communication component of the first terminal is utilized to communicate with the third terminal;
detecting whether the communication request sent by a fourth terminal is received or not in the process of communication between the first terminal and the third terminal;
when the communication request sent by the fourth terminal is received, determining the priority of the user information corresponding to the second terminal and the priority of the user information corresponding to the fourth terminal;
and when the first terminal and the third terminal are detected to be finished in communication and the priority of the user information corresponding to the second terminal is higher than that of the user information corresponding to the fourth terminal, sending the communication request to the second terminal so as to recover the communication with the second terminal.
2. The method according to claim 1, wherein upon detecting that the first terminal ends communication with the third terminal, sending the communication request to the second terminal to resume communication with the second terminal comprises:
determining whether a communication resuming operation input by a user of the first terminal is detected when the first terminal is detected to end communication with the third terminal, wherein the communication resuming operation is used for resuming communication with the second terminal;
and when the communication restoring operation input by the user of the first terminal is detected, sending the communication request to the second terminal to restore the communication with the second terminal.
3. The method according to claim 1, wherein after the communication with the second terminal is interrupted and the communication component of the first terminal is utilized to communicate with the third terminal when the communication request sent by the third terminal is received, the method further comprises:
and sending prompt information to the second terminal to prompt a user corresponding to the second terminal that the first terminal is in a communication state.
4. An apparatus for inter-device communication, applied to a first terminal, comprising:
the first detection module is configured to detect whether a communication request sent by a third terminal is received or not in the process of communication between the first terminal and the second terminal;
an interruption module configured to interrupt communication with the second terminal and communicate with the third terminal by using a communication component of the first terminal when the communication request sent by the third terminal is received;
the second detection module is configured to detect whether the communication request sent by a fourth terminal is received or not in the process of communication between the first terminal and the third terminal;
a determining module configured to determine, when the communication request sent by the fourth terminal is received, the priority levels of the user information corresponding to the second terminal and the user information corresponding to the fourth terminal;
and the first sending module is configured to send the communication request to the second terminal to recover the communication with the second terminal when detecting that the communication between the first terminal and the third terminal is finished and the priority of the user information corresponding to the second terminal is higher than the priority of the user information corresponding to the fourth terminal.
5. The apparatus of claim 4, wherein the first sending module comprises:
a determination sub-module configured to determine whether a resume communication operation input by a user of the first terminal is detected when the first terminal is detected to end communication with the third terminal, the resume communication operation being for resuming communication with the second terminal;
a first transmitting sub-module configured to transmit the communication request to the second terminal to resume communication with the second terminal upon detection of the resume communication operation input by the user of the first terminal.
6. The apparatus of claim 4, further comprising:
the second sending module is configured to send prompt information to the second terminal to prompt a user corresponding to the second terminal that the first terminal is in a communication state.
7. An apparatus for inter-device communication, applied to a first terminal, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the steps of implementing the method of any one of claims 1-3.
8. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 3.
CN201810779040.9A 2018-07-16 2018-07-16 Method and device for communication between devices and readable storage medium Active CN108551459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810779040.9A CN108551459B (en) 2018-07-16 2018-07-16 Method and device for communication between devices and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810779040.9A CN108551459B (en) 2018-07-16 2018-07-16 Method and device for communication between devices and readable storage medium

Publications (2)

Publication Number Publication Date
CN108551459A CN108551459A (en) 2018-09-18
CN108551459B true CN108551459B (en) 2021-09-14

Family

ID=63492372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810779040.9A Active CN108551459B (en) 2018-07-16 2018-07-16 Method and device for communication between devices and readable storage medium

Country Status (1)

Country Link
CN (1) CN108551459B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110337079B (en) * 2019-07-04 2021-10-22 中国联合网络通信集团有限公司 5G network communication method, terminal, network equipment and server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5519767A (en) * 1995-07-20 1996-05-21 At&T Corp. Voice-and-data modem call-waiting
US20050069117A1 (en) * 2003-09-29 2005-03-31 Fernandez Christopher Lawrence Method for notifying an end user that a party has returned to a communication session
CN102083011B (en) * 2009-11-26 2014-05-07 Tcl集团股份有限公司 Intercommunication system and call processing method thereof for multiple calling terminals
CN101997999A (en) * 2010-11-16 2011-03-30 华为终端有限公司 Network equipment, called terminal and method for disposing third-party call
CN103249018A (en) * 2012-02-08 2013-08-14 联想(北京)有限公司 Switching method for multi-party call and terminal equipment
CN103167453B (en) * 2013-01-28 2016-08-03 青岛朗讯科技通讯设备有限公司 A kind of implementation method of forced-interrupt call service

Also Published As

Publication number Publication date
CN108551459A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN106961526B (en) Notification message display method and device and electronic equipment
EP3136699A1 (en) Method and device for connecting external equipment
CN106792937B (en) Method and device for processing call request
EP3176984B1 (en) Method and device for processing information
US20180091328A1 (en) Prompting method, prompting device and prompting system
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
RU2615683C2 (en) Method and device for communication identification performance
CN106170141B (en) Mobile terminal network switching method and device
EP3163855B1 (en) Method and device for making call
CN105227426B (en) Application interface switching method and device and terminal equipment
CN107371222B (en) Virtual card disabling method and device
CN110933773B (en) Link monitoring method and device
CN110637502B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN108551459B (en) Method and device for communication between devices and readable storage medium
CN109739415B (en) Session switching method and device
CN107277422B (en) Video call method, device and system
WO2022120540A1 (en) Connection establishment method and apparatus
CN114124866A (en) Session processing method, device, electronic equipment and storage medium
US11895659B2 (en) Control instruction transmission method, base station, terminal and storage medium
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN106170038B (en) Recording method and device
CN111722919A (en) Method and device for running background application program, storage medium and electronic equipment
EP3276929B1 (en) Method and device for obtaining a call record
EP4344164A1 (en) Call processing method, storage medium, and electronic device
CN112312498B (en) Method and device for switching network and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant