CN116744408A - Method, device, server, system and medium for accessing device to cloud server - Google Patents

Method, device, server, system and medium for accessing device to cloud server Download PDF

Info

Publication number
CN116744408A
CN116744408A CN202310622394.3A CN202310622394A CN116744408A CN 116744408 A CN116744408 A CN 116744408A CN 202310622394 A CN202310622394 A CN 202310622394A CN 116744408 A CN116744408 A CN 116744408A
Authority
CN
China
Prior art keywords
cloud server
product serial
accessed
serial number
accessing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310622394.3A
Other languages
Chinese (zh)
Inventor
徐和材
张涛
熊国香
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Rapid Innovation Technology Co ltd
Original Assignee
Shenzhen Rapid Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Rapid Innovation Technology Co ltd filed Critical Shenzhen Rapid Innovation Technology Co ltd
Priority to CN202310622394.3A priority Critical patent/CN116744408A/en
Publication of CN116744408A publication Critical patent/CN116744408A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The application is suitable for the technical field of cloud service, and provides a method, equipment, a server, a system and a medium for accessing equipment to a cloud server. The method is applied to the terminal equipment and comprises the following steps: acquiring a first product serial number of equipment to be accessed in a code scanning mode; and sending the first product serial number to the cloud server to instruct the cloud server to store the first product serial number, comparing the second product serial number with all the product serial numbers stored in the cloud server after receiving an access request carrying the second product serial number sent by the equipment to be accessed, and accessing the equipment to be accessed to the cloud server through the access request if one of the second product serial number and all the product serial numbers is consistent. According to the method for accessing the equipment to the cloud server, the first product serial number of the equipment to be accessed can be obtained through code scanning and is sent to the cloud server, the product serial number does not need to be manually input, and the efficiency of accessing the equipment to the cloud server is improved.

Description

Method, device, server, system and medium for accessing device to cloud server
Technical Field
The application belongs to the technical field of cloud services, and particularly relates to a method, equipment, a server, a system and a medium for accessing equipment to a cloud server.
Background
At present, the conventional method for accessing devices such as a wireless access point to a cloud server is as follows: the user inputs a product serial number of the equipment to be accessed on a preset webpage so as to add the equipment to be accessed to the cloud server. As can be seen, the current method for accessing the cloud server by the device requires the user to manually input the product serial number of the device to be accessed, which results in lower efficiency of accessing the cloud server by the device.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a method, an apparatus, a server, a system and a medium for accessing an apparatus to a cloud server, so as to solve the technical problem that the existing apparatus has low efficiency of accessing the cloud server.
In a first aspect, an embodiment of the present application provides a method for accessing a device to a cloud server, which is applied to a terminal device, where the method includes:
acquiring a first product serial number of equipment to be accessed in a code scanning mode;
and sending the first product serial number to a cloud server to instruct the cloud server to store the first product serial number, comparing the second product serial number with all the stored product serial numbers of the cloud server after receiving an access request carrying the second product serial number sent by the equipment to be accessed, and accessing the equipment to be accessed to the cloud server through the access request if one of the second product serial number and all the product serial numbers is consistent.
Optionally, the obtaining the first product serial number of the device to be accessed by the code scanning method includes:
and acquiring the first product serial number by scanning the bar code attached to the surface of the equipment to be accessed.
In a second aspect, another embodiment of the present application provides a method for accessing a device to a cloud server, where the method is applied to the cloud server, and the method includes:
after receiving an access request carrying a second product serial number sent by equipment to be accessed, comparing the second product serial number with all product serial numbers stored by the cloud server; all the product serial numbers stored by the cloud server are obtained by a terminal device in a code scanning mode and are sent to the cloud server;
and if the second product serial number is consistent with one of the product serial numbers, accessing the equipment to be accessed to the cloud server through the access request.
Optionally, if the comparison between the second product serial number and one of the all product serial numbers is consistent, the accessing the device to be accessed to the cloud server through the access request includes:
if the second product serial number is consistent with one of the product serial numbers, determining a third product serial number which is consistent with the second product serial number in comparison in all the product serial numbers;
determining a target terminal device for sending the third product serial number to the cloud server;
acquiring a first positioning position of the target terminal equipment and a second positioning position of the equipment to be accessed;
and if the distance between the first positioning position and the second positioning position is smaller than a set threshold, accessing the equipment to be accessed to the cloud server through the access request.
In a third aspect, a further embodiment of the present application provides a method for accessing a device to a cloud server, where the method is applied to a device to be accessed, and the method includes:
sending an access request carrying a second product serial number of the equipment to be accessed to a cloud server to instruct the cloud server to compare the second product serial number with all product serial numbers stored by the cloud server, and if one of the second product serial number and all product serial numbers is consistent in comparison, accessing the equipment to be accessed to the cloud server through the access request; all the product serial numbers stored by the cloud server are obtained by the terminal equipment in a code scanning mode and are sent to the cloud server.
In a fourth aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a method for accessing a cloud server according to any one of the first aspects when the processor executes the computer program.
In a fifth aspect, an embodiment of the present application provides a cloud server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a method for accessing a device according to any one of the second aspects to the cloud server when the processor executes the computer program.
In a sixth aspect, an embodiment of the present application provides a device to be accessed, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements a method for accessing a cloud server by a device according to the third aspect when the processor executes the computer program.
In a seventh aspect, an embodiment of the present application provides a system for accessing a device to a cloud server, where the system includes a terminal device according to the fourth aspect, a cloud server according to the fifth aspect, and a device to be accessed according to the sixth aspect.
In an eighth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the steps in a method for accessing a device to a cloud server according to any one of the first aspect, the second aspect, and the third aspect.
In a ninth aspect, an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the steps of the method for accessing a cloud server by a device according to any of the first aspect above.
The method, the device, the server, the system and the medium for accessing the device to the cloud server provided by the embodiment of the application have the following beneficial effects:
the method for accessing the equipment to the cloud server provided by the embodiment of the application comprises the following steps: the method comprises the steps that a terminal device obtains a first product serial number of a device to be accessed in a code scanning mode; the terminal equipment sends the first product serial number to the cloud server, the cloud service is used for storing the first product serial number, after receiving an access request carrying the second product serial number sent by the equipment to be accessed, the terminal equipment compares the second product serial number with all the stored product serial numbers of the cloud server, and if one of the second product serial number and all the product serial numbers is consistent in comparison, the equipment to be accessed is accessed to the cloud server through the access request. According to the method for accessing the cloud server by the equipment, the first product serial number of the equipment to be accessed can be obtained in a code scanning mode through the terminal equipment, and the first product serial number of the equipment to be accessed can be sent to the cloud server, so that a user does not need to manually input the product serial number of the equipment to be accessed, and therefore the efficiency of accessing the cloud server by the equipment can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for accessing a device to a cloud server according to an embodiment of the present application;
fig. 2 is a flowchart of a method for accessing a device to a cloud server according to another embodiment of the present application;
fig. 3 is a flowchart of an implementation of accessing a device to be accessed to a cloud server through an access request according to an embodiment of the present application;
fig. 4 is a flowchart of a method for accessing a device to a cloud server according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud server according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device to be accessed according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of a cloud server according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of a device to be accessed according to another embodiment of the present application.
Detailed Description
It is to be understood that the terminology used in the embodiments of the application is for the purpose of describing particular embodiments of the application only, and is not intended to be limiting of the application. In the description of the embodiments of the present application, unless otherwise indicated, "a plurality" means two or more, and "at least one", "one or more" means one, two or more. The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a definition of "a first", "a second" feature may explicitly or implicitly include one or more of such features.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The method for accessing the cloud server by the device provided by the embodiment of the application can be applied to the terminal device, the cloud server and the device to be accessed, when the method for accessing the cloud server by the device is applied to the terminal device, an execution main body of the method for accessing the cloud server by the device can be the terminal device, when the method for accessing the cloud server by the device is applied to the cloud server, the execution main body of the method for accessing the cloud server by the device can be the cloud server, and when the method for accessing the cloud server by the device is applied to the device to be accessed, the execution main body of the method for accessing the cloud server by the device can be the device to be accessed. The terminal equipment can comprise electronic equipment such as a mobile phone, a tablet computer, a notebook computer, a desktop computer and the like; the device to be accessed may comprise a wireless access point (WirelessAccess Point, AP).
In a conventional method for accessing a cloud server by using a wireless access point, a user is generally required to manually input a product serial number of the wireless access point to be accessed to the cloud server into a preset website, so as to send a first product serial number of the wireless access point to be accessed to the cloud server, after receiving the first product serial number of the wireless access point to be accessed, the cloud server can save the first product serial number sent by each wireless access point, then the cloud server can receive a second product serial number carried by the wireless access point when sending an access request, and compare the second product serial number with each obtained first product serial number after receiving the second product serial number sent by any wireless access point when powering on, if the second product serial number is consistent with one of the obtained first product serial numbers, then the access request sent by the wireless access point is accessed to the cloud server by the wireless access point, if the second product is inconsistent with each obtained first product serial number, then the cloud server does not send a request for sending the wireless access request by the wireless access point.
Because the traditional method for accessing the cloud server by the wireless access point needs to manually input the product serial number of the wireless access point, the efficiency is low, and when a user wants to improve the efficiency of accessing the cloud server by the wireless access point, the method for accessing the cloud server by the equipment provided by the embodiment of the application can be executed through the terminal equipment, the cloud server and the equipment to be accessed, so that the efficiency of accessing the cloud server by the wireless access point can be improved.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a method for accessing a cloud server by a device according to an embodiment of the present application, where the method for accessing a cloud server by a device according to an embodiment of the present application may be applied to a terminal device, and may include steps S101 to S102, which are described in detail below:
in S101, a first product serial number of a device to be accessed is obtained by means of code scanning.
In the embodiment of the application, when the wireless access point to be accessed needs to be accessed to the cloud server, the first product serial number of the wireless access point to be accessed can be obtained through the terminal equipment in a code scanning mode.
In one possible implementation, the first product serial number of the wireless access point to be accessed may be obtained by scanning a bar code affixed to a surface of the wireless access point to be accessed. The specific method for obtaining the first product serial number of the wireless access point to be accessed through the barcode attached to the surface of the wireless access point to be accessed can be set according to practical application, and is not limited herein.
In another possible implementation manner, the first product serial number of the wireless access point to be accessed may also be obtained by scanning a two-dimensional code attached to the surface of the wireless access point to be accessed, which is not described herein.
In S102, the first product serial number is sent to the cloud server to instruct the cloud server to store the first product serial number, and after receiving an access request carrying the second product serial number sent by the device to be accessed, the second product serial number is compared with all the product serial numbers stored in the cloud server, if one of the second product serial number and all the product serial numbers is consistent, the device to be accessed is accessed to the cloud server through the access request.
In the embodiment of the application, after the terminal device obtains the first product serial number of the wireless access point to be accessed, the terminal device can send the obtained first product serial number of the wireless access point to be accessed to the cloud server. The terminal device sends the first product serial number of the wireless access point to be accessed to the cloud server to instruct the cloud server to store the first product serial numbers of the wireless access point to be accessed, based on the first product serial numbers, the cloud server can store the first product serial numbers of a plurality of wireless access points to be accessed, the terminal device sends the first product serial numbers of the wireless access points to be accessed to the cloud server to instruct the cloud server to receive the access request sent by the wireless access point to be accessed, and compares the second product serial numbers carried by the access request with all the product serial numbers stored in the cloud server (namely, the first product serial numbers of all the wireless access points to be accessed), if the second product serial numbers are consistent with one of all the product serial numbers stored in the cloud server, the access request sent by the wireless access point to be accessed and corresponding to the second product serial numbers is accessed to the cloud server.
In the embodiment of the application, if the comparison between the second product serial number and all the product serial numbers stored in the cloud server is inconsistent, the access request sent by the wireless access point to be accessed corresponding to the second product serial number is not passed, so that the wireless access point to be accessed corresponding to the second product serial number is refused to access the cloud server.
The above can be seen that, the method for accessing the device to the cloud server provided by the embodiment of the present application is applied to the terminal device, and the method includes: acquiring a first product serial number of equipment to be accessed in a code scanning mode; and sending the first product serial number to the cloud server to instruct the cloud server to store the first product serial number, comparing the second product serial number with all the product serial numbers stored in the cloud server after receiving an access request carrying the second product serial number sent by the equipment to be accessed, and accessing the equipment to be accessed to the cloud server through the access request if one of the second product serial number and all the product serial numbers is consistent. According to the method for accessing the cloud server by the equipment, the first product serial number of the equipment to be accessed can be obtained in a code scanning mode through the terminal equipment, and the first product serial number of the equipment to be accessed can be sent to the cloud server, so that a user does not need to manually input the product serial number of the equipment to be accessed, and therefore the efficiency of accessing the cloud server by the equipment can be improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating an implementation of a method for accessing a cloud server by a device according to another embodiment of the present application, where the method for accessing a cloud server by a device according to the embodiment of the present application may be applied to a cloud server, and may include steps S201 to S202, which are described in detail below:
in S201, after receiving an access request carrying a second product serial number sent by a device to be accessed, comparing the second product serial number with all product serial numbers stored in the cloud server.
All the product serial numbers stored by the cloud server are obtained by the terminal equipment in a code scanning mode and are sent to the cloud server.
In the embodiment of the present application, before S201, the cloud server may further receive the first product serial numbers corresponding to the wireless access points to be accessed, which are obtained and sent by the terminal device through the code scanning method, and store the first product serial numbers corresponding to the wireless access points to be accessed. Based on the above, after receiving the access request carrying the second product serial number sent by the wireless access point to be accessed, the cloud server can analyze the second product serial number from the access request, and compare the second product serial number with all the product serial numbers stored by the cloud server.
In S202, if the comparison between the second product serial number and one of all the product serial numbers is consistent, the device to be accessed is accessed to the cloud server through the access request.
In the embodiment of the application, after comparing the second product serial number with all the product serial numbers stored in the cloud server, if one of the second product serial number and all the product serial numbers stored in the cloud server is consistent, the cloud server can access the wireless access point to be accessed corresponding to the second product serial number to the cloud server through the access request sent by the wireless access point to be accessed corresponding to the second product serial number.
In a possible implementation manner, in order to improve security, S202 may include S301 to S304 shown in fig. 3, where fig. 3 is a flowchart of implementation of accessing a device to be accessed to a cloud server through an access request according to an embodiment of the present application, and S301 to S304 are described in detail as follows:
in S301, if the second product serial number matches one of the product serial numbers, a third product serial number matching the second product serial number is determined among the product serial numbers.
In this implementation manner, after determining that the second product serial number is consistent with one of the all product serial numbers, the cloud server may determine a product serial number consistent with the second product serial number in all product serial numbers, and determine the product serial number consistent with the second product serial number as the third product serial number.
In S302, a target terminal device that sends the third product serial number to the cloud server is determined.
In this implementation manner, after determining the third product serial number, the cloud server may determine to send the third product serial number to the target terminal device of the cloud server.
In S303, a first positioning location of the target terminal device and a second positioning location of the device to be accessed are acquired.
In this implementation manner, after determining the target terminal device, the cloud server may acquire a first positioning position of the target terminal device and a second positioning position of the wireless access point to be accessed.
In S304, if the distance between the first positioning position and the second positioning position is smaller than the set threshold, the device to be accessed is accessed to the cloud server through the access request.
In this implementation manner, after the cloud server obtains the first positioning position of the target terminal device and the second positioning position of the wireless access point to be accessed, whether the distance between the first positioning position and the second positioning position is smaller than a set threshold value or not can be determined based on the first positioning position of the target terminal device and the second positioning position of the wireless access point to be accessed, if the cloud server determines that the distance between the first positioning position and the second positioning position is smaller than the set threshold value, the cloud server can be accessed by an access request to access the device to be accessed; if the cloud server determines that the distance between the first positioning position and the second positioning position is not smaller than the set threshold, the device to be accessed can be refused to be accessed to the cloud server without passing the access request.
As can be seen from the above, the conditions of the cloud server passing the access request can be further defined through S301 to S304, that is, the cloud server passes the access request only when the distance between the first positioning position and the second positioning position is smaller than the set threshold, which can improve the security and prevent adverse events caused by possible information leakage.
Referring to fig. 4, fig. 4 is a flowchart illustrating an implementation of a method for accessing a cloud server by a device according to another embodiment of the present application, where the method for accessing a cloud server by a device according to the embodiment of the present application may be applied to a device to be accessed, and may include step S401, which is described in detail below:
in S401, an access request carrying a second product serial number of the device to be accessed is sent to the cloud server, so as to instruct the cloud server to compare the second product serial number with all product serial numbers stored in the cloud server, and if one of the second product serial number and all product serial numbers is consistent, the device to be accessed is accessed to the cloud server through the access request.
All the product serial numbers stored by the cloud server are obtained by the terminal equipment in a code scanning mode and are sent to the cloud server.
In the embodiment of the application, the to-be-accessed device may include a to-be-accessed wireless access point, based on which the to-be-accessed wireless access point may send an access request carrying a second product serial number of the to-be-accessed device to the cloud server after being powered on. Exemplary, after the wireless access point to be accessed is powered on, the wireless access point to be accessed can be switched to a cloud mode, and by configuring a dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) of an uplink switch of the wireless access point to be accessed, and configuring network address translation (Network Address Translation, NAT) and a wide area network interface (Wide Area Network, WAN) of an egress gateway of the wireless access point to be accessed, the wireless access point to be accessed can be connected to the internet, and an access request carrying a second product serial number of the device to be accessed can be sent to a cloud server through a CWMP protocol.
After the wireless access point to be accessed sends an access request carrying a second product serial number of the equipment to be accessed to the cloud server, the cloud server can be instructed to compare the second product serial number with all product serial numbers stored in the cloud server, and if one of the second product serial number and all product serial numbers is consistent in comparison, the equipment to be accessed is accessed to the cloud server through the access request. If the second product serial number is inconsistent with one of the product serial numbers, the equipment to be accessed is refused to be accessed to the cloud server without passing the access request.
Based on the method for accessing the cloud server by the device provided by the embodiment, the embodiment of the application further provides the terminal device, the cloud server and the device to be accessed for realizing the method embodiment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application, as shown in fig. 5, the terminal device 50 may include a first obtaining unit 51 and a first sending unit 52, where:
the first obtaining unit 51 is configured to obtain a first product serial number of a device to be accessed by means of code scanning.
The first sending unit 52 is configured to send the first product serial number to the cloud server, so as to instruct the cloud server to store the first product serial number, and compare the second product serial number with all the product serial numbers stored in the cloud server after receiving an access request carrying the second product serial number sent by the device to be accessed, and if one of the second product serial number and all the product serial numbers is consistent, access the device to be accessed to the cloud server through the access request.
Optionally, the first obtaining unit 51 is specifically configured to:
and acquiring a first product serial number by scanning the bar code attached to the surface of the equipment to be accessed.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a cloud server according to an embodiment of the present application, as shown in fig. 6, the cloud server 60 may include a first comparing unit 61 and a first passing unit 62, where:
the first comparing unit 61 is configured to, after receiving an access request carrying a second product serial number sent by a device to be accessed, compare the second product serial number with all product serial numbers stored in the cloud server; all the product serial numbers stored by the cloud server are obtained by the terminal equipment in a code scanning mode and are sent to the cloud server.
The first pass unit 62 is configured to pass an access request to access the device to be accessed to the cloud server if the comparison between the second product serial number and one of all the product serial numbers is consistent.
Alternatively, the first pass unit 62 may be specifically configured to:
if the second product serial number is consistent with one of the product serial numbers, determining a third product serial number consistent with the second product serial number in the product serial numbers;
determining a target terminal device for sending the third product serial number to the cloud server;
acquiring a first positioning position of target terminal equipment and a second positioning position of equipment to be accessed;
if the distance between the first positioning position and the second positioning position is smaller than the set threshold, the equipment to be accessed is accessed to the cloud server through the access request.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a device to be accessed according to an embodiment of the present application, as shown in fig. 7, the device to be accessed 70 may include a second sending unit 71, where:
the second sending unit 71 is configured to send an access request carrying a second product serial number of the device to be accessed to the cloud server, so as to instruct the cloud server to compare the second product serial number with all product serial numbers stored in the cloud server, and if one of the second product serial number and all product serial numbers is consistent with the comparison of the second product serial number, access the device to be accessed to the cloud server through the access request; all the product serial numbers stored by the cloud server are obtained by the terminal equipment in a code scanning mode and are sent to the cloud server.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a terminal device according to another embodiment of the present application. As shown in fig. 8, the terminal device 8 provided in this embodiment may include: a processor 80, a memory 81 and a computer program 82 stored in the memory 81 and executable on the processor 80. For example, a program corresponding to a method for accessing the cloud server by the device. The steps in the above embodiment of the method applied to the device accessing the cloud server are implemented by the processor 80 when the processor 82 executes the computer program 82, for example, S101 to S102 shown in fig. 1, and the functions of each module/unit in the embodiment corresponding to the terminal device 50, for example, the functions of the units 51 to 52 shown in fig. 5, are implemented by the processor 80 when the processor 82 executes the computer program 82.
By way of example, the computer program 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing a specific function for describing the execution of the computer program 82 in the terminal device 8. For example, the computer program 82 may be divided into the first obtaining unit 51 and the first sending unit 52, and specific functions of each unit refer to the related description in the corresponding embodiment of fig. 5, which is not repeated herein.
It will be appreciated by those skilled in the art that fig. 8 is merely an example of the terminal device 8 and does not constitute a limitation of the terminal device 8, and may include more or fewer components than shown, or may combine certain components, or different components.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a cloud server according to another embodiment of the application. As shown in fig. 9, the cloud server 9 provided in this embodiment may include: a processor 90, a memory 91 and a computer program 92 stored in the memory 91 and executable on the processor 90. For example, a program corresponding to a method for accessing the cloud server by the device. The steps in the above embodiment of the method for accessing a cloud server by a device are implemented by the processor 90 when executing the computer program 92, for example, S201 to S202 shown in fig. 2, and the functions of each module/unit in the corresponding embodiment of the cloud server 60, for example, the functions of units 61 to 62 shown in fig. 6, are implemented by the processor 90 when executing the computer program 92.
By way of example, the computer program 92 may be partitioned into one or more modules/units that are stored in the memory 91 and executed by the processor 90 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments describing the execution of the computer program 92 in the cloud server 9. For example, the computer program 92 may be divided into the first comparing unit 61 and the first passing unit 62, and the specific functions of the units refer to the related descriptions in the corresponding embodiment of fig. 6, which are not repeated herein.
It will be appreciated by those skilled in the art that fig. 9 is merely an example of the cloud server 9 and is not limiting of the cloud server 9, and may include more or fewer components than shown, or may combine certain components, or may be different components.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a device to be accessed according to another embodiment of the present application. As shown in fig. 10, the device to be accessed 10 provided in this embodiment may include: a processor 100, a memory 101, and a computer program 102 stored in the memory 101 and executable on the processor 100. For example, a program corresponding to a method for accessing the cloud server by the device. The steps in the above embodiment of the method applied to the device accessing the cloud server are implemented by the processor 100 when the processor 102 executes the computer program 102, for example, S401 shown in fig. 4, and the functions of each module/unit in the embodiment corresponding to the device to be accessed 70, for example, the functions of the unit 71 shown in fig. 7, are implemented by the processor 100 when the processor 102 executes the computer program 102.
By way of example, computer program 102 may be partitioned into one or more modules/units that are stored in memory 101 and executed by processor 100 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions for describing the execution of the computer program 102 in the device 10 to be accessed. For example, the computer program 102 may be divided into the second transmitting units 71, and the specific functions of each unit are described with reference to the corresponding embodiment of fig. 7, which is not repeated here.
It will be appreciated by those skilled in the art that fig. 10 is merely an example of the device to be accessed 10 and is not meant to be limiting of the device to be accessed 10, and may include more or fewer components than shown, or may combine certain components, or may be different components.
Processor 80, processor 90, and processor 100 may be central processing units (central processing unit, CPU), but may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81, the memory 91 and the memory 101 may be internal storage units of the terminal device 8, the cloud server 9 and the device to be accessed 10, for example, hard disks or memories of the terminal device 8, the cloud server 9 and the device to be accessed 10. The memory 81, the memory 91, and the memory 101 may also be external storage devices of the terminal device 8, the cloud server 9, and the device to be accessed 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, or a flash card (flash card) provided on the terminal device 8, the cloud server 9, and the device to be accessed 10. Further, the memory 81, the memory 91 and the memory 101 may also include both the internal storage units of the terminal device 8, the cloud server 9 and the device to be accessed 10 and the external storage devices. The memory 81, the memory 91, and the memory 101 are used to store computer programs and other programs and data required for the electronic device. The memory 81, the memory 91, and the memory 101 can also be used to temporarily store data that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units is illustrated, and in practical application, the above-mentioned functional allocation may be performed by different functional units, that is, the internal structures of the terminal device 8, the cloud server 9 and the device to be accessed 10 are divided into different functional units, so as to perform all or part of the above-mentioned functions. The functional units in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present application. The specific working process of the units in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a system for accessing the equipment to the cloud server, which can comprise a terminal device 8, a cloud server 9 and equipment to be accessed 10.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, performs the steps of the respective method embodiments described above.
The embodiments of the present application provide a computer program product for causing a terminal device to carry out the steps of the respective method embodiments described above when the computer program product is run on the terminal device.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference may be made to related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for accessing a device to a cloud server, applied to a terminal device, the method comprising:
acquiring a first product serial number of equipment to be accessed in a code scanning mode;
and sending the first product serial number to a cloud server to instruct the cloud server to store the first product serial number, comparing the second product serial number with all the stored product serial numbers of the cloud server after receiving an access request carrying the second product serial number sent by the equipment to be accessed, and accessing the equipment to be accessed to the cloud server through the access request if one of the second product serial number and all the product serial numbers is consistent.
2. The method of claim 1, wherein the obtaining the first product serial number of the device to be accessed by means of code scanning includes:
and acquiring the first product serial number by scanning the bar code attached to the surface of the equipment to be accessed.
3. A method for accessing a device to a cloud server, applied to the cloud server, the method comprising:
after receiving an access request carrying a second product serial number sent by equipment to be accessed, comparing the second product serial number with all product serial numbers stored by the cloud server; all the product serial numbers stored by the cloud server are obtained by a terminal device in a code scanning mode and are sent to the cloud server;
and if the second product serial number is consistent with one of the product serial numbers, accessing the equipment to be accessed to the cloud server through the access request.
4. The method of claim 3, wherein the accessing the device to be accessed to the cloud server through the access request if the comparison between the second product serial number and one of the all product serial numbers is consistent, comprises:
if the second product serial number is consistent with one of the product serial numbers, determining a third product serial number which is consistent with the second product serial number in comparison in all the product serial numbers;
determining a target terminal device for sending the third product serial number to the cloud server;
acquiring a first positioning position of the target terminal equipment and a second positioning position of the equipment to be accessed;
and if the distance between the first positioning position and the second positioning position is smaller than a set threshold, accessing the equipment to be accessed to the cloud server through the access request.
5. A method for a device to access a cloud server, applied to a device to be accessed, the method comprising:
sending an access request carrying a second product serial number of the equipment to be accessed to a cloud server to instruct the cloud server to compare the second product serial number with all product serial numbers stored by the cloud server, and if one of the second product serial number and all product serial numbers is consistent in comparison, accessing the equipment to be accessed to the cloud server through the access request; all the product serial numbers stored by the cloud server are obtained by the terminal equipment in a code scanning mode and are sent to the cloud server.
6. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements a method for accessing a cloud server by a device according to any of claims 1-2.
7. A cloud server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements a method of accessing a cloud server by a device according to any of claims 3 to 4.
8. A device to be accessed comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method of accessing a cloud server for a device as claimed in claim 5.
9. A system for accessing a device to a cloud server, comprising the terminal device according to claim 6, the cloud server according to claim 7, and the device to be accessed according to claim 8.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of accessing a cloud server by a device according to any of claims 1 to 2, or the method of accessing a cloud server by a device according to any of claims 3 to 4, or the method of accessing a cloud server by a device according to claim 5.
CN202310622394.3A 2023-05-29 2023-05-29 Method, device, server, system and medium for accessing device to cloud server Pending CN116744408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310622394.3A CN116744408A (en) 2023-05-29 2023-05-29 Method, device, server, system and medium for accessing device to cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310622394.3A CN116744408A (en) 2023-05-29 2023-05-29 Method, device, server, system and medium for accessing device to cloud server

Publications (1)

Publication Number Publication Date
CN116744408A true CN116744408A (en) 2023-09-12

Family

ID=87917886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310622394.3A Pending CN116744408A (en) 2023-05-29 2023-05-29 Method, device, server, system and medium for accessing device to cloud server

Country Status (1)

Country Link
CN (1) CN116744408A (en)

Similar Documents

Publication Publication Date Title
CN107832329B (en) Page resource obtaining method and terminal equipment
WO2015081808A1 (en) Method and apparatus for data transmission
CN111246399B (en) Method for discovering Bluetooth device and related product
CN108040358B (en) Wireless network connection method, terminal device and storage medium
CN107807852B (en) Application program performance control method, device and computer readable storage medium
US11568092B2 (en) Method of dynamically configuring FPGA and network security device
US11853767B2 (en) Inter-core data processing method, system on chip and electronic device
EP3565370B1 (en) Wireless fidelity (wi-fi) connection method and related product
CN106534268B (en) Data sharing method and device
US20140033311A1 (en) Method and apparatus for determining virus-infected files
CN114257440B (en) Network function service discovery method, system and storage medium
CN110417789B (en) Server connection method, electronic device, system and medium
CN116744408A (en) Method, device, server, system and medium for accessing device to cloud server
CN111447178A (en) Access control method, system and computing device
CN114585055B (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN109587205B (en) Shared directory creation mounting method and related equipment
CN114531279A (en) Private network access method, server and storage medium
CN111708715B (en) Memory allocation method, memory allocation device and terminal equipment
CN114124883A (en) Data access method and device based on cloud storage address, computer equipment and medium
CN106454884B (en) For distinguishing the method and apparatus of wireless access point of the same name
CN111124445B (en) Home gateway upgrading method and home gateway
US11399067B2 (en) Network access method and apparatus for speech recognition service based on artificial intelligence
CN112073505A (en) Method for unloading on cloud server, control device and storage medium
CN113904962B (en) Resource access method and device and computing equipment
CN110912704B (en) Certificate loading method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination