Lianyun address switching method and device, cloud server and internet of things equipment

By actively acquiring and sending cloud connection information through the cloud server, IoT devices automatically switch to the target cloud server address, solving the problems of slow response and low efficiency in existing technologies and achieving fast and reliable cloud address switching.

CN122120296APending Publication Date: 2026-05-29SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN TCL NEW-TECH CO LTD
Filing Date
2026-02-05
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

When switching cloud server addresses, existing IoT devices have slow response times and low efficiency in batch switching, mainly relying on local firmware upgrades or on-site manual configuration.

Method used

By actively acquiring and sending connection information to the cloud server, IoT devices can automatically switch to the target cloud server address, avoiding on-site manual configuration or local firmware upgrades. A heartbeat detection and offline status delay sending mechanism are used to ensure timely information transmission.

Benefits of technology

It improves the response speed and batch operation efficiency of cloud address switching, simplifies the operation process, and enhances the flexibility and reliability of switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120296A_ABST
    Figure CN122120296A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of Internet of Things, in particular to a continuous cloud address switching method and device, a cloud server and an Internet of Things equipment. A continuous cloud address switching method is applied to a cloud server. In the continuous cloud address switching method, continuous cloud information is first acquired; the continuous cloud information comprises a target cloud server address to be switched by an Internet of Things equipment. Then, the continuous cloud information is sent to the Internet of Things equipment, so that the Internet of Things equipment is switched to the target cloud server address based on the continuous cloud information. Thus, the target cloud server address information is actively acquired and sent by the cloud server, the Internet of Things equipment can automatically complete address switching, the cumbersome process of manual configuration on site or local firmware upgrading is avoided, and the switching response speed and batch operation efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) technology, specifically to a cloud address switching method, apparatus, cloud server, and IoT device. Background Technology

[0002] Existing IoT devices are pre-installed with fixed cloud server addresses, and data interaction and remote control between the devices and the cloud platform all rely on this address. In practical applications, due to business migration, cloud platform upgrades, network policy adjustments, or changes in third-party platforms, it is necessary to switch the device's cloud server address. Current technologies mainly achieve cloud address switching through local firmware upgrades or manual on-site configuration, resulting in slow switching response times and low efficiency for batch switching. Summary of the Invention

[0003] This application provides a cloud address switching method, apparatus, cloud server, and IoT device, which can remotely switch the cloud address of IoT devices and improve switching efficiency.

[0004] The technical solution adopted by this invention to solve the problem is as follows: In a first aspect, embodiments of this application provide a cloud address switching method applied to a cloud server. The cloud address switching method includes: obtaining cloud information; the cloud information including the target cloud server address that an IoT device needs to switch to; and sending the cloud information to the IoT device so that the IoT device switches to the target cloud server address based on the cloud information.

[0005] In some embodiments, sending the cloud connection information to the IoT device includes: obtaining the communication status between the IoT device and the cloud server; if the communication status is online, sending the cloud connection information to the IoT device; if the communication status is offline, sending the cloud connection information to the IoT device upon receiving a cloud connection request instruction from the IoT device.

[0006] In some embodiments, after sending the cloud connection information to the IoT device, the cloud connection address switching method further includes: obtaining the switching result returned by the IoT device; and updating the switching record of the IoT device based on the switching result.

[0007] In some embodiments, obtaining the cloud connection information includes: receiving a cloud connection switching operation sent by a user equipment; and generating the cloud connection information based on the cloud connection switching operation.

[0008] Secondly, embodiments of this application provide a cloud address switching method applied to Internet of Things (IoT) devices. The cloud address switching method includes: receiving cloud connection information sent by a cloud server; the cloud connection information including the target cloud server address to which the IoT device needs to switch; and switching to the target cloud server address based on the cloud connection information.

[0009] In some embodiments, receiving cloud connection information sent by the cloud server includes: obtaining the communication status between the IoT device and the cloud server; if the communication status is online, receiving cloud connection information sent by the cloud server; if the communication status is offline, sending a cloud connection request instruction to the cloud server when the communication status changes to the online status, and receiving cloud connection information sent by the cloud server based on the cloud connection request instruction.

[0010] In some embodiments, after switching to the target cloud server address based on the cloud connection information, the process includes: obtaining the communication status between the IoT device and the target cloud server corresponding to the target cloud server address; if the communication status is online, determining that the switching result is a successful cloud connection address switch; if the communication status is offline, the IoT device switches to the original cloud address and determining that the switching result is a failed cloud connection address switch; and sending the switching result to the cloud server.

[0011] Thirdly, this application provides a cloud address switching device applied to a cloud server. The device includes: an information acquisition module for acquiring cloud information; the cloud information includes the target cloud server address that the IoT device needs to switch to; and an information sending module for sending the cloud information to the IoT device so that the IoT device switches to the target cloud server address based on the cloud information.

[0012] Fourthly, embodiments of this application provide a cloud server, including: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described above.

[0013] Fifthly, embodiments of this application provide an Internet of Things (IoT) device, including: a memory storing a computer program; and a processor for reading the computer program stored in the memory to execute the method described above.

[0014] This application provides a method, apparatus, cloud server, and IoT device for switching cloud connection addresses. The cloud server actively acquires and sends cloud connection information, enabling the IoT device to automatically switch to the target cloud server address based on this information. In the cloud connection information acquisition stage, the cloud server centrally acquires connection information containing the target cloud server address. This ensures unified management and timely distribution of switching information, eliminating the need for the IoT device to generate or query addresses itself. Therefore, by actively acquiring and sending the target cloud server address information, the IoT device can automatically complete the address switch, avoiding the cumbersome process of manual configuration or local firmware upgrades, and improving switching response speed and batch operation efficiency. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present invention; Figure 2 This is a flowchart illustrating a cloud address switching method for cloud servers provided in an embodiment of the present invention. Figure 3 This is a flowchart illustrating a cloud address switching method for IoT devices provided in an embodiment of the present invention. Figure 4 This is a schematic diagram of the structure of a cloud address switching device applied to a cloud server according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a cloud address switching device for Internet of Things (IoT) devices provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] In the description of this application, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more features.

[0019] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0020] It should be noted that since the method in this application embodiment is executed in a computer device, the processing objects of each computer device exist in the form of data or information, such as time, which is essentially time information. It is understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data that exist so that the computer device can process them. Specific details will not be elaborated here.

[0021] like Figure 1 As shown, an application scenario of one embodiment of the present invention includes a cloud server 100, an IoT device 200, and a user device 300. The user device 300 is communicatively connected to the cloud server 100, and the cloud server 100 is communicatively connected to the IoT device 200.

[0022] Specifically, when a user needs to switch the cloud address of IoT device 200, the user can perform a cloud connection switching operation in the application interface of user device 300 and send the cloud connection switching operation to cloud server 100. Then, cloud server 100 generates cloud connection information based on the cloud connection switching operation and sends the cloud connection information to IoT device 200, so that IoT device 200 switches to the target cloud server address based on the cloud connection information.

[0023] User equipment 300 can be an electronic device such as a mobile phone, laptop, or tablet computer that can communicate with cloud server 100. It provides an application interface, receives user connection switching operations, and sends the connection switching operations to cloud server 100. Internet of Things (IoT) device 200 can be a smart device such as a smart air conditioner, smart washing machine, or smart TV that can communicate with cloud server 100. It receives connection information and switches to the target cloud server address based on the connection information.

[0024] like Figure 2 As shown, this application embodiment provides a cloud address switching method applied to a cloud server. The cloud server can be cloud server 100 in the above application scenario, or other cloud servers capable of executing the cloud address switching method. The cloud address switching method includes the following steps S110 and S120: Step S110: Obtain cloud connection information. Cloud connection information includes the target cloud server address that the IoT device needs to switch to.

[0025] The cloud connection information is a collection of necessary data related to IoT devices connecting to the cloud, primarily used to guide IoT devices in switching their cloud connection addresses. This information includes the target cloud server address the IoT device needs to switch to, and the communication protocol type of the target cloud server. For example, the target cloud server address could be "http: / / 192.168.1.5 / register" or "http: / / 192.168.1.5 / login". The communication protocol type of the target cloud server could be a protocol such as MQTT.

[0026] Specifically, cloud information can be generated by receiving configuration files from external systems, such as batch configuration files uploaded to cloud servers by operations and maintenance personnel through a management platform; or, cloud information can be obtained by user devices connected to other cloud servers uploading cloud-related data.

[0027] In practical applications, the process of obtaining cloud connection information can be implemented using timed polling, such as checking for new cloud connection tasks at preset time intervals, or receiving real-time pushed cloud connection task information by subscribing to a message queue. As a preferred implementation, obtaining cloud connection information can also be triggered by listening to specific events, such as automatically obtaining the corresponding cloud connection information when a cloud platform migration completion event or a network policy change event is detected.

[0028] In some embodiments, step S110, obtaining cloud connection information, includes: receiving a cloud connection switching operation sent by a user equipment; and generating cloud connection information based on the cloud connection switching operation.

[0029] Among them, the cloud switching operation refers to the operation command initiated by the user through the user device to trigger the switching of the cloud server address.

[0030] Specifically, the cloud connection switching operation can be implemented through an interactive entry point provided by the application interface on the user's device. For example, the user selects the target cloud server address in the application and confirms the submission, thereby generating the cloud connection switching operation. The purpose of this cloud connection switching operation is to enable users to remotely and proactively trigger the switching request, avoiding reliance on on-site manual intervention or firmware upgrades, thus adapting to the needs of dynamic scenarios.

[0031] Specifically, the way to generate connection information based on the connection switching operation can be by parsing the content of the connection switching operation and filling it into a preset template, or by calling the cloud configuration interface to generate it in real time.

[0032] In this embodiment, by receiving the cloud connection switching operation sent by the user equipment and generating cloud connection information based on it, the problem of low information acquisition efficiency during cloud address switching is solved. First, the cloud connection switching operation sent by the user equipment serves as a trigger condition, eliminating reliance on local firmware upgrades or manual on-site configuration during the switching process, thus improving switching response speed. Second, the process of generating cloud connection information based on the cloud connection switching operation enables dynamic adjustment of the target cloud server address, supporting rapid switching of batch devices. Through the above technical solution, the process of acquiring cloud connection information is automated and efficient, significantly improving the overall efficiency of cloud address switching.

[0033] Step S120: Send cloud connection information to the IoT device so that the IoT device switches to the target cloud server address based on the cloud connection information.

[0034] Specifically, the process of sending cloud connection information to IoT devices can be implemented using various communication protocols, such as message push mechanisms based on the MQTT (Message Queuing Telemetry Transport) protocol, or RESTful API calls via the HTTP (Hypertext Transfer Protocol) protocol. Cloud connection information can be sent continuously through a long-lived connection or immediately upon detecting an IoT device coming online. This ensures that cloud connection information is transmitted to IoT devices in a timely and accurate manner.

[0035] In some embodiments, step S120 above, which involves sending cloud connection information to an IoT device, includes: obtaining the communication status between the IoT device and the cloud server; if the communication status is online, sending cloud connection information to the IoT device; if the communication status is offline, sending cloud connection information to the IoT device upon receiving a cloud connection request instruction from the IoT device.

[0036] The communication status between IoT devices and cloud servers refers to the real-time connection status between the IoT devices and the cloud servers. This can be achieved through heartbeat detection mechanisms, network status query protocols, or proactive reporting by the devices. An "online" communication status means that the IoT devices and cloud servers are connected. An "offline" communication status means that the IoT devices and cloud servers are not connected.

[0037] Among them, the Lianyun request instruction is a request signal initiated by an IoT device to the cloud server when it changes from an offline state to an online state. Its purpose is to notify the cloud server that the device has the ability to receive information and to send a signal to request Lianyun information.

[0038] In this embodiment, the cloud server monitors the communication status between the IoT device and the cloud server in real time. When the IoT device is online, the cloud server immediately and proactively sends a connection message, thereby shortening the switching response time and improving operational efficiency. When the IoT device is offline, the cloud server waits for the IoT device to come online and triggers the sending of a connection message through a connection request command. This mechanism can adapt to the intermittent connection characteristics of IoT devices and ensures that the connection message is transmitted only when the device can receive it. Furthermore, by combining the two modes of immediate sending in online status and delayed sending in offline status, the overall switching process is more flexible and reliable.

[0039] In some embodiments, after performing step S120 and sending the connection information to the IoT device, the connection address switching method further includes: obtaining the switching result returned by the IoT device; and updating the switching record of the IoT device based on the switching result.

[0040] The switching result serves as a marker indicating the effectiveness of the IoT device's cloud address switching operation, generating a success or failure status value through logical judgment. The switching result includes successful and failed cloud address switching. In some embodiments, the switching result may also include information such as the IoT device's current cloud address and current cloud type.

[0041] Specifically, obtaining the switching results returned by IoT devices refers to receiving status data fed back by IoT devices through communication protocols, which can be achieved using HTTP responses, MQTT message acknowledgments, or custom protocol formats.

[0042] Specifically, updating the switching records of IoT devices based on the switching results can be achieved by writing the received switching status information into a database or log system. This can be done through relational database operations, NoSQL storage, or distributed log systems, aiming to dynamically maintain the historical switching data of the devices and provide a reliable basis for subsequent operation and maintenance.

[0043] In practical applications, users can send a request to the cloud server through their user devices to view the switching records of IoT devices. After receiving the request, the cloud server will send the switching records of IoT devices to the user devices, so that users can obtain the switching records of IoT devices at any time to determine the cloud connection status of IoT devices.

[0044] In this embodiment, the cloud server relies on the actual response data of IoT devices to obtain handover results, rather than based on preset assumptions or external speculation, thereby effectively identifying abnormal scenarios such as communication interruptions and device failures. Simultaneously, updating the handover record based on the obtained handover results not only ensures that the recorded content is synchronized with the actual state of the IoT devices but also provides accurate data support for subsequent fault analysis and batch management decisions. In summary, the cloud server can dynamically track the handover behavior of IoT devices and promptly detect handover failures, thereby optimizing overall operational efficiency.

[0045] In summary, this application provides a cloud address switching method applied to a cloud server. The cloud server actively acquires and sends target cloud server address information, enabling IoT devices to automatically complete address switching. In the cloud information acquisition stage, the cloud server centrally acquires cloud information containing the target cloud server address, ensuring unified management and timely distribution of switching information, eliminating the need for devices to generate or query addresses themselves. Therefore, by actively acquiring and sending target cloud server address information, IoT devices can automatically complete address switching, avoiding the cumbersome process of manual configuration or local firmware upgrades, improving switching response speed and batch operation efficiency, and thus solving the problems of slow response and low efficiency in traditional methods.

[0046] like Figure 3 As shown in the illustration, this application also provides a cloud address switching method applied to an IoT device. The IoT device can be the IoT device 200 in the above application scenario, or other IoT devices capable of executing the cloud address switching method described in the following embodiments. The cloud address switching method includes the following steps S210 and S220: Step S210: Receive the cloud connection information sent by the cloud server.

[0047] Among them, Lianyun Information includes the target cloud server address that IoT devices need to switch to.

[0048] Specifically, the cloud connection information contains a set of necessary data related to IoT devices connecting to the cloud, primarily used to guide IoT devices in switching their cloud connection addresses. This information includes the target cloud server address that the IoT device needs to switch to, and the communication protocol type of the target cloud server. For example, the target cloud server address could be "http: / / 192.168.1.5 / register" or "http: / / 192.168.1.5 / login". The communication protocol type of the target cloud server could be a protocol type such as MQTT.

[0049] Specifically, the process of receiving cloud information sent by the cloud server can be implemented using various types of communication protocols, such as message push mechanisms based on the MQTT (Message Queuing Telemetry Transport) protocol, or RESTful interface calls via the HTTP (Hypertext Transfer Protocol) protocol, etc.

[0050] In some embodiments, step S210, receiving cloud connection information sent by the cloud server, includes: obtaining the communication status between the IoT device and the cloud server; if the communication status is online, receiving cloud connection information sent by the cloud server; if the communication status is offline, sending a cloud connection request instruction to the cloud server when the communication status changes to online, and receiving cloud connection information sent by the cloud server based on the cloud connection request instruction.

[0051] The communication status between IoT devices and cloud servers refers to the real-time connection status between IoT devices and cloud servers, which can be achieved through heartbeat detection mechanisms, network status query protocols, or device-initiated reporting.

[0052] Among them, the Lianyun request instruction is a request signal initiated by an IoT device to the cloud server when it changes from an offline state to an online state. Its purpose is to notify the cloud server that the device has the ability to receive information and to send a signal to request Lianyun information.

[0053] In this embodiment, the IoT device monitors its communication status with the cloud server in real time. When an online status is detected, the IoT device waits for connection information from the cloud server and receives the connection information when the cloud server sends it, ensuring the immediacy of information transmission. When the IoT device is offline, it automatically triggers a connection request command when it transitions from offline to online. This proactive request mechanism improves the reliability of information acquisition compared to a passive waiting approach. In summary, the IoT device can flexibly adjust its connection information reception strategy based on real-time network conditions, resolving the handover interruption problem caused by device offline status and improving the efficiency and reliability of connection address switching.

[0054] Step S220: Switch to the target cloud server address based on the cloud connection information.

[0055] Specifically, by switching to the target cloud server address based on the cloud connection information, IoT devices can establish a communication connection with the target server using the target cloud server address without intermediate conversion steps or external intervention. This switching mechanism not only simplifies the operation process, but also ensures that multiple devices can synchronously and efficiently complete the switching of cloud addresses in batch scenarios.

[0056] In some embodiments, after performing step S220 and switching to the target cloud server address based on the cloud connection information, the cloud connection address switching method further includes: obtaining the communication status between the IoT device and the target cloud server corresponding to the target cloud server address; if the communication status is online, determining that the switching result is a successful cloud connection address switch; if the communication status is offline, the IoT device switches to the original cloud address and determining that the switching result is a failed cloud connection address switch; and sending the switching result to the cloud server.

[0057] The communication status between the IoT device and the target cloud server corresponding to the target cloud server address refers to the real-time connection status between the IoT device and the target cloud server. This can be achieved through heartbeat detection mechanisms, network status query protocols, or proactive reporting by the device. An "online" communication status means the IoT device and the target cloud server are connected. An "offline" communication status means the IoT device and the target cloud server are not connected.

[0058] The switching result serves as a marker indicating the effectiveness of the IoT device's cloud address switching operation, generating a success or failure status value through logical judgment. The switching result includes successful and failed cloud address switching. In some embodiments, the switching result may also include information such as the IoT device's current cloud address and current cloud type.

[0059] Specifically, after switching to the target cloud server address based on the connection information, the IoT device first obtains the communication status between the IoT device and the target cloud server. If the communication status is online, the IoT device determines that the connection address switch was successful and sends the switch result back to the cloud server to update the device's switch record. If the communication status is offline, the IoT device switches back to the original cloud address, determines that the connection address switch failed, and sends the switch result back to the cloud server. This process provides the cloud server with dynamic management basis through a feedback mechanism. In addition, the above solution solves the service interruption problem caused by the unavailability of the target cloud server or other reasons by introducing status verification and automatic recovery logic, while improving the robustness and efficiency of the connection address switch.

[0060] In summary, this application provides a cloud connection address switching method applied to IoT devices. The IoT device receives cloud connection information sent by a cloud server and switches to the target cloud server address based on this information, enabling the IoT device to automatically complete the address switch. Through unified management and timely distribution of cloud connection information, the IoT device does not need to generate or query addresses itself, nor does it require manual switching. Therefore, by receiving cloud connection information from the cloud server, the IoT device can automatically complete the address switch, avoiding the cumbersome process of on-site manual configuration or local firmware upgrades, improving switching response speed and batch operation efficiency, thus solving the problems of slow response and low efficiency in traditional methods.

[0061] To facilitate better implementation of the cloud address switching method provided in this application (applied to cloud servers), this application also provides a cloud address switching device 400 based on the above-described cloud address switching method. The meanings of the terms used are the same as in the cloud address switching method described above, and specific implementation details can be found in the descriptions within the method embodiments.

[0062] like Figure 4 As shown, the cloud address switching device 400 is applied to a cloud server, and the cloud address switching device 400 includes: The information acquisition module 401 is used to acquire cloud connection information. This cloud connection information includes the target cloud server address that the IoT device needs to switch to.

[0063] The information sending module 402 is used to send cloud connection information to IoT devices so that the IoT devices can switch to the target cloud server address based on the cloud connection information.

[0064] In some embodiments, the information sending module 402 is specifically used to: obtain the communication status between the IoT device and the cloud server; if the communication status is online, send cloud connection information to the IoT device; if the communication status is offline, send cloud connection information to the IoT device when receiving a cloud connection request instruction from the IoT device.

[0065] In some embodiments, after sending the cloud connection information to the IoT device, the cloud connection address switching device 400 further includes: The result acquisition module is used to acquire the switching results returned by the IoT device; The record update module is used to update the handover records of IoT devices based on the handover results.

[0066] In some embodiments, the information acquisition module 401 is specifically used to: receive a connection-to-cloud switching operation sent by a user equipment; and generate connection-to-cloud information based on the connection-to-cloud switching operation.

[0067] To facilitate better implementation of the Lianyun address switching method provided in this application (applied to IoT devices), this application also provides a Lianyun address switching device 500 based on the above-described Lianyun address switching method. The meanings of the terms used are the same as in the above-described Lianyun address switching method, and specific implementation details can be found in the descriptions in the method embodiments.

[0068] like Figure 5 As shown, the cloud address switching device 500 is applied to IoT devices, and the cloud address switching device 500 includes: The information receiving module 501 is used to receive cloud connection information sent by the cloud server; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; Address switching module 502 is used to switch to the target cloud server address based on the cloud information.

[0069] In some embodiments, the information receiving module 501 is specifically used to: obtain the communication status between the IoT device and the cloud server; if the communication status is online, receive the cloud connection information sent by the cloud server; if the communication status is offline, send a cloud connection request instruction to the cloud server when the communication status changes to online, and receive the cloud connection information sent by the cloud server based on the cloud connection request instruction.

[0070] In some embodiments, after switching to the target cloud server address based on the cloud connection information, the address switching module 502 is further configured to: obtain the communication status between the IoT device and the target cloud server corresponding to the target cloud server address; if the communication status is online, determine that the switching result is a successful cloud connection address switch; if the communication status is offline, the IoT device switches to the original cloud address and determines that the switching result is a failed cloud connection address switch; and send the switching result to the cloud server.

[0071] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0072] Furthermore, this application embodiment also provides a cloud server, which may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the cloud address switching method described in this application embodiment (applied to a cloud server). For example, the processor in the cloud server may: obtain cloud connection information; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; and send the cloud connection information to the IoT device so that the IoT device switches to the target cloud server address based on the cloud connection information.

[0073] Furthermore, this application also provides an Internet of Things (IoT) device, which may include: a memory storing a computer program; and a processor that reads the computer program stored in the memory to execute the cloud address switching method described in this application (applied to the IoT device). For example, the processor in the IoT device may: receive cloud connection information sent by a cloud server; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; and switch to the target cloud server address based on the cloud connection information.

[0074] This application also provides a computer device that integrates any of the Lianyungang address switching devices provided in this application. For example... Figure 6 As shown, it illustrates a structural schematic diagram of the computer device involved in the embodiments of this application, specifically: The computer device may include components such as a processor 801 with one or more processing cores, a memory 802 with one or more computer-readable storage media, a power supply 803, and an input unit 804. Those skilled in the art will understand that... Figure 6 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 801 is the control center of the computer device. It connects various parts of the computer device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 802, and by calling data stored in the memory 802, it performs various functions of the computer device and processes data, thereby providing overall monitoring of the computer device. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 801.

[0075] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.

[0076] The computer device also includes a power supply 803 that supplies power to the various components. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 803 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0077] The computer device may also include an input unit 804, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0078] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 801 in the computer device loads the executable files corresponding to the processes of one or more applications into the memory 802 according to the following instructions, and the processor 801 runs the applications stored in the memory 802 to realize various functions to execute the steps in any of the cloud address switching methods provided in the embodiments of this application. For example: obtaining cloud information; the cloud information includes the target cloud server address that the IoT device needs to switch to; sending the cloud information to the IoT device so that the IoT device switches to the target cloud server address based on the cloud information. Another example: receiving cloud information sent by the cloud server; the cloud information includes the target cloud server address that the IoT device needs to switch to; switching to the target cloud server address based on the cloud information.

[0079] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0080] To this end, embodiments of this application provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a disk, or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the cloud address switching methods provided in embodiments of this application. For example: obtaining cloud connection information; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; sending the cloud connection information to the IoT device, so that the IoT device switches to the target cloud server address based on the cloud connection information. Another example: receiving cloud connection information sent by a cloud server; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; switching to the target cloud server address based on the cloud connection information.

[0081] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.

[0082] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.

[0083] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0084] The above provides a detailed description of a cloud address switching method, apparatus, cloud server, and IoT device provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for switching network addresses in Lianyungang, characterized in that, Applied to cloud servers, the cloud address switching method includes: Obtain cloud connection information; the cloud connection information includes the target cloud server address that the IoT device needs to switch to. The cloud connection information is sent to the IoT device so that the IoT device switches to the target cloud server address based on the cloud connection information.

2. The Lianyungang address switching method according to claim 1, characterized in that, Sending the cloud connection information to the IoT device includes: Obtain the communication status between the IoT device and the cloud server; If the communication status is online, send the cloud connection information to the IoT device; If the communication status is offline, the cloud connection information is sent to the IoT device when the cloud connection request instruction is received from the IoT device.

3. The Lianyungang address switching method according to claim 1, characterized in that, After sending the cloud connection information to the IoT device, the cloud connection address switching method further includes: Obtain the switching result returned by the IoT device; The switching record of the IoT device is updated based on the switching result.

4. The Lianyungang address switching method according to claim 1, characterized in that, The acquisition of Lianyungang information includes: Receive cloud handover commands sent by user equipment; The Lianyun information is generated based on the Lianyun switching operation.

5. A method for switching network addresses, characterized in that, The cloud address switching method, applied to Internet of Things (IoT) devices, includes: Receive cloud connection information sent by the cloud server; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; Based on the Lianyun information, the connection is switched to the target cloud server address.

6. The Lianyungang address switching method according to claim 5, characterized in that, The cloud connection information received from the cloud server includes: Obtain the communication status between the IoT device and the cloud server; If the communication status is online, receive the cloud connection information sent by the cloud server; If the communication status is offline, when the communication status changes to online, a connection request instruction is sent to the cloud server, and connection information is received from the cloud server based on the connection request instruction.

7. The Lianyungang address switching method according to claim 5, characterized in that, After switching to the target cloud server address based on the cloud connection information, the process includes: Obtain the communication status between the IoT device and the target cloud server corresponding to the target cloud server address; If the communication status is online, the switching result is determined to be a successful Lianyun address switch; If the communication status is offline, the IoT device switches to the original cloud address, and the switching result is determined to be a cloud address switching failure. The switching result is sent to the cloud server.

8. A Lianyungang address switching device, characterized in that, The device, applied to a cloud server, includes: The information acquisition module is used to acquire cloud connection information; the cloud connection information includes the target cloud server address that the IoT device needs to switch to; The information sending module is used to send the cloud connection information to the IoT device, so that the IoT device switches to the target cloud server address based on the cloud connection information.

9. A cloud server, characterized in that, include: Memory, which stores computer programs; A processor reads a computer program stored in memory to execute the method described in any one of claims 1 to 4.

10. An Internet of Things (IoT) device, characterized in that, include: Memory, which stores computer programs; A processor reads a computer program stored in memory to perform the method described in any one of claims 5 to 7.