CN113285810B - Target equipment login method and device, storage medium and electronic device - Google Patents
Target equipment login method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN113285810B CN113285810B CN202110632555.8A CN202110632555A CN113285810B CN 113285810 B CN113285810 B CN 113285810B CN 202110632555 A CN202110632555 A CN 202110632555A CN 113285810 B CN113285810 B CN 113285810B
- Authority
- CN
- China
- Prior art keywords
- list
- equipment
- device list
- cloud platform
- target
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000004891 communication Methods 0.000 claims abstract description 86
- 238000001914 filtration Methods 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 9
- 238000005516 engineering process Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 6
- 230000007423 decrease Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000282414 Homo sapiens Species 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/321—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
- H04L9/3213—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a target device login method and device, a storage medium and an electronic device, wherein the target device login method comprises the following steps: acquiring a first device list in a communication range of a mobile terminal; sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol; receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token so as to realize login operation of the target device. By adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a login method and apparatus for a target device, a storage medium, and an electronic apparatus.
Background
With the popularization of intelligent household appliances, more and more intelligent devices support networking and remote control, and the life of human beings is changed subtly. However, for some screenless or non-touch screen devices, the operation steps required to complete the device login and thus facilitate the device login are cumbersome. Meanwhile, due to the popularization of intelligent household appliances, people have many accounts, but simple passwords and massive account numbers cause many troublesome things, and the passwords are cracked and forgotten frequently.
Aiming at the problems that the equipment login process is complex and a user needs to input a password in the related technology, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a login method and device of target equipment, a storage medium and an electronic device, and aims to solve the problems that in the related art, a video file obtained through monitoring is directly sent to a mobile terminal, the sending time of the file is long due to the fact that the file is too large, and meanwhile interference is caused to a user.
According to an embodiment of the present invention, there is provided a login method of a target device, including: acquiring a first device list in a communication range of a mobile terminal; sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol; receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token, so as to realize the login operation of the target device.
Further, the obtaining of the first device list within the communication range of the mobile terminal includes at least one of: searching intelligent equipment in a communication range through a home local area network to obtain the first equipment list; and searching intelligent equipment in the communication range through the mobile Internet to obtain the first equipment list.
Further, before receiving the second device list sent by the cloud platform, the method further includes: instructing the cloud platform to determine a second device list from the first device list by: calling equipment filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
Further, after the first device list is sent to a cloud platform, the method further includes: and instructing the target device to send a token replacement service request to the cloud platform through the access token so that the target device replaces the access token with a device-specific token.
According to an embodiment of the present invention, there is provided another login method for a target device, including: receiving a first equipment list which is sent by a mobile terminal and is in a communication range of the mobile terminal; determining a second device list from the first device list, wherein the devices indicated in the second device list each support a wireless communication protocol; and receiving a login request sent by target equipment in a second equipment list through an access token corresponding to the mobile terminal, so as to realize the login operation of the target equipment according to the login request.
Further, after determining the second device list from the first device list, the method further comprises: receiving a token replacement service request sent by the target device through the access token; and determining a device-specific token corresponding to the access token according to the token replacement service request, and sending the device-specific token to the target device.
Further, determining the second device list from the first device list comprises: calling equipment filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
According to an embodiment of the present invention, there is provided a login apparatus for a target device, applied to a mobile terminal, including: the mobile terminal comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a first equipment list in a communication range of the mobile terminal; the sending module is used for sending the first device list to a cloud platform, wherein the first device list is used for indicating the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol; the first receiving module is used for receiving the second equipment list sent by the cloud platform and sending an access token corresponding to the mobile terminal to target equipment in the second equipment list, wherein the access token is used for indicating the target equipment to send a login request to the cloud platform through the access token so as to realize login operation of the target equipment.
According to yet another embodiment of the present invention, there is also provided a computer-readable storage medium comprising a stored program, wherein the program when executed performs the method described in any one of the above.
According to yet another embodiment of the present invention, there is also provided an electronic apparatus comprising a memory having a computer program stored therein and a processor arranged to perform the method described in any one of the above by means of the computer program.
According to the invention, a first equipment list in the communication range of the mobile terminal is obtained; sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol; receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token so as to realize login operation of the target device. That is, the present invention may acquire a first device list that is within a communication range of the mobile terminal; determining, by the cloud platform, a second device list from the first device list; and sending the access token corresponding to the mobile terminal to the target equipment in the second equipment list to indicate the target equipment to send a login request to a cloud platform through the access token so as to realize the login operation of the target equipment. Therefore, by adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved, and the quick automatic login method of the intelligent equipment is provided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a login method of a target device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a login method of a target device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a login method of a target device according to an embodiment of the present invention (ii);
FIG. 4 is a diagram illustrating a login method of a target device according to an embodiment of the present invention;
FIG. 5 is a block diagram (I) of a login device of a target device according to an embodiment of the present invention;
fig. 6 is a block diagram (ii) of a login apparatus of a target device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings and embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a mobile terminal or a similar operation device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a login method of a target device according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1), wherein the processors 102 may include, but are not limited to, a Microprocessor (MPU) or a Programmable Logic Device (PLD), and a memory 104 for storing data, and in an exemplary embodiment, the mobile terminal may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the login method of the target device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a login method of a target device is provided, which is applied to the mobile terminal, and fig. 2 is a schematic flow chart (a) of the login method of the target device according to the embodiment of the present invention, where the flow chart includes the following steps:
step S202: acquiring a first device list in a communication range of a mobile terminal;
step S204: sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol;
step S206: receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token, so as to realize the login operation of the target device.
Through the steps, a first equipment list in the communication range of the mobile terminal is obtained; sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol; receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token so as to realize login operation of the target device. That is, the present invention may acquire a first device list that is within a communication range of the mobile terminal; determining, by the cloud platform, a second device list from the first device list; and sending the access token corresponding to the mobile terminal to the target equipment in the second equipment list to indicate the target equipment to send a login request to a cloud platform through the access token so as to realize the login operation of the target equipment. Therefore, by adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved, and the quick automatic login method of the intelligent equipment is provided.
In one exemplary embodiment, obtaining a first list of devices within communication range of a mobile terminal includes at least one of: searching intelligent equipment in a communication range through a home local area network to obtain the first equipment list; and searching intelligent equipment in the communication range through the mobile Internet to obtain the first equipment list.
The method comprises the steps of obtaining a first device list in a communication range of the mobile terminal, wherein the optional communication range can be a Bluetooth communication range specifically, the wireless communication protocol can be a Bluetooth communication protocol, the Bluetooth communication range can be adjusted according to specific conditions, and the Bluetooth communication range can be adjusted by adjusting the strength of a Bluetooth signal. If the user increases the strength of the bluetooth signal, the obtained first device list may include more smart devices (compared to the number of smart devices included in the obtained first device list when the strength of the bluetooth signal is unchanged), and if the user decreases the strength of the bluetooth signal, the obtained first device list may include fewer smart devices. In the embodiment of the invention, the intelligent equipment in the Bluetooth communication range can be searched through a home local area network, or the intelligent equipment in the Bluetooth communication range can be searched through a mobile internet, so that the first equipment list is obtained. It should be noted that, by means of searching for an intelligent device in a bluetooth communication range through a home local area network, the first device list may be obtained without a network or without a network.
In an exemplary embodiment, before receiving the second device list sent by the cloud platform, the method further includes: instructing the cloud platform to determine a second device list from the first device list by: calling equipment filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
In order to achieve rapid determination of the target device, in the embodiment of the present invention, a device filtering service is added, and a second device list may be determined from the first device list by performing a filtering operation on the smart devices in the first device list through the device filtering service. A fast determination of the target device can be achieved by means of the second device list.
In an exemplary embodiment, after sending the first device list to a cloud platform, the method further includes: and instructing the target device to send a token replacement service request to the cloud platform through the access token so that the target device replaces the access token with a device-specific token.
In the embodiment of the present invention, in addition to providing a method for implementing the login operation of the target device, a method for replacing the access token with a device-specific token by the target device is also provided: and under the condition of obtaining the access token, instructing the target device to send a token replacement service request to the cloud platform through the access token, replacing the access token with a device-specific token by the cloud platform, and sending the device-specific token to the target device by the cloud platform. And the target equipment calls the business support service of the software development package according to the special token of the equipment and supports the software development package through the business support service.
In this embodiment, a login method of a target device is provided, which is applied to the mobile terminal, and fig. 3 is a schematic flow diagram (ii) of a login method of a target device according to an embodiment of the present invention, where the flow includes the following steps:
step S302: receiving a first equipment list which is sent by a mobile terminal and is in a communication range of the mobile terminal;
step S304: determining a second device list from the first device list, wherein the devices indicated in the second device list all support wireless communication protocols;
step S306: and receiving a login request sent by the target equipment in the second equipment list through the access token corresponding to the mobile terminal, so as to realize the login operation of the target equipment according to the login request.
According to the invention, a first equipment list which is sent by a mobile terminal and is in a communication range of the mobile terminal is received; determining a second device list from the first device list, wherein the devices indicated in the second device list all support wireless communication protocols; and receiving a login request sent by the target equipment in the second equipment list through the access token corresponding to the mobile terminal, so as to realize the login operation of the target equipment according to the login request. That is, the present invention may receive a first device list transmitted by a mobile terminal, which is within a communication range of the mobile terminal; determining a second device list from the first device list; and receiving a login request sent by target equipment in a second equipment list through an access token corresponding to the mobile terminal, so as to realize the login operation of the target equipment according to the login request. Therefore, by adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved, and the quick automatic login method of the intelligent equipment is provided.
Optionally, the communication range may specifically be a bluetooth communication range, and the wireless communication protocol may be a bluetooth communication protocol.
In one exemplary embodiment, after determining the second device list from the first device list, the method further comprises: receiving a token replacement service request sent by the target device through the access token; and determining a device-specific token corresponding to the access token according to the token replacement service request, and sending the device-specific token to the target device.
In the embodiment of the present invention, in the method for replacing the access token with the device-specific token by the target device, the cloud platform is required to replace the access token with the device-specific token and send the device-specific token to the target device when receiving a token replacement service request sent by the target device. The device-specific token is used for the target device to call the business support service of the software development kit according to the device-specific token, and the software development kit is supported by the business support service.
In one exemplary embodiment, determining the second device list from the first device list comprises: invoking a device filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
In the embodiment of the present invention, the cloud platform is added to provide a device filtering service, and a second device list can be determined from the first device list by performing a filtering operation on a target device in the first device list received from the target device through the device filtering service. And under the condition that the second equipment list is determined, the second equipment list is sent to the application end, and the application end can rapidly determine the target equipment through the second equipment list.
In order to better understand the above technical solution, the following alternative flowchart is used to explain the whole flow of the login method of the target device.
Fig. 4 is a schematic diagram of a login method of a target device according to an embodiment of the present invention, as shown in fig. 4:
s402: enter login page/press login button;
s404: searching the Bluetooth equipment in the local area network;
s406: searching a device list in ten meters nearby by Bluetooth, removing cloud filtering to obtain a device which supports quick login and is currently on a login page;
s408: selecting a device to be logged in;
s410: sending the mobile phone App token to equipment through Bluetooth;
s412: using an application token to request a cloud end, replacing the device token, and realizing login;
s414: in the internal logic of the cloud, equipment binding and family sharing are completed;
s416: and returning the replaced token through the cloud end for the equipment to finish various subsequent services.
Through the steps, a first equipment list in the Bluetooth communication range of the mobile terminal is obtained; sending the first device list to a cloud platform to instruct the cloud platform to determine a second device list from the first device list, wherein the devices indicated in the second device list all support a Bluetooth communication protocol; and receiving the second equipment list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to target equipment in the second equipment list so as to indicate the target equipment to send a login request to the cloud platform through the access token, so as to realize the login operation of the target equipment. That is, the present invention may acquire a first device list within a bluetooth communication range of the mobile terminal; determining, by the cloud platform, a second device list from the first device list; and sending the access token corresponding to the mobile terminal to the target equipment in the second equipment list to indicate the target equipment to send a login request to a cloud platform through the access token so as to realize the login operation of the target equipment. Therefore, by adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved, and the quick automatic login method of the intelligent equipment is provided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a mobile terminal, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a login apparatus of a target device is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of which has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
FIG. 5 is a block diagram (I) of a login device of a target device according to an embodiment of the present invention; as shown in fig. 5, includes:
an obtaining module 50, configured to obtain a first device list in a communication range of the mobile terminal;
a sending module 52, configured to send the first device list to a cloud platform, where the first device list is used to instruct the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol;
the first receiving module 54 is configured to receive the second device list sent by the cloud platform, and send an access token corresponding to the mobile terminal to a target device in the second device list, where the access token is used to instruct the target device to send a login request to the cloud platform through the access token, so as to implement a login operation of the target device.
Acquiring a first equipment list in a communication range of the mobile terminal through the module; sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol; receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token so as to realize login operation of the target device. That is, the present invention may acquire a first device list that is within a communication range of the mobile terminal; determining, by the cloud platform, a second device list from the first device list; and sending the access token corresponding to the mobile terminal to the target equipment in the second equipment list to indicate the target equipment to send a login request to a cloud platform through the access token so as to realize the login operation of the target equipment. Therefore, by adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved, and the quick automatic login method of the intelligent equipment is provided.
Optionally, the obtaining module 50 is further configured to search for an intelligent device in a communication range through a home local area network to obtain the first device list; and searching intelligent equipment in the communication range through the mobile Internet to obtain the first equipment list.
The method comprises the steps of obtaining a first device list in a Bluetooth communication range of the mobile terminal, wherein the first device list is optional, the communication range can be specifically a Bluetooth communication range, the wireless communication protocol can be a Bluetooth communication protocol, the Bluetooth communication range can be adjusted according to specific conditions, and the Bluetooth communication range can be adjusted by adjusting the strength of a Bluetooth signal. If the user increases the strength of the bluetooth signal, the acquired first device list may include more smart devices (compared to the number of smart devices included in the acquired first device list without the strength of the bluetooth signal), and if the user decreases the strength of the bluetooth signal, the acquired first device list may include fewer smart devices. In the embodiment of the invention, the intelligent equipment in the Bluetooth communication range can be searched through a home local area network, or the intelligent equipment in the Bluetooth communication range can be searched through a mobile internet, so that the first equipment list is obtained. It should be noted that, by means of searching for an intelligent device in a bluetooth communication range through a home local area network, the first device list may be obtained without a network or without a network.
Optionally, the sending module 52 is further configured to instruct the cloud platform to determine a second device list from the first device list by: calling equipment filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
In order to achieve rapid determination of the target device, in the embodiment of the present invention, a device filtering service is added, and a second device list may be determined from the first device list by performing a filtering operation on the smart devices in the first device list through the device filtering service. A fast determination of the target device can be achieved by means of the second device list.
Optionally, the sending module 52 is further configured to instruct the target device to send a token replacement service request to the cloud platform through the access token, so that the target device replaces the access token with a device-specific token.
In the embodiment of the present invention, in addition to providing a method for implementing the login operation of the target device, a method for replacing the access token with a device-specific token by the target device is also provided: and under the condition of obtaining the access token, instructing the target device to send a token replacement service request to the cloud platform through the access token, replacing the access token with a device-specific token by the cloud platform, and sending the device-specific token to the target device by the cloud platform. And the target equipment calls the service support service of the software development kit according to the special token of the equipment and supports the software development kit through the service support service.
In this embodiment, a login method of a target device is provided, which is applied to the mobile terminal described above, and fig. 6 is a block diagram of a structure of a login apparatus of a target device according to an embodiment of the present invention (ii), where the process includes the following steps:
a second receiving module 60, configured to receive a first device list sent by the mobile terminal and located in a communication range of the mobile terminal;
a determining module 62, configured to determine a second device list from the first device list, where all devices indicated in the second device list support a wireless communication protocol;
a third receiving module 64, configured to receive a login request sent by a target device in the second device list through an access token corresponding to the mobile terminal, so as to implement a login operation of the target device according to the login request.
According to the invention, a first equipment list which is sent by the mobile terminal and is in the communication range of the mobile terminal is received; determining a second device list from the first device list, wherein the devices indicated in the second device list each support a wireless communication protocol; and receiving a login request sent by the target equipment in the second equipment list through the access token corresponding to the mobile terminal, so as to realize the login operation of the target equipment according to the login request. That is, the present invention may receive a first device list transmitted by a mobile terminal, which is within a communication range of the mobile terminal; determining a second device list from the first device list; and receiving a login request sent by the target equipment in the second equipment list through the access token corresponding to the mobile terminal, so as to realize the login operation of the target equipment according to the login request. Therefore, by adopting the technical scheme, the problems that the equipment login process is complex and the user needs to input the password in the related technology are solved, and the quick automatic login method of the intelligent equipment is provided.
Optionally, the communication range may specifically be a bluetooth communication range, and the wireless communication protocol may be a bluetooth communication protocol.
Optionally, the determining module 62 is further configured to receive a token replacement service request sent by the target device through the access token; and determining a device-specific token corresponding to the access token according to the token replacement service request, and sending the device-specific token to the target device.
In the embodiment of the present invention, in the method for replacing the access token with the device-specific token by the target device, the cloud platform is required to replace the access token with the device-specific token and send the device-specific token to the target device when receiving a token replacement service request sent by the target device. The device-specific token is used for the target device to call the business support service of the software development kit according to the device-specific token, and the software development kit is supported by the business support service.
Optionally, the determining module 62 is further configured to invoke a device filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
In the embodiment of the present invention, the cloud platform is added to provide a device filtering service, and a second device list can be determined from the first device list by performing a filtering operation on a target device in the first device list received from the target device through the device filtering service. And under the condition that the second equipment list is determined, the second equipment list is sent to the application end, and the application end can rapidly determine the target equipment through the second equipment list.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Further, in the present embodiment, the storage medium described above may be configured to store a computer program for executing the steps of:
s1, acquiring a first equipment list in a communication range of a mobile terminal;
s2, sending the first device list to a cloud platform, wherein the first device list is used for indicating the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol;
and S3, receiving the second equipment list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to target equipment in the second equipment list, wherein the access token is used for indicating the target equipment to send a login request to the cloud platform through the access token so as to realize login operation of the target equipment.
Further, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Further, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Further, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first equipment list in a communication range of a mobile terminal;
s2, sending the first device list to a cloud platform, wherein the first device list is used for indicating the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol;
and S3, receiving the second equipment list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to target equipment in the second equipment list, wherein the access token is used for indicating the target equipment to send a login request to the cloud platform through the access token so as to realize login operation of the target equipment.
Further, in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners for specific examples, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and further, they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A login method of a target device, comprising:
acquiring a first device list in a communication range of a mobile terminal;
sending the first device list to a cloud platform, wherein the first device list is used for instructing the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol;
receiving the second device list sent by the cloud platform, and sending an access token corresponding to the mobile terminal to a target device in the second device list, wherein the access token is used for indicating the target device to send a login request to the cloud platform through the access token so as to realize login operation of the target device;
after the first device list is sent to a cloud platform, the method further includes: instructing the target device to send a token replacement service request to the cloud platform through the access token, so that the target device replaces the access token with a device-specific token; and receiving the equipment-specific token sent by the cloud platform, and instructing the target equipment to call a business support service of a software development kit according to the equipment-specific token so as to support the software development kit through the business support service.
2. The method of claim 1, wherein obtaining the first list of devices within communication range of the mobile terminal comprises at least one of:
searching intelligent equipment in a communication range through a home local area network to obtain the first equipment list;
and searching intelligent equipment in the communication range through the mobile Internet to obtain the first equipment list.
3. The login method of the target device according to claim 1, wherein before receiving the second device list sent by the cloud platform, the method further comprises:
instructing the cloud platform to determine a second device list from the first device list by: calling equipment filtering service; and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
4. A login method of a target device, comprising:
receiving a first equipment list which is sent by a mobile terminal and is in a communication range of the mobile terminal; determining a second device list from the first device list, wherein the devices indicated in the second device list each support a wireless communication protocol;
receiving a login request sent by target equipment in a second equipment list through an access token corresponding to the mobile terminal, so as to realize login operation of the target equipment according to the login request;
wherein, after determining the second device list from the first device list, the method further comprises:
receiving a token replacement service request sent by the target device through the access token;
and determining a device-specific token corresponding to the access token according to the token replacement service request, sending the device-specific token to the target device, and instructing the target device to call a service support service of a software development kit according to the device-specific token so as to support the software development kit through the service support service.
5. The login method of a target device according to claim 4, wherein determining the second device list from the first device list comprises:
calling equipment filtering service;
and filtering the intelligent equipment in the first equipment list through the equipment filtering service so as to determine a second equipment list from the first equipment list.
6. A login apparatus of a target device, comprising:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first equipment list in a communication range of the mobile terminal; the sending module is used for sending the first device list to a cloud platform, wherein the first device list is used for indicating the cloud platform to determine a second device list from the first device list, and all devices indicated in the second device list support a wireless communication protocol;
the first receiving module is configured to receive the second device list sent by the cloud platform and send an access token corresponding to the mobile terminal to a target device in the second device list, where the access token is used to instruct the target device to send a login request to the cloud platform through the access token, so as to implement a login operation of the target device;
the sending module is further configured to instruct the target device to send a token replacement service request to the cloud platform through the access token, so that the target device replaces the access token with a device-specific token; and receiving the equipment-specific token sent by the cloud platform, and instructing the target equipment to call a business support service of a software development kit according to the equipment-specific token so as to support the software development kit through the business support service.
7. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any of claims 1 to 3 or the method of any of claims 4 to 5.
8. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the method of any of claims 1 to 3, or the method of any of claims 4 to 5, by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110632555.8A CN113285810B (en) | 2021-06-07 | 2021-06-07 | Target equipment login method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110632555.8A CN113285810B (en) | 2021-06-07 | 2021-06-07 | Target equipment login method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113285810A CN113285810A (en) | 2021-08-20 |
CN113285810B true CN113285810B (en) | 2023-04-07 |
Family
ID=77283533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110632555.8A Active CN113285810B (en) | 2021-06-07 | 2021-06-07 | Target equipment login method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113285810B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113747415B (en) * | 2021-09-14 | 2024-03-22 | 青岛海尔科技有限公司 | Connection method and device of wireless access point, storage medium and electronic device |
CN114697359B (en) * | 2022-03-04 | 2024-03-22 | 青岛海尔科技有限公司 | Data collection method and device, storage medium and electronic device |
CN117641359A (en) * | 2022-08-17 | 2024-03-01 | 荣耀终端有限公司 | Data processing method and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104722A (en) * | 2018-07-27 | 2018-12-28 | 努比亚技术有限公司 | Terminal access method, apparatus and computer readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8839395B2 (en) * | 2011-05-13 | 2014-09-16 | Cch Incorporated | Single sign-on between applications |
US10135805B2 (en) * | 2013-10-31 | 2018-11-20 | Cellco Partnership | Connected authentication device using mobile single sign on credentials |
CN104079565A (en) * | 2014-06-13 | 2014-10-01 | 小米科技有限责任公司 | Authorization method and device |
WO2018113130A1 (en) * | 2016-12-22 | 2018-06-28 | 华为技术有限公司 | Application program authorization method, terminal, and server |
CN110149352B (en) * | 2018-02-11 | 2021-07-27 | 腾讯科技(深圳)有限公司 | Service request processing method and device, computer equipment and storage medium |
US20210218725A1 (en) * | 2018-09-03 | 2021-07-15 | Huawei Technologies Co., Ltd. | Login Method, Token Sending Method, and Device |
-
2021
- 2021-06-07 CN CN202110632555.8A patent/CN113285810B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104722A (en) * | 2018-07-27 | 2018-12-28 | 努比亚技术有限公司 | Terminal access method, apparatus and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113285810A (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113285810B (en) | Target equipment login method and device, storage medium and electronic device | |
US11777916B2 (en) | Wireless local area network WLAN access method, terminal, and server | |
EP3016419B1 (en) | Method of changing profile using identification module and electronic device implementing same | |
US12048063B2 (en) | Automated subscription management for wireless devices having multiple subscription profiles | |
CN109041140B (en) | Method for rapidly switching wireless network, intelligent hardware and terminal equipment | |
CN111885115A (en) | Equipment binding change method and device | |
CN107148009B (en) | Multi-standard mobile communication network internet data flow measuring device and method thereof | |
CN111615123A (en) | Method, device and storage medium for intelligent device network distribution | |
CN111885594A (en) | Equipment binding method and device | |
CN109086091B (en) | Interface loading method, device and equipment of software development kit | |
EP3023904A1 (en) | Implicit File creation in APDU scripts | |
CN112566078A (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
CN108718457A (en) | Network reselection method, device, chip and storage medium | |
JP2024515008A (en) | Electronic device and method for installing an embedded subscriber identity module profile in an electronic device - Patents.com | |
CN114205378A (en) | Network distribution method and device of Internet of things equipment, storage medium and electronic device | |
US10687200B2 (en) | Method for automatic connection of a master device to a slave device | |
JP2019514245A (en) | Method and device for establishing an association between terminal devices | |
CN105050123A (en) | Load control method for wireless network and terminal | |
CN110493771B (en) | Data network connection method, device, storage medium and terminal equipment | |
CN111475189A (en) | Upgrading method, head-mounted equipment, storage medium and electronic device | |
CN111510995B (en) | Wireless communication method and apparatus | |
CN111385110B (en) | Network management method and device | |
CN112469106A (en) | Configuration method and device of access point name and readable storage medium | |
US10314085B2 (en) | ProSe information transmission method, terminal, and communications device | |
CN116225855B (en) | Log generation method, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |