CN107294983B - Network connection method and device, user equipment and terminal - Google Patents
Network connection method and device, user equipment and terminal Download PDFInfo
- Publication number
- CN107294983B CN107294983B CN201710524056.0A CN201710524056A CN107294983B CN 107294983 B CN107294983 B CN 107294983B CN 201710524056 A CN201710524056 A CN 201710524056A CN 107294983 B CN107294983 B CN 107294983B
- Authority
- CN
- China
- Prior art keywords
- account information
- network account
- network
- router
- terminal
- 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
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- 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/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
本公开是关于一种网络连接方法、装置、用户设备及终端。所述网络连接方法包括:在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;接收所述终端返回的登录认证信息;在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。本公开技术方案可以极大的简化用户的操作,并且在网络账户密码包含用户隐私时,保护用户隐私,优化用户体验。
The present disclosure relates to a network connection method, device, user equipment and terminal. The network connection method includes: when it is detected that a terminal is connected to a terminal through a universal serial bus (USB) data line, sending first network account information to the terminal; receiving login authentication information returned by the terminal; When the second network account information in the information is consistent with the first network account information, a network connection is established with the terminal. The technical solution of the present disclosure can greatly simplify user operations, protect user privacy and optimize user experience when the network account password includes user privacy.
Description
技术领域technical field
本公开涉及通信技术领域,尤其涉及一种网络连接方法、装置、用户设备及终端。The present disclosure relates to the field of communication technologies, and in particular, to a network connection method, apparatus, user equipment, and terminal.
背景技术Background technique
相关技术中,对于非公共环境下的网络,终端通常需要通过认证的方式才能够连接上网。例如,在家庭中架设的路由器,用户在首次连接WiFi(Wireless Fidelity,无线保真)热点时,需要打开终端的WLAN(Wireless Local Area Networks,无线局域网)设置窗口,查找热点,并输入对应的认证密码,在路由器验证密码正确之后才能够连接该热点对应的网络。In the related art, for a network in a non-public environment, a terminal usually needs to be authenticated before being able to connect to the Internet. For example, for a router set up in a home, when a user connects to a WiFi (Wireless Fidelity) hotspot for the first time, he needs to open the WLAN (Wireless Local Area Networks) setting window of the terminal, search for the hotspot, and enter the corresponding authentication Password, the router can connect to the network corresponding to the hotspot only after the router verifies that the password is correct.
上述方式用户操作繁琐,还需要记忆或询问密码,操作过程容易出错;另一方面在访客向户主询问密码时,有时因密码涉及用户的隐私,例如家庭成员生日、重要纪念日等,这些信息并不方便告知他人,因而用户体验欠佳。The above methods are cumbersome for users to operate, and also need to memorize or ask for passwords, which is prone to errors; on the other hand, when a visitor asks the head of the household for a password, sometimes the password involves the user's privacy, such as family members' birthdays, important anniversaries, etc. It is inconvenient to tell others, so the user experience is not good.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开实施例提供一种网络连接方法、装置、用户设备及终端,用以简化终端联网的操作,加快终端联网的速度,优化上网体验。In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a network connection method, device, user equipment and terminal, which are used to simplify the operation of terminal networking, speed up the speed of terminal networking, and optimize the online experience.
根据本公开实施例的第一方面,提供一种网络连接方法,包括:According to a first aspect of the embodiments of the present disclosure, a network connection method is provided, including:
在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;sending the first network account information to the terminal when it is detected that the terminal is connected to the terminal through the universal serial bus USB data line;
接收所述终端返回的登录认证信息;receiving the login authentication information returned by the terminal;
在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。When the second network account information in the login authentication information is consistent with the first network account information, a network connection is established with the terminal.
在一实施例中,所述将第一网络账户信息发送给所述终端,包括:In an embodiment, the sending the first network account information to the terminal includes:
在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息;When more than one wireless access point is provided, read the first network account information of each wireless access point;
将各所述第一网络账户信息通过所述USB数据线发送给所述终端。Send each of the first network account information to the terminal through the USB data line.
在一实施例中,所述将第一网络账户信息发送给所述终端,包括:In an embodiment, the sending the first network account information to the terminal includes:
在提供的无线接入点多于一个时,读取预设的优先级;When more than one wireless access point is provided, read the preset priority;
确定优先级最高的无线接入点的第一网络账户信息;determining the first network account information of the wireless access point with the highest priority;
将确定的第一网络账户信息通过所述USB数据线发送给所述终端。Sending the determined first network account information to the terminal through the USB data line.
在一实施例中,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。In one embodiment, the first network account information and the second network account information include: a network account name and a network account password.
根据本公开实施例的第二方面,提供一种网络连接装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a network connection device, comprising:
在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;When it is detected that the router is connected to the router through the USB data cable, receiving the first network account information sent by the router through the USB data cable;
基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;Log in to the network based on the first network account information, and send the login authentication information carrying the second network account information to the router;
在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接。When the router determines that the second network account information is consistent with the first network account information, a network connection is established with the router.
在一实施例中,所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括:In an embodiment, the logging in to the network based on the first network account information and sending the login authentication information carrying the second network account information to the router includes:
在所述第一网络账户信息有多个时,显示多个所述第一网络账户信息;When there are multiple pieces of the first network account information, displaying multiple pieces of the first network account information;
基于检测到的选择操作对应的第一网络账户信息,自动登录网络;Automatically log in to the network based on the first network account information corresponding to the detected selection operation;
将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The network account information used for logging in to the network is carried in the login authentication information as the second network account information and sent to the router.
在一实施例中,所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括:In an embodiment, the logging in to the network based on the first network account information and sending the login authentication information carrying the second network account information to the router includes:
在所述第一网络账户信息有多个时,读取来自路由器的优先级与第一网络账户信息的对应关系;When there are multiple pieces of the first network account information, read the correspondence between the priority from the router and the first network account information;
基于优先级最高的第一网络账户信息,自动登录网络;Automatically log in to the network based on the first network account information with the highest priority;
将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The network account information used for logging in to the network is carried in the login authentication information as the second network account information and sent to the router.
在一实施例中,所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括:In an embodiment, the logging in to the network based on the first network account information and sending the login authentication information carrying the second network account information to the router includes:
在所述第一网络账户信息有多个时,确定各个所述第一网络账户信息对应的无线接入点的当前的信号强度;When there are multiple pieces of the first network account information, determine the current signal strength of the wireless access point corresponding to each of the first network account information;
基于信号强度最强的无线接入点的第一网络账户信息,自动登录网络;Automatically log in to the network based on the first network account information of the wireless access point with the strongest signal strength;
将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The network account information used for logging in to the network is carried in the login authentication information as the second network account information and sent to the router.
在一实施例中,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。In one embodiment, the first network account information and the second network account information include: a network account name and a network account password.
根据本公开实施例的第三方面,提供一种网络连接装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a network connection device, comprising:
第一发送模块,被配置为在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;a first sending module, configured to send the first network account information to the terminal when it is detected that the terminal is connected to the terminal through the universal serial bus (USB) data line;
第一接收模块,被配置为接收所述终端返回的登录认证信息;a first receiving module, configured to receive the login authentication information returned by the terminal;
第一连接模块,被配置为在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。The first connection module is configured to establish a network connection with the terminal when the second network account information in the login authentication information is consistent with the first network account information.
在一实施例中,所述第一发送模块包括:In one embodiment, the first sending module includes:
第一读取子模块,被配置为在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息;a first reading submodule, configured to read the first network account information of each wireless access point when more than one wireless access point is provided;
第一发送子模块,被配置为将各所述第一网络账户信息通过所述USB数据线发送给所述终端。The first sending submodule is configured to send each of the first network account information to the terminal through the USB data line.
在一实施例中,所述第一发送模块包括:In one embodiment, the first sending module includes:
第二读取子模块,被配置为在提供的无线接入点多于一个时,读取预设的优先级;The second reading submodule is configured to read the preset priority when more than one wireless access point is provided;
第一确定子模块,被配置为确定优先级最高的无线接入点的第一网络账户信息;a first determining submodule, configured to determine the first network account information of the wireless access point with the highest priority;
第二发送子模块,被配置为将确定的第一网络账户信息通过所述USB数据线发送给所述终端。The second sending submodule is configured to send the determined first network account information to the terminal through the USB data line.
在一实施例中,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。In one embodiment, the first network account information and the second network account information include: a network account name and a network account password.
根据本公开实施例的第四方面,提供一种网络连接装置,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a network connection device, comprising:
第二接收模块,被配置为在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;The second receiving module is configured to receive the first network account information sent by the router through the USB data cable when it is detected that the router is connected to the router through the USB data cable;
第二发送模块,被配置为基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;A second sending module, configured to log in to the network based on the first network account information, and send the login authentication information carrying the second network account information to the router;
第二连接模块,被配置为在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接。The second connection module is configured to establish a network connection with the router when the router determines that the second network account information is consistent with the first network account information.
在一实施例中,所述第二发送模块包括:In one embodiment, the second sending module includes:
显示子模块,被配置为在所述第一网络账户信息有多个时,显示多个所述第一网络账户信息;a display submodule, configured to display multiple pieces of the first network account information when there are multiple pieces of the first network account information;
第一登录子模块,被配置为基于检测到的选择操作对应的第一网络账户信息,自动登录网络;a first login submodule, configured to automatically log in to the network based on the first network account information corresponding to the detected selection operation;
第三发送子模块,被配置为将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The third sending submodule is configured to carry the network account information used for logging in to the network as the second network account information in the login authentication information and send it to the router.
在一实施例中,所述第二发送模块包括:In one embodiment, the second sending module includes:
第三读取子模块,被配置为在所述第一网络账户信息有多个时,读取预存储的优先级与第一网络账户信息的对应关系;The third reading submodule is configured to read the correspondence between the pre-stored priority and the first network account information when there is a plurality of the first network account information;
第二登录子模块,被配置为基于优先级最高的第一网络账户信息,自动登录网络;The second login sub-module is configured to automatically log in to the network based on the first network account information with the highest priority;
第四发送子模块,被配置为将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The fourth sending sub-module is configured to carry the network account information used for logging in to the network as the second network account information in the login authentication information and send it to the router.
在一实施例中,所述第二发送模块包括:In one embodiment, the second sending module includes:
第二确定子模块,被配置为在所述第一网络账户信息有多个时,确定各个所述第一网络账户信息对应的无线接入点的当前的信号强度;a second determining submodule, configured to determine the current signal strength of the wireless access point corresponding to each of the first network account information when there is a plurality of first network account information;
第三登录子模块,被配置为基于信号强度最强的无线接入点的第一网络账户信息,自动登录网络;The third login sub-module is configured to automatically log in to the network based on the first network account information of the wireless access point with the strongest signal strength;
第四发送子模块,被配置为将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The fourth sending sub-module is configured to carry the network account information used for logging in to the network as the second network account information in the login authentication information and send it to the router.
在一实施例中,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。In one embodiment, the first network account information and the second network account information include: a network account name and a network account password.
根据本公开实施例的第五方面,提供一种用户设备,包括:According to a fifth aspect of the embodiments of the present disclosure, a user equipment is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;sending the first network account information to the terminal when it is detected that the terminal is connected to the terminal through the universal serial bus USB data line;
接收所述终端返回的登录认证信息;receiving the login authentication information returned by the terminal;
在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。When the second network account information in the login authentication information is consistent with the first network account information, a network connection is established with the terminal.
根据本公开实施例的第六方面,提供一种终端,包括:According to a sixth aspect of the embodiments of the present disclosure, a terminal is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;When it is detected that the router is connected to the router through the USB data cable, receiving the first network account information sent by the router through the USB data cable;
基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;Log in to the network based on the first network account information, and send the login authentication information carrying the second network account information to the router;
在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接。When the router determines that the second network account information is consistent with the first network account information, a network connection is established with the router.
根据本公开实施例的第七方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:According to a seventh aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;sending the first network account information to the terminal when it is detected that the terminal is connected to the terminal through the universal serial bus USB data line;
接收所述终端返回的登录认证信息;receiving the login authentication information returned by the terminal;
在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。When the second network account information in the login authentication information is consistent with the first network account information, a network connection is established with the terminal.
根据本公开实施例的第八方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;When it is detected that the router is connected to the router through the USB data cable, receiving the first network account information sent by the router through the USB data cable;
基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;Log in to the network based on the first network account information, and send the login authentication information carrying the second network account information to the router;
在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接。When the router determines that the second network account information is consistent with the first network account information, a network connection is established with the router.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开中的路由器在检测到与终端通过USB数据线建立连接时,将网络账户信息发送给终端,以使终端基于接收到的网络账户信息自动登录网络。本实施例通过上述技术方案,用户只需将终端与路由器通过USB数据线进行连接,路由器就可以将网络账户信息发送给终端进行自动登录,与相关技术中用户需人工获取网络账户信息并手动输入以进行网络验证和登录相比,本公开实施例提供的方法极大的简化了用户的操作,并且在网络账户密码包含用户隐私时,避免直接提及密码的尴尬,优化用户体验。The router in the present disclosure sends network account information to the terminal when detecting that the connection is established with the terminal through the USB data line, so that the terminal automatically logs in to the network based on the received network account information. In this embodiment, through the above technical solutions, the user only needs to connect the terminal and the router through a USB data cable, and the router can send the network account information to the terminal for automatic login. In the related art, the user needs to manually obtain the network account information and manually input it. Compared with network authentication and login, the method provided by the embodiments of the present disclosure greatly simplifies the user's operation, and when the network account password includes user privacy, the embarrassment of directly mentioning the password is avoided, and the user experience is optimized.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1A是根据一示例性实施例示出的一种网络连接方法的流程图。Fig. 1A is a flow chart of a method for network connection according to an exemplary embodiment.
图1B是根据一示例性实施例示出的一种网络连接方法的场景图。FIG. 1B is a scene diagram illustrating a network connection method according to an exemplary embodiment.
图2是根据一示例性实施例示出的另一种网络连接方法的流程图。Fig. 2 is a flow chart of another network connection method according to an exemplary embodiment.
图3是根据一示例性实施例示出的另一种网络连接方法的流程图。Fig. 3 is a flow chart of another network connection method according to an exemplary embodiment.
图4是根据一示例性实施例示出的另一种网络连接方法的流程图。Fig. 4 is a flow chart of another network connection method according to an exemplary embodiment.
图5是根据一示例性实施例示出的另一种网络连接方法的流程图。Fig. 5 is a flow chart of another network connection method according to an exemplary embodiment.
图6是根据一示例性实施例示出的另一种网络连接方法的流程图。Fig. 6 is a flowchart showing another network connection method according to an exemplary embodiment.
图7是根据一示例性实施例示出的另一种网络连接方法的流程图。Fig. 7 is a flow chart of another network connection method according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种网络连接装置的框图。Fig. 8 is a block diagram of a network connection apparatus according to an exemplary embodiment.
图9是根据一示例性实施例示出的另一种网络连接装置的框图。Fig. 9 is a block diagram of another network connection apparatus according to an exemplary embodiment.
图10是根据一示例性实施例示出的另一种网络连接装置的框图。Fig. 10 is a block diagram of another network connection apparatus according to an exemplary embodiment.
图11是根据一示例性实施例示出的另一种网络连接装置的框图。Fig. 11 is a block diagram of another network connection apparatus according to an exemplary embodiment.
图12是根据一示例性实施例示出的另一种网络连接装置的框图。Fig. 12 is a block diagram of another network connection apparatus according to an exemplary embodiment.
图13是根据一示例性实施例示出的另一种网络连接装置的框图。Fig. 13 is a block diagram of another network connection apparatus according to an exemplary embodiment.
图14是根据一示例性实施例示出的另一种网络连接装置的框图。Fig. 14 is a block diagram of another network connection apparatus according to an exemplary embodiment.
图15是根据一示例性实施例示出的一种适用于网络连接装置的框图。Fig. 15 is a block diagram showing a device suitable for network connection according to an exemplary embodiment.
图16是根据一示例性实施例示出的另一种适用于网络连接装置的框图。FIG. 16 is a block diagram of another apparatus suitable for network connection according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.
图1A是根据一示例性实施例示出的一种网络连接方法的流程图,图1B是根据一示例性实施例示出的一种网络连接方法的场景图;该网络连接方法可以应用在用户设备例如路由器上。如图1A所示,该网络连接方法包括以下步骤101-103:FIG. 1A is a flowchart of a network connection method according to an exemplary embodiment, and FIG. 1B is a scene diagram of a network connection method according to an exemplary embodiment; the network connection method can be applied to user equipment such as on the router. As shown in FIG. 1A, the network connection method includes the following steps 101-103:
在步骤101中,在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给终端。In
在一实施例中,路由器中设置了USB(Universal Serial Bus,通用串行总线)模块,并提供USB接口,以通过USB数据线连接终端。In one embodiment, a USB (Universal Serial Bus, Universal Serial Bus) module is set in the router, and a USB interface is provided to connect the terminal through a USB data line.
在一实施例中,路由器通过USB模块检测是否连接至终端。路由器通过USB数据线连接至终端时,终端将MAC(Medium Access Control,媒体访问控制)地址通过USB数据线发送至路由器,路由器检查其记录的设备列表,如果该MAC地址已记录在设备列表中,则说明路由器与终端连接成功。In one embodiment, the router detects whether it is connected to the terminal through the USB module. When the router is connected to the terminal through a USB data cable, the terminal sends the MAC (Medium Access Control, media access control) address to the router through the USB data cable, and the router checks its recorded device list. If the MAC address has been recorded in the device list, It means that the connection between the router and the terminal is successful.
在一实施例中,路由器将所提供的无线接入点的网络账户名称、网络账户密码等第一网络账户信息通过USB数据线发送给终端,以使终端能够基于第一网络账户信息自动登录连接网络。In one embodiment, the router sends the provided first network account information such as the network account name and network account password of the wireless access point to the terminal through the USB data cable, so that the terminal can automatically log in and connect based on the first network account information. network.
在一实施例中,路由器可能提供一个以上的无线接入点,那么每个无线接入点都有对应的第一网络账户信息,路由器可以基于预设的规则选取其中一个无线接入点的第一网络账户信息发送给终端,也可以将全部的第一网络账户信息都发送给终端,由用户自行选择要连接的网络。In an embodiment, the router may provide more than one wireless access point, then each wireless access point has corresponding first network account information, and the router can select the first network account information of one of the wireless access points based on preset rules. One network account information is sent to the terminal, or all the first network account information may be sent to the terminal, and the user selects the network to be connected by himself.
在步骤102中,接收终端返回的登录认证信息。In
在一实施例中,终端通过USB数据线接收到第一网络账户信息时,基于第一网络账户信息自动登录网络,生成携带有第二网络账户信息的登录认证信息,并发送给路由器。通常,由于终端是基于第一网络账户信息自动登录,因而第二网络账户信息即第一网络账户信息,但是为分别描述终端侧和路由器侧发出的网络账户信息,本实施例中以第一网络账户信息和第二网络账户信息进行区分。In one embodiment, when the terminal receives the first network account information through the USB data line, it automatically logs in to the network based on the first network account information, generates login authentication information carrying the second network account information, and sends it to the router. Usually, since the terminal automatically logs in based on the first network account information, the second network account information is the first network account information, but in order to describe the network account information sent by the terminal side and the router side respectively, in this embodiment, the first network account information is used. The account information and the second network account information are distinguished.
在步骤103中,在登录认证信息中的第二网络账户信息与第一网络账户信息一致时,与所述终端建立网络连接。In
在一实施例中,路由器接收到终端发送的第二网络账户信息,进行验证,在终端发送的第二网络账户信息与路由器提供的第一网络账户信息一致时,确认认证通过,从而与终端之间建立网络连接。路由器与终端之间建立网络连接的过程与相关技术中相同,在此不再赘述。In one embodiment, the router receives the second network account information sent by the terminal, and performs verification. When the second network account information sent by the terminal is consistent with the first network account information provided by the router, it confirms that the authentication is passed, so as to communicate with the terminal. establish a network connection. The process of establishing a network connection between the router and the terminal is the same as that in the related art, and will not be repeated here.
在一实施例中,在路由器通过USB数据线连接至终端时,终端上可以给出模式选项,模式可以包括例如充电模式、自动联网模式、数据传输模式等,在本公开实施例中,用户可以选择自动联网模式,从而路由器将第一网络账户信息发送给终端。In one embodiment, when the router is connected to the terminal through a USB data cable, the terminal can provide mode options, and the modes can include, for example, charging mode, automatic networking mode, data transmission mode, etc. In this embodiment of the present disclosure, the user can The automatic networking mode is selected, so that the router sends the first network account information to the terminal.
在一示例性场景中,如图1B所示,以路由器提供一个无线接入点为例进行示例性说明,在图1B所示的场景中,包括:作为终端的智能手机,以及作为用户设备的路由器。In an exemplary scenario, as shown in FIG. 1B , a wireless access point provided by a router is taken as an example for illustration. In the scenario shown in FIG. router.
其中,路由器中设置有USB模块,及USB接口,USB接口通过USB数据线能够连接至智能手机。在路由器检测到通过USB数据线连接至智能手机时,将所提供的无线接入点的第一网络账户名称及第一网络账户密码发送给智能手机,智能手机自动在网络登录界面中输入第一网络账户名称及第一网络账户密码,并在检测到用户点击了确认按钮之后,生成携带有输入的第二网络账户信息的登录认证信息发给路由器,路由器检测第二网络账户信息是否与第一网络账户信息一致,在判断为一致时,与终端之间建立网络连接。The router is provided with a USB module and a USB interface, and the USB interface can be connected to a smartphone through a USB data cable. When the router detects that it is connected to the smartphone through the USB data cable, it sends the provided first network account name and first network account password of the wireless access point to the smartphone, and the smartphone automatically enters the first network account in the network login interface. The name of the network account and the password of the first network account, and after detecting that the user has clicked the confirmation button, the login authentication information carrying the inputted second network account information is generated and sent to the router, and the router detects whether the second network account information is consistent with the first network account information. The network account information is consistent, and when it is determined to be consistent, a network connection is established with the terminal.
具体如何建立网络连接的,请参考后续实施例。For details on how to establish a network connection, please refer to subsequent embodiments.
至此,本公开实施例提供的上述方法,用户只需将终端与路由器通过USB数据线进行连接,路由器就可以将网络账户信息发送给终端进行自动登录,与相关技术中用户需人工获取网络账户信息并手动输入以进行网络验证和登录相比,本公开实施例提供的方法极大的简化了用户的操作,并且在网络账户密码包含用户隐私时,避免直接提及密码的尴尬,优化用户体验。So far, in the above-mentioned method provided by the embodiments of the present disclosure, the user only needs to connect the terminal and the router through the USB data cable, and the router can send the network account information to the terminal for automatic login, and the user needs to manually obtain the network account information in the related art. Compared with manual input for network verification and login, the method provided by the embodiment of the present disclosure greatly simplifies the user's operation, and when the network account password includes user privacy, the embarrassment of directly mentioning the password is avoided, and the user experience is optimized.
下面以具体实施例来说明本公开实施例提供的技术方案。The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
图2是根据一示例性实施例示出的另一种网络连接方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何将第一网络账户信息发送给所述终端为例进行示例性说明,如图2所示,包括如下步骤201-202:FIG. 2 is a flowchart of another network connection method according to an exemplary embodiment; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure, and takes how to send the first network account information to the terminal as an example. An exemplary illustration, as shown in Figure 2, includes the following steps 201-202:
在步骤201中,在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息。In
在一实施例中,一个路由器能够提供多个无线接入点,每个无线接入点都各自具有第一网络账户信息,因而路由器读取各无线接入点的第一网络账户信息。In one embodiment, a router can provide multiple wireless access points, and each wireless access point has first network account information, so the router reads the first network account information of each wireless access point.
在步骤202中,将各第一网络账户信息通过USB数据线发送给终端。In
本公开实施例中,路由器将所提供的各个无线接入点的第一网络账户信息都发送给终端,由终端侧决定要接入的网络。In the embodiment of the present disclosure, the router sends the provided first network account information of each wireless access point to the terminal, and the terminal side determines the network to be accessed.
本实施例中,在路由器提供的无线接入点多于一个时,将各无线接入点的网络账户信息都通过USB数据线发送给终端,由终端的用户来决定接入哪个无线接入点,满足用户的个性化需求,优化用户体验。In this embodiment, when more than one wireless access point is provided by the router, the network account information of each wireless access point is sent to the terminal through the USB data cable, and the user of the terminal decides which wireless access point to access. , to meet the personalized needs of users and optimize the user experience.
图3是根据一示例性实施例示出的另一种网络连接方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何将第一网络账户信息发送给终端为例进行示例性说明,如图3所示,包括如下步骤301-303:FIG. 3 is a flow chart of another network connection method according to an exemplary embodiment; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure, and takes how to send the first network account information to the terminal as an example to illustrate Description, as shown in Figure 3, includes the following steps 301-303:
在步骤301中,在提供的无线接入点多于一个时,读取预设的优先级。In
在一个实施例中,路由器中可以预先存储有各个无线接入点的优先级,优先级越高,表示优先接入该无线接入点提供的网络。路由器可以基于网络信号等参数来综合评判和设置无线接入点的优先级。In one embodiment, the priority of each wireless access point may be pre-stored in the router, and the higher the priority, the priority to access the network provided by the wireless access point. The router can comprehensively evaluate and set the priority of wireless access points based on parameters such as network signals.
在步骤302中,确定优先级最高的无线接入点的第一网络账户信息。In
在一实施例中,确定了最高优先级对应的无线接入点之后,读取该无线接入点的第一网络账户信息。In one embodiment, after the wireless access point corresponding to the highest priority is determined, the first network account information of the wireless access point is read.
在步骤303中,将确定的第一网络账户信息通过USB数据线发送给终端。In
本实施例中,通过上述步骤301-303,基于预设的无线接入点的优先级来确定终端要接入的网络,能够保证终端接入综合性能最好的无线接入点,保证用户良好的上网体验。In this embodiment, through the above steps 301-303, the network to be accessed by the terminal is determined based on the preset priority of the wireless access point, which can ensure that the terminal accesses the wireless access point with the best comprehensive performance, and ensures that the user is good Internet experience.
图4是根据一示例性实施例示出的另一种网络连接方法的流程图;该网络连接方法可以应用在终端上,本公开中的终端可以是任何具有上网功能的智能终端,例如,可以具体为手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)等。其中,终端可以通过无线局域网接入路由器,并通过路由器访问公网上的服务器。如图4所示,本实施例结合图1B进行示例性说明,该网络连接方法包括以下步骤401-403:FIG. 4 is a flowchart of another network connection method according to an exemplary embodiment; the network connection method can be applied to a terminal, and the terminal in the present disclosure can be any intelligent terminal with Internet access function. For mobile phones, tablet computers, PDA (Personal Digital Assistant, personal digital assistant) and so on. The terminal can access the router through the wireless local area network, and access the server on the public network through the router. As shown in FIG. 4 , this embodiment is exemplarily described with reference to FIG. 1B , and the network connection method includes the following steps 401-403:
在步骤401中,在检测到通过USB数据线连接至路由器时,接收路由器通过USB数据线发送的第一网络账户信息。In
在一实施例中,结合上述实施例的记载可知,在通过USB数据线连至路由器时,路由器向终端发送网络账户信息。In one embodiment, it can be known from the descriptions of the above-mentioned embodiments that when connecting to the router through a USB data cable, the router sends the network account information to the terminal.
在步骤402中,基于第一网络账户信息登录网络,向路由器发送携带有第二网络账户信息的登录认证信息。In
在一实施例中,终端接收到路由器发送的第一网络账户信息之后,在屏幕上显示网络登录界面,网络登录界面可以包括网络账户名称输入框及网络账户密码输入框,本公开实施例中,无需用户手动输入,终端直接基于接收到的第一网络账户信息将网络账户名称及网络账户密码输入到对应的输入框中。In one embodiment, after receiving the first network account information sent by the router, the terminal displays a network login interface on the screen. The network login interface may include a network account name input box and a network account password input box. In this embodiment of the present disclosure, Without manual input by the user, the terminal directly inputs the network account name and the network account password into the corresponding input box based on the received first network account information.
在一实施例中,在网络登录界面上还可以显示有确认按钮,在终端自动输入网络账户名称及网络账户密码之后,如果检测到用户点击了确认按钮,则基于输入的第二网络账户信息生成登录认证信息,并发送给路由器进行认证。In one embodiment, a confirmation button may also be displayed on the network login interface. After the terminal automatically inputs the network account name and the network account password, if it is detected that the user clicks the confirmation button, the second network account information is generated based on the inputted second network account information. Log in the authentication information and send it to the router for authentication.
在步骤403中,在路由器判断为第二网络账户信息与第一网络账户信息一致时,与路由器建立网络连接。In
在一实施例中,路由器提取登录认证信息中的第二网络账户信息,并判断第二网络账户信息是否与发送给终端的第一网络账户信息一致,如果二者一致,则认证通过,终端与路由器之间建立网络连接,终端接入第一网络账户信息对应的网络。In one embodiment, the router extracts the second network account information in the login authentication information, and judges whether the second network account information is consistent with the first network account information sent to the terminal. A network connection is established between the routers, and the terminal accesses the network corresponding to the first network account information.
具体如何建立网络连接的,请参考后续实施例。For details on how to establish a network connection, please refer to subsequent embodiments.
至此,本公开实施例提供的上述方法,用户只需将USB数据线连接路由器及终端,就能够接收到路由器发送的第一网络账户信息,并基于第一网络账户信息自动登录网络。不仅可以简化用户通过终端接入网络的操作过程,而且加快接入网络的速度,避免咨询含有用户隐私的网络账户信息带来的尴尬,优化用户体验。So far, with the above methods provided by the embodiments of the present disclosure, the user only needs to connect the USB data cable to the router and the terminal, then the user can receive the first network account information sent by the router, and automatically log in to the network based on the first network account information. It can not only simplify the operation process of users accessing the network through the terminal, but also speed up the speed of accessing the network, avoid the embarrassment caused by consulting network account information containing user privacy, and optimize the user experience.
下面以具体实施例来说明本公开实施例提供的技术方案。The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
图5是根据一示例性实施例示出的另一种网络连接方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何向路由器发送携带有第二网络账户信息的登录认证信息为例进行示例性说明,如图5所示,包括如下步骤501-503:FIG. 5 is a flowchart of another network connection method according to an exemplary embodiment; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure to send the login authentication information carrying the second network account information to the router. As an example to illustrate, as shown in FIG. 5, the following steps 501-503 are included:
在步骤501中,在第一网络账户信息有多个时,显示多个第一网络账户信息。In
在一实施例中,路由器可以提供多个无线接入点,并且路由器将各无线接入点的第一网络账户信息都发送给终端,由终端自主选择要接入的网络。In an embodiment, the router may provide multiple wireless access points, and the router sends the first network account information of each wireless access point to the terminal, and the terminal autonomously selects the network to be accessed.
在步骤502中,基于检测到的选择操作对应的第一网络账户信息,自动登录网络。In
在一实施例中,在终端接收到多个第一网络账户信息的情况下,可以在屏幕上显示各个第一网络账户信息,用户通过例如勾选的方式选择要接入的网络,在终端检测到用户的选择操作时,基于该选择操作对应的网络账户信息自动登录网络。In an embodiment, when the terminal receives a plurality of first network account information, the information of each first network account may be displayed on the screen, and the user selects the network to be accessed by, for example, checking a box, and detects the information on the terminal. When the user's selection operation is reached, the network is automatically logged in based on the network account information corresponding to the selection operation.
在步骤503中,将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给路由器。In
本实施例中,通过上述步骤501-503,在终端接收到多个第一网络账户信息时,基于检测到的用户的选择操作对应的第一网络账户信息自动登录网络,满足用户的个性化需求,优化用户上网体验。In this embodiment, through the above steps 501-503, when the terminal receives a plurality of first network account information, the terminal automatically logs in to the network based on the first network account information corresponding to the detected user's selection operation, so as to meet the personalized needs of the user , optimize the user's online experience.
图6是根据一示例性实施例示出的另一种网络连接方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何向路由器发送携带有第二网络账户信息的登录认证信息为例进行示例性说明,如图6所示,包括如下步骤601-603:FIG. 6 is a flowchart of another network connection method according to an exemplary embodiment; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure to send the login authentication information carrying the second network account information to the router. As an example to illustrate, as shown in FIG. 6, the following steps 601-603 are included:
在步骤601中,在第一网络账户信息有多个时,读取来自路由器的优先级与第一网络账户信息的对应关系。In
在一实施例中,终端还可以接收到路由器发送的各无线接入点的优先级,例如优先级与各第一网络账户信息的对应关系,例如第一网络账户信息A的优先级最高,第一网络账户信息B的优先级次之,第一网络账户信息C的优先级最低。In one embodiment, the terminal may also receive the priority of each wireless access point sent by the router, for example, the correspondence between the priority and each first network account information, for example, the first network account information A has the highest priority, and the first network account information A has the highest priority, and the first network account information A has the highest priority. The first network account information B has the next priority, and the first network account information C has the lowest priority.
在步骤602中,基于优先级最高的第一网络账户信息,自动登录网络。In
在一实施例中,终端可以选择优先级最高的第一网络账户信息A登录网络。In an embodiment, the terminal may select the first network account information A with the highest priority to log in to the network.
在步骤603中,将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给路由器。In
在一实施例中,终端在登录界面中自动输入了优先级最高的第一网络账户信息,且检测到用户点击了确认按钮之后,生成携带有第二网络账户信息的登录认证信息,其中第二网络账户信息是终端基于第一网络账户信息输入到登录界面的输入框中的网络账户信息。In one embodiment, the terminal automatically inputs the first network account information with the highest priority in the login interface, and after detecting that the user clicks the confirmation button, generates login authentication information carrying the second network account information, wherein the second network account information is generated. The network account information is the network account information that the terminal inputs into the input box of the login interface based on the first network account information.
本实施例中,通过上述步骤601-603,终端可以基于来自路由器的优先级与各第一网络账户信息的对应关系,选择希望接入的网络,并自动登录,通常优先级越高,网络的综合质量越好,因而通过优先级能够选择上网体验最好的网络。In this embodiment, through the above steps 601-603, the terminal can select the network it wants to access based on the corresponding relationship between the priority from the router and the account information of each first network, and log in automatically. Generally, the higher the priority, the higher the network. The better the overall quality, the network with the best surfing experience can be selected by priority.
图7是根据一示例性实施例示出的另一种网络连接方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息为例进行示例性说明,如图7所示,包括如下步骤701-703:FIG. 7 is a flowchart of another network connection method according to an exemplary embodiment; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure to learn how to log in to the network based on the first network account information, and report to the The router sends the login authentication information carrying the second network account information as an example for illustrative illustration, as shown in FIG. 7 , including the following steps 701-703:
在步骤701中,在第一网络账户信息有多个时,确定各个第一网络账户信息对应的无线接入点的当前的信号强度。In
在一实施例中,终端还可以基于无线接入点的信号强度来确定要接入的网络。In an embodiment, the terminal may also determine the network to be accessed based on the signal strength of the wireless access point.
在步骤702中,基于信号强度最强的无线接入点的第一网络账户信息,自动登录网络。In
在一实施例中,终端可以选择信号强度最强的无线接入点的第一网络账户信息进行自动登录。In an embodiment, the terminal may select the first network account information of the wireless access point with the strongest signal strength to perform automatic login.
在步骤703中,将登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给路由器。In
在一实施例中,终端在登录界面中自动输入了信号强度最强的第一网络账户信息,且检测到用户点击了确认按钮之后,生成携带有第二网络账户信息的登录认证信息,其中第二网络账户信息是终端基于第一网络账户信息输入到登录界面的输入框中的网络账户信息。In one embodiment, the terminal automatically inputs the first network account information with the strongest signal strength in the login interface, and after detecting that the user clicks the confirmation button, generates login authentication information carrying the second network account information, wherein the first network account information is generated. The second network account information is the network account information that the terminal inputs into the input box of the login interface based on the first network account information.
本实施例中,通过上述步骤701-703,在路由器提供的无线接入点有多个时,终端基于网络信号最强的无线接入点的第一网络账户信息进行登录,以接入信号最强的网络,保证用户的网络信号质量,优化用户的上网体验。In this embodiment, through the above steps 701-703, when there are multiple wireless access points provided by the router, the terminal logs in based on the first network account information of the wireless access point with the strongest network signal, and uses the wireless access point with the strongest network signal to log in. A strong network ensures the quality of the user's network signal and optimizes the user's Internet experience.
图8是根据一示例性实施例示出的一种网络连接装置的框图,如图8所示,该网络连接装置可以包括:第一发送模块810、第一接收模块820和第一连接模块830。FIG. 8 is a block diagram of a network connection apparatus according to an exemplary embodiment. As shown in FIG. 8 , the network connection apparatus may include: a
第一发送模块810,被配置为在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;The
第一接收模块820,被配置为接收所述终端基于第一发送模块810发送的第一网络账户信息返回的登录认证信息;The
第一连接模块830,被配置为在第一接收模块820接收的登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。The
图9是根据一示例性实施例示出的另一种网络连接装置的框图,如图9所示,在上述图8实施例的基础上,在一实施例中,第一发送模块810可以包括:第一读取子模块811和第一发送子模块812。FIG. 9 is a block diagram of another network connection apparatus according to an exemplary embodiment. As shown in FIG. 9 , on the basis of the foregoing embodiment in FIG. 8 , in an embodiment, the
第一读取子模块811,被配置为在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息;The
第一发送子模块812,被配置为将第一读取子模块811读取的各第一网络账户信息通过所述USB数据线发送给所述终端。The first sending sub-module 812 is configured to send each first network account information read by the
图10是根据一示例性实施例示出的另一种网络连接装置的框图,如图10所示,在上述图8实施例的基础上,在一实施例中,第一发送模块810可以包括:第二读取子模块813、第一确定子模块814和第二发送子模块815。FIG. 10 is a block diagram of another network connection apparatus according to an exemplary embodiment. As shown in FIG. 10 , on the basis of the foregoing embodiment in FIG. 8 , in an embodiment, the
第二读取子模块813,被配置为在提供的无线接入点多于一个时,读取预设的优先级;The
第一确定子模块814,被配置为确定优先级最高的无线接入点的第一网络账户信息;The first determining
第二发送子模块815,被配置为将第一确定子模块814确定的第一网络账户信息通过所述USB数据线发送给所述终端。The second sending sub-module 815 is configured to send the first network account information determined by the first determining sub-module 814 to the terminal through the USB data line.
上述实施例中,第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。In the above embodiment, the first network account information and the second network account information include: network account name and network account password.
图11是根据一示例性实施例示出的另一种网络连接装置的框图,如图11所示,网络连接装置包括:第二接收模块910、第二发送模块920和第二连接模块930。FIG. 11 is a block diagram of another network connection apparatus according to an exemplary embodiment. As shown in FIG. 11 , the network connection apparatus includes: a
第二接收模块910,被配置为在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;The
第二发送模块920,被配置为基于第二接收模块910接收的第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;The
第二连接模块930,被配置为在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与路由器建立网络连接。The
图12是根据一示例性实施例示出的另一种网络连接装置的框图,如图12所示,在上述图11实施例的基础上,在一实施例中,第二发送模块920可以包括:显示子模块921、第一登录子模块922和第三发送子模块923。FIG. 12 is a block diagram of another network connection apparatus according to an exemplary embodiment. As shown in FIG. 12 , on the basis of the foregoing embodiment in FIG. 11 , in an embodiment, the
显示子模块921,被配置为在所述第一网络账户信息有多个时,显示多个所述第一网络账户信息;The
第一登录子模块922,被配置为基于检测到的选择操作对应的第一网络账户信息,自动登录网络;The
第三发送子模块923,被配置为将登录网络使用的网络账户信息作为第二网络账户信息携带在认证信息中发送给所述路由器。The third sending
图13是根据一示例性实施例示出的另一种网络连接装置的框图,如图13所示,在上述图11所示实施例的基础上,在一实施例中,第二发送模块920可以包括:第三读取子模块924、第二登录子模块925和第四发送子模块926。FIG. 13 is a block diagram of another network connection apparatus according to an exemplary embodiment. As shown in FIG. 13 , on the basis of the embodiment shown in FIG. 11 above, in an embodiment, the
第三读取子模块924,被配置为在所述第一网络账户信息有多个时,读取预存储的优先级与第一网络账户信息的对应关系;The
第二登录子模块925,被配置为基于第三读取子模块924读取的优先级最高的第一网络账户信息,自动登录网络;The
第四发送子模块926,被配置为将第二登录子模块925登录网络使用的网络账户信息作为第二网络账户信息携带在认证信息中发送给所述路由器。The fourth sending
图14是根据一示例性实施例示出的另一种网络连接装置的框图,如图14所示,在上述图11实施例的基础上,在一实施例中,第二发送模块920可以包括:第二确定子模块927、第三登录子模块928和第四发送子模块929。FIG. 14 is a block diagram of another network connection apparatus according to an exemplary embodiment. As shown in FIG. 14 , on the basis of the foregoing embodiment in FIG. 11 , in an embodiment, the
第二确定子模块927,被配置为在所述第一网络账户信息有多个时,确定各个所述第一网络账户信息对应的无线接入点的当前的信号强度;The
第三登录子模块928,被配置为基于信号强度最强的无线接入点的第一网络账户信息,自动登录网络;The
第四发送子模块929,被配置为将第三登录子模块928登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The fourth sending
在上述实施例中,第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。In the above embodiment, the first network account information and the second network account information include: a network account name and a network account password.
如图15所示,图15是根据一示例性实施例示出的一种用于网络连接装置1500的一结构示意图。例如,装置1500可以被提供为一路由设备。参照图15,装置1500包括处理组件1522,其进一步包括一个或多个处理器,以及由存储器1532所代表的存储器资源,用于存储可由处理部件1522的执行的指令,例如应用程序。存储器1532中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1522被配置为执行指令,以执行上述网络连接的方法。As shown in FIG. 15 , FIG. 15 is a schematic structural diagram of a
装置1500还可以包括一个电源组件1526被配置为执行装置1500的电源管理,一个有线或无线网络接口1550被配置为将装置1500连接到网络,和一个输入输出(I/O)接口1558。装置1500可以操作基于存储在存储器1532的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The
图16是根据一示例性实施例示出的另一种适用于网络连接装置的框图。例如,装置1600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等用户设备。FIG. 16 is a block diagram of another apparatus suitable for network connection according to an exemplary embodiment. For example,
参照图16,装置1600可以包括以下一个或多个组件:处理组件1602,存储器1604,电源组件1606,多媒体组件1608,音频组件1610,输入/输出(I/O)的接口1612,传感器组件1614,以及通信组件1616。16, the
处理组件1602通常控制装置1600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1602可以包括一个或多个处理器1620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1602可以包括一个或多个模块,便于处理组件1602和其他组件之间的交互。例如,处理部件1602可以包括多媒体模块,以方便多媒体组件1608和处理组件1602之间的交互。The
存储器1604被配置为存储各种类型的数据以支持在设备1600的操作。这些数据的示例包括用于在装置1600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件1606为装置1600的各种组件提供电力。电力组件1606可以包括电源管理系统,一个或多个电源,及其他与为装置1600生成、管理和分配电力相关联的组件。
多媒体组件1608包括在所述装置1600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1608包括一个前置摄像头和/或后置摄像头。当设备1600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1610被配置为输出和/或输入音频信号。例如,音频组件1610包括一个麦克风(MIC),当装置1600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1604或经由通信组件1616发送。在一些实施例中,音频组件1610还包括一个扬声器,用于输出音频信号。
I/O接口1612为处理组件1602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件1614包括一个或多个传感器,用于为装置1600提供各个方面的状态评估。例如,传感器组件1614可以检测到设备1600的打开/关闭状态,组件的相对定位,例如所述组件为装置1600的显示器和小键盘,传感器组件1614还可以检测装置1600或装置1600一个组件的位置改变,用户与装置1600接触的存在或不存在,装置1600方位或加速/减速和装置1600的温度变化。传感器组件1614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1616被配置为便于装置1600和其他设备之间有线或无线方式的通信。装置1600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置1600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1604,上述指令可由装置1600的处理器1620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a
其中,处理器1620被配置为:Wherein, the
在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;When it is detected that the router is connected to the router through the USB data cable, receiving the first network account information sent by the router through the USB data cable;
基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;Log in to the network based on the first network account information, and send the login authentication information carrying the second network account information to the router;
在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接When the router determines that the second network account information is consistent with the first network account information, establish a network connection with the router
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710524056.0A CN107294983B (en) | 2017-06-30 | 2017-06-30 | Network connection method and device, user equipment and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710524056.0A CN107294983B (en) | 2017-06-30 | 2017-06-30 | Network connection method and device, user equipment and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107294983A CN107294983A (en) | 2017-10-24 |
| CN107294983B true CN107294983B (en) | 2020-09-29 |
Family
ID=60098382
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710524056.0A Active CN107294983B (en) | 2017-06-30 | 2017-06-30 | Network connection method and device, user equipment and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107294983B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110891299A (en) * | 2019-11-15 | 2020-03-17 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101873719A (en) * | 2010-05-31 | 2010-10-27 | 华为终端有限公司 | Method, device and system for configuring wireless fidelity (WIFI) parameter |
| CN103874164A (en) * | 2014-02-28 | 2014-06-18 | 齐文钊 | Method and system for connecting to WIFI (Wireless Fidelity) by NFC (Near Field Communication) and mobile terminal equipment |
| CN103957593A (en) * | 2014-01-17 | 2014-07-30 | 北京奇虎科技有限公司 | Wireless network accessing method, device and system |
| CN104144415A (en) * | 2014-07-10 | 2014-11-12 | 深圳市螺光科技有限公司 | Method for connecting WiFi access point and mobile communication terminal |
| CN104869111A (en) * | 2015-04-16 | 2015-08-26 | 长安大学 | System and method for authenticating terminal trusted access |
| CN105681182A (en) * | 2016-03-15 | 2016-06-15 | 北京信邦安达信息科技股份有限公司 | Wifi authentication triggering method and system based on intelligent gateway |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102547708A (en) * | 2012-02-22 | 2012-07-04 | 深圳市共进电子股份有限公司 | Method for isolating wireless virtual access points |
| CN104038402A (en) * | 2014-06-11 | 2014-09-10 | 普联技术有限公司 | Method for realizing visitor network, and wireless router |
| CN104301891A (en) * | 2014-09-18 | 2015-01-21 | 深圳市螺光科技有限公司 | Method and system for interconnecting intelligent device and WiFi router |
| CN106888174A (en) * | 2015-12-15 | 2017-06-23 | 西安中兴新软件有限责任公司 | A kind of data transmission method and many SSID routers |
| CN106888454A (en) * | 2015-12-16 | 2017-06-23 | 北京奇虎科技有限公司 | WiFi network connection method and device |
| CN106792679A (en) * | 2016-11-25 | 2017-05-31 | 迈普通信技术股份有限公司 | A kind of wireless communications method and system |
-
2017
- 2017-06-30 CN CN201710524056.0A patent/CN107294983B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101873719A (en) * | 2010-05-31 | 2010-10-27 | 华为终端有限公司 | Method, device and system for configuring wireless fidelity (WIFI) parameter |
| CN103957593A (en) * | 2014-01-17 | 2014-07-30 | 北京奇虎科技有限公司 | Wireless network accessing method, device and system |
| CN103874164A (en) * | 2014-02-28 | 2014-06-18 | 齐文钊 | Method and system for connecting to WIFI (Wireless Fidelity) by NFC (Near Field Communication) and mobile terminal equipment |
| CN104144415A (en) * | 2014-07-10 | 2014-11-12 | 深圳市螺光科技有限公司 | Method for connecting WiFi access point and mobile communication terminal |
| CN104869111A (en) * | 2015-04-16 | 2015-08-26 | 长安大学 | System and method for authenticating terminal trusted access |
| CN105681182A (en) * | 2016-03-15 | 2016-06-15 | 北京信邦安达信息科技股份有限公司 | Wifi authentication triggering method and system based on intelligent gateway |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107294983A (en) | 2017-10-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20170163626A1 (en) | Method and device for network access of a smart terminal device | |
| EP3076716A1 (en) | Method and apparatus for network access | |
| US10608988B2 (en) | Method and apparatus for bluetooth-based identity recognition | |
| CN106358189B (en) | Method and device for accessing wireless local area network | |
| EP3163803B1 (en) | Method and device for establishing connection | |
| CN105472771B (en) | Wireless connection method and device | |
| US10027549B2 (en) | Method and apparatus for displaying router setup interface | |
| WO2016127669A1 (en) | Method and apparatus for accessing wireless network by terminal device | |
| US10237214B2 (en) | Methods and devices for sharing media data between terminals | |
| CN109451786B (en) | UAV management method and device, communication connection establishment method and device | |
| WO2016134600A1 (en) | Method and apparatus for detecting intelligent device | |
| CN107181671B (en) | Social information processing method and device | |
| CN106506562B (en) | Network connection method and device of smart device and smart device | |
| CN105847111A (en) | Method and device for adding friend | |
| CN105979522A (en) | Equipment binding method and device | |
| CN107911831B (en) | Method, device, device and storage medium for reminding user to replace router | |
| CN106454898A (en) | Intelligent scene configuration method and device | |
| CN105337937B (en) | Network verification method, device and computer readable storage medium | |
| CN105791409B (en) | Method and device for establishing remote connection | |
| CN104881342A (en) | Terminal testing method and device | |
| CN106598540A (en) | Audio playing method and device | |
| CN106559479A (en) | Multimedia file downloading method, designated equipment and terminal | |
| CN107294983B (en) | Network connection method and device, user equipment and terminal | |
| CN105430642B (en) | Document transmission method and device | |
| CN108183815A (en) | Terminal device initial method and 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 |