CN107172719B - Method for establishing a communication connection - Google Patents

Method for establishing a communication connection Download PDF

Info

Publication number
CN107172719B
CN107172719B CN201710502306.0A CN201710502306A CN107172719B CN 107172719 B CN107172719 B CN 107172719B CN 201710502306 A CN201710502306 A CN 201710502306A CN 107172719 B CN107172719 B CN 107172719B
Authority
CN
China
Prior art keywords
client
communication connection
wireless communication
server
talkback
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
CN201710502306.0A
Other languages
Chinese (zh)
Other versions
CN107172719A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710502306.0A priority Critical patent/CN107172719B/en
Publication of CN107172719A publication Critical patent/CN107172719A/en
Application granted granted Critical
Publication of CN107172719B publication Critical patent/CN107172719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method for establishing communication connection, belonging to the technical field of communication. The method comprises the following steps: the method comprises the steps that a dispatching desk client sends a first connection establishment request to a server, wherein the first connection establishment request carries a target user account logged in the dispatching desk client; the server establishes a first wireless communication connection with the dispatching desk client according to the first connection establishment request; the talkback client sends a second connection establishment request to the server, wherein the second connection establishment request carries a target user account logged in the talkback client; the server establishes a second wireless communication connection with the talkback client according to the second connection establishment request; the dispatcher station client communicates with the intercom client through the first wireless communication connection and the second wireless communication connection. The embodiment of the invention overcomes the problems existing in the connection by adopting the USB data line, simplifies the operation of a user, and the talkback terminal can move flexibly.

Description

Method for establishing a communication connection
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for establishing communication connection.
Background
Qchat (a network talkback technology) is a talkback scheme based on EV-DO (short for Evolution, DataOnly, high data rate) network, and is a technology that can rapidly perform a "one-to-one" (also called single call) or "one-to-many" (including group call, chat room, etc.) call in the whole network by using a packet interactive network. The Qchat technology is widely applied to actual working scenes of personnel scheduling.
In the prior art, a dispatcher is equipped with a dispatching terminal and a first talkback terminal, and a dispatched person is equipped with a second talkback terminal. The talkback terminals (including the first talkback terminal and the second talkback terminal) are usually mobile phones, and after the talkback of the first talkback terminal and the second talkback terminal is connected, voice talkback can be performed between the dispatcher and the dispatched person. The scheduling terminal is usually a computer, which can open a web page version of the visual scheduling platform through a browser, and the scheduling platform provides functions of talkback calling, map positioning and the like. By utilizing the talkback calling function, the dispatcher can control the first talkback terminal to initiate talkback calling to the second talkback terminal of the dispatched person on the dispatching platform.
In order to implement the above-mentioned intercom call function, as shown in fig. 1, a first intercom terminal 11 is connected to a dispatch terminal 12 through a USB (Universal Serial Bus) data line 13. After the dispatcher selects the dispatched person needing to be called on the dispatching terminal 12, the dispatching terminal 12 sends a calling command to the first talkback terminal 11 through the USB data line 13, wherein the calling command carries the mobile phone number of the dispatched person needing to be called. After receiving the call command, the first intercom terminal 11 initiates a call request to the corresponding second intercom terminal 14 according to the mobile phone number of the dispatched person to be called, and after the second intercom terminal 14 is put through intercom, voice intercom can be performed at both ends.
The mode that the first talkback terminal and the scheduling terminal are connected by the USB data line adopted by the prior art has the following problems: firstly, when in use, a user needs to install a driver, set a port and the like in a scheduling terminal, and the operation is complex; secondly, performing secondary drying; and the user cannot flexibly move the first talkback terminal due to the limitation of the length of the USB data line.
Disclosure of Invention
The embodiment of the invention provides a method for establishing communication connection, which is used for solving the problems that in the prior art, a first talkback terminal and a scheduling terminal are connected by adopting a USB data line, so that the operation is complex and the first talkback terminal cannot be flexibly moved.
In a first aspect, a method for establishing a communication connection is provided, where the method is applied in a dispatcher station client, and the method includes:
sending a first connection establishment request to a server, wherein the first connection establishment request carries a target user account logged in to the dispatching desk client, so that the server establishes a first wireless communication connection with the dispatching desk client according to the first connection establishment request;
and communicating with the talkback client terminal logged in with the target user account through the first wireless communication connection and a second wireless communication connection, wherein the second wireless communication connection is a communication connection established between the talkback client terminal and the server.
Optionally, the first wireless communication connection and the second wireless communication connection are both WebSocket connections.
Optionally, the communicating with the talkback client logged in with the target user account through the first wireless communication connection and the second wireless communication connection includes:
after determining the dispatched personnel needing to be called, sending a first call command to the server through the first wireless communication connection, the first call command comprising: the target user account is used for indicating personnel information of the dispatched personnel, so that the server sends a second call command to the talkback client through the second wireless communication connection under the condition that the second wireless communication connection corresponding to the target user account is established, and the second call command is used for indicating the talkback client to initiate a call to the dispatched personnel.
Optionally, after the sending the first call command to the server through the first wireless communication connection, the method further includes:
and receiving personnel state information sent by the server through the first wireless communication connection, wherein the personnel state information is used for indicating the state of personnel participating in talkback.
In a second aspect, a method for establishing a communication connection is provided, where the method is applied in an intercom client, and the method includes:
sending a second connection establishment request to a server, wherein the second connection establishment request carries a target user account logged in to the talkback client, so that the server establishes a second wireless communication connection with the talkback client according to the second connection establishment request;
and communicating with the dispatching desk client logged with the target user account through the second wireless communication connection and a first wireless communication connection, wherein the first wireless communication connection is a communication connection established between the dispatching desk client and the server.
Optionally, the first wireless communication connection and the second wireless communication connection are both WebSocket connections.
Optionally, the communicating with the dispatching desk client logged in with the target user account through the second wireless communication connection and the first wireless communication connection includes:
and receiving a second call command sent by the server through the second wireless communication connection, wherein the second call command carries personnel information used for indicating dispatched personnel needing to be called.
Optionally, after receiving the second call command sent by the server through the second wireless communication connection, the method further includes:
sending a calling request to an intercom client corresponding to the dispatched person according to the person information, wherein the calling request is used for requesting the intercom client corresponding to the dispatched person to communicate with intercom;
after talkback is connected, acquiring personnel state information, wherein the personnel state information is used for indicating the state of personnel participating in talkback;
and sending the personnel state information to the server through the second wireless communication connection, so that the server forwards the personnel state information to the dispatching desk client through the first wireless communication connection.
In a third aspect, a method for establishing a communication connection is provided, where the method is applied in a server, and the method includes:
receiving a first connection establishment request sent by a dispatching desk client, wherein the first connection establishment request carries a target user account logged in the dispatching desk client;
establishing a first wireless communication connection with the dispatching desk client according to the first connection establishment request;
receiving a second connection establishment request sent by the talkback client, wherein the second connection establishment request carries the target user account logged in the talkback client;
establishing a second wireless communication connection with the talkback client according to the second connection establishment request;
wherein the first wireless communication connection and the second wireless communication connection are used to enable communication between the dispatcher client and the intercom client.
Optionally, the first wireless communication connection and the second wireless communication connection are both WebSocket connections.
Optionally, after the first wireless communication connection is established with the dispatcher station client according to the first connection establishment request, the method further includes:
receiving a first call command sent by the dispatching desk client through the first wireless communication connection, wherein the first call command comprises: the target user account is used for indicating personnel information of dispatched personnel needing to be called;
and under the condition that the second wireless communication connection corresponding to the target user account is determined to be established, sending a second call command to the talkback client through the second wireless communication connection, wherein the second call command is used for instructing the talkback client to initiate a call to the dispatched personnel.
Optionally, after the sending the second call command to the intercom client through the second wireless communication connection, the method further includes:
receiving personnel state information sent by the talkback client through the second wireless communication connection, wherein the personnel state information is used for indicating the state of personnel participating in talkback;
and forwarding the personnel state information to the dispatching desk client through the first wireless communication connection.
In a fourth aspect, an apparatus for establishing a communication connection is provided, where the apparatus is applied in a dispatcher station client, and the apparatus includes:
a first request module, configured to send a first connection establishment request to a server, where the first connection establishment request carries a target user account logged in to the dispatch station client, so that the server establishes a first wireless communication connection with the dispatch station client according to the first connection establishment request;
and the first communication module is used for communicating with the talkback client terminal logged with the target user account through the first wireless communication connection and a second wireless communication connection, and the second wireless communication connection is a communication connection established between the talkback client terminal and the server.
Optionally, the first communication module includes:
a command sending unit, configured to send a first call command to the server through the first wireless communication connection after determining a scheduled person who needs to call, where the first call command includes: the target user account is used for indicating personnel information of the dispatched personnel, so that the server sends a second call command to the talkback client through the second wireless communication connection under the condition that the second wireless communication connection corresponding to the target user account is established, and the second call command is used for indicating the talkback client to initiate a call to the dispatched personnel.
Optionally, the first communication module further includes:
and the information receiving unit is used for receiving personnel state information sent by the server through the first wireless communication connection, and the personnel state information is used for indicating the state of personnel participating in talkback.
In a fifth aspect, an apparatus for establishing a communication connection is provided, wherein the apparatus comprises:
the second request module is used for sending a second connection establishment request to the server, wherein the second connection establishment request carries a target user account logged in the talkback client, so that the server establishes a second wireless communication connection with the talkback client according to the second connection establishment request;
and the second communication module is used for communicating with the dispatching desk client logged with the target user account through the second wireless communication connection and the first wireless communication connection, and the first wireless communication connection is the communication connection established between the dispatching desk client and the server.
Optionally, the second communication module includes:
and the command receiving unit is used for receiving a second calling command sent by the server through the second wireless communication connection, wherein the second calling command carries personnel information used for indicating dispatched personnel needing to be called.
Optionally, the second communication module further includes:
the request sending unit is used for sending a calling request to the talkback client side corresponding to the dispatched person according to the person information, wherein the calling request is used for requesting the talkback client side corresponding to the dispatched person to be connected with talkback;
the system comprises an information acquisition unit, a data processing unit and a data processing unit, wherein the information acquisition unit is used for acquiring personnel state information after talkback is switched on, and the personnel state information is used for indicating the state of personnel participating in talkback;
and the information sending unit is used for sending the personnel state information to the server through the second wireless communication connection, so that the server forwards the personnel state information to the dispatching desk client through the first wireless communication connection.
In a sixth aspect, there is provided an apparatus for establishing a communication connection, where the apparatus is applied in a server, and the apparatus includes:
the system comprises a first receiving module, a first receiving module and a second receiving module, wherein the first receiving module is used for receiving a first connection establishment request sent by a dispatching desk client, and the first connection establishment request carries a target user account logged in the dispatching desk client;
a first establishing module, configured to establish a first wireless communication connection with the dispatcher station client according to the first connection establishing request;
the second receiving module is used for receiving a second connection establishment request sent by the talkback client, wherein the second connection establishment request carries the target user account logged in the talkback client;
the second establishing module is used for establishing a second wireless communication connection with the talkback client according to the second connection establishing request;
wherein the first wireless communication connection and the second wireless communication connection are used to enable communication between the dispatcher client and the intercom client.
Optionally, the apparatus further comprises:
a third receiving module, configured to receive, through the first wireless communication connection, a first call command sent by the dispatcher station client, where the first call command includes: the target user account is used for indicating personnel information of dispatched personnel needing to be called;
a first sending module, configured to send a second call command to the intercom client through the second wireless communication connection when it is determined that the second wireless communication connection corresponding to the target user account is already established, where the second call command is used to instruct the intercom client to initiate a call to the dispatched person.
Optionally, the apparatus further comprises:
the fourth receiving module is used for receiving personnel state information sent by the talkback client through the second wireless communication connection, wherein the personnel state information is used for indicating the state of personnel participating in talkback;
and the second sending module is used for forwarding the personnel state information to the dispatching desk client through the first wireless communication connection.
In a seventh aspect, a system for establishing a communication connection is provided, the system comprising the dispatch station client, the talk-back client and the server according to the above aspects.
In an eighth aspect, a computer-readable storage medium having stored thereon executable instructions for performing the method of the first aspect is provided.
In a ninth aspect, there is provided a computer-readable storage medium having stored therein executable instructions for performing the method of the second aspect.
In a tenth aspect, a computer-readable storage medium having stored thereon executable instructions for performing the method of the third aspect is provided.
In an eleventh aspect, there is provided a computer program product for performing the method according to the first aspect when the computer program product is executed.
In a twelfth aspect, a computer program product is provided for performing the method according to the second aspect when the computer program product is executed.
In a thirteenth aspect, a computer program product is provided for performing the method according to the third aspect when the computer program product is executed.
In a fourteenth aspect, a terminal is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the processor implements the following steps:
sending a first connection establishment request to a server, wherein the first connection establishment request carries a target user account logged in to the dispatching desk client, so that the server establishes a first wireless communication connection with the dispatching desk client according to the first connection establishment request;
and communicating with the talkback client terminal logged in with the target user account through the first wireless communication connection and a second wireless communication connection, wherein the second wireless communication connection is a communication connection established between the talkback client terminal and the server.
In a fifteenth aspect, there is provided an intercom terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
sending a second connection establishment request to a server, wherein the second connection establishment request carries a target user account logged in to the talkback client, so that the server establishes a second wireless communication connection with the talkback client according to the second connection establishment request;
and communicating with the dispatching desk client logged with the target user account through the second wireless communication connection and a first wireless communication connection, wherein the first wireless communication connection is a communication connection established between the dispatching desk client and the server.
In a sixteenth aspect, there is provided a server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
receiving a first connection establishment request sent by a dispatching desk client, wherein the first connection establishment request carries a target user account logged in the dispatching desk client;
establishing a first wireless communication connection with the dispatching desk client according to the first connection establishment request;
receiving a second connection establishment request sent by the talkback client, wherein the second connection establishment request carries the target user account logged in the talkback client;
establishing a second wireless communication connection with the talkback client according to the second connection establishment request;
wherein the first wireless communication connection and the second wireless communication connection are used to enable communication between the dispatcher client and the intercom client.
The technical scheme provided by the embodiment of the invention at least comprises the following beneficial effects:
the dispatching desk client and the talkback client are in wireless communication connection through the server, so that the problems of USB data line connection are solved, on one hand, operations such as installing a driver and setting a port are not required, and user operation is simplified; on the other hand, the intercom terminal can be flexibly moved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application scenario provided by the prior art;
FIG. 2 is a schematic diagram of an application scenario provided by one embodiment of the present invention;
fig. 3 is a flowchart of a method for establishing a communication connection according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for establishing a communication connection according to another embodiment of the present invention;
fig. 5 is a block diagram of an apparatus for establishing a communication connection according to an embodiment of the present invention;
fig. 6 is a block diagram of an apparatus for establishing a communication connection according to another embodiment of the present invention;
fig. 7 is a block diagram of an apparatus for establishing a communication connection according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The network architecture and the service scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not limit the technical solution provided in the embodiment of the present invention, and it can be known by those skilled in the art that the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems along with the evolution of the network architecture and the appearance of a new service scenario.
Please refer to fig. 2, which illustrates a schematic diagram of a possible application scenario provided by the embodiment of the present invention. The application scenario includes: a first intercom terminal 21, at least one second intercom terminal 22, a scheduling terminal 23 and a server 24.
The talkback terminals (including the first talkback terminal 21 and the second talkback terminal 22) refer to terminals having a talkback function, such as a mobile phone. The first intercom terminal 21 refers to an intercom terminal used by the dispatcher. The second intercom terminal 22 refers to an intercom terminal used by the dispatcher, and the number of the second intercom terminals 22 is usually plural. The talkback terminal is provided with a talkback client, and the talkback client is used for realizing the talkback function. In the embodiment of the present invention, it is assumed that the intercom client installed in the first intercom terminal 21 is a first intercom client, and the intercom client installed in the second intercom terminal 22 is a second intercom client. In the method embodiment described below, the execution subject "intercom client" refers to an intercom client installed in the first intercom terminal 21, that is, the first intercom client.
The scheduling terminal 23 is typically a PC (Personal Computer), or other display device. The dispatch terminal 23 is also available to the dispatcher who can open and run the visual dispatch platform. The scheduling terminal 23 has a scheduling station client installed therein. In general, the visual scheduling platform is implemented in a form of a Web page, and accordingly, the scheduling platform client is a browser capable of opening the visual scheduling platform in the form of the Web page (referred to as a Web scheduling platform). Of course, in other possible implementations, the visualization scheduling platform may also be implemented in the form of an application program, and the visualization scheduling platform includes a client and a server that provides a background service for the client, where the client may be referred to as a scheduling platform client.
The server 24 is used for providing background services for the talkback client and the dispatcher station client. The server 24 mainly provides two services: (1) providing related services of the talkback function, such as establishing communication connection required by talkback, forwarding voice data, collecting personnel state information and the like; (2) and related services of a visual dispatching platform are provided, such as initiating an intercom call, tracking and positioning dispatched personnel, displaying the geographic position of the dispatched personnel and the like. In practical implementation, the server 24 may be a server, a server cluster composed of multiple servers, or a cloud computing service center. When the server 24 is a cluster architecture, it may include an intercom server and a dispatcher station server, where the intercom server is used for implementing the function described in the above (1), and the dispatcher station server is used for implementing the function described in the above (2).
In addition, each of the talkback terminals (including the first talkback terminal 21 and the second talkback terminal 22) and the scheduling terminal 23 has a communication connection with the server 24, and the communication connection may be a wireless network connection.
In one example, the application scenario shown in fig. 2 is a Qchat intercom system integrated with a visual scheduling platform.
In order to solve the problem caused by the connection of the first talkback terminal and the scheduling terminal through the USB data line in the prior art, the scheme provided by the embodiment of the invention realizes the establishment of the communication connection between the first talkback terminal and the scheduling terminal through the wireless network. The embodiments of the present invention will be described in further detail below based on the common aspects related to the embodiments of the present invention described above.
Referring to fig. 3, a flowchart of a method for establishing a communication connection according to an embodiment of the present invention is shown. The method can be applied to the application scenario shown in fig. 2. The method may include several steps as follows.
Step 301, the dispatcher station client sends a first connection establishment request to the server.
The first connection establishment request requests establishment of a first wireless communication connection with a server. The first connection establishing request carries a target user account which logs in the dispatching desk client. The user account may be a user name, a mobile phone number, or the like, and may be used to uniquely identify a user.
Step 302, the server establishes a first wireless communication connection with the dispatcher station client according to the first connection establishment request.
And after receiving the first connection establishment request sent by the dispatching desk client, the server establishes a first wireless communication connection with the dispatching desk client. Optionally, the first wireless communication connection is a WebSocket connection. The WebSocket Protocol is a full-duplex (full-duplex) communication Protocol based on a Transmission Control Protocol (TCP), which realizes full-duplex communication between a client and a server, i.e., allows the server to actively send information to the client, and avoids the problems of terminal power consumption and flow consumption caused by acquiring data from the server in a client polling server manner.
In addition, the server records the corresponding relation between the target user account and the connection information of the first wireless communication connection. Wherein the connection information of the first wireless communication connection comprises an identification of the first wireless communication connection.
Step 303, the intercom client sends a second connection establishment request to the server.
The second connection establishment request is for requesting establishment of a second wireless communication connection with the server. The second connection establishment request carries a target user account logged in to the talkback client.
And step 304, the server establishes a second wireless communication connection with the talkback client according to the second connection establishment request.
And after receiving a second connection establishment request sent by the talkback client, the server establishes a second wireless communication connection with the talkback client. Optionally, the second wireless communication connection is a WebSocket connection.
In addition, the server records the corresponding relation between the target user account and the connection information of the second wireless communication connection. Wherein the connection information of the second wireless communication connection comprises an identification of the second wireless communication connection.
The dispatcher station client communicates with the intercom client over the first wireless communication connection and the second wireless communication connection, step 305.
After the first wireless communication connection and the second wireless communication connection are established, the dispatcher station client and the talkback client establish wireless communication connection through the server, and the dispatcher station client can communicate through the wireless communication connection, for example, the dispatcher station client sends a call command to the talkback client through the wireless communication connection.
It should be noted that, in the embodiment of the present invention, the execution order of the steps 301 and 303 is not limited, and the step 301 may be executed before the step 303, may be executed after the step 303, or may be executed simultaneously with the step 303.
In summary, in the solution provided in the embodiment of the present invention, the wireless communication connection is established between the dispatching desk client and the intercom client through the server, so as to overcome the problems of the USB data line connection, on one hand, operations such as installing a driver and setting a port are not required to be performed, and user operations are simplified; on the other hand, the intercom terminal can be flexibly moved.
Referring to fig. 4, a flowchart of a method for establishing a communication connection according to another embodiment of the present invention is shown. The method can be applied to the application scenario shown in fig. 2. The method may include several steps as follows.
Step 401, the dispatcher station client sends a first connection establishment request to the server.
Optionally, the first connection establishment request carries a target user account and a client type logged in to the dispatcher station client. In the embodiment of the invention, the client types comprise two types, namely a dispatcher client and an intercom client. The client type carried in the first connection establishment request sent by the dispatching desk client to the server is the dispatching desk client.
In an example, assuming that the user name logged in to the dispatcher station client is UserName _1, the first connection establishment request carries the UserName _1 and the WebClient (indicating that the client type is the dispatcher station client).
Step 402, the server establishes a first wireless communication connection with the dispatcher station client according to the first connection establishment request.
Optionally, the server establishes a WebSocket connection with the dispatcher station client according to the first connection establishment request.
In step 403, the server adds the corresponding relationship between the target user account and the connection information of the first wireless communication connection in the first connection pool.
The first connection pool is used for recording wireless communication connection established by the server and each dispatching desk client. For example, the server stores a correspondence between a destination user account and connection information of the first wireless communication connection in a form of a Key-Value pair (Key-Value) in the first connection pool, where the destination user account is used as a Key and the connection information of the first wireless communication connection is used as a Value. In one example, assuming that the connection information for the first wireless communication connection is represented by WebConnection _1, the server stores key-value pairs of the form: < UserName _1, WebConnection _1>, wherein UserName _1 is used as Key and WebConnection _1 is used as Value. In addition, in the embodiment of the present invention, the connection information of the first wireless communication connection may include information such as an identifier and a status of the first wireless communication connection.
Illustratively, the first connection pool includes key-value pairs as shown in the following Table-1:
UserName_1 WebConnection_1
UserName_2 WebConnection_2
UserName_N WebConnection_N
TABLE-1
Step 404, the intercom client sends a second connection establishment request to the server.
Optionally, the second connection establishment request carries a target user account and a client type logged in to the intercom client. And the type of the client carried in the second connection establishment request sent by the talkback client to the server is the talkback client.
In an example, assuming that the user name logged into the intercom client is UserName _1, the second connection establishment request carries UserName _2 and AppClient (indicating that the client type is the intercom client).
In step 405, the server establishes a second wireless communication connection with the intercom client according to the second connection establishment request.
Optionally, the server establishes a WebSocket connection with the talk-back client according to the second connection establishment request.
In step 406, the server adds the corresponding relationship between the target user account and the connection information of the second wireless communication connection in the second connection pool.
And the second connection pool is used for recording the wireless communication connection established between the server and each talkback client. For example, the server stores a correspondence between the target user account and connection information of the second wireless communication connection in a form of a Key-Value pair (Key-Value) in the second connection pool, where the target user account is used as a Key and the connection information of the second wireless communication connection is used as a Value. In one example, assuming that the connection information of the second wireless communication connection is represented by AppConnection _1, the server stores a key-value pair of the form: < UserName _1, AppConnection _1>, wherein UserName _1 is used as Key and AppConnection _1 is used as Value. In addition, in the embodiment of the present invention, the connection information of the second wireless communication connection may include information such as an identification and a status of the second wireless communication connection.
Illustratively, the second connection pool includes key-value pairs as shown in the following table-2:
UserName_1 AppConnection_1
UserName_2 AppConnection_2
UserName_N AppConnection_N
TABLE-2
After the first wireless communication connection and the second wireless communication connection are established, the dispatcher station client and the talkback client can communicate through the wireless communication connection, namely the wireless communication connection is established between the dispatcher station client and the talkback client through the server. Next, the related procedures of the call command transmission and the personnel status information feedback are described through steps 407 and 412.
In step 407, the dispatcher station client sends a first call command to the server through the first wireless communication connection after determining the dispatched person who needs to call.
The first call command includes: the system comprises a target user account and personnel information, wherein the personnel information is used for indicating the dispatched personnel needing to be called. The first calling command is used for indicating the talkback client corresponding to the dispatcher to initiate calling to the talkback client corresponding to the dispatched personnel needing calling according to the personnel information. Optionally, the staff information includes an identifier of each scheduled staff needing to be called, such as a mobile phone number, a user name, and the like.
The types of the talkback call include a single call and a group call, wherein the single call is directed to one dispatched person to initiate a call, and the group call is directed to a plurality of dispatched persons to initiate a call simultaneously. In one example, the types of intercom calls include a single call, a temporary group call, and a predefined group call. The temporary group call is to initiate a call to a plurality of scheduled persons in the temporarily created group, and the predefined group call is to initiate a call to a plurality of scheduled persons in the pre-created group.
Optionally, the type of the intercom call is also included in the first call command. When the type of the talkback call is a single call or a temporary group call, the personnel information comprises the identification (such as a mobile phone number or a user name) of each dispatched personnel; when the type of the intercom call is a predefined group call, the person information comprises a group identification of the predefined group.
Optionally, the first call command further includes a message-to-destination parameter, where the message-to-destination parameter is used to indicate a recipient of the message. For example, if the receiver of the first call command is the talkback client corresponding to the dispatcher, the message forwarding parameter is the talkback client.
Optionally, the first call command further includes a message type parameter, where the message type parameter is used to indicate a type of the message. For example, the message types include different types such as originating a call, feeding back personnel status information, and the like. And the message type parameter carried in the first call command is used for indicating the call initiation.
Optionally, the dispatcher station client uses the following two possible implementations to determine the dispatched person to call. The display interface of the dispatching desk client comprises a map area and a non-map area. The map area is used for displaying a map in which the geographical position information of each scheduled person can be marked. And a personnel list is displayed in the non-map area, and the personnel list comprises relevant information of each dispatched personnel, such as a user name, a mobile phone number and the like. In one possible implementation manner, the dispatching desk client acquires a selection signal corresponding to one or more dispatched persons in the person list, and determines dispatched persons needing to be called according to the selection signal. In another possible implementation manner, the dispatching desk client acquires a framing signal corresponding to a target area in the map area, and determines dispatched persons located in the target area as dispatched persons needing to be called.
In step 408, the server sends a second call command to the intercom client through the second wireless communication connection, in case that it is determined that the second wireless communication connection corresponding to the target user account is already established.
After receiving a first call command sent by a dispatching desk client, a server analyzes parameters carried in the first call command, such as a message destination parameter, a target user account (such as UserName _1), a message type parameter and personnel information (such as a mobile phone number of a dispatched person needing to be called). If the message destination parameter indicates the talkback client, the server searches whether a second wireless communication connection corresponding to the target user account exists in a second connection pool, and if the second wireless communication connection exists, the server sends a second call command to the talkback client through the second wireless communication connection according to the connection information of the second wireless communication connection.
The second calling command carries personnel information used for indicating dispatched personnel needing to call, and the second calling command is used for indicating the talkback client to initiate a call to the dispatched personnel. Optionally, the second call command further includes a type of the intercom call. Optionally, the second call command further includes a message type parameter, and the message type parameter carried in the second call command is used to indicate that a call is initiated.
In addition, if the server does not find the second wireless communication connection corresponding to the target user account in the second connection pool, the server sends a prompt message to the dispatching desk client through the first wireless communication connection, wherein the prompt message is used for prompting that the connection cannot be established, and asking the user to check whether the target user account is logged in the talkback client.
And step 409, the talkback client sends a call request to the talkback client corresponding to the dispatched personnel according to the personnel information.
The calling request is used for requesting the talkback client corresponding to the dispatched personnel to connect talkback.
And after the talkback client corresponding to the dispatcher receives the second call command, analyzing the second call command to obtain the type and personnel information of the talkback call. If the type of the talkback call is a single call or a temporary group call, directly extracting the identifier of each dispatched person from the person information; and if the type of the talkback call is the predefined group call, extracting the group identification of the predefined group from the personnel information, and inquiring and acquiring the identification of each dispatched personnel in the predefined group according to the group identification. And then, the talkback client sends a call request to the talkback client corresponding to each dispatched person according to the identification (such as the mobile phone number) of each dispatched person.
Optionally, if the second call command includes an identifier (e.g., a mobile phone number) of each scheduled person, the talkback client corresponding to the scheduler directly sends a call request to the talkback client corresponding to the scheduled person according to the identifier.
And step 410, after the talkback is connected, the talkback client acquires the personnel state information.
The personnel state information is used for indicating the state of the personnel participating in the talkback. Optionally, the personnel status information comprises at least one of: the total number of people participating in the conversation, the number of people who are connected to the conversation, the identification of the person who currently has the right to speak (i.e., is currently speaking). Optionally, the person status information further includes an identifier of each person participating in the intercom. The personnel participating in the talkback comprise a dispatcher and each dispatched personnel needing to be called.
One point to be explained is that, for a single-call scenario, as one dispatched person needing to be called is, the dispatched person turns on the talkback and then considers that the talkback is turned on; for a temporary group call or a predefined group call scenario, as a plurality of scheduled persons needing to be called are available, as long as at least one scheduled person is connected to talk, the talk-back is considered to be connected.
In one example, assuming that the dispatcher initiates a temporary group call, the number of dispatched persons who need to call is 5 (zhang san, li yi, wang wu, zhao xi and sun qin, respectively), wherein zhang san, li yi, wang wu and zhao liu are put through with the dispatcher for talkback, sun qin is not put through for talkback, and zhang san currently has the talk right, the total number of persons participating in talkback is 6, the number of persons who put through talkback is 5, and the mobile phone number of the person currently having the talk right is identified as zhang san.
Step 411, the intercom client sends the personnel status information to the server through the second wireless communication connection.
Optionally, the intercom client sends an information feedback message to the server through the second wireless communication connection, where the information feedback message includes: a message destination parameter (e.g., dispatcher client), a target user account (e.g., UserName _1), a message type parameter, and personnel status information.
Optionally, after receiving the person state information, the server queries and acquires the geographical location information of the person participating in the talkback from the database according to the identifier of the person participating in the talkback. The database is used for recording the geographic position information of each person, including the geographic position information of the dispatcher and each dispatched person. In one example, the database records the correspondence between the identification of each person and the geographical location information.
Optionally, the server receives a position reporting request sent by each talkback client at a preset time interval, the position reporting request carries the identification and the geographical location information of the personnel corresponding to the talkback client, and then the server correspondingly stores the identification and the geographical location information of the personnel in the database. The preset time interval may be set to 10 seconds, 30 seconds, 1 minute, 5 minutes, and the like, which is not limited in the embodiment of the present invention.
In an embodiment of the invention, the geographical location information comprises longitude and latitude coordinates. Optionally, the geographic location information further includes a location name corresponding to the longitude and latitude coordinate, such as xx school, xx cell, xx hospital, and the like.
In step 412, the server forwards the personnel status information to the dispatcher station client via the first wireless communication connection.
Optionally, the server sends the information feedback message to the dispatcher station client through the first wireless communication connection. Optionally, the information feedback message further includes geographic location information of the person participating in the talk-back.
And after receiving the information feedback message, the dispatching desk client extracts various information from the information feedback message and displays the information correspondingly. Optionally, the dispatcher station client displays the personnel status information and the geographical location information of the personnel participating in the talkback in the same user interface. As already described above, a map region and a non-map region are included in the user interface. The dispatching desk client displays the personnel state information in a non-map area of the user interface, and marks the geographic position of the personnel participating in the talkback in the map area of the user interface according to the geographic position information of the personnel participating in the talkback. In one possible implementation manner, the client of the dispatching desk displays marks of the persons participating in the talkback at corresponding positions of a map area of a user interface according to the geographical position information of the persons participating in the talkback, wherein the marks of the persons having the speaking right currently are displayed in a mode of being different from the marks of other persons participating in the talkback. The manner of displaying the mark differently is not limited in the embodiments of the present invention, and examples include color, style, shape, content, whether it is a dynamic icon, and the like.
It should be noted that, in the embodiment of the present invention, the execution order of the steps 401 and 404 is not limited, and the step 401 may be executed before the step 404, may be executed after the step 404, or may be executed simultaneously with the step 404.
In summary, in the solution provided in the embodiment of the present invention, the wireless communication connection is established between the dispatching desk client and the intercom client through the server, so as to overcome the problems of the USB data line connection, on one hand, operations such as installing a driver and setting a port are not required to be performed, and user operations are simplified; on the other hand, the intercom terminal can be flexibly moved.
In addition, in the scheme provided by the embodiment of the invention, the WebSocket connection is established between the client (including the dispatching desk client and the talkback client) and the server, so that full-duplex communication between the client and the server is realized, namely, the server is allowed to actively send information to the client, and the problems of terminal electricity consumption, flow and the like caused by the adoption of a client polling server mode to obtain data from the server are avoided.
In addition, in the scheme provided by the embodiment of the invention, the integration of the talkback calling function and the map positioning function is realized, and after the dispatcher initiates the talkback call, the geographical position distribution of each person participating in talkback, the latest geographical position of the person who is talking at present and other information can be checked on the map in real time, so that the visual dispatching of the dispatcher is better facilitated.
It should be noted that, in the above method embodiment, the technical solutions provided by the embodiments of the present invention are described only from the perspective of interaction between the dispatcher station client, the talkback client, and the server. The procedure related to the dispatcher client may be implemented as a method for establishing a communication connection on the dispatcher client side, the procedure related to the intercom client may be implemented as a method for establishing a communication connection on the intercom client side, and the procedure related to the server may be implemented as a method for establishing a communication connection on the server side.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 5, a block diagram of an apparatus for establishing a communication connection according to an embodiment of the present invention is shown. The device has the function of implementing the client side of the dispatching desk in the above method example, and the function can be implemented by hardware or by hardware executing corresponding software. The apparatus may include: a first request module 510 and a first communication module 520.
A first request module 510, configured to send a first connection establishment request to a server, where the first connection establishment request carries a target user account logged in to the dispatcher station client, so that the server establishes a first wireless communication connection with the dispatcher station client according to the first connection establishment request.
A first communication module 520, configured to communicate with the intercom client that has logged in the target user account through the first wireless communication connection and a second wireless communication connection, where the second wireless communication connection is a communication connection established between the intercom client and the server.
In summary, in the solution provided in the embodiment of the present invention, the wireless communication connection is established between the dispatching desk client and the intercom client through the server, so as to overcome the problems of the USB data line connection, on one hand, operations such as installing a driver and setting a port are not required to be performed, and user operations are simplified; on the other hand, the intercom terminal can be flexibly moved.
In an optional embodiment provided based on the embodiment shown in fig. 5, the first communication module includes: a command transmitting unit.
A command sending unit, configured to send a first call command to the server through the first wireless communication connection after determining a scheduled person who needs to call, where the first call command includes: the target user account is used for indicating personnel information of the dispatched personnel, so that the server sends a second call command to the talkback client through the second wireless communication connection under the condition that the second wireless communication connection corresponding to the target user account is established, and the second call command is used for indicating the talkback client to initiate a call to the dispatched personnel.
Optionally, the first communication module further includes: an information receiving unit.
And the information receiving unit is used for receiving personnel state information sent by the server through the first wireless communication connection, and the personnel state information is used for indicating the state of personnel participating in talkback.
Referring to fig. 6, a block diagram of an apparatus for establishing a communication connection according to another embodiment of the present invention is shown. The device has the function of implementing the talkback client side in the above method example, and the function may be implemented by hardware or by hardware executing corresponding software. The apparatus may include: a second request module 610 and a second communication module 620.
A second request module 610, configured to send a second connection establishment request to a server, where the second connection establishment request carries a target user account logged in to the intercom client, so that the server establishes a second wireless communication connection with the intercom client according to the second connection establishment request.
A second communication module 620, configured to communicate with the dispatching desk client logged with the target user account through the second wireless communication connection and a first wireless communication connection, where the first wireless communication connection is a communication connection established between the dispatching desk client and the server.
In summary, in the solution provided in the embodiment of the present invention, the wireless communication connection is established between the dispatching desk client and the intercom client through the server, so as to overcome the problems of the USB data line connection, on one hand, operations such as installing a driver and setting a port are not required to be performed, and user operations are simplified; on the other hand, the intercom terminal can be flexibly moved.
In an optional embodiment provided based on the embodiment shown in fig. 6, the second communication module includes: a command receiving unit.
And the command receiving unit is used for receiving a second calling command sent by the server through the second wireless communication connection, wherein the second calling command carries personnel information used for indicating dispatched personnel needing to be called.
Optionally, the second communication module further includes: the device comprises a request sending unit, an information acquisition unit and an information sending unit.
And the request sending unit is used for sending a call request to the talkback client corresponding to the dispatched person according to the person information, wherein the call request is used for requesting the talkback client corresponding to the dispatched person to be connected with talkback.
The information acquisition unit is used for acquiring personnel state information after the talkback is switched on, and the personnel state information is used for indicating the states of personnel participating in the talkback.
And the information sending unit is used for sending the personnel state information to the server through the second wireless communication connection, so that the server forwards the personnel state information to the dispatching desk client through the first wireless communication connection.
Referring to fig. 7, a block diagram of an apparatus for establishing a communication connection according to another embodiment of the present invention is shown. The device has the function of realizing the server side in the above method example, and the function can be realized by hardware or by hardware executing corresponding software. The apparatus may include: a first receiving module 710, a first establishing module 720, a second receiving module 730, and a second establishing module 740.
A first receiving module 710, configured to receive a first connection establishment request sent by a dispatcher station client, where the first connection establishment request carries a target user account logged in to the dispatcher station client.
A first establishing module 720, configured to establish a first wireless communication connection with the dispatcher station client according to the first connection establishing request.
The second receiving module 730 is configured to receive a second connection establishment request sent by the intercom client, where the second connection establishment request carries the target user account logged in to the intercom client.
A second establishing module 740, configured to establish a second wireless communication connection with the intercom client according to the second connection establishment request.
Wherein the first wireless communication connection and the second wireless communication connection are used to enable communication between the dispatcher client and the intercom client.
In summary, in the solution provided in the embodiment of the present invention, the wireless communication connection is established between the dispatching desk client and the intercom client through the server, so as to overcome the problems of the USB data line connection, on one hand, operations such as installing a driver and setting a port are not required to be performed, and user operations are simplified; on the other hand, the intercom terminal can be flexibly moved.
In an optional embodiment provided based on the embodiment shown in fig. 7, the apparatus further comprises: the device comprises a third receiving module and a first sending module.
A third receiving module, configured to receive, through the first wireless communication connection, a first call command sent by the dispatcher station client, where the first call command includes: the target user account is used for indicating personnel information of dispatched personnel needing to be called.
A first sending module, configured to send a second call command to the intercom client through the second wireless communication connection when it is determined that the second wireless communication connection corresponding to the target user account is already established, where the second call command is used to instruct the intercom client to initiate a call to the dispatched person.
Optionally, the apparatus further comprises: a fourth receiving module and a second sending module.
The fourth receiving module is used for receiving personnel state information sent by the talkback client through the second wireless communication connection, wherein the personnel state information is used for indicating the state of personnel participating in talkback;
and the second sending module is used for forwarding the personnel state information to the dispatching desk client through the first wireless communication connection.
An exemplary embodiment of the present invention further provides a system for establishing a communication connection (or called an intercom system), which includes a dispatcher station client, an intercom client and a server. Wherein, the dispatcher station client comprises the device according to the embodiment of fig. 5, the talkback client comprises the device according to the embodiment of fig. 6, and the server comprises the device according to the embodiment of fig. 7.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above.
In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 8, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown. For example, the terminal may be the scheduling terminal referred to in the above embodiments, for implementing the method for establishing a communication connection on the scheduling client side provided in the above embodiments. For another example, the terminal may be the intercom terminal referred to in the above embodiment, and is configured to implement the method for establishing a communication connection on the intercom client side provided in the above embodiment. Specifically, the method comprises the following steps:
the terminal 800 may include RF (Radio Frequency) circuitry 810, memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, audio circuitry 860, a WiFi (wireless fidelity) module 870, a processor 880 including one or more processing cores, and a power supply 890. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 880; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 access to the memory 820.
The input unit 830 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 830 may include an image input device 831 and other input devices 832. The image input device 831 may be a camera or a photoelectric scanning device. The input unit 830 may include other input devices 832 in addition to the image input device 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like, as an option.
The terminal 800 can also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 841 and/or backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal 800, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between a user and terminal 800. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 860, and outputs the audio data to the processor 880 for processing, and then transmits the audio data to, for example, another terminal via the RF circuit 810, or outputs the audio data to the memory 820 for further processing. The audio circuitry 860 may also include an earbud jack to provide communication of a peripheral headset with the terminal 800.
WiFi belongs to short-range wireless transmission technology, and the terminal 800 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 870, and it provides the user with wireless broadband internet access. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of terminal 800 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the terminal 800, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the handset. Optionally, processor 880 may include one or more processing cores; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
Terminal 800 further includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to processor 880 via a power management system that may be used to manage charging, discharging, and power consumption. Power supply 890 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 800 may further include a bluetooth module or the like, which is not described in detail herein.
In this embodiment, the terminal 800 further comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the methods of the dispatcher client side or the intercom client side of the above method examples.
Referring to fig. 9, a schematic structural diagram of a server according to an embodiment of the present invention is shown. The server is used to implement the method for establishing communication connection on the server side provided in the above embodiments. Specifically, the method comprises the following steps:
the server 900 includes a Central Processing Unit (CPU)901, a system memory 904 including a Random Access Memory (RAM)902 and a Read Only Memory (ROM)903, and a system bus 905 connecting the system memory 904 and the central processing unit 901. The server 900 also includes a basic input/output system (I/O system) 906 for facilitating the transfer of information between devices within the computer, and a mass storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.
The basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse, keyboard, etc. for user input of information. Wherein the display 908 and the input device 909 are connected to the central processing unit 901 through an input output controller 910 connected to the system bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable media provide non-volatile storage for the server 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 904 and mass storage device 907 described above may be collectively referred to as memory.
The server 900 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the invention. That is, the server 900 may be connected to the network 912 through the network interface unit 911 coupled to the system bus 905, or the network interface unit 911 may be used to connect to other types of networks or remote computer systems (not shown).
The memory also includes one or more programs stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the server-side method in the above method example.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as a memory, is also provided that includes instructions executable by a processor of a dispatch terminal to perform the steps at the client side of the dispatch station in the above method examples.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory including instructions executable by a processor of an intercom terminal to perform the steps at the intercom client side in the above method examples.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, e.g., a memory including instructions, that are executable by a processor of a server to perform the various steps on the server side in the above method examples.
For example, the non-transitory computer readable storage medium may be a ROM (Read Only Memory), a RAM (Random Access Memory), a CD-ROM, a magnetic disk, a floppy disk, an optical disk, and the like.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. As used herein, the terms "first," "second," and the like, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A method for establishing communication connection, which is applied in a dispatcher client corresponding to a dispatcher, the method comprising:
sending a first connection establishment request to a server, wherein the first connection establishment request carries a target user account logged in to the dispatching desk client, so that the server establishes a first wireless communication connection with the dispatching desk client according to the first connection establishment request;
after the dispatched personnel needing to be called are determined, sending a first calling command to the server through the first wireless communication connection, so that the server sends a second calling command to an intercom client logged with the target user account through a second wireless communication connection, wherein the second wireless communication connection is a communication connection established between the intercom client logged with the target user account and the server, the first calling command is used for indicating the intercom client corresponding to the dispatcher to initiate calling to the intercom client corresponding to the dispatched personnel needing to be called, and the intercom client logged with the target user account comprises the intercom client corresponding to the dispatcher.
2. The method of claim 1, wherein the sending the first call command to the server through the first wireless communication connection to cause the server to send a second call command to the intercom client logged with the target user account through a second wireless communication connection comprises:
sending a first call command to the server through the first wireless communication connection, so that the server sends a second call command to the intercom client logged in with the target user account through the second wireless communication connection when determining that the second wireless communication connection corresponding to the target user account is already established, where the first call command includes: the target user account is used for indicating personnel information of the dispatched personnel, and the second call command is used for indicating the talkback client corresponding to the dispatcher to call the dispatched personnel.
3. The method of claim 2, wherein after sending the first call command to the server over the first wireless communication connection, further comprising:
and receiving personnel state information sent by the server through the first wireless communication connection, wherein the personnel state information is used for indicating the state of personnel participating in talkback.
4. A method for establishing communication connection, which is applied to a talkback client corresponding to a dispatcher, and comprises the following steps:
sending a second connection establishment request to a server, wherein the second connection establishment request carries a target user account logged in to the talkback client, so that the server establishes a second wireless communication connection with the talkback client according to the second connection establishment request;
receiving a second call command sent by the server through the second wireless communication connection, where the second call command is sent by triggering the server after a dispatcher station client that logs in the target user account and corresponds to a dispatcher sends a first call command to the server through a first wireless communication connection after determining a dispatched person that needs to be called, the first wireless communication connection is a communication connection established between the dispatcher station client and the server, the first call command is used to instruct an intercom client that corresponds to the dispatcher to initiate a call to an intercom client that corresponds to the dispatched person that needs to be called, and the intercom client that logs in the target user account includes the intercom client that corresponds to the dispatcher.
5. The method of claim 4, wherein the second call command carries personnel information indicating dispatched personnel who need to call.
6. The method of claim 5, wherein after receiving the second call command sent by the server through the second wireless communication connection, further comprising:
sending a calling request to an intercom client corresponding to the dispatched person according to the person information, wherein the calling request is used for requesting the intercom client corresponding to the dispatched person to communicate with intercom;
after talkback is connected, acquiring personnel state information, wherein the personnel state information is used for indicating the state of personnel participating in talkback;
and sending the personnel state information to the server through the second wireless communication connection, so that the server forwards the personnel state information to the dispatching desk client through the first wireless communication connection.
7. A method for establishing communication connection, which is applied in a server, the method comprising:
receiving a first connection establishment request sent by a dispatching desk client corresponding to a dispatcher, wherein the first connection establishment request carries a target user account logged in the dispatching desk client;
establishing a first wireless communication connection with the dispatching desk client according to the first connection establishment request;
receiving a first call command sent by the dispatching desk client after the dispatching desk client determines that the dispatched person needs to call through the first wireless communication connection, wherein the first call command is used for instructing an intercom client corresponding to the dispatcher to initiate a call to an intercom client corresponding to the dispatched person needing to call;
receiving a second connection establishment request sent by an intercom client logged with the target user account, wherein the second connection establishment request carries the target user account logged into the intercom client, and the intercom client logged with the target user account comprises an intercom client corresponding to the dispatcher;
establishing a second wireless communication connection with the talkback client according to the second connection establishment request;
and sending a second call command to the talkback client logged with the target user account through the second wireless communication connection.
8. The method of claim 7, wherein the first call command comprises: the target user account is used for indicating personnel information of dispatched personnel needing to be called.
9. The method of claim 7, wherein sending a second call command to the intercom client logged in with the target user account via the second wireless communication connection comprises:
and under the condition that the second wireless communication connection corresponding to the target user account is established, sending a second call command to the talkback client logged with the target user account through the second wireless communication connection, wherein the second call command is used for indicating the talkback client to initiate a call to the dispatched personnel.
10. The method of claim 9, wherein after sending the second call command to the intercom client logged in with the target user account through the second wireless communication connection, further comprising:
receiving personnel state information sent by the talkback client through the second wireless communication connection, wherein the personnel state information is used for indicating the state of personnel participating in talkback;
and forwarding the personnel state information to the dispatching desk client through the first wireless communication connection.
11. A computer-readable storage medium having stored thereon executable instructions for, when executed by a processor, implementing the method of any one of claims 1 to 3.
12. A computer-readable storage medium having stored thereon executable instructions for, when executed by a processor, implementing the method of any one of claims 4 to 6.
13. A computer-readable storage medium having stored thereon executable instructions for, when executed by a processor, implementing the method of any one of claims 7 to 10.
CN201710502306.0A 2017-06-27 2017-06-27 Method for establishing a communication connection Active CN107172719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710502306.0A CN107172719B (en) 2017-06-27 2017-06-27 Method for establishing a communication connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710502306.0A CN107172719B (en) 2017-06-27 2017-06-27 Method for establishing a communication connection

Publications (2)

Publication Number Publication Date
CN107172719A CN107172719A (en) 2017-09-15
CN107172719B true CN107172719B (en) 2020-06-09

Family

ID=59827990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710502306.0A Active CN107172719B (en) 2017-06-27 2017-06-27 Method for establishing a communication connection

Country Status (1)

Country Link
CN (1) CN107172719B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600346B (en) * 2017-09-30 2023-01-13 江西欧菲炬能物联科技有限公司 Intercommunication method, central server, stream server and intercommunication system
CN110324277B (en) * 2018-03-28 2021-11-05 腾讯科技(深圳)有限公司 Connection method and device for real-time communication, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811422A (en) * 2012-07-27 2012-12-05 北京国基科技股份有限公司 Cluster scheduling system
CN104283760A (en) * 2013-07-04 2015-01-14 华为技术有限公司 Method, related device and system for WebRTC communication
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN105407369A (en) * 2015-11-17 2016-03-16 青岛海信电器股份有限公司 Web application based terminal communication method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104843034B (en) * 2015-06-01 2017-11-10 兴化市铁信电子工程有限公司 Digital railway transportation management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811422A (en) * 2012-07-27 2012-12-05 北京国基科技股份有限公司 Cluster scheduling system
CN104283760A (en) * 2013-07-04 2015-01-14 华为技术有限公司 Method, related device and system for WebRTC communication
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN105407369A (en) * 2015-11-17 2016-03-16 青岛海信电器股份有限公司 Web application based terminal communication method and device

Also Published As

Publication number Publication date
CN107172719A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN106791892B (en) Method, device and system for live broadcasting of wheelhouses
CN106533711B (en) Multimedia conference method and device
CN107172477B (en) Voting method and device
CN109921976B (en) Group-based communication control method, device and storage medium
CN107332976B (en) Karaoke method, device, equipment and system
CN106973330B (en) Screen live broadcasting method, device and system
CN106059894B (en) Message processing method and device
CN107786424B (en) Audio and video communication method, terminal and server
CN110856103B (en) Scheduling method, communication method and related equipment
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN107172719B (en) Method for establishing a communication connection
CN108089928B (en) Terminal control method and device
CN107172077B (en) Information display method, apparatus and system
WO2014183439A1 (en) Method, apparatus and system for switching function mode
CN106603650B (en) Method for sharing position information and terminal equipment
CN112333337B (en) Message checking method, device, equipment and storage medium
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN108234275B (en) Method and device for releasing communication information
CN107426813B (en) Network information display method and device
CN106330875B (en) Message display method and device
CN107995584B (en) Online state switching method and device
CN110798444B (en) Data synchronization method and device based on Internet of things
CN115334023A (en) Communication method, related device, equipment 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
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder