TW202007221A - Network access method and apparatus - Google Patents

Network access method and apparatus Download PDF

Info

Publication number
TW202007221A
TW202007221A TW108115730A TW108115730A TW202007221A TW 202007221 A TW202007221 A TW 202007221A TW 108115730 A TW108115730 A TW 108115730A TW 108115730 A TW108115730 A TW 108115730A TW 202007221 A TW202007221 A TW 202007221A
Authority
TW
Taiwan
Prior art keywords
terminal device
user
connection request
connection
configuration interface
Prior art date
Application number
TW108115730A
Other languages
Chinese (zh)
Other versions
TWI699138B (en
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 香港商阿里巴巴集團服務有限公司
Publication of TW202007221A publication Critical patent/TW202007221A/en
Application granted granted Critical
Publication of TWI699138B publication Critical patent/TWI699138B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Disclosed are a network access method and apparatus. A network access method is applied to an Internet of Things device, and the Internet of Things device supports a terminal STA mode and a wireless Access Point (AP) mode. The method comprises: detecting a WiFi signal in the STA mode, and obtaining the name of the detected WiFi; switching to the AP mode to wait for a connection request, and in the case of receiving the connection request, pushing configuration interface information to a terminal device that initiates the connection request so that the terminal device presents a configuration interface to a user, the configuration interface comprising the name of the detected WiFi and a password input area; obtaining network configuration information inputted by means of the configuration interface, the network configuration information comprising: the name of the WiFi selected by the user, and a password input by the user to access a WiFi network.

Description

網路接入方法及裝置Network access method and device

本說明書實施例涉及網際網路應用技術領域,尤其涉及一種網路接入方法及裝置。The embodiments of the present specification relate to the field of Internet application technologies, and in particular, to a network access method and device.

隨著技術發展,物聯網設備的種類和應用場景越來越多。 用戶在獲得未經配置的物聯網設備後,首先需要對物聯網設備進行網路配置,使設備接入無線網路,而後透過用戶終端、物聯網設備、及服務端之間的互動,實現物聯網設備的認證與連接服務端。 基於現有技術,需要更便利的將物聯網設備接入網路的方案。With the development of technology, there are more and more types and application scenarios of IoT devices. After users obtain unconfigured IoT devices, they first need to configure the IoT devices to make the devices connect to the wireless network, and then through the interaction between the user terminal, IoT devices, and the server, the Authentication and connection server of networked devices. Based on the existing technology, a more convenient solution for connecting IoT devices to the network is needed.

針對上述技術問題,本說明書實施例提供一種網路接入方法及裝置,技術方案如下: 一種網路接入方法,應用於物聯網設備,所述物聯網設備支援終端STA模式與無線接入點AP模式,該方法包括: 以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;所述配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 獲得透過所述配置介面輸入的網路配置資訊,所述網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。 一種網路接入裝置,應用於物聯網設備,所述物聯網設備支援終端STA模式與無線接入點AP模式,該裝置包括: 信號檢測模組,用於以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 資訊推送模組,用於切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;所述配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 資訊獲取模組,用於獲得透過所述配置介面輸入的網路配置資訊,所述網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。 本說明書實施例所提供的技術方案,物聯網設備支援STA(Station,終端)模式及AP(Access Point,接入點)模式,在進入供用戶的終端設備連接的AP模式之前,首先,以STA模式搜索周圍的Wi-Fi信號,然後,在終端設備接入本物聯網設備時,使用戶可以直接選擇需要物聯網設備接入的Wi-Fi名稱並輸入密碼,而不需要用戶在連接物聯網設備時手動打開瀏覽器及配置網頁、並手動輸入Wi-Fi名稱,從而使用戶為物聯網設備配置網路的過程更加便捷,提升體驗感。 應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,並不能限制本說明書實施例。 此外,本說明書實施例中的任一實施例並不需要達到上述的全部效果。In response to the above technical problems, the embodiments of this specification provide a network access method and device. The technical solutions are as follows: A network access method is applied to Internet of Things devices. The Internet of Things devices support terminal STA mode and wireless access point AP mode. The method includes: Detect Wi-Fi signal in STA mode to obtain the name of the detected Wi-Fi; Switch to AP mode to wait for the connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; the configuration interface includes: detection To enter the Wi-Fi name and password input area; Obtain network configuration information input through the configuration interface, the network configuration information includes: a Wi-Fi name selected by the user, and a password input by the user to access the Wi-Fi network. A network access device is applied to an Internet of Things device. The Internet of Things device supports a terminal STA mode and a wireless access point AP mode. The device includes: Signal detection module, used to detect Wi-Fi signals in STA mode to obtain the name of the detected Wi-Fi; Information push module, used to switch to AP mode to wait for a connection request, and push the configuration interface information to the terminal device that initiated the connection request when the connection request is received, so that the terminal device presents the configuration interface to the user; The configuration interface includes: the detected Wi-Fi name and password input area; An information acquisition module for acquiring network configuration information input through the configuration interface, the network configuration information including: a Wi-Fi name selected by the user, and a password input by the user to access the Wi-Fi network . According to the technical solution provided in the embodiment of this specification, the Internet of Things device supports the STA (Station, terminal) mode and the AP (Access Point, access point) mode. Before entering the AP mode for connecting the user's terminal device, first, use the STA Mode to search the surrounding Wi-Fi signals, and then, when the terminal device accesses the IoT device, the user can directly select the Wi-Fi name that needs to be accessed by the IoT device and enter the password, without requiring the user to connect the IoT device When you manually open the browser and configure the web page, and manually enter the Wi-Fi name, the process of configuring the network for the IoT device is more convenient and the user experience is improved. It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the embodiments of the present specification. In addition, any of the embodiments of the present specification does not need to achieve all the above-mentioned effects.

為了使本領域技術人員更好地理解本說明書實施例中的技術方案,下面將結合本說明書實施例中的圖式,對本說明書實施例中的技術方案進行詳細地描述,顯然,所描述的實施例僅僅是本說明書的一部分實施例,而不是全部的實施例。基於本說明書中的實施例,本領域普通技術人員所獲得的所有其他實施例,都應當屬於保護的範圍。 本說明書提供一種應用於物聯網設備的網路接入方法,透過向用戶的終端設備推送配置介面資訊的方式,簡化用戶為物聯網設備配置網路的過程,提升用戶體驗。本說明書中的物聯網設備支援STA(Station,終端)模式及AP(Access Point,接入點)模式,其中,STA模式可以用於搜索周圍的Wi-Fi信號及接入網路,AP模式可以用於與用戶的終端設備建立無線連接。 參見圖1所示,本說明書實施例提供的方法可以包括以下步驟: S101,以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 在本說明書實施例提供的物聯網設備的網路接入方案中,物聯網設備首先進入STA模式,並檢測周圍的Wi-Fi信號,獲得周圍Wi-Fi網路的名稱,一般為SSID(Service Set Identifier,服務集標識),以便後續與用戶的終端設備建立連接、並由用戶進行網路配置時,可以向用戶提供Wi-Fi名稱清單,使用戶可以直接選擇需要本設備接入的Wi-Fi網路,而不需要用戶手動輸入Wi-Fi名稱,從而可以使用戶為本設備配置網路的過程更加便捷。 S102,切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;所述配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 以STA模式完成周圍Wi-Fi信號的檢測後,則切換為AP模式向外部發出Wi-Fi信號,以便用戶可以使用其終端設備接入本設備的Wi-Fi網路,從而實現本設備與該終端設備建立無線連接。 對於用戶側,可以透過多種方式,向進入AP模式的物聯網設備發起連接請求。可以理解的是,用戶的終端設備可以是手機、平板電腦等移動設備,也可以是臺式電腦等常用終端設備,只要具備可以接入Wi-Fi網路從而與物聯網設備建立無線連接的功能,本說明書實施例對具體的終端設備不做限定。下面以用戶的終端設備為手機為例進行說明: 例如,用戶可以直接在手機檢測到的Wi-Fi網路清單中,看到物聯網設備的Wi-Fi網路名稱,並且進一步地,可以直接採用一般的Wi-Fi網路連接方式,選擇物聯網設備的Wi-Fi網路並發起連接。此外,物聯網設備的Wi-Fi網路還可以是採用WPA/WPA2等手段加密的網路,而Wi-Fi網路的名稱和密碼均可以由廠商預先設定並向用戶提供,提供方式可以為印刷在設備下表面等方式,本說明書實施例對此不做限定。如果物聯網設備的Wi-Fi網路採用了加密手段,用戶發起連接時還需要輸入連接認證密碼。 又例如,用戶可以在手機中裝載物聯網設備對應的用戶端,如智慧型手環、智慧型音箱等均可以搭配研發對應的用戶端,以便於用戶使用物聯網設備。如果用戶在手機中裝載了用戶端,則可以透過用戶端發起連接。如,用戶可以透過用戶端查看監測到的Wi-Fi網路,並透過前述類似的方式選擇物聯網設備的Wi-Fi發起連接;又如,用戶端可以根據MAC位址等硬體資訊,識別該物聯網設備的Wi-Fi網路,呈現給用戶選擇是否發起連接;又如,用戶端識別該物聯網設備的Wi-Fi網路可以自動發起連接;等等。 對於用戶側終端設備向物聯網設備發起連接請求的具體方式,本說明書不做限定。 物聯網設備接收到連接請求後,為了確保該連接請求確實由用戶為了配置網路而發起的,而非其他終端設備的誤連接,在向發起該連接請求的終端設備推送配置介面資訊前,物聯網設備還可以進一步地進行連接認證。 在本說明書實施例中,物聯網設備接收到連接請求後,可以首先檢測發起該連接請求的終端設備是否符合預設連接條件;若是,則執行向發起該連接請求的終端設備推送配置介面資訊的步驟;若否,則可以拒絕該連接請求、或返回相應的提示等,本說明書實施例對此不做限定。 例如,可以檢測發起該連接請求的終端設備的信號強度大於預設強度閾值,從而確定該終端設備與本設備的距離是否足夠近,如屬於用戶手持手機面對物聯網設備進行配置時的距離範圍。 又如,可以檢測發起該連接請求的終端設備的發起連接請求的次數大於預設次數閾值。如前面所述,如果經檢測確定該終端設備不符合預設連接條件,則本設備將不會與該終端設備建立無線連接,對應地,用戶側可能會再次透過該終端設備發起連接請求,當某一終端設備重複多次向本物聯網設備發起連接請求,可以認為這些連接請求是由用戶出於配置網路的目的,而刻意反覆透過該終端設備發起的,而非其他終端設備錯誤發起的連接請求。 再例如,可以檢測發起該連接請求的終端設備所發送的連接請求中攜帶預設標識、和/或所發送的連接請求中攜帶正確的連接認證密碼。如前面所述,無論用戶是透過手機自身檢測到的Wi-Fi清單、用戶端提供的Wi-Fi清單或網路、或者其他方式,選擇向物聯網設備的Wi-Fi網路發起連接,均可以在連接時輸入對應的連接認證密碼,因此,物聯網設備接收到連接請求後,可以檢測請求中是否攜帶正確的連接認證密碼,若密碼不正確或未攜帶密碼,則確定不符合預設連接條件。此外,如果用戶是透過用戶端發起的連接請求,則該請求中可以攜帶物聯網設備可以識別的標識,從而確定該請求的來源為對應用戶端。 在本說明書的另一個實施例中,物聯網設備接收到連接請求後,可以向發起該連接請求的終端設備推送連接認證介面資訊,以使該終端設備向用戶呈現連接認證介面;所述連接認證介面用於:供用戶輸入連接認證密碼、和/或確認建立連接的目的;獲得透過所述連接認證介面輸入的連接認證資訊,並在該連接認證資訊符合預設連接條件的情況下,執行向發起該連接請求的終端設備推送配置介面資訊的步驟。 如果透過檢測確定可以與發起該連接請求的終端設備建立連接,則可以進一步地建立連接,具體的過程可以參考相關技術,本說明書在此不做贅述。建立連接後,便可以向該終端設備推送配置介面資訊,以便用戶透過配置頁面直接選擇Wi-Fi網路並輸入連接密碼。向發起該連接請求的終端設備推送配置介面資訊,具體透過多種方式使該終端設備向用戶呈現配置介面。 在本說明書實施例中,可以利用Captive Portal(強制登錄門戶)技術,Captive Portal技術常應用於商業Wi-Fi連接等場景,在用戶的手機等設備向發起網路連接時,由網路運營商或閘道在用戶能夠正常訪問網際網路之前,攔截用戶的請求並將一個強制登錄或認證頁面呈現(通常是透過瀏覽器)給用戶。該頁面可能要求用戶輸入認證資訊、支付、接受某些條款或者其他用戶授權等,隨後用戶才能被授權訪問網際網路。 因此,在本說明書實施例的方案中,可以呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面,例如,可以呼叫該終端設備的瀏覽器,彈出包括檢測到的Wi-Fi網路的清單、以及輸入連接密碼區域的頁面。 當然,彈出Captive Portal時,可以直接呼叫終端設備的瀏覽器,也可以透過該終端設備中預先裝載的用戶端呼叫該終端設備的瀏覽器。 在本說明書的另一個實施例中,如果用戶的終端設備中預先裝載了用戶端,則可以透過該用戶端向用戶呈現配置介面。 只要能夠實現物聯網設備與用戶終端設備建立無線連接後,主動向用戶終端設備推送包括Wi-Fi網路清單的配置介面,以便用戶直接選擇需要物聯網設備接入的Wi-Fi網路,而不必手動輸入Wi-Fi網路名稱,從而使網路配置過程更便捷,本說明書對具體的配置介面推送及呈現方式不做限定。 S103,獲得透過所述配置介面輸入的網路配置資訊,所述網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。 終端設備向用戶呈現配置頁面後,用戶便可以在配置頁面中輸入網路配置資訊,如選擇需要物聯網設備接入的Wi-Fi網路並輸入連接密碼,則物聯網設備可獲得用戶透過配置頁面輸入的網路配置資訊,從而實現用戶透過終端設備與物聯網設備的無線連接,將網路配置資訊發送至物聯網設備的目的。 物聯網設備獲得網路配置資訊後,可以斷開與用戶終端設備的連接,切換到STA模式,根據網路配置資訊接入對應的Wi-Fi網路,具體過程可以參考相關技術,在此不再贅述。 下面結合一個更為具體的實例,對本說明書提供的網路接入方法進行說明。 圖2所示為物聯網設備、用戶終端設備(以手機為例)及待接入Wi-Fi網路的路由器間的互動流程示意圖。 物聯網設備接入電源後,首先進入STA模式,搜索周邊的Wi-Fi信號,獲取周邊Wi-Fi網路清單。 然後物聯網設備切換到AP模式,作為熱點向外發出Wi-Fi信號,並且該Wi-Fi網路具有Captive Portal功能。 用戶打開手機的WLAN功能,並獲得周圍Wi-Fi網路清單,在物聯網設備切換到AP模式後,便可以在清單中看到該物聯網設備的名稱,該名稱與網路接入密碼一同由廠商預先設定,並印刷於物聯網設備下表面。用戶選擇連接該Wi-Fi網路,並輸入連接密碼,用戶手機將攜帶用戶輸入的連接密碼的連接請求,發送至物聯網設備。 物聯網設備接收到該連接請求後,便可以回應該連接請求,從而與用戶手機建立無線連接,從而進一步地透過Captive Portal功能,向用戶手機推送介面配置資訊,透過呼叫瀏覽器使用戶手機彈出Captive Portal頁面,頁面中包括前述物聯網設備以STA模式搜索到的周邊Wi-Fi清單,以及輸入接入該Wi-Fi網路的密碼的區域。 用戶透過手機彈出的Captive Portal頁面,在Wi-Fi清單中選擇需要物聯網設備接入的Wi-Fi網路,並輸入接入該Wi-Fi網路的密碼,還可以在完成輸入後,透過點擊“確定”按鍵觸發網路配置資訊傳輸,則物聯網設備可以透過該Captive Portal頁面獲得用戶輸入的網路配置資訊,即需要接入的Wi-Fi網路名稱及密碼。 物聯網設備獲得需要接入的Wi-Fi網路名稱、密碼後,可以斷開與用戶手機的無線連接,切換到STA模式,從而接入該Wi-Fi網路,完成網路接入。 可見,應用上述方案,用戶將物聯網設備接入網路的整個過程,只需要連接到物聯網設備的Wi-Fi熱點,選擇需要物聯網設備接入的Wi-Fi網路名稱,並輸入連接的密碼,而無需其他操作。因此,本說明書所提供的網路接入方案,可以簡化用戶的操作,提升用戶的使用體驗。 相應於上述方法實施例,本說明書實施例還提供一種網路接入裝置,應用於物聯網設備,所述物聯網設備支援終端STA模式與無線接入點AP模式,參見圖3所示,該裝置可以包括: 信號檢測模組110,用於以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 資訊推送模組120,用於切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;所述配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 資訊獲取模組130,用於獲得透過所述配置介面輸入的網路配置資訊,所述網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。 在本說明書提供的一種具體實施方式中,所述資訊推送模組120在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊前,還用於: 檢測發起該連接請求的終端設備是否符合預設連接條件;若是,則執行向發起該連接請求的終端設備推送配置介面資訊的步驟。 在本說明書提供的一種具體實施方式中,所述預設連接條件包括: 信號強度大於預設強度閾值、發起連接請求的次數大於預設次數閾值、所發送的連接請求中攜帶預設標識、和/或所發送的連接請求中攜帶正確的連接認證密碼。 在本說明書提供的一種具體實施方式中,所述資訊推送模組120在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊前,還用於: 向發起該連接請求的終端設備推送連接認證介面資訊,以使該終端設備向用戶呈現連接認證介面;所述連接認證介面用於:供用戶輸入連接認證密碼、和/或確認建立連接的目的; 獲得透過所述連接認證介面輸入的連接認證資訊,並在該連接認證資訊符合預設連接條件的情況下,執行向發起該連接請求的終端設備推送配置介面資訊的步驟。 在本說明書提供的一種具體實施方式中,所述資訊推送模組120向發起該連接請求的終端設備推送配置介面資訊,具體透過以下方式使該終端設備向用戶呈現配置介面: 呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面; 或者 透過該終端設備中預先裝載的用戶端向用戶呈現配置介面; 或者 透過該終端設備中預先裝載的用戶端呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面。 上述裝置中各個模組的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,在此不再贅述。 本說明書實施例還提供一種電腦設備,其至少包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦程式,其中,處理器執行所述程式時實現前述的網路接入方法。該方法至少包括: 一種網路接入方法,應用於物聯網設備,所述物聯網設備支援終端STA模式與無線接入點AP模式,該方法包括: 以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;所述配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 獲得透過所述配置介面輸入的網路配置資訊,所述網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。 圖4示出了本說明書實施例所提供的一種更為具體的電腦設備硬體結構示意圖,該設備可以包括:處理器1010、記憶體1020、輸入/輸出介面1030、通信介面1040和匯流排1050。其中處理器1010、記憶體1020、輸入/輸出介面1030和通信介面1040透過匯流排1050實現彼此之間在設備內部的通信連接。 處理器1010可以採用通用的CPU(Central Processing Unit,中央處理器)、微處理器、應用專用積體電路(Application Specific Integrated Circuit,ASIC)、或者一個或多個積體電路等方式實現,用於執行相關程式,以實現本說明書實施例所提供的技術方案。 記憶體1020可以採用ROM(Read Only Memory,唯讀記憶體)、RAM(Random Access Memory,隨機存取記憶體)、靜態存放裝置,動態儲存裝置設備等形式實現。記憶體1020可以儲存作業系統和其他應用程式,在透過軟體或者韌體來實現本說明書實施例所提供的技術方案時,相關的程式碼保存在記憶體1020中,並由處理器1010來呼叫執行。 輸入/輸出介面1030用於連接輸入/輸出模組,以實現資訊輸入及輸出。輸入輸出/模組可以作為元件配置在設備中(圖中未示出),也可以外接於設備以提供相應功能。其中輸入裝置可以包括鍵盤、滑鼠、觸控式螢幕、麥克風、各類感測器等,輸出設備可以包括顯示器、揚聲器、振動器、指示燈等。 通信介面1040用於連接通信模組(圖中未示出),以實現本設備與其他設備的通信互動。其中通信模組可以透過有線方式(例如USB、網線等)實現通信,也可以透過無線方式(例如行動網路、WIFI、藍牙等)實現通信。 匯流排1050包括一通路,在設備的各個元件(例如處理器1010、記憶體1020、輸入/輸出介面1030和通信介面1040)之間傳輸資訊。 需要說明的是,儘管上述設備僅示出了處理器1010、記憶體1020、輸入/輸出介面1030、通信介面1040以及匯流排1050,但是在具體實施過程中,該設備還可以包括實現正常運行所必需的其他元件。此外,本領域的技術人員可以理解的是,上述設備中也可以僅包含實現本說明書實施例方案所必需的組件,而不必包含圖中所示的全部元件。 本說明書實施例還提供一種電腦可讀儲存媒體,其上儲存有電腦程式,該程式被處理器執行時實現前述的網路接入方法。該方法至少包括: 一種網路接入方法,應用於物聯網設備,所述物聯網設備支援終端STA模式與無線接入點AP模式,該方法包括: 以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;所述配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 獲得透過所述配置介面輸入的網路配置資訊,所述網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。 電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被電腦設備訪問的資訊。按照本文中的界定,電腦可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 透過以上的實施方式的描述可知,本領域的技術人員可以清楚地瞭解到本說明書實施例可借助軟體加必需的通用硬體平臺的方式來實現。基於這樣的理解,本說明書實施例的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品可以儲存在儲存媒體中,如ROM/RAM、磁碟、光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本說明書實施例各個實施例或者實施例的某些部分所述的方法。 上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、行動電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。 本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於裝置實施例而言,由於其基本相似於方法實施例,所以描述得比較簡單,相關之處參見方法實施例的部分說明即可。以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的模組可以是或者也可以不是實體上分開的,在實施本說明書實施例方案時可以把各模組的功能在同一個或多個軟體和/或硬體中實現。也可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。 以上所述僅是本說明書實施例的具體實施方式,應當指出,對於本技術領域的普通技術人員來說,在不脫離本說明書實施例原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本說明書實施例的保護範圍。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail in conjunction with the drawings in the embodiments of the present specification. Obviously, the described implementation Examples are only a part of the embodiments of this specification, but not all the embodiments. Based on the embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art should fall within the scope of protection. This specification provides a network access method applied to Internet of Things devices. By pushing the configuration interface information to the user's terminal device, the user simplifies the process of configuring the network for the Internet of Things devices and improves the user experience. The IoT devices in this manual support STA (Station, terminal) mode and AP (Access Point, access point) mode, where STA mode can be used to search for surrounding Wi-Fi signals and access to the network, AP mode can It is used to establish a wireless connection with a user's terminal device. Referring to FIG. 1, the method provided by the embodiment of the present specification may include the following steps: S101. Detect the Wi-Fi signal in the STA mode to obtain the name of the detected Wi-Fi; In the network access solution of the IoT device provided in the embodiment of the present specification, the IoT device first enters the STA mode and detects the surrounding Wi-Fi signals to obtain the name of the surrounding Wi-Fi network, which is generally SSID (Service Set Identifier), in order to establish a connection with the user’s terminal device and configure the network by the user, the Wi-Fi name list can be provided to the user so that the user can directly select the Wi-Fi that needs to be accessed by the device The Fi network does not require the user to manually enter the Wi-Fi name, which can make the process of configuring the network for the device more convenient. S102, switch to the AP mode to wait for the connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; the configuration interface includes : Input area of detected Wi-Fi name and password; After detecting the surrounding Wi-Fi signals in STA mode, switch to AP mode to send out Wi-Fi signals to the outside, so that users can use their terminal devices to access the Wi-Fi network of the device, so that the device and the The terminal device establishes a wireless connection. For the user side, there can be multiple ways to initiate a connection request to the IoT device that enters the AP mode. It can be understood that the user's terminal device can be a mobile device such as a mobile phone, a tablet computer, or a common terminal device such as a desktop computer, as long as it has the function of being able to access the Wi-Fi network to establish a wireless connection with the Internet of Things device In this embodiment of the specification, specific terminal devices are not limited. The following uses the user's terminal device as a mobile phone as an example: For example, the user can directly see the Wi-Fi network name of the IoT device in the Wi-Fi network list detected by the mobile phone, and further, can directly use the general Wi-Fi network connection method to select the object Wi-Fi network of networked devices and initiate connections. In addition, the Wi-Fi network of the IoT device can also be a network encrypted by means such as WPA/WPA2, and the name and password of the Wi-Fi network can be preset by the manufacturer and provided to the user. The method of printing on the lower surface of the device is not limited in the embodiment of this specification. If the Wi-Fi network of the IoT device uses encryption, the user needs to enter the connection authentication password when initiating the connection. For another example, a user can load a user terminal corresponding to an IoT device in a mobile phone, such as a smart bracelet, a smart speaker, etc., and can develop a corresponding user terminal to facilitate users to use the IoT device. If the user loads the user terminal in the mobile phone, the user can initiate the connection through the user terminal. For example, the user can view the monitored Wi-Fi network through the client, and select the Wi-Fi of the IoT device to initiate the connection in a similar manner as described above; in another example, the client can identify based on hardware information such as MAC address The Wi-Fi network of the IoT device is presented to the user to select whether to initiate the connection; for another example, the user terminal recognizes that the Wi-Fi network of the IoT device can automatically initiate the connection; and so on. The specific manner in which the user-side terminal device initiates a connection request to the Internet of Things device is not limited in this specification. After the IoT device receives the connection request, in order to ensure that the connection request is indeed initiated by the user for configuring the network, rather than the misconnection of other terminal devices, before pushing the configuration interface information to the terminal device that initiated the connection request, Networked devices can further perform connection authentication. In the embodiment of the present specification, after receiving the connection request, the Internet of Things device may first detect whether the terminal device initiating the connection request meets the preset connection conditions; if it is, execute the configuration interface information push to the terminal device initiating the connection request Step; if not, you can reject the connection request, or return the corresponding prompt, etc. This embodiment of the specification does not limit this. For example, it can detect that the signal strength of the terminal device that initiated the connection request is greater than a preset strength threshold, to determine whether the distance between the terminal device and the device is close enough, such as the distance range when the user holds the mobile phone to configure the IoT device . For another example, it can be detected that the number of times that the terminal device that initiated the connection request initiated the connection request is greater than a preset threshold. As mentioned above, if it is determined after testing that the terminal device does not meet the preset connection conditions, the device will not establish a wireless connection with the terminal device. Correspondingly, the user side may initiate a connection request through the terminal device again. A terminal device repeatedly initiates connection requests to the IoT device multiple times. It can be considered that these connection requests are intentionally and repeatedly initiated by the user through the terminal device for the purpose of configuring the network, rather than the connection initiated by other terminal devices by mistake request. For another example, it may be detected that the connection request sent by the terminal device that initiated the connection request carries the preset identifier, and/or the sent connection request carries the correct connection authentication password. As mentioned above, regardless of whether the user chooses to initiate a connection to the Wi-Fi network of the IoT device through the Wi-Fi list detected by the mobile phone itself, the Wi-Fi list or network provided by the client, or other methods You can enter the corresponding connection authentication password when connecting. Therefore, after receiving the connection request, the IoT device can detect whether the request carries the correct connection authentication password. If the password is incorrect or does not carry the password, it is determined that the preset connection is not met. condition. In addition, if the user initiates a connection request through the user terminal, the request may carry an identification that can be recognized by the IoT device, thereby determining that the source of the request is the corresponding user terminal. In another embodiment of the present specification, after receiving the connection request, the IoT device may push the connection authentication interface information to the terminal device that initiated the connection request, so that the terminal device presents the connection authentication interface to the user; the connection authentication The interface is used for: the user to input the connection authentication password and/or to confirm the purpose of establishing the connection; to obtain the connection authentication information input through the connection authentication interface, and when the connection authentication information meets the preset connection conditions, execute the The terminal device that initiates the connection request pushes the configuration interface information. If it is determined through detection that a connection can be established with the terminal device that initiated the connection request, the connection can be further established. For a specific process, reference may be made to related technologies, and details are not repeated herein. After the connection is established, the configuration interface information can be pushed to the terminal device, so that the user can directly select the Wi-Fi network through the configuration page and enter the connection password. The configuration interface information is pushed to the terminal device that initiated the connection request, and the terminal device is presented with the configuration interface to the user through various methods. In the embodiment of this specification, Captive Portal (forced login portal) technology can be used. Captive Portal technology is often used in scenarios such as commercial Wi-Fi connection. When a user’s mobile phone or other device initiates a network connection, the network operator Or gateway before the user can access the Internet normally, intercept the user's request and present a mandatory login or authentication page (usually through a browser) to the user. This page may require users to enter authentication information, payment, acceptance of certain terms or other user authorization, etc., before the user can be authorized to access the Internet. Therefore, in the solution of the embodiment of the present specification, the browser of the terminal device may be called to present the configuration interface to the user through the browser page, for example, the browser of the terminal device may be called, and the detected Wi-Fi pop-up The list of networks and the page for entering the connection password area. Of course, when the Captive Portal pops up, you can call the browser of the terminal device directly, or you can call the browser of the terminal device through the user terminal preloaded in the terminal device. In another embodiment of the present specification, if the user terminal is preloaded in the user's terminal device, the configuration interface can be presented to the user through the user terminal. As long as the IoT device can establish a wireless connection with the user terminal device, it actively pushes the configuration interface including the Wi-Fi network list to the user terminal device, so that the user can directly select the Wi-Fi network that needs the IoT device to access, and There is no need to manually enter the Wi-Fi network name, so that the network configuration process is more convenient. This manual does not limit the specific configuration interface push and presentation methods. S103. Obtain network configuration information input through the configuration interface, where the network configuration information includes: a Wi-Fi name selected by the user, and a password input by the user to access the Wi-Fi network. After the terminal device presents the configuration page to the user, the user can enter the network configuration information in the configuration page. For example, if the Wi-Fi network that needs the IoT device to access and enter the connection password, the IoT device can obtain the user through the configuration The network configuration information entered on the page enables the user to send the network configuration information to the IoT device through the wireless connection between the terminal device and the IoT device. After the IoT device obtains the network configuration information, it can disconnect from the user terminal device, switch to the STA mode, and access the corresponding Wi-Fi network according to the network configuration information. For the specific process, please refer to the relevant technology. Repeat again. The following describes the network access method provided in this specification in conjunction with a more specific example. FIG. 2 is a schematic diagram of an interaction process between an Internet of Things device, a user terminal device (taking a mobile phone as an example), and a router to be connected to a Wi-Fi network. After the IoT device is connected to the power supply, it first enters the STA mode, searches the surrounding Wi-Fi signals, and obtains a list of surrounding Wi-Fi networks. Then the IoT device switches to AP mode, sends out Wi-Fi signals as a hotspot, and the Wi-Fi network has Captive Portal function. The user turns on the WLAN function of the mobile phone and obtains a list of surrounding Wi-Fi networks. After the IoT device is switched to the AP mode, the name of the IoT device can be seen in the list, along with the network access password It is preset by the manufacturer and printed on the lower surface of the IoT device. The user chooses to connect to the Wi-Fi network and enters the connection password, and the user's mobile phone sends a connection request with the connection password entered by the user to the Internet of Things device. After receiving the connection request, the IoT device can respond to the connection request, thereby establishing a wireless connection with the user's mobile phone, and further push the interface configuration information to the user's mobile phone through the Captive Portal function, and make the user's mobile phone pop up the Captive by calling the browser Portal page, the page includes the peripheral Wi-Fi list searched by the aforementioned IoT device in STA mode, and an area for entering a password to access the Wi-Fi network. The user selects the Wi-Fi network that the IoT device needs to access from the Wi-Fi list on the Captive Portal page popped up on the mobile phone, and enters the password for accessing the Wi-Fi network. Click the "OK" button to trigger the transmission of network configuration information, and the IoT device can obtain the network configuration information entered by the user through the Captive Portal page, that is, the Wi-Fi network name and password to be accessed. After the IoT device obtains the name and password of the Wi-Fi network to be accessed, it can disconnect the wireless connection with the user's mobile phone and switch to the STA mode to access the Wi-Fi network to complete the network access. It can be seen that using the above solution, the user only needs to connect to the Wi-Fi hotspot of the IoT device during the entire process of connecting the IoT device to the network, select the name of the Wi-Fi network that needs the IoT device to access, and enter the connection Password without any other operation. Therefore, the network access solution provided in this manual can simplify the user's operation and enhance the user's experience. Corresponding to the above method embodiment, an embodiment of the present specification also provides a network access device, which is applied to an Internet of Things device, and the Internet of Things device supports a terminal STA mode and a wireless access point AP mode, as shown in FIG. 3, the The device may include: The signal detection module 110 is used to detect the Wi-Fi signal in the STA mode to obtain the name of the detected Wi-Fi; The information push module 120 is used to switch to the AP mode to wait for the connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; The configuration interface includes: the detected Wi-Fi name and password input area; The information acquisition module 130 is used to obtain network configuration information input through the configuration interface, the network configuration information includes: a Wi-Fi name selected by the user, and a user input to access the Wi-Fi network password. In a specific embodiment provided in this specification, the information push module 120, when receiving a connection request, is also used to: before pushing the configuration interface information to the terminal device that initiated the connection request: Detect whether the terminal device initiating the connection request meets the preset connection conditions; if it is, execute the step of pushing the configuration interface information to the terminal device initiating the connection request. In a specific embodiment provided in this specification, the preset connection condition includes: The signal strength is greater than the preset strength threshold, the number of times the connection request is initiated is greater than the preset number of thresholds, the sent connection request carries a preset identifier, and/or the sent connection request carries the correct connection authentication password. In a specific embodiment provided in this specification, the information push module 120, when receiving a connection request, is also used to: before pushing the configuration interface information to the terminal device that initiated the connection request: Push the connection authentication interface information to the terminal device that initiated the connection request, so that the terminal device presents the connection authentication interface to the user; the connection authentication interface is used for: the user to enter the connection authentication password and/or confirm the purpose of establishing the connection; Obtain the connection authentication information input through the connection authentication interface, and execute the step of pushing the configuration interface information to the terminal device that initiated the connection request if the connection authentication information meets the preset connection condition. In a specific embodiment provided by the present specification, the information pushing module 120 pushes the configuration interface information to the terminal device that initiated the connection request, and specifically causes the terminal device to present the configuration interface to the user through the following methods: Call the browser of the terminal device to present the configuration interface to the user through the browser page; or Present the configuration interface to the user through the user terminal pre-loaded in the terminal device; or Call the browser of the terminal device through the user terminal preloaded in the terminal device to present the configuration interface to the user through the browser page. For the implementation process of the functions and functions of each module in the above device, please refer to the implementation process of the corresponding steps in the above method for details, which will not be repeated here. Embodiments of the present specification also provide a computer device, which includes at least a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the program to implement the aforementioned network connection入方法。 Entry method. The method includes at least: A network access method is applied to Internet of Things devices. The Internet of Things devices support terminal STA mode and wireless access point AP mode. The method includes: Detect Wi-Fi signal in STA mode to obtain the name of the detected Wi-Fi; Switch to AP mode to wait for the connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; the configuration interface includes: detection To enter the Wi-Fi name and password input area; Obtain network configuration information input through the configuration interface, the network configuration information includes: a Wi-Fi name selected by the user, and a password input by the user to access the Wi-Fi network. 4 shows a schematic diagram of a more specific hardware structure of a computer device provided by an embodiment of the present specification. The device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050 . Among them, the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040 realize the communication connection among the devices through the bus 1050. The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits, etc., for Execute relevant programs to realize the technical solutions provided by the embodiments of this specification. The memory 1020 may be implemented in the form of ROM (Read Only Memory, read only memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solution provided by the embodiments of the present specification is implemented through software or firmware, the related program code is stored in the memory 1020 and is called and executed by the processor 1010. . The input/output interface 1030 is used to connect input/output modules to realize information input and output. The input/output/module can be configured as a component in the device (not shown in the figure), or can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, and an indicator light. The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through wired methods (such as USB, network cable, etc.), and can also realize communication through wireless methods (such as mobile network, WIFI, Bluetooth, etc.). The bus 1050 includes a path for transmitting information between various components of the device (such as the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040). It should be noted that although the above device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040, and the bus 1050, in the specific implementation process, the device may also include Other necessary components. In addition, those skilled in the art may understand that the above-mentioned device may also include only the components necessary to implement the embodiments of the present specification, rather than including all the elements shown in the figures. The embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the aforementioned network access method is realized. The method includes at least: A network access method is applied to Internet of Things devices. The Internet of Things devices support terminal STA mode and wireless access point AP mode. The method includes: Detect Wi-Fi signal in STA mode to obtain the name of the detected Wi-Fi; Switch to AP mode to wait for the connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; the configuration interface includes: detection To enter the Wi-Fi name and password input area; Obtain network configuration information input through the configuration interface, the network configuration information includes: a Wi-Fi name selected by the user, and a password input by the user to access the Wi-Fi network. Computer-readable media, including permanent and non-permanent, removable and non-removable media, can be stored by any method or technology. The 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 and programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital multifunction Optical discs (DVDs) or other optical storage, magnetic cassette tapes, magnetic tape magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computer equipment. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves. It can be known from the description of the above implementation manners that those skilled in the art can clearly understand that the embodiments of this specification can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions of the embodiments of this specification can be embodied in the form of software products in essence or part that contributes to the existing technology, and the computer software products can be stored in storage media, such as ROM/RAM, magnetic Discs, optical discs, etc., include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in the various embodiments of the embodiments of this specification or some parts of the embodiments. The system, device, module or unit explained in the above embodiments may be implemented by a computer chip or entity, or by a product with a certain function. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a mobile phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet, wearable device, or any combination of these devices. The embodiments in this specification are described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment. The device embodiments described above are only schematics, wherein the modules described as separate components may or may not be physically separated, and the functions of each module can be Implemented in one or more software and/or hardware. Part or all of the modules may also be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without paying creative labor. The above is only a specific implementation manner of the embodiments of this specification. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of the embodiments of this specification, several improvements and retouches can be made. These Improvements and retouching should also be regarded as the scope of protection of the embodiments of this specification.

110‧‧‧信號檢測模組 120‧‧‧資訊推送模組 130‧‧‧資訊獲取模組 1010‧‧‧處理器 1020‧‧‧記憶體 1030‧‧‧輸入/輸出介面 1040‧‧‧通信介面 1050‧‧‧匯流排110‧‧‧Signal detection module 120‧‧‧Information Push Module 130‧‧‧ Information Acquisition Module 1010‧‧‧ processor 1020‧‧‧Memory 1030‧‧‧I/O interface 1040‧‧‧Communication interface 1050‧‧‧Bus

為了更清楚地說明本說明書實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本說明書實施例中記載的一些實施例,對於本領域普通技術人員來講,還可以根據這些圖式獲得其他的圖式。 圖1是本說明書實施例的網路接入方法的流程示意圖; 圖2是本說明書實施例的網路接入方法的一種互動流程示意圖; 圖3是本說明書實施例的網路接入裝置的結構示意圖; 圖4是用於配置本說明書實施例裝置的一種設備的結構示意圖。In order to more clearly explain the embodiments of the present specification or the technical solutions in the prior art, the drawings required in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only For some embodiments described in the embodiments of the specification, those of ordinary skill in the art may also obtain other drawings according to these drawings. FIG. 1 is a schematic flowchart of a network access method according to an embodiment of this specification; 2 is a schematic diagram of an interactive process of a network access method according to an embodiment of this specification; 3 is a schematic structural diagram of a network access device according to an embodiment of this specification; FIG. 4 is a schematic structural diagram of a device for configuring an apparatus of an embodiment of this specification.

Claims (11)

一種網路接入方法,應用於物聯網設備,該物聯網設備支援終端STA模式與無線接入點AP模式,該方法包括: 以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;該配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 獲得透過該配置介面輸入的網路配置資訊,該網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。A network access method is applied to an Internet of Things device that supports terminal STA mode and wireless access point AP mode. The method includes: Detect Wi-Fi signal in STA mode to obtain the name of the detected Wi-Fi; Switch to AP mode to wait for the connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; the configuration interface includes: detected Wi-Fi name and password input area; Obtain the network configuration information input through the configuration interface. The network configuration information includes: the Wi-Fi name selected by the user, and the password entered by the user to access the Wi-Fi network. 根據申請專利範圍第1項所述的方法,在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊前,進一步包括: 檢測發起該連接請求的終端設備是否符合預設連接條件;若是,則執行向發起該連接請求的終端設備推送配置介面資訊的步驟。According to the method described in item 1 of the patent application scope, when a connection request is received, before pushing the configuration interface information to the terminal device that initiated the connection request, the method further includes: Detect whether the terminal device initiating the connection request meets the preset connection conditions; if it is, execute the step of pushing the configuration interface information to the terminal device initiating the connection request. 根據申請專利範圍第2項所述的方法,該預設連接條件包括: 信號強度大於預設強度閾值、發起連接請求的次數大於預設次數閾值、所發送的連接請求中攜帶預設標識、和/或所發送的連接請求中攜帶正確的連接認證密碼。According to the method described in item 2 of the patent application scope, the preset connection conditions include: The signal strength is greater than the preset strength threshold, the number of times the connection request is initiated is greater than the preset number of thresholds, the sent connection request carries a preset identifier, and/or the sent connection request carries the correct connection authentication password. 根據申請專利範圍第1項所述的方法,在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊前,進一步包括: 向發起該連接請求的終端設備推送連接認證介面資訊,以使該終端設備向用戶呈現連接認證介面;該連接認證介面用於:供用戶輸入連接認證密碼、和/或確認建立連接的目的; 獲得透過該連接認證介面輸入的連接認證資訊,並在該連接認證資訊符合預設連接條件的情況下,執行向發起該連接請求的終端設備推送配置介面資訊的步驟。According to the method described in item 1 of the patent application scope, when a connection request is received, before pushing the configuration interface information to the terminal device that initiated the connection request, the method further includes: Push the connection authentication interface information to the terminal device that initiated the connection request, so that the terminal device presents the connection authentication interface to the user; the connection authentication interface is used for: the user to enter the connection authentication password and/or confirm the purpose of establishing the connection; Obtain the connection authentication information input through the connection authentication interface, and execute the step of pushing the configuration interface information to the terminal device that initiated the connection request if the connection authentication information meets the preset connection conditions. 根據申請專利範圍第1項所述的方法,向發起該連接請求的終端設備推送配置介面資訊,具體透過以下方式使該終端設備向用戶呈現配置介面: 呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面; 或者 透過該終端設備中預先裝載的用戶端向用戶呈現配置介面; 或者 透過該終端設備中預先裝載的用戶端呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面。According to the method described in item 1 of the patent application scope, the configuration interface information is pushed to the terminal device that initiated the connection request, and the terminal device is presented with the configuration interface to the user in the following ways: Call the browser of the terminal device to present the configuration interface to the user through the browser page; or Present the configuration interface to the user through the user terminal pre-loaded in the terminal device; or Call the browser of the terminal device through the user terminal preloaded in the terminal device to present the configuration interface to the user through the browser page. 一種網路接入裝置,應用於物聯網設備,該物聯網設備支援終端STA模式與無線接入點AP模式,該裝置包括: 信號檢測模組,用於以STA模式檢測Wi-Fi信號,獲得檢測到的Wi-Fi的名稱; 資訊推送模組,用於切換到AP模式等待連接請求,並在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊,以使該終端設備向用戶呈現配置介面;該配置介面中包含:檢測到的Wi-Fi名稱及密碼輸入區域; 資訊獲取模組,用於獲得透過該配置介面輸入的網路配置資訊,該網路配置資訊包括:用戶選擇的Wi-Fi名稱、及用戶輸入的接入該Wi-Fi網路的密碼。A network access device is applied to Internet of Things equipment. The Internet of Things equipment supports terminal STA mode and wireless access point AP mode. The device includes: Signal detection module, used to detect Wi-Fi signals in STA mode to obtain the name of the detected Wi-Fi; The information push module is used to switch to AP mode to wait for a connection request, and when receiving the connection request, push the configuration interface information to the terminal device that initiated the connection request, so that the terminal device presents the configuration interface to the user; the The configuration interface includes: the detected Wi-Fi name and password input area; The information acquisition module is used to obtain the network configuration information input through the configuration interface. The network configuration information includes: a Wi-Fi name selected by the user, and a password input by the user to access the Wi-Fi network. 根據申請專利範圍第6項所述的裝置,該資訊推送模組在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊前,還用於: 檢測發起該連接請求的終端設備是否符合預設連接條件;若是,則執行向發起該連接請求的終端設備推送配置介面資訊的步驟。According to the device described in item 6 of the patent application scope, the information push module, when receiving a connection request, is also used to: before pushing the configuration interface information to the terminal device that initiated the connection request: Detect whether the terminal device initiating the connection request meets the preset connection conditions; if it is, execute the step of pushing the configuration interface information to the terminal device initiating the connection request. 根據申請專利範圍第7項所述的裝置,該預設連接條件包括: 信號強度大於預設強度閾值、發起連接請求的次數大於預設次數閾值、所發送的連接請求中攜帶預設標識、和/或所發送的連接請求中攜帶正確的連接認證密碼。According to the device described in item 7 of the patent application scope, the preset connection conditions include: The signal strength is greater than the preset strength threshold, the number of times the connection request is initiated is greater than the preset number of thresholds, the sent connection request carries a preset identifier, and/or the sent connection request carries the correct connection authentication password. 根據申請專利範圍第6項所述的裝置,該信號推送模組在接收到連接請求的情況下,向發起該連接請求的終端設備推送配置介面資訊前,還用於: 向發起該連接請求的終端設備推送連接認證介面資訊,以使該終端設備向用戶呈現連接認證介面;該連接認證介面用於:供用戶輸入連接認證密碼、和/或確認建立連接的目的; 獲得透過該連接認證介面輸入的連接認證資訊,並在該連接認證資訊符合預設連接條件的情況下,執行向發起該連接請求的終端設備推送配置介面資訊的步驟。According to the device described in item 6 of the patent application scope, when the signal push module receives the connection request, before pushing the configuration interface information to the terminal device that initiated the connection request, it is also used to: Push the connection authentication interface information to the terminal device that initiated the connection request, so that the terminal device presents the connection authentication interface to the user; the connection authentication interface is used for: the user to enter the connection authentication password and/or confirm the purpose of establishing the connection; Obtain the connection authentication information input through the connection authentication interface, and execute the step of pushing the configuration interface information to the terminal device that initiated the connection request if the connection authentication information meets the preset connection conditions. 根據申請專利範圍第6項所述的裝置,該資訊推送模組向發起該連接請求的終端設備推送配置介面資訊,具體透過以下方式使該終端設備向用戶呈現配置介面: 呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面; 或者 透過該終端設備中預先裝載的用戶端向用戶呈現配置介面; 或者 透過該終端設備中預先裝載的用戶端呼叫該終端設備的瀏覽器,以透過瀏覽器頁面向用戶呈現配置介面。According to the device described in item 6 of the patent application scope, the information pushing module pushes the configuration interface information to the terminal device that initiated the connection request, and specifically causes the terminal device to present the configuration interface to the user through the following methods: Call the browser of the terminal device to present the configuration interface to the user through the browser page; or Present the configuration interface to the user through the user terminal pre-loaded in the terminal device; or Call the browser of the terminal device through the user terminal preloaded in the terminal device to present the configuration interface to the user through the browser page. 一種電腦設備,包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦程式,其中,該處理器執行該程式時實現如申請專利範圍第1至5項中任一項所述的方法。A computer device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, any one of items 1 to 5 of the patent application scope is realized The method.
TW108115730A 2018-07-03 2019-05-07 Network access method and device TWI699138B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810714868.6A CN109041062A (en) 2018-07-03 2018-07-03 A kind of method for network access and device
CN201810714868.6 2018-07-03

Publications (2)

Publication Number Publication Date
TW202007221A true TW202007221A (en) 2020-02-01
TWI699138B TWI699138B (en) 2020-07-11

Family

ID=65521359

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108115730A TWI699138B (en) 2018-07-03 2019-05-07 Network access method and device

Country Status (3)

Country Link
CN (1) CN109041062A (en)
TW (1) TWI699138B (en)
WO (1) WO2020007158A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109041062A (en) * 2018-07-03 2018-12-18 阿里巴巴集团控股有限公司 A kind of method for network access and device
CN109831800A (en) * 2019-03-21 2019-05-31 浪潮商用机器有限公司 A kind of server connection method and device based on USB WiFi
CN111836339B (en) * 2019-04-15 2023-04-07 杭州海康威视数字技术股份有限公司 Network equipment
CN110392412B (en) * 2019-07-23 2022-05-13 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment
CN112351446A (en) * 2020-09-30 2021-02-09 宇龙计算机通信科技(深圳)有限公司 Loading method and device of WiFi (Wireless Fidelity) drive configuration file, storage medium and electronic equipment
CN112383919A (en) * 2020-11-13 2021-02-19 歌尔科技有限公司 Information processing method and device, intelligent doorbell and storage medium
CN112486595A (en) * 2020-12-04 2021-03-12 苏州浪潮智能科技有限公司 Storage device initialization method, storage device and server
CN112702328B (en) * 2020-12-18 2022-05-17 迈普通信技术股份有限公司 Network access method, system and electronic equipment
CN114584957A (en) * 2021-03-16 2022-06-03 浙江绍兴苏泊尔生活电器有限公司 Data writing method, device and equipment
CN113706718A (en) * 2021-07-21 2021-11-26 广州中智达信科技有限公司 Augmented reality collaboration method, system and application
CN113645301A (en) * 2021-08-10 2021-11-12 生迪智慧科技有限公司 Communication method and device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9351158B2 (en) * 2013-03-08 2016-05-24 Microchip Technology Incorporated Method for wireless easy connect
CN105338527B (en) * 2014-08-06 2019-02-12 深圳中电国际信息科技有限公司 Internet of Things module network connection configuration method and system
CN104469981A (en) * 2014-11-21 2015-03-25 广东瑞德智能科技股份有限公司 Method and system for connecting intelligent household appliance into router
CN104375497B (en) * 2014-12-15 2017-09-29 广东美的厨房电器制造有限公司 Smart home and its control method, control system and electronic equipment
EP3235330A4 (en) * 2014-12-19 2018-07-11 Thomson Licensing Method and device for device configuration
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system
CN105228264B (en) * 2015-07-01 2018-09-14 利尔达科技集团股份有限公司 A kind of quick WI-FI network matching method suitable for Internet of Things
CN105163372A (en) * 2015-09-18 2015-12-16 普联技术有限公司 Network access method and network access device of intelligent household appliance
CN105554754A (en) * 2015-12-16 2016-05-04 Tcl集团股份有限公司 Method and system for accessing WIFI module of the internet of things to network
CN107466055A (en) * 2016-06-06 2017-12-12 美的集团股份有限公司 Household electrical appliance match somebody with somebody network method, mobile terminal and household electrical appliance
CN106211208A (en) * 2016-06-24 2016-12-07 美的集团股份有限公司 A kind of intelligent appliance accesses the methods, devices and systems of wireless network
CN106332143A (en) * 2016-09-28 2017-01-11 四川长虹电器股份有限公司 Method for rapidly configuring a network for smart device
CN106413037A (en) * 2016-10-31 2017-02-15 青岛海尔科技有限公司 Network access method and device for interment-of-things equipment, equipment and mobile terminal
CN109041062A (en) * 2018-07-03 2018-12-18 阿里巴巴集团控股有限公司 A kind of method for network access and device

Also Published As

Publication number Publication date
CN109041062A (en) 2018-12-18
TWI699138B (en) 2020-07-11
WO2020007158A1 (en) 2020-01-09

Similar Documents

Publication Publication Date Title
TWI699138B (en) Network access method and device
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
JP6726426B2 (en) Login-free method and device between terminals
US7940732B2 (en) Automatic wireless network device configuration
US20180309756A1 (en) Identity Authentication Method and Apparatus
EP2838309B1 (en) Method, device and system for establishing data connection
US20240080734A1 (en) Electronic device for providing call continuity in weak electric field environment and control method
US20210136577A1 (en) Method and a device for wireless connection
KR20140013058A (en) Over-the-air device configuration
US9420459B2 (en) Method and system for redirecting a request for IP session from a mobile device
US11451539B2 (en) Identity identification and preprocessing
JP2017076250A (en) Screen sharing server, screen sharing method, and program for screen sharing server
CN109413759B (en) Method and equipment for wireless connection
WO2018010397A1 (en) Method and equipment for establishing wireless connection through first application on user equipment
CN110958593A (en) Bluetooth networking method, device, system and computer readable medium
KR102310027B1 (en) Determination method and corresponding terminal, computer program product and storage medium
US11632666B2 (en) Device for wireless communication with other devices
KR102378515B1 (en) Terminal device and method for identifying malicious APA
US10390217B2 (en) Wireless configuration of wireless distribution system (WDS) Wi-Fi range extenders using non-Wi-Fi-wireless communication channels
WO2017088294A1 (en) Method and device for establishing wireless connection
CN108541000B (en) Method, medium and device for detecting network connection
KR102036686B1 (en) Apparatus and method for selecting channel in wireless communication system
CN113747439A (en) Data analysis method, system and equipment based on hot spot area communication signals
KR20130123149A (en) Method for data network access authentication and an electronic device thereof
US10129417B2 (en) Ad hoc transmission of scanned documents to computing devices