本申請的主要目的在於提供一種智慧裝置的連網方法、智慧裝置及移動客戶端,以解決現有技術存在的智慧裝置網路初始化設定操作複雜的問題。 為了解決上述問題,根據本申請實施例提供一種智慧裝置的連網方法,其包括:提供數位物件唯一標識符DOI,其中所述DOI包含智慧裝置的第一連接配置資訊,以使移動客戶端透過掃描所述DOI獲取所述第一連接配置資訊,並根據所述第一連接配置資訊與所述智慧裝置建立第一連接;透過所述第一連接接收所述移動客戶端發送的所述智慧裝置的第二連接設定資訊;根據所述第二連接設定資訊建立第二連接。 其中,還包括:檢測所述智慧裝置是否已建立第二連接,若否則執行所述提供DOI的步驟。 其中,所述第一連接包括:藍牙連接或近距離無線通訊技術連接。 其中,所述第二連接為WiFi連接。 其中,還包括:在智慧裝置的第二連接建立成功後,斷開與所述移動客戶端之間的第一連接。 根據本申請實施例還提供一種智慧裝置的連網方法,其包括:掃描智慧裝置提供的DOI,獲取所述DOI包含的所述智慧裝置的第一連接配置資訊; 根據所述第一連接配置資訊與所述智慧裝置建立第一連接;獲取為所述智慧裝置設定的第二連接設定資訊;透過所述第一連接將所述第二連接設定資訊發送至所述智慧裝置,以使所述智慧裝置根據所述第二連接設定資訊建立第二連接。 其中,所述第一連接包括:藍牙連接或近距離無線通訊技術連接。 其中,所述第二連接為WiFi連接。 其中,還包括:在智慧裝置的第二連接建立成功後,斷開與所述智慧裝置之間的第一連接。 根據本申請實施例還提供一種智慧裝置,其包括:DOI提供單元,用於提供DOI,其中所述DOI包含智慧裝置的第一連接配置資訊,以使移動客戶端透過掃描所述DOI獲取所述第一連接配置資訊,並根據所述第一連接配置資訊與所述智慧裝置建立第一連接;接收單元,用於透過所述第一連接接收所述移動客戶端發送的所述智慧裝置的第二連接設定資訊;第二連接單元,用於根據所述第二連接設定資訊建立第二連接。 其中,還包括:檢測單元,用於檢測所述智慧裝置是否已建立第二連接,若否則由所述DOI提供單元提供DOI。 其中,所述第一連接包括:藍牙連接或近距離無線通訊技術連接。 其中,所述第二連接為WiFi連接。 其中,還包括:第一斷開單元,用於在智慧裝置的第二連接建立成功後,斷開與所述移動客戶端之間的第一連接。 根據本申請實施例還提供一種移動客戶端,其包括:掃描單元,用於掃描智慧裝置提供的DOI,獲取所述DOI包含的智慧裝置的第一連接配置資訊;第一連接單元,用於根據所述第一連接配置資訊與所述智慧裝置建立第一連接;獲取單元,用於獲取為所述智慧裝置設定的第二連接設定資訊;發送單元,用於透過所述第一連接將所述第二連接設定資訊發送至所述智慧裝置,以使所述智慧裝置根據所述第二連接設定資訊建立第二連接。 其中,所述第一連接包括:藍牙連接或近距離無線通訊技術連接。 其中,所述第二連接為WiFi連接。 其中,還包括:第二斷開單元,用於在所述智慧裝置的第二連接建立成功後,斷開與所述智慧裝置之間的第一連接。 根據本申請的技術方案,移動客戶端透過掃描數位物件唯一標識符的方式與智慧裝置自動進行近距離無線通信連接,並透過所述近距離無線通信連接將移動客戶端為智慧裝置設定的WiFi網路設定資訊發送至所述智慧裝置,從而使所述智慧裝置建立WiFi連接,透過本申請極大簡化了智慧裝置的網路初始化設定操作。The main purpose of the present application is to provide a method for connecting a smart device to a network, a smart device and a mobile client, so as to solve the problem of complicated network initialization and setting operation of the smart device in the prior art. In order to solve the above problems, according to an embodiment of the present application, a method for networking a smart device is provided, which includes: providing a digital object unique identifier DOI, wherein the DOI includes the first connection configuration information of the smart device, so that the mobile client can pass Scan the DOI to obtain the first connection configuration information, and establish a first connection with the smart device according to the first connection configuration information; receive the smart device sent by the mobile client through the first connection the second connection setting information; establish a second connection according to the second connection setting information. Among them, it also includes: detecting whether the smart device has established a second connection, and if otherwise, executing the step of providing DOI. Wherein, the first connection includes: Bluetooth connection or short-range wireless communication technology connection. Wherein, the second connection is a WiFi connection. Wherein, it also includes: after the second connection of the smart device is successfully established, disconnecting the first connection with the mobile client. According to an embodiment of the present application, there is also provided a method for networking a smart device, which includes: scanning a DOI provided by a smart device to obtain first connection configuration information of the smart device included in the DOI; according to the first connection configuration information establishing a first connection with the smart device; acquiring second connection setting information set for the smart device; sending the second connection setting information to the smart device through the first connection, so that the smart device The device establishes a second connection according to the second connection setting information. Wherein, the first connection includes: Bluetooth connection or short-range wireless communication technology connection. Wherein, the second connection is a WiFi connection. Wherein, it also includes: after the second connection of the smart device is successfully established, disconnecting the first connection with the smart device. According to an embodiment of the present application, a smart device is further provided, which includes: a DOI providing unit configured to provide a DOI, wherein the DOI includes first connection configuration information of the smart device, so that a mobile client can obtain the DOI by scanning the DOI. a first connection configuration information, and establishes a first connection with the smart device according to the first connection configuration information; a receiving unit is configured to receive the first connection of the smart device sent by the mobile client through the first connection Two connection setting information; a second connection unit for establishing a second connection according to the second connection setting information. Wherein, it also includes: a detection unit for detecting whether the smart device has established a second connection, and if otherwise, the DOI providing unit provides DOI. Wherein, the first connection includes: Bluetooth connection or short-range wireless communication technology connection. Wherein, the second connection is a WiFi connection. Wherein, it also includes: a first disconnecting unit, used for disconnecting the first connection with the mobile client after the second connection of the smart device is successfully established. According to an embodiment of the present application, there is also provided a mobile client, which includes: a scanning unit for scanning a DOI provided by a smart device to obtain first connection configuration information of the smart device included in the DOI; a first connection unit for scanning according to the DOI The first connection configuration information establishes a first connection with the smart device; an acquiring unit is used to acquire second connection setting information set for the smart device; a sending unit is used to send the smart device through the first connection The second connection setting information is sent to the smart device, so that the smart device establishes a second connection according to the second connection setting information. Wherein, the first connection includes: Bluetooth connection or short-range wireless communication technology connection. Wherein, the second connection is a WiFi connection. Wherein, it also includes: a second disconnecting unit, used for disconnecting the first connection with the smart device after the second connection of the smart device is successfully established. According to the technical solution of the present application, the mobile client automatically connects with the smart device by scanning the unique identifier of the digital object, and connects the mobile client to the WiFi network set by the smart device through the short-range wireless communication connection. The network setting information is sent to the smart device, so that the smart device can establish a WiFi connection. Through the present application, the network initialization setting operation of the smart device is greatly simplified.
為使本申請的目的、技術方案和優點更加清楚,下面將結合本申請具體實施例及相應的附圖對本申請技術方案進行清楚、完整地描述。顯然,所描述的實施例僅是本申請一部分實施例,而不是全部的實施例。基於本申請中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本申請保護的範圍。 以下結合附圖,詳細說明本申請各實施例提供的技術方案。 在描述本申請的技術方案之前,首先對根據本申請實施例的應用環境進行簡單描述。具體地,根據本申請實施例的應用環境包括智慧裝置和移動客戶端。其中,所述智慧裝置包括有近距離無線通信模組和WiFi模組,此外還可以包括有顯示螢幕和語音模組。在實際應用中,所述智慧裝置可以是智能機器人或智能音箱等智慧裝置,一般情況下,這些智慧裝置不具有實體或虛擬鍵盤等輸入裝置,因此不能夠透過鍵盤直接設定智慧裝置的WiFi網路環境。 所述移動客戶端至少包括有近距離無線通信模組和WiFi模組,作為指定的客戶端,所述移動終端具備實體或虛擬鍵盤等輸入裝置,用於幫助或替代智慧裝置設定WiFi網路環境。其中,所述移動客戶端可以是智能手機或平板電腦等設備。在本申請的其他實施例中,所述近距離無線通信模組可以是藍牙模組、NFC模組或紅外線模組等,本申請對此不進行限制。 下面參考圖1,圖1是根據本申請一個實施例的連網方法的流程圖,透過在智慧裝置側進行描述。如圖1所示,該連網方法包括: 步驟S102,提供DOI(數位物件唯一標識符),其中所述DOI包含智慧裝置的第一連接配置資訊,以使移動客戶端透過掃描所述DOI獲取所述第一連接配置資訊,並根據所述第一連接配置資訊與所述智慧裝置建立第一連接。 在執行本步驟之前,首先判斷所述智慧裝置是否已建立第二連接,若沒有建立第二連接則執行所述提供二維碼的步驟。在具體實施中,智慧裝置可以具有顯示螢幕等顯示裝置,智慧裝置透過顯示螢幕將其預先儲存的包含有該智慧裝置的第一連接配置資訊的DOI顯示出來,以便指定的移動客戶端透過掃描DOI的方式獲取到所述第一連接配置資訊,從而所述移動客戶端根據所述第一連接配置資訊與智慧裝置建立近距離無線通信連接。其中,所述DOI可以是二維碼或條碼等。 在本申請實施例中,所述第一連接可以是藍牙連接、NFC連接或紅外線連接等近距離無線通信連接。例如,在所述第一連接為藍牙連接的情況下,所述第一連接配置資訊為藍牙配對資訊,所述藍牙配對資訊進一步包含智慧裝置的標識資訊和MAC地址資訊,而並不包含PIN碼(個人識別碼)資訊,也就是說在藍牙配對過程中不需要輸入PIN碼就可以完成配對,這樣能夠簡化藍牙連接建立過程。在本申請的其他實施例中,如果智慧裝置不具有顯示螢幕等顯示裝置,也可以透過將預先獲取的實體二維碼標籤黏貼在智慧裝置表面的方式提供二維碼資訊。 步驟S104,透過所述第一連接接收所述移動客戶端發送的所述智慧裝置的第二連接設定資訊。 在智慧裝置與移動客戶端建立第一連接後,移動客戶端將其預先獲取的所述智慧裝置的第二連接設定資訊,透過第一連接發送至所述智慧裝置。在本申請實施例中,所述第二連接設定資訊為智慧裝置的WiFi網路初始化設定資訊,具體可以包括WiFi網路名稱和密碼等資訊。 步驟S106,根據所述第二連接設定資訊建立第二連接。 透過上述實施例,移動客戶端透過掃描DOI的方式與智慧裝置自動進行第一連接,並透過所述第一連接將移動客戶端為智慧裝置設定的第二網路設定資訊發送至所述智慧裝置,從而使所述智慧裝置建立第二連接。例如,移動客戶端透過掃描二維碼的方式與智慧裝置自動進行藍牙連接,並透過所述藍牙連接將移動客戶端為智慧裝置設定的WiFi網路設定資訊發送至所述智慧裝置,從而使所述智慧裝置建立WiFi連接。 圖2是根據本申請另一實施例的連網方法的流程圖,透過在移動客戶端側進行描述。如圖2所示,該方法包括: 步驟S202,掃描智慧裝置提供的DOI,獲取所述DOI包含的所述智慧裝置的第一連接配置資訊。 移動客戶端啟用掃描程式掃描智慧裝置提供的DOI,解析該DOI獲取其包含的智慧裝置的第一連接配置資訊。下面以第一連接為藍牙連接為例詳細描述本實施例。具體地,所述第一連接配置資訊為藍牙配對資訊,所述藍牙配對資訊進一步包含智慧裝置的標識資訊(ID)和MAC地址資訊,所述藍牙配對資訊中並不包含PIN碼,也就是說在藍牙配對過程中並不需要使用PIN碼資訊。 步驟S204,根據所述第一連接配置資訊與所述智慧裝置建立第一連接。 承上述例子,移動客戶端根據所述藍牙配對資訊中包含的設備ID和MAC地址搜索到智慧裝置,並建立藍牙物理連接。需要說明,在藍牙配對過程中僅需要設備ID和MAC地址、並不需要輸入PIN碼即可完成配對過程,由此極大地簡化了藍牙連接建立步驟。 步驟S206,獲取為所述智慧裝置設定的第二連接設定資訊。 承上述例子,移動客戶端進入智慧裝置的WiFi設定界面,用戶在該WiFi設定界面設定智慧裝置的WiFi設定資訊,例如包括WiFi網路名稱和密碼等資訊。在本申請實施例中,由具備(實體或虛擬)鍵盤輸入裝置的移動客戶端為不具備鍵盤輸入裝置的智慧裝置設定WiFi網路的設定資訊。 步驟S208,透過所述第一連接將所述第二連接設定資訊發送至所述智慧裝置,以使所述智慧裝置根據所述第二連接設定資訊建立第二連接。 承上述例子,移動客戶端透過之前已經建立的藍牙連接將WiFi設定資訊發送至智慧裝置,這樣智慧裝置就能夠根據該WiFi設定資訊建立WiFi連接。在智慧裝置的WiFi連接建立成功後,斷開移動客戶端與智慧裝置之間的藍牙連接。 透過上述實施例,移動客戶端透過掃描DOI的方式與智慧裝置自動進行近距離無線通信連接,並透過所述近距離無線通信連接將移動客戶端為智慧裝置設定的WiFi網路設定資訊發送至所述智慧裝置,從而使所述智慧裝置建立WiFi連接。 下面結合圖3描述上述步驟的具體過程,在本實施例中以DOI為二維碼,第一連接為藍牙連接為例進行描述。如圖3所示,該方法包括: 步驟S302,在智慧裝置首次進行網路設定或初始化時,判斷智慧裝置是否已建立WiFi連接,若沒有建立WiFi連接則繼續執行後續步驟。在具體判斷時,若智慧裝置未開啟WiFi網路(或無線局域網)或未與WiFi網路進行帳戶綁定,則判定智慧裝置未建立WiFi連接。 步驟S304,智慧裝置提供二維碼,其中所述二維碼包含智慧裝置的藍牙配對資訊。如果智慧裝置具有顯示螢幕等顯示裝置,則可以透過顯示螢幕將預先儲存的包含有該智慧裝置的藍牙配對資訊的二維碼顯示出來;若智慧裝置不具有顯示螢幕,則可以透過將預先獲取的實體二維碼標籤黏貼在智慧裝置表面的方式提供二維碼。總而言之,本申請對於智慧裝置提供二維碼的方式不進行限定。 步驟S306,移動客戶端掃描所述二維碼,獲取所述二維碼包含的智慧裝置的藍牙配對資訊。具體地,移動客戶端啟用掃描程式掃描所述二維碼,解析該二維碼獲取到其包含的智慧裝置的藍牙配對資訊。其中,所述藍牙配對資訊中僅包含智慧裝置的標識資訊(ID)和MAC地址資訊,並不包含PIN碼,也就是說在藍牙配對過程中並不需要使用PIN碼資訊。 步驟S308,移動客戶端根據藍牙配對資訊與智慧裝置建立藍牙連接。具體地,移動客戶端和智慧裝置均開啟藍牙功能,移動客戶端根據所述藍牙配對資訊中包含的設備ID和MAC地址搜索到智慧裝置,並建立藍牙物理連接。需要說明的是,在藍牙配對過程中僅需要設備ID和MAC地址、並不需要輸入PIN碼即可完成配對過程,由此實現了快速的藍牙連接。 在實際實施中,當移動客戶端透過掃碼獲取到智慧裝置的藍牙配對資訊後,其後自動進行藍牙配對以及藍牙連接,也就是說,掃描二維碼之後的藍牙配對過程對於用戶來說是無感知的操作,用戶並不需要關心具體的藍牙配對過程是如何進行的。 步驟S310,移動客戶端獲取為所述智慧裝置設定的WiFi設定資訊。具體地,移動客戶端進入智慧裝置的WiFi設定界面,用戶在該WiFi設定界面設定智慧裝置的WiFi設定資訊。所述WiFi設定資訊是指能夠將智慧裝置連接到指定WiFi網路所需的各項資訊,例如可以包括:開啟WiFi網路、選擇WiFi網路、以及設定密碼等資訊。然後,移動客戶端獲取到上述用戶為智慧裝置設定的各項WiFi設定資訊。 步驟S312,移動客戶端透過藍牙連接將所述WiFi設定資訊發送至智慧裝置。 步驟S314,智慧裝置根據所述WiFi設定資訊建立WiFi連接。 步驟S316,斷開移動客戶端與智慧裝置之間的藍牙連接,並且移動客戶端與智慧裝置關閉藍牙功能,本流程結束。 圖4是根據本申請實施例的智慧裝置40的結構框圖,如圖4所示,該智慧裝置40包括: DOI提供單元41,用於提供DOI,其中所述DOI包含智慧裝置的第一連接配置資訊,以使移動客戶端透過掃描所述DOI獲取所述第一連接配置資訊,並根據所述第一連接配置資訊與所述智慧裝置建立第一連接。在實際實施中,智慧裝置可以透過顯示螢幕等顯示裝置將預先儲存的包含有該智慧裝置的第一連接配置資訊的DOI顯示出來;或者還可以透過將預先獲取的實體DOI標籤黏貼在智慧裝置表面的方式提供DOI,本申請對此不進行限制。在本申請實施例中,所述第一連接可以是藍牙連接、NFC連接或紅外線連接等近距離無線通信連接。 接收單元42,用於透過所述第一連接接收所述移動客戶端發送的所述智慧裝置的第二連接設定資訊。在智慧裝置與移動客戶端建立第一連接後,移動客戶端將其預先獲取的所述智慧裝置的第二連接設定資訊,透過第一連接發送至所述智慧裝置。其中,所述第二連接設定資訊為智慧裝置的網路初始化設定資訊。在所述第二連接為WiFi連接的情況下,第二連接設定資訊可以包括WiFi網路名稱和密碼等資訊。 第二連接單元43,用於根據所述第二連接設定資訊建立第二連接。在智慧裝置的第二連接建立成功之後,由斷開單元(未示出)斷開與所述移動客戶端之間的第一連接。 繼續參考圖4,所述智慧裝置40還包括有: 檢測單元44,用於檢測所述智慧裝置是否已建立第二連接,若否則由所述DOI提供單元41提供DOI。 圖5是根據本申請實施例的移動客戶端50的結構框圖,如圖5所示,該移動客戶端50包括: 掃描單元51,用於掃描智慧裝置提供的DOI,獲取所述DOI包含的智慧裝置的第一連接配置資訊。移動客戶端啟用掃描程式掃描智慧裝置提供的DOI,解析該DOI獲取其包含的智慧裝置的第一連接配置資訊。下面以第一連接為藍牙連接為例詳細描述。在所述第一連接為藍牙連接的情況下,所述第一連接配置資訊為藍牙配對資訊,所述藍牙配對資訊中僅包含智慧裝置的標識資訊(ID)和MAC地址資訊,所述藍牙配對資訊中並不包含PIN碼,也就是說在藍牙配對過程中並不需要使用PIN碼資訊。 第一連接單元52,用於根據所述第一連接配置資訊與所述智慧裝置建立第一連接。具體地,移動客戶端根據所述藍牙配對資訊中包含的設備ID和MAC地址搜索到智慧裝置,並建立藍牙物理連接。需要說明,在藍牙配對過程中僅需要設備ID和MAC地址、並不需要輸入PIN碼即可完成配對過程,由此極大地簡化了藍牙連接建立步驟。 獲取單元53,用於獲取為所述智慧裝置設定的第二連接設定資訊。在第二連接為WiFi連接的情況下,移動客戶端進入智慧裝置的WiFi設定界面,用戶在該WiFi設定界面設定智慧裝置的WiFi設定資訊,例如包括WiFi網路名稱和密碼等資訊。在本申請實施例中,由具備(實體或虛擬)鍵盤輸入裝置的移動客戶端為不具備鍵盤輸入裝置的智慧裝置設定WiFi網路的設定資訊。 發送單元54,用於透過所述第一連接將所述第二連接設定資訊發送至所述智慧裝置,以使所述智慧裝置根據所述第二連接設定資訊建立第二連接。移動客戶端透過之前已經建立的藍牙連接將WiFi設定資訊發送至智慧裝置,這樣智慧裝置就能夠根據該WiFi設定資訊建立WiFi連接。在智慧裝置的第二連接建立成功後,由斷開單元(未示出)斷開移動客戶端與智慧裝置之間的第一連接。 本申請的方法的操作步驟與裝置的結構特徵對應,可以相互參照,不再一一贅述。 綜上所示,根據本申請的上述實施例,移動客戶端透過掃描數位物件唯一標識符的方式與智慧裝置自動進行近距離無線通信連接,並透過所述近距離無線通信連接將移動客戶端為智慧裝置設定的WiFi網路設定資訊發送至所述智慧裝置,從而使所述智慧裝置建立WiFi連接,透過本申請極大簡化了智慧裝置的網路初始化設定操作。 本領域內的技術人員應明白,本發明的實施例可提供為方法、系統、或計算機程式產品。因此,本發明可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明可採用在一個或多個其中包含有計算機可用程式代碼的計算機可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的計算機程式產品的形式。 本發明是參照根據本發明實施例的方法、設備(系統)、和計算機程式產品的流程圖和/或方框圖來描述的。應理解可由計算機程式指令實現流程圖和/或方框圖中的每一流程和/或方框、以及流程圖和/或方框圖中的流程和/或方框的結合。可提供這些計算機程式指令到通用計算機、專用計算機、嵌入式處理機或其他可編程資料處理設備的處理器以產生一個機器,使得透過計算機或其他可編程資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的裝置。 這些計算機程式指令也可儲存在能引導計算機或其他可編程資料處理設備以特定方式工作的計算機可讀記憶體中,使得儲存在該計算機可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能。 這些計算機程式指令也可裝載到計算機或其他可編程資料處理設備上,使得在計算機或其他可編程設備上執行一系列操作步驟以產生計算機實現的處理,從而在計算機或其他可編程設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的步驟。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 記憶體可能包括計算機可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是計算機可讀媒體的示例。 計算機可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是計算機可讀指令、資料結構、程式的模組或其他資料。計算機的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁碟儲存或其他磁性儲存設備或任何其他非傳輸媒體,可用於儲存可以被計算設備訪問的資訊。按照本文中的界定,計算機可讀媒體不包括暫存電腦可讀媒體(transitory media),如調製的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 以上所述僅為本申請的實施例而已,並不用於限制本申請。對於本領域技術人員來說,本申請可以有各種更改和變化。凡在本申請的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在本申請的申請專利範圍之內。 In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application. The technical solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings. Before describing the technical solutions of the present application, the application environment according to the embodiments of the present application is briefly described first. Specifically, the application environment according to the embodiment of the present application includes a smart device and a mobile client. The smart device includes a short-range wireless communication module and a WiFi module, and may also include a display screen and a voice module. In practical applications, the smart device may be a smart device such as a smart robot or a smart speaker. Generally, these smart devices do not have input devices such as physical or virtual keyboards, so the WiFi network of the smart device cannot be directly set through the keyboard. surroundings. The mobile client includes at least a short-range wireless communication module and a WiFi module. As a designated client, the mobile terminal has an input device such as a physical or virtual keyboard, which is used to help or replace the smart device to set the WiFi network environment. . Wherein, the mobile client may be a device such as a smart phone or a tablet computer. In other embodiments of the present application, the short-range wireless communication module may be a Bluetooth module, an NFC module, or an infrared module, etc., which is not limited in this application. Referring next to FIG. 1 , FIG. 1 is a flowchart of a networking method according to an embodiment of the present application, which is described on the side of a smart device. As shown in FIG. 1 , the networking method includes: Step S102 , providing a DOI (Digital Object Unique Identifier), wherein the DOI includes the first connection configuration information of the smart device, so that the mobile client can obtain it by scanning the DOI the first connection configuration information, and establish a first connection with the smart device according to the first connection configuration information. Before executing this step, first determine whether the smart device has established a second connection, and if the second connection has not been established, execute the step of providing a two-dimensional code. In a specific implementation, the smart device may have a display device such as a display screen, and the smart device displays the pre-stored DOI containing the first connection configuration information of the smart device through the display screen, so that the designated mobile client can scan the DOI The first connection configuration information is acquired by the method, so that the mobile client establishes a short-range wireless communication connection with the smart device according to the first connection configuration information. Wherein, the DOI may be a two-dimensional code or a barcode or the like. In this embodiment of the present application, the first connection may be a short-range wireless communication connection such as a Bluetooth connection, an NFC connection, or an infrared connection. For example, when the first connection is a Bluetooth connection, the first connection configuration information is Bluetooth pairing information, and the Bluetooth pairing information further includes the identification information and MAC address information of the smart device, but does not include the PIN code (Personal Identification Number) information, which means that the pairing can be completed without entering a PIN code during the Bluetooth pairing process, which simplifies the Bluetooth connection establishment process. In other embodiments of the present application, if the smart device does not have a display device such as a display screen, the two-dimensional code information can also be provided by pasting a pre-acquired physical two-dimensional code label on the surface of the smart device. Step S104, receiving the second connection setting information of the smart device sent by the mobile client through the first connection. After the smart device establishes the first connection with the mobile client, the mobile client sends the second connection setting information of the smart device acquired in advance to the smart device through the first connection. In the embodiment of the present application, the second connection setting information is WiFi network initialization setting information of the smart device, which may specifically include information such as WiFi network name and password. Step S106, establishing a second connection according to the second connection setting information. Through the above embodiment, the mobile client automatically makes a first connection with the smart device by scanning the DOI, and sends the second network setting information set by the mobile client for the smart device to the smart device through the first connection , so that the smart device establishes a second connection. For example, the mobile client automatically performs a Bluetooth connection with the smart device by scanning the QR code, and sends the WiFi network setting information set by the mobile client for the smart device to the smart device through the Bluetooth connection, so that all The smart device establishes a WiFi connection. FIG. 2 is a flowchart of a networking method according to another embodiment of the present application, which is described on the mobile client side. As shown in FIG. 2 , the method includes: Step S202 , scanning a DOI provided by a smart device to obtain first connection configuration information of the smart device included in the DOI. The mobile client activates the scanner to scan the DOI provided by the smart device, and analyzes the DOI to obtain the first connection configuration information of the smart device included in the DOI. The present embodiment is described in detail below by taking the first connection being a Bluetooth connection as an example. Specifically, the first connection configuration information is Bluetooth pairing information, the Bluetooth pairing information further includes identification information (ID) and MAC address information of the smart device, and the Bluetooth pairing information does not include a PIN code, that is, PIN code information is not required during the Bluetooth pairing process. Step S204, establishing a first connection with the smart device according to the first connection configuration information. Following the above example, the mobile client searches for the smart device according to the device ID and MAC address included in the Bluetooth pairing information, and establishes a Bluetooth physical connection. It should be noted that in the Bluetooth pairing process, only the device ID and MAC address are required, and the PIN code is not required to complete the pairing process, which greatly simplifies the steps of establishing a Bluetooth connection. Step S206, acquiring second connection setting information set for the smart device. Following the above example, the mobile client enters the WiFi setting interface of the smart device, and the user sets the WiFi setting information of the smart device on the WiFi setting interface, for example, including information such as WiFi network name and password. In the embodiment of the present application, the setting information of the WiFi network is set for the smart device without the keyboard input device by the mobile client with the (physical or virtual) keyboard input device. Step S208 , sending the second connection setting information to the smart device through the first connection, so that the smart device establishes a second connection according to the second connection setting information. Following the above example, the mobile client sends the WiFi setting information to the smart device through the previously established Bluetooth connection, so that the smart device can establish a WiFi connection according to the WiFi setting information. After the WiFi connection of the smart device is successfully established, the Bluetooth connection between the mobile client and the smart device is disconnected. Through the above-mentioned embodiment, the mobile client automatically connects with the smart device by scanning the DOI, and sends the WiFi network setting information set by the mobile client for the smart device to the smart device through the short-range wireless communication connection. the smart device, so that the smart device can establish a WiFi connection. The specific process of the above steps is described below with reference to FIG. 3 . In this embodiment, DOI is a two-dimensional code and the first connection is a Bluetooth connection as an example for description. As shown in FIG. 3 , the method includes: Step S302 , when the smart device performs network setting or initialization for the first time, it is determined whether the smart device has established a WiFi connection, and if the WiFi connection has not been established, the subsequent steps are continued. In the specific determination, if the smart device has not opened the WiFi network (or wireless local area network) or has not been bound with the WiFi network account, it is determined that the smart device has not established a WiFi connection. Step S304, the smart device provides a two-dimensional code, wherein the two-dimensional code includes the Bluetooth pairing information of the smart device. If the smart device has a display device such as a display screen, the pre-stored QR code containing the Bluetooth pairing information of the smart device can be displayed through the display screen; if the smart device does not have a display screen, the pre-acquired QR code can be displayed on the display screen The QR code is provided by sticking the physical QR code label on the surface of the smart device. All in all, this application does not limit the manner in which the smart device provides the two-dimensional code. Step S306, the mobile client scans the two-dimensional code to obtain the Bluetooth pairing information of the smart device contained in the two-dimensional code. Specifically, the mobile client activates a scanning program to scan the two-dimensional code, and parses the two-dimensional code to obtain the Bluetooth pairing information of the smart device contained in the two-dimensional code. Wherein, the Bluetooth pairing information only includes the identification information (ID) and MAC address information of the smart device, and does not include the PIN code, that is to say, the PIN code information does not need to be used in the Bluetooth pairing process. Step S308, the mobile client establishes a Bluetooth connection with the smart device according to the Bluetooth pairing information. Specifically, both the mobile client and the smart device enable the Bluetooth function, and the mobile client searches for the smart device according to the device ID and MAC address included in the Bluetooth pairing information, and establishes a Bluetooth physical connection. It should be noted that in the Bluetooth pairing process, only the device ID and MAC address are required, and the PIN code is not required to complete the pairing process, thereby realizing a fast Bluetooth connection. In actual implementation, after the mobile client obtains the Bluetooth pairing information of the smart device by scanning the code, it automatically performs Bluetooth pairing and Bluetooth connection. Unaware operation, the user does not need to care how the specific Bluetooth pairing process is performed. Step S310, the mobile client obtains WiFi setting information set for the smart device. Specifically, the mobile client enters the WiFi setting interface of the smart device, and the user sets the WiFi setting information of the smart device on the WiFi setting interface. The WiFi setting information refers to various information required to connect the smart device to a designated WiFi network, for example, it may include information such as: enabling a WiFi network, selecting a WiFi network, and setting a password. Then, the mobile client obtains various WiFi setting information set by the user for the smart device. Step S312, the mobile client sends the WiFi setting information to the smart device through the Bluetooth connection. Step S314, the smart device establishes a WiFi connection according to the WiFi setting information. In step S316, the Bluetooth connection between the mobile client and the smart device is disconnected, and the mobile client and the smart device turn off the Bluetooth function, and the process ends. FIG. 4 is a structural block diagram of a smart device 40 according to an embodiment of the present application. As shown in FIG. 4 , the smart device 40 includes: a DOI providing unit 41 configured to provide a DOI, wherein the DOI includes a first connection of the smart device configuration information, so that the mobile client obtains the first connection configuration information by scanning the DOI, and establishes a first connection with the smart device according to the first connection configuration information. In actual implementation, the smart device can display the pre-stored DOI containing the first connection configuration information of the smart device through a display device such as a display screen; or can also paste the pre-obtained physical DOI label on the surface of the smart device The DOI is provided by the method, which is not limited in this application. In this embodiment of the present application, the first connection may be a short-range wireless communication connection such as a Bluetooth connection, an NFC connection, or an infrared connection. The receiving unit 42 is configured to receive the second connection setting information of the smart device sent by the mobile client through the first connection. After the smart device establishes the first connection with the mobile client, the mobile client sends the second connection setting information of the smart device acquired in advance to the smart device through the first connection. Wherein, the second connection setting information is network initialization setting information of the smart device. When the second connection is a WiFi connection, the second connection setting information may include information such as WiFi network name and password. The second connection unit 43 is configured to establish a second connection according to the second connection setting information. After the second connection of the smart device is successfully established, the first connection with the mobile client is disconnected by a disconnecting unit (not shown). Continuing to refer to FIG. 4 , the smart device 40 further includes: a detection unit 44 for detecting whether the smart device has established a second connection, and if otherwise, the DOI providing unit 41 provides DOI. FIG. 5 is a structural block diagram of a mobile client 50 according to an embodiment of the present application. As shown in FIG. 5 , the mobile client 50 includes: a scanning unit 51, configured to scan the DOI provided by the smart device, and obtain the DOI contained in the DOI. The first connection configuration information of the smart device. The mobile client activates the scanner to scan the DOI provided by the smart device, and analyzes the DOI to obtain the first connection configuration information of the smart device included in the DOI. The following describes in detail by taking the first connection as a Bluetooth connection as an example. In the case where the first connection is a Bluetooth connection, the first connection configuration information is Bluetooth pairing information, the Bluetooth pairing information only includes identification information (ID) and MAC address information of the smart device, and the Bluetooth pairing information The information does not contain a PIN code, which means that the PIN code information is not required during the Bluetooth pairing process. The first connection unit 52 is configured to establish a first connection with the smart device according to the first connection configuration information. Specifically, the mobile client searches for the smart device according to the device ID and MAC address included in the Bluetooth pairing information, and establishes a Bluetooth physical connection. It should be noted that in the Bluetooth pairing process, only the device ID and MAC address are required, and the PIN code is not required to complete the pairing process, which greatly simplifies the steps of establishing a Bluetooth connection. The obtaining unit 53 is configured to obtain the second connection setting information set for the smart device. When the second connection is a WiFi connection, the mobile client enters the WiFi setting interface of the smart device, and the user sets the WiFi setting information of the smart device on the WiFi setting interface, for example, including information such as WiFi network name and password. In the embodiment of the present application, the setting information of the WiFi network is set for the smart device without the keyboard input device by the mobile client with the (physical or virtual) keyboard input device. The sending unit 54 is configured to send the second connection setting information to the smart device through the first connection, so that the smart device establishes a second connection according to the second connection setting information. The mobile client sends the WiFi setting information to the smart device through the previously established Bluetooth connection, so that the smart device can establish a WiFi connection according to the WiFi setting information. After the second connection of the smart device is successfully established, the first connection between the mobile client and the smart device is disconnected by a disconnecting unit (not shown). The operation steps of the method of the present application correspond to the structural features of the apparatus, which can be referred to each other, and will not be repeated one by one. To sum up, according to the above-mentioned embodiments of the present application, the mobile client automatically performs a short-range wireless communication connection with the smart device by scanning the unique identifier of the digital object, and the mobile client is connected to the smart device through the short-range wireless communication connection. The WiFi network setting information set by the smart device is sent to the smart device, so that the smart device can establish a WiFi connection. Through the present application, the network initialization setting operation of the smart device is greatly simplified. As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) having computer-usable program code embodied therein . The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram. These computer program instructions may also be stored in computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, The instruction means implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams. These computer program instructions can also be loaded on a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams. In a typical configuration, a computing device includes one or more processors (CPUs), an input/output interface, a network interface, and memory. Memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in the form of computer-readable media, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of a computer-readable medium. Computer-readable media includes both permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology for storage of information. Information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM) , Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash Memory or Other Memory Technologies, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media that may be used to store information that can be accessed by computing devices. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves. It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element. The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the patent application of this application.