CN107820237B - A data transmission method and device under a WIFI network - Google Patents
A data transmission method and device under a WIFI network Download PDFInfo
- Publication number
- CN107820237B CN107820237B CN201610820772.9A CN201610820772A CN107820237B CN 107820237 B CN107820237 B CN 107820237B CN 201610820772 A CN201610820772 A CN 201610820772A CN 107820237 B CN107820237 B CN 107820237B
- Authority
- CN
- China
- Prior art keywords
- information
- wifi network
- currently accessed
- content
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
- H04W12/033—Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/60—Context-dependent security
- H04W12/67—Risk-dependent, e.g. selecting a security level depending on risk profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/18—Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种WIFI网络下的数据传输方法及装置,应用于移动终端,其中,所述方法包括:检测移动终端当前所处的环境信息;根据所述环境信息,确定移动终端通过当前接入的WIFI网络传输信息时的可信度信息;在所述可信度信息达到预设条件时,检测需要通过当前接入的WIFI网络传输信息数据的内容;若需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容时,则将当前接入的WIFI网络切换至终端运营商的网络进行所述信息数据的传输。本发明在移动终端连接至不安全WIFI网络时,可以有效避免用户的个人信息数据泄露。
The invention discloses a data transmission method and device under a WIFI network, which is applied to a mobile terminal, wherein the method includes: detecting environmental information where the mobile terminal is currently located; When the reliability information reaches the preset condition, the content of the information data that needs to be transmitted through the currently accessed WIFI network is detected; if it is necessary to transmit information through the currently accessed WIFI network When the content of the transmitted information data conforms to the predetermined information content, the currently accessed WIFI network is switched to the network of the terminal operator to transmit the information data. When the mobile terminal is connected to the unsafe WIFI network, the present invention can effectively avoid the leakage of the user's personal information data.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种WIFI网络下的数据传输方法及装置。The present invention relates to the field of communication technologies, and in particular, to a data transmission method and device under a WIFI network.
背景技术Background technique
当前在公共场合一些不安全WIFI网络下,对于用户账户密码等敏感信息的保护,都是通过提醒用户不要在这些不安全WIFI下应用敏感信息,以防止被他人盗取个人重要信息。这种信息保护的方式要求用户在公共环境下最好不通过WIFI接入网络,从而避免个人信息被泄露,造成用户失去了可能连接其他网络的应用机会。At present, under some unsafe WIFI networks in public places, the protection of sensitive information such as user account passwords is to remind users not to use sensitive information under these unsafe WIFI to prevent others from stealing personal important information. This information protection method requires users not to access the network through WIFI in a public environment, so as to prevent personal information from being leaked and cause users to lose application opportunities that may connect to other networks.
在一些应用程序中也会通过网络之间互联的协议(Internet Protocol,简称IP)的检测,对用户数据进行保护。如果是用户IP发生变化,会提醒用户重新登陆,以保证用户的数据安全。但如果用户是在不安全的WIFI网络下,应用程序检测到需要重新登陆,则有可能造成用户数据的完全泄露。In some application programs, user data is also protected through detection of an Internet Protocol (Internet Protocol, IP for short) between networks. If the user's IP changes, the user will be reminded to log in again to ensure the security of the user's data. However, if the user is on an unsecured WIFI network and the application detects that it needs to log in again, it may cause complete leakage of user data.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,本发明提供了一种WIFI网络下的数据传输方法及装置,解决了需要通过WIFI网络传输信息数据时,可能存在信息数据泄露的问题。In order to solve the above technical problems, the present invention provides a data transmission method and device under a WIFI network, which solves the problem of possible information data leakage when the information data needs to be transmitted through the WIFI network.
为了实现上述目的,本发明实施例提供了一种WIFI网络下的数据传输方法,应用于移动终端,所述方法包括:In order to achieve the above purpose, an embodiment of the present invention provides a data transmission method under a WIFI network, which is applied to a mobile terminal, and the method includes:
检测移动终端当前所处的环境信息;Detecting the current environment information of the mobile terminal;
根据所述环境信息,确定移动终端通过当前接入的WIFI网络传输信息时的可信度信息;According to the environment information, determine the credibility information when the mobile terminal transmits information through the currently accessed WIFI network;
在所述可信度信息达到预设条件时,检测需要通过当前接入的WIFI网络传输信息数据的内容;When the credibility information reaches a preset condition, detect the content of the information data that needs to be transmitted through the currently accessed WIFI network;
若需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容时,则将当前接入的WIFI网络切换至终端运营商的网络进行所述信息数据的传输。If the content of the information data to be transmitted through the currently accessed WIFI network conforms to the predetermined information content, the currently accessed WIFI network is switched to the terminal operator's network to transmit the information data.
优选地,所述检测移动终端当前所处的环境信息的步骤,包括:Preferably, the step of detecting the current environment information of the mobile terminal includes:
对当前接入的WIFI网络的服务集标识进行解析,获得第一解析信息;Parsing the service set identifier of the currently accessed WIFI network to obtain first parsing information;
获取所述第一解析信息中的第一关键字;obtaining the first keyword in the first analysis information;
根据所述第一关键字确定移动终端当前所处的环境信息。The current environment information of the mobile terminal is determined according to the first keyword.
优选地,所述检测移动终端当前所处的环境信息的步骤,包括:Preferably, the step of detecting the current environment information of the mobile terminal includes:
对当前所有可接入的WIFI网络的服务集标识进行解析,获得每一可接入的WIFI网络的服务集标识对应的第二解析信息;Parse the service set identifiers of all currently accessible WIFI networks, and obtain second parsing information corresponding to the service set identifiers of each accessible WIFI network;
获取每一所述第二解析信息中的第二关键字;obtaining a second keyword in each of the second analysis information;
根据所述第二关键字确定所述移动终端当前所处的环境信息。The current environment information of the mobile terminal is determined according to the second keyword.
优选地,根据所述环境信息,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息的步骤,包括:Preferably, according to the environmental information, the step of determining the credibility information when the mobile terminal transmits information through the currently accessed WIFI network includes:
将所述环境信息与预设环境信息的可信度匹配表进行匹配,得到所述环境信息的第一可信度值;Matching the environmental information with the reliability matching table of the preset environmental information to obtain the first reliability value of the environmental information;
根据预设时间段内移动终端连接当前接入的WIFI网络的连接次数,确定当前接入的WIFI网络的第二可信度值;Determine the second reliability value of the currently accessed WIFI network according to the number of times the mobile terminal is connected to the currently accessed WIFI network within the preset time period;
根据所述第一可信度值和所述第二可信度值,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息。According to the first reliability value and the second reliability value, the reliability information when the mobile terminal transmits information through the currently accessed WIFI network is determined.
优选地,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息的步骤之后,还包括:Preferably, after the step of determining the credibility information when the mobile terminal transmits information through the currently accessed WIFI network, the method further includes:
当所述可信度信息中的可信度值小于预设可信度值时,则确定所述可信度信息达到预设条件。When the credibility value in the credibility information is less than a preset credibility value, it is determined that the credibility information reaches a preset condition.
优选地,所述检测需要通过当前接入的WIFI网络传输信息数据的内容的步骤,包括:Preferably, the step of detecting the content of information data that needs to be transmitted through the currently accessed WIFI network includes:
获取需要通过当前接入的WIFI网络传输信息数据的内容;Obtain the content that needs to transmit information data through the currently connected WIFI network;
将所述信息数据与预定信息内容相匹配,当匹配成功时,则确定需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容;Matching the information data with the predetermined information content, and when the matching is successful, it is determined that the content of the information data that needs to be transmitted through the currently accessed WIFI network conforms to the predetermined information content;
其中,所述预定信息内容包括用户个人信息、用户登录信息和银行帐号信息。Wherein, the predetermined information content includes user personal information, user login information and bank account information.
优选地,将当前接入的WIFI网络切换至终端运营商的网络进行信息数据的传输的步骤之后,还包括:Preferably, after the step of switching the currently accessed WIFI network to the terminal operator's network to transmit information data, the method further includes:
将当前连接的终端运营商的网络切换至先前接入的WIFI网络。Switch the currently connected terminal operator's network to the previously accessed WIFI network.
本发明实施例还提供了一种WIFI网络下的数据传输装置,应用于移动终端,所述装置包括:An embodiment of the present invention also provides a data transmission device under a WIFI network, which is applied to a mobile terminal, and the device includes:
识别模块,用于检测移动终端当前所处的环境信息;an identification module for detecting the current environment information of the mobile terminal;
处理模块,用于根据所述环境信息,确定移动终端通过当前接入的WIFI网络传输信息时的可信度信息;a processing module, configured to determine, according to the environmental information, the credibility information when the mobile terminal transmits information through the currently accessed WIFI network;
检测模块,用于在所述可信度信息达到预设条件时,检测需要通过当前接入的WIFI网络传输信息数据的内容;a detection module, configured to detect the content of information data that needs to be transmitted through the currently accessed WIFI network when the credibility information reaches a preset condition;
传输模块,用于若需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容时,则将当前接入的WIFI网络切换至终端运营商的网络进行所述信息数据的传输。The transmission module is configured to switch the currently accessed WIFI network to the terminal operator's network to transmit the information data if the content of the information data needs to be transmitted through the currently accessed WIFI network conforms to the predetermined information content.
优选地,所述识别模块包括:Preferably, the identification module includes:
第一解析单元,用于对当前接入的WIFI网络的服务集标识进行解析,获得第一解析信息;a first parsing unit, configured to parse the service set identifier of the currently accessed WIFI network to obtain first parsing information;
第一获取单元,用于获取所述第一解析信息中的第一关键字;a first obtaining unit, configured to obtain the first keyword in the first analysis information;
第一识别单元,用于根据所述第一关键字确定移动终端当前所处的环境信息。The first identification unit is configured to determine the current environment information of the mobile terminal according to the first keyword.
优选地,所述识别模块包括:Preferably, the identification module includes:
第二解析单元,用于对当前所有可接入的WIFI网络的服务集标识进行解析,获得每一可接入的WIFI网络的服务集标识对应的第二解析信息;a second parsing unit, configured to parse the service set identifiers of all currently accessible WIFI networks, and obtain second parsing information corresponding to the service set identifiers of each accessible WIFI network;
第二获取单元,用于获取每一所述第二解析信息中的第二关键字;a second obtaining unit, configured to obtain the second keyword in each of the second analysis information;
第二识别单元,用于根据所述第二关键字确定所述移动终端当前所处的环境信息。The second identification unit is configured to determine the current environment information of the mobile terminal according to the second keyword.
优选地,所述处理模块包括:Preferably, the processing module includes:
第一匹配单元,用于将所述环境信息与预设环境信息的可信度匹配表进行匹配,得到所述环境信息的第一可信度值;a first matching unit, configured to match the environmental information with a reliability matching table of preset environmental information to obtain a first reliability value of the environmental information;
第一处理单元,用于根据预设时间段内移动终端连接当前接入的WIFI网络的连接次数,确定当前接入的WIFI网络的第二可信度值;a first processing unit, configured to determine the second reliability value of the currently accessed WIFI network according to the number of times the mobile terminal is connected to the currently accessed WIFI network within a preset time period;
第二处理单元,用于根据所述第一可信度值和所述第二可信度值,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息。The second processing unit is configured to determine, according to the first credibility value and the second credibility value, credibility information when the mobile terminal transmits information through the currently accessed WIFI network.
优选地,所述装置还包括:Preferably, the device further comprises:
判断模块,用于当所述可信度信息中的可信度值小于预设可信度值时,则确定所述可信度信息达到预设条件。A judgment module, configured to determine that the credibility information reaches a preset condition when the credibility value in the credibility information is less than a preset credibility value.
优选地,所述检测模块包括:Preferably, the detection module includes:
第三获取单元,用于获取需要通过当前接入的WIFI网络传输信息数据的内容;a third acquiring unit, configured to acquire the content of the information data that needs to be transmitted through the currently accessed WIFI network;
第二匹配单元,用于将所述信息数据与预定信息内容相匹配,当匹配成功时,则确定需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容;The second matching unit is configured to match the information data with the predetermined information content, and when the matching is successful, it is determined that the content of the information data that needs to be transmitted through the currently accessed WIFI network conforms to the predetermined information content;
其中,所述预定信息内容包括用户个人信息、用户登录信息和银行帐号信息。Wherein, the predetermined information content includes user personal information, user login information and bank account information.
优选地,所述装置还包括:Preferably, the device further comprises:
切换模块,用于将当前连接的终端运营商的网络切换至先前接入的WIFI网络。The switching module is used for switching the network of the terminal operator currently connected to the previously accessed WIFI network.
本发明的实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
上述方案中,通过检测移动终端当前所处环境信息,并对当前所处的环境信息作出对应的可信度判断。在可信度低于预设可信度值时,进一步检测当前需要传输的信息数据是否为敏感信息。如果是敏感信息,则将当前接入的WIFI网络切换为运营商的网络进行信息数据的传输。从而保证了在不可信或者复杂的WIFI环境中对个人信息的保护。在完成信息数据的传输之后,切换为先前的WIFI网络连接,保证在完成信息数据的传输后,可以快速切换至WIFI网络连接,不需要重新进行WIFI网络连接的操作。In the above solution, the current environment information of the mobile terminal is detected, and the corresponding reliability judgment is made for the current environment information. When the credibility is lower than the preset credibility value, it is further detected whether the information data currently to be transmitted is sensitive information. If it is sensitive information, switch the currently accessed WIFI network to the operator's network to transmit information and data. This ensures the protection of personal information in an untrusted or complex WIFI environment. After completing the transmission of the information data, switch to the previous WIFI network connection to ensure that after completing the transmission of the information data, you can quickly switch to the WIFI network connection, and do not need to perform the operation of the WIFI network connection again.
附图说明Description of drawings
图1表示本发明实施例的一种WIFI网络下的数据传输方法的流程图;FIG. 1 shows a flowchart of a data transmission method under a WIFI network according to an embodiment of the present invention;
图2表示本发明实施例的一种检测移动终端当前所处的环境信息的流程图;FIG. 2 shows a flow chart of detecting the current environment information of the mobile terminal according to an embodiment of the present invention;
图3表示本发明实施例的另一种检测移动终端当前所处的环境信息的流程图;FIG. 3 shows another flowchart of detecting the current environment information of the mobile terminal according to an embodiment of the present invention;
图4表示本发明实施例的一种确定在当前接入的WIFI网络下传输信息时的可信度信息的流程图;FIG. 4 shows a flowchart of determining reliability information when transmitting information under the currently accessed WIFI network according to an embodiment of the present invention;
图5表示本发明实施例的一种检测需要通过当前接入的WIFI网络传输信息数据的内容的流程图;5 shows a flowchart of detecting the content of information data that needs to be transmitted through the currently accessed WIFI network according to an embodiment of the present invention;
图6表示本发明实施例的一种WIFI网络下的数据传输装置的结构框图。FIG. 6 shows a structural block diagram of a data transmission apparatus under a WIFI network according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be more thoroughly understood, and will fully convey the scope of the present invention to those skilled in the art.
如图1所示,本发明的实施例提供了一种WIFI网络下的数据传输方法,应用于移动终端,所述方法包括:As shown in FIG. 1, an embodiment of the present invention provides a data transmission method under a WIFI network, which is applied to a mobile terminal, and the method includes:
S101、检测移动终端当前所处的环境信息;S101. Detect the environmental information where the mobile terminal is currently located;
该实施例中,环境信息包括移动终端当前所在的地理位置信息和/或移动终端当前接入网络状态信息。其中,地理位置信息包括商场环境、住宅场所和办公场所等。网络状态信息包括接入运营商的网络状态和接入非运营商的网络状态。In this embodiment, the environment information includes information about the geographic location where the mobile terminal is currently located and/or information about the current access network status of the mobile terminal. Among them, the geographic location information includes shopping mall environment, residential place, office place and so on. The network state information includes the network state of the access operator and the network state of the access non-operator.
S102、根据所述环境信息,确定移动终端通过当前接入的WIFI网络传输信息时的可信度信息;S102, according to the environment information, determine the credibility information when the mobile terminal transmits information through the currently accessed WIFI network;
该实施例中,可信度信息可以是根据预设的地理位置信息的可信度值、预设时间段内连接当前接入的WIFI网络的连接次数、网络状态信息等确定。In this embodiment, the credibility information may be determined according to the credibility value of the preset geographic location information, the number of connections to the currently accessed WIFI network within the preset time period, network status information, and the like.
S103、在所述可信度信息达到预设条件时,检测需要通过当前接入的WIFI网络传输信息数据的内容;S103, when the credibility information reaches a preset condition, detect the content of the information data that needs to be transmitted through the currently accessed WIFI network;
S104、若需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容时,则将当前接入的WIFI网络切换至终端运营商的网络进行所述信息数据的传输。S104 , if the content of the information data to be transmitted through the currently accessed WIFI network conforms to the predetermined information content, switch the currently accessed WIFI network to the terminal operator's network to transmit the information data.
该实施例中,检测当前需要传输的信息数据的内容中包含预定信息内容时,将当前接入的WIFI网络切换至终端运营商的网络进行信息数据的传输。其中,该预定信息内容包括:用户的银行账号、身份证号码、联系方式和其他的用户名及密码等信息。该方案在当前接入的WIFI网络的可信度值低于预设可信度值时,避免了用户个人的信息数据泄露。In this embodiment, when it is detected that the content of the information data to be transmitted currently includes predetermined information content, the currently accessed WIFI network is switched to the network of the terminal operator to transmit the information data. The predetermined information content includes: the user's bank account number, ID number, contact information, and other information such as user name and password. In this solution, when the credibility value of the currently accessed WIFI network is lower than the preset credibility value, the leakage of personal information and data of the user is avoided.
进一步地,如图2所示,所述检测移动终端当前所处的环境信息的步骤,包括:Further, as shown in FIG. 2 , the step of detecting the current environment information of the mobile terminal includes:
S201、对当前接入的WIFI网络的服务集标识进行解析,获得第一解析信息;S201. Parse the service set identifier of the currently accessed WIFI network to obtain first parsing information;
该实施例中,以商场环境为例,对解析WIFI网络的服务集标识的方式进行说明。例如,对包含中文名称的服务集标识,采取直接提取中文关键字的方式。对于以店家名称命名的服务集标识,可以直接提取店家名称作为第一关键字。对包含字母名称的服务集标识,可以按照字母对照中文拼音的方式进行解析,将其中的中文拼音翻译成中文名称,并获取第一关键字。对包含英文名称的服务集标识,可以直接以英文名称表示的店家名称作为第一关键字。In this embodiment, the method of parsing the service set identifier of the WIFI network is described by taking the shopping mall environment as an example. For example, for a service set identifier containing a Chinese name, the method of directly extracting Chinese keywords is adopted. For a service set identifier named with a store name, the store name can be directly extracted as the first keyword. For the service set identifier including the alphabetic name, it can be parsed according to the way that the alphabet is compared with the Chinese pinyin, the Chinese pinyin therein is translated into the Chinese name, and the first keyword is obtained. For the service set identifier including the English name, the store name represented by the English name can be directly used as the first keyword.
S202、获取所述第一解析信息中的第一关键字;S202, acquiring the first keyword in the first analysis information;
该实施例中,第一关键字为表征移动终端当前所处的环境信息的关键字。例如:解析得到第一解析信息为某服装品牌的名称,则提取该服装品牌名称作为第一关键字。根据该第一关键字可以确定当前移动终端所处的环境信息为商场环境。In this embodiment, the first keyword is a keyword representing environmental information where the mobile terminal is currently located. For example, if it is obtained by parsing that the first parsed information is the name of a certain clothing brand, the clothing brand name is extracted as the first keyword. According to the first keyword, it can be determined that the current environment information of the mobile terminal is the shopping mall environment.
S203、根据所述第一关键字确定移动终端当前所处的环境信息。S203. Determine the current environment information of the mobile terminal according to the first keyword.
该实施例中,确定移动终端当前所处的环境信息的方式,可以是将第一关键字与预设环境信息的判定表进行匹配,将第一关键字对应的预设环境信息的判定表中的环境信息,作为移动终端当前所处的环境信息。In this embodiment, the way of determining the current environment information of the mobile terminal may be to match the first keyword with the judgment table of preset environment information, and put the first keyword in the judgment table of preset environment information corresponding to the first keyword. The environment information of the mobile terminal is taken as the environment information where the mobile terminal is currently located.
进一步地,如图3所示,所述检测移动终端当前所处的环境信息的步骤,包括:Further, as shown in FIG. 3 , the step of detecting the current environment information of the mobile terminal includes:
S301、对当前所有可接入的WIFI网络的服务集标识进行解析,获得每一可接入的WIFI网络的服务集标识对应的第二解析信息;S301. Parse the service set identifiers of all currently accessible WIFI networks, and obtain second parsing information corresponding to the service set identifiers of each accessible WIFI network;
S302、获取每一所述第二解析信息中的第二关键字;S302, acquiring the second keyword in each of the second analysis information;
S303、根据所述第二关键字确定所述移动终端当前所处的环境信息。S303. Determine the current environment information of the mobile terminal according to the second keyword.
该实施例中,针对仅通过解析当前接入的WIFI网络的服务集标识并获取第一关键字的方式,不能确定对应的环境信息的情况,还可以通过对当前所有可接入的WIFI网络的服务集标识进行解析,获取每个可接入的WIFI网络的服务集标识对应的第二解析信息中的第二关键字。根据多个第二关键字确定移动终端当前所处的环境信息。In this embodiment, for the case where the corresponding environment information cannot be determined only by parsing the service set identifier of the currently accessed WIFI network and obtaining the first keyword, the corresponding environment information can also be determined by analyzing all currently accessible WIFI networks. The service set identifier is parsed, and the second keyword in the second parsing information corresponding to the service set identifier of each accessible WIFI network is acquired. The current environment information of the mobile terminal is determined according to the plurality of second keywords.
具体的,可以按照当前可接入的WIFI网络的信号强度由高到低的顺序,筛选出预设数量的WIFI网络对应的第二关键字。按照筛选出的第二关键字与预设环境信息的判定表进行匹配,将数量最多的与第二关键字对应的环境信息,作为移动终端当前所处的环境信息。Specifically, the second keywords corresponding to the preset number of WIFI networks may be screened out in descending order of signal strengths of currently accessible WIFI networks. Matching is performed according to the judgment table of the filtered second keyword and the preset environmental information, and the environmental information corresponding to the second keyword with the largest number is used as the current environmental information of the mobile terminal.
此外,为了缩短对服务集标识的解析过程,可以仅针对非运营商的网络的服务集标识进行解析处理和/或优先按照信号强度由高到低的顺序筛选出预设数量的WIFI网络后,再进行解析处理。In addition, in order to shorten the parsing process of the service set identifier, the parsing process may be performed only on the service set identifier of the non-operator network, and/or after a preset number of WIFI networks are preferentially screened in descending order of signal strength, Perform analysis again.
值得说明的是,还可以通过全球定位系统(GPS)直接定位,获取移动终端当前所处的地理位置信息。It is worth noting that, the global positioning system (GPS) can also be used for direct positioning to obtain the current geographic location information of the mobile terminal.
进一步地,如图4所示,根据所述环境信息,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息的步骤,包括:Further, as shown in FIG. 4 , according to the environment information, the step of determining the credibility information when the mobile terminal transmits information through the currently accessed WIFI network includes:
S401、将所述环境信息与预设环境信息的可信度匹配表进行匹配,得到所述环境信息的第一可信度值;S401. Match the environmental information with a reliability matching table of preset environmental information to obtain a first reliability value of the environmental information;
该实施例中,在预设环境信息的可信度匹配表中,可将公共环境信息(例如:商场环境、酒店环境等)的第一可信度值设置为低值(例如:设置为1),将住宅环境信息的第一可信度值设置为高值(例如:设置为10)。此外,还可以根据连接至同一环境信息中的同一WIFI网络的连接次数的增加,相应提高第一可信度值设置。但在确定当前接入的WIFI网络的环境信息为公共环境信息时,初始重置该公共环境信息的第一可信度值为1。In this embodiment, in the credibility matching table of the preset environment information, the first credibility value of the public environment information (eg, shopping mall environment, hotel environment, etc.) can be set to a low value (eg, set to 1). ), the first reliability value of the residential environment information is set to a high value (for example: set to 10). In addition, the first reliability value setting may be correspondingly increased according to the increase in the number of connections to the same WIFI network in the same environment information. However, when it is determined that the environment information of the currently accessed WIFI network is public environment information, the first reliability value of the public environment information is initially reset to 1.
S402、根据预设时间段内移动终端连接当前接入的WIFI网络的连接次数,确定当前接入的WIFI网络的第二可信度值;S402: Determine the second reliability value of the currently accessed WIFI network according to the number of times the mobile terminal is connected to the currently accessed WIFI network within a preset time period;
该实施例中,将未连接过的WIFI网络的第二可信度值设置为1,按照连接次数的增加,相应的提高第二可信度值设置(例如:检测当前WIFI网络的连接次数为5,将第二可信度值设置为3)。此外,还可以针对特定的WIFI网络预设定第二可信度值。例如:当前接入的WIFI网络的预先设定的第二可信度值为10,按照连接次数确定的第二可信度值为1,则取两者平均值确定当前接入的WIFI网络的第二可信度值为5.5。In this embodiment, the second reliability value of the unconnected WIFI network is set to 1, and the second reliability value is set correspondingly according to the increase of the number of connections (for example, the number of connections to detect the current WIFI network is 5. Set the second confidence value to 3). In addition, the second reliability value may also be preset for a specific WIFI network. For example: the preset second reliability value of the currently accessed WIFI network is 10, and the second reliability value determined according to the number of connections is 1, then the average value of the two is taken to determine the current access WIFI network. The second confidence value is 5.5.
S403、根据所述第一可信度值和所述第二可信度值,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息。S403. Determine, according to the first credibility value and the second credibility value, credibility information when the mobile terminal transmits information through the currently accessed WIFI network.
该实施例中,按照预设加权算法,计算第一可信度值和第二可信度值的平均可信度值,作为移动终端通过当前接入的WIFI网络传输信息时的可信度信息。In this embodiment, according to a preset weighting algorithm, the average credibility value of the first credibility value and the second credibility value is calculated as the credibility information when the mobile terminal transmits information through the currently accessed WIFI network .
进一步地,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息的步骤之后,还包括:Further, after the step of determining the credibility information when the mobile terminal transmits information through the currently accessed WIFI network, the method further includes:
当所述可信度信息中的可信度值小于预设可信度值时,则确定所述可信度信息达到预设条件。When the credibility value in the credibility information is less than a preset credibility value, it is determined that the credibility information reaches a preset condition.
该实施例中,将可信度信息中的可信度值与预设可信度值进行比较,若当前接入的WIFI网络可信度值为6,则判定当前接入的WIFI网络为不安全网络(不建议传输包含预定信息内容的信息数据的网络);若该可信度值为10,则判定当前接入的WIFI网络为安全网络。In this embodiment, the credibility value in the credibility information is compared with the preset credibility value, and if the credibility value of the currently accessed WIFI network is 6, it is determined that the currently accessed WIFI network is not A secure network (a network that transmits information data containing predetermined information content is not recommended); if the reliability value is 10, it is determined that the currently accessed WIFI network is a secure network.
具体的,预设可信度值可以按照预设信息内容等级、应用程序等级等来确定。例如:预设信息内容等级的设定:第一等级包括银行账号、个人财产等相关的信息数据;第二等级包括个人住址、联系方式、工作单位等相关的信息数据;第三等级包括用户登录信息等相关的信息数据。将即时通讯软件、涉及用户登录信息的网站等不涉及用户资金、银行账号信息的预设可信度值设置为5-8之间,将涉及不涉及用户资金、银行账号信息的预设可信度值设置为大于8,本发明不以此为限。Specifically, the preset reliability value may be determined according to the preset information content level, application level, and the like. For example: setting of preset information content levels: the first level includes information data related to bank account numbers, personal property, etc.; the second level includes information data related to personal address, contact information, work unit, etc.; the third level includes user login Information and other related information data. Set the preset credibility value of instant messaging software, websites involving user login information, etc. that do not involve user funds and bank account information to between 5 and 8, and set the preset credibility values that do not involve user funds and bank account information. The degree value is set to be greater than 8, and the present invention is not limited to this.
进一步地,如图5所示,所述检测需要通过当前接入的WIFI网络传输信息数据的内容的步骤,包括:Further, as shown in FIG. 5 , the step of detecting the content of information data that needs to be transmitted through the currently accessed WIFI network includes:
S501、获取需要通过当前接入的WIFI网络传输信息数据的内容;S501, acquiring the content of the information data that needs to be transmitted through the currently connected WIFI network;
S502、将所述信息数据与预定信息内容相匹配,当匹配成功时,则确定需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容;S502. Match the information data with the predetermined information content, and when the matching is successful, determine that the content of the information data that needs to be transmitted through the currently accessed WIFI network conforms to the predetermined information content;
该实施例中,预定信息内容包括:用户个人信息(例如:身份证信息、住址、联系方式等)、用户登录信息和银行帐号信息等。预定信息内容以密文存储在终端中。In this embodiment, the predetermined information content includes: user personal information (eg, ID card information, address, contact information, etc.), user login information, bank account information, and the like. The predetermined information content is stored in the terminal in ciphertext.
当可信度信息达到预设条件时,建立数据传输检测线程,检测用户输入的信息数据的内容。对用户需要传输的信息数据的内容进行解析,当确认需要通过当前接入的WIFI网络传输的信息数据的内容包含预设信息内容时,将当前接入的WIFI网络切换至终端运营商的网络进行信息数据的传输。When the credibility information reaches a preset condition, a data transmission detection thread is established to detect the content of the information data input by the user. Analyze the content of the information data that the user needs to transmit, and when it is confirmed that the content of the information data that needs to be transmitted through the currently accessed WIFI network contains the preset information content, switch the currently accessed WIFI network to the terminal operator's network. Transmission of information data.
值得说明的是,信息数据的传输检测是通过在数据传输层进行控制的,即在WIFI网络需要通过数据进行封装传输之前,先进行信息数据内容的对比,再进行信息数据的传输,然后再通过对应的WIFI网络或者移动数据传输数据。It is worth noting that the transmission and detection of information data is controlled at the data transmission layer, that is, before the WIFI network needs to encapsulate and transmit data through data, the content of the information data is compared first, and then the information data is transmitted. Corresponding WIFI network or mobile data transmission data.
具体的,当可信度信息达到预设条件时,首先对涉及预设信息内容的应用程序和浏览器中的网络协议等高安全的网页进行监控(仅针对涉及网络业务的应用程序和输入),增加一个监控器,对每个应用程序产生的进程进行监控,并增加敏感词预制列表(例如:银行账号信息、用户个人信息和用户登录信息等)。Specifically, when the credibility information reaches the preset condition, firstly monitor high-security webpages such as applications involving preset information content and network protocols in browsers (only for applications and inputs involving network services) , add a monitor to monitor the process generated by each application, and add a pre-made list of sensitive words (for example: bank account information, user personal information and user login information, etc.).
当检测到用户打开银行等高安全的应用程序时,建立一个输入检测线程,实时获取应用程序中的用户输入的信息数据。例如:该输入检测线程通过检测应用程序首页的内容,获取敏感词预制列表中的关键字(用户登录信息等)。通过解析用户是否在用户登录信息的后续输入中输入数据内容来对该敏感词预制列表中的数据进行判定。例如:用户在进入银行的应用程序时,第一步的操作就是进行用户名和密码的输入,当确认在进行用户名和密码的输入时,则将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输。When it is detected that the user has opened a high-security application program such as a bank, an input detection thread is established to obtain the information data input by the user in the application program in real time. For example, the input detection thread acquires keywords (user login information, etc.) in the pre-made list of sensitive words by detecting the content of the homepage of the application. The data in the pre-made list of sensitive words is determined by analyzing whether the user inputs data content in the subsequent input of the user login information. For example, when a user enters the bank's application, the first step is to enter the user name and password. When it is confirmed that the user name and password are being entered, the currently connected WIFI network will be switched to the terminal operator's network. The transmission of the information data is performed.
在浏览器中,通过检测线程对网络协议等网页上的数据内容进行检测。当需要用户输入信息数据内容时,对用户输入的信息数据内容进行判定。例如:邮箱网站可以根据用户的设置进行检测,当用户在邮箱首页进行数据内容的输入时,可以对输入的数据内容进行重点检测,当检测到用户在用户名和密码栏进行操作时,则将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输。In the browser, the data content on the web page such as the network protocol is detected by the detection thread. When the user is required to input the content of the information data, the content of the information data input by the user is determined. For example, the mailbox website can be detected according to the user's settings. When the user enters the data content on the home page of the mailbox, the input data content can be mainly detected. When it is detected that the user is operating in the user name and password fields, the current The accessed WIFI network is switched to the terminal operator's network to transmit the information data.
在即时通信应用程序中,通过检测线程对上下文内容进行检测,当检测到上下文内容中包含敏感词预制列表中的关键字时,则将当前接入的WIFI网络切换至终端运营商的网络进行该内容的传输。例如:对上下文内容中的银行账号、身份证号等信息进行判定时,检测所得内容是否是一串数字,对此后的长串数据进行检测。用户登录信息中的用户名、密码等这些在上下文内容中,模糊匹配进行判定,可以通过数据挖掘算法缩小传输范围。In the instant messaging application, the context content is detected by the detection thread. When it is detected that the context content contains the keywords in the pre-made list of sensitive words, the currently connected WIFI network is switched to the terminal operator's network to perform the process. transmission of content. For example, when judging the bank account number, ID number and other information in the context content, check whether the obtained content is a string of numbers, and then check the long string of data afterward. The user name, password, etc. in the user login information are determined by fuzzy matching in the context content, and the transmission range can be narrowed through data mining algorithms.
该实施例中,设定公共环境下WIFI网络的可信度值为低值,即公共环境下WIFI网络为不可信网络。当检测到移动终端处于公共环境时,将每次重新连接至当前WIFI网络的可信度值重置为1。重新启动对终端中的银行应用程序、邮箱登陆等信息进行检测,当检测到带有银行账号信息、密码等的关键字后,将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输。在这里设置一张映射表,通过映射表设置需要重点检测的应用程序和输入,例如:银行应用程序、浏览器、即时通信软件等应用程序以及敏感词预制列表。当待传输的信息数据内容涉及到映射表中的这些内容时,通过终端运营商的网络进行该信息数据的传输。In this embodiment, the reliability value of the WIFI network in the public environment is set to a low value, that is, the WIFI network in the public environment is an untrusted network. When it is detected that the mobile terminal is in a public environment, the reliability value of each reconnection to the current WIFI network is reset to 1. Restart to detect the bank application program, mailbox login and other information in the terminal. When keywords with bank account information, password, etc. are detected, switch the currently connected WIFI network to the terminal operator's network to carry out the information. transmission of data. A mapping table is set here, and the applications and inputs that need to be detected are set through the mapping table, such as banking applications, browsers, instant messaging software and other applications, and a pre-made list of sensitive words. When the content of the information data to be transmitted involves these contents in the mapping table, the information data is transmitted through the network of the terminal operator.
在将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输时,将需要切换至的终端运营商的网络作为一个附加WIFI网络,添加到当前可接入的WIFI网络列表中。将该附加WIFI网络的可信度值的初始值设置为0,在需要切换至该附加WIFI网络进行信息数据的传输时,将该附加WIFI网络的可信度值设置为10,形成一个双数据传输通道。When switching the currently accessed WIFI network to the terminal operator's network to transmit the information data, the terminal operator's network to be switched to is added as an additional WIFI network to the list of currently accessible WIFI networks . The initial value of the credibility value of the additional WIFI network is set to 0, and when it is necessary to switch to the additional WIFI network for information data transmission, the credibility value of the additional WIFI network is set to 10, forming a double data transmission channel.
通过判定待传输的信息数据的内容是否符合预定信息内容来选择数据传输的通道,这里需要通过软件控制的方式设置数据传输优先级。在该附加WIFI网络中,仅传输判定为符合预定信息内容的信息数据,不增加用户的数据负担。当信息数据传输完成后,将该附加WIFI网络的可信度值设置为0,切换至先前的WIFI网络连接,保证在完成信息数据的传输后,可以快速切换至WIFI网络连接,不需要重新进行WIFI网络连接的操作。The data transmission channel is selected by judging whether the content of the information data to be transmitted conforms to the predetermined information content. Here, the data transmission priority needs to be set by means of software control. In the additional WIFI network, only the information data determined to meet the predetermined information content is transmitted, and the data burden of the user is not increased. When the information data transmission is completed, set the credibility value of the additional WIFI network to 0, and switch to the previous WIFI network connection to ensure that after the information data transmission is completed, you can quickly switch to the WIFI network connection, and do not need to be re-connected. WIFI network connection operation.
进一步地,将当前接入的WIFI网络切换至终端运营商的网络进行信息数据的传输的步骤之后,还包括:Further, after the step of switching the currently accessed WIFI network to the terminal operator's network to transmit information data, the method further includes:
将当前连接的终端运营商的网络切换至先前接入的WIFI网络。Switch the currently connected terminal operator's network to the previously accessed WIFI network.
该实施例中,在将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输时,将需要切换至的终端运营商的网络作为一个附加WIFI网络,添加到当前可接入的WIFI网络列表中。将该附加WIFI网络的可信度值的初始值设置为0,在需要切换至该附加WIFI网络进行信息数据的传输时,将该附加WIFI网络的可信度值设置为10,形成一个双数据传输通道。In this embodiment, when the currently accessed WIFI network is switched to the terminal operator's network to transmit the information data, the terminal operator's network to be switched to is added as an additional WIFI network to the currently accessible network WIFI network list. The initial value of the credibility value of the additional WIFI network is set to 0, and when it is necessary to switch to the additional WIFI network for information data transmission, the credibility value of the additional WIFI network is set to 10, forming a double data transmission channel.
通过判定待传输的信息数据的内容是否符合预定信息内容来选择数据传输的通道,这里需要通过软件控制的方式设置数据传输优先级。在该附加WIFI网络中,仅传输判定为符合预定信息内容的信息数据,不增加用户的数据负担。当信息数据传输完成后,将该附加WIFI网络的可信度值设置为0,切换至先前的WIFI网络连接,保证在完成信息数据的传输后,可以快速切换至WIFI网络连接,不需要重新进行WIFI网络连接的操作。The data transmission channel is selected by judging whether the content of the information data to be transmitted conforms to the predetermined information content. Here, the data transmission priority needs to be set by means of software control. In the additional WIFI network, only the information data determined to meet the predetermined information content is transmitted, and the data burden of the user is not increased. When the information data transmission is completed, set the credibility value of the additional WIFI network to 0, and switch to the previous WIFI network connection to ensure that after the information data transmission is completed, you can quickly switch to the WIFI network connection, and do not need to be re-connected. WIFI network connection operation.
如图6所示,本发明实施例还提供了一种WIFI网络下的数据传输装置,应用于移动终端,所述装置包括:As shown in FIG. 6 , an embodiment of the present invention further provides a data transmission device under a WIFI network, which is applied to a mobile terminal, and the device includes:
识别模块61,用于检测移动终端当前所处的环境信息;The
该实施例中,环境信息包括移动终端当前所在的地理位置信息和/或移动终端当前接入网络状态信息。其中,地理位置信息包括商场环境、住宅场所和办公场所等。网络状态信息包括接入运营商的网络状态和接入非运营商的网络状态。In this embodiment, the environment information includes information about the geographic location where the mobile terminal is currently located and/or information about the current access network status of the mobile terminal. Among them, the geographic location information includes shopping mall environment, residential place, office place and so on. The network state information includes the network state of the access operator and the network state of the access non-operator.
处理模块62,用于根据所述环境信息,确定移动终端通过当前接入的WIFI网络传输信息时的可信度信息;The
该实施例中,可信度信息可以是根据预设的地理位置信息的可信度值、预设时间段内连接当前接入的WIFI网络的连接次数、网络状态信息等确定。In this embodiment, the credibility information may be determined according to the credibility value of the preset geographic location information, the number of connections to the currently accessed WIFI network within the preset time period, network status information, and the like.
检测模块63,用于在所述可信度信息达到预设条件时,检测需要通过当前接入的WIFI网络传输信息数据的内容;The
该实施例中,检测模块63在检测当前需要传输的信息数据的内容中包含预定信息内容时,将当前需要传输的信息数据的内容发送至传输模块64进行传输。其中,该预定信息内容包括:用户的银行账号、身份证号码、联系方式和其他的用户名及密码等信息。In this embodiment, the
传输模块64,用于若需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容时,则将当前接入的WIFI网络切换至终端运营商的网络进行所述信息数据的传输。The
该实施例中,传输模块64接收检测模块63发送的信息数据的内容,并将当前接入的WIFI网络切换至终端运营商的网络进行信息数据的传输。该方案在当前接入的WIFI网络的可信度值低于预设可信度值时,避免了用户个人的信息数据泄露。In this embodiment, the
进一步地,所述识别模块61包括:Further, the
第一解析单元610,用于对当前接入的WIFI网络的服务集标识进行解析,获得第一解析信息;A
该实施例中,以商场环境为例,对解析WIFI网络的服务集标识的方式进行说明。例如,对包含中文名称的服务集标识,采取直接提取中文关键字的方式。对于以店家名称命名的服务集标识,可以直接提取店家名称作为第一关键字。对包含字母名称的服务集标识,可以按照字母对照中文拼音的方式进行解析,将其中的中文拼音翻译成中文名称,并获取第一关键字。对包含英文名称的服务集标识,可以直接以英文名称表示的店家名称作为第一关键字。In this embodiment, the method of parsing the service set identifier of the WIFI network is described by taking the shopping mall environment as an example. For example, for a service set identifier containing a Chinese name, the method of directly extracting Chinese keywords is adopted. For a service set identifier named with a store name, the store name can be directly extracted as the first keyword. For the service set identifier including the alphabetic name, it can be parsed according to the way that the alphabet is compared with the Chinese pinyin, the Chinese pinyin therein is translated into the Chinese name, and the first keyword is obtained. For the service set identifier including the English name, the store name represented by the English name can be directly used as the first keyword.
第一获取单元611,用于获取所述第一解析信息中的第一关键字;a first obtaining
该实施例中,第一关键字为表征移动终端当前所处的环境信息的关键字。例如:解析得到第一解析信息为某服装品牌的名称,则提取该服装品牌名称作为第一关键字。根据该第一关键字可以确定当前移动终端所处的环境信息为商场环境。In this embodiment, the first keyword is a keyword representing environmental information where the mobile terminal is currently located. For example, if it is obtained by parsing that the first parsed information is the name of a certain clothing brand, the clothing brand name is extracted as the first keyword. According to the first keyword, it can be determined that the current environment information of the mobile terminal is the shopping mall environment.
第一识别单元612,用于根据所述第一关键字确定移动终端当前所处的环境信息。The
该实施例中,第一识别单元612可以是将第一关键字与预设环境信息的判定表进行匹配,将与该第一关键字对应的预设环境信息的判定表中的环境信息,作为移动终端当前所处的环境信息。In this embodiment, the
进一步地,所述识别模块61包括:Further, the
第二解析单元613,用于对当前所有可接入的WIFI网络的服务集标识进行解析,获得每一可接入的WIFI网络的服务集标识对应的第二解析信息;The
第二获取单元614,用于获取每一所述第二解析信息中的第二关键字;A second obtaining
第二识别单元615,用于根据所述第二关键字确定所述移动终端当前所处的环境信息。The second identifying
该实施例中,针对仅通过解析当前接入的WIFI网络的服务集标识并获取第一关键字的方式,不能确定对应的环境信息的情况,还可以通过第二解析单元613对当前所有可接入的WIFI网络的服务集标识进行解析,并通过第二获取单元614获取每个可接入的WIFI网络的服务集标识对应的第二解析信息中的第二关键字。第二识别单元615根据多个第二关键字确定移动终端当前所处的环境信息。In this embodiment, in the case where the corresponding environmental information cannot be determined only by parsing the service set identifier of the currently accessed WIFI network and obtaining the first keyword, the
具体的,可以按照当前可接入的WIFI网络的信号强度由高到低的顺序,筛选出预设数量的WIFI网络对应的第二关键字。按照筛选出的第二关键字与预设环境信息的判定表进行匹配,将数量最多的与第二关键字对应的环境信息,作为移动终端当前所处的环境信息。Specifically, the second keywords corresponding to the preset number of WIFI networks may be screened out in descending order of signal strengths of currently accessible WIFI networks. Matching is performed according to the judgment table of the filtered second keyword and the preset environmental information, and the environmental information corresponding to the second keyword with the largest number is used as the current environmental information of the mobile terminal.
此外,为了缩短对服务集标识的解析过程,可以仅针对非运营商的网络的服务集标识进行解析处理和/或优先按照信号强度由高到低的顺序筛选出预设数量的WIFI网络后,再进行解析处理。In addition, in order to shorten the parsing process of the service set identifier, the parsing process may be performed only on the service set identifier of the non-operator network, and/or after a preset number of WIFI networks are preferentially screened in descending order of signal strength, Perform analysis again.
值得说明的是,还可以通过全球定位系统(GPS)直接定位,获取移动终端当前所处的地理位置信息。It is worth noting that, the global positioning system (GPS) can also be used for direct positioning to obtain the current geographic location information of the mobile terminal.
进一步地,所述处理模块62包括:Further, the
第一匹配单元620,用于将所述环境信息与预设环境信息的可信度匹配表进行匹配,得到所述环境信息的第一可信度值;a
该实施例中,在预设环境信息的可信度匹配表中,可将公共环境信息(例如:商场环境、酒店环境等)的第一可信度值设置为低值(例如:设置为1),将住宅环境信息的第一可信度值设置为高值(例如:设置为10)。此外,还可以根据连接至同一环境信息中的同一WIFI网络的连接次数的增加,相应提高第一可信度值设置。但在确定当前接入的WIFI网络的环境信息为公共环境信息时,初始重置该公共环境信息的第一可信度值为1。In this embodiment, in the credibility matching table of the preset environment information, the first credibility value of the public environment information (eg, shopping mall environment, hotel environment, etc.) can be set to a low value (eg, set to 1). ), the first reliability value of the residential environment information is set to a high value (for example: set to 10). In addition, the first reliability value setting may be correspondingly increased according to the increase in the number of connections to the same WIFI network in the same environment information. However, when it is determined that the environment information of the currently accessed WIFI network is public environment information, the first reliability value of the public environment information is initially reset to 1.
第一处理单元621,用于根据预设时间段内移动终端连接当前接入的WIFI网络的连接次数,确定当前接入的WIFI网络的第二可信度值;The
该实施例中,将未连接过的WIFI网络的第二可信度值设置为1。按照连接次数的增加,相应的提高第二可信度值设置(例如:检测当前WIFI网络的连接次数为5,将第二可信度值设置为3)。此外,还可以针对特定的WIFI网络预设定第二可信度值。例如:当前接入的WIFI网络的预先设定的第二可信度值为10,按照连接次数确定的第二可信度值为1,则取两者平均值确定当前接入的WIFI网络的第二可信度值为5.5。In this embodiment, the second reliability value of the unconnected WIFI network is set to 1. According to the increase of the number of connections, the setting of the second reliability value is correspondingly increased (for example, the number of connections to detect the current WIFI network is 5, and the second reliability value is set to 3). In addition, the second reliability value may also be preset for a specific WIFI network. For example: the preset second reliability value of the currently accessed WIFI network is 10, and the second reliability value determined according to the number of connections is 1, then the average value of the two is taken to determine the current access WIFI network. The second confidence value is 5.5.
第二处理单元622,用于根据所述第一可信度值和所述第二可信度值,确定所述移动终端通过当前接入的WIFI网络传输信息时的可信度信息。The
该实施例中,第二处理单元622可以是按照预设加权算法,计算第一可信度值和第二可信度值的平均可信度值,作为移动终端通过当前接入的WIFI网络传输信息时的可信度信息。In this embodiment, the
进一步地,所述装置还包括:Further, the device also includes:
判断模块65,用于当所述可信度信息中的可信度值小于预设可信度值时,则确定所述可信度信息达到预设条件。The judging
该实施例中,判断模块65是将可信度信息中的可信度值与预设可信度值(例如:预设可信度值设置为8)进行比较,若当前接入的WIFI网络可信度值为6,则判定当前接入的WIFI网络为不安全网络(不建议传输包含预定信息内容的信息数据的网络);若该可信度值为10,则判定当前接入的WIFI网络为安全网络。In this embodiment, the judging
具体的,预设可信度值可以按照预设信息内容等级、应用程序等级等来确定。例如:预设信息内容等级的设定:第一等级包括银行账号、个人财产等相关的信息数据;第二等级包括个人住址、联系方式、工作单位等相关的信息数据;第三等级包括用户登录信息等相关的信息数据。将即时通讯软件、涉及用户登录信息的网站等不涉及用户资金、银行账号信息的预设可信度值设置为5-8之间,将涉及不涉及用户资金、银行账号信息的预设可信度值设置为大于8,本发明不以此为限。Specifically, the preset reliability value may be determined according to the preset information content level, application level, and the like. For example: setting of preset information content levels: the first level includes information data related to bank account numbers, personal property, etc.; the second level includes information data related to personal address, contact information, work unit, etc.; the third level includes user login Information and other related information data. Set the preset credibility value of instant messaging software, websites involving user login information, etc. that do not involve user funds and bank account information to between 5 and 8, and set the preset credibility values that do not involve user funds and bank account information. The degree value is set to be greater than 8, and the present invention is not limited to this.
进一步地,所述检测模块63包括:Further, the
第三获取单元630,用于获取需要通过当前接入的WIFI网络传输信息数据的内容;A third obtaining
第二匹配单元631,用于将所述信息数据与预定信息内容相匹配,当匹配成功时,则确定需要通过当前接入的WIFI网络传输信息数据的内容符合预定信息内容;The
该实施例中,预定信息内容包括:用户个人信息(例如:身份证信息、住址、联系方式等)、用户登录信息和银行帐号信息等。预定信息内容以密文存储在终端中。In this embodiment, the predetermined information content includes: user personal information (eg, ID card information, address, contact information, etc.), user login information, bank account information, and the like. The predetermined information content is stored in the terminal in ciphertext.
当可信度信息达到预设条件时,检测模块63建立数据传输检测线程,检测用户输入的信息数据的内容。第三获取单元630对用户需要传输的信息数据的内容进行解析,当第二匹配单元631确认需要通过当前接入的WIFI网络传输的信息数据的内容包含预设信息内容时,则通过传输模块64将当前接入的WIFI网络切换至终端运营商的网络进行信息数据的传输。When the credibility information reaches the preset condition, the
值得说明的是,信息数据的传输检测是通过在数据传输层进行控制的,即在WIFI网络需要通过数据进行封装传输之前,先进行信息数据内容的对比,再进行信息数据的传输,然后再通过对应的WIFI网络或者移动数据传输数据。It is worth noting that the transmission and detection of information data is controlled at the data transmission layer, that is, before the WIFI network needs to encapsulate and transmit data through data, the content of the information data is compared first, and then the information data is transmitted. Corresponding WIFI network or mobile data transmission data.
具体的,当可信度信息达到预设条件时,检测模块63首先对涉及预设信息内容的应用程序和浏览器中的网络协议等高安全的网页进行监控(仅针对涉及网络业务的应用程序和输入),增加一个监控器,对每个应用程序产生的进程进行监控,并增加敏感词预制列表(例如:银行账号信息、用户个人信息和用户登录信息等)。Specifically, when the credibility information reaches the preset condition, the
当检测到用户打开银行等高安全的应用程序时,建立一个输入检测线程,实时获取应用程序中的用户输入的信息数据。例如:该输入检测线程通过检测应用程序首页的内容,获取敏感词预制列表中的关键字(用户登录信息等)。通过解析用户是否在用户登录信息的后续输入中输入数据内容来对该敏感词预制列表中的数据进行判定。例如:用户在进入银行的应用程序时,第一步的操作就是进行用户名和密码的输入,当确认在进行用户名和密码的输入时,则将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输。When it is detected that the user has opened a high-security application program such as a bank, an input detection thread is established to obtain the information data input by the user in the application program in real time. For example, the input detection thread acquires keywords (user login information, etc.) in the pre-made list of sensitive words by detecting the content of the homepage of the application. The data in the pre-made list of sensitive words is determined by analyzing whether the user inputs data content in the subsequent input of the user login information. For example, when a user enters the bank's application, the first step is to enter the user name and password. When it is confirmed that the user name and password are being entered, the currently connected WIFI network will be switched to the terminal operator's network. The transmission of the information data is performed.
在浏览器中,通过检测线程对网络协议等网页上的数据内容进行检测。当需要用户输入信息数据内容时,对用户输入的信息数据内容进行判定。例如:邮箱网站可以根据用户的设置进行检测,当用户在邮箱首页进行数据内容的输入时,可以对输入的数据内容进行重点检测,当检测到用户在用户名和密码栏进行操作时,则将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输。In the browser, the data content on the web page such as the network protocol is detected by the detection thread. When the user is required to input the content of the information data, the content of the information data input by the user is determined. For example, the mailbox website can be detected according to the user's settings. When the user enters the data content on the home page of the mailbox, the input data content can be mainly detected. When it is detected that the user is operating in the user name and password fields, the current The accessed WIFI network is switched to the terminal operator's network to transmit the information data.
在即时通信应用程序中,通过检测线程对上下文内容进行检测,当检测到上下文内容中包含敏感词预制列表中的关键字时,则将当前接入的WIFI网络切换至终端运营商的网络进行该内容的传输。例如:对上下文内容中的银行账号、身份证号等信息进行判定时,检测所得内容是否是一串数字,对此下文内容中的长串数据进行检测。用户登录信息中的用户名、密码等这些在上下文内容中,模糊匹配进行判定,可以通过数据挖掘算法缩小传输范围。In the instant messaging application, the context content is detected by the detection thread. When it is detected that the context content contains the keywords in the pre-made list of sensitive words, the currently connected WIFI network is switched to the terminal operator's network to perform the process. transmission of content. For example, when judging the bank account number, ID number and other information in the context content, detect whether the obtained content is a series of numbers, and then detect the long series of data in the context content. The user name, password, etc. in the user login information are determined by fuzzy matching in the context content, and the transmission range can be narrowed through data mining algorithms.
该实施例中,设定公共环境下WIFI网络的可信度值为低值,即公共环境下WIFI网络为不可信网络。当检测到移动终端处于公共环境时,将每次重新连接至当前WIFI网络的可信度值重置为1。重新启动对终端中的银行应用程序、邮箱登陆等信息进行检测,当检测到带有银行账号信息、密码等的关键字后,将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输。在这里设置一张映射表,通过映射表设置需要重点检测的应用程序和输入,例如:银行应用程序、浏览器、即时通信软件等应用程序以及敏感词预制列表。当待传输的信息数据内容涉及到映射表中的这些内容时,通过终端运营商的网络进行该信息数据的传输。In this embodiment, the reliability value of the WIFI network in the public environment is set to a low value, that is, the WIFI network in the public environment is an untrusted network. When it is detected that the mobile terminal is in a public environment, the reliability value of each reconnection to the current WIFI network is reset to 1. Restart to detect the bank application program, mailbox login and other information in the terminal. When keywords with bank account information, password, etc. are detected, switch the currently connected WIFI network to the terminal operator's network to carry out the information. transmission of data. A mapping table is set here, and the applications and inputs that need to be detected are set through the mapping table, such as banking applications, browsers, instant messaging software and other applications, and a pre-made list of sensitive words. When the content of the information data to be transmitted involves these contents in the mapping table, the information data is transmitted through the network of the terminal operator.
在将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输时,将需要切换至的终端运营商的网络作为一个附加WIFI网络,添加到当前可接入的WIFI网络列表中。将该附加WIFI网络的可信度值的初始值设置为0,在需要切换至该附加WIFI网络进行信息数据的传输时,将该附加WIFI网络的可信度值设置为10,形成一个双数据传输通道。When switching the currently accessed WIFI network to the terminal operator's network to transmit the information data, the terminal operator's network to be switched to is added as an additional WIFI network to the list of currently accessible WIFI networks . The initial value of the credibility value of the additional WIFI network is set to 0, and when it is necessary to switch to the additional WIFI network for information data transmission, the credibility value of the additional WIFI network is set to 10, forming a double data transmission channel.
通过判定待传输的信息数据的内容是否符合预定信息内容来选择数据传输的通道,这里需要通过软件控制的方式设置数据传输优先级。在该附加WIFI网络中,仅传输判定为符合预定信息内容的信息数据,不增加用户的数据负担。当信息数据传输完成后,将该附加WIFI网络的可信度值设置为0,切换至先前的WIFI网络连接,保证在完成信息数据的传输后,可以快速切换至WIFI网络连接,不需要重新进行WIFI网络连接的操作。The data transmission channel is selected by judging whether the content of the information data to be transmitted conforms to the predetermined information content. Here, the data transmission priority needs to be set by means of software control. In the additional WIFI network, only the information data determined to meet the predetermined information content is transmitted, and the data burden of the user is not increased. When the information data transmission is completed, set the credibility value of the additional WIFI network to 0, and switch to the previous WIFI network connection to ensure that after the information data transmission is completed, you can quickly switch to the WIFI network connection, and do not need to be re-connected. WIFI network connection operation.
进一步地,所述装置还包括:Further, the device also includes:
切换模块66,用于将当前连接的终端运营商的网络切换至先前接入的WIFI网络。The
该实施例中,传输模块64在将当前接入的WIFI网络切换至终端运营商的网络进行该信息数据的传输时,将需要切换至的终端运营商的网络作为一个附加WIFI网络,添加到当前可接入的WIFI网络列表中。将该附加WIFI网络的可信度值的初始值设置为0,在需要切换至该附加WIFI网络进行信息数据的传输时,将该附加WIFI网络的可信度值设置为10,形成一个双数据传输通道。In this embodiment, when switching the currently accessed WIFI network to the terminal operator's network to transmit the information data, the
通过判定待传输的信息数据的内容是否符合预定信息内容来选择数据传输的通道,这里需要通过软件控制的方式设置数据传输优先级。在该附加WIFI网络中,仅传输判定为符合预定信息内容的信息数据,不增加用户的数据负担。当信息数据传输完成后,将该附加WIFI网络的可信度值设置为0,通过切换模块66将当前连接的运营商的网络切换至先前的WIFI网络连接,保证在完成信息数据的传输后,可以快速切换至WIFI网络连接,不需要重新进行WIFI网络连接的操作。The data transmission channel is selected by judging whether the content of the information data to be transmitted conforms to the predetermined information content. Here, the data transmission priority needs to be set by means of software control. In the additional WIFI network, only the information data determined to meet the predetermined information content is transmitted, and the data burden of the user is not increased. After the information data transmission is completed, the reliability value of the additional WIFI network is set to 0, and the currently connected operator's network is switched to the previous WIFI network connection through the
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。The above are the preferred embodiments of the present invention, and it should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also included in the present invention. within the scope of protection of the invention.
Claims (12)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610820772.9A CN107820237B (en) | 2016-09-12 | 2016-09-12 | A data transmission method and device under a WIFI network |
| PCT/CN2017/081015 WO2018045755A1 (en) | 2016-09-12 | 2017-04-19 | Data transmission method and device in wifi network, and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610820772.9A CN107820237B (en) | 2016-09-12 | 2016-09-12 | A data transmission method and device under a WIFI network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107820237A CN107820237A (en) | 2018-03-20 |
| CN107820237B true CN107820237B (en) | 2020-11-20 |
Family
ID=61561313
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610820772.9A Active CN107820237B (en) | 2016-09-12 | 2016-09-12 | A data transmission method and device under a WIFI network |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107820237B (en) |
| WO (1) | WO2018045755A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108174378B (en) * | 2018-03-21 | 2021-08-20 | Oppo广东移动通信有限公司 | Number identification method, device, terminal and storage medium |
| CN109115973A (en) * | 2018-08-03 | 2019-01-01 | 成都清渟科技有限公司 | A kind of water purification monitoring terminal, monitoring system and its data transmission method |
| CN109257729A (en) | 2018-09-19 | 2019-01-22 | Oppo广东移动通信有限公司 | Method for message transmission, device, terminal and storage medium |
| CN110519460A (en) * | 2019-08-28 | 2019-11-29 | 北京风信科技有限公司 | Prevent the safety communicating method and mobile terminal that mobile terminal is positioned |
| CN112449388B (en) * | 2019-09-04 | 2024-09-24 | 中兴通讯股份有限公司 | Network connection control method, device, mobile terminal and storage medium |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7099309B2 (en) * | 2003-10-10 | 2006-08-29 | Air-Bank Llc | Using a handheld communication device with a hot spot network |
| EP2466850B1 (en) * | 2009-02-27 | 2013-05-29 | Research In Motion Limited | Systems and methods for facilitating conference calls using security tokens |
| CN103368941A (en) * | 2013-04-22 | 2013-10-23 | 北京奇虎科技有限公司 | User network access scenario-based protection method and device |
| CN104008482A (en) * | 2014-06-10 | 2014-08-27 | 北京奇虎科技有限公司 | Mobile terminal and payment method and device based on mobile terminal |
| CN104821992A (en) * | 2015-05-25 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for automatically switching network connection type of mobile phone |
| CN104869565A (en) * | 2015-05-28 | 2015-08-26 | 魅族科技(中国)有限公司 | Communication information access method and terminal |
| CN104883294A (en) * | 2015-05-28 | 2015-09-02 | 魅族科技(中国)有限公司 | Data transmission control method and device |
| CN104902481A (en) * | 2015-06-30 | 2015-09-09 | 北京奇虎科技有限公司 | Traffic-free security takeover method |
| CN105282735A (en) * | 2015-09-01 | 2016-01-27 | 上海斐讯数据通信技术有限公司 | Privacy protection method and protection system used based on mobile terminal networking |
| CN105447702A (en) * | 2015-11-12 | 2016-03-30 | 宁波萨瑞通讯有限公司 | Network secure payment method for terminal system |
| CN105550591A (en) * | 2015-12-10 | 2016-05-04 | 厦门美图移动科技有限公司 | Security protection device and method for user data in mobile terminal |
| CN105873062A (en) * | 2016-06-27 | 2016-08-17 | 联想(北京)有限公司 | Method and device to be networked with wireless communication network, and terminal equipment |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101794486A (en) * | 2010-02-02 | 2010-08-04 | 李东风 | Brand new electronic fund transferring method capable of realizing safe earmarking and unloading |
| CN105430023A (en) * | 2016-01-04 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Method and device for ensuring information safety |
| CN106412903A (en) * | 2016-11-28 | 2017-02-15 | 深圳天珑无线科技有限公司 | Mobile terminal data transmission method and device |
-
2016
- 2016-09-12 CN CN201610820772.9A patent/CN107820237B/en active Active
-
2017
- 2017-04-19 WO PCT/CN2017/081015 patent/WO2018045755A1/en not_active Ceased
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7099309B2 (en) * | 2003-10-10 | 2006-08-29 | Air-Bank Llc | Using a handheld communication device with a hot spot network |
| EP2466850B1 (en) * | 2009-02-27 | 2013-05-29 | Research In Motion Limited | Systems and methods for facilitating conference calls using security tokens |
| CN103368941A (en) * | 2013-04-22 | 2013-10-23 | 北京奇虎科技有限公司 | User network access scenario-based protection method and device |
| CN104008482A (en) * | 2014-06-10 | 2014-08-27 | 北京奇虎科技有限公司 | Mobile terminal and payment method and device based on mobile terminal |
| CN104821992A (en) * | 2015-05-25 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for automatically switching network connection type of mobile phone |
| CN104869565A (en) * | 2015-05-28 | 2015-08-26 | 魅族科技(中国)有限公司 | Communication information access method and terminal |
| CN104883294A (en) * | 2015-05-28 | 2015-09-02 | 魅族科技(中国)有限公司 | Data transmission control method and device |
| CN104902481A (en) * | 2015-06-30 | 2015-09-09 | 北京奇虎科技有限公司 | Traffic-free security takeover method |
| CN105282735A (en) * | 2015-09-01 | 2016-01-27 | 上海斐讯数据通信技术有限公司 | Privacy protection method and protection system used based on mobile terminal networking |
| CN105447702A (en) * | 2015-11-12 | 2016-03-30 | 宁波萨瑞通讯有限公司 | Network secure payment method for terminal system |
| CN105550591A (en) * | 2015-12-10 | 2016-05-04 | 厦门美图移动科技有限公司 | Security protection device and method for user data in mobile terminal |
| CN105873062A (en) * | 2016-06-27 | 2016-08-17 | 联想(北京)有限公司 | Method and device to be networked with wireless communication network, and terminal equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107820237A (en) | 2018-03-20 |
| WO2018045755A1 (en) | 2018-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108737327B (en) | Method, device and system for intercepting malicious website and memory | |
| US11128621B2 (en) | Method and apparatus for accessing website | |
| CN107820237B (en) | A data transmission method and device under a WIFI network | |
| EP3072334B1 (en) | Method, system and apparatus for automatically connecting to wlan | |
| WO2015157924A1 (en) | Authorization control method, client and server | |
| KR20160123069A (en) | Unification Authentication Control Method for Terminal and Apparatus thereof | |
| CN104092542A (en) | Account login method, device and system | |
| WO2015090042A1 (en) | A validity verification method and intermediate server | |
| CN103023930A (en) | Webpage sharing method and device | |
| US9191392B2 (en) | Security configuration | |
| CN104363226A (en) | Method, device and system for logging in operating system | |
| WO2014206047A1 (en) | Method, device and system for identifying harmful websites | |
| CN106899549A (en) | A kind of network security detection method and device | |
| CN104580197A (en) | Code detection method and code detection system | |
| US10474810B2 (en) | Controlling access to web resources | |
| CN103533520A (en) | Method and apparatus conduct remote communication with an electronic device in a communication network environment | |
| CN111683370A (en) | Access authentication method, device and system of wireless network equipment | |
| CN113709136B (en) | Access request verification method and device | |
| CN110071926A (en) | A kind of data processing method and device | |
| CN105490913A (en) | Instant message processing method and device | |
| US20180077065A1 (en) | Transmitting packet | |
| US12101313B2 (en) | Multi-platform authentication | |
| KR20140023085A (en) | A method for user authentication, a authentication server and a user authentication system | |
| CN108092974B (en) | Internet access authentication method and device | |
| CN105991572B (en) | Login authentication method, device and system of wireless network |
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 |