CN109041036A - WIFI connection method and equipment - Google Patents

WIFI connection method and equipment Download PDF

Info

Publication number
CN109041036A
CN109041036A CN201811265485.1A CN201811265485A CN109041036A CN 109041036 A CN109041036 A CN 109041036A CN 201811265485 A CN201811265485 A CN 201811265485A CN 109041036 A CN109041036 A CN 109041036A
Authority
CN
China
Prior art keywords
information
electronic equipment
wifi
equipment
access
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.)
Pending
Application number
CN201811265485.1A
Other languages
Chinese (zh)
Inventor
文振兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201811265485.1A priority Critical patent/CN109041036A/en
Publication of CN109041036A publication Critical patent/CN109041036A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application provides a kind of WIFI connection method and equipment, this method comprises: agent equipment receives the access information that electronic equipment is sent based on BLE agreement, access information includes the first MAC Address and WIFI configuration information of electronic equipment;Agent equipment sends connection request based on the access pin being locally stored and the first MAC Address and WIFI configuration information, to the router of WIFI network;After connection request is by certification, agent equipment is based on BLE agreement and sends link information to electronic equipment, so that electronic equipment is connect according to link information with router, link information includes the second MAC Address, WIFI key, service set and the channel index of router.The number that electronic equipment accesses the WIFI network can be limited, the controllability of network access traffic and quality is improved.And the availability and safety of WIFI network are taken into account.

Description

WIFI connection method and equipment
Technical field
The present embodiments relate to WiFi technology field more particularly to a kind of WIFI connection method and equipment.
Background technique
Wireless network (Wireless-Fidelity, abbreviation WIFI) function has become modern cell phones, tablet computer, notes The indispensable function of the terminal devices such as this computer obtained extensive use in private area and public domain.Especially exist In public domain (such as cafe, dining room region), in order to improve service quality usually by the password display of WIFI network aobvious On the position of eye, to facilitate user access network.
However, the terminal device of user just will record access pin once access network, and make automatically in connection next time It is accessed with the access pin recorded.Under the premise of being changed without access pin, user can not be limited and access number, caused The problem of being difficult to control network access traffic and quality.
Summary of the invention
The application provides a kind of WIFI connection method and equipment, to limit the number of electronic equipment access wireless network, Promote the controllability of network access traffic and quality.
The embodiment of the present application first aspect provides a kind of WIFI connection method, comprising:
Agent equipment receives the access information that electronic equipment is sent based on BLE agreement, and the access information includes that electronics is set Standby the first MAC Address and WIFI configuration information;
The agent equipment based on the access pin and first MAC Address that are locally stored and WIFI configuration information, Connection request is sent to the router of WIFI network;
After the connection request is by certification, the agent equipment is based on BLE agreement and sends connection letter to electronic equipment Breath, so that the electronic equipment is connected to the router according to the link information, the link information includes the routing The second MAC Address, WIFI key, service set and the channel index of device.
The embodiment of the present application the second aspect provides a kind of WIFI connection method, comprising:
Electronic equipment is based on BLE agreement and sends access information to agent equipment, so that the agent equipment is based on local deposit To the router of WIFI network transmission connection request, the access information includes for the access pin of storage and the access information The first MAC Address and WIFI configuration information of electronic equipment;
After the connection request is by certification, the electronic equipment is received the agent equipment and is sent based on BLE agreement Link information, the link information includes the second MAC Address, WIFI key, service set and the channel of the router Pointer;
The electronic equipment is connected to the router according to the link information.
A kind of agent equipment is provided in terms of the embodiment of the present application third, comprising: at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer of the memory storage Program, the method to realize first aspect offer.
The 4th aspect of the application provides a kind of electronic equipment, comprising: at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer of the memory storage Program, the method to realize the second aspect offer.
WIFI connection method provided by the present application and equipment, electronic equipment are based on BLE agreement and send access to agent equipment Information, agent equipment are sent based on the access pin being locally stored and the access information received to the router of WIFI network Connection request, after router allows connection, to electronic equipment return authentication successful information, electronic equipment be based on BLE agreement to Agent equipment sends link information read requests, and agent equipment returns to link information reading after receiving link information read requests The corresponding link information of request is taken, electronic equipment can then be connect according to the link information received with router, due to this reality It applies electronic equipment in example and is not involved in the process for establishing connection with router, but it is close according to the access being locally stored by agent equipment The first MAC Address and WIFI configuration information of code and electronic equipment are connected for electronic equipment to router solicitation, and will routing The second MAC Address, service set, WIFI key and the channel index that device issues are sent to electronic equipment, to complete electronics It is connect between equipment and router, therefore, there is no need to provide the access pin of WIFI network, such electronics to electronic equipment Equipment cannot store the access pin of the WIFI network, also need to permit by agent equipment when accessing the WIFI network next time Perhaps it could complete to access, cannot be accessed if agent equipment does not allow to access, access the WIFI so as to limit electronic equipment The number of network improves the controllability of network access traffic and quality.It will not forget simultaneously because of the manager of WIFI network Remember access pin and lead to not the problem of sharing WIFI network, takes into account the availability and safety of WIFI network.Also, base Relevant information can be sent one by one in BLE agreement, it is possible to reduce the treatment process that various information are spliced and disassembled, effectively Improve data-handling efficiency.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram for the WIFI connection system that the embodiment of the present application is applicable in;
Fig. 2 is the flow diagram for the WIFI connection method that one embodiment of the application provides;
Fig. 3 is the flow diagram for the WIFI connection method that another embodiment of the application provides;
Fig. 4 provides flow diagram of the electronic equipment to agent equipment transmission access information for one embodiment of the application;
Fig. 5 is the flow diagram that the agent equipment that one embodiment of the application provides sends link information to electronic equipment;
Fig. 6 is the flow diagram for the WIFI connection method that the application another embodiment provides;
Fig. 7 is the structural schematic diagram for the agent equipment that one embodiment of the application provides;
Fig. 8 is the structural schematic diagram for the electronic equipment that one embodiment of the application provides.
Through the above attached drawings, it has been shown that the specific embodiment of the application will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
First to the invention relates to noun explain:
BLE:Bluetooth Low Energy or Bluetooth LE, bluetooth low energy consumption agreement.A kind of individual's local Network technology, compares classical bluetooth, and low-power consumption bluetooth is intended to keep to significantly reduce power consumption and cost while equivalent communication range.
GATT:Generic Attribute Profile, general-purpose attribute agreement are carried out between bluetooth low energy device The agreement of communication.GATT defines a kind of data structure of multilayer, and the bluetooth low energy device having connected is communicated with it.
WIFI connection method provided by the embodiments of the present application is suitable for WIFI connection system below, as shown in Figure 1, for this Apply for the structural schematic diagram of the applicable WIFI connection system of embodiment.The system include agent equipment, router and at least one Electronic equipment.Wherein, agent equipment can be mobile phone, tablet computer, and laptop etc. has the terminal of WIFI function module Equipment.Electronic equipment can be mobile phone, tablet computer, and laptop etc. has the terminal device of WIFI function module.Electronics When equipment wants connection WIFI, it is necessary first to send access information to agent equipment, be sent from agent equipment on behalf of to router Connection request, after the connection request that router is sent by agent equipment, agent equipment returns the relevant link information of router Back to electronic equipment, do not need to provide the access pin of WIFI network to electronic equipment, electronic equipment then can be based on connection letter Breath is connect with router, and such electronic equipment cannot store the access pin of the WIFI network, accesses the WIFI net in next time It also needs to allow that access could be completed by agent equipment when network, cannot be accessed if agent equipment does not allow to access, so as to The number that electronic equipment accesses the WIFI network is enough limited, the controllability of network access traffic and quality is promoted.It simultaneously will not Lead to not the problem of sharing WIFI network because the manager of WIFI network forgets access pin, takes into account WIFI network Availability and safety.
In addition, term " first ", " second " etc. are used for description purposes only, it is not understood to indicate or imply relatively important Property or implicitly indicate the quantity of indicated technical characteristic.In the description of following embodiment, the meaning of " plurality " is two More than a, unless otherwise specifically defined.
These specific embodiments can be combined with each other below, may be at certain for the same or similar concept or process It is repeated no more in a little embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
The embodiment of the present application one provides a kind of WIFI connection method, and this method can be executed by a kind of agent equipment, should Agent equipment can be mobile phone, tablet computer, and laptop etc. has the terminal device of WIFI function module.Referring to fig. 2, scheme 2 be the flow diagram of WIFI connection method provided in this embodiment, this method comprises:
Step 101, agent equipment receives the access information that electronic equipment is sent based on BLE agreement, and access information includes electricity The first MAC Address and WIFI configuration information of sub- equipment.
Specifically, electronic equipment involved in the present embodiment can be mobile phone, tablet computer, laptop etc. has The terminal device of WIFI function module.
When user wants to connect some WIFI network, user can be acted on behalf of using electronic equipment based on BLE protocol search Equipment, and access information is sent to agent equipment one by one based on BLE agreement.The access information includes the first of the electronic equipment MAC Address and WIFI configuration information.The first MAC Address first can be sent to agent equipment, then retransmit WIFI with confidence Breath.Access information can also include header.Wherein, WIFI configuration information may include ability information, listening intervals information, support Code rate information, other expansion field information etc..
It illustratively, as shown in table 1, is the description of contents of access information.
Table 1
Header MAC Address Ability Listening intervals Support code rate Other expand field
1 bit (position) 6 bytes 2 bytes 2 bytes Elongated degree Elongated degree
Wherein, indicate that this information is connection request when a position of header is arranged to default value (such as " 0 "), The MAC Address of 6 byte representation electronic equipments in one column of MAC Address describes electronic equipment with 2 bytes in one column of ability Ability describes listening intervals with 2 characters in one column of listening intervals, support to adapt in one column of code rate with corresponding character length The WIFI code rate that electronic equipment is supported is described, other, which expand in one column of field, fills in other information.The merely illustrative explanation of certain table 2 Rather than unique restriction to the application access information.
Agent equipment then can receive the access information that electronic equipment is sent one by one based on BLE agreement.
Optionally, agent equipment, which receives, can be written into storage region after access information and is stored.
Optionally, agent equipment often receives an access information, can return to electronic equipment and receive response message, than Such as receive the information of successful information or reception failure.If what agent equipment returned is the information of reception failure, electronic equipment can To retransmit.If what agent equipment returned is to receive successful information, electronic equipment can send next access information.And And in the case where having arranged reception response message, if electronic equipment is not received by agent equipment return within a preset time Reception response message, it is believed that do not send success, can retransmit.To avoid whether not knowing transmission for a long time Succeed and waits.
Optionally, access information and access request order volume are characterized based on BLE agreement using GATT by electronic equipment It is transmitted after haracteristics.
Optionally, after electronic equipment has sent access information, electronic equipment can also send access to agent equipment and ask Order is asked, so that agent equipment is after receiving access request order, it is known that connection request can be sent to router.
Step 102, agent equipment is based on the access pin being locally stored and the first MAC Address and WIFI configuration information, Connection request is sent to the router of WIFI network.
Specifically, agent equipment or is receiving electronic equipment after the access information for having received electronic equipment transmission After the access request order of transmission (specific triggering can be arranged according to actual needs), it can be locally stored based on agent equipment The access pin of router and the first MAC Address of electronic equipment and WIFI configuration information, to the router of WIFI network Send connection request.
The access pin for accessing WIFI network is stored in the present embodiment in agent equipment, when receiving electronic equipment Access request order after, agent equipment can according to previously received the first MAC Address and WIFI configuration information, construct nothing The authentication frame and disassociation frame of line network protocol standard, and between completion and the router of WIFI network after connection, according to this The access pin of ground storage and router interaction generate 4-Way Handshake frame, complete WIFI cipher key interaction generating process.The WIFI is close For key for the transmission data between electronic equipment and router to be encrypted and decrypted, which includes that unicast use is faced When session key (PTK) and multicast packets broadcast packet G group interim conversation key (GTK).
Router is generating WIFI key, by the second MAC Address of its own, the clothes for the sub-network distributed for electronic equipment Business set identifier, WIFI key and channel index carrying are sent to agent equipment in the first response message.Wherein, above-mentioned channel refers to Channel pointed by needle is used for transmission the interaction data between electronic equipment and sub-network.
Step 103, after connection request is by certification, agent equipment is based on BLE agreement and sends connection letter to electronic equipment Breath, so that electronic equipment is connect according to link information with router, link information includes the second MAC Address, the WIFI of router Key, service set and channel index.
Specifically, after agent equipment connection request is by certification, that is, after completing WIFI cipher key interaction generating process, base The second MAC Address, WIFI key, service set (i.e. SSID) and channel index are sent to electronic equipment one by one in BLE agreement Etc. link informations.
Optionally, agent equipment can send the second response message, the second response message to electronic equipment based on BLE agreement It can be authentication success message or authentication failure message, for example may include header and response code, header is that 1 expression is responded, and is returned Answering code is 0 to represent the success of WIFI proxy authentication, and response code is not 0 to represent authentification failure.Second response message is referred to as Link information, here in order to distinguish, the information for responding electronic equipment after the completion of agent equipment is interacted with router for the first time is known as Second response message.It can specifically be arranged according to actual needs.
If the second response message is authentication success message, electronic equipment sends link information to agent equipment one by one and reads Request returns to corresponding link information after agent equipment receives the link information read requests of electronic equipment transmission.Such as electricity Sub- equipment sends the second MAC Address read requests of router, and agent equipment then returns to the second MAC Address, and electronic equipment is sent The WIFI key read requests of router, agent equipment then return to WIFI key etc..
Optionally, link information can also include header, association ID, ability, listening intervals, support code rate, channel number, its He expands the information such as field.Illustratively, as shown in table 2, schematically illustrate for the content of link information.It here is exemplary theory It is bright, not to the restriction of the embodiment of the present application.
Table 2
Wherein, it when the value of header is 1, indicates that the information is the second response message, the value of response code is sentenced at this time It is disconnected, it indicates successfully to complete to connect with router when the value of 1 position of response code position is default value (such as " 0 ") It connects, electronic equipment can receive the link information that agent equipment is sent one by one based on BLE agreement at this time, can be with after having received It is connect according to link information with router.It indicates not to be successfully connected with router if response code position is other numerical value. It can be determined whether to initiate reconnection according to the specific value of response code at this time and when initiate reconnection.For example work as response code Value when being any one in 1-3, then it represents that the failure of router WIFI line, at this point, can then initiate reconnection immediately, when returning When the value of code being answered to be 5, indicates that Internet resources are insufficient, reconnection can be initiated after the preset lime, when the value of response code is 4 or 6, table Show that agent equipment refuses connection request, does not initiate reconnection at this time.Certainly it is only for illustrate rather than to it is of the invention only One limits.
Illustratively, as shown in table 3, it is tabulated for response code meaning.
Table 3
Embodiment as one preferred, after electronic equipment and router are successfully connected, agent equipment can be with Connection Time between electronic equipment and router is monitored, is more than when the Connection Time between electronic equipment and router When preset duration, releases authentication frame is sent to router, router is made to disconnect the connection between electronic equipment, and to notice Electronic equipment is because of suspension caused by connection time-out, to reach the purpose that limitation uses Internet resources.
WIFI connection method provided in this embodiment, electronic equipment are based on BLE agreement and send access to agent equipment one by one Information, agent equipment are sent based on the access pin being locally stored and the access information received to the router of WIFI network Connection request, after router allows connection, to electronic equipment return authentication successful information, electronic equipment be based on BLE agreement by Item sends link information read requests to agent equipment, and agent equipment returns to connection letter after receiving link information read requests The corresponding link information of read requests is ceased, electronic equipment can then be connect according to the link information received with router, due to Electronic equipment is not involved in the process that connection is established with router in the present embodiment, but is connect by agent equipment according to what is be locally stored The first MAC Address and WIFI configuration information for entering password and electronic equipment are connected for electronic equipment to router solicitation, and will The second MAC Address, service set, WIFI key and the channel index that router issues are sent to electronic equipment, to complete It is connect between electronic equipment and router, therefore, there is no need to provide the access pin of WIFI network to electronic equipment, in this way Electronic equipment cannot store the access pin of the WIFI network, also need to set by agency when accessing the WIFI network next time It is standby to allow that access is completed, it cannot be accessed if agent equipment does not allow to access, it should so as to limit electronic equipment access The number of WIFI network improves the controllability of network access traffic and quality.It simultaneously will not be because of the management of WIFI network Person forgets access pin and leads to not the problem of sharing WIFI network, has taken into account the availability and safety of WIFI network.And And relevant information can be sent based on BLE agreement one by one, it is possible to reduce what various information were spliced and disassembled is processed Journey effectively improves data-handling efficiency.
The embodiment of the present application two does further supplementary explanation to method provided by the above embodiment.
Fig. 3 is the flow diagram of WIFI connection method provided in this embodiment.
As a kind of enforceable mode, on the basis of the above embodiment 1, optionally, step 101 is specifically included:
Step 1011, agent equipment receives the first MAC Address that electronic equipment is sent based on BLE agreement.
Step 1012, after being properly received the first MAC Address, agent equipment receives what electronic equipment was sent based on BLE agreement WIFI configuration information.
Specifically, electronic equipment is based on BLE agreement sends access information one by one.First electronic equipment be based on BLE agreement to Agent equipment sends the first MAC Address of the electronic equipment.
After agent equipment receives the first MAC Address, it can return and receive successful information, electronic equipment is receiving After receiving successful information, then based on BLE agreement transmission WIFI configuration information.
It is sent that is, the first MAC Address can be used as an access information, WIFI configuration information can be used as an access Information is sent.
Optionally, WIFI configuration information, comprising: ability information, listening intervals information support code rate information and other expansions Field information.
Optionally, step 1012 can specifically include: agent equipment receives ability information, the prison that electronic equipment is sent one by one It listens interval information, support code rate information and other expansion field information.I.e. by ability information, listening intervals information, support code rate Information and other every kind of information expanded in field information are sent as an access information, need to send 4 times.
Optionally, agent equipment receives in the access information that electronic equipment is sent, and at least an access information includes energy At least two information in force information, listening intervals information, support code rate information and other expansion field information.I.e. various information It can be combined into an access information in any way.It for example can include ability information and prison in the access information once sent Interval information is listened, includes supporting code rate information etc. in next access information.Specific combination can be according to reality Demand setting, the present embodiment does not limit.
Illustratively, as shown in figure 4, sending the stream of access information to agent equipment for electronic equipment provided in this embodiment Journey schematic diagram.Here it is merely given as a kind of illustrative enforceable mode, not to the restriction of the present embodiment.
As another enforceable mode, on the basis of the above embodiment 1, optionally, each of link information It include the second MAC Address, WIFI key, in service set and at least one of channel index information.That is agent equipment It, can also be according to actual needs using two or more information therein as one when sending link information one by one to electronic equipment Link information is sent.For example the second MAC Address that link information is router is first sent, then PTK key, then GTK key, then SSID, is then associated with ID+ channel number+ability+interval (4 kinds of information are as one) etc..It is specific how group Conjunction can be arranged according to actual needs, and the present embodiment does not limit.
Illustratively, as shown in figure 5, sending the stream of link information to electronic equipment for agent equipment provided in this embodiment Journey schematic diagram.Here it is merely given as a kind of illustrative enforceable mode, not to the restriction of the present embodiment
Optionally, agent equipment can also judge after the access information or access request order for receiving electronic equipment Whether the number of devices for having accessed WIFI network is more than preset quantity, if the number of devices for having accessed WIFI network be less than it is default Quantity then judges whether to be in connection status with the router of WIFI network, if so, the connection between disconnection and router Afterwards, MAC Address and WIFI configuration information based on the access pin and electronic equipment being locally stored, to the road of WIFI network Connection request is sent by device and subsequent other operate, is specifically repeated no more.
Optionally, agent equipment can also the WIFI configuration information to electronic equipment verify, just may be used if being verified To execute other above-mentioned subsequent operations, specifically repeat no more.Illustratively, agent equipment can ability to electronic equipment into Row verifying, when the ability of electronic equipment meets condition of contact, is then verified, otherwise authentication failed, it is only for show certainly Example illustrates rather than to unique restriction of the invention.
It should be noted that each enforceable mode can individually be implemented in the present embodiment, it can also be in the feelings not conflicted It is combined in any combination under condition and implements the application without limitation.
In the present embodiment, by judging the number of devices for having accessed WIFI network, only WIFI net is being accessed The number of devices of network is less than preset quantity and just carries out further attended operation, realizes to network quality and network access number Effective control of amount.In addition, agent equipment, which passes through, judges its connection status between router, and after disconnecting, Execute it is subsequent act on behalf of attended operation, can reduce the probability of connection failure, improve user experience.It can also be to electronic equipment WIFI configuration information is verified, and the success rate and user experience of connection are improved.
The embodiment of the present application three provides a kind of WIFI connection method, and this method can be executed by a kind of electronic equipment, should Electronic equipment can be mobile phone, tablet computer, and laptop etc. has the terminal device of WIFI function module.
As shown in fig. 6, being the flow diagram of WIFI connection method provided in this embodiment.This method includes.
Step 301, electronic equipment is based on BLE agreement and sends access information to agent equipment, so that agent equipment is based on this The access pin and access information of ground storage send connection request to the router of WIFI network, and access information includes electronics The first MAC Address and WIFI configuration information of equipment.
Step 302, after connection request is by certification, company that electronic equipment Receiving Agent equipment is sent based on BLE agreement Information is connect, link information includes the second MAC Address, WIFI key, service set and the channel index of router.
Step 303, electronic equipment is connect according to link information with router.
The present embodiment is that the method that the electronic equipment end that the agent equipment provided with embodiment one interacts executes is implemented Example, closes the concrete operations of each step in this present embodiment, is described in detail in the above-described embodiments, herein will not Elaborate explanation.
WIFI connection method provided in this embodiment, electronic equipment are based on BLE agreement and send access information to agent equipment, Agent equipment is sent to the router of WIFI network based on the access pin being locally stored and the access information received and is connected Request, after router allows connection, to electronic equipment return authentication successful information, electronic equipment is based on BLE agreement to agency Equipment sends link information read requests, and agent equipment, which receives, to be returned to link information reading after link information read requests and ask Corresponding link information is sought, electronic equipment can then be connect according to the link information received with router, due to the present embodiment Middle electronic equipment is not involved in the process that connection is established with router, but by agent equipment according to the access pin being locally stored with And the first MAC Address and WIFI configuration information of electronic equipment, it is connected for electronic equipment to router solicitation, and will be under router The second MAC Address, service set, WIFI key and the channel index of hair are sent to electronic equipment, to complete electronic equipment It is connect between router, therefore, there is no need to provide the access pin of WIFI network, such electronic equipment to electronic equipment The access pin that the WIFI network cannot be stored also needs to allow just by agent equipment when accessing the WIFI network next time Access can be completed, cannot be accessed if agent equipment does not allow to access, access the WIFI network so as to limit electronic equipment Number, improve the controllability of network access traffic and quality.It will not forget to connect because of the manager of WIFI network simultaneously Enter password and lead to not the problem of sharing WIFI network, takes into account the availability and safety of WIFI network.Also, it is based on BLE agreement can send relevant information one by one, it is possible to reduce the treatment process that various information are spliced and disassembled effectively mentions High data-handling efficiency.
The method that the embodiment of the present application four provides above-described embodiment three does further supplementary explanation.
As a kind of enforceable mode, on the basis of above-described embodiment three, optionally, electronic equipment is assisted based on BLE It discusses to agent equipment and sends access information, comprising:
Electronic equipment is based on BLE agreement and sends the first MAC Address to agent equipment;After first MAC Address is sent successfully, electricity Sub- equipment is based on BLE agreement and sends WIFI configuration information to agent equipment.
Optionally, WIFI configuration information, comprising: ability information, listening intervals information support code rate information and other expansions Field information;
Electronic equipment is based on BLE agreement and sends WIFI configuration information to agent equipment, comprising:
Electronic equipment be based on BLE agreement to agent equipment transmitting capacity information, listening intervals information, support code rate information and Other expand field information;Alternatively,
In the access information that electronic equipment is sent to agent equipment, an at least access information includes ability information, prison It listens interval information, support at least two information in code rate information and other expansion field information.
As another enforceable mode, on the basis of above-described embodiment three, optionally, each of link information It include the second MAC Address, WIFI key, in service set and at least one of channel index information.
The present embodiment is that the method that the electronic equipment end that the agent equipment provided with embodiment one interacts executes is implemented Example, closes the concrete operations of each step in this present embodiment, is described in detail in the above-described embodiments, herein will not Elaborate explanation.
It should be noted that each enforceable mode can individually be implemented in the present embodiment, it can also be in the feelings not conflicted It is combined in any combination under condition and implements the application without limitation.
WIFI connection method provided in this embodiment, electronic equipment are based on BLE agreement and send access information to agent equipment, Agent equipment is sent to the router of WIFI network based on the access pin being locally stored and the access information received and is connected Request, after router allows connection, to electronic equipment return authentication successful information, electronic equipment is based on BLE agreement to agency Equipment sends link information read requests, and agent equipment, which receives, to be returned to link information reading after link information read requests and ask Corresponding link information is sought, electronic equipment can then be connect according to the link information received with router, due to the present embodiment Middle electronic equipment is not involved in the process that connection is established with router, but by agent equipment according to the access pin being locally stored with And the first MAC Address and WIFI configuration information of electronic equipment, it is connected for electronic equipment to router solicitation, and will be under router The second MAC Address, service set, WIFI key and the channel index of hair are sent to electronic equipment, to complete electronic equipment It is connect between router, therefore, there is no need to provide the access pin of WIFI network, such electronic equipment to electronic equipment The access pin that the WIFI network cannot be stored also needs to allow just by agent equipment when accessing the WIFI network next time Access can be completed, cannot be accessed if agent equipment does not allow to access, access the WIFI network so as to limit electronic equipment Number, improve the controllability of network access traffic and quality.It will not forget to connect because of the manager of WIFI network simultaneously Enter password and lead to not the problem of sharing WIFI network, takes into account the availability and safety of WIFI network.Also, it is based on BLE agreement can send relevant information one by one, it is possible to reduce the treatment process that various information are spliced and disassembled effectively mentions High data-handling efficiency.
In some embodiments, a kind of WIFI attachment device can also be provided, which can be set in agent equipment, Method for executing above-described embodiment one or the offer of embodiment two.The apparatus may include multiple functional modules, are respectively used to Each step of the above method is executed, the setting of specific functional modules can be arranged according to actual needs, and details are not described herein.
In some embodiments, a kind of WIFI attachment device can also be provided, which can be set in the electronic device, Method for executing above-described embodiment three or example IV offer.The device also may include multiple functional modules, use respectively In each step for executing the above method, the setting of specific functional modules can be arranged according to actual needs, and details are not described herein.
The embodiment of the present application five provides a kind of agent equipment, for executing the side of above-described embodiment one or the offer of embodiment two Method.
As shown in fig. 7, being the structural schematic diagram of agent equipment provided in this embodiment.The agent equipment 50 includes: at least One processor 51 and memory 52;
Memory stores computer program;At least one processor executes the computer program of memory storage, to realize The method that above-described embodiment one or embodiment two provide.
According to the agent equipment of the present embodiment, electronic equipment is based on BLE agreement and sends access information, agency to agent equipment Equipment sends connection request to the router of WIFI network based on the access pin being locally stored and the access information received, After router allows connection, to electronic equipment return authentication successful information, electronic equipment is based on BLE agreement and sends out to agent equipment Link information read requests correspondence is returned after sending link information read requests, agent equipment to receive link information read requests Link information, electronic equipment can then be connect according to the link information received with router, by electronics in this present embodiment Equipment is not involved in the process that connection is established with router, but by agent equipment according to the access pin and electronics being locally stored The first MAC Address and WIFI configuration information of equipment, for connecting to router solicitation for electronic equipment, and router being issued Two MAC Address, service set, WIFI key and channel index are sent to electronic equipment, to complete electronic equipment and routing Connection between device, it therefore, there is no need to provide the access pin of WIFI network to electronic equipment, such electronic equipment cannot The access pin for storing the WIFI network also needs to allow to complete by agent equipment when accessing the WIFI network next time Access cannot access if agent equipment does not allow to access, so as to limit the number that electronic equipment accesses the WIFI network, Improve the controllability of network access traffic and quality.Will not forget access pin because of the manager of WIFI network simultaneously and Lead to not the problem of sharing WIFI network, takes into account the availability and safety of WIFI network.Also, it can based on BLE agreement To send relevant information one by one, it is possible to reduce the treatment process that various information are spliced and disassembled effectively improves at data Manage efficiency.
The embodiment of the present application six provides a kind of electronic equipment, for executing the side of above-described embodiment three or example IV offer Method.
As shown in figure 8, being the structural schematic diagram of electronic equipment provided in this embodiment.The electronic equipment 60 includes: at least One processor 61 and memory 62;
Memory stores computer program;At least one processor executes the computer program of memory storage, to realize The method that above-described embodiment three or example IV provide.
According to the electronic equipment of the present embodiment, electronic equipment is based on BLE agreement and sends access information, agency to agent equipment Equipment sends connection request to the router of WIFI network based on the access pin being locally stored and the access information received, After router allows connection, to electronic equipment return authentication successful information, electronic equipment is based on BLE agreement and sends out to agent equipment Link information read requests correspondence is returned after sending link information read requests, agent equipment to receive link information read requests Link information, electronic equipment can then be connect according to the link information received with router, by electronics in this present embodiment Equipment is not involved in the process that connection is established with router, but by agent equipment according to the access pin and electronics being locally stored The first MAC Address and WIFI configuration information of equipment, for connecting to router solicitation for electronic equipment, and router being issued Two MAC Address, service set, WIFI key and channel index are sent to electronic equipment, to complete electronic equipment and routing Connection between device, it therefore, there is no need to provide the access pin of WIFI network to electronic equipment, such electronic equipment cannot The access pin for storing the WIFI network also needs to allow to complete by agent equipment when accessing the WIFI network next time Access cannot access if agent equipment does not allow to access, so as to limit the number that electronic equipment accesses the WIFI network, Improve the controllability of network access traffic and quality.Will not forget access pin because of the manager of WIFI network simultaneously and Lead to not the problem of sharing WIFI network, takes into account the availability and safety of WIFI network.Also, it can based on BLE agreement To send relevant information one by one, it is possible to reduce the treatment process that various information are spliced and disassembled effectively improves at data Manage efficiency.
The embodiment of the present application seven provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program, computer program, which is performed, realizes above-described embodiment one or the method that embodiment two provides.
According to the computer readable storage medium of the present embodiment, electronic equipment is based on BLE agreement and connects to agent equipment transmission Enter information, agent equipment is sent out based on the access pin being locally stored and the access information received to the router of WIFI network Connection request is sent, after router allows connection, to electronic equipment return authentication successful information, electronic equipment is based on BLE agreement Link information read requests are sent to agent equipment, agent equipment returns to the link information after receiving link information read requests The corresponding link information of read requests, electronic equipment can then be connect according to the link information received with router, due to this Electronic equipment is not involved in the process that connection is established with router in embodiment, but by agent equipment according to the access being locally stored The first MAC Address and WIFI configuration information of password and electronic equipment are connected for electronic equipment to router solicitation, and by road The second MAC Address, service set, WIFI key and the channel index issued by device is sent to electronic equipment, to complete electricity It is connect between sub- equipment and router, therefore, there is no need to provide the access pin of WIFI network to electronic equipment, it is electric in this way Sub- equipment cannot store the access pin of the WIFI network, also need to pass through agent equipment when accessing the WIFI network next time Permission could complete access, cannot access if agent equipment does not allow to access, should so as to limit electronic equipment access The number of WIFI network improves the controllability of network access traffic and quality.It simultaneously will not be because of the management of WIFI network Person forgets access pin and leads to not the problem of sharing WIFI network, has taken into account the availability and safety of WIFI network.And And relevant information can be sent based on BLE agreement one by one, it is possible to reduce what various information were spliced and disassembled is processed Journey effectively improves data-handling efficiency.
The embodiment of the present application eight provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program, computer program, which is performed, realizes above-described embodiment three or the method that example IV provides.
According to the computer readable storage medium of the present embodiment, electronic equipment is based on BLE agreement and connects to agent equipment transmission Enter information, agent equipment is sent out based on the access pin being locally stored and the access information received to the router of WIFI network Connection request is sent, after router allows connection, to electronic equipment return authentication successful information, electronic equipment is based on BLE agreement Link information read requests are sent to agent equipment, agent equipment returns to the link information after receiving link information read requests The corresponding link information of read requests, electronic equipment can then be connect according to the link information received with router, due to this Electronic equipment is not involved in the process that connection is established with router in embodiment, but by agent equipment according to the access being locally stored The first MAC Address and WIFI configuration information of password and electronic equipment are connected for electronic equipment to router solicitation, and by road The second MAC Address, service set, WIFI key and the channel index issued by device is sent to electronic equipment, to complete electricity It is connect between sub- equipment and router, therefore, there is no need to provide the access pin of WIFI network to electronic equipment, it is electric in this way Sub- equipment cannot store the access pin of the WIFI network, also need to pass through agent equipment when accessing the WIFI network next time Permission could complete access, cannot access if agent equipment does not allow to access, should so as to limit electronic equipment access The number of WIFI network improves the controllability of network access traffic and quality.It simultaneously will not be because of the management of WIFI network Person forgets access pin and leads to not the problem of sharing WIFI network, has taken into account the availability and safety of WIFI network.And And relevant information can be sent based on BLE agreement one by one, it is possible to reduce what various information were spliced and disassembled is processed Journey effectively improves data-handling efficiency.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of WIFI connection method characterized by comprising
Agent equipment receives the access information that electronic equipment is sent based on BLE agreement, and the access information includes electronic equipment First MAC Address and WIFI configuration information;
The agent equipment based on the access pin and first MAC Address that are locally stored and WIFI configuration information, to The router of WIFI network sends connection request;
After the connection request is by certification, the agent equipment is based on BLE agreement and sends link information to electronic equipment, with It is connected to the router the electronic equipment according to the link information, the link information includes the of the router Two MAC Address, WIFI key, service set and channel index.
2. the method according to claim 1, wherein the agent equipment, which receives electronic equipment, is based on BLE agreement The access information of transmission, comprising:
The agent equipment receives the first MAC Address that the electronic equipment is sent based on BLE agreement;
After being properly received first MAC Address, the agent equipment receives what the electronic equipment was sent based on BLE agreement WIFI configuration information.
3. according to the method described in claim 2, it is characterized in that, the WIFI configuration information, comprising: ability information, monitoring Interval information supports code rate information and other expansion field information;
The agent equipment receives the WIFI configuration information that the electronic equipment is sent based on BLE agreement, comprising:
The agent equipment receives the ability information that the electronic equipment sends one by one, the listening intervals information, described Code rate information and described other is supported to expand field information;Alternatively,
The agent equipment receives in the access information that the electronic equipment is sent, and at least an access information includes institute It states ability information, the listening intervals information, the support code rate information and described other and expands at least two in field information Kind information.
4. the method according to claim 1, wherein each of the link information includes described second MAC Address, the WIFI key, the service set neutralize at least one of channel index information.
5. a kind of WIFI connection method characterized by comprising
Electronic equipment is based on BLE agreement and sends access information to agent equipment, so that the agent equipment is based on being locally stored To the router of WIFI network transmission connection request, the access information includes described for access pin and the access information The first MAC Address and WIFI configuration information of electronic equipment;
After the connection request is by certification, the electronic equipment receives the company that the agent equipment is sent based on BLE agreement Information is connect, the link information includes the second MAC Address, WIFI key, service set and the channel index of the router;
The electronic equipment is connected to the router according to the link information.
6. according to the method described in claim 5, it is characterized in that, the electronic equipment is based on BLE agreement to agent equipment hair Send access information, comprising:
The electronic equipment is based on BLE agreement and sends the first MAC Address to the agent equipment;
After first MAC Address is sent successfully, the electronic equipment is based on BLE agreement and matches to agent equipment transmission WIFI Confidence breath.
7. according to the method described in claim 6, it is characterized in that, the WIFI configuration information, comprising: ability information, monitoring Interval information supports code rate information and other expansion field information;
The electronic equipment is based on BLE agreement and sends WIFI configuration information to the agent equipment, comprising:
The electronic equipment is based on BLE agreement to the agent equipment transmitting capacity information, listening intervals information, support code rate letter Breath and other expansion field information;Alternatively,
The electronic equipment is into the access information that the agent equipment is sent, and at least an access information includes described Ability information, the listening intervals information, the support code rate information and described other expand at least two in field information Information.
8. according to the method described in claim 5, it is characterized in that, each of the link information includes described second MAC Address, the WIFI key, the service set neutralize at least one of channel index information.
9. a kind of agent equipment characterized by comprising at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer journey of the memory storage Sequence, to realize method of any of claims 1-4.
10. a kind of electronic equipment characterized by comprising at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer journey of the memory storage Sequence, to realize method described in any one of claim 5-8.
CN201811265485.1A 2018-10-29 2018-10-29 WIFI connection method and equipment Pending CN109041036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811265485.1A CN109041036A (en) 2018-10-29 2018-10-29 WIFI connection method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811265485.1A CN109041036A (en) 2018-10-29 2018-10-29 WIFI connection method and equipment

Publications (1)

Publication Number Publication Date
CN109041036A true CN109041036A (en) 2018-12-18

Family

ID=64614294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811265485.1A Pending CN109041036A (en) 2018-10-29 2018-10-29 WIFI connection method and equipment

Country Status (1)

Country Link
CN (1) CN109041036A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163497A (en) * 2019-12-19 2020-05-15 展讯通信(上海)有限公司 Communication device, system and channel switching method
CN111866998A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Bluetooth network distribution method, equipment and storage medium
CN112004257A (en) * 2020-07-31 2020-11-27 海尔优家智能科技(北京)有限公司 Network element communication method and communication system
WO2024067334A1 (en) * 2022-09-28 2024-04-04 华为技术有限公司 Network connection method, electronic device, and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945564A (en) * 2014-04-30 2014-07-23 Tcl集团股份有限公司 Wireless network connecting method and system and wireless access point equipment
CN103974312A (en) * 2013-02-05 2014-08-06 中国移动通信集团公司 WLAN (wireless local area network) equipment testing method, device and system
CN104135339A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Bluetooth low-power-consumption communication method, Bluetooth equipment and system
CN104184553A (en) * 2014-09-02 2014-12-03 广东欧珀移动通信有限公司 Low-power-dissipation Bluetooth data transmission method, device and equipment
CN104412690A (en) * 2012-06-27 2015-03-11 诺基亚公司 Resolving hidden node problem in synchronized dcf based channel access in wlan
CN104836787A (en) * 2014-02-07 2015-08-12 苹果公司 System and method for authenticating client station
CN106982430A (en) * 2017-03-22 2017-07-25 上海斐讯数据通信技术有限公司 A kind of portal authentication method and system based on user's use habit
CN107346981A (en) * 2017-05-16 2017-11-14 北京数科技有限公司 Data transmission method for uplink, method of reseptance and data sending device, reception device
CN107659999A (en) * 2017-10-31 2018-02-02 青岛海信电器股份有限公司 WIFI connection methods and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104412690A (en) * 2012-06-27 2015-03-11 诺基亚公司 Resolving hidden node problem in synchronized dcf based channel access in wlan
CN103974312A (en) * 2013-02-05 2014-08-06 中国移动通信集团公司 WLAN (wireless local area network) equipment testing method, device and system
CN104836787A (en) * 2014-02-07 2015-08-12 苹果公司 System and method for authenticating client station
CN103945564A (en) * 2014-04-30 2014-07-23 Tcl集团股份有限公司 Wireless network connecting method and system and wireless access point equipment
CN104135339A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Bluetooth low-power-consumption communication method, Bluetooth equipment and system
CN104184553A (en) * 2014-09-02 2014-12-03 广东欧珀移动通信有限公司 Low-power-dissipation Bluetooth data transmission method, device and equipment
CN106982430A (en) * 2017-03-22 2017-07-25 上海斐讯数据通信技术有限公司 A kind of portal authentication method and system based on user's use habit
CN107346981A (en) * 2017-05-16 2017-11-14 北京数科技有限公司 Data transmission method for uplink, method of reseptance and data sending device, reception device
CN107659999A (en) * 2017-10-31 2018-02-02 青岛海信电器股份有限公司 WIFI connection methods and equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163497A (en) * 2019-12-19 2020-05-15 展讯通信(上海)有限公司 Communication device, system and channel switching method
CN111866998A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Bluetooth network distribution method, equipment and storage medium
CN112004257A (en) * 2020-07-31 2020-11-27 海尔优家智能科技(北京)有限公司 Network element communication method and communication system
WO2024067334A1 (en) * 2022-09-28 2024-04-04 华为技术有限公司 Network connection method, electronic device, and system

Similar Documents

Publication Publication Date Title
CN109041036A (en) WIFI connection method and equipment
CN103188270B (en) Method, device and system for accessing recommended server to IP address
CN100592720C (en) Method and system for implementing instant communication between external network user and LAN user
CN104735027B (en) A kind of safety certifying method and authentication server
CN104809369B (en) Packet sets method, client, server and the system of equipment access rights
CN109345245A (en) Short-message verification method, equipment, network and storage medium based on block chain
CN111050324B (en) 5G terminal equipment access method, equipment and storage medium
US10075447B2 (en) Secure distributed device-to-device network
CN107104932A (en) Key updating method, apparatus and system
CN102271133A (en) Authentication method, device and system
CN109168171A (en) configuration information obtaining method, device, equipment and system
CN107659999A (en) WIFI connection methods and equipment
CN103812900A (en) Data synchronization method, device and system
CN103716230B (en) Message sending method, device and server
CN108712440A (en) User information management method, device, server and storage medium
CN102571862A (en) Method, system and server for logging in public chat groups based on mobile terminals
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
CN107864042A (en) Application program awakening method and device
CN103987017B (en) A kind of method and system for being used to set up service access in a wlan
CN110048842A (en) Session key processing method, equipment and computer readable storage medium
CN105391702A (en) Audio/video communication method, terminal, server and platform
CN110035089A (en) A kind of network security verification method and system of distributed system
CN102469457A (en) Communication system and synchronization and maintenance method of address list information
CN101848228B (en) Method and system for authenticating computer terminal server ISP identity by using SIM cards
CN114584971A (en) Account registration method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218