CN115942285A - Message transfer method and device - Google Patents

Message transfer method and device Download PDF

Info

Publication number
CN115942285A
CN115942285A CN202211243325.3A CN202211243325A CN115942285A CN 115942285 A CN115942285 A CN 115942285A CN 202211243325 A CN202211243325 A CN 202211243325A CN 115942285 A CN115942285 A CN 115942285A
Authority
CN
China
Prior art keywords
message
application
wearable device
terminal
data
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.)
Pending
Application number
CN202211243325.3A
Other languages
Chinese (zh)
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.)
Hubei Xingji Shidai Technology Co Ltd
Original Assignee
Hubei Xingji Shidai 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 Hubei Xingji Shidai Technology Co Ltd filed Critical Hubei Xingji Shidai Technology Co Ltd
Priority to CN202211243325.3A priority Critical patent/CN115942285A/en
Publication of CN115942285A publication Critical patent/CN115942285A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a message transfer method and a message transfer device. The method comprises the following steps: a first application of the terminal receives a first message; the first message is sent to a second application of the terminal for processing to obtain a first data message; the terminal sends the first data message to a third application of the wearable device, so that the wearable device drives at least one interaction device to display the first message based on the first data message. According to the message flowing method and device, the first data message corresponding to the acquired first message is sent to the wearable device through the terminal, so that the wearable device can determine the content of the first message based on the acquired first data message and display the content of the first message, the flowing of the message between the wearable device and the terminal device is achieved, the second application of the terminal can receive all messages related to the wearable device in the terminal and forwards the messages to the wearable device, and the convenience of interaction between the terminal device and the wearable device is improved.

Description

Message transfer method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a message transfer method and apparatus.
Background
When the existing wearable device is used, the acquisition of the terminal device messages is generally based on bluetooth transmission, or is uniformly pushed to the wearable device by a cloud server.
In the existing method, a terminal can only complete the pushing and previewing of message summaries, and a wearable device can only display messages limited in both content and source number. The terminal can only push the notification messages of the terminal to the wearable device, but cannot push the messages from various application software in the terminal to the wearable device for display.
Disclosure of Invention
The application provides a message transfer method and a message transfer device, which are used for solving the technical problem that only notification messages of a terminal can be pushed to wearable equipment, but messages from various application software in the terminal cannot be pushed to the wearable equipment for display.
In a first aspect, an embodiment of the present application provides a message flow method, where the method includes:
a first application of the terminal receives a first message;
the first message is sent to a second application of the terminal to be processed to obtain a first data message;
the terminal sends the first data message to a third application of the wearable device, so that the wearable device drives at least one interaction device to display the first message based on the first data message.
In one embodiment, further comprising:
a second application of the terminal receives a second data message returned by a third application of the wearable device, wherein the second data message is obtained by processing a second message by the third application of the wearable device, and the second message is a reply message of the wearable device;
a second application of the terminal processes the second data message to obtain a second message;
the second message is sent to a first application of the terminal.
In one embodiment, the sending the first message to the second application of the terminal for processing to obtain the first data packet includes:
and the second application of the terminal encodes the first message to obtain an encoded first message, and performs data compression on the encoded first message to obtain the first data message.
In one embodiment, the processing, by the second application of the terminal, the second data message to obtain the second message includes:
and the second application of the terminal decompresses the second data message to obtain a decompressed second message, and decodes the decompressed second message to obtain the second message.
In one embodiment, the first message comprises one or more of a text message, an audio message, an image message, and a video message.
In one embodiment, the second message comprises one or more of a text message, an audio message, an image message, and a video message.
In one embodiment, the first message further comprises an application identifier of the first application, the application identifier indicating a source application of the first message.
In a second aspect, an embodiment of the present application further provides a message flowing method, where the method includes:
a third application of the wearable device receives a first data message sent by a terminal, wherein the first data message is obtained by processing a first message sent to a second application of the terminal after the first application of the terminal receives the first message;
and the wearable equipment drives at least one interaction device to display the first message based on the first data message.
In one embodiment, further comprising:
receiving, by a third application of the wearable device, a second message, the second message being a reply message of the wearable device;
processing by a third application of the wearable device based on the second message to obtain a second data message;
and the third application of the wearable device sends the second data message to the second application of the terminal.
In one embodiment, the processing, by a third application of the wearable device, based on the second message to obtain a second data packet includes:
and the third application of the wearable device encodes the second message to obtain an encoded second message, and performs data compression on the encoded second message to obtain the second data message.
In one embodiment, the wearable device drives at least one interactive device to display the first message based on the first data packet, including:
decompressing, by a third application of the wearable device, the first data packet to obtain a decompressed first message, and decoding the decompressed first message to obtain the first message;
the wearable device drives at least one interaction device to display the first message based on the first message.
In one embodiment, the second message includes an application identification of the first application, the application identification indicating a reply application to the second message.
In one embodiment, the first message comprises one or more of a text message, an audio message, an image message, and a video message.
In one embodiment, the second message comprises one or more of a text message, an audio message, an image message, and a video message.
In a third aspect, an embodiment of the present application further provides a terminal, where the terminal includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements any one of the above-mentioned message flowing methods.
In a fourth aspect, an embodiment of the present application further provides a wearable device, where the wearable device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the message flow method of any one of the above when executing the computer program.
In a fifth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the message flow method of any one of the above.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, 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 flowchart of a message flow method according to an embodiment of the present application;
FIG. 2 is a block diagram of an overall framework provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a process of transferring an interactive message flow of a terminal to a wearable device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a data protocol format for a terminal to flow to a wearable device according to an embodiment of the present application;
fig. 5 is a schematic flow chart illustrating a process of transferring an interactive message stream to a terminal of a wearable device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a wearable device stream to terminal data protocol format according to an embodiment of the present application;
fig. 7 is a data protocol format diagram of a user active reply message according to an embodiment of the present application;
fig. 8 is a second flowchart illustrating a message flow method according to an embodiment of the present application;
fig. 9 is a schematic diagram of a data link establishment procedure according to an embodiment of the present application;
fig. 10 is a flowchart illustrating a message flow method according to an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are some, not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flowchart of a message flow method provided in an embodiment of the present application, and referring to fig. 1, the message flow method provided in the embodiment of the present application includes the following steps:
step 110, a first application of the terminal receives a first message;
step 120, the first message is sent to a second application of the terminal for processing to obtain a first data message;
step 130, the terminal sends the first data packet to a third application of the wearable device, so that the wearable device drives at least one interaction device to display the first message based on the first data packet.
The terminal in the embodiment of the present application includes various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, such as mobile phones, tablets, desktop notebooks, and smart devices that can run applications, including a central console of a smart car, and the like. And may particularly refer to a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or a user equipment. The terminal device may also be a satellite phone, a cellular phone, a smart phone, a wireless data card, a wireless modem, a machine type communication device, which may be a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capability, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device or wearable device, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote medical) network, a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (security), a wireless terminal in urban wireless network (G), or a future wireless network in a wireless network (G5). The mobile terminal may be powered by a battery, may be attached to and powered by a power supply system of a vehicle or a vessel. The power supply system of the vehicle or the ship may also charge a battery of the mobile terminal to extend the communication time of the mobile terminal.
The wearable device in the embodiment of the present application includes an intelligent bracelet, an intelligent watch, VR (Virtual Reality) glasses, AR (Augmented Reality) glasses, and the like, and the specific type of the wearable device is not limited in the embodiment of the present application.
The following describes the technical solution of the present application in detail by taking an example in which a terminal executes the message forwarding method provided by the embodiment of the present application.
Specifically, in step 110, a first application in the terminal receives a first message.
The first application in the terminal is an application which can interact with the wearable device in all applications of the terminal. The user may implement an interactive process of messages based on the first application and the wearable device.
Wherein the first message may include one or more of a text form message, an audio form message, an image form message, and a video form message. For example, when the first application is a chat-type application program, interactive messages such as text messages, voice messages, picture video messages, and the like may be sent to the wearable device.
In step 120, after receiving the first message, the first message is sent to the second application of the terminal for processing, so as to obtain a first data packet.
The second application is equivalent to a first message transfer station when the first application in the terminal interacts with the wearable device. After a first message of a first application in a terminal is acquired, the received first message is sent to wearable equipment.
Alternatively, the first application of the terminal may transmit the received first message to the second application of the terminal based on a message flow SDK (Software Development Kit) of the first application. When the first application receives a new message, the first application forwards the received new message to the second application through the message flow SDK.
Optionally, the second application in the terminal encodes and data-compresses the obtained first message to obtain a first data packet, and sends the obtained first data packet to the wearable device.
In step 130, the second application in the terminal processes the first message to obtain a first data packet, and then sends the obtained first data packet to a third application of the wearable device. The wearable device drives at least one interaction device based on the first data message to display the first message, and the interaction process of the first message between the terminal and the wearable device is achieved.
After receiving the first data message, the third application of the wearable device decodes the received first data message to obtain a first message.
Wherein the third application is an application in the wearable device for receiving the first data message in the terminal. And establishing connection between a third application in the wearable device and a second application of the terminal, and realizing mutual transmission of the first data message. The third application in the wearable device may receive the interactive message of the second application in the terminal, and may also transmit other messages of the wearable device itself to the second application in the terminal, and forward the messages to the first application in the terminal based on the second application in the terminal.
The first data message is used for an interaction process of the wearable device and a user to which the wearable device belongs. For example, the first datagram may be an encoded text, image, video, or audio message that is displayed or played in the wearable device. After the wearable device obtains and decodes the first data message, the text in the first data message may be rearranged and displayed based on an interaction device in the wearable device. The interactive device is a device used for displaying message content in the wearable equipment. And based on the interactive device, driving the loudspeaker module group to play the audio messages in the first data message, driving the display module group to display the augmented reality scene of the text messages in the first data message, and simultaneously driving the display module group and the loudspeaker module group to play the video messages in the first data message. After the user using the wearable device views the content obtained after decoding the first data packet, the user using the wearable device may perform an interactive operation such as replying or deleting on the content obtained after decoding the first data packet.
Optionally, as shown in fig. 2, the overall framework structure diagram provided in the embodiment of the present application, the second application may be divided into three modules:
the terminal interconnection module 210: the method comprises the steps that through BLE (Bluetooth Low Energy) and WiFi (Wireless Fidelity), the non-inductive discovery of a terminal and wearable equipment and the establishment of a data link are achieved;
message flow SDK 220: providing message flow SDK integration for a first application needing message flow, wherein the first application sends the message needing flow to a terminal message flow main control module 230 of a second application through the message flow SDK, and meanwhile, the terminal message flow main control module 230 also sends message content replied by the wearable device to the first application through the message flow SDK;
the terminal message flow master control module 230: the data transmission/reception between the second application and the third application is realized, and the message content to be transmitted is correspondingly compressed and encrypted and then is transmitted to the third application; similarly, receiving message data sent by the third application, decrypting the data, decompressing and reducing the data, and sending the content of the reply message to the first application to realize the reply of the message;
the third application can also be divided into three modules:
wearable device interconnection module 240: through Bluetooth BLE and WiFi, the non-inductive discovery of the terminal and the wearable equipment and the establishment of a data link are realized;
input/output module 250: and the output module sends the audio data in the interactive message to an earphone player of the wearable device for output according to the data type of the output interactive message, and outputs the content to be displayed to a display of the wearable device after performing necessary typesetting according to the size of a display screen output by the wearable device. When a user replies a message in a touch panel, a microphone, a virtual keyboard and other modes of the wearable device, the complete content of the replied message is acquired by the input/output module 250 at the wearable device side and is finally sent to the wearable device message flow main control module 260;
wearable device message flow to master module 260: the data transmission/reception between the second application and the third application is realized, and the reply message content sent by the input/output module 250 is correspondingly compressed and encrypted and then is transmitted to the second application; similarly, the message data sent from the second application is received, decrypted, decompressed and restored, and the obtained message content is sent to the input/output module 250, and the input/output module 250 finally presents the streamed message to the user.
When the terminal has the interactive message to be streamed to the wearable device, as shown in fig. 3, which is a schematic flow diagram of the interactive message stream of the terminal being streamed to the wearable device provided in the embodiment of the present application, the first application pushes the interactive message to be streamed to the second application through the message stream SDK, and then:
1. reporting the content of the transferred interactive message to a terminal message flow transfer main control module;
2. the terminal message flow main control module 230 performs handshake negotiation with a third application on the wearable device side through a private protocol to complete establishment of a message flow data channel;
3. after the application at the two ends of the terminal and the wearable device complete the handshake negotiation of the private protocol, the terminal compresses data of the interactive message to be circulated, reduces the data transmission quantity, and finally encrypts the compressed data;
4. after the terminal completes the compression and encryption of the interactive message, a data sending process is started, and the compressed and encrypted interactive message is sent to the wearable device from the terminal;
5. when a third application on the wearable device side receives an interactive message sent from a terminal, decompressing and decrypting data;
6. after the decompression and decryption of the data are completed, the interactive message is sent to the input/output module;
7. the input/output module judges whether the audio data is played by an earphone of the wearable device or the text message is displayed by a display of the wearable device according to the type of the transmitted interactive message, and transmits different types of data to the corresponding output unit after the judgment;
8. the audio output unit plays the message audio from the earphone;
9. the display output unit rearranges the message content in a form of adapting to a glasses display area, and finally sends the message content to the wearable equipment for display;
as shown in fig. 4, a data protocol format schematic diagram for transferring an interactive message from a terminal to a wearable device according to the embodiment of the present application is shown, where a first application of the terminal sends a TransMessage of the interactive message to be transferred to a second application of the terminal; the interactive message TransMessage comprises an application name field AppName to which the message belongs, a message source field MessageSrc, a message type field MessageType and a message content field MessageContent; after receiving the interactive message, the second application of the terminal compresses and encrypts the interactive message and sends the compressed and encrypted message to a third application of the wearable device; and after receiving the message, the third application of the wearable device decompresses and decrypts the message, rearranges the text message in the obtained message and displays the rearranged text message, and sends the audio message in the obtained message to the earphone of the wearable device for playing.
When the wearable device has a reply message for the interactive message and needs to flow to the terminal, as shown in fig. 5, which is a schematic flow diagram of the flow of the interactive message of the wearable device to the terminal, an input module such as a virtual key, a touch pad, a microphone and the like of the wearable device is called to reply the message, a third application obtains a complete reply message content through the input module, and then:
1. reporting the reply message content to the third application;
2. the third application firstly carries out handshake negotiation with the second application at the terminal side through a private protocol to complete the establishment of a message flow data channel;
3. after the third application of the wearable device and the second application of the terminal complete the handshake negotiation of the private protocol, the wearable device end compresses data to be replied to message data, reduces the data transmission amount, and finally encrypts the compressed data;
4. after the wearable device end completes compression and encryption of reply message data, a corresponding application name is added before a message is sent according to the type of the reply message, and an object and other necessary information are sent to finally form a complete reply message;
5. then the wearable device end sends the reply message to the terminal from the wearable device end;
6. after receiving the reply message sent from the wearable device, the second application at the terminal side decompresses and decrypts the data;
7. after the decompression and decryption of the data are completed, according to the application name AppName of the first application designated in the reply message, the reply message is sent to the first application to be replied through the message streaming SDK;
8. after receiving the reply message sent by the message flow SDK, the first application sends the message to the designated receiver/receiving group according to the designated sending object in the reply message;
as shown in fig. 6, a data protocol format of the reply message transferred from the wearable device to the terminal may be a data protocol format schematic diagram of the wearable device transferred to the terminal in the embodiment of the application, where an input module of the wearable device obtains the reply message and sends the reply message to a third application of the wearable device; the reply message reply comprises an application name field AppName to which the message belongs, a message recipient field SendAddress, a message type field MessageType and a message content field MessageContent; after receiving the reply message, the third application of the wearable device compresses and encrypts the reply message and sends the compressed and encrypted reply message to the second application of the terminal; after receiving the compressed and encrypted reply message, the second application of the terminal decompresses and decrypts the reply message, and pushes the reply message to the corresponding first application based on the AppName field; and after receiving the reply message, the first application pushes the reply message to the corresponding contact person based on the SendAddress field.
As shown in fig. 7, as long as the user specifies the message type and the recipient/receiving group to be replied, the user may transfer the message stream to the first application corresponding to the terminal connected to the user for message transmission, and specifically, the input module of the wearable device obtains the reply message actively from the user and transmits the reply message to the third application of the wearable device; the active reply message comprises an application name field AppName to which the message belongs, a message recipient field SendAddress, a message type field MessageType and a message content field MessageContent; after receiving the active reply message, the third application of the wearable device compresses and encrypts the active reply message and sends the compressed and encrypted active reply message to the second application of the terminal; the second application of the terminal decompresses and decrypts the compressed and encrypted active reply message after receiving the compressed and encrypted active reply message, and pushes the active reply message to the corresponding first application based on the AppName field; and after receiving the active reply message, the first application pushes the active reply message to the corresponding contact person based on the SendAddress field.
According to the message flowing method, the terminal sends the first data message corresponding to the acquired first message to the wearable device, so that the wearable device can determine the content of the first message based on the acquired first data message and display the content of the first message, the flowing of the message between the wearable device and the terminal device is achieved, the second application of the terminal can receive all messages related to the wearable device in the terminal and forwards the messages to the wearable device, and the convenience of interaction between the terminal device and the wearable device is improved.
Based on the above embodiment, further include:
a second application of the terminal receives a second data message returned by a third application of the wearable device, wherein the second data message is obtained by processing a second message by the third application of the wearable device, and the second message is a reply message of the wearable device; a second application of the terminal processes the second data message to obtain a second message; the second message is sent to a first application of the terminal.
And the second application of the terminal receives a second data message returned by a third application of the wearable device. The second data message may be a second message acquired by the wearable device based on the input module of the wearable device, and the second message is processed. The second message may be a reply message for the first message after the user refers to the content of the first message, or may be an interactive message initiated by the user actively for the first application in the terminal device.
And after the second data message is obtained, the terminal receives the second data message sent by the third application. And the second application in the terminal processes the second data message to obtain a second message and returns the second message to the first application of the terminal.
And after the terminal equipment obtains the second message content, injecting the second message content into the first application, and displaying the second message to a corresponding user.
According to the message flow method provided by the embodiment of the application, the second data message returned by the third application of the wearable device is received through the second application of the terminal, the second application of the terminal processes the received second data message to obtain the second message, and the second message is sent to the first application of the terminal, so that the message flow process that the reply message of the wearable device is transferred to the first application of the terminal is realized.
Based on the above embodiment, step 120 includes:
and the second application of the terminal encodes the first message to obtain an encoded first message, and performs data compression on the encoded first message to obtain the first data message.
And after the second application of the terminal acquires the first message of the first application, coding the first message to obtain the coded first message. And performing data compression on the encoded first message to obtain the first data message.
Optionally, after the first data packet is obtained, before the first data packet is transmitted to the wearable device, the first data packet may be encrypted and transmitted based on an encryption algorithm, and the encryption method may be encrypted based on a TLS (Transport Layer Security).
It can be understood that, after the third application of the wearable device receives the first data packet, the first message is obtained after decompressing and decoding the obtained first data packet.
According to the message flow method provided by the embodiment of the application, the first message is encoded and compressed to obtain the first data message, and then the obtained first data message is transmitted, so that the transmission efficiency of the first message is improved.
Based on the above embodiment, step 130 includes:
and the second application of the terminal decompresses the second data message to obtain a decompressed second message, and decodes the decompressed second message to obtain the second message.
And after the second application of the terminal receives the second data message, processing the received second data message.
Because, the wearable device encodes and compresses the second message before sending the second message to the terminal. Therefore, after receiving the second message, the second application of the terminal needs to decompress the obtained second data message, and decode the decompressed second message to obtain the original second message.
In the message streaming method provided in the embodiment of the present application, the second data message is decompressed through the second application of the terminal to obtain the decompressed second message, and the decompressed second message is decoded to obtain the second message. And the transmission efficiency of the second message is ensured by the way of encoding and compressing the second message in the transmission process.
Based on the above embodiment, the first message includes one or more of a text message, an audio message, an image message, and a video message.
The type of the first message may be one or more of a text message, an audio message, an image message, and a video message.
Optionally, after obtaining the first message and determining the data type of the first message, the third application of the wearable device sends the audio message in the first message to an earphone player of the wearable device for output; performing necessary typesetting on the text message in the first message to be displayed according to the size of the display screen output by the wearable device, and outputting the text message to a display of the wearable device; and outputting the video message in the first message to a display of the wearable device for playing.
According to the message flowing method, the type of the first message is determined to be one or more of text message, audio message, image message and video message, the interaction process of various types of messages is achieved, and the flexibility of interaction between the terminal and the intelligent wearable device is improved.
Based on the above embodiment, the second message includes one or more of a text message, an audio message, an image message, and a video message.
The type of the second message may be one or more of a text message, an audio message, an image message, and a video message.
The third application of the wearable device may obtain the second message based on an input device such as a virtual key, a touch pad, a microphone, and the like of the wearable device, so that the third application obtains the second message.
According to the message flowing method provided by the embodiment of the application, the type of the second message is determined to be one or more of a text message, an audio message, an image message and a video message, so that the interaction process of various types of messages is realized, and the flexibility of interaction between the terminal and the intelligent wearable device is improved.
Based on the above embodiment, the first message further includes an application identifier of the first application, where the application identifier is used to indicate a source application of the first message.
For a first message obtained from a first application, an application identification of the first application may be added to the first message. The application identifier is an application identifier of the first application for indicating that the first message originates from the first application, i.e. it may be determined that the first message is from the first application based on the application identifier.
The application identifier may be an application name or an application ID of the application.
It may be appreciated that, after the third application of the wearable device receives the first message, based on the application identification in the first message, it may be determined that the first message with which to interact is from the first application. Then after determining a reply message to the first message, it may be determined that the reply message is returned to the first application.
According to the message flowing method provided by the embodiment of the application, the message interaction object is determined by determining that the first message further comprises the application identifier of the first application, and the message interaction process between the terminal and the wearable device is facilitated.
Fig. 8 is a second flowchart of the message flow method according to the embodiment of the present application, and referring to fig. 8, the message flow method according to the embodiment of the present application includes the following steps:
step 810, a third application of the wearable device receives a first data message sent by a terminal, wherein the first data message is obtained by processing a first message sent to a second application of the terminal after the first application of the terminal receives the first message;
step 820, the wearable device drives at least one interaction apparatus to display the first message based on the first data packet.
The terminal in the embodiment of the present application includes various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, such as mobile phones, tablets, desktop notebooks, and smart devices that can run applications, including a central console of a smart car, and the like. And may particularly refer to a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or a user equipment. The terminal device may also be a satellite phone, a cellular phone, a smart phone, a wireless data card, a wireless modem, a machine type communication device, which may be a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capability, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device or wearable device, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote medical) network, a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (security), a wireless terminal in urban wireless network (G), or a future wireless network in a wireless network (G5). The mobile terminal may be powered by a battery, may be attached to and powered by a power supply system of a vehicle or a vessel. The power supply system of the vehicle or the ship may also charge a battery of the mobile terminal to extend the communication time of the mobile terminal.
The wearable device in the embodiment of the present application includes an intelligent bracelet, an intelligent watch, VR (Virtual Reality) glasses, AR (Augmented Reality) glasses, and the like, and the specific type of the wearable device is not limited in the embodiment of the present application.
The following describes the technical solution of the present application in detail by taking an example in which a wearable device executes the message flow method provided by the embodiment of the present application.
Specifically, in step 810, the third application of the wearable device receives a first data packet sent by the terminal, where the first data packet is obtained by processing a first message sent to the second application of the terminal after the first application of the terminal receives the first message.
The third application is an application in the wearable device for receiving the first data message in the terminal. And establishing connection between a third application in the wearable device and a second application of the terminal, and realizing mutual transmission of the first data message. The third application in the wearable device may receive the interactive message of the second application in the terminal, and may also transmit other messages of the wearable device itself to the second application in the terminal, and forward the messages to the first application in the terminal based on the second application in the terminal.
The second application is equivalent to a first message transfer station when the first application in the terminal interacts with the wearable device.
Alternatively, the first application of the terminal may transmit the received first message to the second application of the terminal based on a message flow SDK (Software Development Kit) of the first application. When the first application receives a new message, the first application forwards the received new message to the second application through the message flow SDK.
In step 820, the wearable device drives at least one interaction apparatus to display the first message based on the first data packet.
After receiving the first data message, the third application of the wearable device decodes the received first data message to obtain a first message.
The first data message is used for an interaction process of the wearable device and a user to which the wearable device belongs. For example, the first datagram may be an encoded text, image, video, or audio message that is displayed or played in the wearable device. After the wearable device obtains and decodes the first data message, the text in the first data message may be rearranged and displayed based on an interaction device in the wearable device. The interactive device is a device used for displaying message content in the wearable equipment. And based on the interactive device, driving the loudspeaker module to play the audio messages in the first data message, driving the display module to display the augmented reality scene of the text messages in the first data message, and simultaneously driving the display module and the loudspeaker module to play the video messages in the first data message. After the user using the wearable device views the content obtained after decoding the first data packet, the user using the wearable device may perform an interactive operation such as replying or deleting on the content obtained after decoding the first data packet.
According to the message transfer method provided by the embodiment of the application, the first data message sent by the terminal is received through the third application of the wearable device, the received first data message is processed to obtain the first message, and the interaction device is driven to display the first message. The circulation of messages between the wearable device and the terminal device is realized, so that all messages related to the wearable device in the terminal can be received by the second application of the terminal and forwarded to the wearable device, and the convenience of interaction between the terminal device and the wearable device is improved.
Based on the above embodiment, further include:
receiving, by a third application of the wearable device, a second message, the second message being a reply message of the wearable device;
processing by a third application of the wearable device based on the second message to obtain a second data message;
and the third application of the wearable device sends the second data message to the second application of the terminal.
Wherein the second message is a reply message returned by the wearable device to the terminal device. The second message may include one or more of a message in text form, a message in audio form, a message in image form, and a message in video form.
It is to be understood that the second message may be a second message that the belonging user of the wearable device may determine based on the received first message and after completing the corresponding interaction operation. Or a message sent to the terminal device initiated by the user.
The second message may be retrieved based on an input device, such as a virtual key, a touch pad, a microphone, etc., of the wearable device, such that the third application receives the second message.
And after the third application of the wearable device obtains and receives the second message, processing the second message to obtain a second data message corresponding to the second message.
Optionally, the third application in the wearable device encodes and data-compresses the obtained second message to obtain a second data message.
And after the wearable device obtains the second data message, the obtained second data message is sent to a second application of the terminal based on a third application of the wearable device.
And the second message is used for realizing an interaction process between the wearable device and the terminal device. For example, the second message may be a text, image, video or audio message in the wearable device. After receiving the second message, the second application of the terminal may return the second message to the first application based on the obtained second message. Therefore, the interaction process of the wearable device and the terminal is realized.
It is understood that the third application of the wearable device needs to establish a communication link between the wearable device and the terminal before sending the obtained second data message to the second application of the terminal. And after receiving the second data message, the second application decodes and decompresses the received second data message to obtain a second message corresponding to the second data message.
Optionally, the specific link establishment process is as shown in fig. 9, which is a schematic diagram of a data link establishment process provided in the embodiment of the present application, and the specific link establishment process is as follows:
1. the Bluetooth chip is controlled by a Bluetooth control module at two ends of the terminal and the wearable device, BLE information is broadcasted periodically, and specific application program identifiers and device feature codes (such as Bluetooth mac addresses) of the wearable device are carried in the BLE information;
2. after the opposite terminal equipment receives and correctly analyzes the broadcast BLE information, extracting the equipment feature code and establishing a further BLE unicast channel (such as a GATT protocol) with the equipment;
3. on a BLE unicast channel, the two parties carry out necessary authentication, and after the authentication is passed, a WiFi link module is called to establish a WiFi point-to-point data link;
4. and taking the established WiFi point-to-point data link as a transmission channel of data at two ends.
According to the message flow method provided by the embodiment of the application, the second message is received through the third application of the wearable device, the second data message is obtained through processing based on the second message, and the second data message is sent to the second application of the terminal, so that the message flow process that the reply message of the wearable device flows to the second application of the terminal is realized.
Based on the above embodiment, step 810 includes:
and a third application of the wearable device encodes the second message to obtain an encoded second message, and performs data compression on the encoded second message to obtain the second data message.
And after the third application of the wearable device acquires the second message, coding the second message to obtain a coded second message. And performing data compression on the encoded second message to obtain the second data message.
Optionally, after the second data message is obtained, before the second data message is transmitted to the terminal, the second data message may be encrypted and transmitted based on an encryption algorithm, and the encryption method may be encrypted based on TLS (Transport Layer Security).
It can be understood that, after receiving the second data packet, the second application in the terminal decompresses and decodes the obtained second data packet to obtain the second message.
According to the message flow method provided by the embodiment of the application, the second message is encoded and compressed to obtain the second data message, and then the obtained second data message is transmitted, so that the transmission efficiency of the second message is improved.
Based on the above embodiment, step 810 includes:
decompressing the first data message by a third application of the wearable device to obtain a decompressed first message, and decoding the decompressed first message to obtain the first message;
the wearable device drives at least one interaction device to display the first message based on the first message.
After receiving the first data message, the third application of the wearable device decompresses the received first data message to obtain a decompressed first message, and decodes the decompressed first message to obtain the first message.
The first data message is used for an interaction process of the wearable device and a user to which the wearable device belongs. For example, the first data message may be an encoded text, image, video, or audio message that is displayed or played in the wearable device. After the wearable device obtains and decodes the first data message, the text in the first data message may be rearranged and displayed based on an interaction device in the wearable device. The interactive device is a device for displaying message content in the wearable device, and the wearable device may include a plurality of interactive devices. And based on the interactive device, driving the loudspeaker module to play the audio messages in the first data message, driving the display module to display the augmented reality scene of the text messages in the first data message, and simultaneously driving the display module and the loudspeaker module to play the video messages in the first data message. After the user using the wearable device views the content obtained after decoding the first data packet, the user using the wearable device may perform an interactive operation such as replying or deleting on the content obtained after decoding the first data packet.
According to the message flow method provided by the embodiment of the application, the first data message is decompressed through the third application of the wearable device, the decompressed first message is obtained, and the decompressed first message is decoded to obtain the first message. The method for encoding and compressing the first message in the transmission process guarantees the transmission efficiency of the first message.
Based on the above embodiment, step 810 includes:
the second message comprises an application identification of the first application, wherein the application identification is used for indicating a reply application of the second message.
For a second message obtained from a third application, an application identification of the first application may be added to the second message. The application identifier is an application identifier of the second application, and is used to indicate that the second message is replied to the first application, that is, it may be determined that the second message will flow to the first application based on the application identifier.
According to the message flowing method provided by the embodiment of the application, the second message is determined to comprise the application identifier of the first application, so that the message interaction object is determined, and the message interaction process between the terminal and the wearable device is facilitated.
Based on the above embodiment, step 810 includes:
the first message includes one or more of a text message, an audio message, an image message, and a video message.
The type of the first message may be one or more of a text message, an audio message, an image message, and a video message.
Optionally, after obtaining the first message and determining the data type of the first message, the third application of the wearable device sends the audio message in the first message to an earphone player of the wearable device for output; performing necessary typesetting on the text message in the first message to be displayed according to the size of the display screen output by the wearable device, and outputting the text message to a display of the wearable device; and outputting the video message in the first message to a display of the wearable device for playing.
According to the message flow method provided by the embodiment of the application, the type of the first message is determined to be one or more of the text message, the audio message, the image message and the video message, so that the interaction process of various types of messages is realized, and the flexibility of interaction between the terminal and the intelligent wearable device is improved.
Based on the above embodiment, step 810 includes:
the second message includes one or more of a text message, an audio message, an image message, and a video message.
The type of the second message may be one or more of a text message, an audio message, an image message, and a video message.
The third application of the wearable device may obtain the second message based on an input device such as a virtual key, a touch pad, or a microphone of the wearable device, so that the third application obtains the second message.
According to the message flowing method provided by the embodiment of the application, the type of the second message is determined to be one or more of a text message, an audio message, an image message and a video message, so that the interaction process of various types of messages is realized, and the flexibility of interaction between the terminal and the intelligent wearable device is improved.
The following describes a technical solution provided by the embodiment of the present application, taking a flowchart of a message flow method provided by the embodiment of the present application as an example, fig. 10:
step 1010, when the interactive message reaches the first application, the first application forwards the interactive message to the second application through the message flow SDK;
step 1020, after the second application receives the interactive message forwarded by the first application, the interactive message is correspondingly encoded and data compressed, and then the data message is sent to a third application on the wearable device;
step 1030, when receiving a new data message, the third application on the wearable device decompresses the data message, and sends the text message to the display of the wearable device for display after typesetting again according to the message content; sending audio to the earphone of the wearable device for playing to the voice message;
step 1040, when the user needs to reply the message, after inputting the content of the reply message through interaction modes such as a touch pad, a microphone, a virtual key of the wearable device, and the like, the reply message is sent on the wearable device. The reply message is compressed and coded by a third application of the wearable device end, and is sent to a second application on the terminal after information such as a reply application name, a corresponding sending object and the like is added;
step 1050, the second application on the terminal receives the reply message, decodes and restores the content of the reply message, and then injects the content of the reply message into the first application according to the application name corresponding to the reply message;
step 1060, the first application obtains the injected information of reply message content, addressees and the like through the message flow SDK, replies the message to the corresponding repliers/groups, and completes the whole message receiving, browsing and replying process;
in step 1070, the user may also send the message actively through the wearable device, and only by specifying the message type and the recipient information, the message to be sent may be sent to the corresponding first application on the terminal through the wearable device, and the first application sends the message to the corresponding recipient.
An embodiment of the present application further provides a terminal, where the terminal includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, and when the processor executes the computer program, the processor implements the message flow method provided in the foregoing method embodiments, for example, the method includes:
a first application of the terminal receives a first message;
the first message is sent to a second application of the terminal for processing to obtain a first data message;
the terminal sends the first data message to a third application of the wearable device, so that the wearable device drives at least one interaction device to display the first message based on the first data message.
On the other hand, an embodiment of the present application further provides a wearable device, where the wearable device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the message flow method provided by the above method embodiments, for example, including:
a third application of the wearable device receives a first data message sent by a terminal, wherein the first data message is obtained by processing a first message sent to a second application of the terminal after the first application of the terminal receives the first message;
and the wearable equipment drives at least one interaction device to display the first message based on the first data message.
In another aspect, the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the message flowing method provided by the foregoing method embodiments, for example, including:
a first application of the terminal receives a first message;
the first message is sent to a second application of the terminal to be processed to obtain a first data message;
the terminal sends the first data message to a third application of the wearable device, so that the wearable device drives at least one interaction device to display the first message based on the first data message.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (17)

1. A method for message flow, the method comprising:
a first application of the terminal receives a first message;
the first message is sent to a second application of the terminal to be processed to obtain a first data message;
and the terminal sends the first data message to a third application of the wearable device, so that the wearable device drives at least one interaction device to display the first message based on the first data message.
2. The message flow method of claim 1, further comprising:
a second application of the terminal receives a second data message returned by a third application of the wearable device, wherein the second data message is obtained by processing a second message by the third application of the wearable device, and the second message is a reply message of the wearable device;
the second application of the terminal processes the second data message to obtain the second message;
the second message is sent to a first application of the terminal.
3. The message flow method according to claim 1, wherein the step of sending the first message to a second application of the terminal for processing to obtain a first data packet comprises:
and the second application of the terminal encodes the first message to obtain an encoded first message, and performs data compression on the encoded first message to obtain the first data message.
4. The message flow method according to claim 2, wherein the processing of the second data message by the second application of the terminal to obtain the second message comprises:
and the second application of the terminal decompresses the second data message to obtain a decompressed second message, and decodes the decompressed second message to obtain the second message.
5. The message flow method of any of claims 1-4, wherein the first message comprises one or more of a text message, an audio message, an image message, and a video message.
6. The message flow method of claim 2 or 4, wherein the second message comprises one or more of a text message, an audio message, an image message, and a video message.
7. The message flow method according to any one of claims 1 to 4, wherein the first message further comprises an application identifier of the first application, and the application identifier is used for indicating a source application of the first message.
8. A method for message flow, the method comprising:
a third application of the wearable device receives a first data message sent by a terminal, wherein the first data message is obtained by processing a first message sent to a second application of the terminal after the first application of the terminal receives the first message;
and the wearable equipment drives at least one interaction device to display the first message based on the first data message.
9. The message flow method of claim 8, further comprising:
receiving, by a third application of the wearable device, a second message, the second message being a reply message of the wearable device;
processing by a third application of the wearable device based on the second message to obtain a second data message;
and the third application of the wearable device sends the second data message to the second application of the terminal.
10. The message flow method according to claim 9, wherein the processing by the third application of the wearable device based on the second message to obtain a second data packet comprises:
and the third application of the wearable device encodes the second message to obtain an encoded second message, and performs data compression on the encoded second message to obtain the second data message.
11. The message flow method of claim 8, wherein the wearable device drives at least one interaction device to display the first message based on the first datagram, comprising:
decompressing the first data message by a third application of the wearable device to obtain a decompressed first message, and decoding the decompressed first message to obtain the first message;
the wearable device drives at least one interaction device to display the first message based on the first message.
12. The message flow method according to any one of claims 9 or 10, wherein the second message includes an application identifier of the first application, and the application identifier is used for indicating a reply application of the second message.
13. The message flow method of any of claims 8-11, wherein the first message comprises one or more of a text message, an audio message, an image message, and a video message.
14. The message flow method of claim 9 or 10, wherein the second message comprises one or more of a text message, an audio message, an image message, and a video message.
15. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the message flow method of any one of claims 1 to 7 when executing the computer program.
16. A wearable device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the message flow method of any of claims 8 to 14.
17. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the message flow method of any of claims 1 to 7 or claims 8 to 14.
CN202211243325.3A 2022-10-11 2022-10-11 Message transfer method and device Pending CN115942285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211243325.3A CN115942285A (en) 2022-10-11 2022-10-11 Message transfer method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211243325.3A CN115942285A (en) 2022-10-11 2022-10-11 Message transfer method and device

Publications (1)

Publication Number Publication Date
CN115942285A true CN115942285A (en) 2023-04-07

Family

ID=86553022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211243325.3A Pending CN115942285A (en) 2022-10-11 2022-10-11 Message transfer method and device

Country Status (1)

Country Link
CN (1) CN115942285A (en)

Similar Documents

Publication Publication Date Title
US7792998B2 (en) System and method for providing real-time streaming service between terminals
CN102916869B (en) Instant messaging method and system
WO2015074445A1 (en) Multipath wireless displaying method and device
JP4420584B2 (en) Portable information processing terminal, information processing method, program, and information processing system
CN101287274B (en) Voice encryption system for mobile communication and encryption method thereof
CN111884802B (en) Media stream encryption transmission method, system, terminal and electronic equipment
KR102564427B1 (en) Connectionless wireless media broadcast
CN105471940A (en) Data processing method, data transmitting and receiving terminal and data transmission system
US20140380344A1 (en) Method and Apparatus for Program Information Exchange and Communications System
JP2014502461A (en) Method and apparatus for sending and receiving secure and non-secure data
CN102137394A (en) Encrypted mobile communication terminal system and method under network access
CN111885404A (en) Data transmission method, device and storage medium
CN106878277B (en) Method and device for realizing voice encryption based on DMR standard
CN115942285A (en) Message transfer method and device
CN112272319A (en) Audio and video data transmission method and device, storage medium and electronic equipment
CN115915119A (en) Implementation method for Beidou quantum encrypted communication
CN110719573A (en) Information transmission method and device, terminal equipment and storage medium
CN102624741A (en) TLV (Threshold Limit Value) based data transmission method and system thereof
WO2012146000A1 (en) Data transmission method and system
CN103856784B (en) Data sending, receiving method and electronic equipment
CN1592141A (en) Terminal to terminal encryption method of cell phone voice and data
CN101141442A (en) System and method for implementing memory card function service
CN102685070A (en) Data transmission method and data transmission device
CN102307075A (en) Voice transmission encryption method of DMR (digital mobile radio) communication terminal
CN114760347A (en) Desktop sharing method, terminal and computer readable 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
CB02 Change of applicant information

Address after: No. B1337, Chuanggu Initiation Zone, Taizihu Cultural Digital Creative Industry Park, No. 18 Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province, 430058

Applicant after: Hubei Xingji Meizu Technology Co.,Ltd.

Address before: 430014 No. b1337, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant before: Hubei Xingji times Technology Co.,Ltd.

CB02 Change of applicant information