CN114124868A - Instant communication method, device, system, equipment and storage medium - Google Patents

Instant communication method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN114124868A
CN114124868A CN202111394218.6A CN202111394218A CN114124868A CN 114124868 A CN114124868 A CN 114124868A CN 202111394218 A CN202111394218 A CN 202111394218A CN 114124868 A CN114124868 A CN 114124868A
Authority
CN
China
Prior art keywords
instant messaging
equipment
protocol
message
bluetooth
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.)
Granted
Application number
CN202111394218.6A
Other languages
Chinese (zh)
Other versions
CN114124868B (en
Inventor
马利民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111394218.6A priority Critical patent/CN114124868B/en
Publication of CN114124868A publication Critical patent/CN114124868A/en
Application granted granted Critical
Publication of CN114124868B publication Critical patent/CN114124868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The present disclosure provides an instant messaging method, an instant messaging device, an instant messaging system, an instant messaging device and a storage medium, and relates to the technical field of computers, in particular to the field of wireless communication. The specific implementation scheme is as follows: confirming whether one device and the other device support the same instant messaging protocol or not; in response to one device supporting the same instant messaging protocol as another device, the instant messaging message is encapsulated using the instant messaging protocol and passed through blue. The dental protocol sends the encapsulated instant messaging message to another device. The instant messaging is realized through the Bluetooth, and the instant messaging can be realized under the network-free environment.

Description

Instant communication method, device, system, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to the field of wireless communications.
Background
With the development of computer technology, instant messaging becomes more and more important in people's lives. People can conduct one-to-one or one-to-many online chats with a variety of message types through an instant messaging application.
Disclosure of Invention
The present disclosure provides an instant messaging method, apparatus, system, device and storage medium.
According to a first aspect of the present disclosure, there is provided an instant messaging method, including:
step A, confirming whether one device and another device support the same instant communication protocol;
and step B, responding to the fact that one device and the other device support the same instant messaging protocol, packaging the instant messaging message by using the instant messaging protocol, and sending the packaged instant messaging message to the other device through a Bluetooth protocol.
According to a second aspect of the present disclosure, there is provided an instant messaging method, comprising:
receiving an encapsulated instant messaging message sent by a Bluetooth protocol; the packaged instant communication message is obtained by packaging the instant communication message by using an instant communication protocol;
analyzing the packaged instant communication message by using the instant communication protocol to obtain the instant communication message;
and responding to the instant communication message.
According to a third aspect of the present disclosure, there is provided an instant messaging device comprising:
the confirmation module is used for confirming whether one device and the other device support the same instant communication protocol or not;
the communication module is used for responding to the fact that one device and the other device support the same instant communication protocol, packaging the instant communication message by using the instant communication protocol, and sending the packaged instant communication message to the other device through a Bluetooth protocol.
According to a fourth aspect of the present disclosure, there is provided an instant messaging device comprising:
the first receiving module is used for receiving the packaged instant communication message sent by the Bluetooth protocol; the packaged instant communication message is obtained by packaging the instant communication message by using an instant communication protocol;
the analysis module is used for analyzing the packaged instant communication message by using the instant communication protocol to obtain the instant communication message;
and the response module is used for responding the instant communication message.
According to a fifth aspect of the present disclosure, there is provided an instant messaging system comprising: the method comprises the steps of an initial device, a relay device and a target device;
the initial equipment judges whether to be connected with the target equipment in a Bluetooth mode;
responding to the situation that the initial equipment does not establish Bluetooth connection with the target equipment, and acquiring connection information of a plurality of pieces of equipment by the initial equipment; determining a device path from the initial device to the target device based on the connection information of the plurality of devices, wherein the device path comprises a path from the initial device to the target device through the relay device;
the initial equipment confirms whether the same instant communication protocol as the relay equipment supports or not; responding to the fact that the initial equipment and the relay equipment support the same instant messaging protocol, the initial equipment utilizes the instant messaging protocol to package instant messaging messages, and the packaged instant messaging messages are sent to the relay equipment through a Bluetooth protocol;
the relay equipment judges whether to be connected with the target equipment in a Bluetooth mode;
responding to the fact that the relay device and the target device establish Bluetooth connection, the relay device utilizes an instant messaging protocol to package an instant messaging message, and sends the packaged instant messaging message to the target device through the Bluetooth protocol;
in response to the relay device not establishing a Bluetooth connection with the target device, the relay device obtaining connection information of a plurality of devices; determining a device path from the relay device to the target device based on connection information of a plurality of devices;
and the relay equipment forwards the packaged instant communication message to the target equipment based on the equipment path from the relay equipment to the target equipment.
According to a sixth aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a seventh aspect of the present disclosure, there is provided an electronic apparatus comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the second aspect.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the first aspect.
According to a ninth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the second aspect.
According to a tenth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
According to an eleventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to the second aspect.
The instant messaging is realized based on Bluetooth, and the instant messaging can be realized under the network-free environment.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart of an instant messaging method provided by an embodiment of the present disclosure;
fig. 2 is a flow chart of determining whether two devices support the same instant messaging protocol in an embodiment of the present disclosure;
fig. 3 is an interaction diagram of an instant messaging method provided by an embodiment of the present disclosure;
fig. 4 is another flowchart of an instant messaging method provided by an embodiment of the present disclosure;
fig. 5A is a schematic diagram of 1 relay device in an embodiment of the disclosure;
FIG. 5B is a schematic diagram of a plurality of relay devices in an embodiment of the disclosure;
fig. 6A is another interaction diagram of an instant messaging method provided by an embodiment of the present disclosure;
fig. 6B is a schematic diagram of another interaction of the instant messaging method provided by the embodiment of the present disclosure;
fig. 7 is a flowchart of an instant messaging method provided by an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an instant messaging device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an instant messaging device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an instant messaging device according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an instant messaging device according to an embodiment of the present disclosure;
FIG. 12 is a block diagram of an electronic device for implementing an instant messaging method of an embodiment of the present disclosure;
fig. 13 is a block diagram of an electronic device for implementing another instant messaging method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the related technology, instant messaging is realized based on internet environments such as a mobile network and WiFi, and equipment needs to be accessed to the internet, and the access to the internet environment needs network services provided by a basic network operator. When the network environment cannot be provided by the basic network operator or the network environment is basically unavailable, for example, power failure occurs in a large-scale area, such as power failure and network disconnection after disaster weather occurs, a mobile network is not available in a remote area, such as poor basic mobile network facilities in remote outdoor performance places and the like, and the instant communication realized by the related technology is paralyzed and cannot be communicated.
The instant messaging method provided by the embodiment of the disclosure can be applied to mobile equipment supporting Bluetooth, such as a smart phone and a smart watch supporting Bluetooth. That is, the devices involved in the embodiments of the present disclosure may be mobile devices supporting bluetooth. The user can use the mobile device for instant messaging.
An embodiment of the present disclosure provides an instant messaging method, as shown in fig. 1, which may include:
s11, confirming whether one device and the other device support the same instant communication protocol;
and S12, responding to the instant communication protocol supported by the device and the other device, packaging the instant communication message by using the instant communication protocol, and sending the packaged instant communication message to the other device by the Bluetooth protocol.
The instant messaging method provided by the embodiment of the disclosure realizes instant messaging based on Bluetooth, and can realize instant messaging under a network-free environment, for example, under the conditions of no mobile network and no WiFi. The method is a supplement to the communication mode under the condition of no network, and expands the application range of instant messaging.
Referring to fig. 1, an instant messaging method provided by the embodiment of the disclosure is described in detail.
S11, it is confirmed whether the device and the other device support the same instant messaging protocol.
A bluetooth connection between one device and another device may be established first.
A Bluetooth connection between a device and another device is established in response to the device being able to establish a Bluetooth connection with the other device.
In one implementation, a device discovers another device that can connect to the device via bluetooth using the bluetooth protocol.
For example, the user turns on the bluetooth function of the device, the device discovers other devices that can be connected to the device via bluetooth using the bluetooth protocol, the device may provide a device list that can establish bluetooth connection with the device, the user may select one or more devices from the other devices included in the device list for communication, and the selected device to be communicated is the other device described above.
Establishing a bluetooth connection between a device and another device may be through a Software Development Kit (SDK) connection. For example, CoreBluetooth under an os environment or an Android Bluetooth Application Program Interface (API) under an Android environment is used. The bluetooth connection between devices is mainly established in a central mode and a peripheral mode, wherein the bluetooth connection between devices established based on the central mode or the peripheral mode can refer to the content in the prior art.
The format of the instant messaging protocol is not limited in the embodiments of the present disclosure, and any instant messaging protocol that can realize communication is within the scope of the embodiments of the present disclosure.
In the embodiment of the present disclosure, it may be determined in real time whether the other device and the device support the same instant messaging protocol, for example, after a bluetooth connection between the device and the other device is established, it may be determined whether the device and the other device support the same instant messaging protocol.
Or, in the embodiment of the present disclosure, it may be determined in advance whether another device and the device support the same instant messaging protocol, and a result of whether the another device and the device support the same instant messaging protocol is stored. I.e., S11 includes a result of obtaining whether the two devices support the same instant messaging protocol.
For example, it may be saved that the same instant messaging protocol is not supported; alternatively, the same instant messaging protocol is supported. When saving the instant messaging protocol supporting the same, the identifier of the instant messaging protocol supporting the same can be saved at the same time. Therefore, after the Bluetooth connection of the two devices is established, the two devices can support the same instant messaging protocol and the instant messaging protocol.
And S12, responding to the instant communication protocol supported by the device and the other device, packaging the instant communication message by using the instant communication protocol, and sending the packaged instant communication message to the other device by the Bluetooth protocol.
After confirming that the device and the other device support the same instant messaging protocol, a general instant messaging message I can be packaged according to the communication protocol and then sent to the other device in a Bluetooth protocol format to carry out instant messaging.
Another device can receive the packaged instant communication message sent by the device through the Bluetooth protocol, and the packaged instant communication message is analyzed by using the instant communication protocol to obtain the instant communication message; responding to the instant messaging message.
For example, after receiving the encapsulated instant messaging message sent by the device a through the bluetooth protocol, the device B analyzes the instant messaging message I by using the instant messaging protocol X, and then processes and responds to the instant messaging message.
The instant messaging messages are, for example, presentation messages, heartbeat messages, file transfer messages, etc., and the specific responses refer to the specifications in the instant messaging protocol X and are applicable to all instant messaging protocols.
Responding to the instant messaging message by the other device may include presenting the instant messaging message. Or may reply to the device with a response message, for example, the response message may be encapsulated using an instant messaging protocol and fed back to the device via a bluetooth protocol.
In one implementation manner, in this embodiment of the present disclosure, S12 may be repeatedly executed, that is, multiple instant messaging messages are sent, and correspondingly, another device repeatedly receives an instant messaging message sent by a device, and processes and responds to the instant messaging message.
When the Bluetooth connection between the device and another device is disconnected, the device and the another device stop instant communication.
In an alternative embodiment, as shown in fig. 2, S12 may include:
and S21, obtaining the verification data packet.
And S22, packaging the check data packet by using the instant messaging protocol to obtain the packaged check data packet.
And S23, sending the packaged verification data packet to another device through the Bluetooth protocol.
And S24, in response to receiving the reply message returned by the other device within the preset time range, wherein the reply message is consistent with the preset reply message, confirming that the other device and the device support the same instant messaging protocol.
And S25, in response to that the reply message returned by the other device is not received within the preset time range or the received reply message is inconsistent with the preset reply message, confirming that the other device and the device do not support the same instant messaging protocol.
For example, a device: device a to another device: the device B encapsulates the data packet R in the format of the instant messaging protocol X, sends the data packet R in the format of the Bluetooth protocol, analyzes the data packet R, returns a reply Q if the data packet R can be analyzed, and can confirm that the device A and the device B support the same instant messaging protocol X if the reply Q is consistent with an expected reply; if the reply Q does not match the expected reply or times out, i.e. device a does not receive the reply returned by device B within a predetermined time frame, an instant messaging protocol X is not supported.
Therefore, the instant messaging protocol used for sending the instant messaging message can confirm that the two devices support the same instant messaging protocol, and the two devices can be ensured to communicate through the instant messaging protocol.
In a specific example, device a and device B communicate with each other via bluetooth, as shown in fig. 3.
The device a discovers a device B capable of establishing a bluetooth connection with the device a through a bluetooth protocol, and links the device B, which may also be understood as establishing a bluetooth connection between the device a and the device B.
And the device A sends a check data packet to the device B to confirm whether the device B and the device A support the same instant messaging protocol X or not.
Specifically, the device a encapsulates a check data packet by using an instant messaging protocol to obtain an encapsulated check data packet, and the device a sends the encapsulated check data packet to the device B through a bluetooth protocol; responding to the response information returned by the equipment B received within the preset time range, and if the response information is consistent with the preset response information, confirming that the equipment B and the equipment A support the same instant messaging protocol; and in response to that the reply message returned by the device B is not received within the preset time range or that the received reply message is inconsistent with the preset reply message, confirming that the device B and the device a do not support the same instant messaging protocol.
When the device a confirms that the device B and the device a support the same instant messaging protocol X, the device a can perform instant messaging with the device B by using the instant messaging protocol X.
Specifically, the device a encapsulates the instant messaging message using the instant messaging protocol, and transmits the encapsulated instant messaging message to the device B through the bluetooth protocol. After receiving the packaged instant communication message sent by the device A through the Bluetooth protocol, the device B analyzes the instant communication message by using the instant communication protocol X, and then processes and responds the instant communication message. For example, device B may present the instant messaging message. Alternatively, responding to the instant messaging message by device B may include replying to device a with a response message, for example, the response message may be encapsulated using the instant messaging protocol and fed back to device a via the bluetooth protocol.
The device A can repeatedly execute the step of packaging the instant communication message through the Bluetooth protocol, the device B can repeatedly execute the step of receiving the packaged instant communication message sent by the device A through the Bluetooth protocol, the instant communication message is analyzed through the instant communication protocol X, then the instant communication message is processed and responded until the Bluetooth between the device A and the device B is disconnected, the device is off-line, and the device A and the device B stop performing instant communication through the Bluetooth.
The embodiment of the disclosure can realize instant messaging based on Bluetooth, and is a supplement to the realization of instant messaging under extreme conditions, such as no network environment, so that a user can use the instant messaging to communicate under extreme conditions.
The embodiment of the disclosure is a supplement of a communication mode under the condition of no network, the internet connection is a necessary condition for user login, the embodiment of the disclosure can also carry out instant messaging under the conditions of no network environment and no internet connection, and under the condition, the user does not need to be connected with the internet for login, and can carry out instant messaging through a visitor mode, thereby further expanding the range of instant messaging.
In addition, because bluetooth power consumption is extremely low, use bluetooth to communicate, the time of endurance is very long, even intelligent wrist-watch, also can communicate for a long time.
When a device is able to establish a bluetooth connection with another device, the device is able to communicate directly with the other device, which may be understood as end-to-end communication, as in the process of the embodiment shown in fig. 1 above.
When the initiator apparatus is to communicate with the target apparatus, it is first determined whether the initiator apparatus is bluetooth-connected to the target apparatus, and in response to the initiator apparatus having established bluetooth-connection with the target apparatus, S11 and S12 are performed.
When a device does not establish a bluetooth connection with another device, for example, the initial device does not establish a bluetooth connection with the target device, the communication between the device and the other device can be realized through a relay, which can be understood as a communication relay. In an optional embodiment, as shown in fig. 4, the instant messaging method provided in the embodiment of the present disclosure may further include:
s41, responding to the condition that the initial equipment does not establish Bluetooth connection with the target, and acquiring the connection information of a plurality of equipment; and determining a device path from the initial device to the target device based on the connection information of the plurality of devices.
The device path includes a path from the originating device through the relay device to the destination device, the relay device including at least one device.
Each device may synchronize its own connection information to other devices than itself in advance. After each device determines the device connected with the own Bluetooth, the device connected with the own Bluetooth is stored, and the device connected with the own Bluetooth is synchronized to other devices, wherein the other devices can be all devices except the own device. For each device, connection information of all devices, that is, connection information of itself and other devices may be acquired. The connection information includes the device to which the device is bluetooth connected.
Based on the connection information of the plurality of devices, a device path from the initial device to the target device may be determined.
S42, based on the device path, sending the encapsulated instant messaging message to the relay device, and forwarding the encapsulated instant messaging message to the target device through the relay device, where sending the encapsulated instant messaging message to the relay device includes: with the initial device as a device and the relay device as another device, steps S11 and S12 are performed.
The relay device may include one; a plurality, such as 2, 3, 5, or more, may also be included.
The number of the relay devices is determined based on the device path, and the number of devices in the device path through which the initial device reaches the target device is determined.
As shown in fig. 5A, devices that a device a can be connected through bluetooth include a device B and a device D, devices that B can be connected through bluetooth include a device C and a device E in addition to the device a, and a device path of the device C may be determined as the device a, the device B, and the device C, that is, the device a may reach the device C through the device B, and the device B is a relay device.
As shown in fig. 5B, the device that can be connected by bluetooth of device a includes device B and device D, the device that can be connected by bluetooth of device B includes device C and device E in addition to device a, the device that can be connected by bluetooth of device C includes device F and device G, the device path of device F can be determined as device a, device B, device C to device F, which means that the device a passes through device B and then passes through device C to reach device F, and both device B and device C are relay devices, in this case, device a can be understood as an initial device, device F can be understood as a target device, device B can be understood as a relay device 1, and device C can be understood as a relay device 2.
After a device is disconnected, the step of synchronizing devices that can be connected via bluetooth by other devices, i.e., the step of re-synchronizing the connection information of each device, may be re-performed.
Establishing Bluetooth connection between the initial equipment and the relay equipment; confirming whether the relay equipment and the initial equipment support the same instant messaging protocol or not; in response to the relay device and the initiator device supporting the same instant messaging protocol, the initiator device encapsulates the instant messaging message using the instant messaging protocol and transmits the encapsulated instant messaging message to the relay device via the bluetooth protocol.
In an implementation manner, in the embodiment of the present disclosure, bluetooth connections may be established in advance for all devices capable of establishing a bluetooth connection.
The initiator device first sends the encapsulated instant messaging message to the relay device, specifically, the initiator device is used as the device in the embodiment shown in fig. 1, the relay device is used as another device, and S11 and S12 are executed, that is, it is determined whether the initiator device and the relay device support the same instant messaging protocol; and responding to the fact that the initial equipment and the relay equipment support the same instant messaging protocol, packaging the instant messaging message by using the instant messaging protocol, and sending the packaged instant messaging message to the relay equipment by the initial equipment through a Bluetooth protocol.
After receiving the packaged instant communication message sent by the initial equipment, the relay equipment forwards the packaged instant communication message to the target equipment.
The procedure of relay forwarding is similar to the procedure of the original device sending to the relay device. Specifically, the relay device determines whether to establish a bluetooth connection with the target device, and if the relay device has established a bluetooth connection with the target device, it indicates that there are only 1 relay device from the initial device to the target device, and the relay device directly forwards the encapsulated instant messaging message to the target device. If the relay device does not establish Bluetooth connection with the target device, the number of the relay devices is more than 1, and the relay device acquires the connection information of a plurality of devices; determining a device path from the relay device to the target device based on the connection information of the plurality of devices; the device path includes a path from the relay device to the target device through the intermediate device, the relay device continues to send the encapsulated instant messaging message to the intermediate device based on the device path, and then forwards the encapsulated instant messaging message to the target device through the intermediate device, wherein a process of forwarding the encapsulated instant messaging message to the target device through the intermediate device is similar to a process of forwarding the encapsulated instant messaging message to the target device by the relay device, and a process of sending the encapsulated instant messaging message to the relay device by the initial device.
The relay device may be one, in which case the initial device sends the encapsulated instant messaging message to the relay device, and the relay device forwards the encapsulated instant messaging message to the target device.
As shown in fig. 5A, when device a waits to communicate with device C, device a is an initial device, device B is a relay device, and device C is a target device. The device A sends the packaged instant communication message to the device B, and the device B forwards the packaged instant communication message to the device C. Specifically, device a establishes a bluetooth connection with device B; the device A confirms whether the device B and the device A support the same instant messaging protocol or not; in response to device B supporting the same instant messaging protocol as device a, device a encapsulates the instant messaging message using the instant messaging protocol and sends the encapsulated instant messaging message to device B via the bluetooth protocol. The device B receives the packaged instant communication message; the device B establishes Bluetooth connection with the device C; the device B confirms whether the device C and the device B support the same instant messaging protocol or not; in response to device C supporting the same instant messaging protocol as device B, device B forwards the encapsulated instant messaging message to device C via the bluetooth protocol.
The number of the relay devices may also be multiple, and the process of forwarding the instant messaging message between the relay devices refers to the steps of the embodiment shown in fig. 1, that is, a bluetooth connection between one relay device and another relay device is established; confirming whether the two relay devices support the same instant messaging protocol or not; in response to two relay devices supporting the same instant messaging protocol, one relay device encapsulates the instant messaging message using the instant messaging protocol and sends the encapsulated instant messaging message to the other relay device via the bluetooth protocol.
Specifically, when the relay device is plural, the initiator device establishes a bluetooth connection with the relay device 1; the initial equipment confirms whether the relay equipment 1 and the initial equipment support the same instant communication protocol or not; in response to the relay device 1 supporting the same instant messaging protocol as the initiator device, the initiator device encapsulates the instant messaging message using the instant messaging protocol, and transmits the encapsulated instant messaging message to the relay device 1 through the bluetooth protocol.
The relay equipment 1 receives the packaged instant communication message; the relay device 1 establishes a bluetooth connection with the relay device 2; the relay device 1 confirms whether the relay device 2 and the relay device 1 support the same instant messaging protocol; in response to the relay device 2 supporting the same instant messaging protocol as the relay device 1, the relay device 1 forwards the encapsulated instant messaging message to the relay device 2 via the bluetooth protocol.
Referring to the process of the relay device 1 forwarding the encapsulated instant messaging message to the relay device 2, the relay device 2 may continue to forward the encapsulated instant messaging message to other devices, that is, continue to forward the encapsulated instant messaging message to the next device of the relay device 2 in the device path.
If the next device of the relay device 2 in the device path is the target device, the relay device 2 directly forwards the encapsulated instant messaging message to the target device. If the next device of the relay device 2 in the device path is not the target device, the relay device 2 continues to forward the encapsulated instant messaging message to the next device of the relay device 2 in the device path, that is, the next relay device, and repeats the process until the encapsulated instant messaging message is forwarded to the target device.
As shown in fig. 5B, when the device a waits to communicate with the device F, the device a determines that paths from the device a to the device F are the device a, the device B, and the device C to the device F, that is, the device a is an initial device, the device B is a relay device 1, the device C is a relay device 2, and the device F is a target device. The device A establishes Bluetooth connection with the device B; the device A confirms whether the device B and the device A support the same instant messaging protocol or not; in response to device B supporting the same instant messaging protocol as device a, device a encapsulates the instant messaging message using the instant messaging protocol and sends the encapsulated instant messaging message to device B via the bluetooth protocol. The device B receives the packaged instant communication message; the device B establishes Bluetooth connection with the device C; the device B confirms whether the device C and the device B support the same instant messaging protocol or not; in response to device C supporting the same instant messaging protocol as device B, device B forwards the encapsulated instant messaging message to device C via the bluetooth protocol. If the next device of the device C in the device path is the target device, that is, the next device of the relay device 2 is the target device, the device C forwards the instant messaging message to the device F, specifically referring to a process of forwarding the encapsulated instant messaging message to the device C by the device B.
The initial equipment utilizes the instant communication protocol to package the instant communication message, the packaged instant communication message is sent to the relay equipment through the Bluetooth protocol, and the relay equipment forwards the packaged instant communication message to the target equipment.
Therefore, the target device can receive the packaged instant messaging message sent by the relay device through the Bluetooth protocol, and the packaged instant messaging message is analyzed by using the instant messaging protocol to obtain the instant messaging message; and responds to the instant messaging message.
The long-distance instant communication can be realized through the equipment relay.
When each of the multiple devices can synchronize the connection information of the device to other devices except the device, the multiple devices can form a small network, and each device in the network can perform instant messaging with other devices except the device.
For each device in all devices, the device may directly send the connection information of the device to other devices, for example, the device establishes a bluetooth connection with the other devices. Or, sending the connection information of the device to another device in a forwarding manner, for example, the device does not establish a bluetooth connection with the other device, specifically, sending the connection information of the device to the other device in the forwarding manner may include: the equipment sends the connection information of the equipment to the equipment connected with the equipment through Bluetooth, after the equipment connected with the equipment through Bluetooth receives the connection information of the equipment, the connection information continues to be sent to the equipment connected with the equipment through Bluetooth, and so on until the equipment sends the connection information of the equipment to other equipment.
After each device determines the device connected with the own Bluetooth, the device connected with the own Bluetooth is stored, the device connected with the own Bluetooth is synchronized to other devices, each device can acquire the connection information of all the devices, all the devices form a small network, and each device in the network can perform instant communication with other devices except the device.
In one example, each device may predetermine the device to which it is connected via bluetooth. The dashed lines in fig. 6A indicate bluetooth connections between devices, and as shown in fig. 6A, the devices to which device 1 bluetooth connects include device 2, device 4, device 6, device 7, and device 8. Device 2 bluetooth connected devices include device 1, device 3, and device 8. Device 3 bluetooth connected devices include device 2, device 4, and device 5. Device 4 bluetooth connected devices include device 1, device 3, device 5, and device 6. Device 5 bluetooth connected devices include device 3, device 4, and device 6. Device 6 bluetooth connected devices include device 1, device 4, device 5, and device 7. Device 7 bluetooth connected devices include device 1, device 6, and device 8. Device 8 bluetooth connected devices include device 1, device 2, and device 7.
For each device, all devices linked by the device can be synchronized to other devices, and a small network is formed.
Specifically, after each device determines the device connected to its own bluetooth, it stores the device connected to its own bluetooth and synchronizes the device connected to its own bluetooth to other devices, and the other devices may be all devices except its own bluetooth. For each device, the device connected to the bluetooth of the device may be understood as the connection information of the device, that is, each device may synchronize its own connection information to other devices.
For a device bluetooth-connected to the device, the device may directly transmit the connection information of itself to the device bluetooth-connected to the device.
For a device which is not connected with the device through Bluetooth, the connection information of the device can be sent to the device which is not connected with the device through Bluetooth in a forwarding mode. That is, the device transmits its own connection information to the device connected to the device by bluetooth, and the device connected to the device by bluetooth continues to transmit the connection information to the device connected to the device by bluetooth after receiving the connection information of the device. By analogy, each device can obtain the connection information of all the devices.
For example, the device 1 transmits its own connection information to the devices 2, 4, 6, 7, and 8. After receiving the connection information of the device 1, the device 2 sends the connection information of the device 1 to a device bluetooth-connected to the device 2: device 1, device 3 and device 8. That is, the device 2 transmits the connection information of the device 1 to the device 1, the device 3, and the device 8 in addition to transmitting the connection information of itself to the device 1, the device 3, and the device 8. In this way, the device 1 can synchronize the connection information of the device 1 to the device 3 to which the device 1 is not connected with bluetooth by forwarding of the device 2.
In addition, the device 3 also receives the connection information of the device 1 forwarded by the device 4, and the device 3 stores the connection information locally and also stores the connection information forwarded by the device 4. Or, the device 3 may only store the connection information of the device 1 forwarded by one device, for example, if the device 2 forwards the connection information of the device 1 to the device 3 first, the device 3 stores the connection information of the device 1, and the device 3 does not store the connection information of the device 1 forwarded by the device 2 in the subsequent process.
Each device may obtain connection information for all devices. On the basis of the data, the devices can realize communication.
When the initiator is to communicate with the target device, it may be determined whether the target device is a bluetooth-connected device of the initiator, and if so, the communication may be performed directly. If not, the device path from the initial device to the target device is determined based on the connection information of all the devices. The device path may include a path from the originating device through a relay device to the destination device, the relay device including at least one device. There may be multiple device paths from the original device to the target device, and the device path with the shortest distance may be selected as the final device path. In one mode, when the distances of the multiple device paths are the same, one of the multiple device paths can be randomly selected as a final device path.
For example, the device 1 is to perform instant messaging with the device 5 (that is, the device 1 is an initial device, the device 5 is a target device, and the number of target devices is 1), find the connection information of the device 1, and if the device 1 is not bluetooth-connected to the device 5, the device 1 may traverse the connection information of all devices to determine a device path from the device 1 to the device 5, where the device path from the device 1 to the device 5 has multiple paths, for example, the device 1, the device 2, the device 3 to the device 5; device 1, device 8, device 2, device 3 to device 5; device 1, device 4 to device 5; device 1, device 6 to device 5, etc. Selecting two paths with the shortest distance from the multiple paths: device 1, device 4 to device 5; device 1, device 6 to device 5.
After the device path is determined, instant messaging can be performed based on the device path. For example, there may be 1 relay device in the device path, if it is determined that the final device path is device 1, device 4 to device 5, and device 4 is a relay device, device 1 first sends a data packet to device 4, where the data packet may carry a target device: the device 5, thus, after receiving the data packet, the device 4 may analyze the target device carried in the data packet, and if the device 4 determines that the target device is not itself, the device continues to forward the data packet, and a process of forwarding the data packet by the device 4 is similar to a process of sending by the device 1, if the device 5 is determined that the device 4 is a device connected with the bluetooth, because the device 4 is connected with the device 5 by the bluetooth, the device 4 directly forwards the data packet to the device 5.
In another mode, the data packet may carry not only the target device but also the device path determined by the initial device, and after the device 4 receives the data packet sent by the device 1, the next device of the device 4 indicated in the device path may be directly searched, where if the device path is the device 1, the device 4 to the device 5, and the next device of the device 4 is the device 5, the device 4 forwards the data packet to the device 5, and thus, the sending process of the data packet is completed.
There may be a plurality of relay devices in the device path, for example, the device path is determined as: device 1, device 2, device 3 to device 5, and the relay device has device 1 and device 3. Device 1 sends the data packet to device 2, and the data packet may carry the destination device: the device 5, thus, after receiving the data packet, the device 2 may first parse out the target device carried in the data packet, the device 2 determines that the target device is not itself, and then continues to forward the data packet, the process of forwarding by the device 2 is similar to the process sent by the device 1, if the device 2 determines that the device 5 is not a device connected to the device 2 via bluetooth first, because the device 2 is not connected to the device 5 via bluetooth, the device 2 may traverse connection information of all devices, and determine a device path from the device 2 to the device 5, and if there are possibly multiple determined device paths, the shortest distance one may be selected as a final device path, such as the device 2, the device 3 to the device 5, then the device 2 forwards the data packet to the device 3, and after receiving the data packet, the device 3 may first parse out the target device carried in the data packet, and the device 3 determines that the target device is not itself, the data packet is forwarded continuously, the process of forwarding by the device 3 is similar to the process of forwarding by the devices 1 and 2, if it is determined that the device 5 is a device connected to the device 3 via bluetooth, because the device 3 is connected to the device 5 via bluetooth, the device 3 directly forwards the data packet to the device 5, and thus, the data packet is sent to the target device.
In another mode, the data packet may carry not only the target device but also the device path determined by the initial device, and after the device 2 receives the data packet sent by the device 1, the next device of the device 2 indicated in the device path may be directly searched, where if the device path is the device 1, the device 2, the device 3 to the device 5, and the next device of the device 2 is the device 3, the device 2 forwards the data packet to the device 3, and the device 3 forwards the data packet to the device 5 with reference to the device 2 forwarding process, and thus, the data packet sending process is completed.
After receiving the data packet, the device 5 responds to the data packet, for example, feeds back response information, and the device 5 may feed back a response message to the device 1 according to a device path carried in the data packet, for example, first sends the response information to the device 4, and then the device 4 forwards the response message to the device 1. Or, after the device 5 obtains the response information, the device path is re-determined, that is, at this time, the device 5 is to communicate with the device 1, the device 5 is an initial device, the device 1 is a target device, the path from the device 5 to the device 1 determined by the device 5 also has multiple final device paths selected, and the final device path selected may be a different path from the path when the device 1 sends the data packet, for example: if the device 5, the device 6, or the device 1, the device 5 may return the response information to the device 1 based on the device path, specifically, the process of the device 5 feeding back the response information to the device 1 may refer to the process of the device 1 sending the data packet to the device 5.
On the basis that each device can obtain the connection information of all devices, communication broadcasting can be realized based on communication relay.
It is understood that the originating device broadcasts the packet to all other devices.
As shown in fig. 6B, device 1 is to send data packets to device 2, device 3, device 4, device 5, device 6, device 7, and device 8. In this case, it can be understood that the device 1 is an initial device, and the target devices include the device 2, the device 3, the device 4, the device 5, the device 6, the device 7, and the device 8.
Device 1 may send data packets to all other devices to which device 1 is bluetooth connected: device 2, device 4, device 6, device 7 and device 8.
After receiving the data packet sent by the device 1, the devices 2, 4, 6, 7 and 8 continue to forward the data packet to the respective bluetooth-connected devices. For example, device 2 receives the data packet sent by device 1 and continues to forward the data packet to devices 3 and 8 (the device connected to device 2 also includes device 1, but because the data packet sent by device 1 is received, device 2 does not send the data packet to device 1).
Similarly, after receiving the data packet sent by the device 2, the devices 3 and 8 continue to forward the data packet to their respective bluetooth-connected devices. For example, after receiving the data packet sent by the device 2, the device 3 continues to forward the data packet to the devices 4 and 5 (the device connected to the device 3 also includes the device 2, but because the data packet sent by the device 2 is received, the device 3 does not send the data packet to the device 2), and thus, the device 2, the device 4, the device 6, the device 7, and the device 8 can all receive the data packet sent by the device 1.
Each device receives a broadcast instant message, such as a data packet, which may be processed in an instant messaging protocol, such as presenting the data packet.
Under the network-free environment, instant messaging is realized through Bluetooth, the instant messaging can be realized under the network-free environment, and the application range of the instant messaging is expanded. And short-distance instant messaging can be realized through end-to-end communication, and long-distance instant messaging can be realized through equipment relay. That is, the embodiment of the present disclosure may not only implement end-to-end communication, but also connect multiple devices in series through a relay function, thereby forming a network to perform multi-device and long-distance communication.
An embodiment of the present disclosure further provides an instant messaging method, as shown in fig. 7, which may include:
and S71, receiving the packaged instant communication message sent by the Bluetooth protocol.
The packaged instant communication message is obtained by packaging the instant communication message by using an instant communication protocol.
And S72, analyzing the packaged instant communication message by using the instant communication protocol to obtain the instant communication message.
S73, responding to the instant messaging message.
The instant messaging method provided by the embodiment of the disclosure realizes instant messaging based on Bluetooth, and can realize instant messaging under a network-free environment, for example, under the conditions of no mobile network and no WiFi. The method is a supplement to the communication mode under the condition of no network, and expands the application range of instant messaging.
In an alternative embodiment, where a device and another device may be connected via bluetooth, S71 may include:
establishing a Bluetooth connection between one device and another device; and receiving the packaged instant messaging message sent by the equipment through a Bluetooth protocol, wherein the packaged instant messaging message is obtained by packaging the instant messaging message by the equipment by using an instant messaging protocol, and the instant messaging protocol is supported by the other equipment.
When two devices can be connected through Bluetooth, end-to-end communication between the two devices can be realized based on Bluetooth, instant messaging can be realized under a network-free environment, and the method is a supplement of a communication mode under extreme conditions and can expand the application range of the instant messaging.
Before the receiving device receives the encapsulated instant messaging message sent by the bluetooth protocol, the method may further include:
receiving an encapsulated check data packet, wherein the encapsulated check data packet is sent by equipment through a Bluetooth protocol, and the encapsulated check data packet is obtained by the equipment by encapsulating check data through an instant messaging protocol; and feeding back reply information to the equipment within a preset time range.
A device obtains a check data packet; and packaging the check data packet by using an instant messaging protocol to obtain a packaged check data packet. And sending the packaged check data packet to another device through a Bluetooth protocol. And responding to the response information returned by the other equipment received within the preset time range, wherein the response information is consistent with the preset response information, and confirming that the other equipment and the equipment support the same instant messaging protocol. And in response to that the reply message returned by the other device is not received within the preset time range or the received reply message is inconsistent with the preset reply message, confirming that the other device and the device do not support the same instant messaging protocol.
Therefore, the instant messaging protocol used for sending the instant messaging message can confirm that the two devices support the same instant messaging protocol, and the two devices can be ensured to communicate through the instant messaging protocol.
When the device confirms that the other device and the device support the same instant messaging protocol, the instant messaging message is packaged by the instant messaging protocol, and the packaged instant messaging message is sent to the other device through the Bluetooth protocol.
Thus, another device can receive the packaged instant communication message sent by the device through the Bluetooth protocol, and analyze the packaged instant communication message by using the instant communication protocol to obtain the instant communication message; responding to the instant messaging message.
The instant messaging messages are, for example, presentation messages, heartbeat messages, file transfer messages, etc., and the specific responses refer to the specifications in the instant messaging protocol X and are applicable to all instant messaging protocols.
Responding to the instant messaging message by the other device may include presenting the instant messaging message. Or may reply to the device with a response message, for example, the response message may be encapsulated using an instant messaging protocol and fed back to the device via a bluetooth protocol.
In the embodiment of the disclosure, when a device and another device can establish a bluetooth connection, end-to-end communication between the device and the other device can be realized.
In another alternative embodiment, the step S71 may include that a device cannot establish a bluetooth connection with another device, for example, the initiating device cannot establish a bluetooth connection with the target device, and the initiating device reaches the target device through the relay device:
establishing a Bluetooth connection between the relay device and another device; and receiving an encapsulated instant communication message sent by the relay equipment through a Bluetooth protocol, wherein the instant communication protocol is supported by the other equipment and the relay equipment, the encapsulated instant communication message is sent to the relay equipment by the equipment, and the encapsulated instant communication message is obtained by encapsulating the instant communication message by the equipment by using the instant communication protocol.
Specifically, in response to a device being unable to establish a bluetooth connection with another device, the device determines a device path corresponding to the other device; and packaging the instant communication message by using an instant communication protocol, sending the packaged instant communication message to the relay equipment by using a Bluetooth protocol, and forwarding the packaged instant communication message to another equipment by the relay equipment.
In this way, the other device can receive the encapsulated instant messaging message sent by the relay device via the bluetooth protocol.
When one device and another device cannot establish Bluetooth connection, the embodiment of the disclosure can realize communication between the device and the another device through a relay, that is, relay communication can be realized, and on the basis of end-to-end communication, a plurality of devices are connected in series to realize long-distance communication.
An embodiment of the present disclosure further provides an instant messaging system, which may include:
a device establishes a bluetooth connection with another device;
the device confirms whether the other device and the device support the same instant messaging protocol;
responding to the other device and the device supporting the same instant messaging protocol, packaging the instant messaging message by the device by using the instant messaging protocol, and sending the packaged instant messaging message to the other device through a Bluetooth protocol;
and the other equipment receives the packaged instant communication message sent by the equipment through the Bluetooth protocol, analyzes the packaged instant communication message by using the instant communication protocol to obtain the instant communication message, and responds to the instant communication message.
In another optional embodiment, the instant messaging system provided in the embodiment of the present disclosure may further include:
the initial equipment judges whether to be connected with the target equipment in a Bluetooth mode; responding to the situation that the initial equipment does not establish Bluetooth connection with the target equipment, and acquiring connection information of a plurality of pieces of equipment by the initial equipment; and determining a device path from the initial device to the target device based on the connection information of the plurality of devices.
The device path includes a path from the originating device through the relay device to the destination device, the relay device including at least one device.
The method comprises the steps that initial equipment sends an encapsulated instant communication message to relay equipment based on an equipment path, specifically, the initial equipment is used as equipment, the relay equipment is used as another equipment, and whether the initial equipment and the relay equipment support the same instant communication protocol or not is confirmed; and responding to the fact that the initial equipment and the relay equipment support the same instant messaging protocol, packaging the instant messaging message by using the instant messaging protocol, and sending the packaged instant messaging message to the relay equipment by the initial equipment through a Bluetooth protocol.
After receiving the packaged instant communication message sent by the initial equipment, the relay equipment forwards the packaged instant communication message to the target equipment.
The procedure of relay forwarding is similar to the procedure of the original device sending to the relay device. Specifically, the relay device determines whether to establish a bluetooth connection with the target device, and if the relay device has established a bluetooth connection with the target device, it indicates that there are only 1 relay device from the initial device to the target device, and the relay device directly forwards the encapsulated instant messaging message to the target device. If the relay device does not establish Bluetooth connection with the target device, the number of the relay devices is more than 1, and the relay device acquires the connection information of a plurality of devices; determining a device path from the relay device to the target device based on the connection information of the plurality of devices; the device path includes a path from the relay device to the target device through the intermediate device, the relay device continues to send the encapsulated instant messaging message to the intermediate device based on the device path, and then forwards the encapsulated instant messaging message to the target device through the intermediate device, wherein a process of forwarding the encapsulated instant messaging message to the target device through the intermediate device is similar to a process of forwarding the encapsulated instant messaging message to the target device by the relay device, and a process of sending the encapsulated instant messaging message to the relay device by the initial device.
The relay equipment receives the packaged instant communication message; the relay equipment establishes Bluetooth connection with the target equipment; the relay equipment confirms whether the target equipment and the relay equipment support the same instant messaging protocol or not; and responding to the target device and the relay device supporting the same instant messaging protocol, and the relay device forwards the packaged instant messaging message to the target device through a Bluetooth protocol.
When the relay device is multiple, the initial device establishes a Bluetooth connection with the relay device 1; the initial equipment confirms whether the relay equipment 1 and the initial equipment support the same instant communication protocol or not; in response to the relay device 1 supporting the same instant messaging protocol as the initiator device, the initiator device encapsulates the instant messaging message using the instant messaging protocol, and transmits the encapsulated instant messaging message to the relay device 1 through the bluetooth protocol.
The relay equipment 1 receives the packaged instant communication message; the relay device 1 establishes a bluetooth connection with the relay device 2; the relay device 1 confirms whether the relay device 2 and the relay device 1 support the same instant messaging protocol; in response to the relay device 2 supporting the same instant messaging protocol as the relay device 1, the relay device 1 forwards the encapsulated instant messaging message to the relay device 2 via the bluetooth protocol.
Referring to the process of the relay device 1 forwarding the encapsulated instant messaging message to the relay device 2, the relay device 2 may continue to forward the encapsulated instant messaging message to other devices, that is, continue to forward the encapsulated instant messaging message to the next device of the relay device 2 in the device path. For example, if the next device of the relay device 2 in the device path is the target device, the relay device 2 directly forwards the encapsulated instant messaging message to the target device. If the next device of the relay device 2 in the device path is not the target device, the relay device 2 continues to forward the encapsulated instant messaging message to the next device of the relay device 2 in the device path, that is, the next relay device, and repeats the process until the encapsulated instant messaging message is forwarded to the target device.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
An embodiment of the present disclosure further provides an instant messaging device, as shown in fig. 8, which may include:
a confirming module 801, configured to confirm whether a device and another device support the same instant messaging protocol;
the communication module 802 is configured to, in response to that one device and another device support the same instant messaging protocol, encapsulate the instant messaging message using the instant messaging protocol, and send the encapsulated instant messaging message to another device through a bluetooth protocol.
Optionally, the confirming module 801: the method comprises the steps of specifically obtaining a check data packet; packaging the check data packet by using an instant messaging protocol to obtain a packaged check data packet; transmitting the packaged check data packet to another device through a Bluetooth protocol; in response to receiving reply information returned by another device within a preset time range, and the reply information is consistent with the preset reply information, confirming that the device and the other device support the same instant messaging protocol; and in response to that the reply message returned by the other device is not received within the preset time range or the received reply message is inconsistent with the preset reply message, confirming that the device and the other device do not support the same instant messaging protocol.
Optionally, as shown in fig. 9, the apparatus further includes:
a judging module 901, configured to judge whether the initial device is connected to the target device via bluetooth;
an obtaining module 902, configured to obtain connection information of multiple devices in response to that an initial device does not establish a bluetooth connection with a target; determining a device path from the initial device to the target device based on the connection information of the plurality of devices; the device path comprises a path from the initial device to the target device through the relay device, and the relay device comprises at least one device;
a forwarding module 903, configured to take the initial device as a device and the relay device as another device based on the device path, execute the confirmation module 801 and the communication module 802, and forward the encapsulated instant messaging message to the target device through the relay device.
An embodiment of the present disclosure further provides an instant messaging device, as shown in fig. 10, which may include:
a first receiving module 1001, configured to receive an encapsulated instant messaging message sent by a bluetooth protocol; the packaged instant communication message is obtained by packaging the instant communication message by using an instant communication protocol;
the analyzing module 1002 is configured to analyze the encapsulated instant messaging message by using an instant messaging protocol to obtain an instant messaging message;
a response module 1003, configured to respond to the instant messaging message.
Optionally, the first receiving module 1001 is specifically configured to: establishing a Bluetooth connection between one device and another device; and receiving the packaged instant messaging message sent by the equipment through a Bluetooth protocol, wherein the packaged instant messaging message is obtained by packaging the instant messaging message by the equipment by using an instant messaging protocol, and the instant messaging protocol is supported by the other equipment.
Optionally, as shown in fig. 11, the apparatus further includes:
a second receiving module 1101, configured to receive a packaged verification data packet before receiving a packaged instant messaging message sent by a device via a bluetooth protocol, where the packaged verification data packet is sent by the device via the bluetooth protocol, and the packaged verification data packet is obtained by packaging verification data by the device using the instant messaging protocol;
the feedback module 1102 is configured to feed back the reply information to the device within a preset time range.
Optionally, the first receiving module 1001 is specifically configured to: establishing a Bluetooth connection between the relay device and another device; and receiving an encapsulated instant communication message sent by the relay equipment through a Bluetooth protocol, wherein the instant communication protocol is supported by the other equipment and the relay equipment, the encapsulated instant communication message is sent to the relay equipment by the equipment, and the encapsulated instant communication message is obtained by encapsulating the instant communication message by the equipment by using the instant communication protocol.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 12 shows a schematic block diagram of an example electronic device 1200, which can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 12, the apparatus 1200 includes a computing unit 1201 which can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)1202 or a computer program loaded from a storage unit 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the device 1200 may also be stored. The computing unit 1201, the ROM 1202, and the RAM 1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.
Various components in the device 1200 are connected to the I/O interface 1205 including: an input unit 1206 such as a keyboard, a mouse, or the like; an output unit 1207 such as various types of displays, speakers, and the like; a storage unit 1208, such as a magnetic disk, optical disk, or the like; and a communication unit 1209 such as a network card, modem, wireless communication transceiver, etc. The communication unit 1209 allows the device 1200 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 1201 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 1201 performs various methods and processes described above, such as an instant messaging method, for example, the instant messaging method shown in the embodiment of fig. 1. For example, in some embodiments, the instant messaging method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 1200 via the ROM 1202 and/or the communication unit 1209. When the computer program is loaded into the RAM 1203 and executed by the computing unit 1201, one or more steps of the instant messaging method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform the instant messaging method by any other suitable means (e.g., by means of firmware).
Fig. 13 illustrates a schematic block diagram of an example electronic device 1300 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 13, the apparatus 1300 includes a computing unit 1301 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)1302 or a computer program loaded from a storage unit 1308 into a Random Access Memory (RAM) 1303. In the RAM 1303, various programs and data necessary for the operation of the device 1300 can also be stored. The calculation unit 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input/output (I/O) interface 1305 is also connected to bus 1304.
A number of components in the device 1300 connect to the I/O interface 1305, including: an input unit 1306 such as a keyboard, a mouse, or the like; an output unit 1307 such as various types of displays, speakers, and the like; storage unit 1308, such as a magnetic disk, optical disk, or the like; and a communication unit 1309 such as a network card, modem, wireless communication transceiver, etc. The communication unit 1309 allows the device 1300 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 1301 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of computing unit 1301 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 1301 performs various methods and processes described above, such as an instant messaging method, for example, the instant messaging method shown in the embodiment of fig. 7. For example, in some embodiments, the instant messaging method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1308. In some embodiments, some or all of the computer program may be loaded onto and/or installed onto device 1300 via ROM 1302 and/or communications unit 1309. When the computer program is loaded into the RAM 1303 and executed by the computing unit 1301, one or more steps of the instant messaging method described above may be performed. Alternatively, in other embodiments, computing unit 1301 may be configured to perform the instant messaging method in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (20)

1. An instant messaging method, comprising:
step A, confirming whether one device and another device support the same instant communication protocol;
and step B, responding to the fact that one device and the other device support the same instant messaging protocol, packaging the instant messaging message by using the instant messaging protocol, and sending the packaged instant messaging message to the other device through a Bluetooth protocol.
2. The method of claim 1, wherein the confirming whether a device and another device support the same instant messaging protocol comprises:
obtaining a check data packet;
packaging a check data packet by using the instant messaging protocol to obtain a packaged check data packet;
sending the packaged check data packet to the other device through the Bluetooth protocol;
responding to the response information returned by the other equipment received within a preset time range, and confirming that the equipment and the other equipment support the same instant messaging protocol, wherein the response information is consistent with the preset response information;
and in response to that the reply message returned by the other device is not received within a preset time range or the received reply message is inconsistent with the preset reply message, confirming that the one device and the other device do not support the same instant messaging protocol.
3. The method of claim 1, further comprising:
judging whether the initial equipment is in Bluetooth connection with the target equipment or not;
responding to the situation that the initial equipment does not establish Bluetooth connection with the target, and acquiring connection information of a plurality of pieces of equipment; determining a device path from the initial device to the target device based on the connection information of the plurality of devices; the device path comprises a path from the originating device to the target device through a relay device, the relay device comprising at least one device;
based on the device path, sending the encapsulated instant messaging message to the relay device, and forwarding the encapsulated instant messaging message to the target device through the relay device, wherein sending the encapsulated instant messaging message to the relay device includes: and taking the initial equipment as the equipment and the relay equipment as the other equipment to execute the step A and the step B.
4. An instant messaging method, comprising:
receiving an encapsulated instant messaging message sent by a Bluetooth protocol; the packaged instant communication message is obtained by packaging the instant communication message by using an instant communication protocol;
analyzing the packaged instant communication message by using the instant communication protocol to obtain the instant communication message;
and responding to the instant communication message.
5. The method of claim 4, wherein the receiving the encapsulated instant messaging message sent via the Bluetooth protocol comprises:
establishing a Bluetooth connection between one device and another device;
and receiving an encapsulated instant messaging message sent by the equipment through a Bluetooth protocol, wherein the encapsulated instant messaging message is obtained by encapsulating the instant messaging message by the equipment by using an instant messaging protocol, and the instant messaging protocol is supported by the other equipment and the equipment.
6. The method of claim 5, prior to the receiving the encapsulated instant messaging message sent by the device over the Bluetooth protocol, the method further comprising:
receiving an encapsulated check data packet, wherein the encapsulated check data packet is sent by the equipment through the Bluetooth protocol, and the encapsulated check data packet is obtained by encapsulating check data by the equipment through the instant messaging protocol;
and feeding back reply information to the equipment within a preset time range.
7. The method of claim 4, wherein the receiving the encapsulated instant messaging message sent via the Bluetooth protocol comprises:
establishing a Bluetooth connection between the relay device and another device;
and receiving an encapsulated instant messaging message sent by the relay device through the Bluetooth protocol, wherein the instant messaging protocol is supported by the other device and the relay device, the encapsulated instant messaging message is sent to the relay device by the device, and the encapsulated instant messaging message is obtained by encapsulating the instant messaging message by the device by using the instant messaging protocol.
8. An instant messaging device, comprising:
the confirmation module is used for confirming whether one device and the other device support the same instant communication protocol or not;
the communication module is used for responding to the fact that one device and the other device support the same instant communication protocol, packaging the instant communication message by using the instant communication protocol, and sending the packaged instant communication message to the other device through a Bluetooth protocol.
9. The apparatus of claim 8, wherein the confirmation module: the method comprises the steps of specifically obtaining a check data packet; packaging a check data packet by using the instant messaging protocol to obtain a packaged check data packet; sending the packaged check data packet to the other device through the Bluetooth protocol; responding to the response information returned by the other equipment received within a preset time range, and confirming that the equipment and the other equipment support the same instant messaging protocol, wherein the response information is consistent with the preset response information; and in response to that the reply message returned by the other device is not received within a preset time range or the received reply message is inconsistent with the preset reply message, confirming that the one device and the other device do not support the same instant messaging protocol.
10. The apparatus of claim 8, the apparatus further comprising:
the judging module is used for judging whether the initial equipment is connected with the target equipment in a Bluetooth mode;
the acquisition module is used for responding to the situation that the initial equipment does not establish Bluetooth connection with the target and acquiring the connection information of a plurality of pieces of equipment; determining a device path from the initial device to the target device based on the connection information of the plurality of devices; the device path comprises a path from the originating device to the target device through a relay device, the relay device comprising at least one device;
and the forwarding module is used for taking the initial equipment as the equipment and the relay equipment as the other equipment based on the equipment path, executing the confirmation module and the communication module, and forwarding the packaged instant messaging message to the target equipment through the relay equipment.
11. An instant messaging device, comprising:
the first receiving module is used for receiving the packaged instant communication message sent by the Bluetooth protocol; the packaged instant communication message is obtained by packaging the instant communication message by using an instant communication protocol;
the analysis module is used for analyzing the packaged instant communication message by using the instant communication protocol to obtain the instant communication message;
and the response module is used for responding the instant communication message.
12. The apparatus of claim 11, wherein the first receiving module is specifically configured to: establishing a Bluetooth connection between one device and another device; and receiving an encapsulated instant messaging message sent by the equipment through a Bluetooth protocol, wherein the encapsulated instant messaging message is obtained by encapsulating the instant messaging message by the equipment by using an instant messaging protocol, and the instant messaging protocol is supported by the other equipment and the equipment.
13. The apparatus of claim 12, the apparatus further comprising:
a second receiving module, configured to receive an encapsulated check data packet before receiving an encapsulated instant messaging message sent by the device via a bluetooth protocol, where the encapsulated check data packet is sent by the device via the bluetooth protocol, and the encapsulated check data packet is obtained by encapsulating, by the device, check data using the instant messaging protocol;
and the feedback module is used for feeding back reply information to the equipment within a preset time range.
14. An instant messaging system comprising: the method comprises the steps of an initial device, a relay device and a target device;
the initial equipment judges whether to be connected with the target equipment in a Bluetooth mode;
responding to the situation that the initial equipment does not establish Bluetooth connection with the target equipment, and acquiring connection information of a plurality of pieces of equipment by the initial equipment; determining a device path from the initial device to the target device based on the connection information of the plurality of devices, wherein the device path comprises a path from the initial device to the target device through the relay device;
the initial equipment confirms whether the same instant communication protocol as the relay equipment supports or not; responding to the fact that the initial equipment and the relay equipment support the same instant messaging protocol, the initial equipment utilizes the instant messaging protocol to package instant messaging messages, and the packaged instant messaging messages are sent to the relay equipment through a Bluetooth protocol;
the relay equipment judges whether to be connected with the target equipment in a Bluetooth mode;
responding to the fact that the relay device and the target device establish Bluetooth connection, the relay device utilizes an instant messaging protocol to package an instant messaging message, and sends the packaged instant messaging message to the target device through the Bluetooth protocol;
in response to the relay device not establishing a Bluetooth connection with the target device, the relay device obtaining connection information of a plurality of devices; determining a device path from the relay device to the target device based on connection information of a plurality of devices;
and the relay equipment forwards the packaged instant communication message to the target equipment based on the equipment path from the relay equipment to the target equipment.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
16. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 4-7.
17. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-3.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 4-7.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-3.
20. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 4-7.
CN202111394218.6A 2021-11-23 2021-11-23 Instant messaging method, device, system, equipment and storage medium Active CN114124868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111394218.6A CN114124868B (en) 2021-11-23 2021-11-23 Instant messaging method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111394218.6A CN114124868B (en) 2021-11-23 2021-11-23 Instant messaging method, device, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114124868A true CN114124868A (en) 2022-03-01
CN114124868B CN114124868B (en) 2023-07-14

Family

ID=80440178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111394218.6A Active CN114124868B (en) 2021-11-23 2021-11-23 Instant messaging method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114124868B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020069912A (en) * 2001-02-28 2002-09-05 엘지전자 주식회사 Message exchanging method for terminal include bluetooth
US20030018726A1 (en) * 2001-04-27 2003-01-23 Low Sydney Gordon Instant messaging
US20060282545A1 (en) * 2005-06-11 2006-12-14 Arwe John E Method and apparatus for application or protocol version negotiation
WO2007000110A1 (en) * 2005-06-27 2007-01-04 Huawei Technologies Co., Ltd. A method for transmitting message by using the message transfer protocol based ip
US20070260730A1 (en) * 2006-05-08 2007-11-08 Adithya Gadwale Automatically updated instant messaging (IM) presence of roaming IM user
CN101686232A (en) * 2008-09-25 2010-03-31 华为技术有限公司 Method for negotiating communication protocol version, system and equipment thereof
CN102647368A (en) * 2012-04-27 2012-08-22 深圳市铭美科技有限公司 Bluetooth based instant messaging method and Bluetooth based instant messaging system
US20150032792A1 (en) * 2013-07-26 2015-01-29 Samsung Electronics Co., Ltd. Method and apparatus for communication using ip address exchanged via nfc
CN105072093A (en) * 2015-07-20 2015-11-18 北京北信源软件股份有限公司 Interconnection device and method used for IM system
CN105933204A (en) * 2016-04-18 2016-09-07 北京奇虎科技有限公司 Method and device for enabling first equipment to transmit synchronization message to second equipment
CN107566245A (en) * 2017-07-31 2018-01-09 深圳真时科技有限公司 A kind of method and apparatus for realizing mobile terminal and Intelligent worn device instant messaging
CN107846674A (en) * 2017-11-23 2018-03-27 Tcl移动通信科技(宁波)有限公司 Outdoor communication method, mobile terminal and storage medium based on bluetooth grid protocols
CN108270665A (en) * 2018-01-04 2018-07-10 上海闻泰电子科技有限公司 Instant network communication system and communication means
US20180375961A1 (en) * 2016-03-01 2018-12-27 Huawei Technologies Co., Ltd. Message transmission method and core network interface device
CN109257729A (en) * 2018-09-19 2019-01-22 Oppo广东移动通信有限公司 Method for message transmission, device, terminal and storage medium
CN109510756A (en) * 2018-10-30 2019-03-22 上海欧科微航天科技有限公司 The method for carrying out instant messaging using satellite network
CN111224999A (en) * 2020-01-21 2020-06-02 安徽文香信息技术有限公司 Transmission protocol switching method, device, equipment and storage medium
CN113438633A (en) * 2021-06-18 2021-09-24 深圳松诺技术有限公司 Communication data processing method, terminal and computer readable storage medium

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020069912A (en) * 2001-02-28 2002-09-05 엘지전자 주식회사 Message exchanging method for terminal include bluetooth
US20030018726A1 (en) * 2001-04-27 2003-01-23 Low Sydney Gordon Instant messaging
US20060282545A1 (en) * 2005-06-11 2006-12-14 Arwe John E Method and apparatus for application or protocol version negotiation
WO2007000110A1 (en) * 2005-06-27 2007-01-04 Huawei Technologies Co., Ltd. A method for transmitting message by using the message transfer protocol based ip
US20070260730A1 (en) * 2006-05-08 2007-11-08 Adithya Gadwale Automatically updated instant messaging (IM) presence of roaming IM user
CN101686232A (en) * 2008-09-25 2010-03-31 华为技术有限公司 Method for negotiating communication protocol version, system and equipment thereof
CN102647368A (en) * 2012-04-27 2012-08-22 深圳市铭美科技有限公司 Bluetooth based instant messaging method and Bluetooth based instant messaging system
US20150032792A1 (en) * 2013-07-26 2015-01-29 Samsung Electronics Co., Ltd. Method and apparatus for communication using ip address exchanged via nfc
CN105072093A (en) * 2015-07-20 2015-11-18 北京北信源软件股份有限公司 Interconnection device and method used for IM system
US20180375961A1 (en) * 2016-03-01 2018-12-27 Huawei Technologies Co., Ltd. Message transmission method and core network interface device
CN105933204A (en) * 2016-04-18 2016-09-07 北京奇虎科技有限公司 Method and device for enabling first equipment to transmit synchronization message to second equipment
CN107566245A (en) * 2017-07-31 2018-01-09 深圳真时科技有限公司 A kind of method and apparatus for realizing mobile terminal and Intelligent worn device instant messaging
CN107846674A (en) * 2017-11-23 2018-03-27 Tcl移动通信科技(宁波)有限公司 Outdoor communication method, mobile terminal and storage medium based on bluetooth grid protocols
WO2019101153A1 (en) * 2017-11-23 2019-05-31 捷开通讯(深圳)有限公司 Bluetooth-grid-protocol-based outdoor communication method, and mobile terminal and storage medium
CN108270665A (en) * 2018-01-04 2018-07-10 上海闻泰电子科技有限公司 Instant network communication system and communication means
CN109257729A (en) * 2018-09-19 2019-01-22 Oppo广东移动通信有限公司 Method for message transmission, device, terminal and storage medium
CN109510756A (en) * 2018-10-30 2019-03-22 上海欧科微航天科技有限公司 The method for carrying out instant messaging using satellite network
CN111224999A (en) * 2020-01-21 2020-06-02 安徽文香信息技术有限公司 Transmission protocol switching method, device, equipment and storage medium
CN113438633A (en) * 2021-06-18 2021-09-24 深圳松诺技术有限公司 Communication data processing method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN114124868B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
EP3308599B1 (en) System for network discovery and synchronization
CN104702665A (en) Information sharing method and information sharing device
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
CN104980898A (en) Information pushing method, system and equipment
CN105898893B (en) Full-duplex communication method for mobile terminal and Internet of things equipment
JP2018535574A (en) Terminal interconnection method, apparatus, and storage medium
RU2676418C2 (en) Method and apparatus for device-specific communication between application programs
CN102065152A (en) Joined screen system and communication device thereof
CN104462033A (en) Method and device for realizing editing operation among devices
CN104243271A (en) Method and system for realizing off-line message pushing through XMPP
CN108683653A (en) A kind of active message push system based on WebSocket
CN108124007A (en) The method and apparatus of message data real-time Transmission
CN113630465A (en) Message processing method, device, equipment and storage medium
CN110582998A (en) Group communication method and device, computer storage medium and computer equipment
CN106302093B (en) Communication method, system and server
CN112131014B (en) Decision engine system and business processing method thereof
CN114124868B (en) Instant messaging method, device, system, equipment and storage medium
CN106657076B (en) TCP service implementation method and device for network name space
CN107612719B (en) Data backup method and device for Internet of things access point
JP6616184B2 (en) Data transmission method and apparatus
CN114884805A (en) Data transmission method, device, terminal and storage medium
CN113630298A (en) Intelligent control system, method and device
US9361191B2 (en) Methods and apparatus for data recovery following a service interruption at a central processing station
CN113726608A (en) Data processing method and device
CN108337300B (en) Man-machine interface communication method and system applied to narrow-band Internet of things

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