Communication method and device, communication equipment, readable storage medium and program product
By monitoring the connection status between the terminal and the cloud terminal and logging out the 5G message service when it is disconnected, 5G messages are converted into SMS, which solves the message transmission problem when users cut out of the cloud phone and ensures the timeliness and effectiveness of the messages.
Patent Information
- Application Number
- CN202510554743.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-22
AI Technical Summary
When a user cuts out the cloud phone, the connection between the cloud phone and the local terminal is disconnected, resulting in the inability to transmit 5G messages to the user terminal in time, affecting the effectiveness of the messages.
Monitor the connection status between the terminal and the cloud terminal. When the connection is disconnected, send a trigger command to the cloud terminal, cancel the 5G message service, and convert the 5G message into a SMS to send it to the terminal.
It realizes timely adjustment of message service status when the connection is disconnected, ensures the accuracy, timeliness and validity of messages, and avoids message transmission problems caused by connection interruption.
Smart Images

Figure CN120529263A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communications and terminal technologies, and in particular to a communication method, apparatus, communication equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of communications technology, cloud phones (cloud terminals) have emerged. Users can communicate with other devices through cloud phones and local terminals. For example, calls and text messages are generally handled by local terminals, while cloud terminals are primarily responsible for loading games and media applications. 5G messaging supports interoperability and intermixing with SMS messages, meaning short messages and 5G messages are intermixed on the same interface. After a cloud phone's 5G messaging service is successfully registered, the 5G messaging platform can communicate with the cloud phone via 5G messaging. However, when a user disconnects from the cloud phone, the connection between the cloud phone and the local terminal is disconnected. However, the cloud phone continues to receive 5G messages, and the user cannot view them, resulting in poor transmission efficiency of 5G messages. Summary of the Invention
[0003] Based on this, it is necessary to provide a communication method, device, communication equipment, computer-readable storage medium and computer program product that can ensure that users receive 5G messages in a timely manner to address the above technical problems.
[0004] In a first aspect, the present application provides a communication method, applied to a terminal, the method comprising:
[0005] Monitoring the connection status between the terminal and the cloud terminal of the terminal;
[0006] If the connection state is disconnected, a trigger instruction is sent to the cloud terminal, and the trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
[0007] In one embodiment, the method further comprises:
[0008] When the terminal cuts out of the virtual machine interface of the cloud terminal, or when the terminal is in an inactive state, or when the terminal logs out of the cloud terminal, it is determined that the connection state between the terminal and the cloud terminal is a disconnected state.
[0009] In one embodiment, the method further comprises:
[0010] When the duration of the terminal being in the target state reaches a preset duration threshold, it is determined that the connection state between the terminal and the cloud terminal is disconnected, the target state is that the terminal cuts out of the virtual machine interface of the cloud terminal, or the terminal is in an inactive state.
[0011] In one embodiment, the cloud terminal includes a 5G message module; and sending a trigger instruction to the cloud terminal includes:
[0012] Send a trigger instruction to the 5G message module in the cloud terminal.
[0013] In a second aspect, the present application provides a communication method, applied to a cloud terminal, the method comprising:
[0014] receiving a trigger instruction sent by a terminal, where the trigger instruction is sent when the terminal determines that it is disconnected from the cloud terminal;
[0015] A first SIP registration message is sent to the 5G message platform so that the 5G message platform cancels the 5G message service of the terminal, and converts the 5G message with the terminal as the message recipient into a text message and sends it to the terminal; the first SIP registration message indicates that the 5G message service of the terminal is in an expired state.
[0016] In one embodiment, the expires header field of the first SIP registration message is configured as a target value; and sending the first SIP registration message to the 5G messaging platform includes:
[0017] A first SIP registration message is sent to the 5G messaging platform through the 5G messaging module in the cloud terminal.
[0018] In one embodiment, the method further comprises:
[0019] A second SIP registration message is sent to the 5G messaging platform, wherein the expires header field of the second SIP registration message is configured as a non-target value.
[0020] In a third aspect, the present application provides a communication method, which is applied to a 5G messaging platform, and the method includes:
[0021] Receive a first SIP registration message sent by the cloud terminal, where the first SIP registration message indicates that the 5G message service of the terminal is in an expired state;
[0022] In the terminal status library, the 5G message service of the terminal is modified to an offline state; and when a 5G message with the message recipient being the terminal is received, the 5G message is converted into a text message and sent to the terminal.
[0023] In one embodiment, the method further comprises:
[0024] Receive a second SIP registration message sent by the cloud terminal, where the second SIP registration message is a registration request for the terminal's 5G messaging service;
[0025] When the registration request is approved, the 5G message service of the terminal is modified to an online state in the terminal state library.
[0026] In one embodiment, the method further comprises:
[0027] receiving a 5G message, determining a message recipient of the 5G message, and determining a service status of a 5G message service corresponding to the message recipient based on the terminal status library;
[0028] If the service status is online, sending the 5G message to the cloud terminal of the message recipient;
[0029] If the service status is offline, the 5G message is converted into a text message and sent to the terminal of the message recipient.
[0030] In a fourth aspect, the present application provides a communication device, applied to a terminal, the device comprising:
[0031] A monitoring module, configured to monitor the connection status between the terminal and the cloud terminal of the terminal;
[0032] The first sending module is used to send a trigger instruction to the cloud terminal if the connection state is a disconnected state, and the trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
[0033] In a fifth aspect, the present application provides a communication device, applied to a cloud terminal, the device comprising:
[0034] A first receiving module is configured to receive a trigger instruction sent by a terminal, where the trigger instruction is sent when the terminal determines that it is disconnected from the cloud terminal;
[0035] The second sending module is used to send a first SIP registration message to the 5G message platform so that the 5G message platform cancels the 5G message service of the terminal, and converts the 5G message with the terminal as the message recipient into a text message and sends it to the terminal; the first SIP registration message indicates that the 5G message service of the terminal is in an expired state.
[0036] In a sixth aspect, the present application provides a communication device, applied to a 5G messaging platform, comprising:
[0037] A second receiving module is configured to receive a first SIP registration message sent by the cloud terminal, where the first SIP registration message indicates that the 5G message service of the terminal is in an expired state;
[0038] The modification module is used to modify the 5G message service of the terminal to an offline state in the terminal status library; and when a 5G message with the message recipient being the terminal is received, convert the 5G message into a text message and send it to the terminal.
[0039] In a seventh aspect, the present application further provides a communication device, including a transmitter and a processor;
[0040] The processor is configured to monitor the connection status between the terminal and the cloud terminal of the terminal;
[0041] The processor is further configured to send a trigger instruction to the cloud terminal through a transmitter if the connection state is a disconnected state, wherein the trigger instruction is configured to enable the cloud terminal to deregister the 5G message service from the 5G message platform, and enable the 5G message platform to convert the 5G message with the terminal as the message recipient into a text message and send the converted message to the terminal after the text message is deregistered by the cloud terminal.
[0042] In an eighth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the embodiments of the present application are implemented.
[0043] In a ninth aspect, the present application also provides a computer program product, comprising a computer program, which implements the steps in the embodiments of the present application when executed by a processor.
[0044] The above-mentioned communication method, apparatus, communication equipment, computer-readable storage medium and computer program product, wherein the method includes: monitoring the connection status between the terminal and the cloud terminal of the terminal; if the connection status is a disconnected state, sending a trigger instruction to the cloud terminal, the trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service. By adopting this method, the connection status between the cloud terminal and the terminal can be detected in real time, and the connection status between the cloud terminal and the terminal can be accurately determined. When it is determined that the connection status is a disconnected state, the 5G message service of the cloud terminal on the 5G message platform is promptly triggered to go offline, so that the 5G message platform can adjust the service status in time, and send messages in an appropriate manner based on the real-time service status, thereby ensuring the accuracy, timeliness and effectiveness of message transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 A diagram of an application environment of a communication method in one embodiment;
[0047] Figure 2 1 is a flow chart of a communication method in one embodiment;
[0048] Figure 3 1 is a flow chart of a communication method in one embodiment;
[0049] Figure 4 1 is a flow chart of a communication method in one embodiment;
[0050] Figure 5 FIG1 is a flow chart of the step of receiving a second SIP registration message in one embodiment;
[0051] Figure 6 This is a flowchart of the steps of sending and receiving 5G messages in one embodiment;
[0052] Figure 7 is a flow chart of a communication method in another embodiment;
[0053] Figure 8 is a structural block diagram of a communication device in one embodiment;
[0054] Figure 9 is a structural block diagram of a communication device in one embodiment;
[0055] Figure 10 is a structural block diagram of a communication device in one embodiment;
[0056] Figure 11 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0058] The communication method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown, terminal 102, cloud terminal 104 (cloud), and 5G messaging platform 106 can communicate via a network. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart car devices, projectors, and the like. Portable wearable devices can include smart watches, smart bracelets, head-mounted devices, and the like. Head-mounted devices can include virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, and the like. Cloud terminal 104 can be an independent cloud server or a server cluster or distributed system consisting of multiple cloud servers. The cloud server can be a cloud server providing cloud computing services. 5G messaging platform 106 can be a network device, and the like.
[0059] 5G messages can be RCS messages (Rich Communication Services): a leap forward in service experience based on IP technology, supporting more media formats and richer forms of expression. Cloud terminal 104 can be a cloud phone, which is a virtual terminal running on a cloud server based on cloud computing virtualization technology, that is, a virtual phone running on a cloud server.
[0060] In an exemplary embodiment, Figure 2 As shown, a communication method is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate the process, including the following steps 202 to 206. Among them:
[0061] Step 202: monitor the connection status between the terminal and the cloud terminal of the terminal.
[0062] The terminal's cloud terminal can be a virtual phone running on a cloud server based on cloud computing virtualization, and the cloud terminal is connected to the terminal via a network. The terminal can be a local terminal, which is the physical terminal actually used by the user; the cloud terminal is a virtual terminal. The user can log in to the cloud phone on the local terminal to display the cloud phone's operation interface on the terminal. In response to a triggering operation on the operation interface, the local terminal can call the cloud terminal. For example, the local terminal can communicate with the cloud terminal on the cloud server, and realize message transmission between the local terminal and the cloud terminal in the interactive mode of 5G messaging.
[0063] Specifically, the terminal can monitor the connection status between the terminal and the cloud terminal corresponding to the terminal, that is, monitor the cloud terminal login status of the terminal. For example, the terminal can continuously detect the connection status, or periodically monitor the connection status between the terminal and the cloud terminal based on a preset period; the specific value of the preset period is not specifically limited in this embodiment, for example, it can be determined based on the actual application scenario, such as 1s, etc.
[0064] In step 204, if the connection status is disconnected, a trigger instruction is sent to the cloud terminal. The trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
[0065] The disconnected state refers to the terminal not logging into the cloud terminal, or the terminal switching out of the cloud terminal login interface. The trigger instruction can be any type of communication message in the communication system, and the trigger instruction is used to instruct the cloud terminal to cancel the 5G message service to the 5G message platform. The message recipient can be a 5G communication message received by the 5G message platform that needs to be forwarded to each terminal, for example, a combination of at least one of picture data, video data, voice data, and media content data.
[0066] Specifically, if the terminal determines that the current connection state between the terminal and the cloud terminal is disconnected, the terminal can send a trigger instruction to the cloud terminal, and the trigger instruction is used to instruct the cloud terminal to go offline / cancel the 5G message service of the terminal on the 5G message platform. For example, the trigger instruction can be used to instruct the cloud terminal to send a SIP registration message to the 5G message platform, and the header field of the SIP registration message can be a target value, and the target value can be zero, which is used to indicate that the 5G message service of the cloud terminal has expired, etc. In this way, after receiving the SIP registration message sent by the cloud terminal, the 5G message platform can cancel the 5G message service corresponding to the cloud terminal, and when receiving a 5G message whose message recipient is the cloud terminal, it converts the 5G message into a text message and sends it to the terminal corresponding to the cloud terminal, that is, sends the message content corresponding to the 5G message to the terminal in the form of a text message.
[0067] Optionally, the status of the 5G message service of the cloud terminal on the 5G message platform is the status of the 5G message service of the terminal; the 5G message whose message recipient is the cloud terminal is the 5G message whose message recipient is the terminal corresponding to the cloud terminal.
[0068] Alternatively, the cloud terminal is a virtual phone running on a cloud server. The cloud terminal can load the 5G messaging protocol stack through the 5G messaging module in the cloud terminal to support the sending and receiving of 5G messages. In other words, the 5G messaging service runs on the cloud terminal, while the SMS service runs on the local terminal.
[0069] The cloud terminal can include a 5G messaging module that can send a SIP registration message to the 5G messaging platform. The SIP registration message is used to register the cloud terminal / terminal's 5G messaging service on the 5G messaging platform. The 5G messaging platform can receive the SIP registration message. If, based on the SIP registration message, it is determined that the cloud terminal's 5G messaging service registration is successful, the terminal's 5G messaging service status can be modified to an online state in the terminal status library. In this way, after receiving the 5G message, the 5G messaging platform can query the terminal's 5G messaging service status in the terminal status library and determine the message format of the 5G message, which can be to maintain the 5G message transmission format or convert it to a text message transmission format, etc.
[0070] In the above communication method, the connection status between the terminal and the terminal's cloud terminal is monitored; if the connection status is disconnected, a trigger instruction is sent to the cloud terminal. The trigger instruction is used to cause the cloud terminal to deregister the 5G messaging service from the 5G messaging platform. When the cloud terminal deregisters the 5G messaging service, the 5G messaging platform converts the 5G message with the terminal as the recipient into a text message and sends it to the terminal. By adopting this method, the connection status between the cloud terminal and the terminal can be detected in real time and the connection status between the cloud terminal and the terminal can be accurately determined. When the connection status is determined to be disconnected, the cloud terminal's 5G messaging service on the 5G messaging platform is promptly triggered to go offline, allowing the 5G messaging platform to promptly adjust the service status and send messages in an appropriate manner based on the real-time service status, ensuring the accuracy, timeliness, and effectiveness of message delivery. Furthermore, because RCS is built into the terminal, terminal manufacturers need to adapt the SDK one by one, which is a relatively large workload and has a high development threshold. Placing RCS services on cloud phones is more conducive to service promotion and expands the scope of service applicability.
[0071] In one embodiment, the communication method further includes:
[0072] When the terminal switches out of the virtual machine interface of the cloud terminal, or when the terminal is in an inactive state, or when the terminal logs out of the cloud terminal, it is determined that the connection state between the terminal and the cloud terminal is disconnected.
[0073] Among them, the virtual machine interface of the cloud terminal can be an interface displayed on the local terminal. In response to the user's trigger operation on the interface, the local terminal can call the cloud terminal / cloud phone on the cloud server and send a communication message corresponding to the trigger operation to the cloud terminal. Alternatively, the cloud terminal can receive the 5G message sent by the 5G message platform and display it on the virtual machine interface of the local terminal. For example, the 5G message platform can send the 5G message to the cloud terminal, and the cloud terminal can send the 5G message to the local terminal. After the local terminal receives the 5G message, it can display the 5G message on the virtual machine interface of the cloud terminal of the 5G message.
[0074] Specifically, the terminal / local terminal can be installed with an application of the cloud terminal, and the user can log in to the application of the cloud terminal on the terminal to achieve the connection between the terminal and the cloud terminal. After logging in to the application of the cloud terminal, the application interface of the application can be displayed on the display interface of the terminal; the application interface of the application is the virtual machine interface of the cloud terminal. If the terminal determines that the display interface of the terminal does not display the application interface of the application of the cloud terminal, it can be determined that the terminal has cut out the virtual machine interface of the cloud terminal, that is, it can be determined that the terminal is currently logged out of the cloud terminal, that is, it is determined that the connection status between the terminal and the cloud terminal is disconnected. The terminal cutting out the virtual machine interface of the cloud terminal can be that the application of the cloud terminal is in the background on the local terminal, or the local terminal is currently in a call state with other users, or the interface of other applications is displayed on the display interface of the local terminal, etc.
[0075] Optionally, the terminal being in an inactive state may be that the terminal is in a screen-off state, or the terminal is in a low power consumption state, or the terminal is in a standby state, etc.
[0076] Optionally, the terminal may be a local terminal, and the local terminal may include a monitoring module. For example, the monitoring module in the local terminal may detect the connection status between the terminal and the cloud terminal.
[0077] In this embodiment, the connection status between the terminal and the cloud terminal of the terminal is determined by multiple methods, and the multiple methods complement and verify each other to ensure the comprehensiveness of the detection, or the accuracy of the detection can be guaranteed by detecting in multiple ways, and the accuracy of the connection status detection can be guaranteed.
[0078] In one embodiment, the communication method further includes:
[0079] When the duration of the terminal in the target state reaches a preset duration threshold, it is determined that the connection state between the terminal and the cloud terminal is disconnected, the target state is that the terminal cuts out of the virtual machine interface of the cloud terminal, or the terminal is in an inactive state.
[0080] Among them, the preset time threshold can be determined based on the connection strategy between the preset cloud terminal and the local terminal, for example, it can be 15 minutes, etc. This embodiment does not limit the specific value of the preset threshold, and technical personnel in this field can determine it based on the actual application scenario.
[0081] Specifically, if the terminal determines that it is in the target state, the terminal can monitor the duration of the terminal being in the target state and compare the duration with a preset duration threshold. If it is determined that the duration of the terminal being in the target state reaches the preset duration threshold, the terminal can determine that the connection state between the terminal and the cloud terminal is disconnected. The specific process of the terminal determining whether the terminal is in the target state has been described in detail in the above embodiment and will not be repeated here.
[0082] Optionally, the terminal can be a local terminal, and the local terminal can include a monitoring module. For example, the monitoring module in the local terminal can detect the connection status between the terminal and the cloud terminal, and when the monitoring module determines that the local terminal is in the target state, the monitoring module monitors the duration of the terminal in the target state.
[0083] In this embodiment, by judging whether the connection is disconnected based on the duration corresponding to the connection strategy between the cloud terminal and the local terminal, the robustness of the status detection can be improved, the misjudgment of the connection status can be avoided, and excessive reaction to network fluctuations or frequent user operations due to excessive sensitivity can be avoided, thereby further improving the accuracy of the judgment.
[0084] In one embodiment, the cloud terminal includes a 5G messaging module. The cloud terminal may be configured with a 5G messaging module for interacting with the 5G messaging platform and receiving trigger instructions sent by the local terminal. The step "sending a trigger instruction to the cloud terminal" may be implemented by the following process:
[0085] Send a trigger instruction to the 5G message module in the cloud terminal.
[0086] Among them, the trigger instruction is used to instruct the cloud terminal to cancel the 5G messaging service of the cloud terminal on the 5G messaging platform.
[0087] Specifically, when the terminal determines that the connection between it and the cloud terminal is disconnected, it can generate a trigger instruction and send the trigger instruction to the terminal's cloud terminal. In this way, the 5G messaging module in the cloud terminal can receive the trigger instruction and, based on the trigger instruction, generate a first SIP registration message and send the first SIP registration message to the 5G messaging platform. The first SIP registration message is used to deregister the terminal's 5G messaging service via 5G messaging. The expires header field in the first SIP registration message is configured with a target value, indicating that the 5G messaging service corresponding to the terminal sending the first SIP registration message has expired. After receiving the first SIP registration message, the 5G messaging platform determines that the 5G messaging service of the cloud terminal that sent the first SIP registration message has expired, or determines that the 5G messaging service of the terminal corresponding to the cloud terminal that sent the first SIP registration message has expired. In this way, the 5G messaging platform can modify the status of the terminal's 5G messaging service to offline in the terminal status library, that is, deregister the terminal's 5G messaging service on the 5G messaging platform.
[0088] In this embodiment, communication between the terminal and the cloud terminal is achieved through a dedicated 5G message module to ensure the reliability of communication.
[0089] In an exemplary embodiment, Figure 3 As shown, a communication method is provided, which is applied to Figure 1 The cloud terminal 104 in FIG. 1 is taken as an example to illustrate the process, including the following steps 302 to 306. Among them:
[0090] Step 302: Receive a trigger instruction sent by the terminal. The trigger instruction is sent when the terminal determines that it is disconnected from the cloud terminal.
[0091] The cloud terminal can be a virtual phone running on a cloud server, with the terminal (local terminal) corresponding to the cloud terminal (cloud phone). For example, a cloud terminal application can be installed on the terminal. The user can log in to the cloud terminal application on the terminal, and the cloud phone's operation interface (i.e., the cloud terminal application interface) will be displayed on the local terminal's display interface. In response to a triggering operation on this operation interface, the local terminal can call the cloud terminal. For example, the local terminal can communicate with the cloud terminal on the cloud server, implementing message transmission between the local terminal and the cloud terminal using the interactive 5G messaging method.
[0092] Specifically, the terminal can monitor the connection status between the terminal and the cloud terminal of the terminal. If it is determined that the connection status is disconnected, the terminal can send a trigger instruction to the cloud terminal, which is used to instruct the cloud terminal to cancel the 5G message service on the 5G message platform. For example, the terminal can send the trigger instruction to the 5G message module in the cloud terminal. The trigger instruction can be any type of communication message in the communication system. The terminal and the cloud terminal are in a disconnected state, which indicates that the 5G message received by the cloud terminal cannot be forwarded to the terminal, resulting in the user's 5G message reception timeliness being affected.
[0093] Step 304: Send a first SIP registration message to the 5G messaging platform to cause the 5G messaging platform to deregister the terminal's 5G messaging service and convert the 5G message with the terminal as the recipient into a text message before sending it to the terminal. The first SIP registration message indicates that the terminal's 5G messaging service is expired.
[0094] Among them, the expires header field of the first SIP registration message is configured as the target value, and the first SIP registration message is used to instruct the 5G message platform to cancel the 5G message service of the terminal corresponding to the cloud terminal, or to instruct the 5G message platform to cancel the 5G message service of the cloud terminal.
[0095] Specifically, after receiving the trigger instruction, the cloud terminal can send a first SIP registration message to the 5G messaging platform, with the expires header field of the first SIP registration message configured as a target value. The first SIP registration message is used to instruct the 5G messaging platform to cancel the 5G messaging service of the terminal corresponding to the cloud terminal, or to instruct the 5G messaging platform to cancel the 5G messaging service of the cloud terminal. After receiving the first SIP registration message, the 5G messaging platform can determine that the connection between the terminal and the cloud terminal has been disconnected, that is, the 5G messaging service of the terminal has been offline. In this way, the 5G messaging platform can cancel the 5G messaging service of the terminal, or cancel the 5G messaging service of the cloud terminal. In addition, when the 5G messaging platform receives a 5G message, it determines whether the 5G messaging service of the message recipient of the 5G message is online. If the 5G messaging platform determines that the 5G messaging service of the terminal receiving the 5G message is offline, then the 5G messaging platform can convert the 5G message into a text message and send the text message to the terminal to ensure the timely arrival of the message.
[0096] In this embodiment, the connection status between the cloud terminal and the terminal can be detected in real time, and the connection status between the cloud terminal and the terminal can be accurately detected. When it is determined that the connection status is disconnected, the 5G message service of the cloud terminal on the 5G message platform is promptly triggered to go offline, so that the 5G message platform can adjust the service status in time and send messages in an appropriate manner based on the real-time service status to ensure the accuracy, timeliness and effectiveness of message delivery.
[0097] In one embodiment, the expires header field of the first SIP registration message is configured as a target value. The parameter of the expires header field indicates the expiration time of the terminal's service. The target value can be zero, for example, to indicate that the service corresponding to the current terminal has expired. The step "sending the first SIP registration message to the 5G messaging platform" can be specifically implemented through the following process:
[0098] Through the 5G message module in the cloud terminal, the first SIP registration message is sent to the 5G message platform.
[0099] The first SIP register message may include an expires header field, which is configured with a target value, which may be zero. The first SIP register message may also include a service identifier, indicating that the service corresponding to the service identifier in the terminal has expired. Optionally, the service identifier may be an identifier of a 5G message service, etc.
[0100] Specifically, the cloud terminal may be configured with a 5G messaging module. The 5G messaging module may receive a trigger instruction sent by the terminal. After receiving the trigger instruction, the 5G messaging module may send a first SIP registration message to the 5G messaging platform. After receiving the first SIP registration message, the 5G messaging platform may determine that the connection between the terminal and the cloud terminal has been disconnected, that is, the 5G messaging service of the terminal has been offline. In this way, the 5G messaging platform may cancel the 5G messaging service of the terminal, or cancel the 5G messaging service of the cloud terminal.
[0101] In this embodiment, by promptly sending the first SIP registration message for canceling the 5G message service to the 5G message platform, the current status of each service of the terminal can be updated in a timely manner, providing a reliable basis for the subsequent timely delivery of 5G messages.
[0102] In one embodiment, the communication method further includes:
[0103] A second SIP registration message is sent to the 5G messaging platform, and the expires header field of the second SIP registration message is configured as a non-target value.
[0104] The expires header field of the SIP register message represents the (remaining) expiration time of the terminal's service, and the non-target value may be, for example, a non-zero value.
[0105] Specifically, the cloud terminal can send a second SIP registration message to the 5G messaging platform through the 5G messaging module. The second SIP registration message can be a registration request for a service, such as a registration request for a 5G messaging service. The second SIP registration message can also carry the service identifier and terminal identifier of the 5G messaging service. In this way, when the 5G messaging platform determines that the registration request corresponding to the second SIP registration message is successful, it can update the 5G messaging service of the terminal to an online state in the terminal status library of the 5G messaging platform, so that the 5G messaging platform can directly send a 5G message to the cloud terminal, and display the 5G message on the display interface of the terminal through the communication connection between the cloud terminal and the local terminal.
[0106] In this embodiment, by promptly sending the second SIP registration message for registering the 5G message service to the 5G message platform, the current status of each service of the terminal can be updated in a timely manner. 5G message communication can be achieved between the terminal, cloud terminal and 5G message platform, thereby improving the diversity of message content.
[0107] In an exemplary embodiment, Figure 4 As shown, a communication method is provided, which is applied to Figure 4 The 5G message platform 103 in FIG. 1 is taken as an example to illustrate, including the following steps 302 to 306. Among them:
[0108] Step 402: Receive a first SIP registration message sent by the cloud terminal, where the first SIP registration message indicates that the terminal's 5G message service is in an expired state.
[0109] Among them, the expires header field of the first SIP registration message is configured as the target value, and the first SIP registration message is used to instruct the 5G message platform to cancel the 5G message service of the terminal corresponding to the cloud terminal, or to instruct the 5G message platform to cancel the 5G message service of the cloud terminal.
[0110] Specifically, after receiving the first SIP registration message, the 5G messaging platform can determine that the connection between the terminal and the cloud terminal has been disconnected, that is, the terminal's 5G messaging service is offline or expired. In this way, the 5G messaging platform can cancel the terminal's 5G messaging service or the cloud terminal's 5G messaging service. In addition, when receiving a 5G message, the 5G messaging platform determines whether the 5G messaging service of the message recipient of the 5G message is online. If the 5G messaging platform determines that the 5G messaging service of the terminal receiving the 5G message is offline, the 5G messaging platform can convert the 5G message into a text message and send the text message to the terminal to ensure the timely arrival of the message.
[0111] Step 404: In the terminal status database, the 5G message service of the terminal is modified to an offline state. When a 5G message with the terminal as the message recipient is received, the 5G message is converted into a text message and sent to the terminal.
[0112] The terminal status library may be a database pre-set in the 5G messaging platform, which contains the service status of each service configured for each terminal. The service status of each service configured for each terminal may include an online status and / or an offline status. The services may include 5G messaging services.
[0113] Specifically, after the 5G messaging platform receives the first SIP registration message sent by the cloud terminal, since the target value carried in the first SIP registration message indicates that the 5G message of the terminal corresponding to the cloud terminal has expired, the 5G messaging platform can update the service status of the terminal's 5G messaging service to an offline state in the terminal status library. In this way, when the 5G messaging platform receives a 5G message, it can determine whether the 5G messaging service of the message recipient of the 5G message is online. If the 5G messaging platform determines that the 5G messaging service of the terminal receiving the 5G message is offline, the 5G messaging platform can convert the 5G message into a text message and send the text message to the terminal to ensure the timely arrival of the message.
[0114] Optionally, the first SIP registration message may also carry one or more of a service identifier, a terminal identifier, and a cloud terminal identifier. The terminal corresponding to the cloud terminal may be a cloud terminal called by the terminal through an application of the cloud terminal installed by the terminal. The service identifier carried by the first SIP registration message is the identifier of the 5G message service. After receiving the first SIP registration message, the 5G message platform can parse the first SIP registration message to obtain the identifier of the 5G message service, and at least one of the terminal identifier and the cloud terminal identifier. In this way, the 5G message platform can update the service status of the 5G message service of the terminal identifier to an offline state in the terminal status library. Optionally, the 5G message platform can determine the terminal identifier corresponding to the cloud terminal identifier, and update the service status of the 5G message service of the terminal identifier to an offline state in the terminal status library.
[0115] In this embodiment, the connection status between the cloud terminal and the terminal can be detected in real time, and the connection status between the cloud terminal and the terminal can be accurately detected. When it is determined that the connection status is disconnected, the 5G message service of the cloud terminal on the 5G message platform is promptly triggered to go offline, so that the 5G message platform can adjust the service status in time and send messages in an appropriate manner based on the real-time service status to ensure the accuracy, timeliness and effectiveness of message delivery.
[0116] In one embodiment, Figure 5 As shown, the communication method further includes:
[0117] Step 502: Receive a second SIP registration message sent by the cloud terminal. The second SIP registration message is a registration request for the terminal's 5G message service.
[0118] The expires header field of the second SIP registration message is a non-target value, and the target value is zero. In other words, the second SIP registration message may be a registration request for the 5G message service.
[0119] Specifically, the cloud terminal can register for the 5G messaging service with the 5G messaging platform based on the needs of the actual application scenario. For example, a second SIP registration message can be generated and sent to the 5G messaging platform.
[0120] Step 504: When the registration request is approved, the 5G message service of the terminal is modified to the online state in the terminal state library.
[0121] Specifically, when the 5G message platform determines that the service registration request corresponding to the second SIP registration message sent by the cloud terminal can be passed, the 5G message platform can update the service status of the terminal's 5G message service to an online status in the terminal status library.
[0122] In this embodiment, the connection status between the cloud terminal and the terminal can be detected in real time, and the connection status between the cloud terminal and the terminal can be accurately detected. When it is determined that the connection status is disconnected, the 5G message service of the cloud terminal on the 5G message platform is promptly triggered to go offline, so that the 5G message platform can adjust the service status in time and send messages in an appropriate manner based on the real-time service status to ensure the accuracy, timeliness and effectiveness of message delivery.
[0123] In one embodiment, Figure 6 The communication method further includes:
[0124] Step 602: Receive a 5G message, determine the message recipient of the 5G message, and determine the service status of the 5G message service corresponding to the message recipient based on the terminal status library.
[0125] Among them, the currently received 5G message may be a communication message sent by other devices to the terminal.
[0126] Specifically, when the 5G messaging platform receives a 5G message, it can determine whether the 5G messaging service of the message recipient of the 5G message is online. In other words, when the 5G messaging platform receives the 5G message, it can determine the message recipient of the 5G message and, based on the message recipient, query the service status of the 5G messaging service corresponding to the message recipient in the terminal status library of the 5G messaging platform. The service status can include online status or offline status.
[0127] Optionally, the 5G message may carry the terminal identifier of the message recipient, and the terminal status library may store the terminal identifiers of each terminal and the service status of each service configured for the terminal. In this way, the 5G message platform can query the terminal status library for the service status of the 5G message service corresponding to the terminal based on the terminal identifier of the message recipient.
[0128] Step 604: If the service status is online, the 5G message is sent to the cloud terminal of the message recipient.
[0129] Specifically, if the 5G messaging platform determines that the service status of the message recipient of the 5G message is online, the 5G messaging platform can send the 5G message to the cloud terminal of the terminal, for example, it can send the 5G message to the 5G messaging module of the cloud terminal. Since the 5G messaging service is in an online state, the connection status between the cloud terminal and the terminal is also maintained. In this way, after receiving the 5G message, the cloud terminal can display the 5G message on the running interface of the cloud terminal virtual machine displayed on the display interface of the terminal.
[0130] Step 606: If the service status is offline, the 5G message is converted into a text message and sent to the terminal of the message recipient.
[0131] Specifically, if the 5G message platform determines that the business status of the message recipient of the 5G message is offline, the 5G message platform can convert it into a text message and send the text message directly to the terminal to ensure the timeliness of the message arrival.
[0132] The following describes in detail a specific implementation process of the above communication method in conjunction with a specific embodiment, which may include:
[0133] like Figure 7 As shown, it can be a communication method that can improve the user experience of 5G messages on the terminal:
[0134] Cloud phones support 5G messaging and can send and receive 5G messages normally. Specifically, cloud phones can register for the 5G messaging service on the 5G messaging platform. After successful registration, the entire 5G messaging protocol stack can be loaded on the cloud phone to support the 5G messaging service. That is, the 5G messaging service runs on the cloud terminal, and the SMS service runs on the local terminal. When the cloud phone 5G messaging service is successfully registered, the 5G messaging service is online. That is, the terminal's 5G messaging service status is online in the terminal status library of the 5G messaging platform. When a user sends a message, the terminal sends the 5G message through the cloud 5G messaging module. When receiving 5G messages, the cloud 5G messaging module receives 5G messages sent by the network (5G messaging platform or other network devices).
[0135] Detect the cloud phone login status; specifically, monitor the connection status between the cloud terminal (cloud phone) and the terminal, that is, monitor the connection status between the cloud phone and the local terminal.
[0136] Determine whether the user has logged out of the cloud phone.
[0137] If you have not logged out of the cloud phone, you can send and receive 5G messages normally;
[0138] If you log out of the cloud phone, the cloud phone 5G message module will be triggered to actively send a SIPRegister message to the 5G message platform (with the expires header field set to 0); the 5G message platform will change the user status to 5G message offline; and any 5G messages sent to the user will be converted into text messages and sent to the local terminal.
[0139] Specifically, when the terminal detects that the cloud phone is disconnected from the local terminal, that is, when the user logs out of the cloud phone, the terminal sends a trigger instruction to the cloud terminal. The trigger instruction is used to instruct the 5G message module in the cloud terminal to actively send a sip registration message (SIP Register message) to the 5G message platform. The expires header field of the SIP registration message is set to 0 (the expires parameter indicates the terminal registration expiration time), indicating that the terminal 5G message service registration has expired; after receiving the sip registration message, the 5G message platform actively modifies the user status in the terminal status library to 5G message service offline, that is, changes the terminal's 5G message service to an offline state.
[0140] Optionally, the connection status between the cloud phone and the local terminal can be to monitor whether the cloud phone app is placed in the background (incoming call, switching to other apps) or in an inactive state (screen off) by the terminal, or to detect the duration of the state. If the duration exceeds a preset time threshold, it can be determined that the connection status between the cloud terminal and the terminal is disconnected; for example, the preset time threshold can be set to 15 minutes; the terminal can trigger the 5G message module of the cloud phone by calculating the time to cut out of the cloud phone system, and send a SIP message to the 5G message platform for offline 5G messaging services.
[0141] The communication method provided in this embodiment can promptly notify the cloud phone's 5G messaging service to register when the user logs out of the cloud phone. In this way, when a 5G message is received, it will be converted into a local SMS, effectively solving the problem of users not receiving messages in a timely manner. By detecting the user's cloud phone login status, when it is detected that the user has logged out, the cloud phone 5G messaging SDK will be triggered to send a SIP message to the 5G messaging platform, shutting down the 5G messaging service. In this way, even if a 5G message is sent, it can be converted into a local SMS so that the user can see it in time, while not affecting other services running on the cloud phone (such as games).
[0142] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0143] Based on the same inventive concept, the embodiments of the present application further provide a communication device for implementing the aforementioned communication method. The implementation solution provided by the device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations in the one or more communication device embodiments provided below can be found in the above-mentioned limitations on the communication method and will not be repeated here.
[0144] In an exemplary embodiment, Figure 8 As shown, a communication device 800 is provided, which is applied to a terminal and includes:
[0145] Monitoring module 802, used to monitor the connection status between the terminal and the terminal's cloud terminal;
[0146] The first sending module 804 is used to send a trigger instruction to the cloud terminal if the connection state is disconnected. The trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
[0147] In one embodiment, the apparatus further comprises:
[0148] The first determining module is configured to determine that the connection state between the terminal and the cloud terminal is disconnected when the terminal switches out of the virtual machine interface of the cloud terminal, or when the terminal is in an inactive state, or when the terminal logs out of the cloud terminal.
[0149] In one embodiment, the apparatus further comprises:
[0150] The second determination module is used to determine that the connection state between the terminal and the cloud terminal is disconnected when the duration of the terminal in the target state reaches a preset duration threshold, the target state is that the terminal cuts out of the virtual machine interface of the cloud terminal, or the terminal is in an inactive state.
[0151] In one embodiment, the cloud terminal includes a 5G message module; the first sending module is specifically configured to:
[0152] Send a trigger instruction to the 5G message module in the cloud terminal.
[0153] In an exemplary embodiment, Figure 9 As shown, a communication device 900 is provided, which is applied to a cloud terminal and includes:
[0154] The first receiving module 902 is configured to receive a trigger instruction sent by a terminal, where the trigger instruction is sent when the terminal determines that it is disconnected from the cloud terminal;
[0155] The second sending module 904 is used to send a first SIP registration message to the 5G message platform so that the 5G message platform cancels the terminal's 5G message service, and converts the 5G message with the terminal as the message recipient into a text message and sends it to the terminal; the first SIP registration message indicates that the terminal's 5G message service is in an expired state.
[0156] In one embodiment, the expires header field of the first SIP registration message is configured as a target value; and the second sending module is specifically configured to:
[0157] Through the 5G message module in the cloud terminal, the first SIP registration message is sent to the 5G message platform.
[0158] In one embodiment, the apparatus further comprises:
[0159] The third sending module is used to send a second SIP registration message to the 5G module message platform, and the expires header field of the second SIP registration message is configured as a non-target value.
[0160] In an exemplary embodiment, Figure 10 As shown, a communication device 1000 is provided, which is applied to a 5G messaging platform and includes:
[0161] The second receiving module 1002 is configured to receive a first SIP registration message sent by the cloud terminal, where the first SIP registration message indicates that the 5G message service of the terminal is in an expired state;
[0162] The modification module 1004 is used to modify the terminal's 5G message service to an offline state in the terminal status library; and when receiving a 5G message with the message recipient being the terminal, convert the 5G message into a text message and send it to the terminal.
[0163] In one embodiment, the apparatus further comprises:
[0164] A third receiving module is used to receive a second SIP registration message sent by the cloud terminal, where the second SIP registration message is a registration request for the 5G message service of the terminal;
[0165] The status modification module is used to modify the terminal's 5G message service to an online state in the terminal status library when the registration request is passed.
[0166] In one embodiment, the apparatus further comprises:
[0167] a fourth receiving module, configured to receive a 5G message, determine a message recipient of the 5G message, and determine a service status of a 5G message service corresponding to the message recipient based on a terminal status library;
[0168] The fourth sending module is used to send the 5G message to the cloud terminal of the message recipient if the service status is online;
[0169] The fifth sending module is used to convert the 5G message into a text message and send it to the terminal of the message recipient if the service status is offline.
[0170] Each module in the above-mentioned communication device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0171] In one embodiment, a communication device is provided. Figure 11 . Figure 11 It is a structural diagram of a terminal device provided by an embodiment of the present invention. Figure 11 The terminal device 1100 shown includes: at least one processor 1101, a memory 1102, at least one network interface 1104, and a user interface 1103. The various components in the terminal device 1100 are coupled together via a bus system 1105. It is understood that the bus system 1105 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 1105 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 1105 is not shown in FIG. Figure 11 Various buses are labeled as bus system 1105. In addition, the embodiment of the present invention further includes a transceiver 1106. The transceiver can be multiple components, that is, including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium.
[0172] The user interface 1103 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen).
[0173] It is understood that the memory 1102 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1102 of the systems and methods described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0174] In some embodiments, the memory 1102 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 11021 and application programs 11022 .
[0175] The operating system 11021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, for implementing various basic services and handling hardware-based tasks. Application programs 11022 include various application programs, such as a media player (MediaPlayer) and a browser (Browser), for implementing various application services. Programs implementing the methods of the embodiments of the present invention may be included in application programs 11022.
[0176] In an embodiment of the present invention, by calling the program or instructions stored in the memory 1102, specifically, the program or instructions stored in the application 11022, the processor is used to monitor the connection status between the terminal and the cloud terminal of the terminal; the processor is also used to send a trigger instruction to the cloud terminal through the transmitter if the connection status is a disconnected state, and the trigger instruction is used to enable the cloud terminal to cancel the 5G message service to the 5G message platform, and enable the 5G message platform to convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
[0177] Some or all of the methods disclosed in the above embodiments of the present invention may also be applied to processor 1101, or implemented by processor 1101, or implemented by processor 1101 in conjunction with other components (e.g., a transceiver). Processor 1101 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method may be performed by hardware integrated logic circuits or software instructions within processor 1101. Processor 1101 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The methods, steps, and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present invention may be directly executed by a hardware decoding processor or by a combination of hardware and software modules within the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 1102, and processor 1101 reads information in memory 1102 and, in conjunction with its hardware, completes the steps of the above method.
[0178] It is understood that the embodiments described in the embodiments of the present invention can be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of the present application, or a combination thereof.
[0179] For software implementation, the techniques of the embodiments of the present invention can be implemented through modules (e.g., procedures, functions, etc.) that perform the functions of the embodiments of the present invention. The software code can be stored in a memory and executed by the processor 1101. The memory can be implemented in the processor 1101 or external to the processor 1101.
[0180] In one embodiment, the processor is further configured to:
[0181] When the terminal switches out of the virtual machine interface of the cloud terminal, or when the terminal is in an inactive state, or when the terminal logs out of the cloud terminal, it is determined that the connection state between the terminal and the cloud terminal is disconnected.
[0182] In one embodiment, the processor is further configured to:
[0183] When the duration of the terminal in the target state reaches a preset duration threshold, it is determined that the connection state between the terminal and the cloud terminal is disconnected, the target state is that the terminal cuts out of the virtual machine interface of the cloud terminal, or the terminal is in an inactive state.
[0184] In one embodiment, the cloud terminal includes a 5G message module; the transmitter is specifically used to: send a trigger instruction to the 5G message module in the cloud terminal.
[0185] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the embodiments of the present application are implemented.
[0186] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the embodiments of the present application when executed by a processor.
[0187] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0188] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.
[0189] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0190] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A communication method, characterized in that: Applied to a terminal, the method includes: Monitoring the connection status between the terminal and the cloud terminal of the terminal; If the connection state is disconnected, a trigger instruction is sent to the cloud terminal, and the trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
2. The method according to claim 1, characterized in that The method further comprises: When the terminal cuts out of the virtual machine interface of the cloud terminal, or when the terminal is in an inactive state, or when the terminal logs out of the cloud terminal, it is determined that the connection state between the terminal and the cloud terminal is a disconnected state.
3. The method according to claim 1, characterized in that The method further comprises: When the duration of the terminal being in the target state reaches a preset duration threshold, it is determined that the connection state between the terminal and the cloud terminal is disconnected, the target state is that the terminal cuts out of the virtual machine interface of the cloud terminal, or the terminal is in an inactive state.
4. The method according to claim 1, wherein The cloud terminal includes a 5G message module; and sending a trigger instruction to the cloud terminal includes: Send a trigger instruction to the 5G message module in the cloud terminal.
5. A communication method, characterized in that: Applied to a cloud terminal, the method includes: receiving a trigger instruction sent by a terminal, where the trigger instruction is sent when the terminal determines that it is disconnected from the cloud terminal; A first SIP registration message is sent to the 5G message platform so that the 5G message platform cancels the 5G message service of the terminal, and converts the 5G message with the terminal as the message recipient into a text message and sends it to the terminal; the first SIP registration message indicates that the 5G message service of the terminal is in an expired state.
6. The method according to claim 5, characterized in that The expires header field of the first SIP registration message is configured as a target value; and sending the first SIP registration message to the 5G message platform includes: A first SIP registration message is sent to the 5G messaging platform through the 5G messaging module in the cloud terminal.
7. The method according to claim 5, characterized in that The method further comprises: A second SIP registration message is sent to the 5G messaging platform, wherein the expires header field of the second SIP registration message is configured as a non-target value.
8. A communication method, characterized in that: Applied to the 5G messaging platform, the method includes: Receive a first SIP registration message sent by the cloud terminal, where the first SIP registration message indicates that the 5G message service of the terminal is in an expired state; In the terminal status library, the 5G message service of the terminal is modified to an offline state; and when a 5G message with the message recipient being the terminal is received, the 5G message is converted into a text message and sent to the terminal.
9. The method according to claim 8, characterized in that The method further comprises: Receive a second SIP registration message sent by the cloud terminal, where the second SIP registration message is a registration request for the terminal's 5G messaging service; When the registration request is approved, the 5G message service of the terminal is modified to an online state in the terminal state library.
10. The method according to claim 8 or 9, characterized in that The method further comprises: receiving a 5G message, determining a message recipient of the 5G message, and determining a service status of a 5G message service corresponding to the message recipient based on the terminal status library; If the service status is online, sending the 5G message to the cloud terminal of the message recipient; If the service status is offline, the 5G message is converted into a text message and sent to the terminal of the message recipient.
11. A communication device, characterized in that: Applied to a terminal, the device includes: A monitoring module, configured to monitor the connection status between the terminal and the cloud terminal of the terminal; The first sending module is used to send a trigger instruction to the cloud terminal if the connection state is a disconnected state, and the trigger instruction is used to make the cloud terminal cancel the 5G message service to the 5G message platform, and make the 5G message platform convert the 5G message with the terminal as the message recipient into a text message and send it to the terminal when the cloud terminal cancels the 5G message service.
12. A communication device, characterized in that: including a transmitter and a processor; The processor is configured to monitor the connection status between the terminal and the cloud terminal of the terminal; The processor is further configured to send a trigger instruction to the cloud terminal through a transmitter if the connection state is a disconnected state, wherein the trigger instruction is configured to enable the cloud terminal to deregister the 5G message service from the 5G message platform, and enable the 5G message platform to convert the 5G message with the terminal as the message recipient into a text message and send the converted message to the terminal after the text message is deregistered by the cloud terminal.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.