Method, system and equipment for automatically configuring terminal to access to Internet of Things, and medium
Through the cloud service platform, the identity and deployment information of IoT terminal devices are automatically identified and configured, and configuration files are generated and issued, so that the terminal devices can automatically access the application server, solving the problems of complex and costly installation of terminal devices in the existing technology, and achieving efficient and automatic terminal installation and configuration.
Patent Information
- Application Number
- CN202311774573.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2025-06-24
AI Technical Summary
Existing IoT terminal devices require manual parameter configuration when accessing IoT systems, resulting in high cost and complex installation, and a high probability of errors.
Through the cloud service platform, after completing network access, the terminal establishes a connection with the cloud service platform, recognizes the terminal's identity, obtains deployment information, and obtains and issues configuration files based on the deployment information, so that the terminal automatically connects to the application server.
It realizes the "right-to-use" of IoT terminal devices, reduces the cost of terminal research and development, improves installation efficiency, and reduces the probability of errors in manual operations.
Smart Images

Figure CN120200904A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of the Internet of Things, and particularly to a method for automatically configuring a terminal to access the Internet of Things, a system for automatically configuring a terminal to access the Internet of Things, an electronic device, and a computer-readable storage medium. Background Art
[0002] An Internet of Things system mainly includes three components: several Internet of Things terminal devices (of the same type or different types), an Internet of Things service system, and a network connecting the terminals and the system. When building an Internet of Things system, usually the service platform and the network are set up first, and finally the terminal devices are connected to the system.
[0003] An Internet of Things terminal device has no operating parameters in its initial state (factory state). If a device in the initial state is powered on, it will not know how to access the network or how to connect to the service platform, and thus cannot work. Therefore, in order to connect the terminal device to the Internet of Things system, parameter configuration of the device is required. After years of development, the Internet of Things technology has become relatively mature. Currently, there are various technologies that can complete the parameter configuration of the terminal. Since the terminal cannot connect to the network before configuration, in most technical solutions, this configuration operation requires the use of auxiliary devices, such as a PC (Personal Computer), a mobile phone, or a dedicated device, etc. The auxiliary device connects to the Internet of Things terminal through a proximal communication method, such as Bluetooth, USB (Universal Serial Bus) interface, Wi-Fi (Wireless Network Communication Technology) direct connection link, etc. The auxiliary device writes the configuration parameters into the Internet of Things terminal and stores them in the memory of the Internet of Things terminal. After the configuration is completed, the Internet of Things terminal is restarted and can then use the configuration parameters to access the Internet of Things system. For a terminal device that has already been used in an Internet of Things system, if it needs to be transferred to another Internet of Things system, the usual approach is to first restore the factory settings (delete the configured parameters), and then reconfigure the parameters of the new system through the above method.
[0004] For the above-mentioned existing technical solutions for terminal devices to access the Internet of Things system, there are two problems: one is high cost. Since it is necessary to specifically develop software and hardware components for connecting to the auxiliary device, this increases the cost of the terminal device; for some terminals that require dedicated auxiliary devices, the cost is even higher. The other is complex installation. In the construction project of an Internet of Things system, the installation of terminal devices is one of the important tasks. An Internet of Things system often includes multiple terminal devices. Configuring parameters for these devices poses certain requirements on the skills of installers and requires a relatively long time. At the same time, due to the need for manual operation, the error probability is relatively high, which further increases the complexity of installation. Summary of the Invention
[0005] To at least solve the above-mentioned technical problems existing in the prior art, the present disclosure provides a method for a terminal to automatically configure access to the Internet of Things, a system for a terminal to automatically configure access to the Internet of Things, an electronic device, and a computer-readable storage medium, which can achieve "plug and play" of Internet of Things terminal devices, effectively reduce the terminal R & D cost, and improve the terminal installation efficiency.
[0006] In a first aspect, the present disclosure provides a method for a terminal to automatically configure access to the Internet of Things, which is applied to a cloud service platform. The method includes:
[0007] After the terminal completes network access, establish a connection with the terminal;
[0008] Identify the terminal identity and obtain the deployment information of the terminal;
[0009] Obtain the configuration file corresponding to the terminal according to the deployment information of the terminal;
[0010] Send the configuration file to the terminal, so that the terminal accesses the application server according to the configuration file.
[0011] Further,
[0012] The network for the cloud service platform to connect to the terminal is a non-configured initial network, and the network for the terminal to access the application server according to the configuration file is a formal network;
[0013] Among them, the ways for the terminal to access the initial network include Wi-Fi access, wired access, and cellular mobile network access;
[0014] When using Wi-Fi access, the terminal connects to the Wi-Fi network by finding a preset SSID (Service Set Identifier) or a Wi-Fi network that conforms to a specific coding rule SSID, and completes the initial network access;
[0015] When using cellular mobile network access, the terminal accesses the cellular mobile network through the parameters stored in the user identification card SIM card, and completes the initial network access.
[0016] Further, the step of enabling the terminal to access the application server according to the configuration file includes:
[0017] Enable the terminal to read network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access to the formal network; and,
[0018] The terminal reads the application server address from the configuration file, connects to the application server. If the application server requires authentication, the terminal reads the access authentication parameters in the configuration file and completes the authentication with these authentication parameters. Communication is carried out between the terminal and the application server based on other operating parameters in the configuration file.
[0019] Furthermore, the identification of the terminal identity includes:
[0020] For a terminal accessing the initial network through a wired connection or Wi-Fi, obtain the terminal identifier from the communication protocol stack. The terminal identifier includes the MAC (Media Access Control Address) address.
[0021] For a terminal accessing the initial network through a cellular mobile network, query the network element device for the terminal identifier. The terminal identifier includes the IMEI (International Mobile Equipment Identity) of the terminal.
[0022] Alternatively, obtain the terminal identifier from the message sent from the terminal to the cloud service platform.
[0023] After obtaining the terminal identifier, retrieve it in the terminal identifier list to identify the terminal identity.
[0024] Furthermore,
[0025] After identifying the terminal identity, determine whether there is a pre-established correspondence between the terminal identifier and the configuration file according to the terminal identifier.
[0026] If so, determine the configuration file corresponding to the terminal and check whether the configuration file corresponding to the terminal is stored.
[0027] If so, directly obtain the configuration file corresponding to the terminal and send it to the terminal.
[0028] Furthermore, the obtaining of the deployment information of the terminal includes:
[0029] Obtain the positioning information of the terminal as the deployment information of the terminal; and / or,
[0030] When the terminal accesses a wired network, obtain the accessed port as the deployment information of the terminal.
[0031] When the terminal accesses a Wi-Fi network, obtain the MAC address of the accessed AP (Access Point) as the deployment information of the terminal.
[0032] When the terminal accesses the cellular mobile network, obtain the identifier of the accessed RRU (Remote Radio Unit) as the deployment information of the terminal.
[0033] Further, obtaining the configuration file corresponding to the terminal according to the deployment information of the terminal includes:
[0034] Retrieve whether the cloud service platform has saved a configuration file that matches the deployment information of the terminal;
[0035] If so, directly obtain the configuration file corresponding to the terminal;
[0036] If not, determine the application server to which the terminal is to be connected according to the deployment information of the terminal, and request the application server to allocate access authentication parameters and other operating parameters for the terminal;
[0037] Generate the configuration file of the terminal according to the address, access authentication parameters and other operating parameters of the application server.
[0038] Further, the method further includes:
[0039] Determine the formal network to which the terminal is to be connected according to the deployment information of the terminal, and request the network management server corresponding to the formal network to complete network configuration for the terminal and allocate network access parameters for the terminal;
[0040] When generating the configuration file of the terminal, add the network access parameters to the configuration file of the terminal.
[0041] Further,
[0042] The determining the application server to which the terminal is to be connected according to the deployment information of the terminal includes:
[0043] After obtaining the deployment information of the terminal, retrieve the database according to the deployment information of the terminal to determine the application server to which the terminal is to be connected, and the database stores the corresponding relationship between the deployment information of the terminal and the application server to be connected;
[0044] The determining the formal network to which the terminal is to be connected according to the deployment information of the terminal includes:
[0045] If the deployment information of the terminal contains the port of the wired network device accessed by the terminal, use the network to which the port belongs as the formal network to which the terminal is to be connected;
[0046] If the deployment information of the terminal contains the MAC address of the Wi-Fi AP accessed by the terminal, select a network from the Wi-Fi networks that can be accessed by the Wi-Fi AP and connected to the application server as the formal network to which the terminal is to be connected;
[0047] If the deployment information of the terminal includes location information, select a network that can be accessed and connected to the application server at this location as the formal network for the terminal to access.
[0048] Further, the network management server completes network configuration for the terminal and assigns network access parameters to the terminal, including:
[0049] After the cloud service platform sends the terminal identifier and the formal network for the terminal to access to the network management server, the network management server finds the Wi-Fi access controller that needs to be configured according to the formal network, requests the Wi-Fi access controller to create an account and password and send them back; or,
[0050] The network management server determines the Wi-Fi access controller that needs to be configured according to the formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the Wi-Fi access controller; or,
[0051] The network management server determines the Ethernet switch device that needs to be configured according to the formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the Ethernet switch device; or,
[0052] The network management server extracts the SIM card (Subscriber Identification Module) identifier and IMEI of the terminal from the terminal identifier, and configures them into the core network of the mobile network; or,
[0053] The network management server configures the core network element, and adds the access permission of the specified APN (Access Point Name) to the subscription information corresponding to the SIM card of the terminal.
[0054] In a second aspect, the present disclosure provides a method for automatically configuring a terminal to access the Internet of Things, which is applied to the terminal. The method includes:
[0055] Complete network access, establish a connection with the cloud service platform, enable the cloud service platform to identify the terminal identity, obtain the deployment information of the terminal, and obtain the configuration file corresponding to the terminal according to the deployment information of the terminal, and send the configuration file to the terminal;
[0056] Receive the configuration file sent by the cloud service platform;
[0057] Access the application server according to the configuration file.
[0058] Further,
[0059] The network for the terminal to connect to the cloud service platform is an initial network that does not require configuration, and the network for the terminal to access the application server according to the configuration file is a formal network;
[0060] Among them, the access methods of the initial network include Wi-Fi access, wired access, and cellular mobile network access;
[0061] The completion of network access includes:
[0062] When using Wi-Fi access, by searching for a preset SSID or a Wi-Fi network that conforms to a specific coding rule, connect to the Wi-Fi network to complete the non-configured network access;
[0063] When using cellular mobile network access, access the cellular mobile network through the parameters stored in the SIM card to complete the non-configured network access.
[0064] Furthermore, the accessing of the application server according to the configuration file includes:
[0065] Read the network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access of the formal network; and,
[0066] Read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, read the access authentication parameters from the configuration file and complete the authentication with the access authentication parameters;
[0067] Communicate with the application server based on other running parameters in the configuration file.
[0068] In a third aspect, the present disclosure provides a system for automatically configuring a terminal to access the Internet of Things. The system includes a cloud service platform, and the cloud service platform includes:
[0069] A connection module, which is configured to establish a connection with the terminal after the terminal completes network access;
[0070] An identification module, which is configured to identify the terminal identity and obtain the deployment information of the terminal;
[0071] An acquisition module, which is configured to obtain the configuration file corresponding to the terminal according to the deployment information of the terminal;
[0072] A distribution module, which is configured to distribute the configuration file to the terminal so that the terminal accesses the application server according to the configuration file.
[0073] In a fourth aspect, the present disclosure provides a system for automatically configuring a terminal to access the Internet of Things. The system includes a terminal, and the terminal includes:
[0074] A platform access module, which is configured to complete network access and establish a connection with the cloud service platform, so that the cloud service platform identifies the terminal identity, obtains the deployment information of the terminal, and obtains the configuration file corresponding to the terminal according to the deployment information of the terminal, and distributes the configuration file to the terminal;
[0075] A receiving module, configured to receive a configuration file sent by a cloud service platform;
[0076] An application server access module, configured to access an application server according to the configuration file.
[0077] In a fifth aspect, the present disclosure provides an electronic device, including a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method for automatically configuring a terminal to access the Internet of Things according to any one of the first aspect and the second aspect.
[0078] In a sixth aspect, the present disclosure provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method for automatically configuring a terminal to access the Internet of Things according to any one of the first aspect and the second aspect is implemented.
[0079] Beneficial effects:
[0080] The method for automatically configuring a terminal to access the Internet of Things, the system for automatically configuring a terminal to access the Internet of Things, the electronic device, and the computer-readable storage medium provided by the present disclosure can achieve "plug and play" of Internet of Things terminal devices through the collaborative operation of the terminal, the network, and the cloud. When installing a terminal device, the installer only needs to place the device properly, power it on, and there is no need to pre-configure parameters. The terminal can automatically access the Internet of Things system. When it is necessary to transfer the terminal to another Internet of Things system, there is no need to delete the existing configuration either. Just place the terminal in the area where the new system is located. The present disclosure can effectively reduce the R & D cost of the terminal and improve the installation efficiency of the terminal. Description of the Drawings
[0081] Figure 1 It is a schematic flowchart of a method for automatically configuring a terminal to access the Internet of Things provided in Embodiment 1 of the present disclosure;
[0082] Figure 2 It is a schematic structural diagram of a system for automatically configuring a terminal to access the Internet of Things provided in an embodiment of the present disclosure;
[0083] Figure 3 It is a diagram of the configuration file generation process provided in an embodiment of the present disclosure;
[0084] Figure 4 It is another schematic diagram of the configuration file generation process provided in an embodiment of the present disclosure;
[0085] Figure 5 It is a schematic flowchart of a method for automatically configuring a terminal to access the Internet of Things provided in Embodiment 2 of the present disclosure;
[0086] Figure 6 An architecture diagram of a configuration server provided in the fourth embodiment of the present disclosure;
[0087] Figure 7 An architecture diagram of a terminal provided in the fifth embodiment of the present disclosure;
[0088] Figure 8 An architecture diagram of an electronic device provided in the sixth embodiment of the present disclosure. Specific implementation manners
[0089] To enable those skilled in the art to better understand the technical solutions of the present disclosure, the present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments and drawings described herein are only for explaining the present invention and not for limiting the present invention.
[0090] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence; and, without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other arbitrarily.
[0091] Among them, the terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms of "a", "the", and "said" used in the embodiments of the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0092] In subsequent descriptions, the suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of explaining the present disclosure and have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.
[0093] When a terminal device accesses the Internet of Things system, it is necessary to configure parameters for the device. For the sake of simplicity of description, the parameter configuration can be divided into the following parts:
[0094] (1) Configure network access parameters so that the device can be connected to the network. For example, if the device is connected to the network through Wi-Fi, it is necessary to configure the SSID, password, etc. of Wi-Fi.
[0095] (2) Configure the network addresses of one or more service platforms so that the device can be connected to the service platform.
[0096] (3) Configure identity authentication information so that the service platform can identify the identity of the terminal. For example, configure an account, password, or configure a certificate, etc.
[0097] Although there are various technologies to complete the parameter configuration of the terminal, the existing means require the special development of software and hardware components for connecting to auxiliary devices, increasing the cost of the terminal device; moreover, the parameter configuration for these devices poses certain requirements on the skills of installers and consumes a lot of time. At the same time, due to the need for manual operation, the error probability is relatively high, which further increases the complexity of installation.
[0098] The following uses specific embodiments to elaborate in detail on the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems existing in the prior art. It can be understood that in the embodiments of the present application, the execution subject can execute some or all of the steps in the embodiments of the present application. These steps or operations are only examples, and the embodiments of the present application can also execute other operations or various deformations of the operations. In addition, the various steps can be executed in different orders presented in the embodiments of the present application, and it is possible not to execute all the operations in the embodiments of the present application. And, the following several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0099] It should be specifically noted that the names such as "cloud service platform", "configuration server", "device management server", "network management server", "application server", etc. used in the following description are only for the convenience of explaining the method of the present disclosure, and do not represent specific technical entities, nor should they become technical limitations to the present disclosure.
[0100] Figure 1 The following is a schematic flowchart of a method for automatically configuring a terminal to access the Internet of Things provided in the first embodiment of the present disclosure, which is applied to a cloud service platform, as Figure 1 shown, the method includes:
[0101] Step S101: After the terminal completes network access, establish a connection with the terminal;
[0102] Step S102: Identify the identity of the terminal and obtain the deployment information of the terminal;
[0103] Step S103: Obtain the configuration file corresponding to the terminal according to the deployment information of the terminal;
[0104] Step S104: Send the configuration file to the terminal so that the terminal accesses the application server according to the configuration file.
[0105] The method for automatically configuring a terminal to access the Internet of Things provided in this embodiment divides the process of the terminal accessing the network into two stages. In the first stage, the terminal first accesses the default network and connects to the cloud service platform. Thus, the cloud service platform can identify the terminal's identity, obtain the terminal's deployment information, and issue a configuration file to the terminal. When accessing the cloud service platform, the connection between the terminal and the cloud service platform can be completed through simple manual configuration. Preferably, the terminal can also access the cloud service platform in a configuration-free manner. After the terminal obtains the configuration file, it can access the application server according to the configuration file, thereby enabling the terminal device to access the Internet of Things system without configuration; there are various existing technologies for the configuration-free access. For example, after the terminal completes the second-layer access for initial access, it does not perform the third-layer access but directly communicates with the cloud service platform through the second-layer protocol. Another example is that the terminal obtains the access parameters of the cloud service platform through the DHCP protocol and then connects to the cloud service platform. The cloud service platform needs to store a list of terminal identifiers. Before the terminal is powered on and used, the identifier of the terminal should have been stored in the list. When the terminal connects to the cloud service platform, the cloud service platform first obtains the identifier of the terminal, identifies the terminal's identity, obtains the terminal's deployment information, determines the application server that the terminal needs to connect to and the network that the terminal needs to access according to the terminal's deployment information, thereby obtains the configuration file according to the deployment information, and issues the configuration file to the terminal. The configuration file includes, but is not limited to, network access parameters, application server addresses, application service access authentication parameters, other operating parameters, etc.; enables the terminal to access the formal network according to the configuration file; specifically, the terminal can use the network access parameters in the configuration file to complete the formal access to the network; and / or, use the application server parameters in the configuration file to connect to the application server; and / or, use the access authentication parameters in the configuration file to complete the application service access authentication; and / or, use the operating parameters in the configuration file to communicate with the application server normally.
[0106] Furthermore,
[0107] The network for the cloud service platform to connect to the terminal is a configuration-free initial network, and the network for the terminal to access the application server according to the configuration file is a formal network;
[0108] Among them, the ways for the terminal to access the initial network include Wi-Fi access, wired access, and cellular mobile network access;
[0109] When using Wi-Fi access, the terminal connects to the Wi-Fi network by searching for a preset service set identifier (SSID) or a Wi-Fi network with an SSID that conforms to a specific coding rule, and completes the initial network access;
[0110] When using cellular mobile network access, the terminal accesses the cellular mobile network through the parameters stored in the subscriber identity module (SIM) card and completes the initial network access.
[0111] The terminal can access the Internet of Things system by accessing different networks twice, or it can only complete the initial network access and use the initial network as the formal network. Subsequent communication with the application server is also carried out in the same network. Since the initial network can be accessed without configuration, it is an open network and lacks necessary security protection. Using this network terminal for communication with the application server is prone to security problems. Therefore, it is preferred to access the Internet of Things system by accessing different networks twice. First, access the initial network, and then access the formal network according to the obtained configuration file.
[0112] There may be multiple connection methods for the terminal to access the initial network, including but not limited to wired access, Wi-Fi access, cellular mobile network access, etc. Different networks have different methods of accessing without configuration. Without loss of generality, the following will be described by taking the accessed network as an IP network. The terminal accessing the IP network is generally divided into two steps: The first step is to complete the connection of the physical layer and the media access layer (hereinafter referred to as layer 2 access), and the second step is to obtain IP configuration parameters (generally including IP address, default gateway, subnet mask, etc.) to complete the network layer connection (hereinafter referred to as layer 3 access). Among them, in the second step of obtaining IP configuration parameters, the dynamic address allocation protocol such as the DHCP protocol is generally used, and layer 3 access can be automatically completed after layer 2 access is completed. Therefore, the following mainly describes how the terminal completes layer 2 access.
[0113] The following are several implementation methods for common network technologies.
[0114] In one implementation: The access method is a Wi-Fi network
[0115] The terminal needs one or more configuration parameters to access the Wi-Fi network. First, it needs the SSID of the Wi-Fi network. Secondly, according to different network authentication methods, it may also be necessary to enter a password, or an account + password. The following is the process of an implementation method for the terminal to complete the initial access to the Wi-Fi network.
[0116] (1) Open a default Wi-Fi network on the Wi-Fi AP, whose SSID is fixed, or whose SSID is composed by encoding according to specific rules. Optionally, a fixed password can also be set for this Wi-Fi network.
[0117] (2) After the terminal is powered on, search for the Wi-Fi network with the above fixed SSID or the SSID that conforms to the specific encoding rule, connect to the Wi-Fi network, and complete the initial access. Authenticate with the fixed password if necessary.
[0118] In one implementation: The access method is a wired network or a cellular mobile network
[0119] Generally, no parameter configuration is required for a terminal to access a wired network, and layer 2 access can be completed after inserting the cable; the parameters required for a terminal to access a cellular mobile network are stored in the SIM card, and the terminal needs to insert the SIM card or a pre - installed SIM card before leaving the factory to complete the initial access.
[0120] Further, the step of enabling the terminal to access the application server according to the configuration file includes:
[0121] Enabling the terminal to read network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access to the formal network; and,
[0122] Enabling the terminal to read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, the terminal reads the access authentication parameters from the configuration file and uses the authentication parameters to complete the authentication, and the terminal communicates with the application server based on other operating parameters in the configuration file.
[0123] The terminal reads the access parameters of the formal network from the configuration file. If the reading is successful, the terminal uses the new parameters to re - complete the access to the formal network. For example, accessing a new Wi - Fi network; or, accessing a new cellular mobile network APN; or, accessing a VPN network, etc. (In particular, the re - access to the network in the present disclosure especially refers to the terminal using new parameters to re - access the network without changing the network physical medium.) The terminal reads the application server address from the configuration file and connects to the application server. If the application server requires identity authentication, the terminal reads the access authentication parameters from the configuration file and uses the parameters to complete the authentication. Normal communication is carried out between the terminal and the application server based on other operating parameters.
[0124] In one implementation, the configuration file may also only include the access parameters of the formal network; after the terminal uses the access parameters to access the formal network, other parameters are downloaded.
[0125] Further, the identification of the terminal identity includes:
[0126] For a terminal accessing the initial network through wired access or Wi - Fi access, obtain the terminal identifier from the communication protocol stack, and the terminal identifier includes the Media Access Control (MAC) address;
[0127] For a terminal accessing the initial network through a cellular mobile network, query the terminal identifier from the network element device, and the terminal identifier includes the International Mobile Equipment Identity (IMEI) of the terminal;
[0128] Or, obtain the terminal identifier from the message sent from the terminal to the cloud service platform;
[0129] After obtaining the terminal identifier, retrieve it in the terminal identifier list to identify the terminal identity.
[0130] The identification terminal needs to use the identifier of the terminal. Without loss of generality, for a terminal accessing the network via a wired method or Wi-Fi, the MAC address can be used as the terminal identifier or part of the identifier; for a terminal accessing the network via a cellular mobile network, the IMEI can be used as the terminal identifier or part of the identifier.
[0131] The cloud service platform needs to store a list of terminal identifiers. Before the terminal is powered on and used, the identifier of the terminal should have been stored in the list.
[0132] When the terminal connects to the cloud service platform, the cloud service platform first obtains the identifier of the terminal. Specifically, for example, the cloud service platform can obtain the identifier (MAC address) of the terminal from the communication protocol stack. Another example is that the cloud service platform can query the terminal identifier (IMEI, etc.) from the network element device. Optionally, the terminal identifier can also be carried in the message sent by the terminal to the cloud service platform.
[0133] After the cloud service platform obtains the identifier of the terminal, it retrieves in the list of terminal identifiers to identify the terminal.
[0134] Furthermore,
[0135] After identifying the terminal identity, it is determined whether there is a pre-established correspondence between the terminal identifier and the configuration file according to the terminal identifier;
[0136] If so, determine the configuration file corresponding to the terminal, and determine whether the configuration file corresponding to the terminal is stored;
[0137] If so, directly obtain the configuration file corresponding to the terminal and send it to the terminal.
[0138] It is easy to understand that the terminal identifier and its configuration file can be imported into the cloud service platform for storage in advance by manually importing data. Of course, the terminal identifier and its configuration file can also be stored in the cloud service platform in other ways. If the configuration file can be directly obtained according to the terminal identifier, there is no need for the steps of obtaining the deployment information of the terminal and obtaining the configuration file according to the deployment information.
[0139] Furthermore, the obtaining of the deployment information of the terminal includes:
[0140] Obtaining the location information of the terminal as the deployment information of the terminal; and / or,
[0141] When the terminal accesses a wired network, obtaining the accessed port as the deployment information of the terminal;
[0142] When the terminal accesses a Wi-Fi network, obtaining the MAC address of the accessed AP as the deployment information of the terminal;
[0143] When the terminal accesses the cellular mobile network, obtain the identifier of the accessed Remote Radio Unit (RRU) as the deployment information of the terminal.
[0144] When it is necessary to obtain the configuration file through the deployment information, the cloud service platform can be divided into a configuration server and a device management server. The configuration server is connected to the terminal and the device management server respectively. The configuration server automatically obtains the deployment information of the terminal and provides it to the device management server without manual operation. The deployment information of the terminal can have various forms. This embodiment provides the following multiple implementation manners.
[0145] 1. Embodiment 1
[0146] When the terminal accesses the wired network, obtain the accessed port as the deployment information of the terminal. The specific method is as follows: The configuration server extracts the MAC address of the terminal from the terminal identifier, sends the MAC address of the terminal to the network management server, and requests to query the switch accessed by the terminal and the specific connected port.
[0147] 2. Embodiment 2
[0148] When the terminal accesses the Wi-Fi network, obtain the MAC address of the accessed AP as the deployment information of the terminal. The specific method is as follows: (1) Method 1: The configuration server extracts the MAC address of the terminal from the terminal identifier, sends the MAC address of the terminal to the network management server, and requests to query the MAC address of the AP accessed by the terminal. Or, (2) Method 2: The terminal device obtains the BSSID of the Wi-Fi AP and sends it to the configuration server, and this BSSID is the MAC address of the AP.
[0149] 3. Embodiment 3
[0150] When the terminal accesses the cellular mobile network, obtain the identifier of the accessed RRU as the deployment information of the terminal. The specific method is that the configuration server queries the identifier of the RRU accessed by the terminal from the network management server.
[0151] 4. Embodiment 4
[0152] Obtain the positioning information of the terminal as the deployment information of the terminal. The specific method is that the terminal obtains the location information through a feasible positioning technology and sends it to the configuration server, or the configuration server queries the positioning information of the terminal through the positioning server. The positioning technology can include satellite positioning, cellular mobile network positioning, Wi-Fi positioning, Bluetooth positioning, UWB positioning, etc., and one or a combination of multiple technologies can be used for positioning.
[0153] Furthermore, obtaining the configuration file corresponding to the terminal according to the deployment information of the terminal includes:
[0154] Check whether the retrieval cloud service platform has already saved a configuration file that matches the deployment information of the terminal;
[0155] If so, directly obtain the configuration file corresponding to the terminal;
[0156] If not, determine the application server to which the terminal is to be connected according to the deployment information of the terminal, and request the application server to allocate access authentication parameters and other operating parameters for the terminal;
[0157] Generate a configuration file for the terminal based on the address of the application server, the access authentication parameters, and other operating parameters.
[0158] When the terminal uses the initial network to connect to the application server, there is no need to change the network. The relevant parameters of the application server can be directly obtained to complete the connection of the application server. If the terminal completes the connection of the application server by changing the network, the access parameters of the formal network need to be determined.
[0159] Further, the method further includes:
[0160] Determine the formal network to which the terminal is to be connected according to the deployment information of the terminal, and request the network management server corresponding to the formal network to complete network configuration for the terminal and allocate network access parameters for the terminal;
[0161] Add the network access parameters to the configuration file of the terminal when generating the configuration file of the terminal.
[0162] In addition to manual import, the configuration file of the terminal can also be generated in other ways. The terminal device is connected to the Internet of Things system through the system shown in Figure 2 , including a configuration server, a device management server, an application server, a network management server, and a DHCP server. The configuration server and the device management server form a cloud service platform. The DHCP server is responsible for the application and allocation management of the IP addresses of each computer within the local area network. As Figure 3 shown, before deploying the terminal, the administrator operates on the device management server, and the configuration file is generated through the cooperation between a series of servers. In one implementation manner, the configuration file generation process includes:
[0163] (1) The administrator adds the terminal to the service on the device management server. When adding, provide the terminal type, terminal identifier, and deployment information of the terminal.
[0164] (2) The device management server determines the application server to which the terminal is to be connected according to the deployment information of the terminal, sends a message to the application server, requests the application server to allocate access authentication parameters and other operating parameters for the terminal, and obtains these parameters.
[0165] (3) The device management server determines the network to which the terminal is to be officially connected according to the deployment information of the terminal, sends a message to the network management server, requests the network management server to complete the network configuration for the terminal, and allocates network access parameters to the terminal if necessary, and obtains the parameters.
[0166] (4) The device management server generates a configuration file for the terminal according to the network access parameters, the application server address, the access authentication parameters, and other operating parameters. Generally, a configuration file template matching the terminal type is required to generate the configuration file.
[0167] (5) The device management server determines the network for the initial access of the terminal according to the deployment information of the terminal. Optionally, a message is sent to the network management server, requesting the network management server to complete the configuration of the initial network access for the terminal.
[0168] (6) The device management server determines the configuration server that can be directly or indirectly accessed through the initial network access of the terminal, and sends the terminal identifier and its configuration file to the configuration server and stores them in the configuration server.
[0169] In the above embodiments, it is required that the administrator can determine the deployment information of the terminal device in advance, and there are still certain limitations in actual use. In some scenarios, the deployment information of the terminal can be automatically obtained according to the actual on-site deployment situation. As Figure 4 shown, the specific steps include:
[0170] (1) The administrator adds the terminal to the service on the device management server. When adding, the terminal type and terminal identifier are provided, and the device management server stores the terminal identifier.
[0171] (2) When actually deploying the terminal device, when the terminal completes the initial network access and connects to the configuration server to request to obtain the configuration file, the configuration server obtains the deployment information of the terminal.
[0172] (3) Optionally, the configuration server first retrieves whether there is already a configuration file that matches the terminal identifier and the deployment information of the terminal. If so, the configuration file can be directly sent to the terminal device, and the process ends.
[0173] (4) The configuration server forwards the deployment information of the terminal to the device management server and requests to obtain the configuration file.
[0174] (5) The device management server determines the application server to which the terminal is to be connected according to the deployment information of the terminal, sends a message to the application server, requests the application server to allocate access authentication parameters and other operating parameters to the terminal, and obtains these parameters.
[0175] (6) The device management server determines the network to which the terminal is to be officially connected based on the deployment information of the terminal, sends a message to the network management server, requests the network management server to complete the network configuration for the terminal, allocates network access parameters to the terminal if necessary, and obtains the parameters.
[0176] (7) The device management server generates a configuration file for the terminal based on the network access parameters, application server address, access authentication parameters, and other operating parameters. Generally, a configuration file template matching the terminal type is required to generate the configuration file.
[0177] (8) The device management server sends the terminal identifier and its configuration file to the configuration server.
[0178] (9) The configuration server sends the configuration file to the terminal device. Optionally, the configuration server saves the configuration file and establishes a corresponding relationship between the configuration file, the terminal identifier, and the deployment information of the terminal.
[0179] Further,
[0180] The determining of the application server to which the terminal is to be connected according to the deployment information of the terminal includes:
[0181] After obtaining the deployment information of the terminal, retrieve the database according to the deployment information of the terminal to determine the application server to which the terminal is to be connected. The database stores the corresponding relationship between the deployment information of the terminal and the application server to be connected;
[0182] The determining of the official network to which the terminal is to be connected according to the deployment information of the terminal includes:
[0183] If the deployment information of the terminal contains the port of the wired network device accessed by the terminal, then use the network to which the port belongs as the official network to which the terminal is to be connected;
[0184] If the deployment information of the terminal contains the MAC address of the Wi-Fi AP accessed by the terminal, then select a network from the Wi-Fi networks accessible by the Wi-Fi AP and connected to the application server as the official network to which the terminal is to be connected;
[0185] If the deployment information of the terminal contains location information, then select a network accessible and connected to the application server at this location as the official network to which the terminal is to be connected.
[0186] If the deployment information of the terminal contains the application server to which the terminal needs to be connected and / or the official network to which the terminal needs to be connected, the device management server can directly use this information. Otherwise, the device management server needs to determine the application server to which the terminal is to be connected and / or the network to which the terminal is to be connected according to the deployment information of the terminal.
[0187] 1. Determine the application server to which the terminal is to be connected
[0188] Maintain a database in the system, in which the corresponding relationship between the deployment information of the terminal and the application server to be connected is pre-stored. After the device management server obtains the deployment information of the terminal, it determines the application server to which the terminal is to be connected by retrieving this database.
[0189] 2. Determine the network to which the terminal is to be connected
[0190] If the deployment information of the terminal contains the port of the wired network device to which the terminal is connected, use the network to which the port belongs as the network to which the terminal is to be connected.
[0191] If the deployment information of the terminal contains the MAC address of the Wi-Fi AP to which the terminal is connected, select a suitable network from the Wi-Fi networks accessible by this Wi-Fi AP as the network to which the terminal is to be connected. For example, a Wi-Fi network that can be connected to the said application server can be selected.
[0192] If the deployment information of the terminal contains location information, select a network accessible at this location as the network to which the terminal is to be connected. For example, a Wi-Fi network that is accessible at this location and can be connected to the said application server can be selected.
[0193] Furthermore, the network management server completes network configuration for the terminal and assigns network access parameters to the terminal, including:
[0194] After the cloud service platform sends the terminal identifier and the formal network to which the terminal is to be connected to the network management server, the network management server finds the Wi-Fi access controller that needs to be configured according to the said formal network, requests the Wi-Fi access controller to create an account and password and send them back; or,
[0195] The network management server determines the Wi-Fi access controller that needs to be configured according to the said formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the said Wi-Fi access controller; or,
[0196] The network management server determines the Ethernet switch device that needs to be configured according to the said formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the said Ethernet switch device; or,
[0197] The network management server extracts the SIM card identifier and IMEI of the terminal from the terminal identifier, and configures them into the core network of the mobile network; or,
[0198] The network management server configures the core network element and adds the access permission of the specified access point APN to the subscription information corresponding to the SIM card of the terminal.
[0199] Method for Network Management Server to Complete Network Configuration for Terminals
[0200] The device management server is responsible for specifying the network to which the terminal needs to connect. Specifically, for example, for a wired network, the device management server can specify a virtual network identifier (such as a VLAN ID); for a Wi-Fi network, the device management server can specify an SSID; for a cellular mobile network, the device management server can specify a SIM card identifier and an APN or DNN (Data Network Name, the APN has been renamed DNN in the 5G network).
[0201] The application server sends the terminal identifier and the network to which the terminal connects to the network management server. The network management server configures the terminal identifier into the specified network and, if necessary, assigns access parameters to the terminal. Due to the diversity of network technologies, there are many specific methods for network pre-configuration. This embodiment provides 4 specific implementation manners.
[0202] 1. Embodiment 1: Configure Wi-Fi Network Access Account
[0203] If the Wi-Fi network uses an account-based access authentication method, the network management server creates an account and assigns a password for the terminal.
[0204] After receiving the request from the device management server, the network management server finds the Wi-Fi access controller to be configured according to the specified network, requests the Wi-Fi access controller to create an account and password and send them back, which is part of the network access parameters of the terminal.
[0205] 2. Embodiment 2: Configure Wi-Fi Network MAC Address Binding
[0206] Networks such as Wi-Fi networks can control the terminals allowed to access through MAC address binding technology. A MAC address whitelist can be set in network devices such as Wi-Fi access controllers. Data packets with MAC addresses in the whitelist will be normally forwarded, and data packets with MAC addresses not in the whitelist will be blocked.
[0207] After receiving the request from the device management server, the network management server determines the Wi-Fi access controller to be configured according to the specified network; extracts the MAC address of the terminal from the terminal identifier and configures it into the Wi-Fi access controller. Thus, the subsequent terminal device will be allowed to access when it actually accesses.
[0208] 3. Embodiment 3: Configure Wired Network MAC Address Binding
[0209] Wired Ethernet can control the terminals allowed to access through the MAC address binding technology. In network devices such as Ethernet switches, a data table can be set up, which stores the MAC addresses allowed to access and their corresponding VLAN IDs. Data packets with MAC addresses in the table will be normally forwarded to the corresponding VLAN, while data packets with MAC addresses not in the table will be blocked or forwarded to the default VLAN.
[0210] After receiving the request from the device management server, the network management server determines the devices such as Ethernet switches that need to be configured according to the specified network; extracts the MAC address of the terminal from the terminal identifier and configures it into the devices such as the Ethernet switch. Thus, subsequent terminal devices will be allowed when they actually access.
[0211] 4. Embodiment 4: Configure the SIM-card and device binding of the cellular mobile network
[0212] The mobile cellular network can control the terminals allowed to access through the SIM-card and device binding technology. In the core network device, a pairing table of SIM cards and device IMEIs can be set up. When a terminal logs on to the network, the terminal with a pairing relationship between the used SIM card and its IMEI in the table will be allowed to log on, otherwise it will be blocked.
[0213] After receiving the request from the device management server, the network management server extracts the SIM card identifier and IMEI of the terminal from the terminal identifier and configures them into the core network of the mobile network. Thus, subsequent terminal devices will be allowed when they actually access.
[0214] 5. Embodiment 5: Configure the APN of the cellular mobile network
[0215] After receiving the request from the device management server, the network management server configures the core network element and adds the access permission of the specified APN to the subscription information corresponding to the SIM card of the terminal. In the 5G network, add the access permission of the specified DNN.
[0216] Furthermore, after the terminal obtains the configuration file, it can optionally save the configuration file locally;
[0217] Generally, the terminal does not need to save the configuration file locally and can obtain the configuration file through the above process every time it restarts.
[0218] However, the terminal can also optionally save the configuration file to the local non-volatile memory. Then, after the terminal restarts, it can directly use the saved configuration file without having to obtain it again.
[0219] If the terminal saves the configuration file, when the terminal needs to be migrated to other Internet of Things systems, it is necessary to perform a factory reset operation on the terminal to delete the stored configuration file.
[0220] In this embodiment, through the collaboration of the terminal, network, and cloud, the "plug-and-play" of IoT terminal devices can be achieved. When installing the terminal device, the installer only needs to place the device properly, power it on, and it can automatically access the IoT system without pre-configuring parameters. When the terminal needs to be transferred to another IoT system, there is no need to delete the existing configuration. Just place the terminal in the area where the new system is located; no additional dedicated installation auxiliary equipment is required, reducing the terminal installation cost. Moreover, the system automatically configures the terminal, eliminating the need for professional personnel to configure parameters on-site, improving the terminal installation efficiency, preventing human errors, and ensuring the accuracy of terminal installation.
[0221] Embodiment 2
[0222] Embodiment 2 of the present disclosure provides a method for automatically configuring a terminal to access the Internet of Things, which is applied to the terminal. As Figure 5 shown, the method includes:
[0223] Step S201: Complete network access, establish a connection with the cloud service platform, enable the cloud service platform to identify the terminal identity, obtain the deployment information of the terminal, and obtain the configuration file corresponding to the terminal according to the deployment information of the terminal, and send the configuration file to the terminal;
[0224] Step S202: Receive the configuration file sent by the cloud service platform;
[0225] Step S203: Access the application server according to the configuration file.
[0226] Furthermore,
[0227] the network for the terminal to connect to the cloud service platform is a zero-configuration initial network, and the network for the terminal to access the application server according to the configuration file is a formal network;
[0228] Among them, the access methods of the initial network include Wi-Fi access, wired access, and cellular mobile network access;
[0229] The completion of network access includes:
[0230] When using Wi-Fi access, connect to the Wi-Fi network by searching for a preset SSID or a Wi-Fi network that conforms to a specific coding rule to complete zero-configuration network access;
[0231] When using cellular mobile network access, access the cellular mobile network through the parameters stored in the SIM card to complete zero-configuration network access.
[0232] Furthermore, the accessing the application server according to the configuration file includes:
[0233] Read network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access to the formal network; and,
[0234] Read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, read the access authentication parameters in the configuration file and use the access authentication parameters to complete the authentication;
[0235] Communicate with the application server based on other running parameters in the configuration file.
[0236] The embodiments of the present disclosure implement the method for automatically configuring the terminal to access the Internet of Things from the terminal side. The specific steps correspond to those in Embodiment 1. For details, please refer to the relevant descriptions in Embodiment 1; the methods for the configuration server to identify the terminal identity and obtain various configuration files corresponding to the terminal are as described in Embodiment 1, and will not be elaborated here.
[0237] The embodiments of the present disclosure do not require manual parameter configuration on the terminal device, and realize connection at startup. This effectively reduces the R & D cost of the terminal and improves the installation efficiency of the terminal.
[0238] Embodiment 3
[0239] To more clearly describe the technical solutions of the present disclosure, Embodiment 3 of the present disclosure also provides a method for automatically configuring the terminal to access the Internet of Things, which does not require manual parameter configuration on the terminal device and realizes connection at startup. The system structure of the embodiments of the present disclosure is as Figure 2 , and the configuration server and the device management server form a cloud service platform.
[0240] (1) The basic process of the method of the present disclosure
[0241] 1. The terminal completes the initial network access and establishes a connection with the configuration server.
[0242] 2. The configuration server identifies the terminal identity and sends the configuration file to the terminal.
[0243] 3. The terminal uses the network access parameters in the configuration file to complete the formal access to the network; and / or, uses the application server parameters in the configuration file to connect to the application server; and / or, uses the access authentication parameters in the configuration file to complete the application service access authentication; and / or, uses the running parameters in the configuration file to communicate with the application server normally.
[0244] (2) In the process of (1) above, the method for completing the initial network access in step 1
[0245] This embodiment provides a method for completing initial network access without configuration. There may be various connection technologies for a terminal to access a network, including but not limited to wired access, Wi-Fi access, cellular mobile network access, etc. Different networks have different methods for configuration-free access. Without loss of generality, the following will illustrate with the accessed network being an IP network. Generally, a terminal accessing an IP network is divided into two steps: The first step is to complete the connection of the physical layer and the media access layer (hereinafter referred to as layer 2 access), and the second step is to obtain IP configuration parameters (generally including an IP address, a default gateway, a subnet mask, etc.) to complete the network layer connection (hereinafter referred to as layer 3 access). Among them, in the second step of obtaining IP configuration parameters, a dynamic address allocation protocol such as the DHCP protocol is generally used, and layer 3 access can be automatically completed after layer 2 access is completed. Therefore, the following mainly elaborates on how a terminal completes layer 2 access.
[0246] The following are several implementation manners for common network technologies.
[0247] 1. Implementation Manner 1: Accessing a Wi-Fi Network
[0248] A terminal accessing a Wi-Fi network requires one or more configuration parameters. First, it is necessary to have the SSID of the Wi-Fi network. Secondly, depending on the different network authentication methods, it may also be necessary to enter a password, or an account + password. The following is the process of an embodiment for a terminal to complete the initial access to a Wi-Fi network.
[0249] (1) Open a default Wi-Fi network on the Wi-Fi AP, whose SSID is fixed, or whose SSID is encoded according to a specific rule. Optionally, a fixed password can also be set for this Wi-Fi network.
[0250] (2) After the terminal is powered on, search for the Wi-Fi network with the above fixed SSID or the SSID that conforms to the specific coding rule, connect to the Wi-Fi network, and complete the initial access. Authenticate with the fixed password if necessary.
[0251] 2. Implementation Manners 2 / 3: Accessing a Wired Network and a Cellular Mobile Network
[0252] Generally speaking, a terminal accessing a wired network does not require parameter configuration, and layer 2 access can be completed after inserting the cable; the parameters required for a terminal to access a cellular mobile network are stored in the SIM card, and the terminal needs to insert the SIM card, or the pre-installed SIM card before leaving the factory to complete the initial access.
[0253] (3) In the process of (1) above, the method for the terminal to establish a connection with the configuration server in step 1
[0254] There are multiple existing technologies for a terminal to establish a connection with a configuration server. For example, after the terminal completes the layer-2 access for initial access, instead of performing layer-3 access, it directly communicates with the configuration server through a layer-2 protocol. Another example is that the terminal obtains the access parameters of the configuration server through the DHCP protocol and then connects to the configuration server.
[0255] (4) In the process of (1) above, the method for the configuration server to identify the terminal in step 2
[0256] To identify the terminal, the identifier of the terminal needs to be used. Without loss of generality, for a terminal accessing the network via a wired method or Wi-Fi, the MAC address can be used as the terminal identifier or part of the identifier; for a terminal accessing the network via a cellular mobile network, the IMEI can be used as the terminal identifier or part of the identifier.
[0257] A list of terminal identifiers needs to be stored on the configuration server. Before the terminal is powered on and used, the identifier of this terminal should have been stored in the list.
[0258] When the terminal is connected to the configuration server, the configuration server first obtains the identifier of the terminal. Specifically, for example, the configuration server can obtain the identifier (MAC address) of the terminal from the communication protocol stack. Another example is that the configuration server can query the terminal identifier (IMEI, etc.) from the network element device. Optionally, the terminal identifier can also be carried in the message sent by the terminal to the configuration server.
[0259] After the configuration server obtains the identifier of the terminal, it retrieves in the terminal identifier list to identify the terminal.
[0260] (5) In the process of (1) above, the method for the configuration server to distribute the configuration file in step 2
[0261] The configuration file of the terminal needs to be stored on the configuration server, and a corresponding relationship between the terminal identifier and the configuration file is established. After the configuration server identifies the terminal, it reads out the configuration file of this terminal and sends it to the terminal.
[0262] It is easy to understand that the terminal identifier and its configuration file can be imported into the configuration server for storage in advance by manually importing data. In addition to this, this embodiment further provides 2 implementation manners for implementing the generation of the terminal configuration file and importing it into the configuration server. (See the following text)
[0263] (6) In the process of (1) above, the method for the terminal to use the configuration file in step 3
[0264] (1) The terminal reads network access parameters from the configuration file. If the reading is successful, the terminal uses the new parameters to re-complete the formal access to the network. For example, accessing a new Wi-Fi network; or, accessing a new cellular mobile network APN; or, accessing a VPN network, etc. (In particular, the re-access to the network in the present invention especially refers to the terminal using new parameters to re-access the network without changing the network physical medium.)
[0265] (2) The terminal reads the application server address from the configuration file and connects to the application server.
[0266] (3) If the application server requires identity authentication, the terminal reads the access authentication parameters from the configuration file and completes the authentication with these parameters.
[0267] (4) Normal communication is carried out between the terminal and the application server based on other operating parameters.
[0268] (7) In the method of (5) above, the implementation manner of generating the configuration file
[0269] 1. Embodiment 1
[0270] Before deploying the terminal, the administrator operates on the device management server, and completes the generation of the configuration file through the cooperation between a series of servers. The process is as Figure 3 shown;
[0271] (1) The administrator adds the terminal to the service on the device management server. When adding, the terminal type, terminal identifier, and deployment information of the terminal are provided.
[0272] (2) The device management server determines the application server to which the terminal is to be connected according to the deployment information of the terminal, sends a message to the application server, requests the application server to allocate access authentication parameters and other operating parameters for the terminal, and obtains these parameters.
[0273] (3) The device management server determines the network to which the terminal is to be formally connected according to the deployment information of the terminal, sends a message to the network management server, requests the network management server to complete the network configuration for the terminal, and allocates network access parameters for the terminal if necessary, and obtains this parameter.
[0274] (4) The device management server generates the configuration file of the terminal according to the network access parameters, application server address, access authentication parameters, and other operating parameters. Generally, a configuration file template matching the terminal type is required to generate the configuration file.
[0275] (5) The device management server determines the network to which the terminal initially accesses according to the deployment information of the terminal. Optionally, a message is sent to the network management server, requesting the network management server to complete the configuration of the terminal's initial network access.
[0276] (6) The device management server determines the configuration server that can be directly or indirectly accessed through the initial network access of the terminal, and sends the terminal identifier and its configuration file to the configuration server for storage in the configuration server.
[0277] 2. Embodiment 2
[0278] In the above Embodiment 1, it is required that the administrator can determine the deployment information of the terminal device in advance, which still has certain limitations in actual use. In some scenarios, the deployment information of the terminal can be automatically obtained according to the actual on-site deployment situation. The process is as Figure 4 shown;
[0279] (1) The administrator adds the terminal to the service on the device management server. When adding, the terminal type and terminal identifier are provided, and the device management server stores the terminal identifier.
[0280] (2) When actually deploying the terminal device, when the terminal completes the initial network access and connects to the configuration server to request the configuration file, the configuration server obtains the deployment information of the terminal.
[0281] (3) Optionally, the configuration server first retrieves whether there is a configuration file that matches the terminal identifier and the deployment information of the terminal. If so, it can directly send the configuration file to the terminal device, and the process ends.
[0282] (4) The configuration server forwards the deployment information of the terminal to the device management server and requests to obtain the configuration file.
[0283] (5) The device management server determines the application server to which the terminal is to be connected according to the deployment information of the terminal, sends a message to the application server, requests the application server to allocate access authentication parameters and other operating parameters for the terminal, and obtains these parameters.
[0284] (6) The device management server determines the network to which the terminal is to be officially connected according to the deployment information of the terminal, sends a message to the network management server, requests the network management server to complete the network configuration for the terminal, and optionally allocates network access parameters for the terminal, and obtains the parameter.
[0285] (7) The device management server generates a configuration file for the terminal according to the network access parameters, application server address, access authentication parameters and other operating parameters. Generally, a configuration file template matching the terminal type is used to generate the configuration file.
[0286] (8) The device management server sends the terminal identifier and its configuration file to the configuration server.
[0287] (9) The configuration server sends the configuration file to the terminal device. Optionally, the configuration server saves the configuration file and establishes a corresponding relationship between the configuration file, the terminal identifier, and the deployment information of the terminal.
[0288] (VIII) In the method in (VII) above, the method for the device management server to use the terminal deployment information
[0289] If the deployment information of the terminal contains the application server that the terminal needs to connect to and / or the network that the terminal needs to access, the device management server can directly use this information. Otherwise, the device management server needs to determine the application server that the terminal is to connect to and / or the network that the terminal is to access according to the deployment information of the terminal.
[0290] 1. Determine the application server that the terminal is to connect to
[0291] Maintain a database in the system, in which the corresponding relationship between the deployment information of the terminal and the application server that needs to be connected is stored in advance. After the device management server obtains the deployment information of the terminal, it determines the application server that the terminal is to connect to by retrieving this database.
[0292] 2. Determine the network that the terminal is to access
[0293] If the deployment information of the terminal contains the port of the wired network device accessed by the terminal, the network to which the port belongs is used as the network that the terminal is to access.
[0294] If the deployment information of the terminal contains the MAC address of the Wi-Fi AP accessed by the terminal, a suitable network is selected from the Wi-Fi networks accessible by this Wi-Fi AP as the network that the terminal is to access. For example, a Wi-Fi network that can be connected to the application server can be selected.
[0295] If the deployment information of the terminal contains location information, a network accessible at this location is selected as the network that the terminal is to access. For example, a Wi-Fi network that is accessible at this location and can be connected to the application server can be selected.
[0296] (IX) In the method in (VII) above, the method for the configuration server to obtain the deployment information of the terminal in Embodiment 2
[0297] The configuration server automatically obtains the deployment information of the terminal and provides it to the device management server without manual operation. The deployment information of the terminal can have various forms. This embodiment provides the following implementation manners.
[0298] 1. Embodiment 1
[0299] When the terminal accesses a wired network, obtain the accessed port as the deployment information of the terminal. The specific method is as follows: The configuration server extracts the MAC address of the terminal from the terminal identifier, sends the MAC address of the terminal to the network management server, and requests to query the switch accessed by the terminal and the specific connected port.
[0300] 2. Embodiment
[0301] When the terminal accesses a Wi-Fi network, obtain the MAC address of the accessed AP as the deployment information of the terminal. The specific method is as follows: (1) Method 1: The configuration server extracts the MAC address of the terminal from the terminal identifier, sends the MAC address of the terminal to the network management server, and requests to query the MAC address of the AP accessed by the terminal. Or, (2) Method 2: The terminal device obtains the BSSID of the Wi-Fi AP and sends it to the configuration server, and this BSSID is the MAC address of the AP.
[0302] 3. Embodiment
[0303] When the terminal accesses a cellular mobile network, obtain the identifier of the accessed RRU as the deployment information of the terminal. The specific method is that the configuration server queries the identifier of the RRU accessed by the terminal from the network management server.
[0304] 4. Embodiment
[0305] Obtain the positioning information of the terminal as the deployment information of the terminal. The specific method is that the terminal obtains the location information through a feasible positioning technology and sends it to the configuration server, or the configuration server queries the positioning information of the terminal through the positioning server. The positioning technology can include satellite positioning, cellular mobile network positioning, Wi-Fi positioning, Bluetooth positioning, UWB positioning, etc., and one or a combination of multiple technologies can be used for positioning.
[0306] (X) In the method in (VII) above, the method for the network management server to complete network configuration for the terminal
[0307] The device management server is responsible for specifying the network to which the terminal needs to access. Specifically, for example, for a wired network, the device management server can specify a virtual network identifier (such as a VLAN ID); for a Wi-Fi network, the device management server can specify an SSID; for a cellular mobile network, the device management server can specify a SIM card identifier and an APN.
[0308] The application server sends the terminal identifier and the network accessed by the terminal to the network management server. The network management server configures the terminal identifier into the specified network and, if necessary, allocates access parameters for the terminal. Due to the diversity of network technologies, there are many specific methods for network pre-configuration. This embodiment provides 4 specific implementation manners.
[0309] 1. Embodiment: Configure Wi-Fi network access account
[0310] If the Wi-Fi network uses an account-based access authentication method, the network management server creates an account and assigns a password for the terminal.
[0311] After receiving a request from the device management server, the network management server locates the Wi-Fi access controller to be configured according to the specified network, requests the Wi-Fi access controller to create an account and password and send them back, which are used as part of the network access parameters of the terminal.
[0312] 2. Embodiment: Configure Wi-Fi network MAC address binding
[0313] Networks such as Wi-Fi can control the terminals allowed to access through MAC address binding technology. A MAC address whitelist can be set in network devices such as Wi-Fi access controllers. Data packets with MAC addresses in the whitelist will be forwarded normally, and data packets with MAC addresses not in the whitelist will be blocked.
[0314] After receiving a request from the device management server, the network management server determines the Wi-Fi access controller to be configured according to the specified network; extracts the MAC address of the terminal from the terminal identifier and configures it into the Wi-Fi access controller. Thus, subsequent terminal devices will be allowed to access when they actually connect.
[0315] 3. Embodiment: Configure wired network MAC address binding
[0316] Wired Ethernet can control the terminals allowed to access through MAC address binding technology. A data table can be set in network devices such as Ethernet switches. The table stores the allowed MAC addresses and their corresponding VLAN IDs. Data packets with MAC addresses in the table will be forwarded normally to the corresponding VLAN, and data packets with MAC addresses not in the table will be blocked or forwarded to the default VLAN.
[0317] After receiving a request from the device management server, the network management server determines the devices such as Ethernet switches to be configured according to the specified network; extracts the MAC address of the terminal from the terminal identifier and configures it into the devices such as Ethernet switches. Thus, subsequent terminal devices will be allowed to access when they actually connect.
[0318] 4. Embodiment: Configure SIM-card binding for cellular mobile networks
[0319] Mobile cellular networks can control the terminals allowed to access through the technology of binding the mobile device and the SIM card. In the core network device, a pairing table of a SIM card and the device IMEI can be set. When a terminal logs on to the network, the terminal using a SIM card whose pairing relationship with its IMEI exists in the table will be allowed to log on, otherwise it will be blocked.
[0320] After receiving the request from the device management server, the network management server extracts the SIM card identifier and IMEI of the terminal from the terminal identifier and configures them into the core network of the mobile network. Thus, the subsequent terminal device will be allowed to access when it actually accesses.
[0321] 5. Embodiment: Configure the APN of the cellular mobile network
[0322] After receiving the request from the device management server, the network management server configures the core network element and adds the access permission of the specified APN to the subscribed information corresponding to the SIM card of the terminal.
[0323] (XI) In the method of the above (I), after the terminal obtains the configuration file, it can optionally save the configuration file locally.
[0324] Generally, the terminal does not need to save the configuration file locally and can obtain the configuration file through the above process every time it restarts.
[0325] However, the terminal can also optionally save the configuration file to the local non-volatile memory. Then, after the terminal restarts, it can directly use the saved configuration file without re-acquiring it.
[0326] If the terminal saves the configuration file, when the terminal needs to be migrated to other Internet of Things systems, the terminal needs to perform a factory reset operation to delete the stored configuration file.
[0327] Embodiment IV
[0328] Embodiment IV of the present disclosure provides a system for automatically configuring a terminal to access the Internet of Things. The system includes a cloud service platform, as Figure 6 shown, the cloud service platform includes:
[0329] A connection module 11, which is configured to establish a connection with the terminal after the terminal completes network access;
[0330] An identification module 12, which is configured to identify the terminal identity and obtain the deployment information of the terminal;
[0331] An acquisition module 13, which is configured to obtain the configuration file corresponding to the terminal according to the deployment information of the terminal;
[0332] A distribution module 14, which is configured to distribute the configuration file to the terminal so that the terminal accesses the application server according to the configuration file.
[0333] Further,
[0334] The network connecting the cloud service platform and the terminal is the initial network, and the network for the terminal to access the application server according to the configuration file is the formal network;
[0335] Among them, the ways for the terminal to access the initial network include Wi-Fi access, wired access, and cellular mobile network access;
[0336] When using Wi-Fi access, the terminal connects to the Wi-Fi network by searching for a preset service set identifier (SSID) or a Wi-Fi network with an SSID that conforms to a specific coding rule, and completes the initial network access;
[0337] When using cellular mobile network access, the terminal accesses the cellular mobile network through the parameters stored in the subscriber identity module (SIM) card and completes the initial network access.
[0338] Further, the sending module 14 is specifically set as:
[0339] After sending the configuration file to the terminal, make the terminal read the network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access to the formal network; and,
[0340] Make the terminal read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, the terminal reads the access authentication parameters in the configuration file and completes the authentication with the authentication parameters. The terminal communicates with the application server based on other running parameters in the configuration file.
[0341] Further, the identification module 12 is specifically set as:
[0342] For a terminal accessing the initial network through wired access or Wi-Fi access, obtain the terminal identifier from the communication protocol stack. The terminal identifier includes the media access control (MAC) address;
[0343] For a terminal accessing the initial network through a cellular mobile network, query the terminal identifier from the network element device. The terminal identifier includes the International Mobile Equipment Identity (IMEI) of the terminal;
[0344] Or, obtain the terminal identifier from the message sent from the terminal to the cloud service platform;
[0345] After obtaining the terminal identifier, retrieve it in the terminal identifier list to identify the terminal identity.
[0346] Further, the cloud service platform further includes a judgment module 15;
[0347] The determination module 15 is configured to, after the identification module 12 identifies the identity of the terminal, determine whether there is a pre-established correspondence between the terminal identifier and the configuration file according to the terminal identifier;
[0348] If so, determine the configuration file corresponding to the terminal, and determine whether there is a configuration file corresponding to the terminal stored;
[0349] If so, directly obtain the configuration file corresponding to the terminal and cause the distribution module 14 to distribute the configuration file to the terminal.
[0350] Further, the identification module 12 is specifically further configured to:
[0351] Obtain the positioning information of the terminal as the deployment information of the terminal; and / or,
[0352] When the terminal accesses a wired network, obtain the accessed port as the deployment information of the terminal;
[0353] When the terminal accesses a Wi-Fi network, obtain the MAC address of the accessed AP as the deployment information of the terminal;
[0354] When the terminal accesses a cellular mobile network, obtain the identifier of the accessed radio remote unit (RRU) as the deployment information of the terminal.
[0355] Further, the obtaining module 13 is specifically configured to:
[0356] Retrieve whether the cloud service platform has already saved a configuration file that matches the deployment information of the terminal;
[0357] If so, directly obtain the configuration file corresponding to the terminal;
[0358] If not, determine the application server to which the terminal is to be connected according to the deployment information of the terminal, and request the application server to allocate access authentication parameters and other operating parameters for the terminal;
[0359] Generate a configuration file for the terminal according to the address of the application server, the access authentication parameters, and other operating parameters.
[0360] Further, the obtaining module 13 is specifically further configured to:
[0361] Determine the formal network to which the terminal is to be connected according to the deployment information of the terminal, request the network management server corresponding to the formal network to complete network configuration for the terminal and allocate network access parameters for the terminal; and,
[0362] Add the network access parameters to the configuration file of the terminal when generating the configuration file of the terminal.
[0363] Further, the obtaining module 13 is specifically configured to:
[0364] After the identification module 12 obtains the deployment information of the terminal, retrieve the database according to the deployment information of the terminal to determine the application server to which the terminal is to be connected, where the database stores the correspondence between the deployment information of the terminal and the application server to be connected; and,
[0365] If the deployment information of the terminal contains the port of the wired network device accessed by the terminal, use the network to which the port belongs as the formal network to which the terminal is to be accessed;
[0366] If the deployment information of the terminal contains the MAC address of the Wi-Fi AP accessed by the terminal, select a network from the Wi-Fi networks accessible and connected to the application server by the Wi-Fi AP as the formal network to which the terminal is to be accessed;
[0367] If the deployment information of the terminal contains location information, select a network accessible and connected to the application server at this location as the formal network to which the terminal is to be accessed.
[0368] Further, the network management server completes network configuration for the terminal and assigns network access parameters to the terminal, including:
[0369] After the cloud service platform sends the terminal identifier and the formal network to which the terminal is to be accessed to the network management server, the network management server finds the Wi-Fi access controller that needs to be configured according to the formal network, requests the Wi-Fi access controller to create an account and password and send them back; or,
[0370] The network management server determines the Wi-Fi access controller that needs to be configured according to the formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the Wi-Fi access controller; or,
[0371] The network management server determines the Ethernet switch device that needs to be configured according to the formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the Ethernet switch device; or,
[0372] The network management server extracts the SIM card identifier and IMEI of the terminal from the terminal identifier and configures them into the core network of the mobile network; or,
[0373] The network management server configures the core network element and adds the access permission of the specified access point APN to the subscription information corresponding to the SIM card of the terminal.
[0374] Embodiment Five
[0375] Embodiment Five of the present disclosure provides a system for automatically configuring a terminal to access the Internet of Things. The system includes a terminal, as Figure 7 shown, the terminal includes:
[0376] A platform access module 21, which is configured to complete network access, establish a connection with a cloud service platform, enable the cloud service platform to identify the identity of the terminal, obtain the deployment information of the terminal, obtain the configuration file corresponding to the terminal according to the deployment information of the terminal, and send the configuration file to the terminal;
[0377] A receiving module 22, which is configured to receive the configuration file sent by the cloud service platform;
[0378] An application server access module 23, which is configured to access the application server according to the configuration file.
[0379] Furthermore,
[0380] The network for the terminal to connect to the cloud service platform is a zero-configuration initial network, and the network for the terminal to access the application server according to the configuration file is a formal network;
[0381] Among them, the access methods of the initial network include Wi-Fi access, wired access, and cellular mobile network access;
[0382] The completion of network access includes:
[0383] The platform access module 21 is specifically configured as:
[0384] When using Wi-Fi access, connect to the Wi-Fi network by finding the preset SSID or the Wi-Fi network that conforms to the specific coding rule SSID, and complete the zero-configuration network access;
[0385] When using cellular mobile network access, access the cellular mobile network through the parameters stored in the SIM card, and complete the zero-configuration network access.
[0386] Furthermore, the application server access module 23 is specifically configured as:
[0387] Read the network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access of the formal network; and,
[0388] Read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, read the access authentication parameters in the configuration file and use the access authentication parameters to complete the authentication;
[0389] Communicate with the application server based on other operating parameters in the configuration file.
[0390] The system for automatically configuring a terminal to access the Internet of Things according to the embodiments of the present disclosure is used to implement the method for automatically configuring a terminal to access the Internet of Things in Embodiments 1 to 3 of the method. Therefore, the description is relatively simple. For specific details, please refer to the relevant descriptions in Embodiments 1 to 2 of the foregoing method embodiments, and details will not be repeated here.
[0391] In addition, as Figure 8 shown, Embodiment 6 of the present disclosure further provides an electronic device, including a memory 100 and a processor 200. A computer program is stored in the memory 100. When the processor 200 runs the computer program stored in the memory 100, the processor 200 executes the above various possible methods.
[0392] Among them, the memory 100 is connected to the processor 200. The memory 100 can adopt flash memory, read-only memory or other memories, and the processor 200 can adopt a central processing unit or a single-chip microcomputer.
[0393] In addition, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the above various possible methods.
[0394] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, computer program modules or other data. The computer-readable storage medium includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD, Digital Video Disc) or other optical disc storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0395] It can be understood that the above embodiments are merely exemplary embodiments adopted to illustrate the principles of the present disclosure. However, the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present disclosure, and these modifications and improvements are also regarded as the protection scope of the present disclosure.
Claims
1. A method for automatically configuring a terminal to access the Internet of Things, characterized in that, Applied to a cloud service platform, the method includes: After the terminal completes network access, establish a connection with the terminal; Identify the terminal identity and obtain the deployment information of the terminal; Obtain the configuration file corresponding to the terminal according to the deployment information of the terminal; Send the configuration file to the terminal so that the terminal accesses the application server according to the configuration file.
2. The method according to claim 1, wherein: The network through which the cloud service platform connects to the terminal is an initial network that does not require configuration, and the network through which the terminal accesses the application server according to the configuration file is a formal network; Among them, the ways for the terminal to access the initial network include Wi-Fi access, wired access, and cellular mobile network access; When using Wi-Fi access, the terminal connects to the Wi-Fi network by searching for a preset service set identifier (SSID) or a Wi-Fi network with an SSID that conforms to a specific coding rule, and completes the initial network access; When using cellular mobile network access, the terminal accesses the cellular mobile network through the parameters stored in the subscriber identity module (SIM) card and completes the initial network access.
3. The method according to claim 1, characterized in that, The step of making the terminal access the application server according to the configuration file includes: Make the terminal read the network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access to the formal network; and Make the terminal read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, the terminal reads the access authentication parameters from the configuration file and uses the authentication parameters to complete the authentication, and the terminal communicates with the application server based on other operating parameters in the configuration file.
4. The method according to claim 2, wherein The step of identifying the terminal identity includes: For a terminal that accesses the initial network through wired access or Wi-Fi access, obtain the terminal identifier from the communication protocol stack, and the terminal identifier includes the media access control (MAC) address; For a terminal that accesses the initial network through cellular mobile network access, query the network element device for the terminal identifier, and the terminal identifier includes the international mobile equipment identity (IMEI) of the terminal; Alternatively, obtain the terminal identifier from the message sent by the terminal to the cloud service platform; After obtaining the terminal identifier, retrieve it in the terminal identifier list to identify the terminal identity.
5. The method according to claim 4, wherein: After identifying the terminal identity, determine whether there is a pre-established correspondence between the terminal identifier and the configuration file according to the terminal identifier; If so, determine the configuration file corresponding to the terminal and determine whether there is a configuration file corresponding to the terminal; If so, directly obtain the configuration file corresponding to the terminal and send it to the terminal.
6. The method according to claim 2, wherein The step of obtaining the deployment information of the terminal includes: Obtain the location information of the terminal as the deployment information of the terminal; and / or When the terminal accesses the wired network, obtain the accessed port as the deployment information of the terminal; When the terminal accesses the Wi-Fi network, obtain the MAC address of the access point (AP) it accesses as the deployment information of the terminal; When the terminal accesses the cellular mobile network, obtain the identifier of the radio remote unit (RRU) it accesses as the deployment information of the terminal.
7. The method according to claim 1 or 6, characterized in that The step of obtaining the configuration file corresponding to the terminal according to the deployment information of the terminal includes: Retrieve whether the cloud service platform has already saved a configuration file that matches the deployment information of the terminal; If so, directly obtain the configuration file corresponding to the terminal; If not, determine the application server to which the terminal is to be connected according to the deployment information of the terminal, and request the application server to allocate access authentication parameters and other operating parameters for the terminal; Generate a configuration file for the terminal based on the address of the application server, the access authentication parameters, and other operating parameters.
8. The method according to claim 7, characterized in that, The method further includes: Determine the formal network to which the terminal is to be connected according to the deployment information of the terminal, and request the network management server corresponding to the formal network to complete network configuration for the terminal and allocate network access parameters for the terminal; Add the network access parameters to the configuration file of the terminal when generating the configuration file of the terminal.
9. The method according to claim 8, wherein The determining the application server to which the terminal is to be connected according to the deployment information of the terminal includes: After obtaining the deployment information of the terminal, retrieve a database according to the deployment information of the terminal to determine the application server to which the terminal is to be connected, and the database stores the corresponding relationship between the deployment information of the terminal and the application server to be connected; The determining the formal network to which the terminal is to be connected according to the deployment information of the terminal includes: If the deployment information of the terminal contains the port of the wired network device accessed by the terminal, use the network to which the port belongs as the formal network to which the terminal is to be connected; If the deployment information of the terminal contains the MAC address of the Wi-Fi AP accessed by the terminal, select one of the Wi-Fi networks that can be accessed by the Wi-Fi AP and connected to the application server as the formal network to which the terminal is to be connected; If the deployment information of the terminal contains location information, select one of the networks that can be accessed at this location and connected to the application server as the formal network to which the terminal is to be connected.
10. The method according to claim 8, wherein The network management server completing network configuration for the terminal and allocating network access parameters for the terminal includes: After the cloud service platform sends the terminal identifier and the formal network to which the terminal is to be connected to the network management server, the network management server finds the Wi-Fi access controller that needs to be configured according to the formal network, requests the Wi-Fi access controller to create an account and password and send them back; or The network management server determines the Wi-Fi access controller that needs to be configured according to the formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the Wi-Fi access controller; or The network management server determines the Ethernet switch device that needs to be configured according to the formal network, extracts the MAC address of the terminal from the terminal identifier, and configures it into the Ethernet switch device; or The network management server extracts the subscriber identity module SIM card identifier and IMEI of the terminal from the terminal identifier, and configures them into the core network of the mobile network; or The network management server configures the core network element and adds the access permission of the specified access point name APN to the subscription information corresponding to the SIM card of the terminal.
11. A method for a terminal to automatically configure access to the Internet of Things, characterized in that, Applied to a terminal, the method includes: Complete network access, establish a connection with the cloud service platform, enable the cloud service platform to identify the terminal identity, obtain the deployment information of the terminal, obtain the configuration file corresponding to the terminal according to the deployment information of the terminal, and send the configuration file to the terminal; Receive the configuration file sent by the cloud service platform; Access the application server according to the configuration file.
12. The method according to claim 11, wherein: The network through which the terminal connects to the cloud service platform is an initial network that does not require configuration, and the network through which the terminal accesses the application server according to the configuration file is a formal network; Among them, the access methods of the initial network include Wi-Fi access, wired access, and cellular mobile network access; The completion of network access includes: When using Wi-Fi access, connect to the Wi-Fi network by finding the preset SSID or the Wi-Fi network that conforms to the specific coding rule SSID, and complete the non-configured network access; When using cellular mobile network access, access the cellular mobile network through the parameters stored in the SIM card to complete the non-configured network access.
13. The method according to claim 11, characterized in that, The accessing the application server according to the configuration file includes: Read the network access parameters from the configuration file. If the reading is successful, use the network access parameters to complete the access of the formal network; and Read the application server address from the configuration file, connect to the application server. If the application server requires identity authentication, read the access authentication parameters in the configuration file and use the access authentication parameters to complete the authentication; Communicate with the application server based on other operating parameters in the configuration file.
14. A system for automatically configuring a terminal to access the Internet of Things, characterized in that, The system includes a cloud service platform, and the cloud service platform includes: A connection module, which is set to establish a connection with the terminal after the terminal completes network access; An identification module, which is set to identify the terminal identity and obtain the deployment information of the terminal; An acquisition module, which is set to obtain the configuration file corresponding to the terminal according to the deployment information of the terminal; A sending module, which is set to send the configuration file to the terminal so that the terminal accesses the application server according to the configuration file.
15. The system according to claim 14, wherein: The network through which the cloud service platform connects to the terminal is an initial network that does not require configuration, and the network through which the terminal accesses the application server according to the configuration file is a formal network; Among them, the access methods of the terminal to the initial network include Wi-Fi access, wired access, and cellular mobile network access; When using Wi-Fi access, the terminal connects to the Wi-Fi network by finding the preset service set identifier SSID or the Wi-Fi network that conforms to the specific coding rule SSID, and completes the initial network access; When using cellular mobile network access, the terminal accesses the cellular mobile network through the parameters stored in the subscriber identity module SIM card to complete the initial network access.
16. The system according to claim 14, wherein The identification module is specifically set as: For the terminal that accesses the initial network through wired access or Wi-Fi access, obtain the terminal identifier from the communication protocol stack, and the terminal identifier includes the media access control address MAC address; For the terminal that accesses the initial network through cellular mobile network access, query the terminal identifier from the network element device, and the terminal identifier includes the IMEI of the terminal; Alternatively, obtain the terminal identifier from the message sent from the terminal to the cloud service platform; After obtaining the terminal identifier, retrieve it in the terminal identifier list to identify the terminal identity.
17. The system according to claim 16, wherein The cloud service platform further includes a judgment module; The judgment module is configured to, after the identification module identifies the terminal identity, determine whether there is a pre-established correspondence between the terminal identifier and the configuration file according to the terminal identifier; If so, determine the configuration file corresponding to the terminal, and determine whether there is a configuration file corresponding to the terminal; If so, directly obtain the configuration file corresponding to the terminal and cause the distribution module to distribute the configuration file to the terminal.
18. The system according to claim 15, wherein The identification module is specifically further configured to: Obtain the positioning information of the terminal as the deployment information of the terminal; and / or, When the terminal accesses a wired network, obtain the accessed port as the deployment information of the terminal; When the terminal accesses a Wi-Fi network, obtain the MAC address of the accessed AP as the deployment information of the terminal; When the terminal accesses a cellular mobile network, obtain the identifier of the accessed radio remote unit (RRU) as the deployment information of the terminal.
19. The system according to claim 14 or 18, characterized in that The obtaining module is specifically configured to: Retrieve whether the cloud service platform has already saved a configuration file that matches the deployment information of the terminal; If so, directly obtain the configuration file corresponding to the terminal; If not, determine the application server to which the terminal is to be connected according to the deployment information of the terminal, and request the application server to allocate access authentication parameters and other operating parameters for the terminal; Generate a configuration file for the terminal according to the address of the application server, the access authentication parameters, and other operating parameters.
20. The system according to claim 19, wherein The obtaining module is specifically further configured to: Determine the formal network to which the terminal is to be connected according to the deployment information of the terminal, and request the network management server corresponding to the formal network to complete network configuration for the terminal and allocate network access parameters for the terminal; And, Add the network access parameters to the configuration file of the terminal when generating the configuration file of the terminal.
21. The system according to claim 20, wherein The obtaining module is specifically configured to: After the identification module obtains the deployment information of the terminal, retrieve the database according to the deployment information of the terminal to determine the application server to which the terminal is to be connected, and the database stores the correspondence between the deployment information of the terminal and the application server to be connected; And, If the deployment information of the terminal includes the port of the wired network device accessed by the terminal, use the network to which the port belongs as the formal network to which the terminal is to be connected; If the deployment information of the terminal includes the MAC address of the Wi-Fi AP accessed by the terminal, select a network from the Wi-Fi networks accessible by the Wi-Fi AP and connected to the application server as the formal network to which the terminal is to be connected; If the deployment information of the terminal includes positioning information, select a network accessible and connected to the application server at this location as the formal network to which the terminal is to be connected.
22. A system for automatically configuring a terminal to access the Internet of Things, characterized in that, The system includes a terminal, and the terminal includes: A platform access module, which is configured to complete network access, establish a connection with the cloud service platform, enable the cloud service platform to identify the terminal identity, obtain the deployment information of the terminal, obtain the configuration file corresponding to the terminal according to the deployment information of the terminal, and distribute the configuration file to the terminal; A receiving module, which is configured to receive a configuration file sent by a cloud service platform; An application server access module, which is configured to access an application server according to the configuration file.
23. An electronic device, characterized in that, It includes a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method for automatically configuring a terminal to access the Internet of Things according to any one of claims 1-10 and claims 11-13.
24. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method for automatically configuring a terminal to access the Internet of Things according to any one of claims 1-10 and claims 11-13 is implemented.