[go: up one dir, main page]

TWI675570B - Network device, i/o device, a method and system for connecting network - Google Patents

Network device, i/o device, a method and system for connecting network Download PDF

Info

Publication number
TWI675570B
TWI675570B TW106134243A TW106134243A TWI675570B TW I675570 B TWI675570 B TW I675570B TW 106134243 A TW106134243 A TW 106134243A TW 106134243 A TW106134243 A TW 106134243A TW I675570 B TWI675570 B TW I675570B
Authority
TW
Taiwan
Prior art keywords
network
identification code
networked
network identification
connection
Prior art date
Application number
TW106134243A
Other languages
Chinese (zh)
Other versions
TW201916638A (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 盛星雲端控股股份有限公司
Priority to TW106134243A priority Critical patent/TWI675570B/en
Publication of TW201916638A publication Critical patent/TW201916638A/en
Application granted granted Critical
Publication of TWI675570B publication Critical patent/TWI675570B/en

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

一種連網裝置、連網周邊裝置及一種網路連接方法與系統,該方法包括:搜尋第一連網裝置廣播的服務設定識別碼網路識別碼,所述第一連網裝置中設置的與所述網路識別碼對應的預先共享金鑰驗證金鑰由所述網路識別碼和預先設置的對應關係產生;根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,以使所述連網裝置連接到所述第一連網裝置後經由所述第一連網裝置存取網路。接收到所述第一連網裝置返回的驗證通過消息時,確認與所述連網裝置建立連接。A networked device, a networked peripheral device, and a network connection method and system. The method includes searching for a service setting identifier network identification code broadcasted by a first networked device. The pre-shared key verification key corresponding to the network identification code is generated from the corresponding relationship between the network identification code and a preset relationship; and is calculated according to the corresponding relationship stored in the network identification code and the connected peripheral device. A verification key corresponding to the network identification code, wherein the correspondence relationship stored in the connected peripheral device exists in the correspondence relationship that is the same as the preset correspondence relationship; according to the network identification code and After the authentication key corresponding to the network identifier calculated by the networked peripheral device sends a connection request to the first networked device, so that the networked device is connected to the first networked device Accessing a network via the first networked device. When a verification pass message returned by the first networked device is received, it is confirmed that a connection is established with the networked device.

Description

連網裝置、連網周邊裝置及一種網路連接方法與系統Networking device, networked peripheral device, and network connection method and system

本發明涉及網路連接應用領域,尤其涉及一種連網裝置、連網周邊裝置及一種網路連接方法與系統。 The present invention relates to the field of network connection applications, and in particular, to a network connection device, a network peripheral device, and a network connection method and system.

由於現今網路通訊技術的發展,許多與網路有關的服務(如視訊、音訊、資料等)皆可藉由現有的IP網路架構而完成,連接到網路中的連網周邊裝置不斷增加。 Due to the current development of network communication technology, many network-related services (such as video, audio, data, etc.) can be completed by the existing IP network architecture, and the number of connected peripheral devices connected to the network is increasing. .

以現有技術進行連網周邊裝置連網時,使用者須于個別連網周邊裝置進入一個新的網路環境時為其尋找並輸入可用的連網裝置之服務設定識別碼網路識別碼與預先共享金鑰驗證金鑰資訊,有時還需要透過其他裝置(如個人電腦)來協助該連網周邊裝置完成與網路的連接。這種連接網路的方式操作較為繁瑣,若是數量或規模大的連網周邊裝置要要連接網路時,設定過程十分的耗時耗力,成為使用上的龐大負擔。 When using the existing technology to connect peripheral devices, the user must find and enter the service setting identifiers for the available connected devices when the individual peripheral devices enter a new network environment. The shared key verification key information sometimes requires other devices (such as a personal computer) to assist the connected peripheral device to complete the connection to the network. This method of connecting to the network is relatively tedious. If a large number or a large number of connected peripheral devices are to be connected to the network, the setting process is very time-consuming and labor-intensive, which becomes a huge burden on use.

鑒於以上內容,有必要提供一種連網裝置、連網周邊裝置及一種網路連接方法與系統,可以方便高效的使連網周邊裝置連接網路,提高使用者的使用體驗。 In view of the above, it is necessary to provide a networked device, a networked peripheral device, and a network connection method and system, which can conveniently and efficiently connect the networked peripheral device to the network and improve the user experience.

一種連網裝置,其中,所述連網裝置包括: 存儲單元;至少一個處理器;以及至少一個模組,所述至少一個模組被存儲在所述存儲單元中並被配置成由所述至少一個處理器執行,所述至少一個模組包括:第一產生模組,用於啟動時動態產生一個或多個服務設定識別碼網路識別碼;第二產生模組,用於根據所述一個或多個網路識別碼以及所述連網裝置中預先設置的對應關係產生與每個網路識別碼對應的預先共享金鑰驗證金鑰;設置模組,用於根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;第一接收驗證模組,用於廣播所述連網裝置設置的網路識別碼,並接收周圍的連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述周圍的連網周邊裝置發送的驗證金鑰由所述周圍的連網裝置根據搜尋到的網路識別碼和所述周圍的連網裝置中保存的對應關係產生,其中,所述周圍的連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係;第一連接模組,用於當驗證通過時,與所述周圍的連網周邊裝置建立連接使得所述周圍的連網周邊裝置經由所述連網裝置存取網路。 A networking device, wherein the networking device includes: A storage unit; at least one processor; and at least one module, the at least one module is stored in the storage unit and configured to be executed by the at least one processor, the at least one module includes: a first A generating module for dynamically generating one or more service setting identifiers and network identifiers at startup; a second generating module for using one or more network identifiers and the network device The preset correspondence relationship generates a pre-shared key verification key corresponding to each network identification code; and a setting module for performing network parameters on the networked device according to the generated network identification code and verification key Setting; a first receiving verification module, configured to broadcast the network identification code set by the connected device, and receive the network identification code and verification key sent by the surrounding connected peripheral devices to identify the received network Code and verification key for verification, and the verification key sent by the surrounding connected peripheral device is secured by the surrounding connected device according to the searched network identification code and the surrounding connected device. The corresponding relationship is generated, wherein, among the corresponding relationships saved in the surrounding networked devices, there is the same corresponding relationship as the preset corresponding relationship; a first connection module is configured to communicate with all The surrounding networked peripheral device establishes a connection such that the surrounding networked peripheral device accesses a network via the networked device.

一種連網周邊裝置,其中,所述連網周邊裝置包括:存儲單元;至少一個處理器;以及至少一個模組,所述至少一個模組被存儲在所述存儲單元中並被配置成由所述至少一個處理器執行,所述至少一個模組包括: 搜尋模組,用於搜尋第一連網裝置廣播的服務設定識別碼網路識別碼,所述第一連網裝置中設置的與所述網路識別碼對應的預先共享金鑰驗證金鑰由所述網路識別碼和預先設置的對應關係產生;第一計算模組,用於根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;發送模組,用於根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,以使所述連網裝置連接到所述第一連網裝置後經由所述第一連網裝置存取網路。 A networked peripheral device, wherein the networked peripheral device includes: a storage unit; at least one processor; and at least one module, the at least one module is stored in the storage unit and configured to be used by The at least one processor executes, the at least one module includes: A search module for searching a service setting identifier network identifier broadcasted by the first connected device, and the pre-shared key verification key corresponding to the network identifier set in the first connected device is provided by The network identification code and a preset correspondence relationship are generated; a first calculation module is configured to calculate the network identification code based on the correspondence relationship between the network identification code and the connected peripheral device A corresponding verification key, wherein the correspondence relationship stored in the networked peripheral device exists in the correspondence relationship that is the same as the preset correspondence relationship; and a sending module is configured to use the network identification code and the An authentication key corresponding to the network identification code calculated by the connected peripheral device sends a connection request to the first connected device, so that the connected device passes through all the devices after connecting to the first connected device. The first networked device accesses the network.

第一連網模組,用於接收到所述第一連網裝置返回的驗證通過消息時,確認與所述連網裝置建立連接。 The first networking module is configured to confirm that a connection is established with the networked device when receiving a verification pass message returned by the first networked device.

一種網路連接系統,其中,所述系統包括連網裝置、連網周邊裝置及伺服器;所述連網裝置,用於啟動時動態產生一個或多個服務設定識別碼網路識別碼,根據所述一個或多個網路識別碼以及所述連網裝置中預先設置的對應關係產生與每個網路識別碼對應的預先共享金鑰驗證金鑰,根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置,廣播所述連網裝置設置的網路識別碼;所述連網周邊裝置,用於搜尋所述連網裝置廣播的網路識別碼,根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置 發送連接請求,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;所述連網裝置,還用於接收周圍的連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述周圍的連網周邊裝置發送的驗證金鑰由所述周圍的連網裝置根據搜尋到的網路識別碼和所述周圍的連網裝置中保存的對應關係產生,當驗證通過時,與所述周圍的連網周邊裝置建立連接使得所述周圍的連網周邊裝置經由所述連網裝置存取網路。 A network connection system, wherein the system includes a network device, a network peripheral device, and a server; the network device is used to dynamically generate one or more service setting identifiers network identifiers at startup, according to Generating a pre-shared key verification key corresponding to each network identification code by the one or more network identification codes and a preset correspondence relationship in the networked device, and according to the generated network identification code and verification money Key to set network parameters for the connected device, and broadcast the network identification code set by the connected device; the connected peripheral device is used to search for the network identification code broadcast by the connected device, according to the The correspondence between the network identification code and the networked peripheral device is used to calculate a verification key corresponding to the network identification code, and based on the network identification code and the networked peripheral device, the verification key is calculated. A verification key corresponding to the network identification code to the first networked device Sending a connection request, wherein the correspondence relationship stored in the networked peripheral device exists in the correspondence relationship that is the same as the preset correspondence relationship; the networked device is further configured to receive the data sent by the surrounding networked peripheral device. The network identification code and the verification key are used to verify the received network identification code and the verification key. The verification keys sent by the surrounding connected peripheral devices are used by the surrounding connected devices according to the searched network. The correspondence between the road identification code and the surrounding networked devices is generated. When the verification is passed, a connection is established with the surrounding networked peripheral devices so that the surrounding networked peripheral devices are stored via the connected network devices. Get the Internet.

所述連網周邊裝置,還用於與所述連網裝置建立連接後,根據所述伺服器的位址與所述伺服器建立連接,並發送所述連網周邊裝置與所述連網裝置的裝置識別碼;所述伺服器,用於對接收到的所述連網周邊裝置發送的所述連網周邊裝置與所述連網裝置的裝置識別碼進行許可權驗證,若許可權驗證通過,與所述連網周邊裝置進行網路通訊。 The networked peripheral device is further configured to establish a connection with the server according to the address of the server after establishing a connection with the networked device, and send the networked peripheral device and the networked device. The device identification code of the device; the server, configured to perform permission verification on the device identification codes of the networked peripheral device and the networked device that are received by the networked peripheral device, and if the permission verification passes To perform network communication with the connected peripheral device.

一種網路連接方法,應用于連網裝置中,其中,所述方法包括:第一產生步驟,啟動時動態產生一個或多個服務設定識別碼網路識別碼;第二產生步驟,根據所述一個或多個網路識別碼以及所述連網裝置中預先設置的對應關係產生與每個網路識別碼對應的預先共享金鑰驗證金鑰;設置步驟,根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;第一接收驗證步驟,廣播所述連網裝置設置的網路識別碼,並接收周圍的連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路 識別碼與驗證金鑰進行驗證,所述周圍的連網周邊裝置發送的驗證金鑰由所述周圍的連網裝置根據搜尋到的網路識別碼和所述周圍的連網裝置中保存的對應關係產生,其中,所述周圍的連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係;第一連接步驟,當驗證通過時,與所述周圍的連網周邊裝置建立連接使得所述周圍的連網周邊裝置經由所述連網裝置存取網路。 A network connection method applied to a networked device, wherein the method includes: a first generating step, dynamically generating one or more service setting identifier network identifiers at startup; and a second generating step according to the One or more network identification codes and a preset correspondence relationship in the connected device to generate a pre-shared key verification key corresponding to each network identification code; a setting step, according to the generated network identification code and verification The key sets the network parameters of the connected device. The first receiving verification step broadcasts the network identification code set by the connected device, and receives the network identification code and verification money sent by the surrounding connected peripheral devices. Key to received network The identification code is verified with a verification key, and the verification key sent by the surrounding connected peripheral device is determined by the surrounding connected device according to the searched network identification code and the correspondence stored in the surrounding connected device. A relationship is generated, wherein among the corresponding relationships stored in the surrounding networked devices, there is a corresponding relationship that is the same as the preset corresponding relationship; a first connection step, when the verification is passed, the network is connected to the surrounding network. The peripheral device establishes a connection such that the surrounding networked peripheral device accesses the network via the networked device.

一種網路連接方法,應用于連網周邊裝置中,其中,所述方法包括:搜尋步驟,搜尋第一連網裝置廣播的服務設定識別碼網路識別碼,所述第一連網裝置中設置的與所述網路識別碼對應的預先共享金鑰驗證金鑰由所述網路識別碼和預先設置的對應關係產生;第一計算步驟,根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;發送步驟,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,以使所述連網裝置連接到所述第一連網裝置後經由所述第一連網裝置存取網路。 A network connection method applied to a connected peripheral device, wherein the method includes a searching step of searching for a service setting identifier network identification code broadcasted by a first connected device, which is set in the first connected device A pre-shared key verification key corresponding to the network identification code is generated by the network identification code and a preset correspondence relationship; a first calculation step is based on the network identification code and the network surroundings The correspondence relationship stored in the device calculates a verification key corresponding to the network identification code, wherein among the correspondence relationships stored in the network-connected peripheral device, there is a correspondence relationship that is the same as the preset correspondence relationship; sending Step: sending a connection request to the first networked device according to the network identification code and the verification key corresponding to the network identification code calculated by the networked peripheral device, so that the networked device After connecting to the first networked device, the network is accessed via the first networked device.

第一連網步驟,接收到所述第一連網裝置返回的驗證通過消息時,確認與所述連網裝置建立連接。 In a first networking step, when a verification pass message returned by the first networking device is received, it is confirmed that a connection is established with the networking device.

相較于現有技術,本發明提供的連網裝置、連網周邊裝置及一種網路連接方法與系統,可以方便高效使連網周邊裝置連接網路,提高使用者的使用體驗。 Compared with the prior art, the networked device, networked peripheral device, and a network connection method and system provided by the present invention can conveniently and efficiently connect the networked peripheral device to the network and improve the user experience.

1‧‧‧連網裝置 1‧‧‧ Connected Device

2‧‧‧連網周邊裝置 2‧‧‧ Network peripherals

3‧‧‧伺服器 3‧‧‧Server

11‧‧‧存儲單元 11‧‧‧Storage unit

21‧‧‧存儲單元 21‧‧‧Storage unit

12‧‧‧處理器 12‧‧‧ processor

22‧‧‧處理器 22‧‧‧Processor

101‧‧‧第一產生模組 101‧‧‧First Generation Module

102‧‧‧第二產生模組 102‧‧‧Second generation module

103‧‧‧設置模組 103‧‧‧Set Module

104‧‧‧第一接收驗證模組 104‧‧‧First receiving verification module

105‧‧‧第一連接模組 105‧‧‧First connection module

106‧‧‧第二接收驗證模組 106‧‧‧Second receiving verification module

107‧‧‧第二連接模組 107‧‧‧Second connection module

201‧‧‧搜尋模組 201‧‧‧Search Module

202‧‧‧第一計算模組 202‧‧‧First Computing Module

203‧‧‧發送模組 203‧‧‧Send Module

204‧‧‧第一連網模組 204‧‧‧The first network module

205‧‧‧第二計算模組 205‧‧‧Second Computing Module

206‧‧‧判斷模組 206‧‧‧Judgment Module

207‧‧‧觸發模組 207‧‧‧Trigger Module

208‧‧‧第二連網模組 208‧‧‧Second Network Module

209‧‧‧第三連網模組 209‧‧‧Third Network Module

210‧‧‧傳送模組 210‧‧‧Transfer Module

211‧‧‧通訊模組 211‧‧‧communication module

212‧‧‧接收模組 212‧‧‧Receiving module

213‧‧‧第四連網模組 213‧‧‧Fourth Network Module

圖1是本發明較佳實施方式的連網裝置的架構圖。 FIG. 1 is a structural diagram of a networking device according to a preferred embodiment of the present invention.

圖2是本發明較佳實施方式的連網周邊裝置的架構圖。 FIG. 2 is a structural diagram of a networked peripheral device according to a preferred embodiment of the present invention.

圖3是本發明網路連接方法的較佳實施方式的流程圖。 FIG. 3 is a flowchart of a preferred embodiment of a network connection method according to the present invention.

圖4是一個連網裝置與兩個連網周邊裝置進行連接的示意圖。 FIG. 4 is a schematic diagram of connecting one networked device and two networked peripheral devices.

圖5時本發明網路連接方法的又一較佳實施方式的流程圖 FIG. 5 is a flowchart of another preferred embodiment of a network connection method according to the present invention.

圖6是一個連網周邊裝置與多個連網裝置進行連接的示意圖。 FIG. 6 is a schematic diagram of connection between a networked peripheral device and a plurality of networked devices.

圖7是本發明較佳實施方式的網路連接系統的架構圖。 FIG. 7 is a structural diagram of a network connection system according to a preferred embodiment of the present invention.

本發明涉及一快速完成網路連線之方式,於連線中將使用網路識別碼與驗證金鑰之對應關係,此一關係包括但不限於既存或發展中之網路連線技術,如:5G Cellular、Bluetooth、IEEE 802.11、IEEE 802.15.4等通訊協定。在本發明的其中一個實施例中,網路識別碼與驗證金鑰分別代表Wi-Fi網路中,存取點(Access Point,AP)的服務識別碼(Service set idntifier,SSID)與預先共享金鑰(Pre-shared Key,PSK)。 The present invention relates to a method for quickly completing a network connection. A corresponding relationship between a network identification code and an authentication key will be used in the connection. This relationship includes, but is not limited to, existing or developing network connection technologies, such as : 5G Cellular, Bluetooth, IEEE 802.11, IEEE 802.15.4 and other communication protocols. In one embodiment of the present invention, the network identification code and the authentication key respectively represent a service set idntifier (SSID) of an access point (Access Point) in a Wi-Fi network and are shared in advance. Pre-shared Key (PSK).

參閱圖1所示,本發明較佳實施方式的連網裝置的架構圖。在本實施例中,連網裝置1包括,但不僅限於,存儲單元11及處理器12。所述存儲單元12與所述處理器13電性連接。 Refer to FIG. 1, which is a structural diagram of a networking device according to a preferred embodiment of the present invention. In this embodiment, the networking device 1 includes, but is not limited to, a storage unit 11 and a processor 12. The storage unit 12 is electrically connected to the processor 13.

在本實施例中,所述連網裝置1是一種能夠按照事先設定或儲存的指令,自動進行數值計算和/或資訊處理的設備,其硬體包括但不限於微處理器、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式設計門陣列(Field-Programmable Gate Array,FPGA)、數文書處理器(Digital Signal Processor,DSP)、嵌入式設備等。所述連網裝置1可與連網周邊裝置2通信。 In this embodiment, the networking device 1 is a device capable of automatically performing numerical calculations and / or information processing according to an instruction set or stored in advance. Its hardware includes, but is not limited to, a microprocessor and a dedicated integrated circuit. (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded device, etc. The networked device 1 can communicate with the networked peripheral device 2.

在本實施例中,所述連網裝置1包括,但不限於:路由器、交換機、行動裝置等具有網路連線功能的電子裝置。 In this embodiment, the network-connected device 1 includes, but is not limited to, an electronic device having a network connection function, such as a router, a switch, or a mobile device.

在本實施例中,所述存儲單元11可以是連網裝置1本身的記憶體,也可以是外部記憶體,如智慧媒體卡(Smart Media Card)、安全數位卡(Secure Digital Card)、快閃記憶體卡(Flash Card)等。 In this embodiment, the storage unit 11 may be the memory of the network-connected device 1 or an external memory, such as a Smart Media Card, a Secure Digital Card, and a flash memory. Memory card (Flash Card), etc.

所述處理器12可以為中央處理單元、微處理器等資料處理晶片。 The processor 12 may be a data processing chip such as a central processing unit and a microprocessor.

在本實施方式中,所述述連網裝置1包括一個或多個模組,所述一個或多個模組存儲在所述存儲單元11中,並被配置成由一個或多個處理器(本實施例為一個處理器12)執行,以完成本發明。例如,所述連網裝置1包括:第一產生模組101、第二產生模組102、設置模組103、第一接收驗證模組104、第一連接模組105、第二接收驗證模組106及第二連接模組107。本發明所稱的模組是能夠完成一特定功能的程式段,比程式更適合用於描述軟體在連網裝置1中的執行過程,關於各模組的詳細功能將在後文的流程圖中作具體描述。 In this embodiment, the networking device 1 includes one or more modules, and the one or more modules are stored in the storage unit 11 and are configured by one or more processors ( This embodiment is executed by a processor 12) to complete the present invention. For example, the network connection device 1 includes: a first generation module 101, a second generation module 102, a setting module 103, a first reception verification module 104, a first connection module 105, and a second reception verification module 106 and the second connection module 107. The module referred to in the present invention is a program segment capable of completing a specific function, which is more suitable for describing the execution process of software in the networked device 1 than the program. The detailed functions of each module will be described in the flowchart below. Specific description.

參閱圖2所示,本發明較佳實施方式的連網周邊裝置的架構圖。在本實施例中,連網周邊裝置2包括,但不僅限於,存儲單元21及處理器22。所述存儲單元21與所述處理器22電性連接。 Referring to FIG. 2, a structural diagram of a networked peripheral device according to a preferred embodiment of the present invention. In this embodiment, the network peripheral device 2 includes, but is not limited to, a storage unit 21 and a processor 22. The storage unit 21 is electrically connected to the processor 22.

在本實施例中,所述連網周邊裝置2是一種能夠按照事先設定或儲存的指令,自動進行數值計算和/或資訊處理的設備,其硬體包括但不限於微處理器、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式設計門陣列(Field-Programmable Gate Array,FPGA)、數位信號處理器(Digital Signal Processor,DSP)、嵌入式設備等。 In this embodiment, the network peripheral device 2 is a device capable of automatically performing numerical calculation and / or information processing according to an instruction set or stored in advance. Its hardware includes, but is not limited to, a microprocessor and a dedicated integrated product. Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded device, etc.

所述連網周邊裝置2可以輸入裝置也可以為輸出裝置,具體的,連網周邊裝置可以感應器、攝影機、溫度計、POS系統的掃描器、揚聲器等可連接網路的電子裝置。所述連網周邊裝置2為需要連接網路的一 方,所述連網周邊裝置2可與連網裝置1通信,並可通過連網裝置1與伺服器3相通信。 The networked peripheral device 2 may be an input device or an output device. Specifically, the networked peripheral device may be a sensor, a camera, a thermometer, a scanner of a POS system, a speaker, and other electronic devices that can be connected to the network. The connected peripheral device 2 is a device that needs to be connected to the network. For example, the networked peripheral device 2 can communicate with the networked device 1 and can communicate with the server 3 through the networked device 1.

在本實施例中,所述伺服器3是連網周邊裝置連接網路後要訪問的計算器系統。 In this embodiment, the server 3 is a calculator system to be accessed after the peripheral devices connected to the network are connected to the network.

在本實施例中,所述存儲單元21可以是連網周邊裝置2本身的記憶體,也可以是外部記憶體,如智慧媒體卡(Smart Media Card)、安全數位卡(Secure Digital Card)、快閃記憶體卡(Flash Card)等。 In this embodiment, the storage unit 21 may be the memory of the connected peripheral device 2 itself, or may be an external memory, such as a Smart Media Card, a Secure Digital Card, Flash memory card (Flash Card), etc.

所述處理器22可以為中央處理單元、微處理器等資料處理晶片。 The processor 22 may be a data processing chip such as a central processing unit and a microprocessor.

在本實施方式中,所述連網周邊裝置2可以包括一個或多個模組,所述一個或多個模組存儲在所述存儲單元21中,並被配置成由一個或多個處理器(本實施例為一個處理器22)執行,以完成本發明。例如,所述連網周邊裝置2包括搜尋模組201、第一計算模組202、發送模組203、第一連網模組204、第二計算模組205、判斷模組206、觸發模組207、第二連網模組208、第三連網模組107209、傳送模組210、通訊模組211、接收模212、及第四連網模組213。本發明所稱的模組是能夠完成一特定功能的程式段,比程式更適合用於描述軟體在連網周邊裝置2中的執行過程,關於各模組的詳細功能將在後文的流程圖中作具體描述。 In this embodiment, the networked peripheral device 2 may include one or more modules, and the one or more modules are stored in the storage unit 21 and configured to be processed by one or more processors. (This embodiment is a processor 22) is executed to complete the present invention. For example, the networked peripheral device 2 includes a search module 201, a first computing module 202, a sending module 203, a first networking module 204, a second computing module 205, a judgment module 206, and a trigger module. 207, the second networking module 208, the third networking module 107209, the transmission module 210, the communication module 211, the receiving module 212, and the fourth networking module 213. The module referred to in the present invention is a program segment capable of completing a specific function, which is more suitable than the program for describing the execution process of the software in the connected peripheral device 2. The detailed functions of each module will be described in the flowchart below. Specific description.

參閱圖3所示,是本發明網路連接方法的較佳實施方式的流程圖。根據不同需求,該流程圖中步驟的順序可以改變,某些步驟可以省略或合併。在本實施例中,本發明網路連接方法應用于連網裝置1中。 FIG. 3 is a flowchart of a preferred embodiment of a network connection method according to the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted or combined. In this embodiment, the network connection method of the present invention is applied to a network connection device 1.

S110,第一產生模組101啟動時動態產生一個或多個服務設定識別碼網路識別碼。 S110. When the first generating module 101 is started, it dynamically generates one or more service setting identifiers and network identifiers.

在本實施例中,上述連網裝置的服務設定識別碼可以用於與連網裝置進行連接。 In this embodiment, the service setting identification code of the network-connected device can be used to connect with the network-connected device.

在本實施例中,連網裝置動態產生一個或多個網路識別碼,可以是連網裝置根據一個網路識別碼產生函數產生多個網路識別碼,或者是連網裝置根據多個不同的網路識別碼產生函數產生多個網路識別碼。具體的網路識別碼產生函數可以根據需要預先設置。例如,連網裝置啟動時,產生一個或多個具有特定前綴的網路識別碼。 In this embodiment, the networked device dynamically generates one or more network identification codes. The networked device may generate multiple network identification codes according to a network identification code generation function, or the networked device may generate multiple network identification codes according to a plurality of different The network ID generation function for generates multiple network IDs. The specific network identification code generating function can be set in advance as needed. For example, when a networked device is activated, it generates one or more network identifiers with a specific prefix.

在本發明的另一實施例中,連網裝置的網路識別碼還可以是由網路服務提供者ISP在接收到用戶傳送的滿足唯一性條件的ID之後,根據使用者傳送的網路識別碼與預先設置的對應關係產生驗證金鑰,並根據該網路識別碼和產生的驗證金鑰設定連網裝置的網路識別碼屬性和驗證金鑰屬性。 In another embodiment of the present invention, the network identification code of the networked device may be the network identification provided by the network service provider ISP according to the network identification sent by the user after receiving the ID that meets the uniqueness condition transmitted by the user. A verification key is generated by a corresponding relationship between the code and a preset setting, and the network identification attribute and the verification key attribute of the connected device are set according to the network identification code and the generated verification key.

例如,使用者可通過電腦、手機等裝置,並透過所使用之網路服務提供者ISP之服務介面輸入網路識別碼的值來設置連網裝置的網路識別碼。ISP可以判斷用戶輸入的網路識別碼的值是否滿足條件,例如判斷用戶輸入的網路識別碼是否是唯一的,若是唯一,ISP根據對應關係驗證金鑰(ID)產生與用戶輸入的網路識別碼對應的驗證金鑰並發送至連網裝置,此時連網裝置的網路識別碼屬性和驗證金鑰屬性完成了設定。 For example, the user can set the network identification code of the connected device through a computer, a mobile phone, and other devices and enter the value of the network identification code through the service interface of the ISP of the network service provider used. The ISP can determine whether the value of the network identification code entered by the user meets the conditions, for example, determine whether the network identification code entered by the user is unique. If it is unique, the ISP verifies the key (ID) generated by the user and the network entered by the user. The verification key corresponding to the identification code is sent to the connected device. At this time, the network identification property and verification key property of the connected device are set.

S111,第二產生模組102根據所述一個或多個網路識別碼以及所述連網裝置中預先設置的對應關係產生與每個網路識別碼對應的預先共享金鑰驗證金鑰。 S111. The second generation module 102 generates a pre-shared key verification key corresponding to each network identification code according to the one or more network identification codes and a preset correspondence relationship in the networked device.

在本實施例中,上述預先設置的對應關係是根據網路識別碼產生驗證金鑰的對應關係,通常可以通過產生驗證金鑰的函數來表示該對應關係,例如通過Key(網路識別碼)來表示根據網路識別碼產生驗證金鑰。 In this embodiment, the preset correspondence relationship is a correspondence relationship for generating a verification key according to a network identification code. Usually, the correspondence relationship can be expressed by a function that generates a verification key, for example, by using a Key (network identification code). To indicate that a verification key is generated based on the network identifier.

在本發明的另一實施例中,預先設置的對應關係包括N個對應關係,其中N大於1,且N為正整數。即連網裝置中預先設置的對應關係可以是一個或多個用於產生驗證金鑰的函數。 In another embodiment of the present invention, the preset correspondence relationship includes N correspondence relationships, where N is greater than 1, and N is a positive integer. That is, the corresponding relationship preset in the networked device may be one or more functions for generating an authentication key.

則此時,第二產生模組102根據所述一個或多個網路識別碼以及所述N個對應關係產生與每個網路識別碼對應的N個預先共享金鑰驗證金鑰。 Then, at this time, the second generating module 102 generates N pre-shared key verification keys corresponding to each network identification code according to the one or more network identification codes and the N corresponding relationships.

在本實施例中,根據每個網路識別碼和每個對應關係,都可以產生驗證金鑰,則若有N個對應關係,每個ID都可以產生N個驗證金鑰。 In this embodiment, an authentication key can be generated according to each network identification code and each corresponding relationship. If there are N corresponding relationships, each ID can generate N authentication keys.

S112,設置模組103根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置。 S112. The setting module 103 sets network parameters for the networked device according to the generated network identification code and verification key.

在本實施例中,在產生了網路識別碼和驗證金鑰之後,可以根據產生的ID及驗證金鑰對連網裝置進行網路參數設定,一個網路識別碼及與該網路識別碼對應的驗證金鑰可以稱為一組網路參數設定值。若有多組值,也可以對連網裝置進行多組值的設定。例如,對於連網裝置的不同發送頻道上設置不同的組的網路識別碼及驗證金鑰,則在廣播網路識別碼時,針對不同的頻道上的裝置可以搜尋到不同的網路識別碼值。 In this embodiment, after the network identification code and the verification key are generated, the network parameters of the connected device can be set according to the generated ID and the verification key, a network identification code and the network identification code. The corresponding authentication key can be called a set of network parameter settings. If there are multiple sets of values, you can also set multiple sets of values for the connected device. For example, if different groups of network identifiers and verification keys are set on different sending channels of connected devices, when the network identifier is broadcast, different network identifiers can be found for devices on different channels. value.

S113,第一接收驗證模組104廣播所述連網裝置設置的網路識別碼,並接收周圍的連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述周圍的連網周邊裝置發送的驗證金鑰由所述周圍的連網裝置根據搜尋到的ID和所述周圍的連網裝置中保存的對應關係產生,其中,所述周圍的連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係。 S113. The first receiving verification module 104 broadcasts the network identification code set by the connected device, and receives the network identification code and the verification key sent by the surrounding connected peripheral devices. The verification key is used for verification. The verification key sent by the surrounding networked peripheral device is generated by the surrounding networked device according to the searched ID and the corresponding relationship stored in the surrounding networked device. Among the correspondences stored in the surrounding networking devices, there are the same correspondences as the preset correspondences.

在本實施例中,在生成一組或多組網路識別碼與驗證金鑰之後,可以將生成的網路識別碼進行廣播。若有連網周邊裝置需要連接該連網裝置時,將向該連網裝置發送連接請求。 In this embodiment, after generating one or more sets of network identification codes and verification keys, the generated network identification codes can be broadcast. If a connected peripheral device needs to connect to the connected device, it will send a connection request to the connected device.

由於周圍的連網裝置發送的驗證金鑰是由搜尋到的網路識別碼及周圍的連網裝置中保存的對應關係產生,並且周圍的連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係,因此周圍的連網裝置可生成與連網裝置中同樣的驗證金鑰。 Because the authentication key sent by the surrounding networked device is generated by the searched network identifier and the corresponding relationship stored in the surrounding networked device, and the corresponding relationship stored in the surrounding networked device exists with the The preset correspondence is the same, so the surrounding networked devices can generate the same authentication keys as in the networked devices.

在本實施例中,連網裝置驗證的過程,具體是將接收到的周圍的連網裝置發送的網路識別碼及對應的驗證金鑰與連網裝置當前設定的網路識別碼與驗證金鑰進行匹配,若匹配成功,則確定驗證通過。 In this embodiment, the process of verifying the connected device is specifically to receive the network identification code and corresponding verification key sent by the surrounding connected devices and the currently set network identification code and verification money of the connected device. The key is matched, and if the match is successful, it is determined that the verification is passed.

S114,第一連接模組105當驗證通過時,與所述周圍的連網周邊裝置建立連接使得所述周圍的連網周邊裝置經由所述連網裝置存取網路。 S114. When the first connection module 105 passes the verification, it establishes a connection with the surrounding connected peripheral device so that the surrounding connected peripheral device accesses the network through the connected device.

在本實施例中,若驗證通過,則與周圍的連網周邊裝置建立連接。此時,連網周邊裝置可以經由連網裝置存取網路,具體的,連網周邊裝置與連網裝置建立連接後可以執行連接英特網、連接指定的伺服器等操作。 In this embodiment, if the verification is passed, a connection is established with the surrounding networked peripheral devices. At this time, the connected peripheral device can access the network through the connected device. Specifically, after the connected peripheral device establishes a connection with the connected device, it can perform operations such as connecting to the Internet and connecting to a designated server.

在本發明的另一實施例中,所述周圍的連網周邊裝置包括一個或多個連網周邊裝置。即連網裝置可以接收一個或多個連網周邊裝置發送的連接請求,從而使多個連網周邊裝置通過該連網裝置連接至網路。 In another embodiment of the present invention, the surrounding networked peripheral devices include one or more networked peripheral devices. That is, the networked device can receive a connection request sent by one or more networked peripheral devices, so that multiple networked peripheral devices can connect to the network through the networked device.

則當所述一個或多個連網周邊裝置中的任一連網裝置發送的網路識別碼與驗證金鑰通過驗證時,所述第一連接模組105與所述任一連網裝置建立連接。 Then, when the network identification code and the verification key sent by any one of the one or more networked peripheral devices pass verification, the first connection module 105 establishes a connection with the any one of the networked devices.

例如,有兩個連網周邊裝置都向連網裝置發送了連接請求,且兩個周邊裝置發送的網路識別碼與驗證金鑰都通過了驗證,則連網裝置與這兩個連網周邊裝置都建立連接。 For example, if two connected peripheral devices both send a connection request to the connected device, and the network identification code and verification key sent by the two peripheral devices pass the verification, then the connected device and the two connected peripherals The devices are all connected.

請參見圖4,為一個連網裝置與兩個連網周邊裝置進行連接的示意圖。圖4中示出的僅為兩個連網周邊裝置與一個連網裝置連接的示意圖,實際也可以是多於兩個連網周邊裝置,例如五個連網周邊裝置與一個連網裝置連接,又或者是十個連網周邊裝置與一個連網裝置連接等。 Please refer to FIG. 4, which is a schematic diagram of connecting a networked device with two networked peripheral devices. The diagram shown in FIG. 4 is only a schematic diagram of connecting two networked peripheral devices to one networked device. In fact, there may be more than two networked peripheral devices. For example, five networked peripheral devices are connected to one networked device. Or ten connected peripheral devices are connected to one connected device.

在本發明的另一實施例中,本發明所述網路連接方法還包括以下步驟:當所述周圍的連網周邊裝置發送的網路識別碼與驗證金鑰未通過驗證時,所述第二接收驗證模組106接收所述周圍的連網周邊裝置再次發送的新的網路識別碼與新的驗證金鑰,並進行再次驗證;當再次驗證通過時,第二連接模組107與所述周圍的連網周邊裝置建立連接。 In another embodiment of the present invention, the network connection method according to the present invention further includes the following steps: when the network identification code and the verification key sent by the surrounding connected peripheral devices fail to pass the verification, the first The second receiving authentication module 106 receives the new network identification code and the new authentication key re-sent by the surrounding networked peripheral devices, and performs re-authentication; when the re-authentication passes, the second connecting module 107 communicates with all The surrounding networked peripheral devices establish a connection.

當連網周邊裝置發送的網路識別碼與驗證金鑰未通過驗證時,可以再次接收周圍的連網裝置發送的新的網路識別碼與新的驗證金鑰,若驗證通過,則進行連接,若驗證未通過,則不進行連接,以及可以再次接收連網周邊裝置發送的連接請求。即,所述連網裝置可以多次接收一個或多個連網周邊裝置發送的連接請求。 When the network identification code and verification key sent by the connected peripheral device fail to pass the verification, the new network identification code and new verification key sent by the surrounding connected device can be received again. If the verification is passed, the connection is made. If the verification fails, no connection is made, and the connection request sent by the connected peripheral device can be received again. That is, the networked device may receive the connection request sent by one or more networked peripheral devices multiple times.

參閱圖5所示,是本發明網路連接方法的又一較佳實施方式的流程圖。根據不同需求,該流程圖中步驟的順序可以改變,某些步驟可以省略或合併。 FIG. 5 is a flowchart of another preferred embodiment of a network connection method according to the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted or combined.

在本實施例中,本發明網路連接方法應用于連網周邊裝置2中。 In this embodiment, the network connection method of the present invention is applied to a network-connected peripheral device 2.

在本實施例中,本發明連網周邊裝置可以為輸入裝置或輸出裝置。 In this embodiment, the network-connected peripheral device of the present invention may be an input device or an output device.

其中,輸入裝置可以為感測器,例如溫度探測器,攝像機等。輸入裝置還可以為接收使用者輸入資訊的電子裝置,例如POS系統的掃描器等,該掃描器可以接收二維碼等資訊。 The input device may be a sensor, such as a temperature detector, a camera, and the like. The input device may also be an electronic device that receives information input by a user, such as a scanner of a POS system, which can receive information such as a two-dimensional code.

其中,輸出裝置可以為接收指令並輸出資料的電子裝置,例如顯示幕,接收指令並播放畫面,或者是揚聲器,接收指令並播放聲音。輸出裝置還可以為根據接收到的指令判斷並執行回應操作的電子裝置,例如智慧插座,接收指令,並對接收到的指令進行判斷,再執行回應的操作。 The output device may be an electronic device that receives instructions and outputs data, such as a display screen that receives instructions and plays a picture, or a speaker that receives instructions and plays a sound. The output device may also be an electronic device that judges and performs a response operation according to the received instruction, such as a smart socket, receives the instruction, judges the received instruction, and then performs the response operation.

步驟S210,搜尋模組201搜尋連網裝置廣播的服務設定識別碼ID,所述連網裝置中設置的與所述網路識別碼對應的預先共享金鑰驗證金鑰由所述網路識別碼和預先設置的對應關係產生。 Step S210: The search module 201 searches for a service setting identifier ID broadcasted by a networked device, and the pre-shared key verification key corresponding to the network identifier set in the networked device is identified by the network identifier Generated with the corresponding correspondence.

在本實施例中,所述連網裝置廣播的網路識別碼可由所述連網裝置於啟動時動態產生。 In this embodiment, the network identification code broadcast by the networked device may be dynamically generated by the networked device at startup.

在本實施例中,連網裝置中設定的與網路識別碼對應的驗證金鑰由網路識別碼和預先設置的對應關係產生,例如,預先設置的對應關係為函數Key(ID)。 In this embodiment, the verification key corresponding to the network identification code set in the networked device is generated by the network identification code and a preset correspondence relationship, for example, the preset correspondence relationship is a function Key (ID).

步驟S211,第一計算步驟202根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係。 In step S211, the first calculation step 202 calculates a verification key corresponding to the network identification code according to the correspondence between the network identification code and the connected peripheral device, wherein the connected peripheral device Correspondence relationships stored in the same correspondence relationships exist in the preset correspondence relationships.

由於所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係。因此,對於任一網路識別碼,連網周邊裝置可以產生與連網裝置相同的驗證金鑰,進而能通過該網路識別碼與驗證金鑰與連網裝置建立連接。 The correspondence relationship stored in the network-connected peripheral device has the same correspondence relationship in the preset correspondence relationship. Therefore, for any network identification code, the connected peripheral device can generate the same authentication key as the connected device, and then the network identification code and the authentication key can be used to establish a connection with the connected device.

在本發明的另一實施例中,所述連網周邊方法可包括以下步驟: 判斷模組206判斷所述網路識別碼是否滿足預設條件;若所述網路識別碼滿足預設條件,觸發模組207觸發所述第一計算模組202根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰。 In another embodiment of the present invention, the network peripheral method may include the following steps: The judging module 206 judges whether the network identification code satisfies a preset condition; if the network identification code satisfies a preset condition, the triggering module 207 triggers the first computing module 202 according to the network identification code and The correspondence relationship stored in the networked peripheral device calculates a verification key corresponding to the network identification code.

在該實施例中,可以在結搜索到網路識別碼時,先進行判斷再進行驗證金鑰計算。只有在網路識別碼滿足條件時才進行計算,避免做無效的運算。例如,在搜尋到第一連網裝置廣播的網路識別碼時,先判斷該網路識別碼的前綴是否為預設字符,若是,進行驗證金鑰的計算。 In this embodiment, when a network identification code is searched, a judgment is performed first, and then a verification key calculation is performed. Calculate only when the network identifier meets the conditions to avoid invalid calculations. For example, when searching for a network identification code broadcast by the first networked device, first determine whether the prefix of the network identification code is a preset character, and if so, perform calculation of a verification key.

步驟S212,發送模組203根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述連網裝置發送連接請求,以使所述連網裝置連接到所述連網周邊裝置後經由所述連網周邊裝置存取網路。 Step S212: The sending module 203 sends a connection request to the networked device according to the network identification code and the verification key corresponding to the network identification code calculated by the networked peripheral device, so that the networked device After the networked device is connected to the networked peripheral device, the network is accessed via the networked peripheral device.

在本實施例中,在得到所述連網周邊裝置的網路識別碼並計算出驗證金鑰之後,向所述連網裝置發送連接請求,具體的,該請求中可包括網路識別碼與驗證金鑰資訊。 In this embodiment, after obtaining the network identification code of the connected peripheral device and calculating the authentication key, a connection request is sent to the connected device. Specifically, the request may include the network identification code and the Verify key information.

步驟S213,第一連網模組204接收到所述連網裝置返回的驗證通過消息時,確認與所述連網裝置建立連接。 In step S213, when the first networking module 204 receives the verification pass message returned by the networked device, it confirms that a connection is established with the networked device.

在本實施例中,所述連網裝置會對接收到的所述連網周邊裝置發送的網路識別碼與驗證金鑰進行驗證,若驗證通過,將返回驗證通過建立連接的消息,若所述連網周邊裝置接收到該消息,可確認與所述連網裝置建立連接成功。 In this embodiment, the network-connected device verifies the network identification code and verification key sent by the network-connected peripheral device. If the verification is successful, a message indicating that the connection is established through verification is returned. After receiving the message, the connected peripheral device can confirm that the connection with the connected device is successfully established.

在本發明的另一實施例中,所述連網周邊裝置中保存的對應關係包括M個對應關係,其中,M大於1,且M為正整數,則本發明網路連接方法中:所述第一計算模組202根據所述網路識別碼和所述M個對應關係中的第i對應關係計算出與所述ID對應的第i個驗證金鑰,其中,i為正整數且初始值為1。 In another embodiment of the present invention, the corresponding relationships stored in the networked peripheral devices include M corresponding relationships, where M is greater than 1 and M is a positive integer. In the network connection method of the present invention: The first calculation module 202 calculates an i-th verification key corresponding to the ID according to the i-th correspondence between the network identification code and the M correspondences, where i is a positive integer and an initial value Is 1.

所述發送模組203根據所述網路識別碼和所述第i個驗證金鑰向所述第一連網裝置發送連接請求。 The sending module 203 sends a connection request to the first networked device according to the network identification code and the i-th verification key.

第二計算模組205若接收到所述第一連網裝置返回的驗證未通過消息,令i=i+1,觸發所述第一計算模組根據所述網路識別碼和所述連網周邊裝置中保存的第i對應關係計算出與所述網路識別碼對應的第i個驗證金鑰。 If the second computing module 205 receives the verification failure message returned by the first networked device, let i = i + 1, and trigger the first computing module based on the network identifier and the network connection. The i-th correspondence relationship stored in the peripheral device calculates an i-th verification key corresponding to the network identification code.

在該實施例中,若連網周邊裝置中保存的對應關係包括多於1個對應關係,則在根據網路識別碼計算驗證金鑰時,可以依次計算並根據每次計算得到的驗證金鑰向連網裝置發送連接請求,若接收到連網裝置驗證未通過的消息再根據下一個對應關係進行計算,直到與連網裝置建立連接。 In this embodiment, if the correspondence relationship stored in the connected peripheral device includes more than one correspondence relationship, when the verification key is calculated according to the network identification code, the verification key may be sequentially calculated and based on the verification key obtained by each calculation. A connection request is sent to the networked device. If a message that the networked device fails to pass the verification is received, calculation is performed according to the next correspondence relationship until a connection is established with the networked device.

步驟S214,與所述連網裝置建立連接後,傳送模組210根據伺服器的位址與所述伺服器建立連接,並傳送所述連網周邊裝置與所述連網裝置的裝置識別碼以使所述伺服器進行許可權驗證。 Step S214: After establishing a connection with the networked device, the transmission module 210 establishes a connection with the server according to the address of the server, and transmits the device identification codes of the networked peripheral device and the networked device to The server is allowed to perform permission verification.

步驟S215,若許可權驗證通過,通訊模組211與所述伺服器進行網路通訊。 In step S215, if the permission verification is passed, the communication module 211 performs network communication with the server.

上述伺服器是所述連網周邊裝置要訪問的伺服器。所述伺服器的位址具體可以是所述伺服器的網路位址。 The server is a server to be accessed by the network-connected peripheral device. The address of the server may specifically be a network address of the server.

所述連網周邊裝置與所述連網裝置的裝置識別碼也可以稱為連網周邊裝置的device ID以及連網裝置的device ID,可以用於唯一標識該連網周邊裝置與連網裝置。將所述連網周邊裝置與所述連網裝置的識別碼傳送至伺服器以使伺服器進行許可權驗證。 The device identification codes of the connected peripheral device and the connected device may also be referred to as the device ID of the connected peripheral device and the device ID of the connected device, and may be used to uniquely identify the connected peripheral device and the connected device. And transmitting the identification code of the connected peripheral device and the connected device to a server to enable the server to perform permission verification.

具體的,伺服器中可預先保存使用者與電子裝置的裝置識別碼以及與連網裝置的裝置識別碼的對應關係,則在進行許可權驗證時,可以驗證電子裝置與連網裝置是否同時為某一使用者有權使用的裝置,若是,則確定許可權驗證通過,若否,則確定許可權驗證未通過。 Specifically, the server can store in advance the correspondence between the device identification code of the user and the electronic device and the device identification code of the networked device. When the permission verification is performed, it can be verified whether the electronic device and the networked device are both For a device that a user is entitled to use, if yes, it is determined that the permission verification is passed; if not, it is determined that the permission verification is not passed.

當許可權驗證通過時,與所述伺服器進行網路通訊。例如,可以進行資訊的上傳與下載。 When permission verification is passed, network communication is performed with the server. For example, you can upload and download information.

在本發明的另一實施例中,還可以依據伺服器根據連網周邊裝置的裝置識別碼分配的網路通信許可權進行相應的網路業務操作。即,伺服器可以根據連網周邊裝置的裝置識別碼來確定該連網周邊裝置擁有哪些網路業務的許可權,並向該連網周邊裝置分配這些網路業務的許可權,連網周邊裝置則依據分配的許可權進行相應的網路業務操作。 In another embodiment of the present invention, a corresponding network service operation may also be performed according to the network communication permission allocated by the server according to the device identification code of the connected peripheral device. That is, the server can determine which network services permission rights the network peripheral device has based on the device identification code of the network peripheral device, and assign the network service permission rights to the network peripheral device. Corresponding network business operations are performed according to the assigned permissions.

在本發明的另一實施例中,所述網路連接方法還包括:若許可權認證未通過,接收模組212接收所述伺服器傳送的第二連網裝置的ID,其中,所述第二連網裝置中設置的與所述網路識別碼對應的預先共享金鑰驗證金鑰由所述網路識別碼和所述預先設置的對應關係產生。 In another embodiment of the present invention, the network connection method further includes: if the permission authentication fails, the receiving module 212 receives the ID of the second networked device transmitted by the server, wherein the first The pre-shared key verification key corresponding to the network identification code set in the two networked devices is generated by the network identification code and the preset correspondence relationship.

第四連網模組213根據所述第二連網裝置的網路識別碼和所述連網周邊裝置中保存的對應關係與所述第二連網裝置建立連接。 The fourth networking module 213 establishes a connection with the second networked device according to the correspondence between the network identification code of the second networked device and the saved peripheral device.

在該實施例中,上述第二連網裝置可以是伺服器中保存的與連網周邊裝置同屬於某一使用者的連網裝置。 In this embodiment, the above-mentioned second networked device may be a networked device that is stored in the server and belongs to the same user as the networked peripheral device.

由於所述第二連網裝置中設置的與所述網路識別碼對應的預先共享金鑰驗證金鑰由所述網路識別碼和所述預先設置的對應關係產生,因此,對於以同樣的網路識別碼,連網周邊裝置中可以生成與第二連網裝置相同的驗證金鑰,進而可以與第二連接裝置建立連接。 Because the pre-shared key verification key corresponding to the network identification code set in the second networked device is generated by the network identification code and the preset correspondence relationship, therefore, for the same The network identification code, the same authentication key as that of the second networked device can be generated in the networked peripheral device, and then a connection can be established with the second connected device.

下面以連網周邊裝置為網路攝影機和POS機的掃描裝置為例進行說明。 The following description uses scanning devices whose networked peripheral devices are network cameras and POS machines as examples.

例如,連網周邊裝置是網路攝影機(IP Camera,IP Cam),當網路攝影機通過連網裝置連接網路並在對應伺服器端通過許可權認證後,網路攝影機負責向該伺服器傳輸即時影像、事件通報及離線時事件錄影。 For example, the connected peripheral device is an IP camera (IP Camera). After the network camera connects to the network through the connected device and passes the license authentication on the corresponding server, the network camera is responsible for transmitting to the server. Live video, event notification and offline event recording.

即時影像資料可以是,透過即時消息傳輸協定(Real-Time Messaging Protocol,RMTP)向該伺服器傳輸即時影像。該伺服器還可以轉送該即時影像給使用者,例如該伺服器轉送該即時影像給使用者的電腦、手機等電子裝置。 The real-time image data may be transmitted to the server through the Real-Time Messaging Protocol (RMTP). The server can also forward the real-time image to the user, for example, the server can forward the real-time image to the user's computer, mobile phone, and other electronic devices.

事件通報可以是,當網路攝影機偵測到物件移動或時分貝超過預設的警戒值時,網路攝影機截取當下畫面後上報監控事件與截圖至該伺服器。 The event notification may be that when the web camera detects object movement or the hour decibel exceeds the preset alert value, the web camera captures the current screen and reports a monitoring event and screenshot to the server.

離線時事件錄影可以是,當網路攝影機未連接上網路時,若偵測到物件移動或是分貝超過警戒值,需將該事件影片保存下來,待取得網路連線後再將影片上傳至該伺服器。 The event recording when offline can be: when the network camera is not connected to the network, if it detects that the object moves or the decibel exceeds the alert value, you need to save the event video, upload the video to the network after obtaining the network connection The server.

與網路攝影機對應伺服器可以在接收到監控事件通知時,通知使用者發生事件,並引導使用者流覽即時影像資料。該伺服器也可以在接收到監控事件通知時,將即時影像記錄製成事件剪輯,當產生事件剪輯之影像後,進行影響分析,判斷該影片中能正面偵測人臉的數量。進一 步地,該伺服器還可以在根據影片中能正面偵測人臉的數量來計算事件剪輯影像中出現之不重複人次。 The server corresponding to the network camera can notify the user of the occurrence of the event when receiving the monitoring event notification, and guide the user to browse the real-time image data. The server can also record real-time images into event clips when receiving a monitoring event notification. After the event clip images are generated, an impact analysis is performed to determine the number of faces that can be positively detected in the movie. Into one Step by step, the server can also calculate the number of unique people appearing in the event clip image based on the number of faces that can be detected positively in the movie.

又比如,連網周邊裝置是POS機的掃描裝置,當POS機的掃描裝置通過連網裝置連接網路並在對應伺服器端通過許可權認證後,POS機的掃描裝置可以即時(Real-Time)的方式記錄所販賣的產品品項及數量,並上傳至該伺服器。 For another example, the connected peripheral device is the scanning device of the POS machine. When the scanning device of the POS machine is connected to the network through the connected device and passes the permission authentication on the corresponding server, the scanning device of the POS machine can be real-time ) To record the items and quantities of the products sold and upload them to the server.

POS機的掃描裝置還可以記錄店家倉儲中各類品項之庫存情形,並上傳至該伺服器。 The scanning device of the POS machine can also record the inventory situation of various items in the store's warehouse and upload it to the server.

POS機的掃描裝置還可以以會員ID等方式記錄個別客戶消費的情形,並上傳至該伺服器。 The scanning device of the POS machine can also record the consumption situation of individual customers by means of member ID and upload it to the server.

與POS機的掃描裝置對應的伺服器可以在接收到販賣的產品品項及數量、店家倉儲中各類品項之庫存之後,於特定商品庫存不足時自動向供應商訂貨,維持貨品供應的穩定。該伺服器也可以根據販賣的產品品項及數量、店家倉儲中各類品項之庫存進行未來一段時間內的銷量預測,予經營者參考。該伺服器還可以根據販賣的產品品項及數量、店家倉儲中各類品項之庫存進行分析,提出針對特定客群、特定產品的行銷活動方案。 The server corresponding to the scanning device of the POS machine can automatically order from the supplier when the inventory of specific products is insufficient after receiving the sold product items and quantities, and the inventory of various items in the store's warehouse, to maintain the stability of the supply of goods . The server can also predict the sales volume in the future based on the items and quantity of products sold and the inventory of various items in the store's warehouse for the operator's reference. The server can also analyze the items and quantity of products sold, the inventory of various items in the store's warehouse, and propose a marketing plan for specific customer groups and specific products.

在本發明的另一實施例中,所述連網周邊裝置還包括:第二連網模組208,用於若接收到所述第一連網裝置更新並廣播的網路識別碼,根據所述第一連網裝置更新並廣播的網路識別碼和所述連網周邊裝置中保存的對應關係與所述第一連網裝置建立連接。 In another embodiment of the present invention, the networked peripheral device further includes: a second networked module 208, configured to receive a network identification code updated and broadcasted by the first networked device according to The network identifier updated and broadcasted by the first networked device and the correspondence relationship stored in the networked peripheral device establishes a connection with the first networked device.

在本實施例中,由於第一連網裝置的網路識別碼更新之後,驗證金鑰也會更新。因此連網周邊裝置接收到更新的網路識別碼之後,根據 保存的對應關係再次計算驗證金鑰,並通過再次計算的驗證金鑰與更新的網路識別碼與第一連網裝置建立連接。 In this embodiment, since the network identification code of the first connected device is updated, the verification key is also updated. Therefore, after the connected network device receives the updated network identifier, The saved correspondence relationship recalculates the verification key, and establishes a connection with the first networked device through the recalculated verification key and the updated network identification code.

在本發明的另一實施例中,所述網路連接方法還包括:第三連網模組209若接收所述第一連網裝置以外的其他連網裝置廣播的ID,根據所述其他連網裝置廣播的網路識別碼和所述連網周邊裝置中保存的對應關係與所述其他連網裝置建立連接。 In another embodiment of the present invention, the network connection method further includes: if the third network connection module 209 receives an ID broadcasted by another networked device other than the first networked device, according to the other connection The network identification code broadcast by the network device and the corresponding relationship saved in the networked peripheral device establish a connection with the other networked device.

在該實施例中,連網周邊裝置與第一連網周邊裝置建立連接以後,若當前環境中還存在其他的連網周邊裝置,連網周邊裝置還可以與其他連網周邊裝置建立連接。 In this embodiment, after the networked peripheral device is connected to the first networked peripheral device, if there are other networked peripheral devices in the current environment, the networked peripheral device may also establish a connection with other networked peripheral devices.

請參見圖6,是一個連網周邊裝置與多個連網裝置進行連接的示意圖,在圖6中,一個連網周邊裝置可以根據本發明網路連接方法與兩個連網裝置建立連接。實際應用中,一個連網周邊裝置可以根據本發明網路連接方法數量大於兩個的連網裝置分別建立連接。 Please refer to FIG. 6, which is a schematic diagram of connection between a networked peripheral device and multiple networked devices. In FIG. 6, a networked peripheral device can establish a connection with two networked devices according to the network connection method of the present invention. In practical applications, one networked peripheral device can establish connections according to the network connection method of the present invention with more than two networked devices, respectively.

參閱圖7所示,是本發明較佳實施方式的網路連接系統的架構圖,本發明所述的網路連接系統包括連網裝置1、連網周邊裝置2及伺服器3。 Referring to FIG. 7, it is a structural diagram of a network connection system according to a preferred embodiment of the present invention. The network connection system according to the present invention includes a network connection device 1, a network peripheral device 2, and a server 3.

在本實施例中,連網周邊裝置還可以包括ISP4、英特網5及使用者6。 In this embodiment, the network-connected peripheral devices may further include an ISP 4, an Internet 5, and a user 6.

如圖7所示,一個或多個連網裝置1可以與一個或多個連網周邊裝置2建立連接,連網周邊裝置2與由網路服務提供者ISP4提供的Ineternet英特網5連接,伺服器3與英特網5連接,使用者6通過個人電腦等裝置與連網裝置1連接。因此,連網周邊裝置2可以通過與連網裝置1建立連接之後與英特網5及伺服器3進行通信。 As shown in FIG. 7, one or more networked devices 1 may establish a connection with one or more networked peripheral devices 2. The networked peripheral devices 2 are connected to the Ineternet Internet 5 provided by the network service provider ISP4. The server 3 is connected to the Internet 5, and the user 6 is connected to the network-connected device 1 through a device such as a personal computer. Therefore, the connected peripheral device 2 can communicate with the Internet 5 and the server 3 after establishing a connection with the connected device 1.

所述連網裝置1,用於啟動時動態產生一個或多個服務設定識別碼網路識別碼,根據所述一個或多個網路識別碼以及所述連網裝置中預 先設置的對應關係產生與每個網路識別碼對應的預先共享金鑰驗證金鑰,根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置,廣播所述連網裝置設置的網路識別碼;所述連網周邊裝置2,用於搜尋所述連網裝置廣播的網路識別碼,根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;所述連網裝置1,還用於接收周圍的連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述周圍的連網周邊裝置發送的驗證金鑰由所述周圍的連網裝置根據搜尋到的網路識別碼和所述周圍的連網裝置中保存的對應關係產生,當驗證通過時,與所述周圍的連網周邊裝置建立連接使得所述周圍的連網周邊裝置經由所述連網裝置存取網路。 The network connection device 1 is configured to dynamically generate one or more service setting identifiers and network identification codes at startup, according to the one or more network identification codes and a preset value in the network connection device. The correspondence relationship set first generates a pre-shared key verification key corresponding to each network identification code, and performs network parameter setting on the connected device according to the generated network identification code and verification key, and broadcasts the connection. The network identification code set by the network device; the network peripheral device 2 is used for searching the network identification code broadcast by the network device, and according to the network identification code and the correspondence stored in the network peripheral device The relationship calculates a verification key corresponding to the network identification code, and sends the verification key corresponding to the network identification code to the first according to the network identification code and the networked peripheral device. The network-connected device sends a connection request. Among the correspondences stored in the network-connected peripheral devices, the same correspondence exists in the preset correspondence; the network-connected device 1 is further configured to receive the surrounding network. The network identification code and the verification key sent by the peripheral device are used to verify the received network identification code and the verification key, and the verification key sent by the surrounding networked peripheral device is provided by the surrounding networked device. It is generated according to the searched network identification code and the corresponding relationship saved in the surrounding connected devices. When the verification is passed, a connection is established with the surrounding connected peripheral devices so that the surrounding connected peripheral devices pass through the The networked devices access the network.

所述連網周邊裝置2,還用於與所述連網裝置建立連接後,根據所述伺服器的位址與所述伺服器建立連接,並發送所述連網周邊裝置與所述連網裝置的裝置識別碼;所述伺服器3,用於對接收到的所述連網周邊裝置發送的所述連網周邊裝置與所述連網裝置的裝置識別碼進行許可權驗證,若許可權驗證通過,與所述連網周邊裝置進行網路通訊。 The networked peripheral device 2 is further configured to establish a connection with the server according to the address of the server after establishing a connection with the networked device, and send the networked peripheral device to the networked device. The device identification code of the device; the server 3 is configured to perform permission verification on the device identification codes of the networked peripheral device and the networked device that are received by the networked peripheral device; Pass the verification and perform network communication with the connected peripheral device.

有關連網裝置1、連網周邊裝置2及伺服器3的相關說明還請參照前述實施例中的相關描述,此處不再贅述。 For related descriptions of the network-connected device 1, the network-connected peripheral device 2, and the server 3, please refer to the related description in the foregoing embodiment, and details are not described herein again.

以上實施例僅用以說明本發明的技術方案而非限制,儘管參照以上較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或者等同替換都不應脫離本發明技術方案的精神和範圍。 The above embodiments are only used to illustrate the technical solution of the present invention and are not limiting. Although the present invention has been described in detail with reference to the above preferred embodiments, those skilled in the art should understand that the technical solution of the present invention may be modified or equivalently replaced. All should not depart from the spirit and scope of the technical solution of the present invention.

在本發明所提供的幾個實施例中,應該理解到,所揭露的系統,裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。 In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division, and there may be another division manner in actual implementation.

所述作為分離部件說明的模組可以是或者也可以不是物理上分開的,作為模組顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。 The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, which may be located in one place, or may be distributed to multiple networks. On the unit. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment.

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

上述以軟體功能模組的形式實現的集成的單元,可以儲存在一個計算器可讀取儲存介質中。上述軟體功能模組儲存在一個儲存介質中,包括若干指令用以使得一台計算器設備(可以是個人計算器,伺服器,或者網路設備等)或處理器(processor)執行本發明各個實施例所述方法的部分步驟。 The integrated unit implemented in the form of a software function module can be stored in a calculator-readable storage medium. The above software function module is stored in a storage medium, and includes several instructions for causing a calculator device (which may be a personal calculator, a server, or a network device) or a processor to execute various implementations of the present invention. Part of the method described in the example.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附申請專利範圍而 不是上述說明限定,因此旨在將落在申請專利範圍的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將申請專利範圍中的任何附關聯圖標記視為限制所涉及的申請專利範圍。此外,顯然“包括”一詞不排除其他單元或步驟,單數不排除複數。系統申請專利範圍中陳述的多個單元或裝置也可以由一個單元或裝置透過軟體或者硬體來實現。“第一”,“第二”(如果存在)等詞語用來表示名稱,而並不表示任何特定的順序。 It is obvious to a person skilled in the art that the present invention is not limited to the details of the above-mentioned exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, regardless of the point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is determined by the scope of the attached patent application. It is not limited by the above description, and therefore it is intended to encompass all changes that fall within the meaning and scope of equivalent elements of the scope of patent application. Any associated figure mark in the scope of patent application should not be regarded as limiting the scope of patent application involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and that the singular does not exclude the plural. Multiple units or devices stated in the scope of the system application patent can also be implemented by one unit or device through software or hardware. Words such as "first", "second" (if present) are used to indicate names, and do not indicate any particular order.

最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solution of the present invention.

Claims (29)

一種連網裝置,其中,所述連網裝置包括:至少一個存儲單元;至少一個處理器;以及至少一個模組,所述至少一個模組被存儲在所述存儲單元中並被配置成由所述至少一個處理器執行,所述至少一個模組包括:一第一產生模組,用於啟動時動態產生一個或多個網路識別碼,所述網路識別碼用於標識網路;一第二產生模組,用於根據所述網路識別碼以及所述連網裝置中預先設置的對應關係產生與所述網路識別碼對應的驗證金鑰;一設置模組,用於根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;一第一接收驗證模組,用於廣播所述連網裝置設置的網路識別碼,並接收連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述連網周邊裝置發送的驗證金鑰由所述連網裝置根據搜尋到的網路識別碼和所述連網裝置中保存的對應關係產生,其中,所述連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係;一第一連接模組,用於當驗證通過時,與所述連網周邊裝置建立連接使得所述連網周邊裝置經由所述連網裝置存取網路;一第二接收驗證模組,用於當所述連網周邊裝置發送的網路識別碼與驗證金鑰未通過驗證時,接收所述連網周邊裝置發送的新的網路識別碼與新的驗證金鑰,並進行再次驗證;或者當所述連網周邊裝置發送的網路識別碼與驗證金 鑰未通過驗證時,再次接收所述連網周邊裝置發送的網路識別碼與新的驗證金鑰,並進行再次驗證;及一第二連接模組,用於當再次驗證通過時,與所述連網周邊裝置建立連接;一第一發送模組,用於向所述連網周邊裝置發送所述連網裝置的裝置識別碼。 A networking device, wherein the networking device includes: at least one storage unit; at least one processor; and at least one module, the at least one module is stored in the storage unit and configured to be accessed by all The at least one processor executes, the at least one module includes: a first generating module for dynamically generating one or more network identification codes at startup, the network identification codes are used to identify a network; A second generating module is configured to generate a verification key corresponding to the network identification code according to a preset relationship in the network identification code and the connected device; a setting module is configured to generate a verification key corresponding to the network identification code; A network identification code and a verification key to set network parameters of the connected device; a first receiving verification module for broadcasting the network identification code set by the connected device, and receiving a connected peripheral device The network identification code and verification key sent are used to verify the received network identification code and verification key. The verification key sent by the connected peripheral device is identified by the connected device based on the searched network identification. Code and the corresponding relationship saved in the networked device, wherein the corresponding relationship saved in the networked device has the same corresponding relationship as the preset corresponding relationship; a first connection module, When the authentication is passed, a connection is established with the connected peripheral device so that the connected peripheral device accesses the network through the connected device; a second receiving verification module is used when the connected peripheral device is When the sent network identification code and verification key fail to pass the verification, receive the new network identification code and new verification key sent by the connected peripheral device, and perform the verification again; or when the connected peripheral device Network ID and verification fee sent When the key fails to pass the verification, the network identification code and the new verification key sent by the connected peripheral device are received again, and the verification is performed again; and a second connection module is used to communicate with all The network peripheral device establishes a connection; a first sending module is configured to send the device identification code of the network peripheral device to the network peripheral device. 如申請專利範圍第1項所述的連網裝置,其中,所述連網裝置還包括一第一通訊模組:用於產生多組網路識別碼和對應之驗證金鑰,所述多組網路識別碼分別代表相同或不同之網域、頻段或通訊協定,可提供一或多個連網周邊裝置,以所述之對應關係進行連接,建立連接後提供所述一或多個連網周邊裝置存取網路。 The networked device according to item 1 of the scope of patent application, wherein the networked device further includes a first communication module: used to generate multiple sets of network identification codes and corresponding verification keys, the multiple sets The network identifiers represent the same or different network domains, frequency bands, or communication protocols, and can provide one or more networked peripheral devices, which are connected in the corresponding relationship, and provide the one or more networked connections after the connection is established. Peripheral devices access the network. 如申請專利範圍第1項所述的連網裝置,其中,所述連網裝置還包括一第二通訊模組:用於對多個具有多組網路識別碼和對應之驗證金鑰之連網周邊裝置,以同樣的對應關係進行連接,建立連接後透過所述一或多個連網裝置存取網路;其中所述之多組網路識別碼和對應之驗證金鑰可能代表相同或不同之網域、頻段或通訊協定。 The networked device according to item 1 of the scope of patent application, wherein the networked device further includes a second communication module for connecting a plurality of networks having multiple sets of network identification codes and corresponding authentication keys. Network peripheral devices are connected with the same correspondence relationship, and the network is accessed through the one or more networked devices after the connection is established; the plurality of sets of network identification codes and corresponding authentication keys may represent the same or Different domains, frequency bands, or communication protocols. 如申請專利範圍第1項所述的連網裝置,其中,所述連網裝置還包括:將所述連網周邊裝置傳送的所述連網裝置的裝置識別碼和所述周圍的連網裝置的裝置識別碼發送至伺服器。 The networked device according to item 1 of the scope of patent application, wherein the networked device further includes: a device identification code of the networked device transmitted by the networked peripheral device and the surrounding networked device Sends the device identification number to the server. 一種連網周邊裝置,其中,所述連網周邊裝置包括:至少一個存儲單元;至少一個處理器;以及 至少一個模組,所述至少一個模組被存儲在所述存儲單元中並被配置成由所述至少一個處理器執行,所述至少一個模組包括:一搜尋模組,用於搜尋第一連網裝置廣播的網路識別碼,所述網路識別碼用於標識網路;一計算模組,用於根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,且根據所述網路識別碼和預先設置之一個或多個對應關係產生驗證金鑰,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;一第一連網模組,用於根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,以使所述連網裝置連接到所述第一連網裝置後經由所述第一連網裝置存取網路;一確認模組,用於接收到所述第一連網裝置返回的驗證通過消息時,確認與所述連網裝置建立連接;其中,若根據所述網路識別碼和所述預先設置之一或多個對應關係產生驗證金鑰中的第一對應關係產生的驗證金鑰為第一驗證金鑰,則所述第一連網模組根據所述網路識別碼和所述第一驗證金鑰向所述第一連網裝置發送連接請求;若接收到所述第一連網裝置返回的驗證未通過消息,則所述第一連網模組選取所述計算模組中所述第一驗證金鑰以外的其他驗證金鑰與所述第一連網裝置進行連接。 A networked peripheral device, wherein the networked peripheral device includes: at least one storage unit; at least one processor; and At least one module, the at least one module being stored in the storage unit and configured to be executed by the at least one processor, the at least one module including: a search module for searching the first A network identification code broadcast by a connected device, the network identification code is used to identify the network; a calculation module is used to calculate a correspondence relationship between the network identification code and the connected peripheral device A verification key corresponding to the network identification code, and a verification key is generated according to the correspondence relationship between the network identification code and one or more preset relationships. The correspondence relationship stored in the connected peripheral device exists in The preset correspondence relationship is the same; a first networking module is configured to calculate a verification fee corresponding to the network identifier based on the network identifier and the connected peripheral device. A key to send a connection request to the first networked device, so that the networked device accesses the network through the first networked device after connecting to the first networked device; a confirmation module for Received the first connection When the returned verification pass message is set, it is confirmed that a connection is established with the network-connected device; wherein if the first correspondence relationship in the verification key is generated according to the network identification code and the preset one or more correspondence relationships, If the generated verification key is a first verification key, the first network connection module sends a connection request to the first network connection device according to the network identification code and the first verification key. If the verification returned to the first networked device fails, the first networked module selects a verification key other than the first verification key in the computing module and the first connection module. Network device for connection. 如申請專利範圍第5項所述的連網周邊裝置,其中,所述搜尋模組還用於:搜尋新的網路識別碼,並依照所述對應關係產生驗證金鑰;所述第一連網模組還用於:根據所述新的網路識別碼和所述第一驗證金鑰與所述第一連網裝置進行連接。 The connected peripheral device according to item 5 of the scope of patent application, wherein the search module is further configured to: search for a new network identification code and generate a verification key according to the corresponding relationship; the first connection The network module is further configured to connect to the first networked device according to the new network identification code and the first authentication key. 如申請專利範圍第5和第6項中任一項所述的連網周邊裝置,其中所述連網周邊裝置還包括:一裝置識別碼發送模組,用於與所述第一連網裝置建立連接後,根據伺服器的位址與所述伺服器建立連接,並發送所述連網周邊裝置的裝置識別碼和所述第一連網裝置的裝置識別碼,進行許可權驗證。 The networked peripheral device according to any one of claims 5 and 6, wherein the networked peripheral device further includes: a device identification code sending module for communicating with the first networked device. After the connection is established, a connection is established with the server according to the address of the server, and the device identification code of the connected peripheral device and the device identification code of the first connected device are sent to perform permission verification. 如申請專利範圍第7項所述的連網周邊裝置,其中,所述連網周邊裝置還包括:接收模組,用於若許可權認證未通過,接收所述伺服器傳送的第二連網裝置的網路識別碼,其中,所述第二連網裝置中設置的與所述ID對應的Network驗證金鑰由所述ID和所述預先設置的對應關係產生。 The networked peripheral device according to item 7 of the scope of patent application, wherein the networked peripheral device further includes a receiving module for receiving the second networked connection transmitted by the server if the permission authentication fails. The network identification code of the device, wherein the Network verification key corresponding to the ID set in the second networked device is generated by the ID and the preset correspondence relationship. 如申請專利範圍第7項所述的連網周邊裝置,於許可權驗證未通過時,可使用另一組符合預先對應關係之網路識別碼與驗證金鑰和其它連網裝置進行連接,並根據預存之伺服器位址與所述伺服器建立連接,並再次進行驗證,其中,該另一組符合預先對應關係之網路識別碼可由所述伺服器所傳送。 If the connected peripheral device described in item 7 of the scope of the patent application, when the permission verification fails, another set of network identifiers that meet the pre-correspondence relationship can be used to connect with the authentication key and other connected devices, and A connection is established with the server based on the pre-stored server address, and verification is performed again, wherein the other set of network identification codes that conform to the pre-mapping relationship may be transmitted by the server. 如申請專利範圍第5和第6項中任一項所述的連網周邊裝置,其中,所述連網周邊裝置為輸入裝置或輸出裝置。 The networked peripheral device according to any one of claims 5 and 6, wherein the networked peripheral device is an input device or an output device. 如申請專利範圍第10項所述的連網周邊裝置,其中,所述輸入裝置為感測器,或者接收使用者輸入資訊的電子裝置,所述輸出裝置為接收指令並輸出資料的電子裝置,或者根據接收到的指令判斷並執行回應操作的電子裝置。 According to the networked peripheral device described in claim 10, wherein the input device is a sensor or an electronic device that receives information input by a user, and the output device is an electronic device that receives instructions and outputs data, Or an electronic device that judges and executes a response operation according to the received instruction. 一種網路連接系統,其中,所述系統包括一第一連網裝置、一既有連網裝置、至少一個其他連網裝置、一第一連網周邊裝置及一伺服器; 所述第一連網裝置,用於根據所述第一連網裝置中一個或多個網路識別碼以及所述第一連網裝置中預先設置的對應關係產生與每個網路識別碼對應的驗證金鑰,根據所述一個或多個網路識別碼以及驗證金鑰對所述第一連網裝置進行網路參數設置,廣播所述第一連網裝置設置的網路識別碼,所述網路識別碼用於標識網路;所述第一連網周邊裝置,用於搜尋所述第一連網裝置廣播的網路識別碼,根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;所述既有連網裝置,用於供所述第一連網裝置進行連線,使所述第一連網裝置通過所述既有連網裝置連接網路;所述第一連網周邊裝置,還用於與所述第一連網裝置建立連接後,根據伺服器的位址與所述伺服器建立連接,並向所述伺服器發送所述連網周邊裝置的裝置識別碼與所述第一連網裝置的裝置識別碼;所述第一連網周邊裝置,還用於接收所述伺服器發送的其他連網裝置的網路識別碼,根據所述其他連網裝置的網路識別碼和所述第一連網周邊裝置中保存的對應關係與所述其他連網裝置建立連接;所述伺服器,用於對接收到的所述連網周邊裝置的裝置識別碼與所述第一連網裝置的裝置識別碼進行許可權驗證,若許可權驗證通過,與所述連網周邊裝置進行網路通訊;若許可權驗證不通過,則接收所述伺服器傳送的其他連網裝 置的網路識別碼,其中,所述其他連網裝置中設置的與所述網路識別碼對應的驗證金鑰由所述網路識別碼和所述預先設置的對應關係產生。 A network connection system, wherein the system includes a first networking device, an existing networking device, at least one other networking device, a first networking peripheral device, and a server; The first networking device is configured to generate a correspondence with each network identification code according to one or more network identification codes in the first networking device and a preset correspondence relationship in the first networking device. To set the network parameter of the first connected device according to the one or more network identification codes and the verification key, and broadcast the network identification code set by the first connected device. The network identification code is used to identify the network; the first connected peripheral device is used to search for the network identification code broadcast by the first connected device, according to the network identification code and the connected peripheral. The correspondence saved in the device is used to calculate a verification key corresponding to the network identification code, and the verification key corresponding to the network identification code is calculated according to the network identification code and the connected peripheral device. Sending a connection request to the first networked device, wherein among the corresponding relationships stored in the networked peripheral device, there is a corresponding relationship that is the same as the preset corresponding relationship; the existing networked device is configured to: For said first networked device To connect the first networked device to the network through the existing networked device; the first networked peripheral device is further configured to establish a connection with the first networked device, and The server's address establishes a connection with the server, and sends the device identification code of the connected peripheral device and the device identification code of the first connected device to the server; the first connected peripheral device And is further configured to receive network identification codes of other networked devices sent by the server, and according to the correspondence relationship between the network identification codes of the other networked devices and the first networked peripheral device and the Establishing a connection with another networked device; the server is configured to perform permission verification on the received device identification code of the connected peripheral device and the device identification code of the first networked device, if the permission verification passes To perform network communication with the connected peripheral device; if the permission verification fails, other connected devices sent by the server are received A set network identification code, wherein the verification key corresponding to the network identification code set in the other networked device is generated by the network identification code and the preset correspondence relationship. 如申請專利範圍第12項所述的網路連接系統,其中,所述網路連接系統還包括一第二連網裝置;所述第二連網裝置,用於根據所述第二連網裝置中一個或多個服務設定網路識別碼以及所述第二連網裝置中預先設置的對應關係產生與每個網路識別碼對應的預先共用金鑰驗證金鑰,根據所述一個或多個網路識別碼以及驗證金鑰對所述第二連網裝置進行網路參數設置,廣播所述第二連網裝置設置的網路識別碼,以使所述第一連網周邊設備根據所述第二連網裝置廣播的網路識別碼與所述第二連網裝置進行連接。 The network connection system according to item 12 of the patent application scope, wherein the network connection system further includes a second network connection device, and the second network connection device is configured to be based on the second network connection device. One or more services sets a network identification code and a preset correspondence relationship in the second networked device generates a pre-shared key verification key corresponding to each network identification code, according to the one or more A network identification code and a verification key to set network parameters for the second networked device, and broadcast the network identification code set by the second networked device to enable the first networked peripheral device to The network identification code broadcast by the second networked device is connected to the second networked device. 如申請專利範圍第12項所述的網路連接系統,其中,所述網路連接系統還包括:至少一個其他的連網周邊裝置,用於當所述至少一個其他的連網周邊裝置中的任一連網周邊裝置發送的網路識別碼與驗證金鑰通過驗證時,與所述任一連網裝置或第二連網裝置建立連接。 The network connection system according to item 12 of the scope of patent application, wherein the network connection system further includes: at least one other networked peripheral device, and When the network identification code and verification key sent by any connected peripheral device pass the verification, a connection is established with the any connected device or the second connected device. 如申請專利範圍第12項所述的網路連接系統,其中,所述伺服器,用於根據接收到的所述第一連網周邊裝置的裝置識別碼與所述第一連網裝置的裝置識別碼進行許可權驗證,若許可權驗證通過,與所述第一連網周邊裝置進行網路通訊。 The network connection system according to item 12 of the patent application scope, wherein the server is configured to receive the device identification code of the first connected peripheral device and the device of the first connected device according to the received device identification code of the first connected peripheral device. The identification code performs permission verification, and if the permission verification is passed, network communication is performed with the first connected peripheral device. 如申請專利範圍第12項所述的網路連接系統,其中,所述第一連網裝置還用於動態產生一個或多個網路識別碼。 The network connection system according to item 12 of the patent application scope, wherein the first network connection device is further configured to dynamically generate one or more network identification codes. 如申請專利範圍第12項所述的網路連接系統與所述第一連網周邊裝置進行網路通訊,包括以下步驟:根據所述第一連網周邊裝置的裝置識別碼和所述第一連網裝置的裝置識別碼獲取所述第一連網裝置可進行網路服務的 類型,根據所述可進行網路服務的類型與所述伺服器進行網路通信,其中所述可進行網路服務的類型包括接收指令回傳資料的服務、接收資料並儲存的服務及監控並回傳即時影響的服務。 The network connection system according to item 12 of the patent application for performing network communication with the first connected peripheral device includes the following steps: according to the device identification code of the first connected peripheral device and the first connected peripheral device The device identification code of the connected device obtains the information that the first connected device can perform network services. Type, to perform network communication with the server according to the type of network service that can be performed, where the type of network service that can be performed includes a service that receives a command to return data, a service that receives data and stores it, and Post back impacted services. 如申請專利範圍第12項所述的網路連接系統,其中,所述連網裝置的裝置識別碼和所述第一連網周邊裝置的裝置識別碼與使用者帳號之間存在一對應關係。 The network connection system according to item 12 of the scope of patent application, wherein there is a correspondence relationship between the device identification code of the connected device and the device identification code of the first connected peripheral device and the user account. 如申請專利範圍第12項所述的網路連接系統,其中,所述第一連網周邊裝置可以用於接收所述伺服器發送的指令及資料,以及向所述伺服器輸出指令及資料。 According to the network connection system according to item 12 of the patent application scope, wherein the first networked peripheral device can be used to receive instructions and data sent by the server, and output instructions and data to the server. 一種用於網路連接的電腦程式產品,經由連網裝置載入一程式執行:一第一程式指令,根據所述連網裝置的網路識別碼以及所述連網裝置中預先設置的對應關係產生與所述網路識別碼對應的驗證金鑰,所述網路識別碼用於標識網路;一第二程式指令,根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;一第三程式指令,廣播所述連網裝置設置的網路識別碼,並接收連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述連網周邊裝置發送的驗證金鑰由所述連網裝置根據搜尋到的網路識別碼和所述連網裝置中保存的對應關係產生,其中,所述連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係;一第四程式指令,當驗證通過時,與所述連網周邊裝置建立連接使得所述連網周邊裝置經由所述連網裝置存取網路,而和所述連網裝置建立連接後,根 據所存伺服器之位址和該伺服器建立連接,並發送所述連網裝置之裝置識別碼與所述連網周邊裝置之識別碼,進行許可權驗證,其中當許可權驗證未通過時,可使用另一組符合預先對應關係之網路識別碼和驗證金鑰和其他連網裝置建立連接,並再次根據所存伺服器之位址和該伺服器建立連接,並發送所述連網裝置之裝置識別碼與所述連網周邊裝置之識別碼進行驗證。 A computer program product for network connection, which loads a program for execution via a networked device: a first program instruction, according to a network identification code of the networked device and a preset correspondence relationship in the networked device Generating a verification key corresponding to the network identification code, the network identification code is used to identify the network; a second program instruction, performing a network identification on the connected device according to the generated network identification code and the verification key Network parameter setting; a third program instruction broadcasts the network identification code set by the connected device, and receives the network identification code and verification key sent by the connected peripheral device, and the received network identification code and A verification key is used for verification. The verification key sent by the connected peripheral device is generated by the connected device according to the searched network identification code and the corresponding relationship stored in the connected device, wherein the connected network Among the correspondences stored in the device, there is the same correspondence as the preset correspondence; a fourth program instruction, when the verification is passed, establishes a connection with the connected peripheral device so that all After the networked peripheral device via the access network networking device, the networking device and the connection is established, the root Establish a connection with the server based on the address of the stored server, and send the device identification code of the connected device and the identification code of the connected peripheral device to perform permission verification. When the permission verification fails, You can use another set of network identifiers and authentication keys that match the pre-mapping relationship to establish a connection with another connected device, establish a connection with the server again based on the address of the stored server, and send the connected device's The device identification code is verified with the identification code of the connected peripheral device. 如申請專利範圍第20項所述的電腦程式產品,該電腦程式產品還包含第五程式指令,具體用於:動態產生一個或多個網路識別碼。 For example, the computer program product described in item 20 of the scope of patent application, the computer program product further includes a fifth program instruction, which is specifically used to dynamically generate one or more network identification codes. 一種用於網路連接的電腦程式產品,經由連網周邊裝置載入該程式執行:一第一程式指令,搜尋連網裝置廣播的網路識別碼,所述連網裝置中設置的與所述網路識別碼對應的驗證金鑰由所述網路識別碼和預先設置的對應關係產生,所述網路識別碼用於標識網路;一第二程式指令,根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;一第三程式指令,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述連網裝置發送連接請求,以使所述連網周邊裝置連接到所述連網裝置後經由所述連網裝置存取網路;一第四程式指令,用於與所述連網裝置建立連接後,根據所存伺服器之位址和所述伺服器建立連接,並發送所述連網裝置之裝置識別碼與所述連網周邊裝置之識別碼,進行許可權驗證,其中當許可權驗證未通過時,可使用另一組符合預先對應關係之網路識別碼和驗證金鑰和其他連網裝置建立連接,並再次 根據所存伺服器之位址和該伺服器建立連接,並發送所述連網裝置之裝置識別碼與所述連網周邊裝置之識別碼進行驗證。 A computer program product for network connection. The program is loaded via a connected peripheral device to execute the program: a first program instruction searches for a network identification code broadcast by the connected device, and The verification key corresponding to the network identification code is generated from the corresponding relationship between the network identification code and a preset relationship, and the network identification code is used to identify the network; a second program instruction is based on the network identification code and The correspondence relationship saved in the connected peripheral device calculates a verification key corresponding to the network identification code, wherein the correspondence relationship stored in the connected peripheral device exists in the preset correspondence relationship that is the same Corresponding relationship; a third program instruction that sends a connection request to the networked device according to the network identification code and a verification key corresponding to the network identification code calculated by the networked peripheral device to After the connected peripheral device is connected to the connected device, the network is accessed via the connected device; a fourth program instruction is used to establish a connection with the connected device, and according to the stored server To establish a connection with the server, and send the device identification code of the connected device and the identification code of the connected peripheral device to perform permission verification. When the permission verification fails, another group can be used. Network identifiers and verification keys that match the pre-mapping relationship are established with other connected devices, and Establish a connection with the server based on the address of the stored server, and send the device identification code of the connected device and the identification code of the connected peripheral device for verification. 如申請專利範圍第22項中所述的電腦程式產品,其中,所述第一程式指令還包含:搜尋新的網路識別碼;所述第二程式指令還包含:根據所述新的網路識別碼和所述預先設置的對應關係計算對應之驗證金鑰;所述第三程式指令還包含:根據所述新的網路識別碼和所述對應之驗證金鑰與所述連網裝置進行連接。 According to the computer program product described in claim 22, wherein the first program command further includes: searching for a new network identification code; the second program command further includes: according to the new network An identification code and the preset correspondence relationship to calculate a corresponding verification key; the third program instruction further includes: performing a connection with the networked device according to the new network identification code and the corresponding verification key connection. 如申請專利範圍第22項中所述的電腦程式產品,其中該電腦程式產品還包含:一第五程式指令,可接收其它連網周邊裝置所傳送符合所述網路識別碼和所述網路識別碼對應的驗證金鑰之連接請求,完成連接後提供所述其它連網周邊裝置存取網路。 For example, the computer program product described in item 22 of the scope of patent application, wherein the computer program product further includes: a fifth program instruction, which can receive other networked peripheral devices that comply with the network identifier and the network. The connection request of the verification key corresponding to the identification code provides the other connected peripheral devices to access the network after the connection is completed. 一種連網裝置,其中,所述連網裝置包括:至少一個存儲單元;至少一個處理器;以及至少一個模組,所述至少一個模組被存儲在所述存儲單元中並被配置成由所述至少一個處理器執行,所述至少一個模組包括:一第一產生模組,用於啟動時動態產生網路識別碼,所述網路識別碼用於標識網路;一第二產生模組,用於根據所述網路識別碼以及所述連網裝置中預先設置的對應關係產生與所述網路識別碼對應的驗證金鑰; 一設置模組,用於根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;一第一接收驗證模組,用於廣播所述連網裝置設置的網路識別碼,並接收連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述連網周邊裝置發送的驗證金鑰由所述連網裝置根據搜尋到的網路識別碼和所述連網裝置中保存的對應關係產生,其中,所述連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係;一第一連接模組,用於當驗證通過時,與所述連網周邊裝置建立連接使得所述連網周邊裝置經由所述連網裝置存取網路;一第一發送模組,用於向所述連網周邊裝置發送所述連網裝置的裝置識別碼。 A networking device, wherein the networking device includes: at least one storage unit; at least one processor; and at least one module, the at least one module is stored in the storage unit and configured to be accessed by all The at least one processor executes, the at least one module includes: a first generating module for dynamically generating a network identification code at startup, the network identification code is used to identify a network; a second generating module A group for generating a verification key corresponding to the network identification code according to the network identification code and a preset correspondence relationship in the networked device; A setting module for setting network parameters of the connected device according to the generated network identification code and verification key; a first receiving verification module for broadcasting the network set by the connected device Identification code, and receives the network identification code and verification key sent by the connected peripheral device, and verifies the received network identification code and verification key, and the verification key sent by the connected peripheral device is provided by the connection device. The network device is generated according to the searched network identification code and the corresponding relationship saved in the networked device, wherein the corresponding relationship stored in the networked device has the same corresponding relationship as the preset corresponding relationship. A first connection module for establishing a connection with the connected peripheral device so that the connected peripheral device accesses the network through the connected device when the authentication is passed; a first sending module for Sending a device identification code of the connected device to the connected peripheral device. 一種連網周邊裝置,其中,所述連網周邊裝置包括:至少一個存儲單元;至少一個處理器;以及至少一個模組,所述至少一個模組被存儲在所述存儲單元中並被配置成由所述至少一個處理器執行,所述至少一個模組包括:一搜尋模組,用於搜尋第一連網裝置廣播的網路識別碼,所述網路識別碼用於標識網路;一計算模組,用於根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係; 一第一連網模組,用於根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,以使所述連網裝置連接到所述第一連網裝置後經由所述第一連網裝置存取網路;一確認模組,用於接收到所述第一連網裝置返回的驗證通過消息時,確認與所述連網裝置建立連接。 A networked peripheral device, wherein the networked peripheral device includes: at least one storage unit; at least one processor; and at least one module, the at least one module is stored in the storage unit and configured to Executed by the at least one processor, the at least one module includes: a search module for searching a network identification code broadcasted by the first networked device, the network identification code identifying a network; A calculation module, configured to calculate a verification key corresponding to the network identification code according to the correspondence relationship stored in the network identification code and the connected peripheral device, and the correspondence stored in the connected peripheral device The relationship exists in the correspondence relationship that is the same as the preset correspondence relationship; A first network connection module for sending a connection request to the first network connection device according to the network identification code and a verification key corresponding to the network identification code calculated by the network peripheral device To enable the connected device to access the network through the first connected device after connecting to the first connected device; a confirmation module for receiving the verification returned by the first connected device When passing the message, it is confirmed that a connection is established with the networked device. 一種網路連接系統,其中,所述系統包括一第一連網裝置、一既有連網裝置、一第一連網周邊裝置及一伺服器;所述第一連網裝置,用於根據所述第一連網裝置中一個或多個網路識別碼以及所述第一連網裝置中預先設置的對應關係產生與每個網路識別碼對應的驗證金鑰,根據所述一個或多個網路識別碼以及驗證金鑰對所述第一連網裝置進行網路參數設置,廣播所述第一連網裝置設置的網路識別碼,所述網路識別碼用於標識網路;所述第一連網周邊裝置,用於搜尋所述第一連網裝置廣播的網路識別碼,根據所述網路識別碼和所述連網周邊裝置中保存的對應關係計算出與所述網路識別碼對應的驗證金鑰,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述第一連網裝置發送連接請求,其中,所述連網周邊裝置中保存的對應關係中存在於所述預先設置的對應關係相同的對應關係;所述既有連網裝置,用於供所述第一連網裝置進行連線,使所述第一連網裝置通過所述既有連網裝置連接網路;所述第一連網周邊裝置,還用於與所述第一連網裝置建立連接後,根據伺服器的位址與所述伺服器建立連接,並向所述伺服器發送所述第一連網周邊裝置的裝置識別碼與所述第一連網裝置的裝置識別碼; 所述伺服器,用於對接收到的所述連網周邊裝置的裝置識別碼與所述第一連網裝置的裝置識別碼進行許可權驗證,若許可權驗證通過,與所述連網周邊裝置進行網路通訊。 A network connection system, wherein the system includes a first networking device, an existing networking device, a first networking peripheral device, and a server; the first networking device is configured to The one or more network identification codes in the first networked device and the preset correspondence relationship in the first networked device generate a verification key corresponding to each network identification code, and according to the one or more The network identification code and the verification key perform network parameter setting on the first connected device, and broadcast the network identification code set by the first connected device, and the network identification code is used to identify the network; The first networked peripheral device is configured to search for a network identification code broadcast by the first networked device, and calculate a network connection with the network according to a correspondence between the network identification code and the networked peripheral device. Sending a connection request to the first networked device according to the network identification code and the authentication key corresponding to the network identification code calculated by the networked peripheral device, Wherein, the connected peripheral device The corresponding relationship exists in the correspondence relationship that is the same as the preset correspondence relationship; the existing network connection device is used for the first network connection device to connect, so that the first network connection device passes through The first connected peripheral device is also used to establish a connection with the first connected device, and establish a connection with the server according to the server address, and Sending, by the server, a device identification code of the first networked peripheral device and a device identification code of the first networked device; The server is configured to perform permission verification on the received device identification code of the connected peripheral device and the device identification code of the first connected device. If the permission verification is passed, the server communicates with the connected peripheral device. The device is communicating on the network. 一種用於網路連接的電腦程式產品,經由連網裝置載入一程式執行:一第一程式指令,根據所述連網裝置的網路識別碼以及所述連網裝置中預先設置的對應關係產生與所述網路識別碼對應的驗證金鑰,所述網路識別碼用於標識網路;一第二程式指令,根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;一第三程式指令,廣播所述連網裝置設置的網路識別碼,並接收連網周邊裝置發送的網路識別碼與驗證金鑰,對接收到的網路識別碼與驗證金鑰進行驗證,所述連網周邊裝置發送的驗證金鑰由所述連網裝置根據搜尋到的網路識別碼和所述連網裝置中保存的對應關係產生,其中,所述連網裝置中保存的對應關係之中存在與所述預先設置的對應關係相同的對應關係;一第四程式指令,當驗證通過時,與所述連網周邊裝置建立連接使得所述連網周邊裝置經由所述連網裝置存取網路。 A computer program product for network connection, which loads a program for execution via a networked device: a first program instruction, according to a network identification code of the networked device and a preset correspondence relationship in the networked device Generating a verification key corresponding to the network identification code, the network identification code is used to identify the network; a second program instruction, performing a network identification on the connected device according to the generated network identification code and the verification key Network parameter setting; a third program instruction broadcasts the network identification code set by the connected device, and receives the network identification code and verification key sent by the connected peripheral device, and the received network identification code and A verification key is used for verification. The verification key sent by the connected peripheral device is generated by the connected device according to the searched network identification code and the corresponding relationship stored in the connected device, wherein the connected network Among the correspondences stored in the device, there is the same correspondence as the preset correspondence; a fourth program instruction, when the verification is passed, establishes a connection with the connected peripheral device so that all Networked peripheral device via the access network networking device. 一種用於網路連接的電腦程式產品,經由連網裝置載入一程式執行:一第一程式指令,根據所述連網裝置的網路識別碼以及所述連網裝置中預先設置的對應關係產生與所述網路識別碼對應的驗證金鑰,所述網路識別碼用於標識網路; 一第二程式指令,根據產生的網路識別碼以及驗證金鑰對所述連網裝置進行網路參數設置;一第三程式指令,根據所述網路識別碼和所述連網周邊裝置計算出的與所述網路識別碼對應的驗證金鑰向所述連網裝置發送連接請求,以使所述連網周邊裝置連接到所述連網裝置後經由所述連網裝置存取網路;一第四程式指令,用於與所述連網裝置建立連接後,根據所存伺服器之位址和所述伺服器建立連接,並發送所述連網裝置之裝置識別碼與所述連網周邊裝置之識別碼,進行許可權驗證,其中當許可權驗證未通過時,可使用另一組符合預先對應關係之網路識別碼和驗證金鑰和其他連網裝置建立連接,並再次根據所存伺服器之位址和該伺服器建立連接,並發送所述連網裝置之裝置識別碼與所述連網周邊裝置之識別碼進行驗證。 A computer program product for network connection, which loads a program for execution via a networked device: a first program instruction, according to a network identification code of the networked device and a preset correspondence relationship in the networked device Generating a verification key corresponding to the network identification code, which is used to identify the network; A second program instruction sets network parameters for the connected device according to the generated network identification code and verification key; a third program instruction calculates based on the network identification code and the connected peripheral device The verification key corresponding to the network identification code is sent to the connected device to enable the connected peripheral device to connect to the connected device to access the network through the connected device. A fourth program instruction for establishing a connection with the networked device, establishing a connection with the server based on the stored address of the server, and sending the device identification code of the networked device to the networked device; Peripheral device identification code for permission verification. When the permission verification fails, another set of network identification codes and verification keys that meet the pre-correspondence relationship can be used to establish connections with other networked devices, and based on the stored data again. The address of the server establishes a connection with the server, and sends a device identification code of the connected device and an identification code of the connected peripheral device for verification.
TW106134243A 2017-10-03 2017-10-03 Network device, i/o device, a method and system for connecting network TWI675570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106134243A TWI675570B (en) 2017-10-03 2017-10-03 Network device, i/o device, a method and system for connecting network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106134243A TWI675570B (en) 2017-10-03 2017-10-03 Network device, i/o device, a method and system for connecting network

Publications (2)

Publication Number Publication Date
TW201916638A TW201916638A (en) 2019-04-16
TWI675570B true TWI675570B (en) 2019-10-21

Family

ID=66992299

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106134243A TWI675570B (en) 2017-10-03 2017-10-03 Network device, i/o device, a method and system for connecting network

Country Status (1)

Country Link
TW (1) TWI675570B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201038011A (en) * 2009-04-07 2010-10-16 Chicony Electronics Co Ltd Wireless network connecting and setting method and application thereof
US20130176897A1 (en) * 2012-01-11 2013-07-11 Interdigital Patent Holdings, Inc. Method and apparatus for accelerated link setup
CN103323242A (en) * 2013-05-29 2013-09-25 徐州聚成铸造科技有限公司 Train bottom wheel bearing detecting system
US20130340046A1 (en) * 2012-06-18 2013-12-19 Wistron Corporation Wireless network client-authentication system and wireless network connection method thereof
CN106332077A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Authentication method and system for accessing isolated network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201038011A (en) * 2009-04-07 2010-10-16 Chicony Electronics Co Ltd Wireless network connecting and setting method and application thereof
US20130176897A1 (en) * 2012-01-11 2013-07-11 Interdigital Patent Holdings, Inc. Method and apparatus for accelerated link setup
US20130340046A1 (en) * 2012-06-18 2013-12-19 Wistron Corporation Wireless network client-authentication system and wireless network connection method thereof
CN103323242A (en) * 2013-05-29 2013-09-25 徐州聚成铸造科技有限公司 Train bottom wheel bearing detecting system
CN106332077A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Authentication method and system for accessing isolated network

Also Published As

Publication number Publication date
TW201916638A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US10757102B2 (en) Methods, apparatus, and systems for identity authentication
TWI659300B (en) Method and device for providing equipment identification
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
US9894630B2 (en) ADSS enabled global roaming system
CN106211359B (en) Method and device for enabling device to obtain service
US12184712B2 (en) Method and apparatus of processing back-to-origin request of content delivery network, device, and medium
CN110083757A (en) A kind of abnormal data access and querying method, system based on alliance's chain network
CN106304070B (en) A kind of network automatic connection method and device
CN114675567A (en) Access processing method, device and storage medium for remotely controlling terminal
CN113763211A (en) Infringement detection method and device based on block chain and electronic equipment
CN111353136A (en) Method and device for processing operation request
US10200864B2 (en) Method and device for managing wireless access point
CN107396363B (en) A method and device for pre-authorizing wireless connection to user equipment
TWI675570B (en) Network device, i/o device, a method and system for connecting network
CN111722994A (en) A method and device for responding to a task request
CN108737350B (en) Information processing method and client
CN106912118B (en) A method, device and system for creating a service number
CN111125187B (en) Data management method and device based on blockchain
KR102428712B1 (en) Method for providing content and electronic device for supporting the same
JP2019082940A (en) Network device, i/o device, network connection method, and system
CN114270389A (en) Information acquisition method, device, system, electronic device, and storage medium
CN110544099A (en) Payment method, payment processing system and payment acceptance terminal based on block chain
JP6417351B2 (en) Service providing system, service providing method and program
CN114116903A (en) Data migration method, system, device, electronic equipment and storage medium
CN116261722A (en) Distribution network method, device, equipment and storage medium

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees