CN111866993B - Wireless local area network connection management method, device, software program and storage medium - Google Patents
Wireless local area network connection management method, device, software program and storage medium Download PDFInfo
- Publication number
- CN111866993B CN111866993B CN202010670353.8A CN202010670353A CN111866993B CN 111866993 B CN111866993 B CN 111866993B CN 202010670353 A CN202010670353 A CN 202010670353A CN 111866993 B CN111866993 B CN 111866993B
- Authority
- CN
- China
- Prior art keywords
- local area
- wireless local
- area network
- free
- information
- 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
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a wireless local area network connection management method, which comprises the following steps: acquiring wireless local area network resources of an area where equipment to be networked is located; determining information of at least one wireless local area network based on the wireless local area network resources; detecting a status of at least one of the wireless local area network resources via an offline identification database; when the wireless local area network is determined to be connectable, the access information of the wireless local area network is added to the free wireless local area network list, so that the equipment to be networked can access the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list. The invention can improve the efficiency of accessing the wireless local area network and the accuracy of accessing the equipment to be networked into the wireless local area network.
Description
Technical Field
The present invention relates to wireless lan processing technologies, and in particular, to a wireless lan connection management method, apparatus, system, software program, and storage medium.
Background
In the related art, a terminal such as a mobile phone or a tablet computer can access the Internet (Internet) through a Wireless Local Area Network (WLAN). With the widespread use of user terminals, wireless local area networks have become an important form of accessing the internet for user terminals. A common Wireless local area network is a Wi-Fi (Wireless-Fidelity) network. Most commercial sites currently provide public wireless local area networks for free use by users. When the terminal of the user is connected with the usable wireless local area network, the user cannot be connected with the network, so that the user cannot timely and accurately determine which wireless local area networks in the use environment are free wireless local area networks, and the efficiency and the accuracy of the electronic equipment in connecting with the network are influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a software program, and a storage medium for managing wlan connection, which can authenticate and record a free wlan in a use environment, improve efficiency of accessing the free wlan, and store access information of the free wlan in a corresponding offline identification database, so as to improve efficiency and accuracy of accessing a device to be networked to the wlan.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a wireless local area network connection management method, which comprises the following steps:
acquiring wireless local area network resources of an area where equipment to be networked is located, wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the equipment to be networked is located;
determining information of at least one wireless local area network based on the wireless local area network resources;
detecting a status of at least one of the wireless local area network resources via an offline identification database;
adding the access information of the wireless local area network to a free wireless local area network list when the state of the wireless local area network is determined to be connectable, so that the wireless local area network is connected
And the equipment to be networked accesses the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list.
An embodiment of the present invention further provides a wlan connection management apparatus, including:
the information transmission module is used for acquiring wireless local area network resources of an area where the equipment to be networked is located, wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the equipment to be networked is located;
the information processing module is used for determining information of at least one wireless local area network based on the wireless local area network resources;
the information processing module is used for detecting the state of at least one wireless local area network in the wireless local area network resources through an offline identification database;
the information processing module is used for adding the access information of the wireless local area network to a free wireless local area network list when the state of the wireless local area network is determined to be connectable, so that the equipment to be networked can access the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list.
In the above-mentioned scheme, the first step of the method,
the information transmission module is used for scanning signals of wireless local area networks in the environment where the equipment to be networked is located so as to determine the information of at least one connectable wireless local area network;
the information transmission module is used for analyzing the wireless local area network signals received by the equipment to be networked so as to determine the information of at least one connectable wireless local area network.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for acquiring wireless local area network resources of an area where the networked equipment is located when the equipment is in a networked state, wherein the wireless local area network resources comprise at least one wireless local area network, and the wireless local area network comprises at least one access point;
the information processing module is used for identifying free wireless local area networks in the wireless local area network resources based on the information of the at least one wireless local area network and detecting the connection state of the free wireless local area networks;
the information processing module is used for sequencing the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources and the connection state of the free wireless local area networks;
the information processing module is used for storing the access information of the wireless local area network into a corresponding offline identification database based on the sequencing result of the free wireless local area network in the wireless local area network resource, so that the equipment to be networked can obtain the access information in the offline identification database and access the corresponding wireless local area network according to the access information of the wireless local area network.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for monitoring and scanning signals of the wireless local area networks in the areas where the networked devices are located to determine information of at least one wireless local area network, or analyzing a set of wireless local area network signals output by the networked devices to determine information of at least one wireless local area network.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for sending all wireless local area network access point information in the wireless local area network resources to a free wireless local area network management server;
the information processing module is used for receiving the identification result sent by the free wireless local area network management server and determining the free wireless local area network in the wireless local area network resource based on the identification result, wherein the free wireless local area network management server carries out information matching based on the site address identification and the service set identification in the wireless local area network access point information,
the information processing module is used for sending a connection request to a target detection server through the free wireless local area network and determining the connection state of the free wireless local area network according to the response state of the connection request.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for determining the signal intensity of different free wireless local area networks in a connectable state based on the identification result of the free wireless local area networks in the wireless local area network resources;
the information processing module is used for adjusting the connection sequence of the free wireless local area networks in the wireless local area network resources based on the signal intensity of the different free wireless local area networks and deleting the free wireless local area networks with the signal intensity lower than the signal intensity threshold value so as to realize that the connection sequence of the free wireless local area networks is matched with the area where the networked equipment is located.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for detecting the connectivity of all free wireless local area networks in a free wireless local area network list based on the sequencing result of the free wireless local area networks in the wireless local area network resources,
the information processing module is used for monitoring a detection process of the connectability of the free wireless local area network;
and the information processing module is used for outputting a corresponding deleting instruction based on the monitoring result of the detection process of the connectability of the free wireless local area network so as to delete the configuration record of the wireless local area network in the networked equipment.
In the above-mentioned scheme, the first step of the method,
the information processing module is configured to, when it is determined that the connectivity of all free wireless local area networks in the free wireless local area network list is normal, perform information matching by the free wireless local area network management server based on the site address identifier and the service set identifier in the corresponding access point information, so as to store the access information of the wireless local area network in a corresponding offline identification database, or adjust the access information of the wireless local area network stored in the offline identification database.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for sending the equipment identification, the off-line identification database information and the newly added free wireless local area network access information to the block chain network so as to ensure that the equipment identification, the off-line identification database information and the newly added free wireless local area network access information are sent to the block chain network
And the information processing module is used for filling the equipment identifier, the off-line identification database information and the newly added free wireless local area network access information into a new block by the node of the block chain network, and when the new block is identified in a consistent manner, adding the new block to the tail part of the block chain.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for receiving data synchronization requests of other nodes in the block chain network;
the information processing module is used for responding to the data synchronization request and verifying the authority of the other nodes;
and the information processing module is used for controlling the current node and the other nodes to carry out data synchronization when the authority of the other nodes passes verification so as to realize that the other nodes acquire the equipment identification, the off-line identification database information and the newly added free wireless local area network access information.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for responding to a query request and analyzing the query request to obtain a corresponding object identifier;
the information processing module is used for acquiring authority information in a target block in a block chain network according to the object identifier;
the information processing module is used for verifying the matching of the authority information and the object identification;
the information processing module is used for acquiring corresponding equipment identification, offline identification database information and newly added free wireless local area network access information in the block chain network when the authority information is matched with the object identification;
the information processing module is configured to respond to the query request, and push the acquired offline identification database information and the newly added free wireless local area network access information to a corresponding client, so that the client acquires the corresponding device identifier, the offline identification database information, and the newly added free wireless local area network access information stored in the block chain network.
The embodiment of the invention also provides a software program, which comprises:
a memory for storing executable instructions;
and the processor is used for realizing the preorder wireless local area network connection management method when the executable instructions stored in the memory are operated.
The embodiment of the invention also provides a computer-readable storage medium, which stores executable instructions, and the executable instructions are executed by a processor to realize the preorder wireless local area network connection management method.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention obtains the wireless local area network resources of the area where the equipment to be networked is located, wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the equipment to be networked is located; determining information of at least one wireless local area network based on the wireless local area network resources; detecting a status of at least one of the wireless local area network resources via an offline identification database; when the state of the wireless local area network is determined to be connectable, the access information of the wireless local area network is added to the free wireless local area network list, so that the free wireless local area network in the use environment can be authenticated and recorded, the efficiency of accessing the wireless local area network is improved, the device to be networked can be accessed to the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list, the efficiency and the accuracy of accessing the wireless local area network by the device to be networked are improved, and the time of a user waiting for the device to be accessed to the wireless network is reduced.
Drawings
Fig. 1 is a schematic usage environment diagram of a wlan connection management method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a wlan connection management apparatus according to an embodiment of the present invention;
fig. 3A is a schematic flow chart of an alternative wlan connection management method according to an embodiment of the present invention;
fig. 3B is a schematic flow chart of an alternative wlan connection management method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of an alternative wlan connection management method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of an alternative wlan connection management method according to an embodiment of the present invention
Fig. 6A is a schematic flow chart of an alternative wlan connection management method according to an embodiment of the present invention;
fig. 6B is a schematic diagram illustrating a display effect of a wlan connection management method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of the target object determining apparatus 100 according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a block chain in the block chain network 200 according to an embodiment of the present invention;
fig. 9 is a functional architecture diagram of a blockchain network 200 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) A wireless local area network: devices are communicatively connected over the air using a local area network of radio frequency technology, such as electromagnetic waves, typical transmission technologies including wireless-compatible authentication (Wi-Fi).
2) Wireless local area network information: the information of the wireless local area network includes information such as BSSID (Basic Service Set Identifier), SSID (Service Set Identifier), encryption mode, etc. BSSID is a MAC (Media Access Control) address of the routing device, and SSID is a name of the wireless lan network.
3) Quality of wireless local area network: and taking factors such as signals, uplink and downlink bandwidths, connection success rate and the like of the wireless local area network as evaluation parameters of the quality of the wireless local area network, and quantifying the quality of the wireless local area network. Generally speaking, the better the quality of the wireless lan, the faster the corresponding connection speed, and the stronger the transmission capability of the network.
4) Access Controller (Wireless Access Point Controller): the wireless local area network management system is a network device which is used for centralized control of the wireless local area networks, is the core of a wireless network and is responsible for managing all the wireless local area networks in the wireless network, and the management of the local area networks comprises the following steps: configuration issuing, relevant configuration parameter modification, radio frequency intelligent management, access security control and the like.
5) SSID: the Service Set Identifier, SSID technology can divide a wireless local area network into several sub-networks requiring different authentication, each sub-network requires independent authentication, and only users passing the authentication can enter the corresponding sub-network, thereby preventing unauthorized users from entering the local network. In the embodiment of the invention, the network name pointing to Wi-Fi can be considered.
6) BSSID: the MAC address of the station, which may be considered in the embodiments of the present invention, points to the physical address of Wi-Fi.
7) URL: the uniform resource locator is a compact representation of the location and access method of resources available on the internet, and is the address of a standard resource on the internet. Each file on the internet has a unique URL.
8) MAC address: media Access Control, or MAC address, hardware address, is used to define the location of the network device. MAC is integrated in the network card and has uniqueness.
9) Domain name: is the name of a computer or group of computers on a network, which consists of a string of names separated by points, which have a one-to-one correspondence with IP addresses.
10) JSON: JavaScript Object Notation, a JS Object Notation, is a lightweight data exchange format.
11) Transactions (transactions), equivalent to the computer term "Transaction," include operations that need to be committed to a blockchain network for execution and do not refer solely to transactions in the context of commerce, which embodiments of the present invention follow in view of the convention colloquially used in blockchain technology.
For example, a deployment (deployment) transaction is used to install a specified smart contract to a node in a blockchain network and is ready to be invoked; the Invoke (Invoke) transaction is used to append records of the transaction in the blockchain by invoking the smart contract and to perform operations on the state database of the blockchain, including update operations (including adding, deleting, and modifying key-value pairs in the state database) and query operations (i.e., querying key-value pairs in the state database).
12) A Block chain (Block chain) is an encrypted, chained transaction storage structure formed of blocks (blocks).
For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth.
13) A Block chain Network (Block chain Network) incorporates new blocks into a set of nodes of a Block chain in a consensus manner.
14) Ledger (legger) is a general term for blockchains (also called Ledger data) and state databases synchronized with blockchains.
Wherein, the blockchain records the transaction in the form of a file in a file system; the state database records the transactions in the blockchain in the form of different types of Key (Key) Value pairs for supporting fast query of the transactions in the blockchain.
15) Intelligent Contracts (Smart Contracts), also known as Chain codes (Chain codes) or application codes, are programs deployed in nodes of a blockchain network, which execute intelligent Contracts called in received transactions to perform operations of updating or querying key-value data of the account database.
16) Consensus (Consensus), a process in a blockchain network, is used to agree on transactions in blocks among the nodes involved, the agreed blocks are to be appended to the end of the blockchain, and the mechanisms to achieve Consensus include Proof of workload (Po W), Proof of rights and interests (PoS, Proof of stamp), Proof of equity authorization (D PoS, released Proof of stamp), Proof of Elapsed Time (Po ET, Proof of Elapsed Time), etc.
Fig. 1 is a schematic view of a usage scenario of a wlan connection management method according to an embodiment of the present invention, and referring to fig. 1, an embodiment of the present invention provides a wlan connection system, where the system includes: a device to be networked and a wireless local area network connection management apparatus, an example of which is the same as that of fig. 2 in terms of hardware implementation or software implementation, which will be described in detail later.
The networked device is used for acquiring wireless local area network resources of an area where the networked device is located, wherein the wireless local area network resources comprise at least one wireless local area network, and the wireless local area network comprises at least one access point; identifying a free wireless local area network in the wireless local area network resources based on the information of the at least one wireless local area network; sorting the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources; and storing the access information of the wireless local area network into a corresponding offline identification database based on the sequencing result of the free wireless local area network in the wireless local area network resource, so that the equipment to be networked acquires the access information in the offline identification database and accesses the corresponding wireless local area network according to the access information of the wireless local area network.
In combination with the above description, in the usage scenario shown in fig. 1, the terminals (including the terminal 10-1 and the terminal 10-2) are devices to be networked, and a client for connecting an internet function is disposed thereon, when the wireless local area network 300 in the plurality of wireless local area networks is authenticated by the wireless local area network connection management apparatus 200, the terminals (including the terminal 10-1 and the terminal 10-2) access the wireless local area network 300, the wireless local area network 300 may be a wide area network or a local area network, or a combination of the two, and data transmission is implemented using a wireless link, the wireless local area network 300 can be connected with the internet 400, and the terminals (including the terminal 10-1 and the terminal 10-2) are enabled to connect the internet 400 through the wireless local area network 300.
As an example, the terminal (terminal 10-1 and/or terminal 10-2) is configured to obtain and output a wireless local area network resource of an area where a networked device is located, and when the wireless local area network connection management apparatus 200 identifies a free wireless local area network in the wireless local area network resource based on information of the at least one wireless local area network; sorting the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources; based on the sorting result of the free wireless local area networks in the wireless local area network resources, the access information of the wireless local area networks is stored in the corresponding offline identification database, and the terminal (the terminal 10-1 and/or the terminal 10-2) accesses the corresponding wireless local area networks according to the access information in the offline identification database and the access information of the wireless local area networks, so that the wireless local area networks 300 connected with the internet 400 are connected.
The terminals (including the terminal 10-1 and the terminal 10-2) are further configured to receive access information of at least one wireless local area network from the wireless local area network connection management apparatus 200. And storing the access information of at least one wireless local area network in a corresponding storage medium.
As described in detail below, the wlan connection management apparatus according to the embodiment of the present invention may be implemented in various forms, such as a terminal with a network management function, such as a smart phone, a tablet computer, and a desktop computer, or a server with a network management function. Fig. 2 is a schematic diagram of a component structure of a wlan connection management apparatus according to an embodiment of the present invention, and it can be understood that fig. 2 only shows an exemplary structure of the wlan connection management apparatus, and not a whole structure, and a part of or a whole structure shown in fig. 2 may be implemented according to needs.
The wireless local area network connection management device provided by the embodiment of the invention comprises: at least one processor 201, memory 202, user interface 203, and at least one network interface 204. The various components of the wlan connection management device 20 are coupled together by a bus system 205. It will be appreciated that the bus system 205 is used to enable communications among the components. The bus system 205 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 205 in fig. 2.
The user interface 203 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 202 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The memory 202 in embodiments of the present invention is capable of storing data to support operation of a terminal, such as terminal 10-1. Examples of such data include: any computer program, such as an operating system and application programs, for operating on a terminal, such as terminal 10-1. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program may include various application programs.
In some embodiments, the wlan connection apparatus provided in the embodiments of the present invention may be implemented in hardware, and for example, the wlan connection apparatus provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the wlan connection management method provided in the embodiments of the present invention. For example, a processor in the form of a hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The wlan connection apparatus provided in the embodiment of the present invention is implemented in software, and the wlan connection apparatus provided in the embodiment of the present invention may be directly embodied as a combination of software modules executed by the processor 201, where the software modules may be located in a storage medium, the storage medium is located in the memory 202, and the processor 201 reads executable instructions included in the software modules in the memory 202, and completes the wlan connection management method provided in the embodiment of the present invention in combination with necessary hardware (for example, including the processor 201 and other components connected to the bus 205).
For example, fig. 2 shows a software medium stored in the memory 202, which may be software in the form of programs and plug-ins, etc., and includes the following software modules: an information transmission module 2081 and an information processing module 2082. When the software modules in the wlan connection apparatus 2020 are read into the RAM by the processor 201 and executed, the wlan connection management method provided by the embodiment of the present invention will be implemented, and the functions of the software modules will be described below with reference to the wlan connection apparatus 2020 shown in fig. 2.
The information transmission module 2081, configured to obtain a wireless local area network resource of an area where a networked device is located, where the wireless local area network resource includes at least one wireless local area network, and the wireless local area network includes at least one access point;
the information processing module 2082 is configured to identify a free wireless local area network in the wireless local area network resources based on the information of the at least one wireless local area network;
the information processing module 2082 is configured to rank the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources;
the information processing module 2082 is configured to store the access information of the wireless local area network into a corresponding offline identification database based on the sorting result of the free wireless local area network in the wireless local area network resource, so that the device to be networked acquires the access information in the offline identification database, and accesses the corresponding wireless local area network according to the access information of the wireless local area network.
In the above description, it is understood that the wlan connection management method provided in the embodiment of the present invention can be implemented by various types of devices with network management functions, such as devices, computers, servers, and the like running network management software.
The WLAN connection management method according to the embodiment of the present invention is further described with reference to the usage environment shown in fig. 1 and the WLAN connection management apparatus 20 shown in fig. 2, wherein in the usage environment of the network connection management method shown in fig. 1, a terminal, such as a mobile phone or a tablet computer, can access the Internet (Internet) through a Wireless Local Area Network (WLAN). With the widespread use of user terminals, wireless local area networks have become an important form of accessing the internet for user terminals. A common Wireless local area network is a Wi-Fi (Wireless-Fidelity) network. In the process, in order to enable a user to access a free wireless network, when the free WiFi is stored in the database of the wireless network management software, the geographic location attribute (the city is used as a region) of the WiFi is marked (such as beijing/shanghai/guangzhou/shenzhen, and the like), so that the free WiFi can be divided into regions in the background database and packaged into files, and a free WiFi offline identification database of the regions is formed. When the users in the area are networked, the file can be sent to the client. The client side receives the identification library file and stores the identification library file locally, and when the terminal is in an unconnected state next time, the offline library can be used for searching for free WiFi, but the scheme has the defects that the granularity is divided by regions to be large, so that the offline identification database is large (for example, the number of the free WiFi in the Guangzhou offline identification database reaches 50 ten thousand), but the activity range of a user is limited, wherein the free WiFi is used by the user in practice and the identification efficiency is low; meanwhile, offline identification is subject to background free WiFi information, and when WiFi passwords are updated, wrong/overdue old passwords may be stored in an identification library, so that connection power is low, and user experience is influenced. In order to overcome the above drawbacks, referring to fig. 3A, fig. 3A is an optional flowchart of a wlan connection management method provided in an embodiment of the present invention, and it can be understood that the steps shown in fig. 3A may be executed by various electronic devices operating a wlan connection management apparatus, for example, a terminal such as a computer with network connection and management functions, a smart phone, or a server, a device to be networked may be any terminal with networking functions, such as a mobile phone and a tablet computer, and a wlan may be Wi-Fi provided by a router, where the steps shown in fig. 3A are described below.
Step 301: the wireless local area network connection management device acquires wireless local area network resources of an area where the networked equipment is located.
Wherein the wireless local area network resources comprise at least one wireless local area network comprising at least one access point.
In some embodiments of the present invention, acquiring the wlan resources of the area where the networked device is located may be implemented by:
monitoring and scanning signals of wireless local area networks in the area where the networked equipment is located to determine information of at least one wireless local area network, or analyzing a set of wireless local area network signals output by the networked equipment to determine information of at least one wireless local area network. The wireless local area network connection management device scans wireless local area network signals in the area where the equipment to be networked is located; therefore, the information of at least one wireless local area network can be determined, wherein when the wireless local area network connection management device is provided with a corresponding group (such as a wireless network card) with a scanning function, wireless local area network signals in the area where the device to be networked is located can be scanned so as to determine all wireless local area network signals which can access the device to be networked in the area where the device to be networked is located.
Furthermore, the wireless local area network connection management device analyzes the network connection information which can also monitor the output of the networking equipment; when the wlan connection management device does not have a corresponding component with a scanning function or the component with the scanning function is not activated, the networking device outputs network connection information, where the network connection information carries wlan resources of an area where the networking device is located, and the wlan connection management device may receive and analyze the output network connection signal to determine information of at least one wlan.
Step 302: the wireless local area network connection management device identifies free wireless local area networks in the wireless local area network resources based on the information of the at least one wireless local area network, and detects the connection state of the free wireless local area networks.
In some embodiments of the present invention, based on the information of the at least one wireless local area network, identifying a free wireless local area network in the wireless local area network resources, and detecting a connection status of the free wireless local area network, may be implemented by:
sending all wireless local area network access point information in the wireless local area network resources to a free wireless local area network management server; receiving a recognition result sent by the free wireless local area network management server, determining a free wireless local area network in the wireless local area network resources based on the recognition result, wherein the free wireless local area network management server performs information matching based on a site address identifier and a service set identifier in the wireless local area network access point information, sends a connection request to a target detection server through the free wireless local area network, and determines the connection state of the free wireless local area network through the response state of the connection request. For public places with high people stream density, the number of the provided wireless local area networks is large, so that the wireless local area networks can be used by large-scale people at the same time. When the number of the signal wireless local area networks is large in the area where the equipment to be networked is located, a user of the equipment to be networked, who can use the display sequence of the wireless local area networks by adjusting the quality of the wireless local area networks, can know the information processing capacities of different wireless local area networks in time, and then selects a wireless local area network with good quality to access in the authenticated wireless local area networks, so that the problem that the connection efficiency of the wireless local area networks is influenced due to the insufficient information processing capacity (insufficient bandwidth) of the connected wireless local area networks is avoided. Further, a connection request is sent to the target detection server through the free wireless local area network, when the detection server determines that the link is clear, the state of the free wireless local area network can be determined to be connectable, and the connection request is responded, and the wireless local area network connection management device can determine the connection state of the free wireless local area network according to the response state of the connection request.
It should be noted that the number of access points of the wireless lan in the present invention is variable, and specifically includes the following cases:
1) the wireless local area network only has one access point;
in this case, the authentication of the wireless local area network is actually the authentication of the single access point, including signal quality, etc., since the signals are transmitted by this access point.
2) The wireless local area network comprises a plurality of access points;
the wireless access points are connected in a relay mode (namely, wireless signals are transmitted from one relay point to the next relay point by utilizing the wireless connection function between the wireless access points/routers, the signals are enhanced, a larger wireless coverage area is formed, and SSIDs carried in the signals transmitted by the access points are consistent and are externally represented as a local area network).
In this case, the authentication of the wlan, which is a global authentication, such as SSID, should not require authentication at the access point level, such as authentication of each access point separately (because how many access points there are cannot be perceived outside the network).
The access point information, i.e., the user name and password, is uniform and cannot be distinguished for each access point.
Step 303: the wireless local area network connection management device sorts the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources.
In some embodiments of the present invention, the sorting of the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources may be implemented by:
determining signal strengths of different free wireless local area networks based on the identification result of the free wireless local area networks in the wireless local area network resources; and adjusting the connection sequence of the free wireless local area networks in the wireless local area network resources based on the signal intensity of the different free wireless local area networks, and deleting the free wireless local area networks with the signal intensity lower than the signal intensity threshold value so as to realize that the connection sequence of the free wireless local area networks is matched with the area where the networked equipment is located. In the public places with dense people flows, the number of free wireless local area networks provided is large, and the types of the large number of free wireless local area networks are different. Therefore, the type of the wireless local area network is determined based on the information of the wireless local area network, and then the connection states of the wireless local area networks are sequenced according to the sequencing strategy corresponding to the type of the wireless local area network, so that the situation that after a terminal to be networked is connected with a certain wireless local area network, when the connected wireless local area network cannot be connected with the internet, the current connection needs to be disconnected, different free wireless local area networks are selected again, and the connection attempt times of equipment to be networked and the waiting time of a user are increased.
Further, by the network connection management method provided by the present application, the connectivity of all free wlans in a free wlan list can be detected based on the ranking result of the free wlans in the wlan resources, and a detection process of the connectivity of the free wlans is monitored; and outputting a corresponding deleting instruction based on the monitoring result of the detection process of the connectability of the free wireless local area network so as to delete the configuration record of the wireless local area network in the networked equipment. Therefore, when the connectability of all the free wireless local area networks in the free wireless local area network list is determined to be normal, the free wireless local area network management server performs information matching based on the station address identifier and the service set identifier in the corresponding access point information so as to store the access information of the wireless local area networks into the corresponding offline identification database or adjust the access information of the wireless local area networks stored in the offline identification database. After the correctness of the password is verified without the perception of the user through the preamble method, the verified free WiFi is already suitable for being stored in an offline recognition database. Specifically, the offline recognition database is recorded in a sqlite database (relational database), and the recording fields are: id (incremental, auto-generated), 2.Ssid, 3, Bssid, 4. password. When the information is stored, whether the same Ssid and Bssid records exist in the database is checked, if so, the password in the database is updated, otherwise, a record is added to perfect the record range of the information of the offline identification database.
Step 304: and the wireless local area network connection management device stores the access information of the wireless local area network into a corresponding offline identification database based on the sequencing result of the free wireless local area network in the wireless local area network resources.
Therefore, the equipment to be networked can acquire the access information in the offline identification database and access the corresponding wireless local area network according to the access information of the wireless local area network.
When the device to be networked needs to be connected to the internet through a free wireless lan in the area, referring to fig. 3B, fig. 3B is an optional flowchart of the method for managing connection of a wireless lan according to an embodiment of the present invention, it can be understood that the steps shown in fig. 3B may also be executed by various electronic devices operating a wireless lan connection management apparatus, where the wireless lan connection management apparatus may be stored in the electronic device through a corresponding software program by using a storage medium, and specifically includes the following steps:
step 3001: the wireless local area network connection management device acquires wireless local area network resources of an area where the equipment to be networked is located.
Wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the device to be networked is located. Of course, these connectable wlans may be free wlans or charged wlans, and the devices to be networked may continue to be screened in subsequent steps. Specifically, the information of at least one connectable wireless local area network can be determined by scanning signals of wireless local area networks in the environment where the device to be networked is located, and of course, the information of at least one connectable wireless local area network can be determined by analyzing the wireless local area network signals received by the device to be networked.
Step 3002: the wireless local area network connection management device determines information of at least one wireless local area network based on the wireless local area network resources, and detects the state of at least one wireless local area network in the wireless local area network resources through an offline identification database.
The offline identification database can be obtained through the steps 301 and 304 shown in the previous fig. 3A, and stored in the device to be networked of the user, and is detected by using the offline identification database through software with a wlan connection management function.
Step 3003: the wlan connection management device determines whether the wlan status is connectable, if so, performs step 3004, otherwise performs step 3005.
Step 3004: and the wireless local area network connection management device adds the access information of the wireless local area network to a free wireless local area network list so that the equipment to be networked can access the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list.
Further, in some embodiments of the present invention, the free wireless lan is a public wireless lan without a secret key, so that the wireless lan connection management apparatus can directly detect a network connection state of the public wireless lan, and when it is determined that the public wireless lan can be connected to the internet, the device to be networked can be allowed to connect to the internet by connecting to the public wireless lan, so as to implement effective management of the device to be networked, and meanwhile, a problem that a user may be threatened by security of data transmitted to a fake public wireless lan through the device to be networked and data inside the device to be networked when the device to be networked is connected to a fake public wireless lan is avoided.
Step 3005: the wireless local area network connection management device reselects a new wireless local area network in the wireless local area network resources for verification.
The method for managing wireless local area network connection provided by the present application is continuously described by taking a mobile phone with a networked device as an Android system as an example, with reference to fig. 4, fig. 4 is an optional schematic flow chart of the method for managing wireless local area network connection provided by the embodiment of the present invention, where the wireless local area network connection management device may be network management software installed in a mobile phone with an Android system, and when the terminal is in a network connection state, the method specifically includes:
step 401: the wireless local area network connection management device monitors a system WiFi event.
When the terminal is used as a mobile phone with an Android system, the WiFi module function of the mobile phone is open to the third-party App, and the third-party App can monitor WiFi scanning events, obtain WiFi scanning results, initiate connection, disconnect, monitor the connection process and the like. Therefore, when the terminal is in the mobile network state and the WiFi module is turned on, the monitoring of the WiFi module is started. After monitoring, when the external WiFi information changes (WiFi signal appears/disappears/is enhanced/weakened), the App is notified, and the App starts to execute the subsequent steps.
Step 402: the wireless local area network connection management device receives WiF the scan information.
After the WiFi information changes, the App receives the scanning event, and at this time, may obtain information of all WiFi currently scanned, if Ssid, Bssid, signal value, used channel, and the like. After obtaining, comparing with the obtained result of the last scanning event, selecting the first appearing WiFi (for example, the last obtained WiFi set is { Coffee _ WiFi, Station _ WiFi }, and the current obtained result is { Coffee _ WiFi, StarBucks }, wherein StarBucks are the first appearing), and merging the obtained results into the obtained result of the last scanning event (after merging, [ Coffee _ WiFi, Station _ WiFi, StarBucks ]).
Step 403: the wireless local area network connection management device requests the background server for free WiFi identification.
Since the WiFi acquired in the preamble step is not identified online, it is necessary to package the WiFi information (Ssid, bsid) and send it to the backend server. And the background server receives the request, analyzes WiFi information in the data, wherein Ssid and Bssid of one WiFi are in one-to-one correspondence, and searches out the same Ssid and Bssid password in a free WiFi password database. If the password is inquired, the WiFi is shown to be free WiFi, otherwise, the WiFi searching is shown to fail. And after the query is finished, returning the query result of each WiFi to the client.
Step 404: the wireless local area network connection management device performs sequencing and WiFi connection in sequence.
After receiving the identification result of the free WiFi, if the free WiFi exists, sequencing the free WiFi from high to low according to the current signal value, and removing the free WiFi when a certain WiFi signal value is lower than a certain value, wherein the WiFi with a weak signal value influences the whole connection process because the WiFi with a higher signal value has higher connection speed and stability. Further, referring to fig. 5, fig. 5 is a schematic view of an optional flowchart of a wlan connection management method according to an embodiment of the present invention; wherein, the correctness of the free WiFi password needs to be checked, and the pre-connection can be tried for each free WiFi. And when the Android system WiFi module is connected with WiFi, the Android system WiFi module can send out connection process broadcast in sequence. When the WiFi event reaches the 'assigned IP address', the WiFi password authentication is passed. Meanwhile, the WiFi mark in the Android system state can be displayed only after the WiFi mark passes the 'IP address allocation'. Therefore, in order to verify the correctness of the free WiFi passwords without the perception of the user, connection can be sequentially initiated to the WiFi module for the free WiFi, and meanwhile, the broadcast of the connection process is monitored. And when the broadcast of the 'distribution IP address' is received, the connection is immediately disconnected if the password verification is passed. In order for the WiFi module to cancel the configuration record of the WiFi (the system will record the password of the last connection of the WiFi), it is also necessary to delete the configuration from the WiFi module.
Step 405: the wireless local area network connection management device stores the WiFi information in an offline identification database.
Specifically, when the offline identification database enters the using process, referring to fig. 6A, fig. 6A is an optional flowchart of the wlan connection management method according to the embodiment of the present invention, including the following steps:
step 601: and acquiring the current WiFi information without a network.
Specifically, if the mobile phone terminal is in a no-network state, it is not possible to request a free WiFi identification from the background. And at the moment, all the current WiFi information is still acquired, and the Ssid and Bssid of all WiFi are acquired.
Step 602: and performing offline identification through an offline identification database.
And inquiring the Ssid and the Bssid of all the current WiFi in an offline identification database, if the Ssid and the Bssid are recorded in the same way, indicating that the identification is successful, and displaying that the identification is successful on a free WiFi list so as to carry out connection.
Step 603: and when the offline identification is successful, carrying out WiFi connection. Referring to fig. 6B, by analyzing the free WiFi output by the wlan connection management device, the wlan connection management device outputs information of 3 Wi-Fi networks that all pass authentication, and performs ranking according to the quality of the 3 Wi-Fi networks, and may also notify the number and name of the Wi-Fi networks in a connectable state of the device a to be networked, so as to enable the device a to be networked to select to access the corresponding Wi-Fi network.
Specifically, after the user clicks the free WiFi successfully identified offline, the password of the WiFi is taken out from the offline identification database, and a connection request is sent to the WiFi module. Therefore, the offline free WiFi source is the WiFi which is scanned by the user once and is the geographic position with smaller granularity, so that the overall identification database is small in size and accurate, and the overall identification efficiency is high. Meanwhile, each free WiFi in the identification library is subjected to pre-connection to check the correctness of the password, and the password can be dynamically updated in continuous online identification and pre-connection, so that the integral connection success rate is high. The method avoids increasing the connection attempt times of the networked devices and the waiting time of the user, and improves the experience of the user.
Since the user may hold a plurality of terminals, in some embodiments of the invention, the method further comprises:
and sending the equipment identifier, the offline identification database information and the newly added free wireless local area network access information to a block chain network, so that the node of the block chain network fills the equipment identifier, the offline identification database information and the newly added free wireless local area network access information into a new block, and when the new block is identified in a consistent manner, the new block is added to the tail part of the block chain.
The embodiment of the present invention may be implemented by combining a Cloud technology, where the Cloud technology (Cloud technology) is a hosting technology for unifying series resources such as hardware, software, and a network in a wide area network or a local area network to implement calculation, storage, processing, and sharing of data, and may also be understood as a generic term of a network technology, an information technology, an integration technology, a management platform technology, an application technology, and the like applied based on a Cloud computing business model. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, photo-like websites and more portal websites, so cloud technology needs to be supported by cloud computing.
It should be noted that cloud computing is a computing mode, and distributes computing tasks on a resource pool formed by a large number of computers, so that various application systems can obtain computing power, storage space and information services as required. The network that provides the resources is referred to as the "cloud". Resources in the "cloud" appear to the user as being infinitely expandable and available at any time, available on demand, expandable at any time, and paid for on-demand. As a basic capability provider of cloud computing, a cloud computing resource pool platform, which is called an Infrastructure as a Service (IaaS) for short, is established, and multiple types of virtual resources are deployed in a resource pool and are used by external clients selectively. The cloud computing resource pool mainly comprises: a computing device (which may be a virtualized machine, including an operating system), a storage device, and a network device.
As shown in fig. 1, the target object determining method provided in the embodiment of the present invention may be implemented by corresponding cloud devices, for example: the terminals (including the terminal 10-1 and the terminal 10-2) are connected to the server 200 located at the cloud end through a network 300, and the network 300 may be a wide area network or a local area network, or a combination of the two. It should be noted that the server 200 may be a physical device or a virtualized device.
In some embodiments of the present invention, the target object determination method further includes:
receiving data synchronization requests of other nodes in the blockchain network;
responding to the data synchronization request, and verifying the authority of the other nodes;
and when the authority of the other nodes passes the verification, controlling the current node and the other nodes to carry out data synchronization so as to realize that the other nodes acquire the equipment identification, the off-line identification database information and the newly added free wireless local area network access information.
Further, in some embodiments of the present invention, in response to a query request, parsing the query request to obtain a corresponding object identifier;
acquiring authority information in a target block in a block chain network according to the object identifier;
checking the matching of the authority information and the object identification;
when the authority information is matched with the object identification, acquiring corresponding equipment identification, offline identification database information and newly added free wireless local area network access information in the block chain network;
and responding to the query request, and pushing the acquired corresponding equipment identifier, the offline identification database information and the newly added free wireless local area network access information to a corresponding client so as to realize that the client acquires the corresponding equipment identifier, the offline identification database information and the newly added free wireless local area network access information stored in the block chain network.
Referring to fig. 7, fig. 7 is a schematic structural diagram of the target object determining apparatus 100 according to an embodiment of the present invention, which includes a blockchain network 200 (exemplarily illustrating a consensus node 210-1 to a consensus node 210-3), an authentication center 300, a service agent 400, and a service agent 500, which are respectively described below.
The type of blockchain network 200 is flexible and may be, for example, any of a public chain, a private chain, or a federation chain. Taking a public link as an example, electronic devices such as user terminals and servers of any service entity can access the blockchain network 200 without authorization; taking a federation chain as an example, an electronic device (e.g., a terminal/server) under the jurisdiction of a service entity after obtaining authorization may access the blockchain network 200, and at this time, become a client node in the blockchain network 200.
In some embodiments, the client node may act as a mere watcher of the blockchain network 200, i.e., provides functionality to support a business entity to initiate a transaction (e.g., for uplink storage of data or querying of data on a chain), and may be implemented by default or selectively (e.g., depending on the specific business requirements of the business entity) with respect to the functions of the consensus node 210 of the blockchain network 200, such as a ranking function, a consensus service, and an accounting function, etc. Therefore, the data and the service processing logic of the service subject can be migrated into the block chain network 200 to the maximum extent, and the credibility and traceability of the data and service processing process are realized through the block chain network 200.
Consensus nodes in blockchain network 200 receive transactions submitted from client nodes (e.g., client node 410 shown in fig. 1 as belonging to business entity 400 and client node 510 shown in fig. 1 as belonging to system 500 of electronic devices) of different business entities (e.g., business entity 400 and business entity 500 shown in fig. 1), perform the transactions to update the ledger or query the ledger, and various intermediate or final results of performing the transactions may be returned for display in the business entity's client nodes.
For example, the client node 410/510 may subscribe to events of interest in the blockchain network 200, such as transactions occurring in a particular organization/channel in the blockchain network 200, and the corresponding transaction notifications are pushed by the consensus node 210 to the client node 410/510, thereby triggering the corresponding business logic in the client node 410/510.
An exemplary application of the blockchain network is described below, taking an example in which a plurality of service agents access the blockchain network to achieve management of a target object determination result.
Referring to fig. 7, a plurality of business entities involved in the management link, such as the business entity 400, may be target object determination devices based on artificial intelligence, the business entity 500 may be a display system with a target object determination function, and registers from the certificate authority 300 to obtain respective digital certificates, where the digital certificates include the public key of the business entity and the digital signature signed by the certificate authority 300 on the public key and the identity information of the business entity, and are used to be attached to the transaction together with the digital signature of the business entity for the transaction, and are sent to the blockchain network, so that the blockchain network takes out the digital certificate and the signature from the transaction, verifies the authenticity of the message (i.e. whether the message is not tampered) and the identity information of the business entity sending the message, and verifies the blockchain network according to the identity, for example, whether the blockchain network has the right to initiate the transaction. Clients running on electronic devices (e.g., terminals or servers) hosted by the business entity may request access from the blockchain network 200 to become client nodes.
The client node 410 of the service body 400 is configured to obtain wireless local area network resources of an area where networked devices are located, where the wireless local area network resources include at least one wireless local area network including at least one access point; identifying a free wireless local area network in the wireless local area network resources based on the information of the at least one wireless local area network; sorting the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources; and storing the access information of the wireless local area network into a corresponding offline identification database based on the sequencing result of the free wireless local area network in the wireless local area network resource, so that the equipment to be networked acquires the access information in the offline identification database and accesses the corresponding wireless local area network according to the access information of the wireless local area network. The device identification, the offline recognition database information, and the newly added free wireless local area network access information are sent to the blockchain network 200.
The device identifier, the offline recognition database information, and the newly added free wireless lan access information are sent to the blockchain network 200, a service logic may be set in the client node 410 in advance, and when a corresponding target object determination result is formed, the client node 410 automatically sends the device identifier, the offline recognition database information, and the newly added free wireless lan access information to the blockchain network 200, or a service person of the service agent 400 logs in to the client node 410, manually packages the device identifier, the offline recognition database information, and the newly added free wireless lan access information, and sends the device identifier, the offline recognition database information, and the newly added free wireless lan access information to the blockchain network 200. Upon transmission, the client node 410 generates a transaction corresponding to the update operation based on the device identification, the offline identification database information, and the newly added free wlan access information, specifies in the transaction the smart contract that needs to be invoked to implement the update operation, and the parameters passed to the smart contract, and also carries the digital certificate of the client node 410, the signed digital signature (e.g., obtained by encrypting the digest of the transaction using the private key in the digital certificate of the client node 410), and broadcasts the transaction to the consensus node 210 in the blockchain network 200.
When the transaction is received in the consensus node 210 in the blockchain network 200, the digital certificate and the digital signature carried by the transaction are verified, after the verification is successful, whether the service agent 400 has the transaction right is determined according to the identity of the service agent 400 carried in the transaction, and the transaction fails due to any verification judgment of the digital signature and the right verification. After successful verification, node 210 signs its own digital signature (e.g., by encrypting the digest of the transaction using the private key of node 210-1) and continues to broadcast in blockchain network 200.
After receiving the transaction successfully verified, the consensus node 210 in the blockchain network 200 fills the transaction into a new block and broadcasts the new block. When a new block is broadcasted by the consensus node 210 in the block chain network 200, performing a consensus process on the new block, if the consensus is successful, adding the new block to the tail of the block chain stored in the new block, updating the state database according to a transaction result, and executing a transaction in the new block: for a transaction that submits updates to the device identification, the offline identification database information, and the newly added free wireless local area network access information, a key-value pair comprising the device identification, the offline identification database information, and the newly added free wireless local area network access information is added to the status database.
The service person of the service agent 500 logs in the client node 510, inputs a target object determination result or a target object query request, the client node 510 generates a transaction corresponding to the update operation/query operation according to the target object determination result or the target object query request, specifies an intelligent contract that needs to be called to implement the update operation/query operation and parameters transferred to the intelligent contract in the transaction, and the transaction also carries a digital certificate of the client node 510 and a signed digital signature (for example, a digest of the transaction is encrypted by using a private key in the digital certificate of the client node 510), and broadcasts the transaction to the consensus node 210 in the blockchain network 200.
After receiving the transaction in the consensus node 210 in the blockchain network 200, verifying the transaction, filling the block and making the consensus consistent, adding the filled new block to the tail of the blockchain stored in the new block, updating the state database according to the transaction result, and executing the transaction in the new block: for the submitted transaction of updating a certain device identifier, offline identification database information and newly added free wireless local area network access information, updating a key value pair corresponding to the target object determination result in the state database according to the manual identification result; and for the submitted transaction for inquiring a certain target object determination result, inquiring a key value pair corresponding to the target object determination result from the state database, and returning a transaction result.
It should be noted that fig. 7 illustrates an example of a process of directly linking device identifiers, offline identification database information, and newly added free wlan access information, but in other embodiments, for a case where the data size of the target object determination result is large, the client node 410 may pair and link the hash of the target object determination result and the corresponding hash of the target object determination result, and store the original target object determination result and the corresponding target object determination result in a distributed file system or a database. After obtaining the target object determination result and the corresponding target object determination result from the distributed file system or the database, the client node 510 may perform a check in combination with the corresponding hash in the blockchain network 200, thereby reducing the workload of uplink operations.
As an example of a block chain, referring to fig. 8, fig. 8 is a schematic structural diagram of a block chain in a block chain network 200 according to an embodiment of the present invention, where a header of each block may include hash values of all transactions in the block and also include hash values of all transactions in a previous block, a record of a newly generated transaction is filled in the block and is added to a tail of the block chain after being identified by nodes in the block chain network, so as to form a chain growth, and a chain structure based on hash values between blocks ensures tamper resistance and forgery prevention of transactions in the block.
An exemplary functional architecture of a block chain network provided in the embodiment of the present invention is described below, referring to fig. 9, fig. 9 is a functional architecture schematic diagram of a block chain network 200 provided in the embodiment of the present invention, which includes an application layer 201, a consensus layer 202, a network layer 203, a data layer 204, and a resource layer 205, which are described below respectively.
The resource layer 205 encapsulates the computing, storage, and communication resources that implement each node 210 in the blockchain network 200.
The data layer 204 encapsulates various data structures that implement the ledger, including blockchains implemented in files in a file system, state databases of the key-value type, and presence certificates (e.g., hash trees of transactions in blocks).
The network layer 203 encapsulates the functions of a Point-to-Point (P2P) network protocol, a data propagation mechanism and a data verification mechanism, an access authentication mechanism and service agent identity management.
Wherein the P2P network protocol implements communication between nodes 210 in the blockchain network 200, the data propagation mechanism ensures propagation of transactions in the blockchain network 200, and the data verification mechanism implements reliability of data transmission between nodes 210 based on cryptography methods (e.g., digital certificates, digital signatures, public/private key pairs); the access authentication mechanism is used for authenticating the identity of the service subject added into the block chain network 200 according to an actual service scene, and endowing the service subject with the authority of accessing the block chain network 200 when the authentication is passed; the business entity identity management is used to store the identity of the business entity that is allowed to access blockchain network 200, as well as the permissions (e.g., the types of transactions that can be initiated).
The consensus layer 202 encapsulates the functions of the mechanism for the nodes 210 in the blockchain network 200 to agree on a block (i.e., a consensus mechanism), transaction management, and ledger management. The consensus mechanism comprises consensus algorithms such as POS, POW and DPOS, and the pluggable consensus algorithm is supported.
The transaction management is configured to verify a digital signature carried in the transaction received by the node 210, verify identity information of the service entity, and determine whether the node has an authority to perform the transaction (read related information from the identity management of the service entity) according to the identity information; for the service agents authorized to access the blockchain network 200, the service agents all have digital certificates issued by the certificate authority, and the service agents sign the submitted transactions by using private keys in the digital certificates of the service agents, so that the legal identities of the service agents are declared.
The ledger administration is used to maintain blockchains and state databases. For the block with the consensus, adding the block to the tail of the block chain; executing the transaction in the acquired consensus block, updating the key-value pairs in the state database when the transaction comprises an update operation, querying the key-value pairs in the state database when the transaction comprises a query operation and returning a query result to the client node of the business entity. Supporting query operations for multiple dimensions of a state database, comprising: querying the block based on the block vector number (e.g., hash value of the transaction); inquiring the block according to the block hash value; inquiring a block according to the transaction vector number; inquiring the transaction according to the transaction vector number; inquiring account data of a business main body according to an account (vector number) of the business main body; and inquiring the block chain in the channel according to the channel name.
The application layer 201 encapsulates various services that the blockchain network can implement, including tracing, crediting, and verifying transactions.
In summary, the embodiments of the present invention have the following technical effects:
the embodiment of the invention obtains the wireless local area network resources of the area where the equipment to be networked is located, wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the equipment to be networked is located; determining information of at least one wireless local area network based on the wireless local area network resources; detecting a status of at least one of the wireless local area network resources via an offline identification database; when the state of the wireless local area network is determined to be connectable, the access information of the wireless local area network is added to the free wireless local area network list, so that the free wireless local area network in the use environment can be authenticated and recorded, the efficiency of accessing the wireless local area network is improved, the device to be networked can be accessed to the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list, the efficiency and the accuracy of accessing the wireless local area network by the device to be networked are improved, and the time of a user waiting for the device to be accessed to the wireless network is reduced.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (15)
1. A method for managing wlan connections, the method comprising:
monitoring and scanning signals of a wireless local area network of an area where a device to be networked is located, acquiring wireless local area network resources of the area where the device to be networked is located, or,
monitoring network connection information output by the networked equipment, and acquiring wireless local area network resources of an area where the networked equipment is located, wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the equipment to be networked or the networked equipment is located,
determining information of at least one wireless local area network based on the wireless local area network resources;
detecting a status of at least one of the wireless local area network resources via an offline identification database;
adding the access information of the wireless local area network to a free wireless local area network list when the state of the wireless local area network is determined to be connectable, so that the wireless local area network is connected
And the equipment to be networked accesses the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list, or the equipment which is networked is switched to any free wireless local area network in the free wireless local area network list.
2. The method of claim 1, wherein the obtaining of the wlan resources of the area where the to-be-networked device is located comprises:
scanning signals of wireless local area networks in the environment of the device to be networked to determine information of at least one connectable wireless local area network, or,
and analyzing the wireless local area network signals received by the equipment to be networked to determine the information of at least one connectable wireless local area network.
3. The method of claim 1, further comprising:
when the equipment is in a networking state, acquiring wireless local area network resources of an area where the networked equipment is located, wherein the wireless local area network resources comprise at least one wireless local area network, and the wireless local area network comprises at least one access point;
identifying free wireless local area networks in the wireless local area network resources based on the information of the at least one wireless local area network, and detecting the connection state of the free wireless local area networks;
sorting free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources and the connection state of the free wireless local area networks;
based on the sequencing result of the free wireless local area network in the wireless local area network resource, storing the access information of the wireless local area network into a corresponding off-line identification database so as to ensure that
And the equipment to be networked acquires the access information in the offline identification database and accesses the corresponding wireless local area network according to the access information of the wireless local area network.
4. The method of claim 3, wherein the obtaining of WLAN resources of an area where the networked device is located comprises:
listening and scanning for wireless local area network signals in the area of the networked device to determine information for at least one wireless local area network, or,
parsing the set of wireless local area network signals output by the networked devices to determine information for at least one wireless local area network.
5. The method of claim 3, wherein the identifying free wireless local area networks in the wireless local area network resources and detecting connection status of free wireless local area networks based on the information of the at least one wireless local area network comprises:
sending all wireless local area network access point information in the wireless local area network resources to a free wireless local area network management server;
receiving a recognition result sent by the free wireless local area network management server, determining a free wireless local area network in the wireless local area network resources based on the recognition result, wherein the free wireless local area network management server performs information matching based on a site address identifier and a service set identifier in the wireless local area network access point information,
and sending a connection request to a target detection server through the free wireless local area network, and determining the connection state of the free wireless local area network according to the response state of the connection request.
6. The method of claim 3, wherein the sorting the free wireless local area networks in the wireless local area network resource based on the identification result of the free wireless local area networks in the wireless local area network resource and the connection status of the free wireless local area networks comprises:
determining signal strengths of different free wireless local area networks in a connectable state based on the recognition result of the free wireless local area networks in the wireless local area network resources;
and adjusting the connection sequence of the free wireless local area networks in the wireless local area network resources based on the signal intensity of the different free wireless local area networks, and deleting the free wireless local area networks with the signal intensity lower than the signal intensity threshold value so as to realize that the connection sequence of the free wireless local area networks is matched with the area where the networked equipment is located.
7. The method of claim 3, further comprising:
detecting the availability of all free wireless local area networks in a free wireless local area network list based on the sorting result of the free wireless local area networks in the wireless local area network resource,
monitoring a detection process of the connectability of the free wireless local area network;
and outputting a corresponding deleting instruction based on the monitoring result of the detection process of the connectability of the free wireless local area network so as to delete the configuration record of the wireless local area network in the networked equipment.
8. The method of claim 7, further comprising:
when the connectability of all the free wireless local area networks in the free wireless local area network list is determined to be normal, the free wireless local area network management server carries out information matching based on the site address identifier and the service set identifier in the corresponding access point information so as to store the access information of the wireless local area networks into the corresponding offline identification database, or
And adjusting the access information of the wireless local area network stored in the offline identification database.
9. The method according to any one of claims 1-8, further comprising:
sending the device identification, the off-line identification database information and the newly added free WLAN access information to the blockchain network so as to enable the device identification, the off-line identification database information and the newly added free WLAN access information to be transmitted to the blockchain network
And the node of the block chain network fills the equipment identifier, the off-line identification database information and the newly added free wireless local area network access information into a new block, and when the new block is identified in a consistent manner, the new block is added to the tail part of the block chain.
10. The method of claim 9, further comprising:
receiving data synchronization requests of other nodes in the blockchain network;
responding to the data synchronization request, and verifying the authority of the other nodes;
and when the authority of the other nodes passes the verification, controlling the current node and the other nodes to carry out data synchronization so as to realize that the other nodes acquire the equipment identification, the off-line identification database information and the newly added free wireless local area network access information.
11. The method of claim 9, further comprising:
responding to a query request, and analyzing the query request to obtain a corresponding object identifier;
acquiring authority information in a target block in a block chain network according to the object identifier;
checking the matching of the authority information and the object identification;
when the authority information is matched with the object identification, acquiring corresponding equipment identification, offline identification database information and newly added free wireless local area network access information in the block chain network;
and responding to the query request, pushing the acquired offline identification database information and the newly added free wireless local area network access information to corresponding clients so as to realize that the clients acquire corresponding equipment identifiers, offline identification database information and the newly added free wireless local area network access information stored in the block chain network.
12. An apparatus for wireless local area network connection management, the apparatus comprising:
the information transmission module is used for monitoring and scanning signals of a wireless local area network of an area where the equipment to be networked is located, and acquiring wireless local area network resources of the area where the equipment to be networked is located, or monitoring network connection information output by the networked equipment, and acquiring wireless local area network resources of the area where the networked equipment is located, wherein the wireless local area network resources comprise all connectable wireless local area networks in the environment where the equipment to be networked or the networked equipment is located;
the information processing module is used for determining information of at least one wireless local area network based on the wireless local area network resources;
the information processing module is used for detecting the state of at least one wireless local area network in the wireless local area network resources through an offline identification database;
the information processing module is used for adding the access information of the wireless local area network to a free wireless local area network list when the state of the wireless local area network is determined to be connectable, so that the device to be networked can access the corresponding wireless local area network according to the access information of any free wireless local area network in the free wireless local area network list, or the networked device can be switched to any free wireless local area network in the free wireless local area network list.
13. The apparatus of claim 12,
the information transmission module is used for acquiring wireless local area network resources of an area where the networked equipment is located when the equipment is in a networked state, wherein the wireless local area network resources comprise at least one wireless local area network, and the wireless local area network comprises at least one access point;
the information processing module is used for identifying free wireless local area networks in the wireless local area network resources and detecting the connection state of the free wireless local area networks based on the information of the at least one wireless local area network;
the information processing module is used for sequencing the free wireless local area networks in the wireless local area network resources based on the identification result of the free wireless local area networks in the wireless local area network resources and the connection state of the free wireless local area networks;
the information transmission module is used for storing the access information of the wireless local area network into a corresponding offline identification database based on the sequencing result of the free wireless local area network in the wireless local area network resource, so that the equipment to be networked can obtain the access information in the offline identification database and access the corresponding wireless local area network according to the access information of the wireless local area network.
14. A wireless local area network connection management apparatus, comprising:
a memory for storing executable instructions;
a processor configured to execute the executable instructions stored in the memory to implement the wlan connection management method of any one of claims 1 to 11.
15. A computer-readable storage medium storing executable instructions, wherein the executable instructions when executed by a processor implement the wireless local area network connection management method of any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010670353.8A CN111866993B (en) | 2020-07-13 | 2020-07-13 | Wireless local area network connection management method, device, software program and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010670353.8A CN111866993B (en) | 2020-07-13 | 2020-07-13 | Wireless local area network connection management method, device, software program and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111866993A CN111866993A (en) | 2020-10-30 |
CN111866993B true CN111866993B (en) | 2021-12-14 |
Family
ID=72983824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010670353.8A Active CN111866993B (en) | 2020-07-13 | 2020-07-13 | Wireless local area network connection management method, device, software program and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111866993B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112423302B (en) * | 2020-12-02 | 2024-01-09 | 中国联合网络通信集团有限公司 | Wireless network access method, terminal and wireless access equipment |
CN115442168B (en) * | 2021-06-02 | 2023-11-17 | 云米互联科技(广东)有限公司 | Household equipment network distribution method and device based on indoor cruising |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103889029A (en) * | 2014-03-24 | 2014-06-25 | 深圳市云猫信息技术有限公司 | Network hotspot sharing method, client side, sharing side and management server |
CN106686527A (en) * | 2016-12-20 | 2017-05-17 | 腾讯科技(深圳)有限公司 | WIFI information identification method and terminal |
CN107454658A (en) * | 2017-06-30 | 2017-12-08 | 北京金山安全软件有限公司 | WiFi connection method and device, electronic equipment and storage medium |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102869073A (en) * | 2012-09-14 | 2013-01-09 | 中兴通讯股份有限公司 | Method for processing wireless hotspot information and method for automatically accessing wireless hotspot |
EP2986056B1 (en) * | 2014-05-05 | 2017-09-20 | Huawei Device Co., Ltd. | Wi-fi network connection method and wi-fi device |
US9386515B2 (en) * | 2014-07-15 | 2016-07-05 | Intel IP Corporation | User preference and network policy based radio link selection |
CN105516982A (en) * | 2015-12-25 | 2016-04-20 | 北京奇虎科技有限公司 | Method, device and system for realizing automatic connection with wireless WIFI network |
CN105577441A (en) * | 2015-12-25 | 2016-05-11 | 北京奇虎科技有限公司 | Method and system for generating high quality wireless network libraries |
CN105451180A (en) * | 2015-12-25 | 2016-03-30 | 北京奇虎科技有限公司 | Method and device for realizing WiFi connection |
CN107548128A (en) * | 2016-06-27 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of APP connections WIFI method and device |
CN107046688B (en) * | 2017-03-07 | 2019-01-29 | 腾讯科技(深圳)有限公司 | A kind of connection method of WLAN and device |
CN107172588A (en) * | 2017-06-14 | 2017-09-15 | 广东艾檬电子科技有限公司 | A kind of WiFi network recommends method and device |
CN107347184A (en) * | 2017-06-30 | 2017-11-14 | 北京奇虎科技有限公司 | The detection of WIFI connection status, display methods and device, server and terminal device |
CN110072268A (en) * | 2019-04-18 | 2019-07-30 | 连尚(新昌)网络科技有限公司 | Method, equipment and the computer storage medium that wifi hotspot is shared |
-
2020
- 2020-07-13 CN CN202010670353.8A patent/CN111866993B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103889029A (en) * | 2014-03-24 | 2014-06-25 | 深圳市云猫信息技术有限公司 | Network hotspot sharing method, client side, sharing side and management server |
CN106686527A (en) * | 2016-12-20 | 2017-05-17 | 腾讯科技(深圳)有限公司 | WIFI information identification method and terminal |
CN107454658A (en) * | 2017-06-30 | 2017-12-08 | 北京金山安全软件有限公司 | WiFi connection method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111866993A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108769230B (en) | Transaction data storage method, device, server and storage medium | |
WO2020057163A1 (en) | Mec platform deployment method and device | |
CN110417790B (en) | Block chain real-name system queuing system and method | |
CN112261172B (en) | Service addressing access method, device, system, equipment and medium | |
WO2022166637A1 (en) | Blockchain network-based method and apparatus for data processing, and computer device | |
CN108965469B (en) | Dynamic management method, device, equipment and storage medium for members of block chain network | |
CN102859935A (en) | System And Methods For Remote Maintenance Of Multiple Clients In An Electronic Network Using Virtual Machines | |
WO2020120672A1 (en) | Communication network node, methods, and a mobile terminal | |
CN111866993B (en) | Wireless local area network connection management method, device, software program and storage medium | |
WO2022121589A1 (en) | Data information acquisition methods and apparatus, related device, and medium | |
CN115996122A (en) | Access control method, device and system | |
CN114650281B (en) | File downloading method, device, equipment and storage medium based on complex network | |
CN112994897A (en) | Certificate query method, device, equipment and computer readable storage medium | |
EP3884449A1 (en) | Method and system for a network device to obtain a trusted state representation of the state of the distributed ledger technology network | |
JP2004021686A (en) | Verification processing system, verification processor, program, and verification processing method | |
CN113784354B (en) | Request conversion method and device based on gateway | |
CN113489689B (en) | Authentication method and device for access request, storage medium and electronic equipment | |
US12041443B2 (en) | Integrity for mobile network data storage | |
US20240223390A1 (en) | Blockchain system | |
US11019140B1 (en) | Systems and methods for peer-to-peer data exchange via multi-access edge computing | |
CN116806038A (en) | Decentralizing computer data sharing method and device | |
GB2520938A (en) | Mobile device location | |
WO2016165443A1 (en) | Method for protecting machine type communication device, network entity, and mtc device | |
CN113590711A (en) | High-elasticity extensible multi-chain data hierarchical shared storage system and method | |
CN111163466A (en) | Method for 5G user terminal to access block chain, user terminal equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40030775 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |