Intelligent terminal instant messaging and system management method based on RTOS system

By using the RTOS system and the transit server in the smart wearable device, the CAT1 communication module is used for data encryption and transcoding processing, the problem of independent communication and high cost and high power consumption is solved, and low-cost and efficient communication capabilities are achieved and multi-channel access.

CN119030945APending Publication Date: 2024-11-26GTI INT SEMICON TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889163.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The communication method of smart wearable devices based on real-time operating systems and Android operating systems has the problem of relying on mobile phones or high cost and high power consumption, so they cannot achieve independent communication.

Method used

Using the intelligent terminal instant communication and system management method based on RTOS system, the wearable device can communicate independently through the transit server, and the CAT1 communication module is used for data encryption and transcoding, reducing power consumption and equipment costs.

Benefits of technology

It realizes the independent communication capabilities of smart wearable devices, reduces power consumption and equipment costs, and supports fast access to multiple message channels, such as self-developed APPs, WeChat, DingTalk, Alipay, etc.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030945A_ABST
    Figure CN119030945A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an intelligent terminal instant messaging and system management method based on an RTOS system. The method is suitable for wearable equipment and a transit server. Wherein the wearable device uses a communication module based on a first level CAT1 of long term evolution (LTE) terminal capability to communicate with the transit server, and data is encrypted and transcoded and then sent to a target third-party server. And the transit server receives the data packet of the wearable device, processes the data packet and forwards the processed data packet to the third-party server, and meanwhile, can receive the data packet of the third-party server and forwards the data packet to the wearable device. Therefore, the wearable device can communicate independently through the transit server, and the power consumption and the device cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an intelligent terminal instant communication and system management method based on an RTOS system. Background Art

[0002] As a rapidly developing technological product in recent years, smart wearable devices have penetrated into people's daily lives and provided great convenience for users. These devices can monitor users' health status, location information, motion data, etc. in real time by integrating various sensors and communication technologies, and transmit this information to users or other related systems. In the process of information transmission, the communication method of smart wearable devices is particularly critical. There are currently two main mainstream technologies, devices based on real-time operating systems and devices based on Android operating systems. Among them, devices based on real-time operating systems have simple functions and can only communicate through Bluetooth connected mobile phones. The disadvantage is that they rely on mobile phones and cannot communicate independently; the other type of smart wearable devices based on Android operating systems can only install application software for communication, and the disadvantage is high device cost and high power consumption. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides an intelligent terminal instant communication and system management method based on an RTOS system, which enables wearable devices to communicate independently through a transit server and reduces power consumption and device costs.

[0004] In a first aspect, an embodiment of the present invention provides an intelligent terminal instant messaging and system management method based on an RTOS system, which is applicable to a transit server, and the method includes:

[0005] Receive a first data packet sent by a target wearable device, wherein the target wearable device is a smart terminal based on a real-time operating system RTOS, and the target wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability, and the first data packet is sent by the target wearable device to the transit server through the communication module, and the source address of the first data packet is the target wearable device, and the destination address is the transit server;

[0006] Determining a target third-party server type corresponding to the first data packet;

[0007] generating a second data packet according to the target third-party server type and the first data packet, wherein the source address of the second data packet is the transit server and the destination address is the target third-party server;

[0008] The second data packet is sent to the target third-party server.

[0009] In some embodiments, the method further comprises:

[0010] receiving a third data packet sent by a third-party server, wherein the source address of the third data packet is the third-party server and the destination address is the transit server;

[0011] Generate a fourth data packet according to the third data packet, wherein the source address of the fourth data packet is the transit server and the destination address is the target wearable device;

[0012] Send the fourth data packet to the target wearable device.

[0013] In some embodiments, generating the second data packet according to the target third-party server type and the first data packet includes:

[0014] Decrypting the first data packet using a decryption key to obtain first decrypted data;

[0015] The first decrypted data is transcoded according to the target third-party server type to generate a second data packet.

[0016] In some embodiments, the transcoding the first decrypted data to generate a second data packet according to the target third-party server type includes:

[0017] Determining a first encoding format according to the target third-party server type, so as to perform format conversion on the first decrypted data to obtain first type data;

[0018] The first type of data is encrypted using an encryption key to generate a second data packet.

[0019] In some embodiments, generating a fourth data packet according to the third data packet comprises:

[0020] Decrypting the third data packet according to the decryption key to obtain second decrypted data;

[0021] Determining a second encoding format according to the destination address of the fourth data packet to perform format conversion on the second decrypted data to obtain second type data;

[0022] The second type of data is encrypted using an encryption key to generate a fourth data packet.

[0023] In a second aspect, an embodiment of the present invention provides an intelligent terminal instant communication and system management method based on an RTOS system, which is applicable to a wearable device, wherein the wearable device is an intelligent terminal based on a real-time operating system RTOS, and the wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability, and the method includes:

[0024] Get the message to be sent;

[0025] Generate a first data packet according to the information to be sent, wherein the source address of the first data packet is the wearable device and the destination address is the transit server;

[0026] The first data packet is sent to the relay server, and the relay server is used to determine the target third-party server type corresponding to the first data packet; a second data packet is generated according to the target third-party server type and the first data packet, and the source address of the second data packet is the relay server and the destination address is the target third-party server; the second data packet is sent to the target third-party server.

[0027] In some embodiments, the method further includes: receiving a fourth data packet sent by the transit server;

[0028] The fourth data packet is decrypted to obtain a message to be received.

[0029] In some embodiments, generating a first data packet according to the information to be sent includes:

[0030] Obtain the transit server address through the domain name system based on the transit server domain name;

[0031] Encrypting the information to be sent to obtain a first data packet;

[0032] The first data packet is stored in a sending buffer and waits for sending.

[0033] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method according to the first aspect and the second aspect.

[0034] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect and the second aspect.

[0035] The technical solution of the embodiment of the present invention is applicable to wearable devices and relay servers. Among them, the wearable device uses a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the relay server, and the data is encrypted and transcoded before being sent to the target third-party server. The relay server receives the data packet from the wearable device, and forwards it to the third-party server after processing. At the same time, it can receive data packets from the third-party server and forward them to the wearable device. As a result, the wearable device can communicate independently through the relay server, and power consumption and equipment cost are reduced. At the same time, the wearable device can quickly access multiple message channels such as self-developed APP, WeChat, DingTalk, Alipay, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0037] Figure 1 is a schematic diagram of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the present invention;

[0038] Figure 2 It is an information interaction diagram of a first example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention;

[0039] Figure 3 is an information interaction diagram of a second example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention;

[0040] Figure 4 is an information interaction diagram of a third example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention;

[0041] Figure 5 is an information interaction diagram of a fourth example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention;

[0042] Figure 6 It is a flow chart of an intelligent terminal instant communication and system management method based on an RTOS system applicable to a transit server according to an embodiment of the present invention;

[0043] Figure 7 It is a flow chart of an intelligent terminal instant communication and system management method based on an RTOS system applicable to a wearable device according to an embodiment of the present invention;

[0044] Figure 8 is a schematic diagram of an intelligent terminal instant messaging device based on an RTOS system according to an embodiment of the present invention;

[0045] Fig. 9 is a schematic diagram of another intelligent terminal instant messaging device based on an RTOS system according to an embodiment of the present invention;

[0046] Fig.10 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.

[0048] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0049] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".

[0050] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0051] Figure 1 Schematic diagram of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the present invention. Figure 1 In the embodiment shown, the intelligent terminal instant messaging system based on the RTOS system includes multiple wearable devices, multiple second wearable devices, multiple transfer servers and at least one third-party server. Figure 1 The RTOS-based smart terminal instant messaging system includes four wearable devices, namely a first wearable device 11, a second wearable device 12, a third wearable device 13, and a fourth wearable device 14. The terminal devices include a first terminal device 21 and a second terminal device 22. The relay server includes a first relay server 31 and a second relay server 32.

[0052] In this embodiment, the wearable device is an intelligent terminal based on a real-time operating system RTOS, and the wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability. That is, the communication module is a CAT1 communication module, CAT1 refers to "Category 1" or "CAT1" for short, which is a speed level in the LTE (Long-Term Evolution) network. Devices of this level support lower data rates, but generally have better coverage and battery efficiency, and are very suitable for Internet of Things (IoT) applications that require lower data transmission speeds but high stability requirements.

[0053] Among them, the main feature of the real-time operating system (RTOS) is that it can accept and process external events or data at a fast enough speed when they are generated, and at the same time ensure that the processing results control the production process or respond quickly to the processing system within the specified time. The real-time operating system is an embedded operating system with the characteristics of low energy consumption and long battery life. These characteristics make the real-time operating system gradually occupy a dominant position in the field of smart wearables. The real-time operating system enables smart wearable devices to cover many fields such as health management, sports measurement, social interaction, casual games, audio and video entertainment, positioning navigation, mobile payment, etc. These functions make smart wearable devices an indispensable part of users' daily lives. CAT1 (Category 1) is a connection category in the LTE (Long Term Evolution) network. It provides higher data transmission speeds and lower latency than 2G or 3G networks. When the user device needs to send data, it first transmits the data to the controller of the CAT1 module through the serial port. After receiving the data, the controller processes it and generates corresponding control signals. The modem converts the data signal from the controller into a high-frequency signal and merges the control signal with the data signal. The module uses frequency modulation technology to modulate the combined signal into a wireless signal. The modulated wireless signal is amplified and filtered by the RF front end to enhance the signal transmission capability. Subsequently, the wireless signal is transmitted through the antenna to the target device. The CAT1 module provides a good balance between power consumption, cost and coverage.

[0054] In the prior art, there are generally two communication methods between wearable devices and servers. One is that the wearable device is connected to the user terminal (such as a mobile phone, tablet computer, laptop computer, desktop computer, etc.) via Bluetooth. When the wearable device needs to be used for communication, the user terminal communicates with the third-party server, and then the wearable device communicates with the user terminal via Bluetooth. That is, the user terminal is used as an intermediate device to realize the communication between the wearable device and the third-party server. The disadvantage is that it depends on the user terminal and cannot communicate independently. The other is a wearable device based on the Android operating system. This wearable device can normally install APP (WeChat, DingTalk, Alipay, etc.) for communication. The disadvantage is that the device cost is high and the power consumption is high.

[0055] Since wearable devices based on RTOS systems generally have built-in CAT1 communication modules, the embodiments of the present invention utilize the existing CAT1 communication modules in the wearable devices to achieve communication.

[0056] Among them, the first wearable device 11, the second wearable device 12, the third wearable device 13 and the fourth wearable device 14 are devices that cannot directly communicate with the third-party server. They can be implemented through smart watches, smart bracelets, smart glasses, head-mounted display devices, smart headphones or other wearable devices.

[0057] The first terminal device 21 and the second terminal device 22 are devices that can directly communicate with a third-party server. They can be implemented by a mobile phone, a tablet computer, a laptop computer, a desktop computer, a wearable device that can directly communicate with a third-party server, or other dedicated data processing terminals.

[0058] The third-party server 41 may be a server operated by a service provider.

[0059] The first relay server 31 and the second relay server 32 can communicate with the wearable device based on CAT1 communication. They can be independent servers or server clusters composed of multiple servers.

[0060] exist Figure 1 In the illustrated embodiment, the first wearable device 11 and the second wearable device 12 are connected via the first transit server 31, the third wearable device 13 and the fourth wearable device 14 are connected via the second transit server 32, and the first transit server 31 and the second transit server 32 are connected via the third-party server 41. The first wearable device 11 and the second wearable device 12 register identity information in the first transit server 31 to obtain the first identity identifier and the second identity identifier, and the third wearable device 13 and the fourth wearable device 14 register identity card information in the second transit server 32 to obtain the third identity identifier and the fourth identity identifier.

[0061] Figure 2 This is an information interaction diagram of the first example of the intelligent terminal instant messaging system based on the RTOS system according to an embodiment of the present invention. Figure 2 The flowchart of information interaction of a wearable device sending data to a terminal device in an intelligent terminal instant messaging system based on an RTOS system is shown. More specifically, Figure 2 Taking the first wearable device 11 sending information to the first terminal device 21 as an example, wherein the first wearable device is the target wearable device, the method specifically includes the following steps:

[0062] Step S110: Obtain the message to be sent.

[0063] Specifically, the user can generate a message to be sent by inputting text, selecting a picture or voice data, etc. on the touch screen of the wearable device.

[0064] Step S120: Generate a first data packet.

[0065] Specifically, the first wearable device 11 first defines the data packet format, including header information such as source address, destination address, protocol type, etc. and the data part, i.e., the information to be sent, and then sets the source address to its own address and the destination address to the address of the first relay server 31 to ensure that the first data packet can be correctly routed to the first relay server 31.

[0066] Among them, the first wearable device 11 obtains the preconfigured transit server domain name. The first wearable device 11 will use its built-in domain name system client or library to initiate a domain name system query. If the local domain name system server does not have a cache record of the domain name, it will initiate a query to the root domain name system server. The root domain name system server will return the address of the domain name system server responsible for the top-level domain of the domain name. The local domain name system server will then initiate a query to the top-level domain name system server, and so on, until the authoritative domain name system server responsible for the specific domain name is found. The authoritative domain name system server will return the transit server address associated with the domain name. The first wearable device 11 receives a response to the domain name system query and resolves the transit server address associated with the domain name.

[0067] The first wearable device 11 selects a suitable algorithm according to the encryption algorithm supported by the built-in encryption chip. Common encryption algorithms include symmetric encryption algorithms and asymmetric encryption algorithms. Symmetric encryption algorithms are usually used to encrypt large amounts of data, while asymmetric encryption algorithms are often used to encrypt small amounts of data such as key exchange or digital signatures. Taking the symmetric encryption algorithm as an example, the wearable device will generate a key. This key will be used to encrypt and decrypt information. The generation of the key should be based on a secure random number generator. The wearable device inputs the information to be sent and the key into the encryption chip to start the encryption process. The encryption chip will use the selected encryption algorithm and key to encrypt the information and generate encrypted data. The encrypted data needs to be encapsulated into a first data packet for transmission. The first data packet usually includes header information and a data part. The header information may include information such as the source address, the destination address, the protocol type, etc., and the data part contains the encrypted data to be sent.

[0068] When the first data packet is encrypted and ready to be sent, the first wearable device 11 stores it in a send buffer. The send buffer is an area in the device memory that is used to temporarily store data waiting to be sent. When network conditions allow, such as a stable network connection, sufficient bandwidth, etc., and there are data packets to be sent in the send buffer, the wearable device will start preparing to send these data packets. It may send data packets according to some priority, such as first-in-first-out, according to the size or importance of the data packet, etc.

[0069] Step S130: Send a first data packet.

[0070] Specifically, the first wearable device 11 uses the communication module to try to establish a connection with the mobile network. This usually involves a handshake and authentication process with the base station to ensure that the device has legal network access rights. The wearable device takes out the first data packet from the sending buffer and sends it to the network through the communication module. The first data packet will be encapsulated into a format suitable for transmission on the Long Term Evolution LTE network and sent to the nearest base station via a wireless signal. The base station will forward the first data packet to the core network of the mobile network operator and finally reach the network address of the first transit server 31.

[0071] Step S140: Determine the third-party server type according to the first data packet.

[0072] Specifically, after receiving the first data packet, the first transit server 31 will parse the header information of the first data packet. The header of the first data packet generally includes information such as the destination address, port number, and communication protocol type. The transit server identifies the protocol information of the first data packet by parsing the header of the first data packet, and identifies the type of the third-party server 41 corresponding to the first data packet based on the protocol information. When the first transit server 31 determines the type of the third-party server 41, the first transit server 31 can forward the first data packet to the target third-party server according to the corresponding routing and forwarding rules.

[0073] Step S150: Generate a second data packet according to the third-party server type.

[0074] Specifically, when the first relay server 31 generates the second data packet, the first relay server 31 will set the source address to its own address to ensure that when the third-party server 41 responds, the second data packet can be correctly returned to the relay server. At the same time, the destination address will be set to the address of the third-party server 41 to ensure that the data packet can reach the correct destination. After the second data packet is generated, the relay server will encapsulate it into a format suitable for network transmission and forward it to the target third-party server according to the network configuration and routing rules.

[0075] The first relay server 31 receives the first data packet sent by the first wearable device 11, and the first data packet has been encrypted by the encryption chip built into the first wearable device 11 before being sent. The first relay server 31 can identify the encryption method used by the first data packet through specific identification information in the header of the first data packet or a predefined communication protocol. The first relay server 31 obtains the correct decryption key from the first wearable device 11 through a secure key exchange protocol, and uses the decryption key and the corresponding decryption algorithm to decrypt the received first data packet, thereby obtaining decrypted data.

[0076] The encryption chip configured in the first wearable device supports encryption and decryption of data, and adopts common algorithms such as AES (Advanced Encryption Standard, symmetric encryption algorithm), RSA (Ron Rivest Adi Shamir Leonard Adleman, asymmetric encryption algorithm), 3DES (Triple Data Encryption Algorithm, symmetric key encryption block cipher), ECC (Elliptic Curve Cryptography, public key encryption algorithm based on elliptic curve mathematical theory) to ensure the safe transmission and storage of data. These algorithms are not only used for data encryption, but also for identity authentication and data integrity verification to ensure the data security of the device during communication and storage. The encryption chip supports communication protocol protection and authorization management to achieve software integrity and security. The encryption chip supports multiple interfaces, such as 1-Wire (serial communication bus protocol), I2C (Inter-Integrated Circuit, a serial communication bus using a multi-master-slave architecture) and contactless interfaces, etc., to meet the needs of different wearable devices.

[0077] The first transit server 31 will first analyze the type of the third-party server 41, and according to the type of the third-party server 41, the first transit server 31 will analyze the transcoding requirements, including the format, resolution, bit rate, etc. of the video or audio. For example, if the third-party server 41 requires the video format to be MP4, the resolution to be 1080p, and the bit rate to be 2Mbps, the first transit server 31 needs to perform the corresponding transcoding operation. The first transit server 31 determines the encoding format according to the type of the third-party server 41 to convert the format of the decrypted data to obtain the data. Specifically, the first transit server 31 determines the data format supported or expected to be received by the third-party server 41, that is, the encoding format, according to the type of the third-party server 41. This may include video formats (such as MP4, AVI, FLV, etc.), audio formats (such as MP3, AAC, WAV, etc.), text formats (such as JSON, XML, etc.) or binary data formats, etc. After the first transit server 31 analyzes and obtains the encoding format, it configures its built-in format conversion service, which generally includes selecting a suitable codec, setting conversion parameters, and specifying the output format. The first decrypted data is converted using the configured format conversion service. This may involve steps such as decoding, processing and re-encoding the data, and finally converting the data into an encoded format to obtain the data. For example, decoding and re-encoding video or audio data, or parsing and reconstructing text data.

[0078] At the same time, the first transit server 31 encrypts the data by an encryption key to generate a second data packet. Specifically, the first transit server 31 selects an encryption key to encrypt the data. This key is confidential and is only known to the sender and the receiver. The key can be a private key or part of a public key. Among them, the first transit server 31 can adopt two methods, symmetric encryption and asymmetric encryption. If a symmetric encryption algorithm is used, the first transit server 31 will use the selected key to encrypt the data. The encryption process converts the plaintext data into ciphertext data, and this conversion process is reversible, that is, the same key can be used for decryption. If an asymmetric encryption algorithm is used, the first transit server 31 will use the public key to encrypt the data. The encrypted data can only be decrypted using the corresponding private key. After the encryption is completed, the first transit server 31 will encapsulate the encrypted data into a new data packet, namely the second data packet. This second data packet contains the encrypted data and possible other metadata, such as encryption type, key identifier, etc. Finally, the first transit server 31 will forward the second data packet to the next target server or recipient. Since the data has been encrypted, even if it is intercepted during transmission, the original content cannot be easily deciphered.

[0079] Step S160: Send a second data packet.

[0080] Specifically, the first transit server 31 will first try to establish a connection with the third-party server 41. This is usually achieved through network protocols such as the transmission control protocol, the Internet protocol or the user datagram protocol. Among them, if the transmission control protocol is used, the first transit server 31 will send a synchronization data packet to the third-party server 41 to request to establish a connection. If the third-party server 41 agrees to connect, it will reply with a synchronization-confirmation data packet. After receiving this data packet, the first transit server 31 will send a confirmation data packet to confirm the establishment of the connection. If the user datagram protocol is used, there is no such connection establishment process. The first transit server 31 only needs to send the data packet to the Internet protocol address and port of the third-party server 41. Before sending, the first transit server 31 will ensure that the second data packet has been correctly packaged according to the requirements of the network protocol. This may include adding necessary network header information, such as source address, destination address, port number, checksum, etc. The transit server sends the second data packet to the network. The second data packet will be forwarded through various devices in the network such as routers, switches, firewalls, etc. until it reaches the third-party server 41.

[0081] Step S170: Obtain the message to be sent according to the second data packet.

[0082] Specifically, the third-party server 41 obtains the second data packet and reads the header information of the second data packet through the corresponding protocol, wherein the header includes the type, source address and destination address. The third-party server reads the payload part of the second data packet according to the protocol, that is, the message to be sent, and converts it into a format that can be displayed by the terminal device.

[0083] Step S180: Send the message to be sent.

[0084] Specifically, the first transit server 31 sends the message to be sent to the first terminal device 21 through the selected communication protocol, wherein the format and encoding of the message to be sent are understandable to the first terminal device 21 .

[0085] Step S190: Display the message to be sent.

[0086] Specifically, the message to be sent is acquired in the first terminal device 21, and the message to be sent is displayed on a display screen.

[0087] Among them, the first wearable device 11 sends a message to the second terminal device 22, the second wearable device 12 sends a message to the first terminal device 21, the second wearable device 12 sends a message to the second terminal device 22, the third wearable device 13 sends a message to the first terminal device 21, the third wearable device 13 sends a message to the second terminal device 22, the fourth wearable device 14 sends a message to the first terminal device 21, and the fourth wearable device 14 sends a message to the second terminal device 22 can all be implemented through similar implementations.

[0088] In another achievable method, when the first wearable device 11 sends information to the third wearable device 13, the first wearable device 11 will first send the information to the first transit server 31, the first transit server 31 will decrypt and forward the information, and encapsulate the information according to the header information of the information and send it to the third-party server 41, the third-party server 41 will send the received information to the second transit server 32, and then the second transit server 32 will send it to the third wearable device 13.

[0089] The first wearable device of the embodiment of the present invention uses a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the first relay server, and the data is encrypted and transcoded before being sent to the third-party server. The first relay server receives the data packet of the first wearable device, processes it, and then forwards it to the third-party server. At the same time, it can receive the data packet of the third-party server and forward it to the first wearable device. Therefore, the first wearable device can communicate independently through the first relay server, and power consumption and equipment cost are reduced.

[0090] Figure 3is an information interaction diagram of a second example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention, Figure 3 The flowchart of information interaction between wearable devices connected to different transfer servers of the intelligent terminal instant messaging system based on the RTOS system is shown. More specifically, Figure 3 Taking the first wearable device 11 sending information to the third wearable device 13 as an example, the specific steps include:

[0091] Step S210: Obtain a message to be sent and generate a first data packet.

[0092] Step S220: Send a first data packet.

[0093] Step S230: Determine the third-party server type according to the first data packet, so as to generate a second data packet according to the third-party server type.

[0094] Step S240: Send a second data packet.

[0095] The specific implementation of steps S210 - S240 may refer to the above steps S110 - S160 , and the embodiments of the present invention will not be described in detail here.

[0096] Step S250: Generate a third data packet according to the second data packet.

[0097] Specifically, the third-party server 41 uses a pre-shared key or a key exchange protocol to decrypt the second data packet. By parsing the header information of the second data packet, including the protocol type, data length, target address, etc., the communication protocol of the second transit server 32, the target address of the second data packet, is determined. According to the communication protocol and encoding format of the second transit server 32, the third-party server 41 transcodes the second data packet to generate a third data packet. The source address of the third data packet is the third-party server, and the destination address is the second transit server 32. In order to protect the integrity and privacy of the data, the third-party server 41 uses an encryption algorithm and a key to encrypt the third data packet.

[0098] Step S260: Send a third data packet.

[0099] Specifically, the third-party server 41 sends the third data packet to the second transit server 32 according to the communication protocol of the second transit server 32 and a preset method.

[0100] Step S270: Generate a fourth data packet according to the third data packet.

[0101] Specifically, the generation operation of the fourth data packet in step S270 is similar to that in step S260 , except that the source address of the fourth data packet is the second transit server 32 , and the destination address is the third wearable device 13 .

[0102] Step S280: Send a fourth data packet.

[0103] Specifically, the fourth data packet has been encapsulated according to the CAT1 communication protocol, and the second transit server 32 sends the fourth data packet to the CAT1 network through its built-in CAT1 communication interface.

[0104] Step S290: Obtain the message to be sent according to the fourth data packet.

[0105] Specifically, the third wearable device 13 receives the fourth data packet from the second transfer server 32 from the CAT1 network through its built-in CAT1 communication module. The third wearable device 13 parses the fourth data packet according to the communication protocol to obtain the message to be sent.

[0106] Among them, the second wearable device 12 sends a message to the third wearable device 13, the second wearable device 12 sends a message to the fourth wearable device 14, the third wearable device 13 sends a message to the second wearable device 12, the fourth wearable device 14 sends a message to the first wearable device 11, and the fourth wearable device 14 sends a message to the second wearable device 12 can all be implemented through similar implementations.

[0107] In another achievable method, when the first wearable device 11 sends information to the second wearable device 12, the first wearable device 11 will first send the information to the first relay server 31, the first relay server 31 will decrypt and forward the information, and encapsulate the information according to the header information of the information and send it to the third-party server 41, the third-party server 41 will then send the received information to the first relay server 31, and then the first relay server 31 will send it to the second wearable device 12.

[0108] The first wearable device and the third wearable device of the embodiment of the present invention both use a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the first relay server and the second relay server. The first wearable device communicates with the first relay server, and the data is encrypted and transcoded before being sent to the third-party server. The second relay server receives the data packet sent by the third-party server and forwards it to the third wearable device. Thus, the wearable devices can communicate independently through the relay server, and power consumption and device cost are reduced.

[0109] Figure 4 is an information interaction diagram of a third example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention, Figure 4 The flowchart of information interaction between wearable devices connected to the same transfer server in the intelligent terminal instant messaging system based on the RTOS system is shown. More specifically, Figure 4 Taking the first wearable device 11 sending information to the second wearable device 12 as an example, the specific steps include:

[0110] Step S310: Obtain a message to be sent to generate a first data packet.

[0111] Step S320: Send a first data packet.

[0112] Step S330: determine the third-party server type according to the first data packet, so as to generate a second data packet according to the third-party server type.

[0113] Step S340: Send a second data packet.

[0114] Step S350: Generate a third data packet according to the second data packet.

[0115] Step S360: Send a third data packet.

[0116] Step S370: Generate a fourth data packet according to the third data packet.

[0117] Step S380: Send a fourth data packet.

[0118] Step S390: Obtain the message to be sent according to the fourth data packet.

[0119] Among them, the specific implementation method of steps S310-S390 can refer to the above steps S210-S290, the only difference is that the first wearable device 11 and the second wearable device 12 use the same first transit server 31 when transmitting information, resulting in the source address of the third data packet being the third-party server 41, and the destination address being the first transit server 31, the source address of the fourth data packet is the first transit server 31, and the destination address is the second wearable device 12, the embodiment of the present invention will not be repeated here.

[0120] Among them, the third wearable device 13 sending information to the fourth wearable device 14 can also be implemented through a similar implementation.

[0121] In another achievable manner, when the first terminal device 21 sends information to the first wearable device 11, the first terminal device 21 obtains the message to be received and sends the message to be received to the third-party server 41, the third-party server generates a fifth data packet based on the message to be received, and sends the fifth data packet to the first relay server 31, the first relay server 31 generates a sixth data packet based on the fifth data packet, and then sends the sixth data packet to the first wearable device 11.

[0122] The first wearable device and the second wearable device of the embodiment of the present invention both use a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the first relay server. The first wearable device communicates with the first relay server, and the data is encrypted and transcoded before being sent to the third-party server. The first relay server receives the data packet from the first wearable device, and forwards it to the third-party server after processing. At the same time, the first relay server receives the data packet from the third-party server and forwards it to the second wearable device. Therefore, the wearable devices can communicate independently through the relay server, and power consumption and device cost are reduced.

[0123] Figure 5 is an information interaction diagram of a fourth example of an intelligent terminal instant messaging system based on an RTOS system according to an embodiment of the invention, Figure 5 The flowchart of information interaction of sending data from a terminal device to a wearable device in an intelligent terminal instant messaging system based on an RTOS system is shown. More specifically, Figure 5 Taking the first terminal device 21 sending information to the first wearable device 11 as an example, the specific steps include:

[0124] Step S410: Obtain the message to be received.

[0125] Specifically, the user may generate a message to be sent by inputting text, selecting a picture or voice data, etc. on the application software on the first terminal device 21 .

[0126] Step S420: Send the message to be received.

[0127] Specifically, the application software on the first terminal device 21 establishes a connection with the third-party server 41 via HTTPS (Hypertext Transfer Protocol Secure, a secure network transmission protocol). At the same time, the message to be sent is encapsulated according to the transmission requirements of the network communication, and the encapsulated message to be received is sent to the third-party server 41 through the established connection.

[0128] Step S430: Obtain a fifth data packet according to the message to be sent.

[0129] Specifically, the third-party server 41 encapsulates the to-be-received message to be sent by the first terminal device 21, the source address-the address of the third-party server 41, and the destination address-the address of the first transit server 31 into a fifth data packet through an encryption key.

[0130] Step S440: Send the fifth data packet.

[0131] Specifically, the third-party server 41 sends the fifth data packet to the first transit server 31 through a preset network protocol.

[0132] Step S450: Obtain a sixth data packet according to the fifth data packet.

[0133] Specifically, the network interface card of the first transit server 31 monitors the data packets on the network. When a fifth data packet with a destination address matching its own communication protocol address is detected, the network interface card captures the fifth data packet and passes it to the network stack of the operating system. The network stack passes the fifth data packet to the corresponding protocol stack for processing. The first transit server 31 parses the content of the sixth data packet, including the source address, destination address, port number, data load, etc. The first transit server 31 uses the corresponding protocol stack for parsing according to the protocol type of the fifth data packet.

[0134] Among them, the first transit server 31 decrypts the fifth data packet according to the decryption key to obtain decrypted data. The first transit server 31 needs to select the correct decryption key to decrypt the fifth data packet, wherein the selection of the decryption key can be determined based on the protocol type, target address, predefined rules, etc. of the fifth data packet. Using the selected decryption key, the first transit server 31 will perform a decryption operation on the fifth data packet. The decryption process converts the ciphertext in the fifth data packet into decrypted data. The encoding format is determined according to the destination address of the fifth data packet to convert the format of the decrypted data to obtain transcoded data. Specifically, the first transit server 31 identifies the destination address of the fifth data packet by reading the header information of the fifth data packet, that is, the address of the first wearable device 11. Based on the target address, the first transit server 31 will query or determine the data encoding format compatible with the device. Among them, obtaining the data encoding format may require reference to a predefined encoding format mapping table or database, which contains the correspondence between different device addresses and the encoding formats they support. Using the determined second encoding format, the transit server will perform format conversion on the second decrypted data. Format conversion may include data type conversion, data encoding conversion such as text encoding, binary encoding, etc., data serialization or deserialization, etc., to ensure that the data can be correctly displayed or processed on the target device. After the format conversion, the first transit server 31 will obtain the transcoded data. The first transit server 31 encrypts the transcoded data by an encryption key to generate a sixth data packet. Specifically, the first transit server 31 selects a suitable encryption key, which will be used to encrypt the transcoded data. This key is usually pre-shared and only known to the first transit server 31 and the first wearable device 11. The transcoded data is encrypted using the selected encryption key and encryption algorithm. The encrypted data will become ciphertext, and only the first wearable device 11 with the corresponding decryption key can decrypt and read the original data. The encrypted data is encapsulated into a new data packet, namely the sixth data packet. In addition to the encrypted data, this data packet may also contain some metadata, such as source address, destination address, and protocol type.

[0135] Step S460: Send the sixth data packet.

[0136] Specifically, the first transit server 31 selects an appropriate communication protocol according to the communication module in the first wearable device 11 and sends the constructed sixth data packet to the network. The sixth data packet may be routed and forwarded through the network and finally reaches the first wearable device 11.

[0137] Step S470: Obtain a message to be received according to the sixth data packet.

[0138] Specifically, the first wearable device 11 establishes a connection with the mobile network through the communication module, and continuously monitors the connection to receive data packets from the first transit server 31. When the transit server sends the sixth data packet, the communication module receives the sixth data packet and passes it to the internal processing system of the wearable device. The wearable device uses the same key and encryption algorithm as used for encryption to decrypt the sixth data packet. If a symmetric encryption algorithm is used, the same key as used for encryption is required; if an asymmetric encryption algorithm is used, the corresponding private key is required for decryption. The wearable device restores the encrypted sixth data packet by decryption and obtains the message to be received.

[0139] Among them, the first terminal device 21 sends information to the first wearable device 11, the first terminal device 21 sends information to the second wearable device 12, the first terminal device 21 sends information to the third wearable device 13, the first terminal device 21 sends information to the fourth wearable device 14, the second terminal device 22 sends information to the first wearable device 11, the second terminal device 22 sends information to the second wearable device 12, the second terminal device 22 sends information to the third wearable device 13, and the second terminal device 22 sends information to the fourth wearable device 14, which can all be implemented through similar implementations.

[0140] In another possible implementation, when the third wearable device 13 sends information to the first wearable device 11, the third wearable device 13 obtains the message to be received and generates a data packet, the third wearable device 13 sends the data packet to the second relay server 32 through the communication module, the second relay server 32 sends the data packet to the third-party server 41 and then sends it to the first relay server 31 through the third-party server 41, and the first relay server 31 then sends the data packet to the first wearable device 11.

[0141] The wearable device of the embodiment of the present invention uses a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the relay server, and the data is encrypted and transcoded before being sent to the target third-party server. The relay server receives the data packet from the wearable device, processes it, and then forwards it to the third-party server. At the same time, it can receive the data packet from the third-party server and forward it to the wearable device. Therefore, the wearable device can communicate independently through the relay server, and the power consumption and equipment cost are reduced.

[0142] Figure 6 The present invention is a flowchart of an RTOS system-based intelligent terminal instant communication and system management method applicable to a transit server according to an embodiment of the present invention. Figure 6 The intelligent terminal instant communication and system management method based on the RTOS system shown is applicable to the transfer server and specifically includes the following steps:

[0143] Step S710, receiving a first data packet sent by a target wearable device, wherein the target wearable device is an intelligent terminal based on a real-time operating system RTOS, and the target wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability, and the first data packet is sent by the target wearable device to the transit server through the communication module, and the source address of the first data packet is the target wearable device, and the destination address is the transit server.

[0144] The specific implementation of receiving the first data packet is consistent with the first data packet sent by the first wearable device to the first relay server in step S120-step S130.

[0145] Step S720: Determine the target third-party server type corresponding to the first data packet.

[0146] Among them, the specific implementation method of determining the target third-party server type corresponding to the first data packet is consistent with the type of the third-party server 41 corresponding to the first data packet sent by the first wearable device determined by the first transit server in step S140, and will not be described here.

[0147] Step S730: Generate a second data packet according to the target third-party server type and the first data packet, wherein the source address of the second data packet is the transit server and the destination address is the target third-party server.

[0148] The specific implementation of generating the second data packet is consistent with the first transit server 31 generating the second data packet according to the type of the third-party server 41 in step S150, and will not be described here again.

[0149] Step S740: Send the second data packet to the target third-party server.

[0150] The specific implementation of sending the second data packet is consistent with the first transit server 31 sending the second data packet to the first terminal device 21 in step S160, and will not be described again here.

[0151] Figure 7 It is a flow chart of an intelligent terminal instant communication and system management method based on an RTOS system applicable to wearable devices according to an embodiment of the present invention. Figure 7 The intelligent terminal instant communication and system management method based on the RTOS system shown is applicable to wearable devices and specifically includes the following steps:

[0152] Step S810: Obtain the message to be sent.

[0153] The specific implementation method of obtaining the message to be sent is consistent with the method described in step S110 and will not be described again here.

[0154] Step S820: Generate a first data packet according to the information to be sent, wherein the source address of the first data packet is the first wearable device and the destination address is the transit server.

[0155] The specific implementation of generating the first data packet is consistent with the generation of the first data packet by the first wearable device in step S120, and will not be described again here.

[0156] Step S830, sending the first data packet to the relay server, the relay server is used to determine the target third-party server type corresponding to the first data packet; generating a second data packet according to the target third-party server type and the first data packet, the source address of the second data packet is the relay server, and the destination address is the target third-party server; sending the second data packet to the target third-party server.

[0157] Among them, the specific implementation method of the relay server generating the second data packet and sending the second data packet to the target third-party server is consistent with the method described in steps S140-S160 in which the first relay server 31 generates the second data packet and sends the second data packet to the third-party server 41, and will not be described here again.

[0158] The wearable device of the embodiment of the present invention uses a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the relay server, and the data is encrypted and transcoded before being sent to the target third-party server. The relay server receives the data packet from the wearable device, processes it, and then forwards it to the third-party server. At the same time, it can receive the data packet from the third-party server and forward it to the wearable device. Therefore, the wearable device can communicate independently through the relay server, and the power consumption and equipment cost are reduced.

[0159] Figure 8 Schematic diagram of an intelligent terminal instant messaging device based on an RTOS system according to an embodiment of the present invention. Figure 8As shown, the smart terminal instant messaging device based on the RTOS system of the embodiment of the present invention is suitable for a transit server, and the device includes a first data packet receiving module 71, which is used to receive a first data packet sent by a target wearable device, and the target wearable device is a smart terminal based on a real-time operating system RTOS, and the target wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability, and the first data packet is sent to the transit server by the target wearable device through the communication module, and the source address of the first data packet is the target wearable device, and the destination address is the transit server; a data type determination module 72 is used to determine the target third-party server type corresponding to the first data packet; a second data packet generation module 73 is used to generate a second data packet according to the target third-party server type and the first data packet, and the source address of the second data packet is the transit server, and the destination address is the target third-party server; a second data packet sending module 74 is used to send the second data packet to the target third-party server.

[0160] In some embodiments, the second data packet generating module 73 includes:

[0161] A first decryption module, used to decrypt the first data packet using a decryption key to obtain first decrypted data;

[0162] The second data packet generating submodule is used to transcode the first decrypted data according to the target third-party server type to generate a second data packet.

[0163] In some embodiments, the second data packet generation submodule includes:

[0164] A first format determination module, configured to determine a first encoding format according to the target third-party server type, so as to perform format conversion on the first decrypted data to obtain first type data;

[0165] The first encryption module is used to encrypt the first type of data using an encryption key to generate a second data packet.

[0166] Fig. 9 Schematic diagram of another intelligent terminal instant messaging device based on RTOS system according to an embodiment of the present invention. Fig. 9As shown, the smart terminal instant messaging device based on the RTOS system of the embodiment of the present invention is suitable for wearable devices, and the device includes a message acquisition module 81 to be sent, which is used to obtain the message to be sent; a first data packet generation module 82, which is used to generate a first data packet according to the information to be sent, the source address of the first data packet is the first wearable device, and the destination address is the transit server; a first data packet sending module 83, which is used to send the first data packet to the transit server, and the transit server is used to determine the target third-party server type corresponding to the first data packet; a second data packet is generated according to the target third-party server type and the first data packet, the source address of the second data packet is the transit server, and the destination address is the target third-party server; the second data packet is sent to the target third-party server.

[0167] In some embodiments, the first data packet generation module 82 includes:

[0168] The relay server address acquisition module is used to obtain the relay server address through the domain name system according to the relay server domain name;

[0169] A third encryption module, used for encrypting the information to be sent to obtain a first data packet;

[0170] The first data packet buffer module is used to store the first data packet in a sending buffer and wait for sending.

[0171] The wearable device of the embodiment of the present invention uses a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability to communicate with the transit server, and the data is encrypted and transcoded before being sent to the target third-party server. The transit server receives the data packet from the wearable device, processes it, and then forwards it to the third-party server. At the same time, it can receive data packets from the third-party server and forward them to the wearable device. As a result, the wearable device can communicate independently through the transit server, and power consumption and equipment cost are reduced. At the same time, the wearable device can quickly access multiple message channels such as self-developed APP, WeChat, DingTalk, Alipay, etc.

[0172] Fig.10 Schematic diagram of an electronic device according to an embodiment of the present invention. Fig.10 As shown, Fig.10The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 91 and a memory 92. The processor 91 and the memory 92 are connected via a bus 93. The memory 92 is suitable for storing instructions or programs executable by the processor 91. The processor 91 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 91 executes the instructions stored in the memory 92, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 93 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 94 and the display device and the input / output (I / O) device 95. The input / output (I / O) device 95 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 95 is connected to the system via an input / output (I / O) controller 96.

[0173] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0174] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0175] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.

[0176] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.

[0177] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0178] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0179] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An intelligent terminal instant communication and system management method based on RTOS system, applicable to a transit server, characterized in that: The method comprises: Receive a first data packet sent by a target wearable device, wherein the target wearable device is a smart terminal based on a real-time operating system RTOS, and the target wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability, and the first data packet is sent by the target wearable device to the transit server through the communication module, and the source address of the first data packet is the target wearable device, and the destination address is the transit server; Determining a target third-party server type corresponding to the first data packet; generating a second data packet according to the target third-party server type and the first data packet, wherein the source address of the second data packet is the transit server and the destination address is the target third-party server; The second data packet is sent to the target third-party server.

2. The method according to claim 1, characterized in that: The method further comprises: receiving a third data packet sent by a third-party server, wherein the source address of the third data packet is the third-party server and the destination address is the transit server; Generate a fourth data packet according to the third data packet, wherein the source address of the fourth data packet is the transit server and the destination address is the target wearable device; Send the fourth data packet to the target wearable device.

3. The method according to claim 1, characterized in that Generating the second data packet according to the target third-party server type and the first data packet includes: Decrypting the first data packet using a decryption key to obtain first decrypted data; The first decrypted data is transcoded according to the target third-party server type to generate a second data packet.

4. The method according to claim 3, characterized in that The step of transcoding the first decrypted data to generate a second data packet according to the target third-party server type includes: Determining a first encoding format according to the target third-party server type, so as to perform format conversion on the first decrypted data to obtain first type data; The first type of data is encrypted using an encryption key to generate a second data packet.

5. The method according to claim 2, characterized in that: Generating a fourth data packet according to the third data packet comprises: Decrypting the third data packet according to the decryption key to obtain second decrypted data; Determining a second encoding format according to the destination address of the fourth data packet to perform format conversion on the second decrypted data to obtain second type data; The second type of data is encrypted using an encryption key to generate a fourth data packet.

6. An intelligent terminal instant communication and system management method based on RTOS system, suitable for wearable devices, characterized in that: The wearable device is an intelligent terminal based on a real-time operating system RTOS, and the wearable device includes a communication module based on the first level CAT1 of the long-term evolution LTE terminal capability. The method includes: Get the message to be sent; Generate a first data packet according to the information to be sent, wherein the source address of the first data packet is the wearable device and the destination address is the transit server; The first data packet is sent to the relay server, and the relay server is used to determine the target third-party server type corresponding to the first data packet; a second data packet is generated according to the target third-party server type and the first data packet, and the source address of the second data packet is the relay server and the destination address is the target third-party server; the second data packet is sent to the target third-party server.

7. The method according to claim 6, characterized in that The method further comprises: Receiving a fourth data packet sent by the transit server; The fourth data packet is decrypted to obtain a message to be received.

8. The method according to claim 6, characterized in that Generating a first data packet according to the information to be sent includes: Obtain the transit server address through the domain name system based on the transit server domain name; Encrypting the information to be sent to obtain a first data packet; The first data packet is stored in a sending buffer and waits for sending.

9. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 8 when executed by a processor.

10. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 8.