TW201828756A - Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network - Google Patents

Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network Download PDF

Info

Publication number
TW201828756A
TW201828756A TW106101948A TW106101948A TW201828756A TW 201828756 A TW201828756 A TW 201828756A TW 106101948 A TW106101948 A TW 106101948A TW 106101948 A TW106101948 A TW 106101948A TW 201828756 A TW201828756 A TW 201828756A
Authority
TW
Taiwan
Prior art keywords
wifi
ssid
password
information
smart device
Prior art date
Application number
TW106101948A
Other languages
Chinese (zh)
Inventor
劉孫亮
張銘君
Original Assignee
阿里巴巴集團服務有限公司
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 阿里巴巴集團服務有限公司 filed Critical 阿里巴巴集團服務有限公司
Priority to TW106101948A priority Critical patent/TW201828756A/en
Publication of TW201828756A publication Critical patent/TW201828756A/en

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

This invention provides a method and an apparatus for transmitting and receiving wifi networking information, wherein the method comprises the following steps: generating, by a first wifi-type smart device, a management frame carrying wifi networking information; transmitting the management frame for a second wifi-type smart device to monitor; monitoring, by the second wifi-type smart device, the management frame transmitted by the first wifi-type smart device; and parsing the management frame to obtain the wifi networking information, so that the acquired wifi networking information can be used to access the network. This invention can reduce the delay and technical complexity of the wifi-type smart devices accessing the network.

Description

發送和獲取wifi聯網資訊的方法和對應裝置  Method and corresponding device for sending and obtaining wifi networking information  

本發明涉及電腦應用技術領域,特別涉及一種發送和獲取wifi聯網資訊的方法和對應裝置。 The present invention relates to the field of computer application technologies, and in particular, to a method and a corresponding device for transmitting and acquiring wifi networking information.

隨著智慧硬體的興起,越來越多的智慧設備進入人們的生活,對於wifi型智慧設備(內置wifi模組的智慧設備,這種智慧設備能夠經由wifi模組接入網路),如何讓其接入網路是個難題。 With the rise of smart hardware, more and more smart devices have entered people's lives. For wifi-type smart devices (smart devices with built-in wifi modules, this smart device can access the network via wifi module), how to Getting it to the network is a challenge.

由於諸如智慧空調、智慧加濕器、智慧體重計等wifi型智慧設備不像PC、手機、平板電腦等具有螢幕,無法藉由手動發現無線路由器並輸入密碼完成網路接入。也就是說,很大一部分wifi型智慧設備可以掃描到周圍的無線路由器,但無法讓用戶感知到它“看到”什麼,用戶也無法藉由直接地手工對話模式(例如藉由鍵盤或觸控式螢幕輸入無線路由器的服務集標識和密碼)讓wifi型智慧設備接入網路。 Since WiFi-type smart devices such as smart air conditioners, smart humidifiers, and smart weight scales do not have screens like PCs, mobile phones, and tablets, it is impossible to complete network access by manually discovering wireless routers and entering passwords. That is to say, a large part of the wifi-type smart device can scan to the surrounding wireless router, but can not let the user perceive what it "sees", and the user cannot directly use the manual dialogue mode (for example, by keyboard or touch). The screen enters the wireless router's service set ID and password) to allow the wifi-type smart device to access the network.

為了解決上述難題,目前業內主要存在以下幾種實現方式: In order to solve the above problems, there are currently several implementation methods in the industry:

第一種方式:手機藉由UDP(使用者資料包通訊協定)向路由器發送資料包,路由器轉發資料包。由於資料包能夠攜帶的信息量很少,一個包最多只能攜帶1個位元組的資訊,因此需要藉由發送一組資料包,藉由包長的有規律變化來傳遞wifi聯網資訊。wifi型智慧設備解析一組資料包,從中獲取wifi聯網資訊從而接入網路。 The first way: the mobile phone sends a data packet to the router through UDP (User Data Packet Protocol), and the router forwards the data packet. Since the amount of information that a data packet can carry is small, a package can only carry a maximum of one byte of information. Therefore, it is necessary to transmit a set of data packets, and the wifi networking information is transmitted by the regular change of the packet length. The wifi-type smart device parses a set of data packets, and obtains wifi networking information to access the network.

這種方式需要發送的資料包數量很多,導致發送時間長,wifi型智慧設備獲取wifi聯網資訊的時間過長,另外,為了防止丟包對實際開發容錯演算法要求較高,技術複雜。 In this way, the number of data packets to be sent is large, resulting in long transmission time. The wifi-type smart device takes too long to obtain the wifi networking information. In addition, in order to prevent the packet loss from being required, the technical requirements are complicated.

第二種方式:手機經由UDP向路由器發送組播資料包,路由器轉發組播資料包。wifi型智慧設備解析組播資料包,從中獲取wifi聯網資訊從而接入網路。但這種方式組播相容性問題比較突出,有些路由器在開啟特定選項的情況下(例如IGMP Snooping),該組播資料包不會被轉發,則可能造成wifi型智慧設備長時間無法接入網路。 The second way: the mobile phone sends a multicast data packet to the router via UDP, and the router forwards the multicast data packet. The wifi-type smart device parses the multicast data packet, and obtains the wifi networking information to access the network. However, the multicast compatibility problem is more prominent in this way. Some routers may not be forwarded when the specific option is enabled (for example, IGMP Snooping), which may cause the wifi-type smart device to be unable to access for a long time. network.

有鑑於此,本發明提供了一種發送和獲取wifi聯網資訊的方法和對應裝置,以便於降低wifi型智慧設備接入網路的延時和技術複雜性。 In view of this, the present invention provides a method and a corresponding device for transmitting and acquiring wifi networking information, so as to reduce the delay and technical complexity of the WiFi-type smart device accessing the network.

具體技術方案如下:本發明提供了一種發送wifi聯網資訊的方法,該方 法包括:第一wifi型智慧設備產生攜帶wifi聯網資訊的管理幀;發送所述管理幀,以供第二wifi型智慧設備監聽。 The specific technical solution is as follows: The present invention provides a method for transmitting wifi networking information, the method comprising: a first wifi-type smart device generating a management frame carrying wifi networking information; and transmitting the management frame for a second wifi-type smart device monitor.

根據本發明一較佳實施方式,所述管理幀包括:探測請求probe request幀、探測回應probe response幀、關聯請求association request幀、重新關聯請求reassociation request幀、action幀或信標beacon幀。 According to a preferred embodiment of the present invention, the management frame includes: a probe request probe request frame, a probe response probe response frame, an association request association request frame, a reassociation request reassociation request frame, an action frame, or a beacon beacon frame.

根據本發明一較佳實施方式,所述wifi聯網資訊包括特徵碼、SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes a feature code, an SSID, and a password.

根據本發明一較佳實施方式,所述wifi聯網資訊包括提供聯網資訊服務的標識;該方法還包括:所述第一wifi型智慧設備與所述第二wifi型智慧設備藉由wifi direct方式建立連接後,經由建立的連接發送SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes an identifier for providing a networked information service. The method further includes: the first wifi-type smart device and the second wifi-type smart device are established by using a wifi direct method. After the connection, the SSID and password are sent via the established connection.

根據本發明一較佳實施方式,該方法還包括:所述第一wifi型智慧設備與所述第二wifi型智慧設備藉由wifi direct方式建立連接;所述攜帶wifi聯網資訊的管理幀為所述連接建立過程中發送的管理幀。 According to a preferred embodiment of the present invention, the method further includes: the first wifi-type smart device and the second wifi-type smart device establish a connection by using a wifi direct method; and the management frame carrying the wifi networking information is The management frame sent during the connection establishment process.

根據本發明一較佳實施方式,所述wifi聯網資訊包括特徵碼、SSID和密碼;所述wifi聯網資訊包括SSID和密碼,所述wifi聯網 資訊攜帶在所述管理幀的指定擴展欄位中。 According to a preferred embodiment of the present invention, the wifi networking information includes a feature code, an SSID, and a password; the wifi networking information includes an SSID and a password, and the wifi networking information is carried in a designated extension field of the management frame.

根據本發明一較佳實施方式,連同所述SSID和密碼一起發送的資訊還包括校驗資訊、加密資訊和路由器認證資訊中的至少一種;其中當發送所述加密資訊時,所述SSID和密碼為加密後的資料。 According to a preferred embodiment of the present invention, the information sent together with the SSID and the password further includes at least one of verification information, encryption information, and router authentication information; wherein the SSID and the password are sent when the encrypted information is sent. For encrypted data.

根據本發明一較佳實施方式,該方法還包括:所述第一wifi型智慧設備接收所述第二wifi型智慧設備發送的是否成功接入網路的回饋資訊。 According to a preferred embodiment of the present invention, the method further includes: the first wifi-type smart device receiving feedback information of whether the second wifi-type smart device successfully accesses the network.

根據本發明一較佳實施方式,發送所述管理幀包括:所述第一wifi型智慧設備藉由呼叫wifi direct介面發送所述管理幀;或者,所述第一wifi型智慧設備藉由呼叫自訂的介面發送所述管理幀。 According to a preferred embodiment of the present invention, the sending the management frame includes: the first wifi-type smart device sending the management frame by calling a wifi direct interface; or the first wifi-type smart device by calling The subscribed interface sends the management frame.

本發明還提供了另一種獲取wifi聯網資訊的方法,該方法包括:第二wifi型智慧設備監聽第一wifi型智慧設備發送的管理幀;解析所述管理幀得到wifi聯網資訊。 The present invention also provides another method for obtaining wifi networking information, the method comprising: the second wifi-type smart device listening to a management frame sent by the first wifi-type smart device; and parsing the management frame to obtain wifi networking information.

根據本發明一較佳實施方式,所述管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或beacon幀。 According to a preferred embodiment of the present invention, the management frame includes: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.

根據本發明一較佳實施方式,所述wifi聯網資訊包括特徵碼、SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes a feature code, an SSID, and a password.

根據本發明一較佳實施方式,該方法還包括:如果所述第二wifi型智慧設備從所述管理幀中解析出提供聯網資訊服務的標識,則藉由wifi direct方式與所述第一wifi型智慧設備建立連接,並經由建立的連接接收SSID和密碼。 According to a preferred embodiment of the present invention, the method further includes: if the second wifi-type smart device parses the identifier for providing the networked information service from the management frame, using the wifi direct mode and the first wifi The smart device establishes a connection and receives the SSID and password via the established connection.

根據本發明一較佳實施方式,該方法還包括:所述第二wifi型智慧設備與所述第一wifi型智慧設備藉由wifi direct方式建立連接;所述第二wifi型智慧設備從所述連接建立過程中接收到的管理幀中解析得到所述wifi聯網資訊。 According to a preferred embodiment of the present invention, the method further includes: the second wifi-type smart device and the first wifi-type smart device establish a connection by using a wifi direct mode; the second wifi-type smart device from the The wifi networking information is parsed in the management frame received during the connection establishment process.

根據本發明一較佳實施方式,所述wifi聯網資訊包括:特徵碼、SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes: a feature code, an SSID, and a password.

根據本發明一較佳實施方式,解析所述管理幀得到wifi聯網資訊包括:所述第二wifi型智慧設備確定監聽到的管理幀所包含特徵碼與預設的特徵碼資訊一致的管理幀;按照預先約定的wifi聯網資訊格式,從所述管理幀中解析出SSID和密碼。 According to a preferred embodiment of the present invention, the parsing the management frame to obtain the wifi networking information includes: the second wifi-type smart device determining, by the second wifi-type smart device, a management frame that is consistent with the preset feature code information included in the monitored management frame; The SSID and password are parsed from the management frame according to a pre-agreed wifi networking information format.

根據本發明一較佳實施方式,所述wifi聯網資訊包括:SSID和密碼;解析所述管理幀得到wifi聯網資訊包括:所述第二wifi型智慧設備從所述管理幀的指定擴展欄位中解析出SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes: an SSID and a password; and parsing the management frame to obtain wifi networking information includes: the second wifi-type smart device is from a specified extension field of the management frame Parse out the SSID and password.

根據本發明一較佳實施方式,該方法還包括以下至少 一種:所述第二wifi型智慧設備利用連同所述SSID和密碼一起接收到的校驗資訊,對所述SSID和密碼進行校驗;所述第二wifi型智慧設備利用連同所述SSID和密碼一起接收到的加密資訊,對所述SSID和密碼進行解密;所述第二wifi型智慧設備利用連同所述SSID和密碼一起接收到的路由器認證資訊,向接入的無線路由器發送認證請求。 According to a preferred embodiment of the present invention, the method further includes at least one of the following: the second wifi-type smart device verifies the SSID and the password by using the verification information received together with the SSID and the password; The second wifi-type smart device decrypts the SSID and the password by using the encrypted information received together with the SSID and the password; the second wifi-type smart device is received together with the SSID and the password. The router authentication information sends an authentication request to the accessed wireless router.

根據本發明一較佳實施方式,該方法還包括:所述第二wifi型智慧設備在利用所述SSID和密碼進行網路接入後,向所述第一wifi型智慧設備發送是否成功接入網路的回饋資訊。 According to a preferred embodiment of the present invention, the method further includes: after the network access by using the SSID and the password, the second wifi-type smart device sends whether the first wifi-type smart device successfully accesses Feedback from the web.

本發明還提供了一種發送wifi聯網資訊的裝置,設置於第一wifi型智慧設備,該裝置包括:產生單元,用於產生攜帶wifi聯網資訊的管理幀;第一發送單元,用於發送所述管理幀,以供第二wifi型智慧設備監聽。 The present invention also provides a device for transmitting wifi networking information, which is provided in a first wifi type smart device, the device comprising: a generating unit, configured to generate a management frame carrying wifi networking information; and a first sending unit, configured to send the Manage frames for monitoring by the second wifi-type smart device.

根據本發明一較佳實施方式,所述管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或信標beacon幀。 According to a preferred embodiment of the present invention, the management frame includes: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.

根據本發明一較佳實施方式,所述wifi聯網資訊包括特徵碼、SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes a feature code, an SSID, and a password.

根據本發明一較佳實施方式,所述wifi聯網資訊包 括提供聯網資訊服務的標識;該裝置還包括:連接建立單元,用於藉由wifi direct方式建立所述第一wifi型智慧設備與所述第二wifi型智慧設備之間的連接;第二發送單元,用於經由所述連接發送SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes an identifier for providing a networked information service; the device further includes: a connection establishing unit, configured to establish the first wifi-type smart device by using a wifi direct method a connection between the second wifi type smart devices; a second sending unit, configured to send the SSID and the password via the connection.

根據本發明一較佳實施方式,該裝置還包括:連接建立單元,用於藉由wifi direct方式建立所述第一wifi型智慧設備與所述第二wifi型智慧設備之間的連接;所述攜帶wifi聯網資訊的管理幀為所述連接建立過程中發送的管理幀。 According to a preferred embodiment of the present invention, the device further includes: a connection establishing unit, configured to establish, by using a wifi direct manner, a connection between the first wifi-type smart device and the second wifi-type smart device; The management frame carrying the wifi networking information is a management frame sent during the connection establishment process.

根據本發明一較佳實施方式,所述wifi聯網資訊包括特徵碼、SSID和密碼;所述wifi聯網資訊包括SSID和密碼,所述wifi聯網資訊攜帶在所述管理幀的指定擴展欄位中。 According to a preferred embodiment of the present invention, the wifi networking information includes a feature code, an SSID, and a password; the wifi networking information includes an SSID and a password, and the wifi networking information is carried in a designated extension field of the management frame.

根據本發明一較佳實施方式,連同所述SSID和密碼一起發送的資訊還包括校驗資訊、加密資訊和路由器認證資訊中的至少一種;其中當發送所述加密資訊時,所述SSID和密碼為加密後的資料。 According to a preferred embodiment of the present invention, the information sent together with the SSID and the password further includes at least one of verification information, encryption information, and router authentication information; wherein the SSID and the password are sent when the encrypted information is sent. For encrypted data.

根據本發明一較佳實施方式,該裝置還包括:回饋接收單元,用於接收所述第二wifi型智慧設備 發送的是否成功接入網路的回饋資訊。 According to a preferred embodiment of the present invention, the apparatus further includes: a feedback receiving unit, configured to receive feedback information of whether the second wifi-type smart device successfully accesses the network.

根據本發明一較佳實施方式,所述第一發送單元具體執行:藉由呼叫wifi direct介面發送所述管理幀;或者,藉由呼叫自訂的介面發送所述管理幀。 According to a preferred embodiment of the present invention, the first sending unit specifically performs: sending the management frame by calling a wifi direct interface; or sending the management frame by calling a customized interface.

本發明還提供了另一種獲取wifi聯網資訊的裝置,設置於第二wifi型智慧設備,該裝置包括:監聽單元,用於監聽第一wifi型智慧設備發送的管理幀;解析單元,用於解析所述管理幀得到wifi聯網資訊。 The present invention also provides another device for obtaining wifi networking information, which is provided in a second wifi type smart device, the device comprising: a monitoring unit for monitoring a management frame sent by the first wifi type smart device; and an analyzing unit for parsing The management frame obtains wifi networking information.

根據本發明一較佳實施方式,所述管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或beacon幀。 According to a preferred embodiment of the present invention, the management frame includes: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.

根據本發明一較佳實施方式,所述wifi聯網資訊包括特徵碼、SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes a feature code, an SSID, and a password.

根據本發明一較佳實施方式,該裝置還包括:連接建立單元,如果所述解析單元從所述管理幀中解析出提供聯網資訊服務的標識,則藉由wifi direct方式建立所述第一wifi型智慧設備與所述第二wifi型智慧設備之間的連接;接收單元,用於經由所述連接接收SSID和密碼。 According to a preferred embodiment of the present invention, the apparatus further includes: a connection establishing unit, if the parsing unit parses the identifier for providing the networked information service from the management frame, establishing the first wifi by using a wifi direct method a connection between the smart device and the second wifi smart device; and a receiving unit, configured to receive the SSID and the password via the connection.

根據本發明一較佳實施方式,該裝置還包括:連接建立單元,用於藉由wifi direct方式建立所述第 二wifi型智慧設備與所述第一wifi型智慧設備之間的連接;所述解析單元從所述連接建立過程中監聽到的管理幀中解析得到所述wifi聯網資訊。 According to a preferred embodiment of the present invention, the device further includes: a connection establishing unit, configured to establish, by using a wifi direct manner, a connection between the second wifi-type smart device and the first wifi-type smart device; The parsing unit parses the wifi networking information from the management frame monitored during the connection establishment process.

根據本發明一較佳實施方式,所述wifi聯網資訊包括:特徵碼、SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes: a feature code, an SSID, and a password.

根據本發明一較佳實施方式,所述解析單元,具體用於確定監聽到的管理幀所包含特徵碼與預設的特徵碼資訊一致的管理幀;按照預先約定的wifi聯網資訊格式,從所述管理幀中解析出SSID和密碼。 According to a preferred embodiment of the present invention, the parsing unit is specifically configured to determine a management frame that is consistent with a preset feature code information included in the monitored management frame, and is configured according to a pre-agreed wifi networking information format. The SSID and password are parsed in the management frame.

根據本發明一較佳實施方式,所述wifi聯網資訊包括:SSID和密碼;所述解析單元,具體用於從所述管理幀的指定擴展欄位中解析出SSID和密碼。 According to a preferred embodiment of the present invention, the wifi networking information includes: an SSID and a password; and the parsing unit is specifically configured to parse the SSID and the password from the specified extension field of the management frame.

根據本發明一較佳實施方式,該裝置還包括以下單元中的至少一個:校驗單元,用於利用連同所述SSID和密碼一起接收到的校驗資訊,對所述SSID和密碼進行校驗;解密單元,用於利用連同所述SSID和密碼一起接收到的加密資訊,對所述SSID和密碼進行解密;認證單元,用於利用連同所述SSID和密碼一起接收到的路由器認證資訊,向接入的無線路由器發送認證請求。 According to a preferred embodiment of the present invention, the apparatus further comprises at least one of the following units: a verification unit for verifying the SSID and the password by using the verification information received together with the SSID and the password. a decryption unit for decrypting the SSID and the password by using the encrypted information received together with the SSID and the password; and an authentication unit for utilizing the router authentication information received together with the SSID and the password, The accessed wireless router sends an authentication request.

根據本發明一較佳實施方式,該裝置還包括: 回饋發送單元,用於在所述二wifi型智慧設備利用所述SSID和密碼進行網路接入後,向所述第一wifi型智慧設備發送是否成功接入網路的回饋資訊。 According to a preferred embodiment of the present invention, the apparatus further includes: a feedback sending unit, configured to: after the two wifi-type smart devices use the SSID and the password for network access, to the first wifi-type smart device Send feedback information about whether the network is successfully connected to the network.

由以上技術方案可以看出,本發明藉由管理幀攜帶wifi聯網資訊,管理幀可以攜帶的資料量較大(目前支援攜帶至少32個位元組的資料),需要的發包數量少,相應地,wifi型智慧設備接入網路的延時小,也不需要複雜的容錯演算法,技術複雜度低。並且管理幀也避免了組播資料相容性問題所導致的wifi型智慧設備長時間無法接入網路的情況。 As can be seen from the above technical solution, the present invention carries the wifi networking information through the management frame, and the management frame can carry a large amount of data (currently supporting data carrying at least 32 bytes), and the required number of packets is small, correspondingly The wifi-type smart device has a small delay in accessing the network, and does not require a complicated fault-tolerant algorithm, and has low technical complexity. And the management frame also avoids the situation that the wifi type smart device cannot access the network for a long time caused by the multicast data compatibility problem.

01‧‧‧產生單元 01‧‧‧Generating unit

02‧‧‧第一發送單元 02‧‧‧First sending unit

03‧‧‧連接建立單元 03‧‧‧Connection establishment unit

04‧‧‧第二發送單元 04‧‧‧Second sending unit

05‧‧‧回饋接收單元 05‧‧‧Feedback receiving unit

11‧‧‧監聽單元 11‧‧‧Monitor unit

12‧‧‧解析單元 12‧‧‧ analytical unit

13‧‧‧連接建立單元 13‧‧‧Connection establishment unit

14‧‧‧接收單元 14‧‧‧ receiving unit

15‧‧‧校驗單元 15‧‧‧Check unit

16‧‧‧解密單元 16‧‧‧Decryption unit

17‧‧‧認證單元 17‧‧‧Authorization unit

18‧‧‧回饋發送單元 18‧‧‧Feedback sending unit

圖1為本發明實施例所基於的系統組成示意圖;圖2為本發明實施例提供的第一種方法流程圖;圖3為本發明實施例提供的第二種方法流程圖;圖4為本發明實施例提供的藉由wifi direct技術建立連接的過程示意圖;圖5為本發明實施例提供的第三種方法流程圖;圖6a為本發明實施例提供的設置於第一wifi型智慧設備的第一種裝置結構圖;圖6b為本發明實施例提供的設置於第一wifi型智慧設備的第二種裝置結構圖;圖6c為本發明實施例提供的設置於第一wifi型智慧設備的第三種裝置結構圖; 圖7a為本發明實施例提供的設置於第二wifi型智慧設備的第一種裝置結構圖;圖7b為本發明實施例提供的設置於第二wifi型智慧設備的第二種裝置結構圖;圖7c為本發明實施例提供的設置於第二wifi型智慧設備的第三種裝置結構圖。 1 is a schematic diagram of a system configuration based on an embodiment of the present invention; FIG. 2 is a flowchart of a first method according to an embodiment of the present invention; FIG. 3 is a flowchart of a second method according to an embodiment of the present invention; FIG. 5 is a flowchart of a third method according to an embodiment of the present invention; FIG. 6 is a flowchart of a method for establishing a connection by using a wifi direct technology according to an embodiment of the present invention; FIG. FIG. 6 is a structural diagram of a second device installed in a first wifi-type smart device according to an embodiment of the present invention; FIG. 6c is a schematic diagram of a first wifi-type smart device according to an embodiment of the present invention; FIG. 7 is a structural diagram of a first device installed in a second wifi-type smart device according to an embodiment of the present invention; FIG. 7b is a schematic diagram of a second wifi-type smart device according to an embodiment of the present invention; A second device structure diagram; FIG. 7c is a third device structure diagram of a second wifi type smart device according to an embodiment of the present invention.

為了使本發明的目的、技術方案和優點更加清楚,下面結合附圖和具體實施例對本發明進行詳細描述。 The present invention will be described in detail below with reference to the drawings and specific embodiments.

本發明的核心思想在於,由第一wifi型智慧設備構造攜帶wifi聯網資訊的管理幀,並發送該管理幀,以供第二wifi型智慧設備監聽並從管理幀中解析得到wifi聯網資訊。其中管理幀可以採用但不限於:probe request(探測請求)幀、probe response(探測回應)幀、association request(關聯請求)幀、reassociation request(重新關聯請求)幀、action幀或beacon(信標)幀。 The core idea of the present invention is that a management frame carrying the wifi networking information is constructed by the first wifi-type smart device, and the management frame is sent for the second wifi-type smart device to monitor and parse the wifi networking information from the management frame. The management frame may be, but not limited to, a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon. frame.

圖1為本發明實施例所基於的系統組成示意圖,其中第一wifi型智慧設備可以是諸如智慧手機、平板電腦、筆記本等包含wifi模組且具有輸入裝置的智慧設備,其中輸入裝置可以包括觸控式螢幕、鍵盤、平板等,這些輸入裝置可以方便的進行SSID和密碼等wifi聯網資訊的輸入。第二wifi型智慧設備可以是諸如智慧空調、智慧加濕器、智慧體重計、智慧洗衣機等智慧家居設備,也可以 是諸如wifi型印表機等智慧辦公設備,第二wifi型智慧設備通常包含wifi模組但可以不包含諸如觸控螢幕、鍵盤、平板等輸入裝置。 1 is a schematic structural diagram of a system on which an embodiment of the present invention is based, wherein the first wifi-type smart device may be a smart device including a smart device, a tablet computer, a notebook, and the like, and having an input device, wherein the input device may include a touch Control screens, keyboards, tablets, etc. These input devices can easily input wifi networking information such as SSID and password. The second wifi type smart device may be a smart home device such as a smart air conditioner, a smart humidifier, a smart weight scale, a smart washing machine, or a smart office device such as a wifi type printer, and the second wifi type smart device usually includes The wifi module may not include input devices such as a touch screen, a keyboard, a tablet, and the like.

下面實施例中均以智慧手機作為第一wifi型智慧設備以及智慧家居設備作為第二wifi型智慧設備為例進行描述。 In the following embodiments, the smart phone is used as the first wifi type smart device and the smart home device is taken as the second wifi type smart device as an example.

圖2為本發明實施例提供的第一種方法流程圖,如圖2中所示,該方法可以包括:在201中,智慧家居設備進入監聽狀態。 FIG. 2 is a flowchart of a first method according to an embodiment of the present invention. As shown in FIG. 2, the method may include: in 201, a smart home device enters a listening state.

wifi型智慧家居設備的wifi模組通常都具有兩種模式,一種是監聽(monitor)模式,另一種是固定(station)模式。其中,monitor模式主要用於監聽無線網路內的資料包,station模式是wifi設備聯網(連接路由器)後的工作模式。當智慧家居設備進入monitor模式時,進入監聽狀態。在本發明實施例中,智慧家居設備可以預設處於監聽狀態,也可以由使用者手動將其切換至監聽狀態。 The wifi module of the wifi smart home device usually has two modes, one is a monitor mode and the other is a station mode. Among them, the monitor mode is mainly used to monitor data packets in the wireless network, and the station mode is a working mode after the wifi device is connected to the network (connected to the router). When the smart home device enters the monitor mode, it enters the listening state. In the embodiment of the present invention, the smart home device may be preset to be in a listening state, or may be manually switched to a listening state by a user.

在202中,智慧手機產生攜帶wifi聯網資訊的管理幀,其中wifi聯網資訊包括特徵碼、目標路由器的SSID和密碼等。 In 202, the smart phone generates a management frame carrying wifi networking information, wherein the wifi networking information includes a feature code, an SSID of the target router, and a password.

本步驟中的管理幀可以是probe request幀、probe response幀、action幀或beacon幀等。 The management frame in this step may be a probe request frame, a probe response frame, an action frame, or a beacon frame.

在管理幀中特徵碼、目標路由器的SSID和密碼可以按照預先約定的格式攜帶,其中特徵碼用於表徵該管理幀 攜帶wifi聯網資訊的,目標網路的SSID和密碼是用於智慧終端機設備連接無線路由器以接入目標網路的。 The feature code, the SSID and the password of the target router in the management frame may be carried in a pre-agreed format, wherein the feature code is used to represent that the management frame carries the wifi networking information, and the SSID and password of the target network are used for the smart terminal device. Connect to a wireless router to access the target network.

舉一個例子,例如在管理幀中採用50個位元組連續儲存的方式攜帶特徵碼、SSID和密碼。其中特徵碼假設採用雙方約定的“APCP”標識,其佔用4個位元組,那麼其餘46個位元組用於攜帶SSID和密碼。 As an example, for example, a feature code, an SSID, and a password are carried in a management frame in a manner of continuously storing 50 bytes. The feature code assumes the "APCP" identifier agreed by both parties, which occupies 4 bytes, and the remaining 46 bytes are used to carry the SSID and password.

另外,wifi聯網資訊除了包含特徵碼、SSID和密碼之外,還可以包含校驗資訊、加密資訊和路由器認證資訊中的至少一種。其中校驗資訊用於對wifi聯網資訊進行校驗,加密資訊用於指示加密方式,例如可以採用DES(資料加密標準)、IDEA(國際資料加密演算法)等加密方式,路由器認證資訊可以用於指示接入網路時需要進行的認證類型,例如可以採用WEP(有線等效保密)、WPA(Wi-Fi網路保護訪問)、WPA2等。 In addition, the wifi networking information may include at least one of verification information, encryption information, and router authentication information in addition to the feature code, the SSID, and the password. The verification information is used for verifying the wifi networking information, and the encryption information is used to indicate the encryption method. For example, encryption methods such as DES (Data Encryption Standard) and IDEA (International Data Encryption Algorithm) can be used, and the router authentication information can be used for Indicates the type of authentication that needs to be performed when accessing the network. For example, WEP (Wired Equivalent Privacy), WPA (Wi-Fi Network Protected Access), WPA2, etc. can be used.

再舉一個例子,例如在管理幀中採用50個位元組連續儲存的方式攜帶特徵碼、SSID、密碼和校驗資訊。其中特徵碼假設採用APCP標識,其佔用4個位元組,最後2個位元組用於攜帶校驗碼,其餘44個位元組用於攜帶SSID和密碼。對於其他資訊的攜帶方式與此類似,不再舉例。 As another example, for example, a feature code, an SSID, a password, and a check information are carried in a management frame in a manner of continuously storing 50 bytes. The feature code assumes the APCP identifier, which occupies 4 bytes, the last 2 bytes are used to carry the check code, and the remaining 44 bytes are used to carry the SSID and password. The way other information is carried is similar to this, no longer an example.

為了保證安全,wifi聯網資訊中的SSID和密碼可以進行加密,可以採用預先約定的加密方式,也可以採用wifi聯網資訊所攜帶加密資訊所指示的加密方式。 In order to ensure security, the SSID and password in the wifi networking information can be encrypted, and the pre-agreed encryption method can be used, or the encryption method indicated by the encrypted information carried by the wifi networking information can be used.

在203中,呼叫wifi direct介面發送攜帶wifi聯網資 訊的管理幀。 In 203, the calling wifi direct interface sends a management frame carrying the wifi networking information.

智慧手機可以藉由呼叫wifi direct介面來進行管理幀的發送,目前大多數的智慧手機已經能夠支持wifi direct技術,智慧手機藉由呼叫wifi direct介面就能夠直接進行管理幀的發送。比如在iOS平台中,在iOS7.0以後Apple發佈了一個MultipeerConnectivity.framework框架,主要解決iOS設備間在無網際網路(internet)的情況下點對點通信問題。在這種情況下,本方案就可以利用該框架中發佈服務(MCNearbyServiceAdvertiser或MCAdvertiserAssistant)的API發送攜帶wifi聯網資訊的管理幀。 The smart phone can transmit the management frame by calling the wifi direct interface. At present, most smart phones can support the wifi direct technology, and the smart phone can directly transmit the management frame by calling the wifi direct interface. For example, in the iOS platform, Apple released a MultipeerConnectivity.framework framework after iOS 7.0, which mainly solves the problem of peer-to-peer communication between iOS devices without internet. In this case, the solution can use the API of the publishing service (MCNearbyServiceAdvertiser or MCAdvertiserAssistant) in the framework to send management frames carrying wifi networking information.

如果是自開發的智慧手機,則也可以在開發時進行介面的自訂,經由自訂的介面進行管理幀的發送。 If it is a self-developed smart phone, it is also possible to customize the interface during development and to manage the frame transmission via a customized interface.

上述步驟202和203可以是在用戶觸發下執行的,例如用戶在智慧手機輸入SSID和密碼或者選擇掃描到的SSID並輸入密碼,然後藉由點擊功能按鈕等方式觸發智慧手機執行上述202和203。 The above steps 202 and 203 may be performed under the trigger of the user. For example, the user inputs the SSID and the password on the smart phone or selects the scanned SSID and inputs the password, and then triggers the smart phone to execute the above 202 and 203 by clicking a function button or the like.

另外,上述步驟201也可以在202和203之後執行,也可以與202和203同時執行。例如用戶可以在藉由智慧手機發送攜帶wifi聯網資訊的管理幀的同時或之後,再切換智慧家居設備至監聽狀態。 In addition, the above step 201 may also be performed after 202 and 203, or may be performed simultaneously with 202 and 203. For example, the user can switch the smart home device to the listening state at the same time or after sending the management frame carrying the wifi networking information through the smart phone.

需要說明的是,本發明實施例中,智慧手機發送的管理幀並不需要經由路由器,可以直接利用wifi direct技術直接發送給處於監聽狀態的wifi型智慧設備。 It should be noted that, in the embodiment of the present invention, the management frame sent by the smart phone does not need to be directly sent to the wifi-type smart device in the listening state by using the wifi direct technology.

在204中,智慧家居設備解析監聽到的管理幀,得到wifi聯網資訊。 In 204, the smart home device parses the monitored management frame to obtain wifi networking information.

在本步驟中,可以預先在智慧家居設備中設置特徵碼資訊,智慧家居設備首先確定監聽到的管理幀所包含的特徵碼與預設的特徵碼資訊是否一致,過濾掉不一致的管理幀。對於一致的管理幀,按照預先約定的wifi聯網資訊格式,從管理幀中解析出SSID和密碼。 In this step, the feature code information may be set in the smart home device in advance, and the smart home device first determines whether the feature code included in the monitored management frame is consistent with the preset feature code information, and filters out the inconsistent management frame. For a consistent management frame, the SSID and password are parsed from the management frame according to the pre-agreed wifi networking information format.

例如在智慧家居設備中預設APCP為特徵碼資訊,對於接收到的管理幀所包含的內容與APCP進行比較,確定是否包含APCP,如果不包含,則確定該管理幀不包含wifi聯網資訊;如果包含APCP,則確定該管理幀中包含wifi聯網資訊,可以按照預先約定的wifi聯網資訊格式進行解析,例如從特徵碼資訊接下來的44個位元組中獲取SSID和密碼,並利用再接下來的2個位元組的檢驗碼進行校驗。 For example, in the smart home device, the APCP is preset as the feature code information, and the content included in the received management frame is compared with the APCP to determine whether the APCP is included. If not, it is determined that the management frame does not include the wifi networking information; Including APCP, it is determined that the management frame contains wifi networking information, and can be parsed according to a pre-agreed wifi networking information format, for example, obtaining the SSID and password from the next 44 bytes of the signature information, and using the next The check code of the 2 bytes is checked.

另外,如果SSID和密碼是加密的,則智慧家居設備可以利用預先約定的加密方式或者從wifi聯網資訊中獲取的加密資訊指示的加密方式進行解密,得到解密後的SSID和密碼。 In addition, if the SSID and the password are encrypted, the smart home device can decrypt using the pre-agreed encryption method or the encryption method indicated by the encrypted information obtained from the wifi networking information to obtain the decrypted SSID and password.

藉由這種解析方式,可以使得wifi聯網資訊的攜帶不受限於呼叫的介面,也不受限於所採用的管理幀的具體類型。 With this parsing method, the wifi networking information can be carried without being restricted to the interface of the call, and is not limited to the specific type of management frame used.

在205中,智慧家居設備利用獲取的wifi聯網資訊接入網路。 In 205, the smart home device utilizes the acquired wifi networked information access network.

智慧家居設備利用解析得到的SSID和密碼連接無線路由器從而接入網路,還可以進一步利用從wifi聯網資訊中解析得到的路由器認證資訊,向接入的無線路由器發送認證請求。 The smart home device connects to the wireless router by using the parsed SSID and password to access the network, and can further use the router authentication information parsed from the wifi networking information to send an authentication request to the accessed wireless router.

圖3為本發明實施例提供的第二種方法流程圖,如圖3中所示,該方法可以包括:在301中,智慧家居設備進入監聽狀態。 FIG. 3 is a flowchart of a second method according to an embodiment of the present invention. As shown in FIG. 3, the method may include: in 301, the smart home device enters a listening state.

本步驟與步驟201類似,不再詳述。 This step is similar to step 201 and will not be described in detail.

在302中,智慧手機呼叫wifi direct介面發送攜帶服務標識的管理幀,該服務標識指示提供聯網資訊服務。 In 302, the smart phone calls the wifi direct interface to send a management frame carrying the service identifier, the service identifier indicating that the networked information service is provided.

發送管理幀所呼叫的介面參見圖2中所示步驟203的相關描述,不再贅述。 For the interface that the management frame is sent, refer to the related description of step 203 shown in FIG. 2, and details are not described herein again.

在本步驟中,管理幀可以不攜帶具體的SSID和密碼,而攜帶服務標識,用於指示提供聯網資訊服務。該服務標識可以是特徵碼,也可以是具體的服務名。 In this step, the management frame may not carry a specific SSID and password, but carries a service identifier for indicating that the network information service is provided. The service identifier may be a signature or a specific service name.

同樣,上述步驟301與步驟302之間可以採用任意的先後順序,或者同時執行。 Similarly, the foregoing steps 301 and 302 may be performed in any order, or simultaneously.

在303中,智慧家居設備監聽到包含服務標識的管理幀後,請求連接智慧手機。 In 303, after the smart home device monitors the management frame including the service identifier, it requests to connect to the smart phone.

在304中,智慧手機接受請求與智慧家居設備建立連接。 In 304, the smart phone accepts the request to establish a connection with the smart home device.

智慧家居設備與智慧手機之間藉由wifi direct技術建立連接。下面對藉由wifi direct技術建立連接的過程進行簡單介紹,連接建立如圖4中所示,主要包括以下階段: 發現階段:智慧手機與智慧家居設備均處於監聽狀態,互發probe request幀,該probe request幀中攜帶發送該幀的設備標識,監聽到probe request幀的設備回復probe response幀,該probe response幀中攜帶該幀的設備標識。 The connection between smart home devices and smart phones is established by wifi direct technology. The following is a brief introduction to the process of establishing a connection by using the wifi direct technology. The connection establishment is as shown in FIG. 4, and mainly includes the following stages: The discovery phase: the smart phone and the smart home device are both in the listening state, and the probe request frame is mutually sent. The probe request frame carries the device identifier of the frame, and the device that listens to the probe request frame replies to the probe response frame, where the probe response frame carries the device identifier of the frame.

協商階段:該階段主要是在智慧手機與智慧家居設備之間協商出GO(GroupOwner,組管理員),包括GO negotiation request(GO協商請求)幀、GO negotiation response(GO協商應答)幀以及GO negotiation confirm(GO協商確認)幀。協商出的GO充當類似AP的角色。 Negotiation phase: This phase mainly negotiates the GO (Group Owner) between the smart phone and the smart home device, including the GO negotiation request frame, the GO negotiation response frame, and the GO negotiation. Confirm (GO Negotiation Confirmation) frame. The negotiated GO acts as an AP-like role.

關聯階段:關聯並交換WSC(Wifi Simple Config,wifi配置資訊),其中關聯過程包括association request幀和association response幀。 Association phase: Associate and exchange WSC (Wifi Simple Config, wifi configuration information), where the association process includes an association request frame and an association response frame.

認證階段:協商認證資訊,這裡的認證主要是協商作為GO的設備對另一設備的認證方式,在此處,智慧家居設備和智慧手機之間還可以用於認證對方的身份。 Authentication phase: Negotiate authentication information. The authentication here is mainly to negotiate the authentication method of the device as GO to another device. Here, the smart home device and the smart phone can also be used to authenticate the identity of the other party.

連接階段:藉由交握建立起連接。 Connection phase: The connection is established by the handshake.

在305中,智慧手機經由與智慧家居設備建立的連接發送SSID和密碼。 In 305, the smart phone sends the SSID and password via a connection established with the smart home device.

除了發送SSID和密碼之外,還可以同時發送校驗資訊、加密資訊和路由器認證資訊中的至少一種。其中SSID和密碼可以是加密後的資訊,可以採用預先約定的加密方式,也可以採用wifi聯網資訊所攜帶加密資訊所指示的加密方式。 In addition to sending the SSID and the password, at least one of the verification information, the encryption information, and the router authentication information may be simultaneously transmitted. The SSID and the password may be encrypted information, and may be a pre-agreed encryption method or an encryption method indicated by the encrypted information carried by the wifi networking information.

在306中,智慧家居設備利用接收到的SSID和密碼接入網路。 At 306, the smart home device accesses the network using the received SSID and password.

智慧家居設備利用接收到的SSID和密碼連接無線路由器從而接入網路,還可以進一步利用接收到的路由器認證資訊,向接入的無線路由器發送認證請求。 The smart home device connects to the wireless router by using the received SSID and password to access the network, and can further utilize the received router authentication information to send an authentication request to the accessed wireless router.

在307中,智慧家居設備向智慧手機發送是否成功接入網路的回饋資訊。 In 307, the smart home device sends a feedback message to the smart phone whether it successfully accesses the network.

這種方式下,智慧手機可以獲取到智慧家居設備是否成功接入網路的回饋資訊,如果成功接入網路,則智慧手機可以斷開與智慧家居設備所建立的連接。如果接入網路失敗,則智慧手機可以經由與智慧家居設備建立的連接重新發送SSID和密碼。 In this way, the smart phone can obtain the feedback information of whether the smart home device successfully accesses the network. If the network is successfully accessed, the smart phone can disconnect the connection with the smart home device. If the access network fails, the smartphone can resend the SSID and password via the connection established with the smart home device.

圖5為本發明實施例提供的第三種方法流程圖,如圖5中所示,該方法可以包括:在501中,智慧家居設備與智慧手機藉由wifi direct技術建立連接,藉由連接過程中智慧手機發送的管理幀攜帶wifi聯網資訊。 FIG. 5 is a flowchart of a third method according to an embodiment of the present invention. As shown in FIG. 5, the method may include: in 501, a smart home device and a smart phone establish a connection by using a wifi direct technology, by using a connection process. The management frame sent by the smart phone carries the wifi networking information.

由圖4所示的連接建立過程可以看出,在此過程中智慧手機可能會發送probe request幀、probe response幀、association request幀、reassociation request幀、action幀(在發現階段和協商階段會可選地發送action幀)、beacon幀(交握成功後會發送beacon幀),在本發明實施例中,智慧手機可以藉由這些幀來發送wifi聯網資訊。 It can be seen from the connection establishment process shown in FIG. 4 that the smart phone may send a probe request frame, a probe response frame, an association request frame, a reassociation request frame, and an action frame during the process (optional in the discovery phase and the negotiation phase). In the embodiment of the present invention, the smart phone can send the wifi networking information by using the frame, and the beacon frame is sent (the beacon frame is sent after the handshake is successful).

其中wifi聯網信息的攜帶可以採用但不限於以下兩種方式: The wifi networking information can be carried in, but not limited to, the following two methods:

第一種方式:wifi聯網資訊至少包括特徵碼、SSID和密碼,攜帶方式和圖2所示實施例中方式類似,不再贅述。還可以進一步包括校驗資訊、加密資訊和路由器認證資訊中的至少一種。這種方式下,不用限制wifi聯網資訊在管理幀中的具體欄位,實現比較靈活。 The first mode: the wifi networking information includes at least the feature code, the SSID, and the password. The carrying manner is similar to that in the embodiment shown in FIG. 2, and details are not described herein. It may further include at least one of verification information, encryption information, and router authentication information. In this way, it is not necessary to limit the specific fields of the wifi networking information in the management frame, and the implementation is more flexible.

第二種方式:wifi聯網資訊至少包括SSID和密碼,可以不包括特徵碼,SSID和密碼攜帶在上述管理幀的指定擴展欄位中。也就是說,藉由對管理幀進行欄位擴展,在指定位置攜帶管理幀。同樣,wifi聯網資訊還可以進一步包括校驗資訊、加密資訊和路由器認證資訊中的至少一種。 The second way: the wifi networking information includes at least the SSID and the password, and may not include the signature, and the SSID and the password are carried in the specified extension field of the management frame. That is to say, the management frame is carried at the specified location by performing field extension on the management frame. Similarly, the wifi networking information may further include at least one of verification information, encryption information, and router authentication information.

在502中,智慧家居設備解析監聽到的管理幀,得到wifi聯網資訊。 In 502, the smart home device parses the monitored management frame to obtain wifi networking information.

如果採用上述的第一種方式攜帶wifi聯網資訊,則智慧家居設備首先確定監聽到的管理幀所包含的特徵碼與預設的特徵碼資訊是否一致,過濾掉不一致的管理幀。對於一致的管理幀,按照預先約定的wifi聯網資訊格式,從管理幀中解析出SSID和密碼。 If the wifi networking information is carried in the first manner, the smart home device first determines whether the feature code included in the monitored management frame is consistent with the preset signature information, and filters out the inconsistent management frame. For a consistent management frame, the SSID and password are parsed from the management frame according to the pre-agreed wifi networking information format.

如果採用上述的第二種方式攜帶wifi聯網資訊,則智慧家居設備可以從管理幀的指定擴展欄位中解析出SSID和密碼。 If the wifi networking information is carried in the second manner described above, the smart home device can parse the SSID and the password from the specified extension field of the management frame.

在503中,智慧家居設備利用獲取的wifi聯網資訊 接入網路。 In 503, the smart home device utilizes the acquired wifi networking information to access the network.

在504中,智慧家居設備向智慧手機發送是否成功接入網路的回饋資訊。 In 504, the smart home device sends a feedback message to the smart phone whether the network is successfully accessed.

以上是對本發明所提供方法進行的描述,下面結合實施例對本發明所提供的裝置進行詳細描述。 The above is a description of the method provided by the present invention, and the apparatus provided by the present invention will be described in detail below with reference to the embodiments.

圖6a為本發明實施例提供的一種裝置結構圖,該裝置可以設置於第一wifi型智慧設備,如圖6a中所示,該裝置的各組成單元的主要功能如下:產生單元01負責產生攜帶wifi聯網資訊的管理幀。其中管理幀可以包括但不限於:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或beacon幀。 FIG. 6 is a structural diagram of a device according to an embodiment of the present invention. The device may be disposed on a first wifi-type smart device. As shown in FIG. 6a, the main functions of each component of the device are as follows: the generating unit 01 is responsible for generating a port. Management frame for wifi networking information. The management frame may include, but is not limited to, a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.

第一發送單元02發送管理幀,以供第二wifi型智慧設備監聽。第一發送單元02可以藉由呼叫wifi direct介面發送管理幀,如果是自開發的wifi型智慧設備,也可以藉由呼叫自訂的介面發送管理幀。 The first sending unit 02 sends a management frame for the second wifi type smart device to monitor. The first sending unit 02 can send the management frame by calling the wifi direct interface. If it is a self-developed wifi type smart device, the management frame can also be sent by calling the customized interface.

作為其中一種實現方式,wifi聯網資訊可以包括特徵碼、SSID和密碼,除此之外,還可以包括校驗資訊、加密資訊和路由器認證資訊中的至少一種。該實現方式對應的裝置結構如圖6a中所示。 As an implementation manner, the wifi networking information may include a signature, an SSID, and a password, and may further include at least one of verification information, encryption information, and router authentication information. The device structure corresponding to this implementation is shown in Figure 6a.

在管理幀中特徵碼、目標路由器的SSID和密碼可以按照預先約定的格式攜帶,其中特徵碼用於表徵該管理幀攜帶wifi聯網資訊的,目標網路的SSID和密碼是用於智慧終端機設備連接無線路由器以接入目標網路的。校驗資 訊用於對wifi聯網資訊進行校驗,加密資訊用於指示加密方式,例如可以採用DES、IDEA等加密方式,路由器認證資訊可以用於指示接入網路時需要進行的認證類型,例如可以採用WEP、WPA、WPA2等。 The feature code, the SSID and the password of the target router in the management frame may be carried in a pre-agreed format, wherein the feature code is used to represent that the management frame carries the wifi networking information, and the SSID and password of the target network are used for the smart terminal device. Connect to a wireless router to access the target network. The verification information is used to verify the wifi networking information, and the encryption information is used to indicate the encryption method. For example, encryption methods such as DES and IDEA can be used, and the router authentication information can be used to indicate the type of authentication required to access the network, for example, WEP, WPA, WPA2, etc. can be used.

作為另一種實現方式,wifi聯網資訊包括提供聯網資訊服務的標識。連接建立單元03藉由wifi direct方式建立第一wifi型智慧設備與第二wifi型智慧設備之間的連接。第二發送單元04藉由上述建立的連接發送SSID和密碼。也就是說,第一wifi型智慧設備先藉由管理幀發送服務標識,待收到第二wifi型智慧設備監聽到該服務標識並發送連接請求後,建立連接並經由該連接發送SSID和密碼。該裝置對應的裝置結構可以如圖6b所示。 As another implementation, the wifi networking information includes an identifier for providing a networked information service. The connection establishing unit 03 establishes a connection between the first wifi type smart device and the second wifi type smart device by using the wifi direct method. The second transmitting unit 04 transmits the SSID and the password by the established connection. That is to say, the first wifi-type smart device first sends a service identifier by using a management frame, and after receiving the second wifi-type smart device to listen to the service identifier and send a connection request, establish a connection and send an SSID and a password via the connection. The device structure corresponding to the device can be as shown in Figure 6b.

作為再一種實現方式,連接建立單元03藉由wifi direct方式建立第一wifi型智慧設備與第二wifi型智慧設備之間的連接。上述的第一發送單元02發送的幀是上述連接建立過程中發送的管理幀。該種實現方式的裝置結構可以如圖6c所示。 As another implementation manner, the connection establishing unit 03 establishes a connection between the first wifi type smart device and the second wifi type smart device by using a wifi direct method. The frame transmitted by the first transmitting unit 02 described above is a management frame transmitted in the above connection establishment process. The device structure of this implementation can be as shown in Figure 6c.

對應於這種情況,wifi聯網資訊可以包括特徵碼、SSID和密碼。也可以不包括特徵碼,僅包括SSID和密碼,對於後一種方式,wifi聯網資訊可以攜帶在管理幀的指定擴展欄位中。 Corresponding to this situation, the wifi networking information may include a feature code, an SSID, and a password. It is also possible not to include the feature code, only the SSID and the password. For the latter method, the wifi networking information can be carried in the specified extension field of the management frame.

其中,連同SSID和密碼一起發送的資訊還可以包括校驗資訊、加密資訊和路由器認證資訊中的至少一種。其中當發送加密資訊時,SSID和密碼為加密後的資料。 The information sent together with the SSID and the password may further include at least one of verification information, encryption information, and router authentication information. When the encrypted information is sent, the SSID and the password are the encrypted data.

對於後兩種實現方式,回饋接收單元05負責接收第二wifi型智慧設備發送的是否成功接入網路的回饋資訊。如果成功接入網路,則連接建立單元03可以斷開與智慧家居設備所建立的連接。如果接入網路失敗,則第一發送單元02或第二發送單元04可以經由與智慧家居設備建立的連接重新發送SSID和密碼。 For the latter two implementation manners, the feedback receiving unit 05 is responsible for receiving the feedback information of whether the second wifi type smart device successfully accesses the network. If the network is successfully accessed, the connection establishing unit 03 can disconnect the connection established with the smart home device. If the access network fails, the first sending unit 02 or the second sending unit 04 can resend the SSID and password via the connection established with the smart home device.

圖7a為本發明實施例提供的第二種裝置結構圖,該裝置設置於第二wifi型智慧設備,如圖5中所示,該裝置的各組成單元的主要功能如下: 監聽單元11負責監聽第一wifi型智慧設備發送的管理幀。 FIG. 7a is a structural diagram of a second device according to an embodiment of the present invention. The device is disposed on a second WiFi type smart device. As shown in FIG. 5, the main functions of each component of the device are as follows: The monitoring unit 11 is responsible for monitoring. The management frame sent by the first wifi type smart device.

解析單元12負責解析管理幀,得到wifi聯網資訊。其中,管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或beacon幀。 The parsing unit 12 is responsible for parsing the management frame and obtaining the wifi networking information. The management frame includes: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.

作為其中一種實現方式,解析單元12可以從wifi聯網資訊中解析出特徵碼、SSID和密碼。具體地,解析單元12可以確定監聽到的管理幀所包含特徵碼與預設的特徵碼資訊一致的管理幀;按照預先約定的wifi聯網資訊格式,從管理幀中解析出SSID和密碼。這種實現方式的裝置結構圖如圖7a中所示。 As one of the implementations, the parsing unit 12 can parse the feature code, the SSID, and the password from the wifi networking information. Specifically, the parsing unit 12 may determine a management frame that is consistent with the preset feature code information included in the monitored management frame; and parse the SSID and the password from the management frame according to the pre-agreed wifi networking information format. The structure of the device of this implementation is shown in Figure 7a.

作為另一種實現方式,解析單元12可以從wifi聯網資訊中解析出提供聯網資訊服務的標識,則連接建立單元13藉由wifi direct方式建立第一wifi型智慧設備與第二 wifi型智慧設備之間的連接。該連接建立的請求可以由該連接建立單元13發出。接收單元14經由連接接收SSID和密碼。這種實現方式的裝置結構圖如圖7b中所示。 As another implementation manner, the parsing unit 12 may parse the identifier for providing the networked information service from the wifi networking information, and the connection establishing unit 13 establishes between the first wifi-type smart device and the second wifi-type smart device by using the wifi direct method. Connection. The connection establishment request can be issued by the connection establishing unit 13. The receiving unit 14 receives the SSID and the password via the connection. The structure of the device of this implementation is shown in Figure 7b.

作為再一種實現方式,連接建立單元13藉由wifi direct方式建立第一wifi型智慧設備與第二wifi型智慧設備之間的連接。解析單元12從監聽單元11在該連接建立過程中監聽到的管理幀中解析得到所述wifi聯網資訊。這種實現方式的裝置結構圖如圖7c中所示。 As another implementation manner, the connection establishing unit 13 establishes a connection between the first wifi type smart device and the second wifi type smart device by using a wifi direct method. The parsing unit 12 parses the wifi networking information from the management frame monitored by the intercepting unit 11 during the connection establishment process. The structure of the device of this implementation is shown in Figure 7c.

這種實現方式中,wifi聯網資訊可以包括:特徵碼、SSID和密碼。解析單元12可以確定監聽到的管理幀所包含特徵碼與預設的特徵碼資訊一致的管理幀;按照預先約定的wifi聯網資訊格式,從管理幀中解析出SSID和密碼。 In this implementation manner, the wifi networking information may include: a feature code, an SSID, and a password. The parsing unit 12 may determine a management frame that is consistent with the preset signature information included in the monitored management frame; and parse the SSID and the password from the management frame according to the pre-agreed wifi networking information format.

或者,wifi聯網資訊可以包括:SSID和密碼。解析單元12從管理幀的指定擴展欄位中解析出SSID和密碼。 Alternatively, the wifi networking information may include: an SSID and a password. The parsing unit 12 parses the SSID and the password from the specified extension field of the management frame.

上述三種實現方式中,連同SSID和密碼一起發送的還可以包括但不限於:校驗資訊、加密資訊和路由器認證資訊中的至少一種。 The foregoing three implementation manners, together with the SSID and the password, may also include, but are not limited to, at least one of verification information, encryption information, and router authentication information.

校驗單元15負責利用連同SSID和密碼一起接收到的校驗資訊,對SSID和密碼進行校驗。 The verification unit 15 is responsible for verifying the SSID and the password using the verification information received together with the SSID and the password.

解密單元16負責利用連同SSID和密碼一起接收到的加密資訊,對SSID和密碼進行解密。解密單元16也可以利用預先約定的加密資訊,對SSID和密碼進行解密。 The decryption unit 16 is responsible for decrypting the SSID and the password using the encrypted information received along with the SSID and the password. The decryption unit 16 can also decrypt the SSID and password using pre-agreed encryption information.

認證單元17負責利用連同SSID和密碼一起接收到的 路由器認證資訊,向接入的無線路由器發送認證請求。 The authentication unit 17 is responsible for transmitting an authentication request to the accessed wireless router using the router authentication information received along with the SSID and the password.

在第二wifi型智慧設備的網路接入單元(該單元可以是第二wifi型智慧設備的已有單元,負責利用SSID和密碼連接無線路由器從而接入網路)利用SSID和密碼進行網路接入後,回饋發送單元18負責向第一wifi型智慧設備發送是否成功接入網路的回饋資訊。 In the network access unit of the second wifi type smart device (the unit may be an existing unit of the second wifi type smart device, which is responsible for connecting the wireless router by using the SSID and the password to access the network), using the SSID and the password for the network After the access, the feedback sending unit 18 is responsible for transmitting the feedback information of whether the network is successfully accessed to the first wifi-type smart device.

在本發明所提供的幾個實施例中,應該理解到,所揭露的裝置和方法,可以藉由其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。 In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner.

另外,在本發明各個實施例中的各功能單元可以積集在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元積集在一個單元中。上述積集的單元既可以採用硬體的形式實現,也可以採用硬體加軟體功能單元的形式實現。 In addition, each functional unit in each embodiment of the present invention may be accumulated in one processing unit, or each unit may exist physically separately, or two or more units may be integrated in one unit. The above-mentioned accumulated unit can be realized in the form of a hardware or a hardware plus a soft functional unit.

上述以軟體功能單元的形式實現的積集的單元,可以儲存在一個電腦可讀取儲存媒體中。上述軟體功能單元儲存在一個儲存媒體中,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)或處理器(processor)執行本發明各個實施例所述方法的部分步驟。而前述的儲存媒體包括:USB隨身碟、移動硬碟、唯讀記憶體(Read-Only Memory,ROM)、隨機存取記憶體(Random Access Memory,RAM)、磁碟或者光碟等各 種可以儲存程式碼的媒體。 The above-mentioned unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the embodiments of the present invention. Part of the steps of the method. The foregoing storage media include: USB flash drive, mobile hard disk, Read-Only Memory (ROM), Random Access Memory (RAM), disk or CD-ROM, and other storage programs. Code media.

以上所述僅為本發明的較佳實施例而已,並不用以限制本發明,凡在本發明的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本發明保護的範圍之內。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims (38)

一種發送wifi聯網資訊的方法,其特徵在於,該方法包括:第一wifi型智慧設備產生攜帶wifi聯網資訊的管理幀;發送所述管理幀,以供第二wifi型智慧設備監聽。  A method for transmitting wifi networking information, the method comprising: a first wifi-type smart device generating a management frame carrying wifi networking information; and transmitting the management frame for monitoring by a second wifi-type smart device.   根據申請專利範圍第1項所述的方法,其中,所述管理幀包括:探測請求probe request幀、探測回應probe response幀、關聯請求association request幀、重新關聯請求reassociation request幀、action幀或信標beacon幀。  The method of claim 1, wherein the management frame comprises: a probe request probe request frame, a probe response probe response frame, an association request association request frame, a reassociation request reassociation request frame, an action frame, or a beacon. Beacon frame.   根據申請專利範圍第1項所述的方法,其中,所述wifi聯網資訊包括特徵碼、SSID和密碼。  The method of claim 1, wherein the wifi networking information comprises a feature code, an SSID, and a password.   根據申請專利範圍第1項所述的方法,其中,所述wifi聯網資訊包括提供聯網資訊服務的標識;該方法還包括:所述第一wifi型智慧設備與所述第二wifi型智慧設備藉由wifi direct方式建立連接後,經由建立的連接發送SSID和密碼。  The method of claim 1, wherein the wifi networking information includes an identifier for providing a networked information service; the method further comprising: borrowing, by the first wifi-type smart device and the second wifi-type smart device After the connection is established by wifi direct, the SSID and password are sent via the established connection.   根據申請專利範圍第1項所述的方法,其中,該方法還包括:所述第一wifi型智慧設備與所述第二wifi型智慧設備藉由wifi direct方式建立連接;所述攜帶wifi聯網資訊的管理幀為所述連接建立過程中發送的管理幀。  The method of claim 1, wherein the method further comprises: the first wifi-type smart device and the second wifi-type smart device establish a connection by using a wifi direct method; The management frame is a management frame sent during the connection establishment process.   根據申請專利範圍第1、2或5項所述的方法,其中,所述wifi聯網資訊包括SSID和密碼,所述wifi聯網資訊攜帶在所述管理幀的指定擴展欄位中。  The method of claim 1, 2 or 5, wherein the wifi networking information comprises an SSID and a password, the wifi networking information being carried in a designated extension field of the management frame.   根據申請專利範圍第3或4項所述的方法,其中,連同所述SSID和密碼一起發送的資訊還包括校驗資訊、加密資訊和路由器認證資訊中的至少一種;其中當發送所述加密資訊時,所述SSID和密碼為加密後的資料。  The method of claim 3, wherein the information sent together with the SSID and the password further includes at least one of verification information, encryption information, and router authentication information; wherein the encrypted information is sent The SSID and password are encrypted data.   根據申請專利範圍第4或5項所述的方法,其中,該方法還包括:所述第一wifi型智慧設備接收所述第二wifi型智慧設備發送的是否成功接入網路的回饋資訊。  The method of claim 4, wherein the method further comprises: receiving, by the first wifi-type smart device, feedback information of whether the second wifi-type smart device successfully accesses the network.   根據申請專利範圍第1至5項中任一項所述的方法,其中,發送所述管理幀包括:所述第一wifi型智慧設備經由呼叫wifi direct介面發送所述管理幀;或者,所述第一wifi型智慧設備經由呼叫自訂的介面發送所述管理幀。  The method of any one of claims 1 to 5, wherein the transmitting the management frame comprises: the first wifi-type smart device transmitting the management frame via a call wifi direct interface; or The first wifi-type smart device transmits the management frame via a call-custom interface.   一種獲取wifi聯網資訊的方法,其特徵在於,該方法包括:第二wifi型智慧設備監聽第一wifi型智慧設備發送的管理幀;解析所述管理幀得到wifi聯網資訊。  A method for obtaining wifi networking information, the method comprising: the second wifi-type smart device listening to a management frame sent by the first wifi-type smart device; and parsing the management frame to obtain wifi networking information.   根據申請專利範圍第10項所述的方法,其中, 所述管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或beacon幀。  The method of claim 10, wherein the management frame comprises: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.   根據申請專利範圍第10項所述的方法,其中,所述wifi聯網資訊包括特徵碼、SSID和密碼。  The method of claim 10, wherein the wifi networking information comprises a signature, an SSID, and a password.   根據申請專利範圍第10項所述的方法,其中,該方法還包括:如果所述第二wifi型智慧設備從所述管理幀中解析出提供聯網資訊服務的標識,則藉由wifi direct方式與所述第一wifi型智慧設備建立連接,並經由建立的連接接收SSID和密碼。  The method of claim 10, wherein the method further comprises: if the second wifi-type smart device parses the identifier for providing the networked information service from the management frame, The first wifi-type smart device establishes a connection and receives an SSID and a password via the established connection.   根據申請專利範圍第10項所述的方法,其中,該方法還包括:所述第二wifi型智慧設備與所述第一wifi型智慧設備藉由wifi direct方式建立連接;所述第二wifi型智慧設備從所述連接建立過程中接收到的管理幀中解析得到所述wifi聯網資訊。  The method of claim 10, wherein the method further comprises: the second wifi-type smart device and the first wifi-type smart device establish a connection by a wifi direct method; the second wifi type The smart device parses the wifi networking information from the management frame received during the connection establishment process.   根據申請專利範圍第14項所述的方法,其中,所述wifi聯網資訊包括:特徵碼、SSID和密碼。  The method of claim 14, wherein the wifi networking information comprises: a feature code, an SSID, and a password.   根據申請專利範圍第12或15項所述的方法,其中,解析所述管理幀得到wifi聯網資訊包括:所述第二wifi型智慧設備確定監聽到的管理幀所包含特徵碼與預設的特徵碼資訊一致的管理幀;按照預先約定的wifi聯網資訊格式,從所述管理幀中解析出SSID和密碼。  The method of claim 12, wherein the parsing the management frame to obtain wifi networking information comprises: determining, by the second wifi-type smart device, a feature code and a preset feature included in the monitored management frame. The management information of the code information is consistent; the SSID and the password are parsed from the management frame according to the pre-agreed wifi networking information format.   根據申請專利範圍第14項所述的方法,其中,所述wifi聯網資訊包括:SSID和密碼;解析所述管理幀得到wifi聯網資訊包括:所述第二wifi型智慧設備從所述管理幀的指定擴展欄位中解析出SSID和密碼。  The method of claim 14, wherein the wifi networking information comprises: an SSID and a password; and parsing the management frame to obtain wifi networking information comprises: the second wifi-type smart device from the management frame The SSID and password are resolved in the specified extension field.   根據申請專利範圍第12、13、15或17項所述的方法,其中,該方法還包括以下至少一種:所述第二wifi型智慧設備利用連同所述SSID和密碼一起接收到的校驗資訊,對所述SSID和密碼進行校驗;所述第二wifi型智慧設備利用連同所述SSID和密碼一起接收到的加密資訊,對所述SSID和密碼進行解密;所述第二wifi型智慧設備利用連同所述SSID和密碼一起接收到的路由器認證資訊,向接入的無線路由器發送認證請求。  The method of claim 12, 13, 15, or 17, wherein the method further comprises at least one of the following: the second wifi-type smart device utilizes verification information received along with the SSID and password And verifying, by the second wifi-type smart device, the SSID and the password by using the encrypted information received together with the SSID and the password; the second wifi-type smart device An authentication request is sent to the accessed wireless router using the router authentication information received along with the SSID and password.   根據申請專利範圍第13、14、15或17項所述的方法,其中,該方法還包括:所述第二wifi型智慧設備在利用所述SSID和密碼進行網路接入後,向所述第一wifi型智慧設備發送是否成功接入網路的回饋資訊。  The method of claim 13, wherein the method further comprises: after the network access using the SSID and the password, the second wifi-type smart device is The first wifi type smart device sends feedback information of whether the network successfully accesses the network.   一種發送wifi聯網資訊的裝置,設置於第一wifi型智慧設備,其特徵在於,該裝置包括:產生單元,用於產生攜帶wifi聯網資訊的管理幀;第一發送單元,用於發送所述管理幀,以供第二wifi型智慧設備監聽。  An apparatus for transmitting wifi networking information, configured in a first wifi type smart device, wherein the device comprises: a generating unit, configured to generate a management frame carrying wifi networking information; and a first sending unit, configured to send the management Frame for monitoring by the second wifi type smart device.   根據申請專利範圍第20項所述的裝置,其中,所述管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀或信標beacon幀。  The device of claim 20, wherein the management frame comprises: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.   根據申請專利範圍第20項所述的裝置,其中,所述wifi聯網資訊包括特徵碼、SSID和密碼。  The device of claim 20, wherein the wifi networking information comprises a feature code, an SSID, and a password.   根據申請專利範圍第20項所述的裝置,其中,所述wifi聯網資訊包括提供聯網資訊服務的標識;該裝置還包括:連接建立單元,用於藉由wifi direct方式建立所述第一wifi型智慧設備與所述第二wifi型智慧設備之間的連接;第二發送單元,用於經由所述連接發送SSID和密碼。  The device of claim 20, wherein the wifi networking information includes an identifier for providing a networked information service; the device further comprising: a connection establishing unit, configured to establish the first wifi type by wifi direct a connection between the smart device and the second wifi-type smart device; and a second sending unit, configured to send the SSID and the password via the connection.   根據申請專利範圍第20項所述的裝置,其中,該裝置還包括:連接建立單元,用於藉由wifi direct方式建立所述第一wifi型智慧設備與所述第二wifi型智慧設備之間的連接;所述攜帶wifi聯網資訊的管理幀為所述連接建立過程中發送的管理幀。  The device of claim 20, wherein the device further comprises: a connection establishing unit, configured to establish between the first wifi-type smart device and the second wifi-type smart device by using a wifi direct method The management frame carrying the wifi networking information is a management frame sent during the connection establishment process.   根據申請專利範圍第20、21或24項所述的裝置,其中,所述wifi聯網資訊包括特徵碼、SSID和密碼; 所述wifi聯網資訊包括SSID和密碼,所述wifi聯網資訊攜帶在所述管理幀的指定擴展欄位中。  The device according to claim 20, 21 or 24, wherein the wifi networking information includes a feature code, an SSID, and a password; the wifi networking information includes an SSID and a password, and the wifi networking information is carried in the Manage the specified extension field of the frame.   根據申請專利範圍第22或23項所述的裝置,其中,連同所述SSID和密碼一起發送的資訊還包括校驗資訊、加密資訊和路由器認證資訊中的至少一種;其中當發送所述加密資訊時,所述SSID和密碼為加密後的資料。  The device of claim 22 or 23, wherein the information transmitted together with the SSID and the password further comprises at least one of verification information, encryption information, and router authentication information; wherein when the encrypted information is sent The SSID and password are encrypted data.   根據申請專利範圍第23或24項所述的裝置,其中,該裝置還包括:回饋接收單元,用於接收所述第二wifi型智慧設備發送的是否成功接入網路的回饋資訊。  The device of claim 23 or 24, wherein the device further comprises: a feedback receiving unit, configured to receive feedback information of whether the second wifi-type smart device successfully accesses the network.   根據申請專利範圍第20至24項中任一項所述的裝置,其中,所述第一發送單元具體執行:經由呼叫wifi direct介面發送所述管理幀;或者,經由呼叫自訂的介面發送所述管理幀。  The device according to any one of claims 20 to 24, wherein the first transmitting unit specifically performs: transmitting the management frame via a call wifi direct interface; or sending a message via a call-customized interface The management frame.   一種獲取wifi聯網資訊的裝置,設置於第二wifi型智慧設備,其特徵在於,該裝置包括:監聽單元,用於監聽第一wifi型智慧設備發送的管理幀;解析單元,用於解析所述管理幀得到wifi聯網資訊。  An apparatus for obtaining wifi networking information, configured in a second wifi-type smart device, the device includes: a monitoring unit, configured to monitor a management frame sent by the first wifi-type smart device; and an analyzing unit, configured to parse the Manage frames to get wifi networking information.   根據申請專利範圍第29項所述的裝置,其中,所述管理幀包括:probe request幀、probe response幀、association request幀、reassociation request幀、action幀 或beacon幀。  The device of claim 29, wherein the management frame comprises: a probe request frame, a probe response frame, an association request frame, a reassociation request frame, an action frame, or a beacon frame.   根據申請專利範圍第29項所述的裝置,其中,所述wifi聯網資訊包括特徵碼、SSID和密碼。  The device of claim 29, wherein the wifi networking information comprises a feature code, an SSID, and a password.   根據申請專利範圍第29項所述的裝置,其中,該裝置還包括:連接建立單元,如果所述解析單元從所述管理幀中解析出提供聯網資訊服務的標識,則藉由wifi direct方式建立所述第一wifi型智慧設備與所述第二wifi型智慧設備之間的連接;接收單元,用於經由所述連接接收SSID和密碼。  The device of claim 29, wherein the device further comprises: a connection establishing unit, if the parsing unit parses the identifier for providing the networked information service from the management frame, establishing by using a wifi direct method a connection between the first wifi-type smart device and the second wifi-type smart device; and a receiving unit, configured to receive the SSID and the password via the connection.   根據申請專利範圍第29項所述的裝置,其中,該裝置還包括:連接建立單元,用於藉由wifi direct方式建立所述第二wifi型智慧設備與所述第一wifi型智慧設備之間的連接;所述解析單元從所述連接建立過程中監聽到的管理幀中解析得到所述wifi聯網資訊。  The device of claim 29, wherein the device further comprises: a connection establishing unit, configured to establish between the second wifi-type smart device and the first wifi-type smart device by using a wifi direct method The connection unit parses the wifi networking information from the management frame monitored during the connection establishment process.   根據申請專利範圍第33項所述的裝置,其中,所述wifi聯網資訊包括:特徵碼、SSID和密碼。  The device of claim 33, wherein the wifi networking information comprises: a feature code, an SSID, and a password.   根據申請專利範圍第31或34項所述的裝置,其中,所述解析單元,具體用於確定監聽到的管理幀所包含特徵碼與預設的特徵碼資訊一致的管理幀;按照預先約定的wifi聯網資訊格式,從所述管理幀中解析出SSID和密碼。  The device of claim 31, wherein the parsing unit is configured to determine a management frame that is consistent with a preset feature code information included in the monitored management frame; The wifi networking information format parses the SSID and password from the management frame.   根據申請專利範圍第33項所述的裝置,其中,所述wifi聯網資訊包括:SSID和密碼;所述解析單元,具體用於從所述管理幀的指定擴展欄位中解析出SSID和密碼。  The device of claim 33, wherein the wifi networking information comprises: an SSID and a password; and the parsing unit is configured to parse the SSID and the password from the specified extension field of the management frame.   根據申請專利範圍第31、34、35或36項所述的裝置,其中,該裝置還包括以下單元中的至少一個:校驗單元,用於利用連同所述SSID和密碼一起接收到的校驗資訊,對所述SSID和密碼進行校驗;解密單元,用於利用連同所述SSID和密碼一起接收到的加密資訊,對所述SSID和密碼進行解密;認證單元,用於利用連同所述SSID和密碼一起接收到的路由器認證資訊,向接入的無線路由器發送認證請求。  The apparatus of claim 31, 34, 35 or 36, wherein the apparatus further comprises at least one of the following: a verification unit for utilizing the verification received together with the SSID and the password Information, the SSID and the password are verified; a decryption unit is configured to decrypt the SSID and the password by using the encrypted information received together with the SSID and the password; and an authentication unit for utilizing the SSID The router authentication information received with the password is sent to the accessed wireless router for an authentication request.   根據申請專利範圍第32、33、34或36項所述的裝置,其中,該裝置還包括:回饋發送單元,用於在所述二wifi型智慧設備利用所述SSID和密碼進行網路接入後,向所述第一wifi型智慧設備發送是否成功接入網路的回饋資訊。  The device of claim 32, 33, 34 or 36, wherein the device further comprises: a feedback sending unit, configured to perform network access by using the SSID and password in the two wifi-type smart device Then, sending the feedback information to the first wifi-type smart device whether the network is successfully accessed.  
TW106101948A 2017-01-19 2017-01-19 Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network TW201828756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106101948A TW201828756A (en) 2017-01-19 2017-01-19 Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106101948A TW201828756A (en) 2017-01-19 2017-01-19 Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network

Publications (1)

Publication Number Publication Date
TW201828756A true TW201828756A (en) 2018-08-01

Family

ID=63960390

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106101948A TW201828756A (en) 2017-01-19 2017-01-19 Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network

Country Status (1)

Country Link
TW (1) TW201828756A (en)

Similar Documents

Publication Publication Date Title
WO2017041675A1 (en) Method for sending and acquiring wifi networking information and corresponding apparatus
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
US10848970B2 (en) Network authentication method, and related device and system
JP5281128B2 (en) WI-FI access method, access point, and WI-FI access system
US11917054B2 (en) Network key processing method and system and related device
EP3340690B1 (en) Access method, device and system for user equipment (ue)
US8130635B2 (en) Network access nodes
US10305684B2 (en) Secure connection method for network device, related apparatus, and system
CN107567017B (en) Wireless connection system, device and method
WO2017024579A1 (en) Method, relevant device and system for message protection
CN103945369A (en) Internet access configuration method for WIFI device by checking length of WIFI data packets
KR20160078426A (en) Method and apparatus to identity verification using asymmetric keys in wireless direct communication network
WO2023280194A1 (en) Network connection management method and apparatus, readable medium, program product, and electronic device
WO2018233726A1 (en) Network slice authentication method, corresponding apparatus and system, and medium
KR20160137919A (en) Method and apparatus for providing information
WO2021043095A1 (en) Key generation and terminal provisioning method and apparatus, and devices
JP2020068456A (en) Communication device and computer program for communication device
CN111770588B (en) Method and system for quickly establishing wireless connection with wireless router
CN113301563A (en) Network configuration method, device, equipment and storage medium
WO2014201783A1 (en) Encryption and authentication method, system and terminal for ad hoc network
CN114301967B (en) Control method, device and equipment for narrowband Internet of things
WO2022174652A1 (en) Method and system for automatically discovering network configuration by smart terminal
CN108990052B (en) Method for detecting WPA2 protocol vulnerability
TW201828756A (en) Method and apparatus for transmitting and acquiring wifi networking information reducing the delay and technical complexity of the wifi-type smart devices accessing the network
WO2015042917A1 (en) Wireless secure access method, apparatus and system