CN107197077B - Method, device and system for communication between devices - Google Patents

Method, device and system for communication between devices Download PDF

Info

Publication number
CN107197077B
CN107197077B CN201610147506.4A CN201610147506A CN107197077B CN 107197077 B CN107197077 B CN 107197077B CN 201610147506 A CN201610147506 A CN 201610147506A CN 107197077 B CN107197077 B CN 107197077B
Authority
CN
China
Prior art keywords
information
communication
application
communication mode
application program
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
CN201610147506.4A
Other languages
Chinese (zh)
Other versions
CN107197077A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610147506.4A priority Critical patent/CN107197077B/en
Publication of CN107197077A publication Critical patent/CN107197077A/en
Application granted granted Critical
Publication of CN107197077B publication Critical patent/CN107197077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/72502Cordless telephones with one base station connected to a single line
    • H04M1/72505Radio link set-up procedures
    • H04M1/72513On hold, intercom or transfer communication modes

Abstract

The application provides a method, a device and a system for communication among devices, wherein the method for communication among the devices comprises the following steps: acquiring an application identifier of a currently running application program in first equipment; determining a communication mode corresponding to the application identifier according to preset communication configuration information, wherein the communication configuration information records the mapping relation between the application identifier and the communication mode; and sending information to the application program according to the communication mode. The communication method between the devices can provide different communication modes such as high efficiency or safety and the like according to different application scenes, and different requirements of users are met.

Description

Method, device and system for communication between devices
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for inter-device communication.
Background
With the popularization of the internet and intelligent terminals, more and more intelligent terminal devices enter a home network. The terminal devices are not independent devices, and multi-screen interaction among the devices is a development trend. The multi-screen interaction mainly refers to that content, control and the like of the mobile equipment are synchronized to other intelligent equipment, such as large-screen equipment such as an intelligent television, so that the content is projected to the large-screen equipment and the large-screen equipment is controlled. At present, the functions of the intelligent device are not limited to playing of movie and television contents, and the intelligent device has functions of application, games, education, shopping and the like. However, the communication mode between the devices is single at present, and the diversified requirements of users are difficult to meet.
Disclosure of Invention
The present application aims to address the above technical problem, at least to some extent.
Therefore, a first objective of the present application is to provide an inter-device communication method, which can provide different communication modes, such as high efficiency or safety, according to different application scenarios, so as to meet different requirements of users.
A second object of the present application is to provide an inter-device communication apparatus.
A third object of the present application is to propose an inter-device communication system.
To achieve the above object, according to a first aspect of the present application, an inter-device communication method is provided, including the following steps: acquiring an application identifier of a currently running application program in first equipment; determining a communication mode corresponding to the application identifier according to preset communication configuration information, wherein the communication configuration information records the mapping relation between the application identifier and the communication mode; and sending information to the application program according to the communication mode.
According to the inter-device communication method, the application identification of the currently running application program in the first device is obtained, the communication mode corresponding to the application identification is determined, information is sent to the application program in the first device according to the communication mode, different communication modes can be selected according to different application programs to communicate with the first device, the communication mode corresponding to different application scenes is selected to communicate, the communication mode is more diversified, and different requirements of a user on high efficiency, safety and the like during interactive operation with other devices through the mobile terminal in different application scenes can be met.
An embodiment of a second aspect of the present application provides an apparatus for inter-device communication, including: the acquisition module is used for acquiring an application identifier of a currently running application program in the first equipment; the determining module is used for determining a communication mode corresponding to the application identifier according to preset communication configuration information, and the communication configuration information records the mapping relation between the application identifier and the communication mode; and the sending module is used for sending information to the application program according to the communication mode.
According to the inter-device communication device, the application identification of the application program currently running in the first device is obtained, the communication mode corresponding to the application identification is determined, information is sent to the application program in the first device according to the communication mode, different communication modes can be selected according to different application programs to communicate with the first device, the communication mode corresponding to different application scenes is selected to communicate, the communication mode is more diversified, and different requirements of a user on high efficiency, safety and the like during interactive operation with other devices through the mobile terminal in different application scenes can be met.
An embodiment of a second aspect of the present application provides an inter-device communication system, including: the inter-device communication apparatus according to the embodiment of the second aspect of the present application; and a smart television.
According to the communication system between the devices, the application identification of the application program currently running in the first device is obtained, the communication mode corresponding to the application identification is determined, the information is sent to the application program in the first device according to the communication mode, different communication modes can be selected according to different application programs to communicate with the first device, the communication mode corresponding to different application scenes is selected to communicate, the communication mode is more diversified, and different requirements of a user on high efficiency, safety and the like during interactive operation with other devices through the mobile terminal in different application scenes can be met.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method of inter-device communication according to one embodiment of the present application;
FIG. 2 is a flow diagram of establishing a connection between a mobile device and a first device according to one embodiment of the present application;
fig. 3a is a flowchart of an inter-device communication method corresponding to an active acquisition mode according to an embodiment of the present application;
fig. 3b is a flowchart of an inter-device communication method corresponding to a passive acquisition mode according to an embodiment of the present application;
fig. 4 is a flowchart illustrating application pairing of a mobile terminal, a configuration server and a TV end according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a unified communications channel according to one embodiment of the present application;
FIG. 6 is a flow diagram of a method of inter-device communication according to another embodiment of the present application;
FIG. 7 is a flow diagram of a method of inter-device communication according to another embodiment of the present application;
FIG. 8 is a first schematic structural diagram of an inter-device communication apparatus according to an embodiment of the present application;
FIG. 9 is a second schematic structural diagram of an inter-device communication apparatus according to an embodiment of the present application;
FIG. 10 is a block diagram illustrating a third exemplary embodiment of an inter-device communication apparatus according to the present application;
FIG. 11 is a block diagram illustrating a fourth exemplary embodiment of an inter-device communication apparatus according to the present application;
fig. 12 is a fifth schematic structural diagram of an inter-device communication apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
Because the user is different when controlling other intelligent devices through the mobile terminal in different application scenes, for example, the timeliness of the keys needs to be guaranteed for remote control operations such as channel changing and volume adjusting of a television, and the communication safety needs to be guaranteed in a shopping scene, the requirements of the communication between the devices on timeliness, safety and the like are different in different application scenes. In order to meet different requirements of users in different application scenes, the invention provides a method, a device and a system for communication between devices.
An inter-device communication method, apparatus, and system according to embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method of inter-device communication according to an embodiment of the present application.
The inter-device communication method in the embodiment of the present application may be applied to a terminal device that controls a first device, such as a mobile terminal, an intelligent wearable device, and the like, where the following embodiment takes the mobile terminal as an example for description. The first device may be a smart device capable of running an application.
As shown in fig. 1, the inter-device communication method according to the embodiment of the present application includes the following steps:
s101, acquiring an application identifier of a currently running application program in first equipment.
In an embodiment of the application, the mobile terminal and the first device may establish a connection in advance. For example, the mobile terminal and the first device in the same local area network may establish a long TCP connection according to the negotiated port. The mobile terminal may discover the first device through multicast or probing of the home network. After the mobile device establishes the TCP connection with the first device, it may determine whether the connection is disconnected by periodically sending heartbeat packets.
Compared with the prior art that in the communication between the mobile terminal and the intelligent device based on the application level, the communication content and the communication protocol need to be agreed in advance by the application in the mobile terminal and the intelligent device, and once the communication content and the communication protocol are changed, the communication cannot be completed, the long connection is established between the mobile terminal and the first device through the port in the embodiment of the application, so that the problem that the communication cannot be performed due to the fact that the mobile terminal and the first device are incompatible with each other can be effectively solved.
In one embodiment of the present application, the first device may be a smart television. Taking the first device as a TV television and the mobile terminal as a smart phone as an example, a flowchart of establishing a connection between the mobile device and the first device may be shown in fig. 2.
In the embodiment of the application, the mobile terminal may obtain the application identifier of the currently running application program in the first device through an active obtaining manner or a passive obtaining manner.
The active acquisition mode is that the mobile terminal sends a request for acquiring an application identifier of a currently running application program to the first device. After receiving the request, the first device may return the application identifier of the currently running application to the mobile terminal. Fig. 3a is a flowchart of an inter-device communication method corresponding to an active acquisition mode according to an embodiment of the present application.
The passive acquisition mode is that when the first device starts the application program, the application identifier of the application program can be acquired and sent to the mobile terminal. Fig. 3b is a flowchart of an inter-device communication method corresponding to a passive acquisition mode according to an embodiment of the present application.
There are various ways for the first device to obtain the application identifier of the currently running application, among which is a notification message via an input method. When the first device opens the application program, the input method receives the opening notice of the application program, and when the first device exits the application program, the input method also receives the exit notice of the application program. Thus, the first device may determine the application identification of the application currently running in the first device by listening for notifications of the input method.
And S102, determining a communication mode corresponding to the application identifier according to preset communication configuration information.
The communication configuration information is information for configuring mapping relation between the application identifier and the communication mode. The application identifier is used for uniquely identifying the application program and may be at least one of a name, a package name, and a version number of the application program.
For example, the mobile terminal may compare the version number of the application program in the communication configuration information with the version number of the application program in the first device to determine whether the application program in the first device supports the corresponding communication mode.
The communication modes may include secure communication modes, time efficient communication modes, and the like. Whether the information to be sent is encrypted or not, an encryption mode, operation authority of a corresponding application program in the first device and the like are set in each communication mode. Therefore, communication content between the devices, whether safety check is needed or not and the like can be determined according to application scenes corresponding to different application programs, and the requirements of users in specific scenes are met.
For example, it is necessary to ensure timeliness of the key for channel change, volume adjustment, and the like to quickly respond, and then the control information corresponding to these operations may be set to be unencrypted to ensure timeliness of the operations.
If the information to be transmitted relates to an account number, personal information and the like, the information to be transmitted needs to be encrypted.
In addition, according to the level of the safety requirement of the application program, different encryption modes can be set for encrypting the information to be transmitted, such as simple digital encryption, complex encoding encryption and the like.
When the authority required by the information to be sent of the mobile terminal is greater than the operation authority of the corresponding application program in the first device, the application program currently running in the first device cannot respond to the instruction in the information to be sent, and the information can be directly discarded, and the user of the mobile terminal can also be prompted.
It should be understood that the communication configuration information of the application programs in the mobile terminal and the first device may be added with the extension information according to the actual scene needs, so as to meet the requirements of different communication scenes and different application programs.
The communication configuration information in the embodiment of the present application may be described in a format such as JSON (JavaScript Object Notation) or XML (Extensible Markup Language).
In embodiments of the present application, the communication configuration information may be stored in a designated configuration server. When a new application program is installed in the first device, a communication mode corresponding to the application identifier of the application program may be correspondingly added to the communication configuration information.
Furthermore, the user can log in the configuration server to perform operation and maintenance operations such as adding, deleting and modifying the communication configuration information. Therefore, the inter-device communication method of the present application further includes the steps of: receiving an editing instruction of a user; and editing the communication configuration information according to the editing instruction. This enables dynamic allocation of the communication allocation information.
It should be understood that the communication configuration information may also be stored in the first device.
In one embodiment of the application, the mobile terminal may read the communication configuration information from the first device or download the communication configuration information from the configuration server, and determine a communication mode corresponding to the application identifier according to the communication configuration information. Fig. 4 is a flowchart illustrating application pairing of a mobile terminal, a configuration server, and a TV end according to an embodiment of the present application.
In another embodiment of the present invention, the mobile terminal may also send the application identifier to the configuration server to query the corresponding communication mode.
S103, sending information to the application program according to the communication mode.
Specifically, the information to be sent may be processed according to whether the information to be sent set in the communication mode is encrypted, an encryption mode, and information such as an operation authority possessed by a corresponding application program in the first device, and sent to the application program currently running in the first device after processing. The application program currently running in the first device can analyze and execute the received information, and can inform the mobile terminal of the processing result and the state. If the information is encrypted information, the information can be decrypted according to a corresponding decryption algorithm, and after decryption, analysis and execution processing are carried out.
In an embodiment of the present application, before the obtaining of the application identifier of the application currently running in the first device, the method may further include: and establishing a unified communication channel with the first equipment. Wherein, S103 may include: and sending information carrying the application identifier to the first equipment according to the communication mode so that the first equipment sends the information to a corresponding application program according to the application identifier.
That is to say, the mobile terminal may send information to the first device according to the communication mode through the established unified communication channel, where the information carries the application identifier. And after receiving the information, the first device sends the information to a corresponding application program according to the application identification. For example, as shown in fig. 5. After the information is sent to the first device through the unified communication channel, the first device can send the information to the game, movie and television, remote control and other application programs of the first terminal according to the application identification carried by the information.
In another embodiment of the present application, before the obtaining of the application identifier of the application currently running in the first device, the method may further include: and establishing a special communication channel corresponding to the application identification with the first equipment. Wherein, S103 may include: and communicating with the application program by adopting the special communication channel according to the communication mode.
That is, the mobile terminal may establish corresponding proprietary communication channels with the application programs installed in the first device, respectively. The mobile terminal can select a corresponding special communication channel according to the application identifier and send the information to a corresponding application program.
According to the inter-device communication method, the application identification of the currently running application program in the first device is obtained, the communication mode corresponding to the application identification is determined, information is sent to the application program in the first device according to the communication mode, different communication modes can be selected according to different application programs to communicate with the first device, the communication mode corresponding to different application scenes is selected to communicate, the communication mode is more diversified, and different requirements of a user on high efficiency, safety and the like during interactive operation with other devices through the mobile terminal in different application scenes can be met.
If the communication mode is a secure communication mode, in order to improve the security of the information to be transmitted, the information needs to be encrypted and then transmitted. If the communication mode is a time-efficient communication mode, that is, the security of the information to be transmitted is not high, and the user prefers to obtain a quick response, the information does not need to be encrypted and can be directly transmitted. Specifically, fig. 6 is a flowchart of an inter-device communication method according to another embodiment of the present application.
As shown in fig. 6, the inter-device communication method according to the embodiment of the present application includes steps S601-S602, where S601-S602 are the same as S101-S102. Further, steps S603 and S604 may also be included.
S603, if the communication mode is a safe communication mode, encrypting information by adopting a preset encryption mode corresponding to the application identifier, and sending the information to the application program.
Therefore, in the secure communication mode, the information can be encrypted and transmitted, and the security of the communication content is improved.
S604, if the communication mode is the aging communication mode, the information is sent to the application program.
Therefore, in the aging communication mode, the information can be directly sent to the corresponding application program, and the communication efficiency is improved.
Further, if the communication mode is an aging communication mode, whether to perform compression transmission on the information can be further selected according to the size of the information amount of the information. Specifically, this can be achieved by steps S701 to S703 shown in fig. 7. Wherein the content of the first and second substances,
s701, judging whether the information quantity of the information is larger than a preset threshold value or not.
S702, if the information amount of the information is larger than the preset threshold value, compressing the information and then sending the information to the application program.
S703, if the information amount of the information is not larger than the preset threshold value, directly sending the information to the application program.
Therefore, when the information amount is large, the information can be compressed and transmitted, so that the transmission rate can be increased, and the communication efficiency can be further lowered.
Corresponding to the inter-device communication method provided by the above embodiment, the present application also provides an inter-device communication apparatus.
The inter-device communication apparatus in the embodiment of the present application may be applied to a terminal device that controls a first device, such as a mobile terminal, an intelligent wearable device, and the like, where the following embodiment takes the mobile terminal as an example for description. The first device may be a smart device capable of running an application.
Fig. 8 is a schematic structural diagram of an inter-device communication apparatus according to an embodiment of the present application.
As shown in fig. 8, an inter-device communication apparatus according to an embodiment of the present application includes: the device comprises an acquisition module 10, a determination module 20 and a sending module 30.
Specifically, the obtaining module 10 is configured to obtain an application identifier of an application currently running in the first device.
In an embodiment of the application, the mobile terminal and the first device may establish a connection in advance. For example, the mobile terminal and the first device in the same local area network may establish a long TCP connection according to the negotiated port. The mobile terminal may discover the first device through multicast or probing of the home network. After the mobile device establishes the TCP connection with the first device, it may determine whether the connection is disconnected by periodically sending heartbeat packets.
Compared with the prior art that in the communication between the mobile terminal and the intelligent device based on the application level, the communication content and the communication protocol need to be agreed in advance by the application in the mobile terminal and the intelligent device, and once the communication content and the communication protocol are changed, the communication cannot be completed, the long connection is established between the mobile terminal and the first device through the port in the embodiment of the application, so that the problem that the communication cannot be performed due to the fact that the mobile terminal and the first device are incompatible with each other can be effectively solved.
In one embodiment of the present application, the first device may be a smart television. Taking the first device as a TV television and the mobile terminal as a smart phone as an example, a flowchart of establishing a connection between the mobile device and the first device may be shown in fig. 2.
In an embodiment of the present application, the obtaining module 10 may obtain the application identifier of the application currently running in the first device through an active obtaining manner or a passive obtaining manner.
The active obtaining manner is that the obtaining module 10 sends a request for obtaining an application identifier of a currently running application program to the first device. After receiving the request, the first device may return the application identifier of the currently running application to the mobile terminal. Fig. 3a is a flowchart of an inter-device communication method corresponding to an active acquisition mode according to an embodiment of the present application.
The passive acquisition mode is that when the first device starts an application program, the first device may acquire an application identifier of the application program and send the identifier to the acquisition module 10. Fig. 3b is a flowchart of an inter-device communication method corresponding to a passive acquisition mode according to an embodiment of the present application.
There are various ways for the first device to obtain the application identifier of the currently running application, among which is a notification message via an input method. When the first device opens the application program, the input method receives the opening notice of the application program, and when the first device exits the application program, the input method also receives the exit notice of the application program. Thus, the first device may determine the application identification of the application currently running in the first device by listening for notifications of the input method.
The determining module 20 is configured to determine a communication mode corresponding to the application identifier according to preset communication configuration information.
The communication configuration information is information for configuring mapping relation between the application identifier and the communication mode. The application identifier is used for uniquely identifying the application program and may be at least one of a name, a package name, and a version number of the application program.
For example, the mobile terminal may compare the version number of the application program in the communication configuration information with the version number of the application program in the first device to determine whether the application program in the first device supports the corresponding communication mode.
The communication modes may include secure communication modes, time efficient communication modes, and the like. Whether the information to be sent is encrypted or not, an encryption mode, operation authority of a corresponding application program in the first device and the like are set in each communication mode. Therefore, communication content between the devices, whether safety check is needed or not and the like can be determined according to application scenes corresponding to different application programs, and the requirements of users in specific scenes are met.
For example, it is necessary to ensure timeliness of the key for channel change, volume adjustment, and the like to quickly respond, and then the control information corresponding to these operations may be set to be unencrypted to ensure timeliness of the operations.
If the information to be transmitted relates to an account number, personal information and the like, the information to be transmitted needs to be encrypted.
In addition, according to the level of the safety requirement of the application program, different encryption modes can be set for encrypting the information to be transmitted, such as simple digital encryption, complex encoding encryption and the like.
When the authority required by the information to be sent of the mobile terminal is greater than the operation authority of the corresponding application program in the first device, the application program currently running in the first device cannot respond to the instruction in the information to be sent, and the information can be directly discarded, and the user of the mobile terminal can also be prompted.
It should be understood that the communication configuration information of the application programs in the mobile terminal and the first device may be added with the extension information according to the actual scene needs, so as to meet the requirements of different communication scenes and different application programs.
The communication configuration information in the embodiment of the present application may be described in a format such as JSON (JavaScript Object Notation) or XML (Extensible Markup Language).
In embodiments of the present application, the communication configuration information may be stored in a designated configuration server. When a new application program is installed in the first device, a communication mode corresponding to the application identifier of the application program may be correspondingly added to the communication configuration information.
Furthermore, the user can log in the configuration server to perform operation and maintenance operations such as adding, deleting and modifying the communication configuration information. Therefore, as shown in fig. 9, the inter-device communication apparatus of the present application further includes: a receiving module 40 and an editing module 50.
The receiving module 40 is configured to receive an editing instruction of a user;
the editing module 50 is configured to edit the communication configuration information according to the editing instruction.
It should be understood that the communication configuration information may also be stored in the first device.
In an embodiment of the present application, the determining module 20 may read the communication configuration information from the first device or download the communication configuration information from the configuration server, and may determine the communication mode corresponding to the application identifier according to the communication configuration information. Fig. 4 is a flowchart illustrating application pairing of a mobile terminal, a configuration server, and a TV end according to an embodiment of the present application.
In another embodiment of the present invention, the determination module 20 may also send the application identifier to a configuration server to query the corresponding communication mode.
The sending module 30 is configured to send information to the application according to the communication mode.
Specifically, the sending module 30 may process the information to be sent according to information such as whether the information to be sent set in the communication mode is encrypted, an encryption mode, and an operation authority possessed by a corresponding application program in the first device, and send the processed information to the application program currently running in the first device. The application program currently running in the first device can analyze and execute the received information, and can inform the mobile terminal of the processing result and the state. If the information is encrypted information, the information can be decrypted according to a corresponding decryption algorithm, and after decryption, analysis and execution processing are carried out.
In an embodiment of the present application, as shown in fig. 10, the inter-device communication apparatus according to the embodiment of the present application may further include:
the first establishing module 60 is configured to establish a unified communication channel with the first device before the obtaining of the application identifier of the application currently running in the first device.
The sending module 30 may be specifically configured to: and sending information carrying the application identifier to the first equipment according to the communication mode so that the first equipment sends the information to a corresponding application program according to the application identifier.
That is to say, the sending module 30 may send information to the first device according to the communication mode through the unified communication channel that has been established by the first establishing module 60, where the information carries the application identifier. And after receiving the information, the first device sends the information to a corresponding application program according to the application identification. For example, as shown in fig. 5. After the information is sent to the first device through the unified communication channel, the first device can send the information to the game, movie and television, remote control and other application programs of the first terminal according to the application identification carried by the information.
In another embodiment of the present application, as shown in fig. 11, the inter-device communication apparatus according to the embodiment of the present application may further include:
the second establishing module 70 is configured to establish a proprietary communication channel corresponding to the application identifier with the first device.
The sending module 30 may be specifically configured to: and communicating with the application program by adopting the special communication channel according to the communication mode.
That is, the second establishing module 70 may respectively establish corresponding proprietary communication channels with the applications installed in the first device. The sending module 30 may select a corresponding proprietary communication channel according to the application identifier to send the information to the corresponding application program.
In an embodiment of the present application, if the communication mode is a secure communication mode, in order to improve the security of the information to be transmitted, the information needs to be encrypted and then transmitted. Specifically, if the communication mode is a secure communication mode, the sending module 30 may be configured to: and encrypting the information by adopting a preset encryption mode corresponding to the application identifier, and sending the information to the application program. Therefore, in the secure communication mode, the information can be encrypted and transmitted, and the security of the communication content is improved.
In another embodiment of the present application, if the communication mode is an aging communication mode, that is, the security of the information to be transmitted is not high, and the user prefers to obtain a quick response, the information can be directly transmitted without encrypting the information. Specifically, if the communication mode is an aging communication mode, the sending module 30 may be configured to: and sending the information to the application program. Therefore, in the aging communication mode, the information can be directly sent to the corresponding application program, and the communication efficiency is improved.
Further, if the communication mode is an aging communication mode, whether to perform compression transmission on the information can be further selected according to the size of the information amount of the information. As shown in fig. 12, the inter-device communication apparatus according to the embodiment of the present application may further include:
the judging module 80 is configured to judge whether the information amount of the information is greater than a preset threshold.
The sending module 30 may be configured to, when the information amount of the information is greater than the preset threshold, compress the information and send the compressed information to the application program. If the information amount of the information is not greater than the preset threshold, the sending module 30 may directly send the information to the application program.
Therefore, when the information amount is large, the information can be compressed and transmitted, so that the transmission rate can be increased, and the communication efficiency can be further lowered.
According to the inter-device communication device, the application identification of the application program currently running in the first device is obtained, the communication mode corresponding to the application identification is determined, information is sent to the application program in the first device according to the communication mode, different communication modes can be selected according to different application programs to communicate with the first device, the communication mode corresponding to different application scenes is selected to communicate, the communication mode is more diversified, and different requirements of a user on high efficiency, safety and the like during interactive operation with other devices through the mobile terminal in different application scenes can be met.
The application also provides a communication system between the devices.
The communication system between devices of the embodiment of the present application includes: an inter-device communication apparatus according to any embodiment of the present application; and a smart television.
According to the communication system between the devices, the application identification of the application program currently running in the first device is obtained, the communication mode corresponding to the application identification is determined, the information is sent to the application program in the first device according to the communication mode, different communication modes can be selected according to different application programs to communicate with the first device, the communication mode corresponding to different application scenes is selected to communicate, the communication mode is more diversified, and different requirements of a user on high efficiency, safety and the like during interactive operation with other devices through the mobile terminal in different application scenes can be met.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

Claims (13)

1. An inter-device communication method is applied to terminal equipment for controlling an intelligent television, and is characterized by comprising the following steps:
establishing a unified communication channel with the intelligent television;
acquiring an application identifier of a currently running application program in the smart television;
determining a communication mode corresponding to the application identifier according to preset communication configuration information, wherein the communication configuration information records the mapping relation between the application identifier and the communication mode, and sets whether information to be sent is encrypted or not, an encryption mode and operation permission of an application program corresponding to the communication mode in the smart television in each communication mode;
and sending information to the application program according to the communication mode, wherein the information carrying the application identifier is sent to the smart television through the unified communication channel according to the communication mode, so that the smart television sends the information to the corresponding application program according to the application identifier.
2. The inter-device communication method of claim 1, wherein if the communication mode is a secure communication mode, the sending information to the application according to the communication mode comprises:
and encrypting the information by adopting a preset encryption mode corresponding to the application identifier, and sending the information to the application program.
3. The inter-device communication method of claim 1, wherein if the communication mode is an aging communication mode, the sending information to the application according to the communication mode comprises:
and sending the information to the application program.
4. The inter-device communication method as claimed in claim 3, further comprising:
judging whether the information quantity of the information is larger than a preset threshold value or not;
and if the information quantity of the information is larger than the preset threshold value, compressing the information and then sending the information to the application program.
5. The inter-device communication method according to any one of claims 1 to 4, wherein before the obtaining of the application identifier of the application currently running in the smart television, the method further comprises:
establishing a special communication channel corresponding to the application identification with the intelligent television,
the communicating with the application program according to the communication mode includes:
and communicating with the application program by adopting the special communication channel according to the communication mode.
6. The inter-device communication method of any one of claims 1-4, further comprising:
receiving an editing instruction of a user;
and editing the communication configuration information according to the editing instruction.
7. An inter-device communication apparatus, comprising:
the first establishing module is used for establishing a unified communication channel with the intelligent television;
the acquisition module is used for acquiring an application identifier of a currently running application program in the smart television;
the determining module is used for determining a communication mode corresponding to the application identifier according to preset communication configuration information, wherein the communication configuration information records the mapping relation between the application identifier and the communication mode, and whether the information to be sent is encrypted or not, an encryption mode and the operation authority of an application program corresponding to the communication mode in the intelligent television are set in each communication mode;
a sending module, configured to send information to the application according to the communication mode, where the sending module is configured to: and sending information carrying the application identifier to the smart television through the unified communication channel according to the communication mode, so that the smart television sends the information to a corresponding application program according to the application identifier.
8. The inter-device communication apparatus of claim 7, wherein if the communication mode is a secure communication mode, the sending module is to:
and encrypting the information by adopting a preset encryption mode corresponding to the application identifier, and sending the information to the application program.
9. The inter-device communication apparatus of claim 7, wherein if the communication mode is an aging communication mode, the sending module is to:
and sending the information to the application program.
10. The inter-device communication apparatus of claim 9, further comprising:
the judging module is used for judging whether the information quantity of the information is larger than a preset threshold value or not;
the sending module is used for compressing the information and sending the compressed information to the application program when the information amount of the information is larger than the preset threshold value.
11. The inter-device communication apparatus according to any one of claims 7 to 10, further comprising: before the obtaining of the application identification of the application program currently running in the smart television,
the second establishing module is used for establishing a special communication channel corresponding to the application identifier with the intelligent television;
the sending module is used for:
and communicating with the application program by adopting the special communication channel according to the communication mode.
12. The inter-device communication apparatus according to any one of claims 7 to 10, further comprising:
the receiving module is used for receiving an editing instruction of a user;
and the editing module is used for editing the communication configuration information according to the editing instruction.
13. An inter-device communication system, comprising:
the inter-device communication apparatus of any one of claims 7-12; and
provided is a smart television.
CN201610147506.4A 2016-03-15 2016-03-15 Method, device and system for communication between devices Active CN107197077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610147506.4A CN107197077B (en) 2016-03-15 2016-03-15 Method, device and system for communication between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610147506.4A CN107197077B (en) 2016-03-15 2016-03-15 Method, device and system for communication between devices

Publications (2)

Publication Number Publication Date
CN107197077A CN107197077A (en) 2017-09-22
CN107197077B true CN107197077B (en) 2021-02-02

Family

ID=59871959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610147506.4A Active CN107197077B (en) 2016-03-15 2016-03-15 Method, device and system for communication between devices

Country Status (1)

Country Link
CN (1) CN107197077B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449417A (en) * 2018-03-29 2018-08-24 国信优易数据有限公司 A kind of service data visitation method and device
CN109583178B (en) * 2018-10-09 2023-03-10 创新先进技术有限公司 Conference collaborative participation method and system
CN111327517A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
EP3852341B1 (en) 2020-01-20 2023-08-30 Shenzhen Transsion Holdings Co., Ltd. Information sharing method, device and non-transitory computer readable storage medium thereof
CN111327764A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294488A (en) * 2012-02-23 2013-09-11 国民技术股份有限公司 Method for starting terminal application program and terminal
JP5662391B2 (en) * 2012-08-17 2015-01-28 株式会社東芝 Information operating device, information output device, and information processing method
CN104242994B (en) * 2013-06-06 2017-02-08 卓望数码技术(深圳)有限公司 Communication method, communication device and corresponding mobile terminal with NFC function
CN103491648B (en) * 2013-09-18 2018-04-10 宇龙计算机通信科技(深圳)有限公司 Communication means and system based on WIFI
CN104463569A (en) * 2014-11-11 2015-03-25 北京奇虎科技有限公司 Secure connection payment method and device
CN204440879U (en) * 2015-03-11 2015-07-01 鸿伟电子(惠州)有限公司 A kind of multifunctional advertising player
CN105100095A (en) * 2015-07-17 2015-11-25 北京奇虎科技有限公司 Secure interaction method and apparatus for mobile terminal application program

Also Published As

Publication number Publication date
CN107197077A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107197077B (en) Method, device and system for communication between devices
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
CN105208434A (en) Media projection method, media projection equipment, control terminal, and cloud server
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
CN105142008B (en) A method of playing second terminal data using first terminal
CN105430431B (en) multimedia data playing method and device
CN105100880A (en) Intelligent terminal, content interaction system comprising intelligent terminal and content interaction method
CN105100906A (en) Play control method and play control device
CN104683734A (en) Video surveillance content adaptation method, system, central server and device
CN105959732A (en) Method and device for pushing television program
CN104754370A (en) Cross-terminal multimedia data transmission method, device, client and system
CN113741762A (en) Multimedia playing method, device, electronic equipment and storage medium
CN105812185B (en) A kind of communication connecting method of playback equipment
CN104485110A (en) System and method for selecting songs, server and mobile terminal
CN111726663A (en) Display device and control method for establishing connection with display device
CN105516796B (en) set-top box multi-screen interactive management method and system
CN106231393B (en) Video information processing method, device and system
CN117041472A (en) Method and equipment for transmitting video stream
US20200037025A1 (en) Systems and methods for sharing devices that provide content & interactive television services
CN111050220A (en) Media data playing method and related device
CN111065057A (en) Mobile traffic sharing method, device, equipment, medium and system
CN105657533A (en) Data file playing method and device
CN113709528B (en) Play control method, play configuration device, electronic equipment and storage medium
CN112532719B (en) Information stream pushing method, device, equipment and computer readable storage medium
CN102006516A (en) Digital household content service transmission method based on cable television two-way access

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