Disclosure of Invention
The invention mainly aims to provide a method and a device for opening a site of Internet of things equipment, a service application system and a computer readable storage medium, and aims to solve the problems that the existing Internet of things equipment is long in opening time and low in efficiency when the site is opened, and more flow of the Internet of things equipment needs to be consumed.
In order to achieve the purpose, the invention provides a method for opening a site of equipment of the internet of things, which comprises the following steps:
a service application platform creates a new site and generates a configuration file;
the service application platform receives an Internet of things equipment serial number sent by a mobile terminal and sends the configuration file to the mobile terminal so as to control the mobile terminal to send the configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth;
and the service application platform acquires the authentication request sent by the Internet of things equipment receiving the configuration file and authenticates the Internet of things equipment so as to open the site of the Internet of things equipment.
Optionally, after the step of implementing the opening of the internet of things device site, the method further includes:
the service application platform receives site data collected by the Internet of things equipment with the opened site, and establishes a mapping relation between the Internet of things equipment serial number with the opened site and the site data.
Optionally, the step of receiving, by the service application platform, the internet of things device serial number sent by the mobile terminal includes:
and the service application platform receives the serial number of the Internet of things equipment, which is acquired by the mobile terminal through scanning the two-dimensional code of the Internet of things equipment.
Optionally, the configuration file includes a service application platform IP address;
the step of the service application platform acquiring the authentication request sent by the internet of things device receiving the configuration file comprises the following steps:
and the service application platform receives an authentication request sent after the Internet of things equipment accesses the service application platform IP address in the configuration file.
Optionally, the step of controlling the mobile terminal to send the configuration file to the internet of things device corresponding to the serial number through bluetooth includes:
and the service application platform sends a Bluetooth connection instruction to the mobile terminal so that the mobile terminal scans Bluetooth signals and is connected with the Internet of things equipment in a Bluetooth mode.
Optionally, the step of sending, by the service application platform, a bluetooth connection instruction to the mobile terminal, so that the mobile terminal scans a bluetooth signal and connects to the internet of things device via bluetooth further includes:
the service application platform acquires a Bluetooth transmission rate to detect whether the Bluetooth transmission rate is lower than a preset threshold value;
if so, sending the configuration file to a software management platform, so that the software management platform sends the configuration file to the Internet of things equipment;
if not, executing the following steps: and controlling the mobile terminal to send a configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth.
In addition, in order to achieve the above object, the present invention further provides a method for opening a site of an internet of things device, where the method includes:
a service application platform creates a new site and generates a configuration file;
the mobile terminal acquires and sends the serial number of the Internet of things equipment;
the service application platform receives an Internet of things equipment serial number sent by the mobile terminal and sends the configuration file to the mobile terminal;
the mobile terminal is connected with a built-in and/or plug-in Bluetooth module of the Internet of things equipment, and transmits the configuration file to the Internet of things equipment corresponding to the serial number through the built-in and/or plug-in Bluetooth module correspondingly;
and the Internet of things equipment generates an authentication request according to the configuration file received by the Bluetooth module, so that the service application platform authenticates the Internet of things equipment according to the authentication request.
In addition, to achieve the above object, the present invention further provides an internet of things equipment site provisioning device, where the internet of things equipment site provisioning device includes:
a new building module for building a new site and generating a configuration file;
the receiving module is used for receiving the serial number of the Internet of things equipment sent by the mobile terminal and sending the configuration file to the mobile terminal so as to control the mobile terminal to send the configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth;
and the registration module is used for acquiring the authentication request sent by the Internet of things equipment receiving the configuration file and authenticating the Internet of things equipment so as to open the site of the Internet of things equipment.
In addition, to achieve the above object, the present invention further provides a service application system, including: the website provisioning method comprises a communication module, a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the website provisioning method for the internet of things equipment are realized.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the internet of things equipment site provisioning method as described above are implemented.
According to the method, the device and the system for opening the Internet of things equipment site and the readable storage medium, the site is newly built through the service application platform and the configuration file is generated; the service application platform receives an Internet of things equipment serial number sent by a mobile terminal and sends the configuration file to the mobile terminal so as to control the mobile terminal to send the configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth; and the service application platform acquires the authentication request sent by the Internet of things equipment receiving the configuration file and authenticates the Internet of things equipment so as to open the site of the Internet of things equipment. According to the invention, the mobile terminal is communicated with the Internet of things equipment through the Bluetooth, so that the configuration file can be directly transmitted to the Internet of things equipment through the Bluetooth, and the whole configuration file is issued without participation of a software management platform, so that the network problem of the software management platform is avoided, the whole opening process is quicker, the working efficiency is improved, the time for opening a site is reduced, and the consumption of the flow of the Internet of things equipment is reduced because the Internet of things equipment receives the configuration file through the Bluetooth.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a service application system provided in the present invention. The business application system is a business application platform related in the technical field of internet of things devices, and may include components such as acommunication module 10, amemory 20, and aprocessor 30. In the business application system, theprocessor 30 is connected to thememory 20 and thecommunication module 10, respectively, thememory 20 stores thereon a computer program, which is executed by theprocessor 30 at the same time, and when executed, implements the steps of the method embodiments described below.
Thecommunication module 10 may be connected to an external communication device through a network. Thecommunication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device. The external communication device may be an internet of things device, for example, the internet of things device is a sensor, an intelligent appliance, an FSU (Field supervisory Unit, dynamic loop monitoring system), an OMC (Operation and Maintenance Center, software management platform), or a mobile terminal, such as a mobile phone and a tablet computer.
Thememory 20 may be used to store software programs as well as various data. Thememory 20 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a device site) required for at least one function, and the like; the storage data area may include a database, and the storage data area may store data or information created according to the use of the business application system, or the like. Further, thememory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 30, which is a control center of the business application system, connects various parts of the whole business application system by using various interfaces and lines, and performs various functions and processes of the business application system by running or executing software programs and/or modules stored in thememory 20 and calling data stored in thememory 20, thereby performing overall monitoring of the business application system.Processor 30 may include one or more processing units; alternatively, theprocessor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 30.
Although not shown in fig. 1, the service application system may further include a circuit control module for connecting to a power supply to ensure the normal operation of other components. The business application system may further include a display module for extracting data from thememory 20 and displaying a system interface of the business application system. Those skilled in the art will appreciate that the business application architecture illustrated in FIG. 1 is not intended to be limiting of the business application system and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
Based on the hardware structure, various embodiments of the method of the invention are provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a method for opening a site of an internet of things device, where in this embodiment, the method includes:
step S10, the service application platform creates a new site and generates a configuration file;
it should be noted that the internet of things device already contains the IP address information of the OMC before leaving the factory, and when the internet of things device is powered on and operates, the internet of things device can automatically register with the OMC, so that all the powered internet of things devices can be viewed on the OMC, but at this time, the registered internet of things device does not contain any monitored site information, and therefore the internet of things device needs to be bound with a specific site, that is, the site of the internet of things device is opened. When a new site is opened by the existing internet of things equipment, a service application platform (or a service application system, hereinafter referred to as "application platform") and an OMC are required to assist in completion, wherein the application platform is mainly responsible for service configuration and data management, and the OMC is used for docking and managing the internet of things equipment and mastering the whole equipment topology network.
Specifically, in the operation process of assisting the application platform and the OMC in opening the site, the application platform sends the site configuration file to the OMC, and the OMC issues the configuration file required by the site opening to the corresponding internet of things device.
In this embodiment, the application platform may determine the ID of the site to be monitored according to the configuration of the user or default setting in advance, so as to implement new creation of the site to be monitored and generation of the corresponding configuration file. The sites can be newly built simultaneously, or only a single site is newly built, and further, sites to be monitored when the networking devices of the objects to be configured are sequentially opened can be determined according to default or user configuration. In addition, the configuration file may be a unique configuration file corresponding to all the internet of things devices, or may also be a configuration file corresponding to one internet of things device of a site to be opened, and each configuration file has a site ID corresponding to the site ID required for monitoring the internet of things device.
Step S20, the service application platform receives an Internet of things equipment serial number sent by a mobile terminal and sends the configuration file to the mobile terminal so as to control the mobile terminal to send the configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth;
the serial number of the Internet of things equipment is set by a factory manufacturer of the Internet of things equipment, is a unique identifier of the Internet of things equipment, can be stored in a plurality of character forms, and can be displayed or used in a two-dimensional code mode on a package or an equipment body during external storage. The mobile terminal can acquire the Internet of things equipment serial number through the two-dimensional code corresponding to the scanning equipment. Namely, the service application platform can receive the serial number of the internet of things equipment, which is obtained by scanning the two-dimensional code of the internet of things equipment by the mobile terminal.
The mobile terminal is provided with a website opening special APP, the business application platform and the mobile terminal are communicated through the website opening special APP, the business application platform utilizes the website to open the special APP to send the configuration file to the mobile terminal, the mobile terminal and the Internet of things equipment are communicated through the Bluetooth, the business application platform can be communicated with the Internet of things equipment through the OMC, the configuration file is directly issued to the mobile terminal through the website opening special APP, and then the configuration file is sent to the Internet of things equipment through the Bluetooth.
For example, one configuration file corresponds to only one internet of things device, each time a service application platform can generate one configuration file, the configuration file comprises all site IDs which are newly built by the service application platform and need to be monitored by the internet of things device, when a serial number sent by a mobile terminal is received, the serial number can be stored, the previously generated configuration file is issued to the mobile terminal, and the new building of a next site and the generation of the configuration file are performed until the site is opened completely or directly.
Step S30, the service application platform obtains the authentication request sent by the internet of things device that receives the configuration file, and authenticates the internet of things device, so as to open the internet of things device site.
After the internet of things equipment receives the configuration file, the information in the configuration file is read so as to register and authenticate the service platform, after the service application platform receives the authentication request, the binding between the internet of things equipment and the newly-built site is completed according to the authentication request, the site of the internet of things equipment is successfully opened, and the subsequent internet of things equipment can upload the collected data to the service application platform for service processing and analysis. After the website is opened, the service application platform receives the website data collected by the internet of things equipment of the opened website, and establishes a mapping relation between the internet of things equipment serial number of the opened website and the website data according to the previously stored equipment serial number, so that the website data can be conveniently classified and stored.
In this embodiment, when issuing the configuration file, can directly send the configuration file to thing networking device through cell-phone bluetooth, whole process need not the participation of OMC platform, so even break down at the OMC platform, under the condition that does not exist even, also can realize building newly that the website is bound with thing networking device, simultaneously, it is faster to utilize bluetooth transmission configuration file, has promoted the efficiency that thing networking device website was opened, thing networking device need not consume the flow when save time yet.
Further, in other embodiments, the configuration file may include an IP Address (Internet Protocol Address) of the service application platform. The Internet of things equipment can read the IP information of the service application platform in the configuration file, and sends an authentication request to the service application platform by accessing the IP address of the service application platform, so that the service application platform can authenticate the equipment and the serial number of the equipment, and the opening and registration of the site is completed. According to the scheme, the service application platform IP address is applied, so that the Internet of things equipment site is completely opened, and the corresponding transmission of subsequent service application platforms and Internet of things equipment data is ensured.
Further, referring to fig. 3, a second embodiment of the internet of things device site provisioning method is provided based on the first embodiment of the present invention, in the second embodiment, the step S20 includes:
step S21, the service application platform receives an Internet of things equipment serial number sent by the mobile terminal;
step S22, the service application platform sends the configuration file to the mobile terminal;
step S23, the service application platform sends a Bluetooth connection instruction to the mobile terminal, so that the mobile terminal sends a configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth after scanning Bluetooth signals and Bluetooth connection with the Internet of things equipment.
In this embodiment, the service application platform may control the mobile terminal to perform the timing of opening the bluetooth connection, where the timing is after the configuration file is sent. In other embodiments, the configuration file may be sent before. The internet of things equipment can be defaulted to have a Bluetooth unit, so that the mobile terminal can search for a signal sent by the internet of things equipment after receiving a Bluetooth connection opening instruction, the internet of things equipment also can not have the Bluetooth unit, and an operator who opens the configuration by a station can externally connect a Bluetooth adapter to the internet of things equipment through a USB interface, so that the mobile terminal can also transmit a configuration file to the internet of things equipment through Bluetooth, and after the completion of the opening of the station, the external Bluetooth adapter can be manually taken out by the operator to conveniently open the configuration of the next station. According to the scheme, the configuration file is sent to the Internet of things equipment through the Bluetooth via the mobile terminal, compared with the prior art that the configuration file is sent to the software management platform by the service application platform and then directly issued to the physical network equipment, the flow of the Internet of things equipment is saved, the transmission rate is guaranteed, and even if the software management platform fails or even completely does not exist, the equipment site can be completely opened.
It should be noted that, the process of opening the device site by cooperation of each device and the platform may be: a service application platform creates a new site and generates a configuration file; the mobile terminal acquires and sends the serial number of the Internet of things equipment; the service application platform receives an Internet of things equipment serial number sent by the mobile terminal and sends the configuration file to the mobile terminal; the mobile terminal is connected with a built-in and/or plug-in Bluetooth module of the Internet of things equipment, and transmits the configuration file to the Internet of things equipment corresponding to the serial number through the built-in and/or plug-in Bluetooth module correspondingly; and the Internet of things equipment generates an authentication request according to the configuration file received by the Bluetooth module, so that the service application platform authenticates the Internet of things equipment according to the authentication request.
Optionally, after the service application platform controls the internet of things device and the mobile terminal to connect through bluetooth, the method may further include the steps of:
step S24, the service application platform acquires the Bluetooth transmission rate to detect whether the Bluetooth transmission rate is lower than a preset threshold value; if yes, go to step S25; if not, go to step S26;
step S25, sending the configuration file to a software management platform, so that the software management platform can send the configuration file to Internet of things equipment;
and step S26, controlling the mobile terminal to send a configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth.
It should be noted that the software management platform does not have a fault, and the internet of things device that needs to acquire the site configuration file can be determined. At the moment, the Bluetooth transmission rate of Bluetooth transmission to the Internet of things equipment through the mobile terminal and the real-time network rate of the software management platform can be compared, and the website can be conveniently opened by selecting a mode with a higher transmission rate.
It can be understood that factors such as the distance between bluetooth connections, signals, and modules may affect the transmission rate of bluetooth, and the actual transmission rate of bluetooth may be much lower than the theoretical transmission rate when the bluetooth distance exceeds the effective distance or the bluetooth signal is poor. Furthermore, a preset threshold value can be set by referring to the network transmission rate of the software management platform and/or the Bluetooth signal transceiving condition of the mobile terminal, when the Bluetooth transmission rate is higher than the preset threshold value, the configuration file is sent to the Internet of things equipment through the mobile terminal, otherwise, the configuration file is sent to the software management platform, and the software management platform issues the file. In the embodiment, a transmission channel with a faster configuration file is selected according to the actual transmission rate of the Bluetooth, so that a large amount of opening time is saved, and the opening efficiency is improved.
The invention also provides an internet of things equipment site opening device, which comprises:
a new building module for building a new site and generating a configuration file;
the receiving module is used for receiving the serial number of the Internet of things equipment sent by the mobile terminal and sending the configuration file to the mobile terminal so as to control the mobile terminal to send the configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth;
and the registration module is used for acquiring the authentication request sent by the Internet of things equipment receiving the configuration file and authenticating the Internet of things equipment so as to open the site of the Internet of things equipment.
Optionally, in another embodiment, the apparatus further comprises:
the establishing module is used for receiving site data collected by the Internet of things equipment with the opened site and establishing a mapping relation between the Internet of things equipment serial number with the opened site and the site data.
Optionally, in a further embodiment, the receiving module includes:
the first receiving unit is used for receiving the Internet of things equipment serial number acquired by the mobile terminal through scanning the two-dimensional code of the Internet of things equipment.
Optionally, in another embodiment, the configuration file includes a service application platform IP address; the registration module includes:
and the second receiving unit is used for receiving the authentication request sent after the equipment of the internet of things accesses the IP address of the service application platform in the configuration file.
Optionally, in a further embodiment, the apparatus further comprises:
and the sending module is used for sending a Bluetooth connection instruction to the mobile terminal so that the mobile terminal scans Bluetooth signals and is connected with the Internet of things equipment in a Bluetooth mode.
Optionally, in a further embodiment, the apparatus further comprises:
the detection module is used for acquiring the Bluetooth transmission rate so as to detect whether the Bluetooth transmission rate is lower than a preset threshold value; when the Bluetooth transmission rate is lower than a preset threshold value, the configuration file is sent to a software management platform, so that the software management platform can send the configuration file to Internet of things equipment; when the Bluetooth transmission rate is equal to or higher than a preset threshold value, executing the following steps: and controlling the mobile terminal to send a configuration file to the Internet of things equipment corresponding to the serial number through Bluetooth.
The invention also proposes a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be theMemory 20 in the server in fig. 1, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) having a processor to execute the method according to the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or server that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or server. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or service that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.