Intelligent cloud box access method and device, equipment and storage medium
By setting a QR code on the smart cloud box, users can obtain the access address by scanning it with their terminals, which solves the problem that mobile phones without NFC function cannot access the smart cloud box, and realizes a low-cost and high-user-experience access method.
Patent Information
- Application Number
- CN202310791564.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2043-06-29
AI Technical Summary
In existing technologies, smart cloud boxes cannot be accessed by mobile phones without NFC functionality, resulting in high access complexity and a poor user experience.
By setting a QR code on the smart cloud box, after the user terminal scans the QR code, the Internet server provides intranet and extranet access addresses based on the mapping relationship between device identifier and address. The user terminal can access the smart cloud box without configuring an NFC module.
It enables a simple and convenient way to access the smart cloud box, reducing costs and improving user experience.
Smart Images

Figure CN116668402B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to a smart cloud box access method, device, equipment and storage medium. Background Technology
[0002] A smart cloud box, also known as a smart box or multi-functional gateway box, is an intermediate device between the sensor network layer and the transmission network layer. It is a key device in IoT applications, responsible for converting and collecting various external sensor data. This data is then gathered and processed, transmitted to the internet cloud service platform via various network interfaces, and managed according to the required control actions. Without it, sensor data cannot be delivered to the designated location, and the Internet of Things (IoT) would cease to exist. The application of smart cloud boxes can be divided into two main industries: the IoT industry and the mass-market smart home industry, including consumer-grade smart home gateway cloud boxes and commercial-grade IoT smart cloud boxes.
[0003] In related technologies, the smart cloud box, as a home cloud box, prioritizes user experience and needs to reduce the complexity of configuration and use, allowing even beginners to use it immediately. Currently, some devices are complex to configure, requiring some experience in internet technology product management and maintenance. To address this issue, a Near Field Communication (NFC) module is built into the smart cloud box, enabling automatic connection when an NFC-enabled mobile phone is brought near the box.
[0004] However, existing technology cannot enable access to the smart cloud box for mobile phones without NFC functionality, and accessing the smart cloud box is highly complex and results in a poor user experience. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for accessing a smart cloud box, in order to solve the technical problems of existing technologies that prevent access to the smart cloud box for mobile phones without NFC functionality, and that the access to the smart cloud box is highly complex and results in a poor user experience.
[0006] Firstly, this application provides a smart cloud box access method, applied to an internet server, the method comprising:
[0007] In response to the user terminal's access operation, based on the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, and the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, the intranet access address and the extranet access address corresponding to the device identifier in the access operation are queried. The access operation is initiated by the user terminal by scanning the QR code on the smart cloud box, and the QR code includes the smart cloud box's device identifier and the URL information of the Internet server.
[0008] The intranet access address and the extranet access address are sent to the user terminal so that the user terminal can access the smart cloud box and establish a connection with the smart cloud box based on the intranet access address and the extranet access address.
[0009] This application provides a simple and convenient method for accessing a smart cloud box. The user terminal does not need to be configured with an NFC module; it only needs to scan the QR code on the smart cloud box to access the internet server. The internet server can then query a pre-stored mapping relationship between device identifiers and addresses based on the device identifier of the smart cloud box carried in the user terminal's access request. This provides the user with the corresponding intranet and extranet access addresses. The user terminal can then access the smart cloud box through these addresses, eliminating the need for a dedicated NFC module on the user terminal. This method is low-cost, simple, and improves the user experience.
[0010] Optionally, before responding to the access operation of the user terminal by mapping the device identifier of the smart cloud box to the intranet Internet Protocol address and the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address, the method further includes:
[0011] In response to the connection operation of the smart cloud box after it is powered on and connected to the home cloud gateway, the mapping relationship between the device identifier and the intranet Internet Protocol address of the smart cloud box is obtained; according to the message of the home cloud gateway, the source Internet Protocol address and the source port number are extracted, and the source Internet Protocol address is mapped with the device identifier; the external network access address of the smart cloud box is determined according to the mapping result.
[0012] In this application, after the smart cloud box is connected to the home cloud gateway and powered on, it can automatically send the device identifier and the intranet Internet Protocol (IP) address to the Internet server. The Internet server automatically obtains the mapping relationship between the smart cloud box's device identifier and the intranet IP address, and determines the mapping relationship between the smart cloud box's device identifier and the source IP address based on the messages from the home cloud gateway. After determining the above mapping relationship, the Internet server can directly establish a connection between the smart cloud box's device identifier and the access address. When the user terminal accesses the Internet server with the smart cloud box's device identifier, the server automatically queries and sends the access address to the user terminal, thereby enabling simple and convenient access to the smart cloud box and improving the user experience.
[0013] Optionally, after sending the intranet access address and the extranet access address to the user terminal, the method further includes:
[0014] Receive heartbeat messages sent by the smart cloud box; determine the online status of the smart cloud box based on the heartbeat messages.
[0015] Optionally, determining the online status of the smart cloud box based on the heartbeat message includes:
[0016] If no heartbeat message is received from the smart cloud box within the preset update time, the smart cloud box is determined to be offline.
[0017] Optionally, after determining that the smart cloud box is offline if no heartbeat message is received from the smart cloud box within a preset update time, the method further includes:
[0018] Delete the mapping relationship between the device identifier and the intranet Internet Protocol address of the smart cloud box, as well as the mapping relationship between the device identifier and the source Internet Protocol address of the smart cloud box.
[0019] Here, the Internet server of this application can also receive heartbeat messages sent by the smart cloud box and determine the online status of the smart cloud box. Based on this status, it can determine whether to retain the mapping relationship between the smart cloud box's device identifier and access address, so as to save storage space, improve access efficiency, and further improve the user experience.
[0020] Secondly, this application provides a smart cloud box access method, applied to a smart cloud box, the method comprising:
[0021] The system receives access requests from user terminals based on the intranet access address and the extranet access address, and establishes a connection with the user terminal. The intranet access address and the extranet access address are determined by the internet server in response to the user terminal's access operation. The server queries the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, as well as the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, to find the corresponding intranet access address and extranet access address in the access operation, and then sends them to the user terminal. The access operation is initiated by the user terminal by scanning a QR code on the smart cloud box, and the QR code includes the smart cloud box's device identifier and the internet server's URL information.
[0022] The smart cloud box access method provided in this application only requires setting a QR code on the smart cloud box. The user terminal can access the smart cloud box through the QR code without adding any additional hardware, saving costs. The access method is simple and fast, improving the user experience.
[0023] Thirdly, this application provides a smart cloud box access device for use with an internet server, the device comprising:
[0024] The query module is used to respond to the access operation of the user terminal. Based on the mapping relationship between the device identifier of the smart cloud box and the intranet Internet Protocol address, and the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address, the module queries the intranet access address and the extranet access address corresponding to the device identifier in the access operation. The access operation is initiated by the user terminal by scanning the QR code on the smart cloud box. The QR code includes the device identifier of the smart cloud box and the URL information of the Internet server.
[0025] The sending module is used to send the intranet access address and the extranet access address to the user terminal, so that the user terminal can access the smart cloud box and establish a connection with the smart cloud box according to the intranet access address and the extranet access address.
[0026] Optionally, before the query module determines the mapping relationship between the device identifier of the smart cloud box and the Internet Protocol address of the intranet, and the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address in response to the access operation of the user terminal, the above-mentioned device further includes a mapping relationship determination module, used for:
[0027] In response to the connection operation of the smart cloud box after it is powered on and connected to the home cloud gateway, the mapping relationship between the device identifier of the smart cloud box and the Internet Protocol address of the intranet is obtained;
[0028] Based on the message from the home cloud gateway, the source Internet Protocol address and source port number are extracted, and the source Internet Protocol address is mapped to the device identifier. The external network access address of the smart cloud box is determined based on the mapping result.
[0029] Optionally, after the sending module sends the intranet access address and the extranet access address to the user terminal, the above device further includes an online status determination module, used for:
[0030] Receive heartbeat messages sent by the smart cloud box;
[0031] The online status of the smart cloud box is determined based on the heartbeat message.
[0032] Optionally, the online status determination module is specifically used for:
[0033] If no heartbeat message is received from the smart cloud box within the preset update time, the smart cloud box is determined to be offline.
[0034] Optionally, after the online status determination module determines that the smart cloud box is offline if it does not receive a heartbeat message from the smart cloud box within a preset update time, the above device further includes a deletion module, used for:
[0035] Delete the mapping relationship between the device identifier and the intranet Internet Protocol address of the smart cloud box, as well as the mapping relationship between the device identifier and the source Internet Protocol address of the smart cloud box.
[0036] Fourthly, this application provides a smart cloud box access device, applied to a smart cloud box, the device comprising:
[0037] The connection module is used to receive access requests from user terminals based on the intranet access address and the extranet access address, and to establish a connection with the user terminal. The intranet access address and the extranet access address are determined by the internet server in response to the user terminal's access operation. The server queries the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, as well as the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, to find the intranet access address and the extranet access address corresponding to the device identifier in the access operation, and then sends them to the user terminal. The access operation is initiated by the user terminal by scanning a QR code on the smart cloud box, and the QR code includes the smart cloud box's device identifier and the internet server's URL information.
[0038] Fifthly, this application provides a smart cloud box access device, comprising: at least one processor and a memory;
[0039] The memory stores computer-executed instructions;
[0040] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the smart cloud box access method as described in the first aspect and various possible designs of the first aspect.
[0041] Sixthly, this application provides a smart cloud box access device, including: at least one processor and a memory;
[0042] The memory stores computer-executed instructions;
[0043] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the smart cloud box access method as described in the second aspect above and various possible designs of the second aspect.
[0044] In a seventh aspect, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the smart cloud box access method described in the first aspect and various possible designs of the first aspect.
[0045] Eighthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the smart cloud box access method described in the second aspect above and various possible designs of the second aspect.
[0046] Ninthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the smart cloud box access method as described in the first aspect and various possible designs of the first aspect.
[0047] In a tenth aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the smart cloud box access method as described in the second aspect above and various possible designs of the second aspect.
[0048] The smart cloud box access method, apparatus, device, and storage medium provided in this application allow user terminals to access an internet server simply by scanning a QR code on the smart cloud box. The internet server can then query a pre-stored mapping relationship between device identifiers and addresses based on the device identifier of the smart cloud box carried in the user terminal's access request. This provides the user with the intranet access address and extranet access address corresponding to the device identifier. The user terminal can access the smart cloud box through the intranet access address and extranet access address corresponding to the device identifier. This eliminates the need to configure an NFC module on the user terminal, resulting in low cost, a simple smart cloud box access method, and improved user experience. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application 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 of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 A schematic diagram of an intelligent cloud box access system architecture provided in this application embodiment;
[0051] Figure 2 A flowchart illustrating a smart cloud box access method provided in an embodiment of this application;
[0052] Figure 3 A flowchart illustrating another smart cloud box access method provided in an embodiment of this application;
[0053] Figure 4 This is a schematic diagram of the structure of a smart cloud box access device provided in an embodiment of this application;
[0054] Figure 5 This is a schematic diagram of the structure of a smart cloud box access device provided in an embodiment of this application.
[0055] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0057] The terms “first,” “second,” “third,” and “fourth,” etc. (if present), in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0058] 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0059] Cloud computing is based on open collaboration among cloud service providers. Through deep integration of multi-party cloud resources, it allows developers to customize cloud services using a "software-defined" approach, creating cloud value and realizing a new generation of cloud computing models characterized by "borderless services, inter-cloud collaboration, easy resource sharing, and convertible value." The smart cloud box is a product of cloud computing, especially in the mass-market smart home industry, where it provides convenience. As a smart cloud box, user experience is paramount; it needs to reduce configuration and usage complexity, allowing even beginners to use it immediately. Currently, some devices are complex to configure, requiring some experience in internet technology product management and maintenance. To address this issue, a near-field communication (NFC) module is built into the smart cloud box. By bringing an NFC-enabled phone close to the box, automatic connection is established. Existing technology cannot access the smart cloud box for phones without NFC functionality, resulting in high complexity and a poor user experience.
[0060] To address the aforementioned technical issues, this application provides a method, apparatus, device, and storage medium for accessing a smart cloud box. This method eliminates the need for an NFC module on the user terminal; instead, the user terminal simply scans the QR code on the smart cloud box to access the internet server. The internet server can then query a pre-stored mapping relationship between device identifiers and addresses based on the device identifier of the smart cloud box carried in the user terminal's access request. This provides the user with the intranet and extranet access addresses corresponding to the device identifier. The user terminal can then access the smart cloud box through these intranet and extranet access addresses.
[0061] Optionally, Figure 1 This is a schematic diagram of an intelligent cloud box access system architecture provided in an embodiment of this application. Figure 1 As shown, the above architecture includes: Internet server 101, smart cloud box 102, user terminal 103 and home cloud gateway 104.
[0062] Among them, the Internet server 101 and the smart cloud box 102 can establish a connection through the home cloud gateway 104.
[0063] User terminals can access internet servers through applications (APPs) or web pages.
[0064] Optionally, the outer box of the smart cloud box 102 is equipped with a QR code, which can be either movable or fixedly installed on the smart cloud box.
[0065] It is understandable that the quantity and specific structure of the aforementioned Internet server 101, smart cloud box 102, user terminal 103, and home cloud gateway 104 can be determined according to the actual situation. Figure 1 This is merely illustrative; the embodiments in this application do not impose a specific limitation on the number of nodes mentioned above.
[0066] It is understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the architecture of the smart cloud box access system. In other feasible embodiments of this application, the above architecture may include more or fewer components than illustrated, or combine some components, or split some components, or arrange different components, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown can be implemented in hardware, software, or a combination of both.
[0067] Furthermore, the network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0068] The technical solutions of this application are described below using several embodiments as examples. The same or similar concepts or processes may not be repeated in some embodiments.
[0069] Figure 2 This is a flowchart illustrating a smart cloud box access method provided in an embodiment of this application. The executing entity in this embodiment is an internet server, but the specific executing entity can be determined based on the actual application scenario. For example... Figure 2 As shown, the method includes the following steps:
[0070] S201: In response to the user terminal's access operation, based on the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, and the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, query the intranet access address and the extranet access address corresponding to the device identifier in the access operation.
[0071] The access operation is initiated by the user terminal by scanning the QR code on the smart cloud box. The QR code includes the device identifier of the smart cloud box and the URL information of the Internet server.
[0072] Optionally, each smart cloud box corresponds to a device identifier, which can be randomly generated at the factory.
[0073] Alternatively, the QR code can be generated at the factory based on the device identifier and the URL of the internet server.
[0074] Optionally, the QR code can be pasted or printed on the smart cloud box.
[0075] Optionally, the QR code can be repositioned on the smart cloud box for easy replacement, increasing flexibility.
[0076] Optionally, before responding to an access operation from a user terminal and mapping the smart cloud box's device identifier to the intranet Internet Protocol (IP) address and the smart cloud box's device identifier to the source IP address, the method further includes:
[0077] In response to the connection operation of the smart cloud box after it is powered on and connected to the home cloud gateway, the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address is obtained; based on the message from the home cloud gateway, the source Internet Protocol address and source port number are extracted, and the source Internet Protocol address is mapped to the device identifier; based on the mapping result, the external network access address of the smart cloud box is determined.
[0078] In this embodiment, after the smart cloud box is connected to the home cloud gateway and powered on, it can automatically send its device identifier and intranet Internet Protocol (IP) address to the Internet server. The Internet server automatically obtains the mapping relationship between the smart cloud box's device identifier and the intranet IP address, and determines the mapping relationship between the smart cloud box's device identifier and the source IP address based on the messages from the home cloud gateway. After determining the above mapping relationship, the Internet server can directly establish a connection between the smart cloud box's device identifier and the access address. When a user terminal accesses the Internet server carrying the smart cloud box's device identifier, the server automatically queries and sends the access address to the user terminal, thereby enabling simple and convenient access to the smart cloud box and improving the user experience.
[0079] S202: Send the intranet access address and the extranet access address to the user terminal so that the user terminal can access the smart cloud box and establish a connection with the smart cloud box based on the intranet access address and the extranet access address.
[0080] Optionally, after sending the intranet access address and the extranet access address to the user terminal, the method further includes: receiving a heartbeat message sent by the smart cloud box; and determining the online status of the smart cloud box based on the heartbeat message.
[0081] Optionally, the online status of the smart cloud box can be determined based on heartbeat messages, including:
[0082] If no heartbeat message is received from the smart cloud box within the preset update time, the smart cloud box is determined to be offline.
[0083] Optionally, after determining that the smart cloud box is offline if no heartbeat message is received from the smart cloud box within a preset update time, the method further includes:
[0084] Remove the mapping relationship between the device identifier of the smart cloud box and the Internet Protocol address of the intranet, as well as the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address.
[0085] Here, in this embodiment of the application, the Internet server can also receive heartbeat messages sent by the smart cloud box and determine the online status of the smart cloud box, thereby determining whether to retain the mapping relationship between the smart cloud box's device identifier and access address based on the status, so as to save storage space, improve access efficiency, and further improve the user experience.
[0086] Optionally, if it is determined that the smart cloud box is offline, a prompt message is sent to the user terminal to notify the user that the device is offline, further improving the user experience.
[0087] This application provides a simple and convenient method for accessing a smart cloud box. The user terminal does not need to be configured with an NFC module; it only needs to scan the QR code on the smart cloud box to access the internet server. The internet server can query a pre-stored mapping relationship between device identifiers and addresses based on the device identifier of the smart cloud box carried in the user terminal's access request, providing the user with the intranet and extranet access addresses corresponding to the device identifier. The user terminal can access the smart cloud box through these addresses, eliminating the need for a dedicated NFC module on the user terminal. This method is low-cost, simple, and improves the user experience.
[0088] Figure 3 This is a flowchart illustrating another smart cloud box access method provided in an embodiment of this application. The execution entity in this embodiment is the smart cloud box, and the specific execution entity can be determined according to the actual application scenario. For example... Figure 3 As shown, the method includes the following steps:
[0089] S301: Receive access from the user terminal based on the intranet access address and the extranet access address, and establish a connection with the user terminal.
[0090] The internal network access address and external network access address are sent to the user terminal by the Internet server in response to the user terminal's access operation. The Internet server queries the mapping relationship between the smart cloud box's device identifier and the internal network Internet Protocol address, as well as the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, to find the internal network access address and external network access address corresponding to the device identifier in the access operation. The access operation is initiated by the user terminal by scanning the QR code on the smart cloud box. The QR code includes the smart cloud box's device identifier and the Internet server's URL information.
[0091] Optionally, the smart cloud box can also connect to the home cloud gateway after powering on, automatically obtaining an Internet Protocol (IP) address and automatically connecting to an internet server.
[0092] Optionally, the smart cloud box can also maintain regular communication with the internet server, for example, by periodically sending a heartbeat message to ensure that it is always online, so that the mapping relationship between the home cloud gateway's internal network address and external network address can be saved for a long time.
[0093] In one possible implementation, the specific steps for accessing the smart cloud box are as follows:
[0094] Step 1: Before the smart cloud box leaves the factory, a unique device identifier is set, and a QR code containing an external network address and device identifier is affixed to the outer shell of the smart cloud box. An instruction can be added to the smart cloud box stating that users can access the device by scanning the code through a browser or application. For example, the QR code may contain information such as www.pu***oud.com and device identifier 15***00.
[0095] Step 2: When the smart cloud box is connected to the home cloud gateway and powered on, it automatically obtains an internal network IP address, for example, 192.***.3.126. Then, it automatically connects to the internet server at www.pu***oud.com and submits the mapping relationship between the device identifier and the IP address: 15***00:192.***.3.126.
[0096] Step 3: The Internet server automatically extracts the source IP address and source port number from the packets from the home cloud gateway, such as 202.112.***.111:10223, and maps this address to 15***00 as the external network access address of the smart cloud box.
[0097] Step 4: When a home user wants to access the smart cloud box from the internet, they can open a browser or app to scan the QR code on the smart cloud box. The system will automatically extract the website address www.pu***oud.com from the QR code, connect to the internet server, and submit the device identification information 15***00 to the internet server.
[0098] Step 4: Based on the mapping relationship between device identifier and IP address, the internet server queries the IP address information corresponding to device identifier 15***00 as follows: internal network address is 192.168.3.226, external network address is 202.112.***.111:10223, and returns it to the user's browser or application APP. If the browser or application APP is on the external network, it will automatically redirect to access the external network address 202.112.***.111:10223.
[0099] Step 5: To prevent the address from becoming invalid over time, the smart cloud box needs to maintain regular communication with the internet server. For example, it needs to periodically send a heartbeat message to ensure it remains online, allowing the mapping between the home cloud gateway's internal and external network addresses to be maintained for an extended period. If a heartbeat message is not received from the smart cloud box to the internet server for a certain time threshold, the internet server considers the smart cloud box offline and deletes the mapping between the home cloud gateway's internal and external network addresses.
[0100] Figure 4 This is a schematic diagram of the structure of a smart cloud box access device provided in an embodiment of this application, applied to an Internet server, such as... Figure 4 As shown, the apparatus in this embodiment includes a query module 401 and a sending module 402. The smart cloud box access device here can be a server or a terminal device, or a chip or integrated circuit that implements the functions of a server or terminal device. It should be noted that the division between the query module 401 and the sending module 402 is only a logical functional division; physically, they can be integrated or independent.
[0101] The query module is used to respond to the user terminal's access operation. Based on the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, as well as the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, it queries the intranet access address and the extranet access address corresponding to the device identifier in the access operation. The access operation is initiated by the user terminal by scanning the QR code on the smart cloud box. The QR code includes the smart cloud box's device identifier and the URL information of the Internet server.
[0102] The sending module is used to send the intranet access address and the extranet access address to the user terminal, so that the user terminal can access the smart cloud box and establish a connection with the smart cloud box based on the intranet access address and the extranet access address.
[0103] Optionally, before the query module determines the mapping relationship between the device identifier of the smart cloud box and the Internet Protocol address of the intranet, and the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address in response to the access operation of the user terminal, the above-mentioned device further includes a mapping relationship determination module, used for:
[0104] In response to the connection operation of the smart cloud box after it is powered on and connected to the home cloud gateway, obtain the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address;
[0105] Based on the messages from the home cloud gateway, extract the source Internet Protocol address and source port number, and map the source Internet Protocol address to the device identifier. Determine the external network access address of the smart cloud box based on the mapping result.
[0106] Optionally, after the sending module sends the intranet access address and the extranet access address to the user terminal, the above device further includes an online status determination module, used for:
[0107] Receive heartbeat messages sent by the smart cloud box;
[0108] The online status of the smart cloud box is determined based on heartbeat messages.
[0109] Optionally, the online status determination module is specifically used for:
[0110] If no heartbeat message is received from the smart cloud box within the preset update time, the smart cloud box is determined to be offline.
[0111] Optionally, after the online status determination module determines that the smart cloud box is offline if no heartbeat message is received from the smart cloud box within a preset update time, the device further includes a deletion module for:
[0112] Remove the mapping relationship between the device identifier of the smart cloud box and the Internet Protocol address of the intranet, as well as the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address.
[0113] This application also provides a smart cloud box access device, applied to a smart cloud box. The device in this application includes a connection module. It should be noted that the division of the connection module is only a logical functional division; physically, the two can be integrated or independent.
[0114] The connection module is used to receive access requests from user terminals based on intranet and extranet access addresses, and to establish a connection with the user terminals. The intranet and extranet access addresses are determined by the Internet server in response to the user terminal's access operation. The server queries the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, as well as the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address, to find the corresponding intranet and extranet access addresses in the access operation, and then sends them to the user terminal. The access operation is initiated by the user terminal by scanning a QR code on the smart cloud box. The QR code includes the smart cloud box's device identifier and the Internet server's URL information.
[0115] refer to Figure 5The diagram illustrates a structural schematic of a smart cloud box access device 500 suitable for implementing embodiments of the present disclosure. The smart cloud box access device 500 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The smart cloud box access device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments disclosed herein.
[0116] like Figure 5 As shown, the smart cloud box access device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the smart cloud box access device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0117] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard drives, etc.; and communication devices 509. Communication device 509 allows the smart cloud box access device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 A smart cloud box access device 500 with various devices is shown; however, it should be understood that implementation or possession of all the devices shown is not required. More or fewer devices may be implemented alternatively.
[0118] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0119] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0120] The aforementioned computer-readable medium may be included in the aforementioned smart cloud box access device; or it may exist independently and not assembled into the smart cloud box access device.
[0121] The aforementioned computer-readable medium carries one or more programs, which, when executed by the smart cloud box access device, cause the smart cloud box access device to perform the method shown in the above embodiments.
[0122] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0123] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0124] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0125] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0126] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for accessing a smart cloud box, characterized in that, Applied to an Internet server, the method includes: Receive the device identifier and intranet Internet Protocol address sent by the smart cloud box in response to the connection operation after the smart cloud box is powered on to connect to the home cloud gateway, so as to obtain the mapping relationship between the device identifier and the intranet Internet Protocol address of the smart cloud box. Based on the message from the home cloud gateway, extract the source Internet Protocol address and source port number, and map the source Internet Protocol address to the device identifier. Determine the external network access address of the smart cloud box based on the mapping result. In response to an access operation by a user terminal, the system queries the intranet access address and extranet access address corresponding to the device identifier in the access operation based on the mapping relationship between the device identifier of the smart cloud box and the intranet Internet Protocol address, as well as the mapping relationship between the device identifier of the smart cloud box and the source Internet Protocol address. The access operation is initiated by the user terminal by scanning a QR code on the smart cloud box, and the QR code includes the device identifier of the smart cloud box and the URL information of the Internet server. The intranet access address and the extranet access address are sent to the user terminal so that the user terminal can access the smart cloud box and establish a connection with the smart cloud box based on the intranet access address and the extranet access address.
2. The method according to claim 1, characterized in that, After sending the intranet access address and the extranet access address to the user terminal, the method further includes: Receive heartbeat messages sent by the smart cloud box; The online status of the smart cloud box is determined based on the heartbeat message.
3. The method according to claim 2, characterized in that, Determining the online status of the smart cloud box based on the heartbeat message includes: If no heartbeat message is received from the smart cloud box within the preset update time, the smart cloud box is determined to be offline.
4. The method according to claim 3, characterized in that, After determining that the smart cloud box is offline if no heartbeat message is received from the smart cloud box within a preset update time, the method further includes: Delete the mapping relationship between the device identifier and the intranet Internet Protocol address of the smart cloud box, as well as the mapping relationship between the device identifier and the source Internet Protocol address of the smart cloud box.
5. A method for accessing a smart cloud box, characterized in that, Applied to a smart cloud box, the method includes: The system receives access requests from user terminals based on intranet and extranet access addresses, and establishes a connection with the user terminals. The intranet and extranet access addresses are determined by the internet server in response to the user terminal's access operation. This is done by querying the mapping relationship between the smart cloud box's device identifier and the intranet Internet Protocol address, as well as the mapping relationship between the smart cloud box's device identifier and the source Internet Protocol address. The access operation is initiated by the user terminal by scanning a QR code on the smart cloud box, and the QR code includes the smart cloud box's device identifier and the internet server's URL information. The Internet server is used to receive the device identifier and intranet Internet Protocol address sent by the smart cloud box in response to the connection operation after the smart cloud box is powered on to connect to the home cloud gateway, so as to obtain the mapping relationship between the device identifier and the intranet Internet Protocol address of the smart cloud box; and to extract the source Internet Protocol address and source port number according to the message of the home cloud gateway, and to map the source Internet Protocol address with the device identifier, and determine the external network access address of the smart cloud box according to the mapping result.
6. A smart cloud box access device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the smart cloud box access method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the smart cloud box access method as described in any one of claims 1 to 4.
8. A smart cloud box access device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the smart cloud box access method as described in claim 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the smart cloud box access method as described in claim 5.
Citation Information
Patent Citations
Equipment address obtaining method and system
CN110035135A
Remote connection method and system based on cloud service
CN112671888A