+

CN107294983B - Network connection method and device, user equipment and terminal - Google Patents

Network connection method and device, user equipment and terminal Download PDF

Info

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
Application number
CN201710524056.0A
Other languages
Chinese (zh)
Other versions
CN107294983A (en
Inventor
张建春
张正良
顾守军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710524056.0A priority Critical patent/CN107294983B/en
Publication of CN107294983A publication Critical patent/CN107294983A/en
Application granted granted Critical
Publication of CN107294983B publication Critical patent/CN107294983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup 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数据线连接至终端时,将第一网络账户信息发送给所述终端;接收所述终端返回的登录认证信息;在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。本公开技术方案可以极大的简化用户的操作,并且在网络账户密码包含用户隐私时,保护用户隐私,优化用户体验。

Figure 201710524056

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.

Figure 201710524056

Description

网络连接方法、装置、用户设备及终端Network connection method, device, user equipment and terminal

技术领域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 step 101, when it is detected that the terminal is connected to the terminal through the universal serial bus (USB) data line, the first network account information is sent to the terminal.

在一实施例中,路由器中设置了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 step 102, the login authentication information returned by the terminal is received.

在一实施例中,终端通过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 step 103, 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 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 step 201, when more than one wireless access point is provided, the first network account information of each wireless access point is read.

在一实施例中,一个路由器能够提供多个无线接入点,每个无线接入点都各自具有第一网络账户信息,因而路由器读取各无线接入点的第一网络账户信息。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 step 202, each first network account information is sent to the terminal through a USB data line.

本公开实施例中,路由器将所提供的各个无线接入点的第一网络账户信息都发送给终端,由终端侧决定要接入的网络。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 step 301, when more than one wireless access point is provided, the preset priority is read.

在一个实施例中,路由器中可以预先存储有各个无线接入点的优先级,优先级越高,表示优先接入该无线接入点提供的网络。路由器可以基于网络信号等参数来综合评判和设置无线接入点的优先级。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 step 302, the first network account information of the wireless access point with the highest priority is determined.

在一实施例中,确定了最高优先级对应的无线接入点之后,读取该无线接入点的第一网络账户信息。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 step 303, the determined first network account information is sent to the terminal through the USB data line.

本实施例中,通过上述步骤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 step 401, when it is detected that the router is connected to the router through the USB data cable, the first network account information sent by the router through the USB data cable is received.

在一实施例中,结合上述实施例的记载可知,在通过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 step 402, 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.

在一实施例中,终端接收到路由器发送的第一网络账户信息之后,在屏幕上显示网络登录界面,网络登录界面可以包括网络账户名称输入框及网络账户密码输入框,本公开实施例中,无需用户手动输入,终端直接基于接收到的第一网络账户信息将网络账户名称及网络账户密码输入到对应的输入框中。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 step 403, 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 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 step 501, when there are multiple pieces of first network account information, multiple pieces of first network account information are displayed.

在一实施例中,路由器可以提供多个无线接入点,并且路由器将各无线接入点的第一网络账户信息都发送给终端,由终端自主选择要接入的网络。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 step 502, automatically log in to the network based on the first network account information corresponding to the detected selection operation.

在一实施例中,在终端接收到多个第一网络账户信息的情况下,可以在屏幕上显示各个第一网络账户信息,用户通过例如勾选的方式选择要接入的网络,在终端检测到用户的选择操作时,基于该选择操作对应的网络账户信息自动登录网络。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 step 503, 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.

本实施例中,通过上述步骤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 step 601, when there is a plurality of first network account information, the corresponding relationship between the priority from the router and the first network account information is read.

在一实施例中,终端还可以接收到路由器发送的各无线接入点的优先级,例如优先级与各第一网络账户信息的对应关系,例如第一网络账户信息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 step 602, automatically log in to the network based on the first network account information with the highest priority.

在一实施例中,终端可以选择优先级最高的第一网络账户信息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 step 603, 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 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 step 701, when there is a plurality of first network account information, the current signal strength of the wireless access point corresponding to each first network account information is determined.

在一实施例中,终端还可以基于无线接入点的信号强度来确定要接入的网络。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 step 702, automatically log in to the network based on the first network account information of the wireless access point with the strongest signal strength.

在一实施例中,终端可以选择信号强度最强的无线接入点的第一网络账户信息进行自动登录。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 step 703, 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 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 first sending module 810 , a first receiving module 820 and a first connecting module 830 .

第一发送模块810,被配置为在检测到通过通用串行总线USB数据线连接至终端时,将第一网络账户信息发送给所述终端;The first sending module 810 is 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;

第一接收模块820,被配置为接收所述终端基于第一发送模块810发送的第一网络账户信息返回的登录认证信息;The first receiving module 820 is configured to receive the login authentication information returned by the terminal based on the first network account information sent by the first sending module 810;

第一连接模块830,被配置为在第一接收模块820接收的登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接。The first connection module 830 is configured to establish a network connection with the terminal when the second network account information in the login authentication information received by the first receiving module 820 is consistent with the first network account information.

图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 first sending module 810 may include: The first reading sub-module 811 and the first sending sub-module 812.

第一读取子模块811,被配置为在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息;The first reading submodule 811 is configured to read the first network account information of each wireless access point when more than one wireless access point is provided;

第一发送子模块812,被配置为将第一读取子模块811读取的各第一网络账户信息通过所述USB数据线发送给所述终端。The first sending sub-module 812 is configured to send each first network account information read by the first reading sub-module 811 to the terminal through the USB data line.

图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 first sending module 810 may include: The second reading sub-module 813 , the first determining sub-module 814 and the second sending sub-module 815 .

第二读取子模块813,被配置为在提供的无线接入点多于一个时,读取预设的优先级;The second reading submodule 813 is configured to read the preset priority when more than one wireless access point is provided;

第一确定子模块814,被配置为确定优先级最高的无线接入点的第一网络账户信息;The first determining submodule 814 is configured to determine the first network account information of the wireless access point with the highest priority;

第二发送子模块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 second receiving module 910 , a second sending module 920 and a second connecting module 930 .

第二接收模块910,被配置为在检测到通过USB数据线连接至路由器时,接收所述路由器通过所述USB数据线发送的第一网络账户信息;The second receiving module 910 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;

第二发送模块920,被配置为基于第二接收模块910接收的第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息;The second sending module 920 is configured to log in to the network based on the first network account information received by the second receiving module 910, and send the login authentication information carrying the second network account information to the router;

第二连接模块930,被配置为在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与路由器建立网络连接。The second connection module 930 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.

图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 second sending module 920 may include: A display sub-module 921 , a first login sub-module 922 and a third sending sub-module 923 are displayed.

显示子模块921,被配置为在所述第一网络账户信息有多个时,显示多个所述第一网络账户信息;The display sub-module 921 is configured to display multiple pieces of the first network account information when there are multiple pieces of the first network account information;

第一登录子模块922,被配置为基于检测到的选择操作对应的第一网络账户信息,自动登录网络;The first login submodule 922 is configured to automatically log in to the network based on the first network account information corresponding to the detected selection operation;

第三发送子模块923,被配置为将登录网络使用的网络账户信息作为第二网络账户信息携带在认证信息中发送给所述路由器。The third sending submodule 923 is configured to carry the network account information used for logging in to the network as the second network account information in the authentication information and send it to the router.

图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 second sending module 920 may It includes: a third reading sub-module 924 , a second logging sub-module 925 and a fourth sending sub-module 926 .

第三读取子模块924,被配置为在所述第一网络账户信息有多个时,读取预存储的优先级与第一网络账户信息的对应关系;The third reading sub-module 924 is configured to read the correspondence between the pre-stored priority and the first network account information when there is a plurality of first network account information;

第二登录子模块925,被配置为基于第三读取子模块924读取的优先级最高的第一网络账户信息,自动登录网络;The second login sub-module 925 is configured to automatically log in to the network based on the first network account information with the highest priority read by the third reading sub-module 924;

第四发送子模块926,被配置为将第二登录子模块925登录网络使用的网络账户信息作为第二网络账户信息携带在认证信息中发送给所述路由器。The fourth sending submodule 926 is configured to send the network account information used by the second login submodule 925 to log in to the network as the second network account information in the authentication information and send it to the router.

图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 second sending module 920 may include: The second determining sub-module 927 , the third logging sub-module 928 and the fourth sending sub-module 929 .

第二确定子模块927,被配置为在所述第一网络账户信息有多个时,确定各个所述第一网络账户信息对应的无线接入点的当前的信号强度;The second determination submodule 927 is configured to determine the current signal strength of the wireless access point corresponding to each of the first network account information when there are multiple pieces of the first network account information;

第三登录子模块928,被配置为基于信号强度最强的无线接入点的第一网络账户信息,自动登录网络;The third login sub-module 928 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;

第四发送子模块929,被配置为将第三登录子模块928登录网络使用的网络账户信息作为第二网络账户信息携带在登录认证信息中发送给所述路由器。The fourth sending submodule 929 is configured to send the network account information used by the third login submodule 928 to log in to the network as the second network account information in the login authentication information and send it to the router.

在上述实施例中,第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。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 network connection device 1500 according to an exemplary embodiment. For example, apparatus 1500 may be provided as a routing device. 15, apparatus 1500 includes a processing component 1522, which further includes one or more processors, and a memory resource, represented by memory 1532, for storing instructions executable by processing component 1522, such as an application program. An application program stored in memory 1532 may include one or more modules, each corresponding to a set of instructions. Additionally, the processing component 1522 is configured to execute instructions to perform the method of network connection described above.

装置1500还可以包括一个电源组件1526被配置为执行装置1500的电源管理,一个有线或无线网络接口1550被配置为将装置1500连接到网络,和一个输入输出(I/O)接口1558。装置1500可以操作基于存储在存储器1532的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The device 1500 may also include a power supply assembly 1526 configured to perform power management of the device 1500, a wired or wireless network interface 1550 configured to connect the device 1500 to a network, and an input output (I/O) interface 1558. Device 1500 may operate based on an operating system stored in memory 1532, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.

图16是根据一示例性实施例示出的另一种适用于网络连接装置的框图。例如,装置1600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等用户设备。FIG. 16 is a block diagram of another apparatus suitable for network connection according to an exemplary embodiment. For example, apparatus 1600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. user equipment.

参照图16,装置1600可以包括以下一个或多个组件:处理组件1602,存储器1604,电源组件1606,多媒体组件1608,音频组件1610,输入/输出(I/O)的接口1612,传感器组件1614,以及通信组件1616。16, the apparatus 1600 may include one or more of the following components: a processing component 1602, a memory 1604, a power supply component 1606, a multimedia component 1608, an audio component 1610, an input/output (I/O) interface 1612, a sensor component 1614, And the communication component 1616.

处理组件1602通常控制装置1600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1602可以包括一个或多个处理器1620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1602可以包括一个或多个模块,便于处理组件1602和其他组件之间的交互。例如,处理部件1602可以包括多媒体模块,以方便多媒体组件1608和处理组件1602之间的交互。The processing component 1602 generally controls the overall operation of the device 1600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing element 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the methods described above. Additionally, processing component 1602 may include one or more modules that facilitate interaction between processing component 1602 and other components. For example, processing component 1602 may include a multimedia module to facilitate interaction between multimedia component 1608 and processing component 1602.

存储器1604被配置为存储各种类型的数据以支持在设备1600的操作。这些数据的示例包括用于在装置1600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 1604 is configured to store various types of data to support operation at device 1600 . Examples of such data include instructions for any application or method operating on device 1600, contact data, phonebook data, messages, pictures, videos, and the like. Memory 1604 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电力组件1606为装置1600的各种组件提供电力。电力组件1606可以包括电源管理系统,一个或多个电源,及其他与为装置1600生成、管理和分配电力相关联的组件。Power components 1606 provide power to various components of device 1600 . Power components 1606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 1600 .

多媒体组件1608包括在所述装置1600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1608包括一个前置摄像头和/或后置摄像头。当设备1600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 1608 includes a screen that provides an output interface between the device 1600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1608 includes a front-facing camera and/or a rear-facing camera. When the device 1600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1610被配置为输出和/或输入音频信号。例如,音频组件1610包括一个麦克风(MIC),当装置1600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1604或经由通信组件1616发送。在一些实施例中,音频组件1610还包括一个扬声器,用于输出音频信号。Audio component 1610 is configured to output and/or input audio signals. For example, audio component 1610 includes a microphone (MIC) that is configured to receive external audio signals when device 1600 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 1604 or transmitted via communication component 1616. In some embodiments, audio component 1610 also includes a speaker for outputting audio signals.

I/O接口1612为处理组件1602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1612 provides an interface between the processing component 1602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件1614包括一个或多个传感器,用于为装置1600提供各个方面的状态评估。例如,传感器组件1614可以检测到设备1600的打开/关闭状态,组件的相对定位,例如所述组件为装置1600的显示器和小键盘,传感器组件1614还可以检测装置1600或装置1600一个组件的位置改变,用户与装置1600接触的存在或不存在,装置1600方位或加速/减速和装置1600的温度变化。传感器组件1614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1614 includes one or more sensors for providing status assessment of various aspects of device 1600 . For example, the sensor assembly 1614 can detect the on/off state of the device 1600, the relative positioning of the components, such as the display and keypad of the device 1600, and the sensor assembly 1614 can also detect a change in the position of the device 1600 or a component of the device 1600 , the presence or absence of user contact with the device 1600 , the device 1600 orientation or acceleration/deceleration and the temperature change of the device 1600 . Sensor assembly 1614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件1616被配置为便于装置1600和其他设备之间有线或无线方式的通信。装置1600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1616 is configured to facilitate wired or wireless communication between apparatus 1600 and other devices. Device 1600 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器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 memory 1604 including instructions, executable by the processor 1620 of the apparatus 1600 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

其中,处理器1620被配置为:Wherein, the processor 1620 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, 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)

1.一种网络连接方法,其特征在于,所述方法包括:1. A network connection method, characterized in that the method comprises: 在检测到通过通用串行总线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; 在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接;establishing 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; 所述将第一网络账户信息发送给所述终端,包括: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. 2.根据权利要求1所述的方法,其特征在于,所述将第一网络账户信息发送给所述终端,包括:2. The method according to claim 1, wherein the sending the first network account information to the terminal comprises: 在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息;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. 3.根据权利要求1或2所述的方法,其特征在于,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。3. The method according to claim 1 or 2, wherein the first network account information and the second network account information comprise: a network account name and a network account password. 4.一种网络连接方法,其特征在于,所述方法包括:4. A network connection method, characterized in that the method comprises: 在检测到通过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; 在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接;establishing a network connection with the router when the router determines that the second network account information is consistent with the first network account information; 所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括: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. 5.根据权利要求4所述的方法,其特征在于,所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括:5. The method according to claim 4, wherein 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 comprises: 在所述第一网络账户信息有多个时,显示多个所述第一网络账户信息;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. 6.根据权利要求4所述的方法,其特征在于,所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括:6. The method according to claim 4, wherein 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, comprises: 在所述第一网络账户信息有多个时,确定各个所述第一网络账户信息对应的无线接入点的当前的信号强度;When there are multiple pieces of the first network account information, determining 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. 7.根据权利要求4-6任一项所述的方法,其特征在于,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。7 . The method according to claim 4 , wherein the first network account information and the second network account information comprise: a network account name and a network account password. 8 . 8.一种网络连接装置,其特征在于,所述装置包括:8. A network connection device, characterized in that the device comprises: 第一发送模块,被配置为在检测到通过通用串行总线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; 第一连接模块,被配置为在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接;a first connection module, 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; 所述第一发送模块包括: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. 9.根据权利要求8所述的装置,其特征在于,所述第一发送模块包括:9. The apparatus according to claim 8, wherein the first sending module comprises: 第一读取子模块,被配置为在提供的无线接入点多于一个时,读取各个无线接入点的第一网络账户信息;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. 10.根据权利要求8或9所述的装置,其特征在于,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。The device according to claim 8 or 9, wherein the first network account information and the second network account information comprise: a network account name and a network account password. 11.一种网络连接装置,其特征在于,所述装置包括:11. A network connection device, characterized in that the device comprises: 第二接收模块,被配置为在检测到通过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; 第二连接模块,被配置为在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接;a second connection module, 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; 所述第二发送模块包括: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. 12.根据权利要求11所述的装置,其特征在于,所述第二发送模块包括:12. The apparatus according to claim 11, wherein the second sending module comprises: 显示子模块,被配置为在所述第一网络账户信息有多个时,显示多个所述第一网络账户信息;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. 13.根据权利要求11所述的装置,其特征在于,所述第二发送模块包括:13. The apparatus according to claim 11, wherein the second sending module comprises: 第二确定子模块,被配置为在所述第一网络账户信息有多个时,确定各个所述第一网络账户信息对应的无线接入点的当前的信号强度;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. 14.根据权利要求11-13任一项所述的装置,其特征在于,所述第一网络账户信息及所述第二网络账户信息包括:网络账户名称及网络账户密码。14. The device according to any one of claims 11-13, wherein the first network account information and the second network account information comprise: a network account name and a network account password. 15.一种用户设备,其特征在于,包括:15. A user equipment, comprising: 处理器;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; 在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接;establishing 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; 所述将第一网络账户信息发送给所述终端,包括: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. 16.一种终端,其特征在于,包括:16. A terminal, characterized in that, comprising: 处理器;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; 在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接;establishing a network connection with the router when the router determines that the second network account information is consistent with the first network account information; 所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括: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. 17.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现以下步骤:17. A computer-readable storage medium on which a computer program is stored, characterized in that, 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; 在所述登录认证信息中的第二网络账户信息与所述第一网络账户信息一致时,与所述终端建立网络连接;establishing 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; 所述将第一网络账户信息发送给所述终端,包括: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. 18.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现以下步骤:18. A computer-readable storage medium on which a computer program is stored, characterized in that, 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; 在所述路由器判断为所述第二网络账户信息与所述第一网络账户信息一致时,与所述路由器建立网络连接;establishing a network connection with the router when the router determines that the second network account information is consistent with the first network account information; 所述基于所述第一网络账户信息登录网络,向所述路由器发送携带有第二网络账户信息的登录认证信息,包括: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.
CN201710524056.0A 2017-06-30 2017-06-30 Network connection method and device, user equipment and terminal Active CN107294983B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载