Disclosure of Invention
The purpose of the invention is: the method and the system for online configuration of the intelligent convergence terminal are provided, and online configuration of the intelligent convergence terminal can be realized.
In order to achieve the above object, an aspect of the present invention provides an online configuration method for an intelligent convergence terminal, including:
the computer equipment connected with the intelligent convergence terminal acquires network operator information and terminal information of the intelligent convergence terminal;
according to the network operator information, matching in a parameter configuration database in the computer equipment to obtain APN (Access Point Name, Chinese Name: Access Point Name) configuration information corresponding to the network operator information;
and sending the APN configuration information to the intelligent fusion terminal corresponding to the terminal information according to the terminal information so that the intelligent fusion terminal can automatically configure the APN according to the APN configuration information.
Preferably, the computer device is connected with the intelligent convergence terminal through a switch;
before the computer device connected with the intelligent convergence terminal acquires the network operator information and the terminal information of the intelligent convergence terminal, the method further comprises the following steps:
acquiring network operator information of the intelligent convergence terminal, and storing the network operator information into a specified storage path;
correspondingly, the process of acquiring the network operator information of the intelligent convergence terminal by the computer equipment connected with the intelligent convergence terminal specifically comprises the following steps:
and the computer equipment connected with the intelligent convergence terminal through the switch acquires the network operator information of the intelligent convergence terminal from the specified storage path.
Preferably, the process of acquiring the terminal information of the intelligent convergence terminal by the computer device connected to the intelligent convergence terminal specifically includes:
and scanning an effective address in a preset network segment by computer equipment connected with the intelligent fusion terminal through the switch, and acquiring terminal information of the intelligent fusion terminal corresponding to the effective address according to the effective address.
Preferably, the method further comprises:
and the computer equipment receives the prompt information of successful APN configuration returned by the intelligent fusion terminal.
Preferably, the network operator information includes mobile network code information and mobile country code information, and the terminal information includes electronic serial number information.
Another aspect of the present invention provides an online configuration system for an intelligent convergence terminal, including: the acquisition module, the matching module and the sending module are arranged in the computer equipment connected with the intelligent fusion terminal;
the acquisition module is used for acquiring the network operator information and the terminal information of the intelligent convergence terminal;
the matching module is used for matching in a parameter configuration database in the computer equipment according to the network operator information to obtain APN configuration information corresponding to the network operator information;
the sending module is used for sending the APN configuration information to the intelligent fusion terminal corresponding to the terminal information according to the terminal information, so that the intelligent fusion terminal can automatically configure the APN according to the APN configuration information.
Preferably, the computer device is connected to the intelligent convergence terminal through a switch, and the system further includes: the storage module is arranged in the intelligent fusion terminal;
the storage module is used for acquiring the network operator information of the intelligent convergence terminal and storing the network operator information into a specified storage path;
correspondingly, the obtaining module is specifically configured to:
and acquiring the network operator information of the intelligent convergence terminal from the specified storage path.
Preferably, the obtaining module is further specifically configured to:
scanning an effective address in a preset network segment, and acquiring terminal information of the intelligent fusion terminal corresponding to the effective address according to the effective address.
Preferably, the system further comprises: a receiving module;
the receiving module is used for receiving prompt information of APN configuration success returned by the intelligent fusion terminal.
Preferably, the network operator information includes mobile network code information and mobile country code information, and the terminal information includes electronic serial number information.
The invention has at least the following beneficial effects:
according to the invention, the network operator information and the terminal information of the intelligent fusion terminal are obtained through the computer equipment connected with the intelligent fusion terminal, the APN configuration information corresponding to the network operator information is obtained in a parameter configuration database in the computer equipment in a matching manner, and then the APN configuration information is sent to the intelligent fusion terminal corresponding to the terminal information, so that the intelligent fusion terminal can automatically configure the APN according to the APN configuration information, the problems that when the intelligent fusion terminal of a distribution room is installed on line, an installer and a main station are required to perform manual communication and operation for many times in a joint debugging process, the process of accessing the main station is complicated, the consumed time is long, and the workload is large are solved, and the effect of enabling the intelligent fusion terminal to be configured on line quickly is achieved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not represent the only embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, an aspect of the present invention provides an online configuration method for an intelligent convergence terminal, including:
s110, the computer equipment connected with the intelligent convergence terminal acquires the network operator information and the terminal information of the intelligent convergence terminal.
In the embodiment of the present invention, the computer device may be a computer device such as a desktop computer, a notebook computer, or a server, which has an operating system and can support program operation. The computer equipment can be connected with a plurality of intelligent fusion terminals in a wired connection mode, and the method for acquiring the network operator information and the terminal information of each intelligent fusion terminal by the computer equipment can be manually input or automatically read from a specified storage path. If the information file is automatically read from the appointed storage path, the information file is required to be stored in the appointed storage path in advance by each intelligent fusion terminal.
And S120, according to the network operator information, matching in a parameter configuration database in the computer equipment to obtain APN configuration information corresponding to the network operator information.
In the embodiment of the invention, each APN configuration item is stored in a parameter configuration database in the computer equipment in advance, and according to the acquired network operator information of each intelligent convergence terminal, relevant information matching can be carried out in the parameter configuration database to find out the corresponding APN configuration information. Each APN configuration item pre-stored in the parameter configuration database can be generated by collecting network setting information parameters provided by different network operators in advance, and is stored in the parameter configuration database in a list form.
It should be noted that the APN refers to a network access technology, and is a parameter that must be configured when the intelligent convergence terminal is online, and it determines which access method the intelligent convergence terminal accesses the network through. In different regions, different network operators are used, and different APNs need to be configured. From the perspective of network operators, an APN is a logical name, and is generally deployed on a GGSN (Gateway GPRS Support Node, chinese-generic-name: Gateway GPRS Support Node) device or logically connected to the GGSN, and when a user uses a GPRS (General packet radio service, chinese-generic-name: GPRS Support Node) to surf the internet, the user goes out to an external network through the GGSN in a proxy manner, so that the APN setting, filtering, counting, and the like become one of parameters having important reference values for GPRS charging and GPRS charges (as the APN can distinguish one service or external network). Only when the APN parameter in the intelligent convergence terminal is correct, the intelligent convergence terminal can normally access the network in the relevant country or region.
And S130, sending the APN configuration information to an intelligent fusion terminal corresponding to the terminal information according to the terminal information so that the intelligent fusion terminal can automatically configure the APN according to the APN configuration information.
In the embodiment of the invention, the terminal information of each intelligent fusion terminal has uniqueness, and the APN configuration information can be sent to each corresponding intelligent fusion terminal one by one according to the acquired terminal information of each intelligent fusion terminal, so that all the intelligent fusion terminals automatically configure the APN according to the APN configuration information, and batch online of the intelligent fusion terminals is completed.
As can be seen from the above, in the method for configuring an intelligent convergence terminal on line provided in the embodiment of the present invention, network operator information and terminal information of the intelligent convergence terminal are obtained through a computer device connected to the intelligent convergence terminal, and APN configuration information corresponding to the network operator information is obtained by matching in a parameter configuration database in the computer device, and then the APN configuration information is sent to the intelligent convergence terminal corresponding to the terminal information, so that the intelligent convergence terminal performs automatic configuration of an APN according to the APN configuration information.
In a specific embodiment of the present invention, the network operator information includes mobile network code information and mobile country code information, and the terminal information includes electronic serial number information.
In the embodiment of the present invention, a Mobile Network Code (MNC) and a Mobile Country Code (MCC) are uniformly allocated and managed by the international telecommunication union, so as to represent a Network operator of a single Mobile device. An Electronic Serial Number (ESN) is a parameter specified by the federal communications commission in the united states and unique to each terminal device, and an intelligent convergence terminal can be uniquely identified by the ESN.
Referring to fig. 2, a schematic flow chart of another online configuration method for an intelligent convergence terminal according to an embodiment of the present invention is shown, where a computer device is connected to each intelligent convergence terminal through a switch, and the method includes:
and S210, acquiring the network operator information of the intelligent convergence terminal, and storing the network operator information into a specified storage path.
In the embodiment of the invention, all intelligent convergence terminals needing online configuration are connected to a multi-port switch, and the computer equipment is also connected with the switch. And each intelligent convergence terminal edits the information of the affiliated network operator according to the location and the network operator of the used card, and stores the information into a specified storage path of the local host. During specific implementation, part of the intelligent fusion terminals may need to use a public network and a private network, configuration needs to be customized, and in addition, different 4G modules need to be selected and executed by different scripts, so that all the information files can be stored in a specified storage path by each intelligent fusion terminal.
S2201, the computer equipment connected with the intelligent fusion terminal through the switch acquires the network operator information of the intelligent fusion terminal from the appointed storage path.
In the embodiment of the invention, the computer equipment connected with the intelligent fusion terminals through the switch finds the information files stored in each intelligent fusion terminal from the appointed storage path, reads the contents in the information files, analyzes the contents and acquires the network operator information of each intelligent fusion terminal. Meanwhile, the information of whether each intelligent fusion terminal uses the public network and the private network or not and the script information needing matching can be obtained together.
S2202, the computer device connected with the intelligent fusion terminal through the switch scans the effective address in the preset network segment, and obtains the terminal information of the intelligent fusion terminal corresponding to the effective address according to the effective address.
In the embodiment of the invention, the network segment to be scanned is preset in the computer equipment, and the computer equipment and all the intelligent fusion terminals are in the same network segment, so that the intelligent fusion terminals which are correctly connected and normally run can be scanned by the computer equipment. The computer equipment can utilize SSH (English full name: Secure Shell, Chinese full name: Secure Shell protocol) to quickly connect all addresses 0-255 in the network segment, if the computer equipment can connect, the computer equipment adds the address (namely effective address) into the equipment list, and all connected intelligent fusion terminals are automatically scanned. According to all scanned effective addresses, the ESN of each address can be acquired, and the corresponding intelligent convergence terminal can be identified by using the uniqueness of the ESN.
And S230, according to the network operator information, matching in a parameter configuration database in the computer equipment to obtain APN configuration information corresponding to the network operator information.
S240, according to the terminal information, sending the APN configuration information to an intelligent fusion terminal corresponding to the terminal information, so that the intelligent fusion terminal can automatically configure the APN according to the APN configuration information.
In the embodiment of the invention, if the intelligent convergence terminal uses a public network, adding a corresponding APN according to APN configuration information; inquiring whether APN is added successfully; if the APN is successfully added, restarting the 4G module to enable the added APN to take effect; waiting for a period of time after restarting, and checking whether the module indicator light is normal; if the intelligent convergence terminal is normal, the on-line configuration of the intelligent convergence terminal is successful.
If the intelligent convergence terminal uses a private network, adding a corresponding APN according to APN configuration information; inquiring whether APN is added successfully; if the addition is successful, uploading the selected script file to the intelligent fusion terminal (the specific name is determined according to the module manufacturer); changing the attribute of the script, executing the script, and then waiting for the script to be executed successfully; switching to a forced private network mode, and waiting for the instruction to be executed successfully; disabling the soft card, and waiting for the instruction to be executed successfully; writing the card, filling IMSI (International Mobile Subscriber Identity, Chinese full name: International Mobile Subscriber Identity) of the soft card, KI (Key identifier, Chinese full name: authentication Key) and OPC (optical Point Code), wherein the three variables come from previously read excel batch configuration information and wait for successful instruction execution; enabling the soft card, and waiting for the instruction to be successfully executed; querying the state of VSIM (Virtual Subscriber Identity Module, Chinese full name: Virtual Subscriber Identity Module), and waiting for successful instruction execution; inquiring the IMSI, and waiting for the instruction to be successfully executed; the restarting module waits for the instruction to be successfully executed; and starting dialing and waiting for successful instruction execution. In each step, whether the step is executed unsuccessfully or not can be automatically judged according to the return value, and if the step is executed unsuccessfully, the step is automatically executed repeatedly.
When the encryption file is imported, uploading the encryption bin script file under the configuration path to a default path of the intelligent fusion terminal; sequentially changing the file attribute, executing the file and operating the file; sequentially changing the path attribute of the encrypted file and entering the path of the encrypted file; uploading 3 certificate files, wherein the 'cacert.sm 2. pem' file is shared by all intelligent convergence terminals, the other two certificate files are respectively '$ ESN.key' and '$ ESN.pem', and the ESN is an electronic serial number of the intelligent convergence terminal equipment and has uniqueness; modify "client. conf" and upload to the vpn _ debug directory.
When uploading an MQTT (Message Queuing telemeasuring and transmitting) configuration file, executing a command to change the directory attribute; executing the command to enter the directory; executing the instruction to delete the original paramFile file; the execution instruction uploads the modified paramFile file; and executing the instruction to give file authority.
And finally, executing the instruction to restart the intelligent fusion terminal to enable the configuration to take effect.
And S250, the computer equipment receives prompt information of APN configuration success returned by the intelligent fusion terminal.
In the embodiment of the invention, after the intelligent convergence terminal is successfully configured online, the prompt message of APN configuration success can be returned.
Another aspect of the embodiments of the present invention provides an online configuration system for an intelligent convergence terminal, where the system described below may be referred to in correspondence with the method described above.
Referring to fig. 3, the system includes: the intelligent convergence terminal comprises an acquisition module 310, a matching module 320 and a sending module 330 which are arranged in computer equipment connected with the intelligent convergence terminal;
the obtaining module 310 is configured to obtain network operator information and terminal information of the intelligent convergence terminal;
the matching module 320 is configured to match the APN configuration information corresponding to the network operator information in a parameter configuration database in the computer device according to the network operator information;
the sending module 330 is configured to send the APN configuration information to an intelligent convergence terminal corresponding to the terminal information according to the terminal information, so that the intelligent convergence terminal performs automatic configuration of an APN according to the APN configuration information.
In a specific embodiment of the present invention, the network operator information includes mobile network code information and mobile country code information, and the terminal information includes electronic serial number information.
Referring to fig. 4, a schematic structural diagram of another online configuration system of an intelligent convergence terminal provided in an embodiment of the present invention includes: the intelligent integration system comprises a storage module 410 arranged in the intelligent integration terminal, and an acquisition module 420, a matching module 430, a sending module 440 and a receiving module 450 which are arranged in computer equipment; the computer equipment is connected with the intelligent fusion terminal through a switch;
the storage module 410 is configured to obtain network operator information of the intelligent convergence terminal, and store the network operator information in a specified storage path;
the obtaining module 420 is specifically configured to: and acquiring the network operator information of the intelligent fusion terminal from the specified storage path, scanning the effective address in the preset network segment, and acquiring the terminal information of the intelligent fusion terminal corresponding to the effective address according to the effective address.
The matching module 430 is configured to match the APN configuration information corresponding to the network operator information in a parameter configuration database in the computer device according to the network operator information;
the sending module 440 is configured to send the APN configuration information to an intelligent convergence terminal corresponding to the terminal information according to the terminal information, so that the intelligent convergence terminal performs automatic configuration of the APN according to the APN configuration information;
the receiving module 450 is configured to receive a prompt message that the APN configuration is successful, where the prompt message is returned by the intelligent convergence terminal.
Preferably, the network operator information includes mobile network code information and mobile country code information, and the terminal information includes electronic serial number information.
As can be seen from the above, in the online configuration system of the intelligent convergence terminal provided in the embodiment of the present invention, the network operator information and the terminal information of the intelligent convergence terminal are obtained through the computer device connected to the intelligent convergence terminal, and the APN configuration information corresponding to the network operator information is obtained by matching in the parameter configuration database in the computer device, and then is sent to the intelligent convergence terminal corresponding to the terminal information, so that the intelligent convergence terminal performs automatic configuration of the APN according to the APN configuration information, thereby solving the problems that when the platform area intelligent convergence terminal is installed online, an installer and a master station are often required to perform manual communication and operation for many times in a joint adjustment process, which leads to a complicated process of accessing the master station, long time consumption and large workload, and achieving an effect of enabling the intelligent convergence terminal to perform rapid online configuration.
For a description of a relevant part in the online configuration system of the intelligent convergence terminal provided in the embodiment of the present invention, refer to a detailed description of a corresponding part in the online configuration method of the intelligent convergence terminal provided in the embodiment of the present invention, and all have corresponding effects of the online configuration method of the intelligent convergence terminal provided in the embodiment of the present invention, and are not described herein again.
It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.