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
- device list
- cloud platform
- equipment
- target device
- 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
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 Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供了一种目标设备的登录方法及装置、存储介质及电子装置,其中,上述目标设备的登录方法包括:获取处于移动终端的通信范围内的第一设备列表;将所述第一设备列表发送至云端平台其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题。
The present invention provides a method and device for logging in a target device, a storage medium, and an electronic device, wherein the method for logging in a target device includes: obtaining a list of first devices within the communication range of a mobile terminal; The list is sent to the cloud platform, wherein the first device list is used to instruct the cloud platform to determine a second device list from the first device list, and the devices indicated in the second device list all support wireless communication protocols ; receiving the second device list sent by the cloud platform, and sending the access token corresponding to the mobile terminal to the target device in the second device list, wherein the access token is used to indicate the The target device sends a login request to the cloud platform through the access token, so as to realize the login operation of the target device. By adopting the above technical solution, the problem in the related art that the device login process is complicated and requires the user to input a password is solved.
Description
技术领域technical field
本发明涉及通信领域,具体而言,涉及一种目标设备的登录方法及装置、存储介质及电子装置。The present invention relates to the communication field, in particular to a method and device for logging in a target device, a storage medium and an electronic device.
背景技术Background technique
随着智能家电的普及,越来越多的智能设备支持联网和远程控制,潜移默化的改变了人类的生活。然而对于一些无屏网器或者非触屏设备,想要完成设备登录从而更方便的操控操作步骤是比较繁琐的。同时,由于智能家电的普及,人人都拥有了很多账户,然而简单的密码、以及海量的账号引发了很多麻烦的事情,密码被破解、遗忘常常发生。With the popularization of smart home appliances, more and more smart devices support networking and remote control, subtly changing human life. However, for some screenless network devices or non-touch screen devices, it is cumbersome to complete the device login and operate the operation steps more conveniently. At the same time, due to the popularity of smart home appliances, everyone has many accounts. However, simple passwords and a large number of accounts have caused a lot of trouble, and passwords are often cracked and forgotten.
针对相关技术中,设备登录过程复杂,需要用户输入密码的问题,尚未提出有效的解决方案。Aiming at the problem in the related art that the device login process is complicated and requires the user to input a password, no effective solution has been proposed yet.
发明内容Contents of the invention
本发明实施例提供了一种目标设备的登录方法及装置、存储介质及电子装置,以解决相关技术中,将监测得到的视频文件直接发送给移动终端,因为文件太大,会导致文件的发送耗时很长,同时会对用户的造成干扰的问题。Embodiments of the present invention provide a target device login method and device, a storage medium, and an electronic device to solve the problem of directly sending the monitored video file to the mobile terminal in the related art. Because the file is too large, it will cause the file to be sent It takes a long time and at the same time will cause interference to users.
根据本发明的一个实施例,提供了一种目标设备的登录方法,包括:获取处于移动终端的通信范围内的第一设备列表;将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。According to an embodiment of the present invention, a method for logging in a target device is provided, including: acquiring a first device list within the communication range of a mobile terminal; sending the first device list to a cloud platform, wherein the The first device list is used to instruct the cloud platform to determine a second device list from the first device list, and the devices indicated in the second device list all support wireless communication protocols; receive the information sent by the cloud platform the second device list, and send the access token corresponding to the mobile terminal to the target device in the second device list, wherein the access token is used to instruct the target device to pass the access token Sending a login request to the cloud platform, so as to realize the login operation of the target device.
进一步地,获取处于移动终端的通信范围内的第一设备列表,至少包括以下之一:通过家庭局域网络搜索通信范围内的智能设备,以得到所述第一设备列表;通过移动互联网搜索所述通信范围内的智能设备,以得到所述第一设备列表。Further, obtaining the first device list within the communication range of the mobile terminal includes at least one of the following: searching for smart devices within the communication range through a home area network to obtain the first device list; searching for the first device list through the mobile Internet. Communicating with smart devices within the range to obtain the first device list.
进一步地,接收所述云端平台发送的所述第二设备列表之前,所述方法还包括:指示所述云端平台通过以下方式从所述第一设备列表中确定第二设备列表:调用设备过滤服务;通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,以从所述第一设备列表中确定出第二设备列表。Further, before receiving the second device list sent by the cloud platform, the method further includes: instructing the cloud platform to determine the second device list from the first device list by calling a device filtering service ; performing a filtering operation on the smart devices in the first device list through the device filtering service, so as to determine a second device list from the first device list.
进一步地,将所述第一设备列表发送至云端平台之后,所述方法还包括:指示所述目标设备通过所述访问令牌向所述云端平台发送令牌置换服务请求,以使所述目标设备将所述访问令牌置换为设备专用令牌。Further, after sending the first device list to the 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 The device exchanges the access token for a device-specific token.
根据本发明的一个实施例,提供了另一种目标设备的登录方法,包括:接收移动终端发送的处于移动终端的通信范围内的第一设备列表;从所述第一设备列表中确定第二设备列表,其中,所述第二设备列表中所指示的设备均支持无线通信协议;接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。According to an embodiment of the present invention, another method for logging in a target device is provided, including: receiving a first device list sent by a mobile terminal within the communication range of the mobile terminal; determining a second device from the first device list A device list, wherein, the devices indicated in the second device list all support wireless communication protocols; receiving the login request sent by the target device in the second device list through the access token corresponding to the mobile terminal, and according to the The login request implements a login operation of the target device.
进一步地,从所述第一设备列表中确定所述第二设备列表之后,所述方法还包括:接收所述目标设备通过所述访问令牌发送的令牌置换服务请求;根据所述令牌置换服务请求确定所述访问令牌对应的设备专用令牌,并将所述设备专用令牌发送至所述目标设备。Further, after determining the second device list from the first device list, the method further includes: receiving a token replacement service request sent by the target device through the access token; The replacement service request determines the device-specific token corresponding to the access token, and sends the device-specific token to the target device.
进一步地,从所述第一设备列表中确定所述第二设备列表,包括:调用设备过滤服务;通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,以从所述第一设备列表中确定出第二设备列表。Further, determining the second device list from the first device list includes: calling a device filtering service; performing a filtering operation on the smart devices in the first device list through the device filtering service, so as to obtain Determine the second device list from the first device list.
根据本发明的一个实施例,提供了一种目标设备的登录装置,应用于移动终端,包括:获取模块,用于获取处于移动终端的通信范围内的第一设备列表;发送模块,用于将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;第一接收模块,用于接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。According to an embodiment of the present invention, there is provided an apparatus for logging in a target device, which is applied to a mobile terminal, and includes: an acquisition module, configured to acquire a list of first devices within the communication range of the mobile terminal; a sending module, configured to The first device list is sent to the cloud platform, wherein the first device list is used to instruct the cloud platform to determine a second device list from the first device list, and the indicated in the second device list The devices all support wireless communication protocols; the first receiving module is configured to receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to the target in the second device list device, wherein 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 realize the login operation of the target device.
根据本发明的又一个实施例,还提供了一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行以上任一项中所述的方法。According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium includes a stored program, wherein, when the program is run, the program described in any one of the above items is executed. method.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行以上任一项中所述的方法。According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute any one of the above through the computer program. the method described.
通过本发明,获取处于移动终端的通信范围内的第一设备列表;将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。也就是说,本发明可以获取处于移动终端的通信范围内的第一设备列表;通过所述云端平台从所述第一设备列表中确定第二设备列表;将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,以指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。因此,采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题,从而提供一种智能设备的快速自动登录方法。According to the present invention, the first device list within the communication range of the mobile terminal is obtained; the first device list is sent to the cloud platform, wherein the first device list is used to instruct the cloud platform to obtain A second device list is determined in the device list, and the devices indicated in the second device list all support wireless communication protocols; receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to The token is sent to the target device in the second device list, wherein 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 realize the login operation of the target device . That is to say, the present invention can acquire the first device list within the communication range of the mobile terminal; determine the second device list from the first device list through the cloud platform; sent to the target device in the second device list, to instruct 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. Therefore, adopting the above technical solution solves the problem in the related art that the device login process is complicated and requires the user to input a password, thereby providing a fast and automatic login method for smart devices.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是本发明实施例的一种目标设备的登录方法的移动终端的硬件结构框图;Fig. 1 is a block diagram of the hardware structure of a mobile terminal of a method for logging in a target device according to an embodiment of the present invention;
图2是根据本发明实施例的一种目标设备的登录方法的流程示意图(一);FIG. 2 is a schematic flowchart (1) of a method for logging in a target device according to an embodiment of the present invention;
图3是根据本发明实施例的一种目标设备的登录方法的流程示意图(二);FIG. 3 is a schematic flowchart (2) of a method for logging in a target device according to an embodiment of the present invention;
图4是根据本发明实施例的一种目标设备的登录方法的示意图;Fig. 4 is a schematic diagram of a method for logging in a target device according to an embodiment of the present invention;
图5是根据本发明实施例的一种目标设备的登录装置的结构框图(一);FIG. 5 is a structural block diagram (1) of a device for logging in to a target device according to an embodiment of the present invention;
图6是根据本发明实施例的一种目标设备的登录装置的结构框图(二)。Fig. 6 is a structural block diagram (2) of an apparatus for logging in a target device according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例所提供的方法实施例可以在移动终端,或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种目标设备的登录方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器(Microprocessor Unit,简称是MPU)或可编程逻辑器件(Programmable logic device,简称是PLD))和用于存储数据的存储器104,在一个示例性实施例中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal or a similar computing device. Taking a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for logging in a target device according to an embodiment of the present invention. As shown in Figure 1, the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but not limited to a microprocessor (Microprocessor Unit, MPU for short) or programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data, in an exemplary embodiment, the above-mentioned mobile terminal may also include a
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的目标设备的登录方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the login method of the target device in the embodiment of the present invention, and the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and data processing is to realize the above-mentioned method. 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 a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The
在本实施例中提供了一种目标设备的登录方法,应用于上述移动终端,图2是根据本发明实施例的一种目标设备的登录方法的流程示意图(一),该流程包括如下步骤:In this embodiment, a method for logging in a target device is provided, which is applied to the above-mentioned mobile terminal. FIG. 2 is a schematic flow diagram (1) of a method for logging in a target device according to an embodiment of the present invention. The flow includes the following steps:
步骤S202:获取处于移动终端的通信范围内的第一设备列表;Step S202: Obtain a first device list within the communication range of the mobile terminal;
步骤S204:将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;Step S204: Send the first device list to the cloud platform, wherein the first device list is used to instruct the cloud platform to determine a second device list from the first device list, and the second device list The devices indicated in all support wireless communication protocols;
步骤S206:接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。Step S206: Receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to the target device in the second device list, wherein the access token is used for Instructing the target device to send a login request to the cloud platform by using the access token, so as to implement a login operation of the target device.
通过上述步骤,获取处于移动终端的通信范围内的第一设备列表;将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。也就是说,本发明可以获取处于移动终端的通信范围内的第一设备列表;通过所述云端平台从所述第一设备列表中确定第二设备列表;将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,以指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。因此,采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题,从而提供一种智能设备的快速自动登录方法。Through the above steps, the first device list within the communication range of the mobile terminal is obtained; the first device list is sent to the cloud platform, wherein the first device list is used to instruct the cloud platform from the first A second device list is determined in the device list, and the devices indicated in the second device list all support wireless communication protocols; receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to The token is sent to the target device in the second device list, wherein 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 realize the login operation of the target device . That is to say, the present invention can acquire the first device list within the communication range of the mobile terminal; determine the second device list from the first device list through the cloud platform; sent to the target device in the second device list, to instruct 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. Therefore, adopting the above technical solution solves the problem in the related art that the device login process is complicated and requires the user to input a password, thereby providing a fast and automatic login method for smart devices.
在一个示范性实施例中,获取处于移动终端的通信范围内的第一设备列表,至少包括以下之一:通过家庭局域网络搜索通信范围内的智能设备,以得到所述第一设备列表;通过移动互联网搜索所述通信范围内的智能设备,以得到所述第一设备列表。In an exemplary embodiment, obtaining the first device list within the communication range of the mobile terminal includes at least one of the following: searching for smart devices within the communication range through a home area network to obtain the first device list; The mobile Internet searches for smart devices within the communication range to obtain the first device list.
获取处于移动终端的通信范围内的第一设备列表,可选的所述通信范围具体可以是蓝牙通信范围,所述无线通信协议可以是蓝牙通信协议,蓝牙通信范围可以根据具体情况调整,通过调整蓝牙信号的强弱,就可以调整蓝牙通信范围。如果用户增强蓝牙信号的强度,那么获取的第一设备列表就可以包括更多的智能设备(相比与蓝牙信号的强度不变的情况下,获取的第一设备列表包括的智能设备的数量),如果用户减弱蓝牙信号的强度,那么获取的第一设备列表就可以包括更少的智能设备。在本发明实施例中,可以通过家庭局域网络搜索蓝牙通信范围内的智能设备,或者通过移动互联网搜索所述蓝牙通信范围内的智能设备,得到所述第一设备列表。需要说明的是,通过家庭局域网络搜索蓝牙通信范围内的智能设备的方式,可以实现无网络或者不联网的情况下,第一设备列表的获取。Obtain the first list of devices within the communication range of the mobile terminal. The optional communication range may specifically be a Bluetooth communication range, the wireless communication protocol may be a Bluetooth communication protocol, and the Bluetooth communication range may be adjusted according to specific conditions. By adjusting The strength of the Bluetooth signal can adjust the Bluetooth communication range. If the user increases the strength of the Bluetooth signal, the obtained first device list may include more smart devices (compared with the case where the strength of the Bluetooth signal remains unchanged, the obtained first device list includes the number of smart devices) , if the user weakens the strength of the Bluetooth signal, the acquired first device list may include fewer smart devices. In the embodiment of the present invention, the first device list can be obtained by searching for smart devices within the Bluetooth communication range through a home area network, or searching for smart devices within the Bluetooth communication range through the mobile Internet. It should be noted that, by searching for smart devices within the Bluetooth communication range through the home local area network, the acquisition of the first device list can be realized when there is no network or no 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 the second device list from the first device list in the following manner : calling a device filtering service; performing a filtering operation on the smart devices in the first device list through the device filtering service, so as to determine a second device list from the first device list.
为了实现目标设备的快速确定,在本发明实施例中,增加了一种设备过滤服务,通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,就可以从所述第一设备列表中确定出第二设备列表。通过第二设备列表就可以实现目标设备的快速确定。In order to realize the rapid determination of the target device, in the embodiment of the present invention, a device filtering service is added, through which the smart device in the first device list is filtered, and the A second device list is determined from the first device list. The target device can be quickly determined through the second device list.
在一个示范性实施例中,将所述第一设备列表发送至云端平台之后,所述方法还包括:指示所述目标设备通过所述访问令牌向所述云端平台发送令牌置换服务请求,以使所述目标设备将所述访问令牌置换为设备专用令牌。In an exemplary embodiment, after sending the first device list to the 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, causing the target device to replace the access token with a device-specific token.
在本发明实施例中,除了提供一种实现所述目标设备的登录操作的方法,还提供了一种所述目标设备将所述访问令牌置换为设备专用令牌的方法:在获取到访问令牌的情况下,指示所述目标设备通过所述访问令牌向所述云端平台发送令牌置换服务请求,所述云端平台将所述访问令牌置换为设备专用令牌,所述云端平台将设备专用令牌发送给所述目标设备。目标设备根据设备专用令牌调用软件开发包的业务支持服务,通过业务支持服务对软件开发包进行支持。In the embodiment of the present invention, in addition to providing a method for realizing the login operation of the target device, a method for the target device to replace the access token with a device-specific token is also provided: after obtaining the access In the case of a token, instruct the target device to send a token replacement service request to the cloud platform through the access token, the cloud platform replaces the access token with a device-specific token, and the cloud platform A device specific token is sent to the target device. The target device invokes the business support service of the software development kit according to the device-specific token, and supports the software development kit through the business support service.
在本实施例中提供了一种目标设备的登录方法,应用于上述移动终端,图3是根据本发明实施例的一种目标设备的登录方法的流程示意图(二),该流程包括如下步骤:In this embodiment, a method for logging in a target device is provided, which is applied to the above-mentioned mobile terminal. FIG. 3 is a schematic flow diagram (2) of a method for logging in a target device according to an embodiment of the present invention. The flow includes the following steps:
步骤S302:接收移动终端发送的处于移动终端的通信范围内的第一设备列表;Step S302: receiving a list of first devices within the communication range of the mobile terminal sent by the mobile terminal;
步骤S304:从所述第一设备列表中确定第二设备列表,其中,所述第二设备列表中所指示的设备均支持无线通信协议;Step S304: Determine a second device list from the first device list, wherein all devices indicated in the second device list support wireless communication protocols;
步骤S306:接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。Step S306: Receive the login request sent by the target device in the second device list through the access token corresponding to the mobile terminal, so as to implement the login operation of the target device according to the login request.
通过本发明,接收移动终端发送的处于移动终端的通信范围内的第一设备列表;从所述第一设备列表中确定第二设备列表,其中,所述第二设备列表中所指示的设备均支持无线通信协议;接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。也就是说,本发明可以接收移动终端发送的处于移动终端的通信范围内的第一设备列表;从所述第一设备列表中确定第二设备列表;接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。因此,采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题,从而提供一种智能设备的快速自动登录方法。According to the present invention, the first device list within the communication range of the mobile terminal sent by the mobile terminal is received; the second device list is determined from the first device list, wherein the devices indicated in the second device list are all Supporting a wireless communication protocol; receiving a login request sent by a target device in the second device list through the access token corresponding to the mobile terminal, so as to implement a login operation of the target device according to the login request. That is to say, the present invention can receive the first device list sent by the mobile terminal within the communication range of the mobile terminal; determine the second device list from the first device list; receive the target device in the second device list through the The login request sent by the access token corresponding to the mobile terminal, so as to implement the login operation of the target device according to the login request. Therefore, adopting the above technical solution solves the problem in the related art that the device login process is complicated and requires the user to input a password, thereby providing a fast and automatic login method for smart devices.
可选的,所述通信范围具体可以是蓝牙通信范围,所述无线通信协议可以是蓝牙通信协议。Optionally, the communication range may specifically be a Bluetooth communication range, and the wireless communication protocol may be a Bluetooth communication protocol.
在一个示范性实施例中,从所述第一设备列表中确定所述第二设备列表之后,所述方法还包括:接收所述目标设备通过所述访问令牌发送的令牌置换服务请求;根据所述令牌置换服务请求确定所述访问令牌对应的设备专用令牌,并将所述设备专用令牌发送至所述目标设备。In an exemplary embodiment, after the second device list is determined from the first device list, the method further includes: receiving a token replacement service request sent by the target device through the access token; Determine the device-specific token corresponding to the access token according to the token replacement service request, and send the device-specific token to the target device.
在本发明实施例中,提供的一种所述目标设备将所述访问令牌置换为设备专用令牌的方法,需要所述云端平台在接收到目标设备发送的令牌置换服务请求的情况下,将所述访问令牌置换为设备专用令牌,将所述设备专用令牌发送至所述目标设备。其中,所述设备专用令牌,用于目标设备根据设备专用令牌调用软件开发包的业务支持服务,通过业务支持服务对软件开发包进行支持。In the embodiment of the present invention, there is provided a method for the target device to replace the access token with a device-specific token, which requires the cloud platform to receive the token replacement service request sent by the target device , replacing the access token with a device-specific token, and sending the device-specific token to the target device. Wherein, 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 support the software development kit through the business support service.
在一个示范性实施例中,从所述第一设备列表中确定所述第二设备列表,包括:调用设备过滤服务;通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,以从所述第一设备列表中确定出第二设备列表。In an exemplary embodiment, determining the second device list from the first device list includes: calling a device filtering service; filtering smart devices in the first device list through the device filtering service Operate to determine a second device list from the first device list.
在本发明实施例中,增加了所述云端平台提供一种设备过滤服务,通过所述设备过滤服务对从目标设备处接收到的所述第一设备列表中的目标设备进行过滤操作,就可以从所述第一设备列表中确定出第二设备列表。在确定出第二设备列表的情况下,将第二设备列表发送给应用端,应用端通过第二设备列表就可以实现目标设备的快速确定。In the embodiment of the present invention, the cloud platform is added to provide a device filtering service, through which the device filtering service performs a filtering operation on the target device in the first device list received from the target device, it can A second device list is determined from the first device list. When the second device list is determined, the second device list is sent to the application end, and the application end can quickly determine the target device through the second device list.
为了更好的理解上述技术方案,使用以下可选流程图用于解释说明目标设备的登录方法的整个流程。In order to better understand the above technical solution, the following optional flow chart is used to explain the whole process of the login method of the target device.
图4是根据本发明实施例的一种目标设备的登录方法的示意图,如图4所示:Fig. 4 is a schematic diagram of a method for logging in a target device according to an embodiment of the present invention, as shown in Fig. 4 :
S402:进入登录页/按下登录按钮;S402: enter the login page/press the login button;
S404:检索局域网内蓝牙设备;S404: Retrieve the bluetooth device in the local area network;
S406:蓝牙搜索附近十米内设备列表去云端过滤获取支持快速登录且当前在登录页的设备;S406: Bluetooth searches the device list within 10 meters nearby to cloud filtering to obtain devices that support quick login and are currently on the login page;
S408:选择要登录的设备;S408: Select a device to log in;
S410:通过蓝牙将手机App token发送给设备;S410: Send the App token of the mobile phone to the device through Bluetooth;
S412:使用应用端token请求云端,置换设备token,实现登录;S412: Use the application-side token to request the cloud, replace the device token, and log in;
S414:在云端内部逻辑中,完成设备绑定、分享家庭;S414: In the internal logic of the cloud, complete device binding and family sharing;
S416:通过云端返回置换后的token,供设备完成后面的各种业务使用。S416: Return the exchanged token through the cloud, for use by the device in various subsequent services.
通过上述步骤,获取处于移动终端的蓝牙通信范围内的第一设备列表;将所述第一设备列表发送至云端平台,以指示所述云端平台从所述第一设备列表中确定第二设备列表,其中,所述第二设备列表中所指示的设备均支持蓝牙通信协议;接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,以指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。也就是说,本发明可以获取处于移动终端的蓝牙通信范围内的第一设备列表;通过所述云端平台从所述第一设备列表中确定第二设备列表;将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,以指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。因此,采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题,从而提供一种智能设备的快速自动登录方法。Through the above steps, obtain the first device list within the Bluetooth communication range of the mobile terminal; send the first device list to the cloud platform to instruct the cloud platform to determine the second device list from the first device list , wherein, the devices indicated in the second device list all support the Bluetooth communication protocol; receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to the second Two target devices in the device list, to instruct 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. That is to say, the present invention can obtain the first device list within the Bluetooth communication range of the mobile terminal; determine the second device list from the first device list through the cloud platform; The card is sent to the target device in the second device list, so as to instruct 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. Therefore, adopting the above technical solution solves the problem in the related art that the device login process is complicated and requires the user to input a password, thereby providing a fast and automatic login method for smart devices.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,移动终端,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a mobile terminal, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
在本实施例中还提供了一种目标设备的登录装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for logging in to a target device is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and those that have been explained will not be repeated here. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
图5是根据本发明实施例的一种目标设备的登录装置的结构框图(一);如图5所示,包括:Fig. 5 is a structural block diagram (1) of a login device of a target device according to an embodiment of the present invention; as shown in Fig. 5 , it includes:
获取模块50,获取模块,用于获取处于移动终端的通信范围内的第一设备列表;An
发送模块52,用于将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;A sending
第一接收模块54,用于接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。The
通过上述模块,获取处于移动终端的通信范围内的第一设备列表;将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。也就是说,本发明可以获取处于移动终端的通信范围内的第一设备列表;通过所述云端平台从所述第一设备列表中确定第二设备列表;将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,以指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。因此,采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题,从而提供一种智能设备的快速自动登录方法。Through the above modules, obtain the first device list within the communication range of the mobile terminal; send the first device list to the cloud platform, wherein the first device list is used to instruct the cloud platform to obtain the first A second device list is determined in the device list, and the devices indicated in the second device list all support wireless communication protocols; receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to The token is sent to the target device in the second device list, wherein 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 realize the login operation of the target device . That is to say, the present invention can obtain the first device list within the communication range of the mobile terminal; determine the second device list from the first device list through the cloud platform; use the access token corresponding to the mobile terminal sent to the target device in the second device list, to instruct 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. Therefore, adopting the above technical solution solves the problem in the related art that the device login process is complicated and requires the user to input a password, thereby providing a fast and automatic login method for smart devices.
可选的,获取模块50还用于通过家庭局域网络搜索通信范围内的智能设备,以得到所述第一设备列表;通过移动互联网搜索所述通信范围内的智能设备,以得到所述第一设备列表。Optionally, the
获取处于移动终端的蓝牙通信范围内的第一设备列表,可选的,所述通信范围具体可以是蓝牙通信范围,所述无线通信协议可以是蓝牙通信协议,蓝牙通信范围可以根据具体情况调整,通过调整蓝牙信号的强弱,就可以调整蓝牙通信范围。如果用户增强蓝牙信号的强度,那么获取的第一设备列表就可以包括更多的智能设备(相比与蓝牙信号的强度不变的情况下,获取的第一设备列表包括的智能设备的数量),如果用户减弱蓝牙信号的强度,那么获取的第一设备列表就可以包括更少的智能设备。在本发明实施例中,可以通过家庭局域网络搜索蓝牙通信范围内的智能设备,或者通过移动互联网搜索所述蓝牙通信范围内的智能设备,得到所述第一设备列表。需要说明的是,通过家庭局域网络搜索蓝牙通信范围内的智能设备的方式,可以实现无网络或者不联网的情况下,第一设备列表的获取。Obtain the first device list within the Bluetooth communication range of the mobile terminal. Optionally, the communication range may specifically be the Bluetooth communication range, the wireless communication protocol may be the Bluetooth communication protocol, and the Bluetooth communication range may be adjusted according to specific circumstances. By adjusting the strength of the Bluetooth signal, the Bluetooth communication range can be adjusted. If the user increases the strength of the Bluetooth signal, the obtained first device list may include more smart devices (compared with the case where the strength of the Bluetooth signal remains unchanged, the obtained first device list includes the number of smart devices) , if the user weakens the strength of the Bluetooth signal, the acquired first device list may include fewer smart devices. In the embodiment of the present invention, the first device list can be obtained by searching for smart devices within the Bluetooth communication range through a home area network, or searching for smart devices within the Bluetooth communication range through the mobile Internet. It should be noted that, by searching for smart devices within the Bluetooth communication range through the home local area network, the acquisition of the first device list can be realized when there is no network or no network.
可选的,发送模块52还用于指示所述云端平台通过以下方式从所述第一设备列表中确定第二设备列表:调用设备过滤服务;通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,以从所述第一设备列表中确定出第二设备列表。Optionally, the sending
为了实现目标设备的快速确定,在本发明实施例中,增加了一种设备过滤服务,通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,就可以从所述第一设备列表中确定出第二设备列表。通过第二设备列表就可以实现目标设备的快速确定。In order to realize the rapid determination of the target device, in the embodiment of the present invention, a device filtering service is added, through which the smart device in the first device list is filtered, and the A second device list is determined from the first device list. The target device can be quickly determined through the second device list.
可选的,发送模块52还用于指示所述目标设备通过所述访问令牌向所述云端平台发送令牌置换服务请求,以使所述目标设备将所述访问令牌置换为设备专用令牌。Optionally, the sending
在本发明实施例中,除了提供一种实现所述目标设备的登录操作的方法,还提供了一种所述目标设备将所述访问令牌置换为设备专用令牌的方法:在获取到访问令牌的情况下,指示所述目标设备通过所述访问令牌向所述云端平台发送令牌置换服务请求,所述云端平台将所述访问令牌置换为设备专用令牌,所述云端平台将设备专用令牌发送给所述目标设备。目标设备根据设备专用令牌调用软件开发包的业务支持服务,通过业务支持服务对软件开发包进行支持。In the embodiment of the present invention, in addition to providing a method for realizing the login operation of the target device, a method for the target device to replace the access token with a device-specific token is also provided: after obtaining the access In the case of a token, instruct the target device to send a token replacement service request to the cloud platform through the access token, the cloud platform replaces the access token with a device-specific token, and the cloud platform A device specific token is sent to the target device. The target device invokes the business support service of the software development kit according to the device-specific token, and supports the software development kit through the business support service.
在本实施例中提供了一种目标设备的登录方法,应用于上述移动终端,图6是根据本发明实施例的一种目标设备的登录装置的结构框图(二),该流程包括如下步骤:In this embodiment, a method for logging in a target device is provided, which is applied to the above-mentioned mobile terminal. FIG. 6 is a structural block diagram (2) of a device for logging in a target device according to an embodiment of the present invention. The process includes the following steps:
第二接收模块60,用于接收移动终端发送的处于移动终端的通信范围内的第一设备列表;The
确定模块62,用于从所述第一设备列表中确定第二设备列表,其中,所述第二设备列表中所指示的设备均支持无线通信协议;A determining
第三接收模块64,用于接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。The
通过本发明,接收移动终端发送的处于移动终端的通信范围内的第一设备列表;从所述第一设备列表中确定第二设备列表,其中,所述第二设备列表中所指示的设备均支持无线通信协议;接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。也就是说,本发明可以接收移动终端发送的处于移动终端的通信范围内的第一设备列表;从所述第一设备列表中确定第二设备列表;接收第二设备列表中的目标设备通过所述移动终端对应的访问令牌发送的登录请求,以根据所述登录请求实现所述目标设备的登录操作。因此,采用上述技术方案,解决了相关技术中,设备登录过程复杂,需要用户输入密码的问题,从而提供一种智能设备的快速自动登录方法。According to the present invention, the first device list within the communication range of the mobile terminal sent by the mobile terminal is received; the second device list is determined from the first device list, wherein the devices indicated in the second device list are all Supporting a wireless communication protocol; receiving a login request sent by a target device in the second device list through the access token corresponding to the mobile terminal, so as to implement a login operation of the target device according to the login request. That is to say, the present invention can receive the first device list sent by the mobile terminal within the communication range of the mobile terminal; determine the second device list from the first device list; receive the target device in the second device list through the The login request sent by the access token corresponding to the mobile terminal, so as to implement the login operation of the target device according to the login request. Therefore, adopting the above technical solution solves the problem in the related art that the device login process is complicated and requires the user to input a password, thereby providing a fast and automatic login method for smart devices.
可选的,所述通信范围具体可以是蓝牙通信范围,所述无线通信协议可以是蓝牙通信协议。Optionally, the communication range may specifically be a Bluetooth communication range, and the wireless communication protocol may be a Bluetooth communication protocol.
可选的,确定模块62还用于接收所述目标设备通过所述访问令牌发送的令牌置换服务请求;根据所述令牌置换服务请求确定所述访问令牌对应的设备专用令牌,并将所述设备专用令牌发送至所述目标设备。Optionally, the determining
在本发明实施例中,提供的一种所述目标设备将所述访问令牌置换为设备专用令牌的方法,需要所述云端平台在接收到目标设备发送的令牌置换服务请求的情况下,将所述访问令牌置换为设备专用令牌,将所述设备专用令牌发送至所述目标设备。其中,所述设备专用令牌,用于目标设备根据设备专用令牌调用软件开发包的业务支持服务,通过业务支持服务对软件开发包进行支持。In the embodiment of the present invention, there is provided a method for the target device to replace the access token with a device-specific token, which requires the cloud platform to receive the token replacement service request sent by the target device , replacing the access token with a device-specific token, and sending the device-specific token to the target device. Wherein, 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 support the software development kit through the business support service.
可选的,确定模块62还用于调用设备过滤服务;通过所述设备过滤服务对所述第一设备列表中的智能设备进行过滤操作,以从所述第一设备列表中确定出第二设备列表。Optionally, the determining
在本发明实施例中,增加了所述云端平台提供一种设备过滤服务,通过所述设备过滤服务对从目标设备处接收到的所述第一设备列表中的目标设备进行过滤操作,就可以从所述第一设备列表中确定出第二设备列表。在确定出第二设备列表的情况下,将第二设备列表发送给应用端,应用端通过第二设备列表就可以实现目标设备的快速确定。In the embodiment of the present invention, the cloud platform is added to provide a device filtering service, through which the device filtering service performs a filtering operation on the target device in the first device list received from the target device, it can A second device list is determined from the first device list. When the second device list is determined, the second device list is sent to the application end, and the application end can quickly determine the target device through the second device list.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
进一步地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Further, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
S1,获取处于移动终端的通信范围内的第一设备列表;S1. Obtain a first device list within the communication range of the mobile terminal;
S2,将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;S2. Send the first device list to the 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 the second device list The indicated devices all support wireless communication protocols;
S3,接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。S3. Receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to the target device in the second device list, where the access token is used to indicate The target device sends a login request to the cloud platform through the access token, so as to implement a login operation of the target device.
进一步地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Further, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), mobile Various media that can store computer programs, such as hard disks, magnetic disks, or optical disks.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
进一步地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Further, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
进一步地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Further, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,获取处于移动终端的通信范围内的第一设备列表;S1. Obtain a first device list within the communication range of the mobile terminal;
S2,将所述第一设备列表发送至云端平台,其中,所述第一设备列表用于指示所述云端平台从所述第一设备列表中确定第二设备列表,所述第二设备列表中所指示的设备均支持无线通信协议;S2. Send the first device list to the 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 the second device list The indicated devices all support wireless communication protocols;
S3,接收所述云端平台发送的所述第二设备列表,并将所述移动终端对应的访问令牌发送至所述第二设备列表中的目标设备,其中,所述访问令牌用于指示所述目标设备通过所述访问令牌向云端平台发送登录请求,以实现所述目标设备的登录操作。S3. Receive the second device list sent by the cloud platform, and send the access token corresponding to the mobile terminal to the target device in the second device list, where the access token is used to indicate The target device sends a login request to the cloud platform through the access token, so as to implement a login operation of the target device.
进一步地,在本进一步地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Further, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details will not be repeated in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,进一步地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Furthermore, they may be implemented with program codes executable by a computing device, thus, they may be stored in a storage device to be executed by a computing device, and in some cases, may be executed in an order different from that here The steps shown or described are realized by making them into respective integrated circuit modules, or making multiple modules or steps among them into a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims (8)
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 for wireless access point, storage medium and electronic device |
CN114697359B (en) * | 2022-03-04 | 2024-03-22 | 青岛海尔科技有限公司 | Data collection methods and devices, storage media and electronic devices |
CN117641359B (en) * | 2022-08-17 | 2025-03-21 | 荣耀终端股份有限公司 | Data processing method and electronic device |
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 |
US11233649B2 (en) * | 2016-12-22 | 2022-01-25 | Huawei Technologies Co., Ltd. | 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 |
EP3820077A4 (en) * | 2018-09-03 | 2021-06-09 | Huawei Technologies Co., Ltd. | REGISTRATION PROCEDURE, TOKEN SEND PROCEDURE 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 |
---|---|---|
JP6941679B2 (en) | Network slice selection method, user equipment, and network equipment | |
CN113285810B (en) | Target equipment login method and device, storage medium and electronic device | |
JP6751094B2 (en) | Method, apparatus and system for supporting wireless communication | |
CN113826372B (en) | Method and electronic device for edge computing service | |
EP3016419B1 (en) | Method of changing profile using identification module and electronic device implementing same | |
KR20200007754A (en) | Method edge computing service and electronic device thereof | |
US10887745B2 (en) | Method and device for sharing file between different terminals | |
CN113259920B (en) | Household appliance product | |
US8515350B2 (en) | Resolving an application service change in a system using bluetooth | |
CN113259921B (en) | Household appliance product | |
CN108055339B (en) | Household appliance interconnection method and device, storage medium and cloud platform server | |
CN109041140B (en) | Method for rapidly switching wireless network, intelligent hardware and terminal equipment | |
CN102801800B (en) | Method and system for performing resource sharing processing among plurality of wireless terminals | |
CN111885115A (en) | Equipment binding change method and device | |
CN111885594A (en) | Equipment binding method and device | |
KR20200114957A (en) | Method edge computing service and electronic device thereof | |
JP2024515008A (en) | Electronic device and method for installing an embedded subscriber identity module profile in an electronic device - Patents.com | |
CN105636016A (en) | Method, apparatus, and system for network connection | |
CN107248890A (en) | Wireless communications method, device, storage medium and terminal | |
CN103415086A (en) | Method for achieving file transmission application based on mobile terminal private network | |
CN112738019A (en) | Method and device for displaying device information, storage medium and electronic device | |
CN107852598B (en) | Circumventing wireless device spatial tracking based on wireless device identifiers | |
WO2018010448A1 (en) | File transmission method and apparatus | |
CN106331163A (en) | A method and device for controlling a service platform | |
CN106160797A (en) | Pairing method and electronic device |
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 |