CN113645068B - Method for realizing automatic deployment and computer readable storage medium - Google Patents

Method for realizing automatic deployment and computer readable storage medium Download PDF

Info

Publication number
CN113645068B
CN113645068B CN202110901329.5A CN202110901329A CN113645068B CN 113645068 B CN113645068 B CN 113645068B CN 202110901329 A CN202110901329 A CN 202110901329A CN 113645068 B CN113645068 B CN 113645068B
Authority
CN
China
Prior art keywords
terminal
deployed
information
deployment
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110901329.5A
Other languages
Chinese (zh)
Other versions
CN113645068A (en
Inventor
陈钧
肖泽宝
刘灵辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN202110901329.5A priority Critical patent/CN113645068B/en
Publication of CN113645068A publication Critical patent/CN113645068A/en
Application granted granted Critical
Publication of CN113645068B publication Critical patent/CN113645068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

The invention discloses a method for realizing automatic deployment and a computer readable storage medium, which are used for receiving equipment information sent by a terminal to be deployed; sending corresponding deployment information to the terminal to be deployed according to the equipment information; automatically deploying the deployment information to the terminal to be deployed; the corresponding deployment information is sent to the terminal to be deployed according to the equipment information sent by the terminal to be deployed, the deployment information is automatically deployed to the terminal to be deployed, automatic deployment after the terminal arrives at the place is realized, the terminal to be deployed does not need to be manually deployed, the workload of installation and debugging of technicians or users after the terminal is set to the place is greatly reduced, and the convenience of terminal deployment is greatly improved.

Description

Method for realizing automatic deployment and computer readable storage medium
Technical Field
The invention relates to the field of software installation, in particular to a method for realizing automatic deployment and a management end.
Background
Most of terminals (such as projectors, set-top boxes and other electronic equipment) in the current market are sold, and when the terminals are deployed to a use place (such as an operation place and a household place), users are required to start and manually log in a terminal software system after installing the electronic equipment, and network parameter setting, legal information management and control confirmation of the equipment and installation and operation of matched application software are carried out, so that the learning operation cost of the users is greatly increased, and great inconvenience and trouble are brought to the users in use or experience. Meanwhile, in products (such as personal electronic products, household electronic products and the like) which are required to be operated and deployed by the personal user in the market at present, the user needs to perform basic and individual operation setting according to the step-by-step setting operation of the installation setting guide after starting, and inconvenience is brought to the user.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method and the management end for realizing automatic deployment are provided, and the automatic deployment after the terminal arrives at the place can be realized.
In order to solve the technical problems, the invention adopts a technical scheme that:
a method of implementing automatic deployment, comprising the steps of:
receiving equipment information sent by a terminal to be deployed;
sending corresponding deployment information to the terminal to be deployed according to the equipment information;
and automatically deploying the deployment information to the terminal to be deployed.
In order to solve the technical problems, the invention adopts another technical scheme that:
a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above-described method of achieving automatic deployment.
The invention has the beneficial effects that: the corresponding deployment information is sent to the terminal to be deployed according to the equipment information sent by the terminal to be deployed, the deployment information is automatically deployed to the terminal to be deployed, automatic deployment after the terminal arrives at the place is realized, the workload of installation and debugging of technicians or users after the terminal is set at the place is greatly reduced, and the convenience of terminal deployment is greatly improved.
Drawings
FIG. 1 is a flow chart of steps of a method for implementing automatic deployment according to an embodiment of the present invention;
FIG. 2 is a communication architecture implementation of a method of implementing automatic deployment in accordance with an embodiment of the present invention;
FIG. 3 is another communication architecture implementation of a method of implementing automatic deployment in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart illustrating the detailed steps of a method for implementing automatic deployment according to an embodiment of the present invention.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a method for implementing automatic deployment, including the steps of:
receiving equipment information sent by a terminal to be deployed;
sending corresponding deployment information to the terminal to be deployed according to the equipment information;
and automatically deploying the deployment information to the terminal to be deployed.
From the above description, the beneficial effects of the invention are as follows: the corresponding deployment information is sent to the terminal to be deployed according to the equipment information sent by the terminal to be deployed, the deployment information is automatically deployed to the terminal to be deployed, automatic deployment after the terminal arrives at the place is realized, the terminal to be deployed does not need to be manually deployed, the workload of installation and debugging of technicians or users after the terminal is set to the place is greatly reduced, and the convenience of terminal deployment is greatly improved.
Further, the sending the corresponding deployment information to the terminal to be deployed according to the device information includes:
corresponding deployment information is obtained from the local according to the equipment information, and the deployment information is sent to the terminal to be deployed;
or acquiring corresponding deployment information from a cloud server according to the equipment information, wherein the deployment information is pre-stored in the cloud server;
and sending the deployment information to the terminal to be deployed.
According to the description, when the deployment information is acquired, the cloud server can be directly communicated with the terminal to be deployed, the cloud server can be used for transmitting the deployment information to the terminal to be deployed, automatic deployment after the terminal arrives at a place can be realized by constructing a three-layer communication architecture of the cloud server, the management server and the terminal to be deployed, the management server is used as a relay, the corresponding deployment information acquired from the cloud server is transmitted to the terminal to be deployed, and different modes for acquiring the deployment information can be flexibly used according to different specific application scenes, so that the flexibility of the terminal equipment in the automatic deployment process is greatly improved.
Further, the receiving the device information sent by the terminal to be deployed includes:
receiving broadcast information sent by a terminal to be deployed, wherein the broadcast information comprises equipment information;
the sending the corresponding deployment information to the terminal to be deployed according to the equipment information comprises:
sending corresponding network information to the terminal to be deployed according to the broadcast information;
receiving an information acquisition request sent by the terminal to be deployed according to the network information;
and sending corresponding deployment information synchronized from a cloud server to the terminal to be deployed according to the information acquisition request.
As can be seen from the above description, the device information sent by the terminal to be deployed through the broadcast information is received first, and then the corresponding network information is sent to the deployment terminal according to the broadcast information, so that the deployment terminal can send an information acquisition request based on the network information, and then the deployment information is sent to the terminal to be deployed according to the information acquisition request, thereby realizing autonomous interaction with the terminal to be deployed, realizing autonomous networking of the terminal to be deployed and autonomous acquisition of the deployment information, and guaranteeing realization of automatic deployment.
Further, the deployment information comprises the authority level of the terminal to be deployed;
the automatic deployment of the deployment information to the terminal to be deployed includes:
setting the authority of the terminal to be deployed according to the authority level of the terminal to be deployed;
and automatically deploying the deployment information corresponding to the authority of the terminal to be deployed to the terminal to be deployed.
As can be seen from the above description, the deployment information includes the authority level of the terminal to be deployed, the authority of the terminal to be deployed is set based on the authority level, and the matched deployment information is deployed according to the authority level of the terminal to be deployed, so that the corresponding deployment information, such as the matched installation of the application and the service module and the operation deployment module which needs to be automatically displayed, can be performed according to the authority level of the terminal to be deployed, thereby achieving the automatic deployment that the system operation module performs adaptation according to the authority level of the terminal to be deployed, facilitating platform management of the terminal under line, reducing the workload that personnel may need to perform deployment management and intervention manual operation of different versions according to different areas or service levels, and greatly improving the deployment convenience of the terminal to be deployed for different places and different levels.
Further, the method further comprises the steps of:
receiving the deployment state of the terminal to be deployed;
judging whether the deployed information of the terminal to be deployed needs upgrading according to the deployment state, if so, acquiring corresponding upgrading deployment information, sending the upgrading deployment information to the terminal to be deployed, and automatically upgrading the deployed information of the terminal to be deployed according to the upgrading deployment information.
From the above description, it can be known that the deployment state of the terminal to be deployed can be monitored, and when the deployment information of the terminal to be deployed needs to be upgraded according to the real-time deployment state of the terminal to be deployed, the deployment information of the terminal to be deployed can be automatically upgraded, so that the automatic software upgrading function is realized, and the automation degree of terminal equipment deployment is further improved.
Further, the deployment information comprises system software, applications and services to be installed;
the automatic deployment of the deployment information to the terminal to be deployed further comprises the following steps:
and receiving the hardware version, the software version, the application running state and the service running state of the terminal to be deployed after the terminal to be deployed automatically deploys the deployment information.
The above description shows that after the terminal to be deployed operates, the hardware version, the software version, the application operating state and the service operating state of the terminal to be deployed can be reported, so that real-time management and health monitoring of the terminal to be deployed are realized.
Further, the receiving the broadcast information sent by the terminal to be deployed includes:
receiving broadcast information sent by the terminal to be deployed through a UDP protocol;
the network information includes a first IP address;
the receiving the information acquisition request sent by the terminal to be deployed according to the network information comprises the following steps:
receiving an information acquisition request sent by the terminal to be deployed according to the first IP address through an HTTP protocol;
the sending the corresponding deployment information to the terminal to be deployed includes:
and sending corresponding deployment information to the terminal to be deployed through an HTTP protocol.
According to the description, through the cooperation of UDP and HTTP, the terminals to be deployed can normally network whenever and acquire the corresponding deployment information, the terminals to be deployed acquire network information based on UDP protocol and acquire deployment information based on HTTP protocol, so that the reliability of networking of the terminals to be deployed is guaranteed, and the terminals to be deployed can acquire deployment information quickly and efficiently.
Further, the network information comprises a second IP address automatically generated for the terminal to be deployed;
the step of sending the corresponding network information to the terminal to be deployed further comprises:
receiving an IP conflict prompt fed back by the terminal to be deployed after performing ping operation according to the second IP address;
and automatically generating a second IP address again according to the IP conflict prompt, and sending the second IP address to the terminal to be deployed until the terminal to be deployed does not feed back the IP conflict prompt.
From the above description, it can be known that an IP address for networking is automatically generated for the terminal to be deployed, so that the terminal to be deployed can be automatically networked, and the reliability of the IP address used by the terminal to be deployed is ensured by setting an IP collision prevention mechanism, so that the IP address of the original equipment in the place is not encroached in the whole process.
Further, the method further comprises the following steps:
receiving an IP address replacement request;
and broadcasting IP address replacement information through UDP according to the IP address replacement request to prompt the terminal to be deployed to update the first IP address stored by the terminal to be deployed.
As can be seen from the above description, when the IP address communicating with the terminal to be deployed is replaced, the IP address replacement information is broadcasted through the UDP protocol, so that each terminal to be deployed updates the stored first IP address, and the smoothness and reliability of the subsequent communication with the terminal to be deployed are ensured, thereby ensuring the smooth implementation of automatic deployment.
Further, the method further comprises the following steps:
receiving a request for deleting a terminal to be deployed;
and deleting the deployment information and the equipment information of the terminal to be deployed, which correspond to the terminal to be deployed and are requested by the terminal to be deployed.
As can be seen from the above description, the terminal to be deployed can be deleted, and the corresponding device information and deployment information can be deleted, so that the flexibility of managing the offline terminal is improved.
Further, the step of sending the corresponding network information to the terminal to be deployed includes the steps of:
and monitoring the IP setting of the terminal to be deployed to judge whether the IP setting of the terminal to be deployed is finished or not.
From the above description, it can be known that by monitoring the IP setting of the terminal to be deployed in real time, whether the IP setting of the terminal to be deployed is completed can be judged, so that the reliability of subsequent communication with the terminal to be deployed is ensured.
Further, the monitoring the IP setting of the terminal to be deployed includes:
receiving IP connection state change broadcast information;
judging whether the IP connection state change broadcast information is current network state notification information received when the application is entered or not, if not, judging whether the IP is in an unconnected state or a connected state according to the IP connection state change broadcast information;
if the terminal is in the connected state, judging that the IP setting of the terminal to be deployed is successful.
From the above description, in the process of monitoring the IP setting of the terminal to be deployed, the accuracy of judging whether the IP setting of the terminal to be deployed is successful or not is ensured by excluding the current network state notification information received when the terminal enters the application.
Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described method of implementing automatic deployment.
The method for realizing automatic deployment and the computer readable storage medium can be suitable for automatic deployment of various terminal equipment, can be suitable for installation and deployment of various commercial places, such as installation and deployment of various boxes on a set top box in a KTV place, installation and deployment of a POS machine in a mall, and can also be suitable for installation and deployment of various personal use places, such as installation and deployment of a set top box in a household place, installation and deployment of personal mobile equipment, installation and deployment of household intelligent appliances, installation and deployment of various Internet of things equipment and the like, and are described in the following by specific embodiments:
example 1
Referring to fig. 1, a method for implementing automatic deployment, in this embodiment, an installation deployment of a set top box is taken as an example for explanation, and the method includes the steps of:
s1, receiving equipment information sent by a terminal to be deployed;
the device information includes SN (Serial Number) codes of a main board of the set-top box and SN codes of a complete set of the set-top box, as shown in fig. 2, the device information may be written into the set-top box in a device production stage of the set-top box, and is input to a cloud platform through machine scanning SN codes, where the cloud platform stores deployment information required by each device to be deployed;
after the standby top box is produced, the set top box is sold to a merchant;
in a merchant platform configuration stage, the cloud platform is distributed to an operation account corresponding to a merchant;
the cloud end adds the corresponding offline terminal for the agent, and enters the SN code corresponding to the offline terminal, equipment information such as equipment model and the like during the addition;
after the agent sells the off-line terminal to the merchant, the agent adds the corresponding off-line terminal to an operation account corresponding to the merchant;
after a merchant logs in a cloud platform, the merchant can inquire a corresponding off-line terminal and acquire equipment information of the off-line terminal, wherein the equipment information comprises an SN (serial number) of a set top box main board and an SN of a set top box complete machine;
when the set top box is installed in a corresponding place, such as a corresponding box, after the set top box is connected with a power supply and connected with a network, the set top box sends equipment information to a server connected with the set top box, wherein the server connected with the set top box can be a cloud server or a management server in the corresponding place;
s2, corresponding deployment information is sent to the terminal to be deployed according to the equipment information;
in an optional implementation manner, corresponding deployment information is obtained locally according to the equipment information, and the deployment information is sent to the terminal to be deployed;
in this embodiment, as shown in fig. 2, the set-top box is networked with a cloud server, and the cloud server directly obtains deployment information corresponding to the device information from the local and sends the deployment information to the set-top box, and the cloud server establishes a database which stores the device information and the deployment information (including SN codes, MAC addresses, different software and hardware versions, etc. of machines of different models) of all the devices to be deployed;
in another optional implementation manner, corresponding deployment information is obtained from a cloud server according to the equipment information, and the deployment information is pre-stored in the cloud server;
sending the deployment information to the terminal to be deployed;
in this embodiment, as shown in fig. 3, a management server is disposed at a place where the set top box is located, where the management server is respectively in communication with the cloud server and the set top box, in the use scenario, in a stage of configuring a merchant platform shown in fig. 4, a browser can be opened at a platform such as a PC and a mobile phone by a merchant, after logging in the merchant platform according to an account configured for the merchant, an offline terminal added by an agent for the merchant can appear in a device list, when the merchant logs in the cloud platform and inquires about a corresponding machine, the cloud platform can synchronize information between the cloud platform and the management server, and the cloud platform can synchronize device information and deployment information of the corresponding machine to the management server, so that when the set top box is installed in a corresponding box, after the set top box is connected with a power supply and is connected with the management server, the management server sends the device information, and the management server obtains corresponding deployment information synchronized from the cloud platform according to the device information and sends the corresponding deployment information to the set top box;
the method has the advantages that the method can realize the transmission of the deployment information in different modes, and the method is that the terminal to be deployed directly sends the equipment information to the cloud server and directly obtains the deployment information corresponding to the equipment information from the cloud server; the other mode is that a management server is arranged at the place where the terminal to be deployed is located, the management server synchronizes the equipment information and the deployment information of each terminal to be deployed at the place where the terminal to be deployed is located from the cloud server, the terminal to be deployed sends the equipment information to the management server, and then the management server sends the corresponding deployment information to the terminal to be deployed according to the equipment information;
for the second mode, the cloud server is accessed by the offline management server instead of the offline terminal, so that high concurrency of network access of the cloud server can be reduced, and reliable transmission of deployment information can be ensured;
s3, the deployment information is automatically deployed to the terminal to be deployed.
Example two
The embodiment further defines that the deployment information includes authority levels of the terminals to be deployed;
the automatic deployment of the deployment information to the terminal to be deployed includes:
setting the authority of the terminal to be deployed according to the authority level of the terminal to be deployed;
deploying the deployment information corresponding to the authority of the terminal to be deployed to the terminal to be deployed automatically;
the method further comprises the following steps after the deployment information is automatically deployed to the terminal to be deployed:
s4, receiving the deployment state of the terminal to be deployed;
judging whether the deployed information of the terminal to be deployed needs upgrading according to the deployment state, if so, acquiring corresponding upgrading deployment information, sending the upgrading deployment information to the terminal to be deployed, and automatically upgrading the deployed information of the terminal to be deployed according to the upgrading deployment information;
specifically, as shown in fig. 4, in the configuration stage of the merchant platform, after the merchant logs in the cloud platform, the state and the authority of the corresponding use of the machine can be set according to the place to which the machine is to be arranged, and the corresponding authority level and the state of use are also stored in the cloud platform as a part of the deployment information, so in the second mode of the first embodiment, the cloud platform synchronizes the deployment information and the device information of the corresponding machine to the management server, wherein the deployment information includes the state and the authority level of use of the device to be deployed;
in a specific deployment, in a first manner of the first embodiment, the cloud server determines corresponding deployment information according to information of a terminal to be deployed, acquires a corresponding authority level from the corresponding deployment information, sets authority of the terminal to be deployed, such as system software authority or VIP level of the terminal to be deployed, and deploys corresponding system software, application and service APK according to the authority of the terminal to be deployed, for example, a corresponding skin packet, an application packet and the like can be downloaded to the terminal to be deployed according to different VIP levels, and in addition, a corresponding authority level can be set for the terminal to be deployed according to a specific application scene of the terminal to be deployed, so that system software, application and service adapted to the application scene of the terminal to be deployed can be deployed automatically;
after the deployment is finished, the terminal to be deployed reports the deployment state of the deployed system software, application and service to a cloud server, such as version information and the like, the cloud server judges whether the terminal to be deployed needs to be upgraded according to the current deployment state of the terminal to be deployed, if so, the corresponding upgrade information is sent to the terminal to be deployed to automatically finish the upgrade of the deployment information, wherein the terminal to be deployed can report in real time or report once every preset time, and after the basic system software, application and service module of the terminal to be deployed are automatically deployed, the cloud server can also configure an operation module which needs to be displayed and operated in a box where the terminal to be deployed is located;
in the second mode of the first embodiment, the above-mentioned interaction process between the cloud server and the terminal to be deployed is transferred through the management server as a relay, and in the process of automatically upgrading the terminal to be deployed, related information of automatic upgrading can be displayed on the interface at the management server end, and after the terminal to be deployed automatically installs the application module and the service module according to the level or upgrades and completes automatic deployment of the application system, the operation display module of the terminal to be deployed in the corresponding place can also be automatically deployed;
according to the method, the device and the system, different permission levels are set for the terminals to be deployed in different places or the adaptive deployment information is deployed automatically for the terminal equipment to be deployed according to application scenes, different users of different levels or different application scenes can be achieved to distinguish deployment and maintenance products, and personalized and self-adaptive deployment setting is achieved.
Example III
The present embodiment further defines that the deployment information includes system software, applications, and services to be installed;
the method further comprises the following steps after the deployment information is automatically deployed to the terminal to be deployed:
the cloud server or the management server receives the hardware version, the software version, the application running state and the service running state of the terminal to be deployed after the terminal to be deployed automatically deploys the deployment information, so that the terminal to be deployed carries out the management of the Internet of things to realize the health monitoring of the terminal to be deployed;
for the three-layer communication architecture of the cloud server-management server-terminal to be deployed, the management server synchronizes the received content to the cloud server.
Example IV
The embodiment specifically describes how, under a three-layer communication architecture of a cloud server, a management server and a terminal to be deployed, the management server establishes connection with the terminal to be deployed and realizes communication, and specifically:
the method comprises the steps that a management server receives broadcast information sent by a terminal to be deployed, wherein the broadcast information comprises equipment information;
receiving broadcast information sent by the terminal to be deployed through a UDP protocol;
specifically, when a terminal to be deployed is installed in a place managed by an offline management server, the management server synchronizes equipment information of the terminal to be deployed stored by the cloud server from the cloud server;
after the terminal to be deployed is installed, transmitting own equipment information (comprising SN codes, MAC addresses and the like) to an offline management server through a UDP protocol;
the sending the corresponding deployment information to the terminal to be deployed according to the equipment information comprises:
sending corresponding network information to the terminal to be deployed according to the broadcast information;
specifically, after receiving the device information broadcast by the terminal to be deployed, the management server performs validity check on the identity of the terminal to be deployed according to the device information acquired from the cloud server and the device information received from the terminal to be deployed, judges whether corresponding device information exists from the cloud server, namely whether the device information exists in a device column, if so, the identity of the terminal to be deployed is legal, and the management server sends network information set for the terminal to be deployed to the terminal to be deployed, wherein the network information comprises a first IP address, the first IP address is the IP address of the management server, so that the terminal to be deployed can establish communication connection with the management server according to the first IP address, if not, the management server does not reply any request of the terminal to be deployed, and after preset time, for example, a prompt box is provided after 60 seconds, and the corresponding device is a serial or illegal device;
as shown in fig. 4, the network information set by the management server for the terminal to be deployed may implement configuration of the network information of the device to be deployed according to the specific network situation of the specific location after the management server obtains the device information in the configuration stage of the management server, including configuration of information such as a device room state, WIFI, and an operation module;
when a terminal to be deployed is restarted for the first time after being deployed to a corresponding place, acquiring an IP address of an offline management server by using UDP (user datagram protocol) broadcasting so as to acquire deployment information later, and then acquiring the deployment information efficiently and rapidly through http requests every restart, wherein when UDP broadcasting is performed, the IP address of the offline management server can be broadcasted once every preset time, such as every 10 seconds, if no response of the management server is acquired within the preset time, stopping UDP broadcasting and popping up a prompt box, such as 60 seconds, when no response of the management server is received, stopping broadcasting, thereby preventing unnecessary occupation of local area network performance;
since the IP address of the android terminal automatically becomes a DHCP assignment after restarting, the application scene of the android terminal needs to be reset with the static IP address which is allocated and stored before restarting the terminal after on-line downloading;
in an alternative embodiment, a UDP anti-impact mechanism is set for the offline terminal, specifically, the offline terminal may receive multiple repeated UDP reply packets in a short time, only one of the multiple repeated UDP reply packets may be processed at this time, or a UDP reply packet not belonging to the offline terminal may be received, which may be automatically ignored at this time; the UDP packet is unreliable, so that the size of the UDP buffer zone of the offline terminal can be adaptively set, if the UDP data transmitted by the management server is too large, the UDP packet can be automatically truncated, and the size of the UDP buffer zone of the offline terminal can be adaptively set according to the size of the actually received UDP data;
the network information also comprises a second IP address which is automatically generated by the management server for the terminal to be deployed;
after receiving the second IP address automatically generated by the management server, the terminal to be deployed performs network setting to realize networking with the management server, and sends an information acquisition request to the management server through an HTTP protocol;
as shown in fig. 2, in the stage of deployment at the site, when a terminal to be deployed, i.e. a set top box, acquires network information through UDP and accesses a network, a management server performs identity verification on equipment, and if the equipment identity is legal, the management server receives an information acquisition request sent by the terminal to be deployed according to the first IP address through HTTP protocol;
the management server sends corresponding deployment information synchronized from the cloud server to the terminal to be deployed through an HTTP (hyper text transport protocol) according to the information acquisition request, namely, the state and authority corresponding to the equipment to be deployed are acquired, corresponding system software, application and service are automatically downloaded and installed, grade matching upgrading is carried out, and meanwhile, an operation module which needs to be displayed and operated in a box where the set top box is located can be further configured;
the identity of the equipment to be deployed is verified before the equipment to be deployed is connected and before the deployment information is acquired, so that the security of equipment deployment can be improved by factories and places, and the access of goods in series or illegal equipment is prevented.
In an optional embodiment, after the management server sends the corresponding network information to the terminal to be deployed, the method further includes:
receiving an IP conflict prompt fed back by the terminal to be deployed after performing ping operation according to the second IP address;
automatically generating a second IP address again according to the IP conflict prompt, and sending the second IP address to the terminal to be deployed until the terminal to be deployed does not feed back the IP conflict prompt;
the off-line terminal to be deployed pops up a prompt IP conflict if ping is conducted to the configured IP address by the off-line terminal, and has an MAC conflict prevention mechanism;
in an alternative embodiment, the method further comprises:
receiving an IP address replacement request;
broadcasting IP address replacement information through UDP according to the IP address replacement request to prompt the terminal to be deployed to update the first IP address stored by the terminal to be deployed;
in this embodiment, when the offline management server is better than the IP address, the management server may send a UDP broadcast notification that the offline terminal in operation updates the IP address of the management server stored in the offline management server, and for an offline terminal that is not powered on, the offline terminal may automatically transfer to the UDP flow to obtain the IP address updated by the management server after the http request is overtime after powering on;
in another alternative embodiment, the method further comprises:
receiving a request for deleting a terminal to be deployed;
deleting deployment information and equipment information of the terminal to be deployed, which correspond to the terminal to be deployed and are requested by the terminal to be deployed;
in this embodiment, when a merchant wants to deactivate a certain offline terminal, the state of the corresponding device may be modified to be removed from the device list of its account, where the corresponding offline terminal will reside in the prompt box and mask the function for use;
because the UDP and HTTP both need to rely on the network when communicating, but the IP setting cannot be normally performed in the IP setting process, and the IP setting needs to be waited for, in order to ensure that the communication is performed effectively and reliably, the IP setting completion needs to be monitored, specifically, after the corresponding network information is sent to the terminal to be deployed, the method includes the steps of:
monitoring the IP setting of the terminal to be deployed to judge whether the IP setting of the terminal to be deployed is finished or not;
specifically, the monitoring the IP setting of the terminal to be deployed includes:
receiving IP connection state change broadcast information;
however, the android system also receives a notification of the current network state every time the android system enters the application, if the android system does not access the network, the notification is received as a DISCONNECTED, otherwise as a CONNECTED, so that in order to avoid confusion between the notification of the current network state received by the application every time and monitoring of the subsequent IP setting of the terminal to be deployed, the following judgment is performed:
judging whether the IP connection state change broadcast information is current network state notification information received when the application is entered or not, if not, judging whether the IP is in an unconnected state or a connected state according to the IP connection state change broadcast information;
if the terminal is in the connected state, judging that the IP of the terminal to be deployed is successfully set;
the IP connection state CHANGE broadcast information is a connection_change broadcast, by which the state of the network can be determined, and the state CHANGE in the IP setting process is from DISCONNECTED to CONNECTED, so that when CONNECTED, communication can be considered.
Example five
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of implementing automatic deployment according to any of embodiments one to four.
In summary, the method for implementing automatic deployment and the computer readable storage medium provided by the invention have the advantages that the management server acquires the deployment information of the terminal to be deployed from the cloud server, the corresponding network information is sent to the terminal to be deployed by receiving the broadcast information of the terminal to be deployed managed by the management server, the terminal to be deployed is automatically networked with the management server according to the network information, and an information acquisition request is sent to the management server, and the management server sends the deployment information synchronized from the cloud server to the deployment terminal, so that the automatic deployment of the terminal to be deployed is implemented, the automatic deployment of the terminal to be deployed is implemented by constructing a three-layer communication architecture of the cloud server-the management end-the terminal to be deployed, the workload of technicians to install and debug the terminal after the terminal is set to the place is greatly reduced, convenience is also greatly improved, the deployment information comprises the authority level of the terminal to be deployed, the application and the service module can be installed in a matched mode according to the basic information such as the access and the identity level of the terminal to be deployed, and the automatic upgrade can be performed by the controller, the automatic deployment module which needs to be automatically displayed by running the system running, thus the automatic deployment terminal can be conveniently placed on different service intervention platforms, the manual operation requirements of the management platform can be reduced, and the manual operation requirements of different service management platforms can be improved at the same time, and the operation level is convenient.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (9)

1. A method for implementing automatic deployment, comprising the steps of:
receiving equipment information sent by a terminal to be deployed;
sending corresponding deployment information to the terminal to be deployed according to the equipment information;
automatically deploying the deployment information to the terminal to be deployed;
the receiving the equipment information sent by the terminal to be deployed comprises the following steps:
receiving broadcast information sent by a terminal to be deployed, wherein the broadcast information comprises equipment information;
the sending the corresponding deployment information to the terminal to be deployed according to the equipment information comprises:
sending corresponding network information to the terminal to be deployed according to the broadcast information;
receiving an information acquisition request sent by the terminal to be deployed according to the network information;
sending corresponding deployment information synchronized from a cloud server to the terminal to be deployed according to the information acquisition request;
the receiving the broadcast information sent by the terminal to be deployed comprises the following steps:
receiving broadcast information sent by the terminal to be deployed through a UDP protocol;
the network information includes a first IP address;
the receiving the information acquisition request sent by the terminal to be deployed according to the network information comprises the following steps:
receiving an information acquisition request sent by the terminal to be deployed according to the first IP address through an HTTP protocol;
the sending the corresponding deployment information to the terminal to be deployed includes:
corresponding deployment information is sent to the terminal to be deployed through an HTTP protocol;
the network information comprises a second IP address which is used for networking and is automatically generated for the terminal to be deployed;
the step of sending the corresponding network information to the terminal to be deployed further comprises:
receiving an IP conflict prompt fed back by the terminal to be deployed after performing ping operation according to the second IP address;
automatically generating a second IP address again according to the IP conflict prompt, and sending the second IP address to the terminal to be deployed until the terminal to be deployed does not feed back the IP conflict prompt;
receiving an IP address replacement request;
and broadcasting IP address replacement information through UDP according to the IP address replacement request to prompt the terminal to be deployed to update the first IP address stored by the terminal to be deployed.
2. The method for implementing automatic deployment according to claim 1, wherein the sending, according to the device information, the corresponding deployment information to the terminal to be deployed includes:
corresponding deployment information is obtained from the local according to the equipment information, and the deployment information is sent to the terminal to be deployed;
or acquiring corresponding deployment information from a cloud server according to the equipment information, wherein the deployment information is pre-stored in the cloud server;
and sending the deployment information to the terminal to be deployed.
3. A method of implementing automatic deployment according to any one of claims 1 and 2, wherein the deployment information comprises a permission level of the terminal to be deployed;
the automatic deployment of the deployment information to the terminal to be deployed includes:
setting the authority of the terminal to be deployed according to the authority level of the terminal to be deployed;
and automatically deploying the deployment information corresponding to the authority of the terminal to be deployed to the terminal to be deployed.
4. A method of enabling automatic deployment according to any one of claims 1 and 2, further comprising the step of:
receiving the deployment state of the terminal to be deployed;
judging whether the deployed information of the terminal to be deployed needs upgrading according to the deployment state, if so, acquiring corresponding upgrading deployment information, sending the upgrading deployment information to the terminal to be deployed, and automatically upgrading the deployed information of the terminal to be deployed according to the upgrading deployment information.
5. A method of enabling automatic deployment according to any of claims 1 and 2, wherein the deployment information comprises system software, applications and services to be installed;
the automatic deployment of the deployment information to the terminal to be deployed further comprises the following steps:
and receiving the hardware version, the software version, the application running state and the service running state of the terminal to be deployed after the terminal to be deployed automatically deploys the deployment information.
6. A method of enabling automatic deployment according to any one of claims 1 and 2, further comprising:
receiving a request for deleting a terminal to be deployed;
and deleting the deployment information and the equipment information of the terminal to be deployed, which correspond to the terminal to be deployed and are requested by the terminal to be deployed.
7. The method for implementing automatic deployment according to claim 1, wherein after the corresponding network information is sent to the terminal to be deployed, the method comprises the steps of:
and monitoring the IP setting of the terminal to be deployed to judge whether the IP setting of the terminal to be deployed is finished or not.
8. The method for implementing automatic deployment according to claim 7, wherein said listening to the IP settings of the terminal to be deployed comprises:
receiving IP connection state change broadcast information;
judging whether the IP connection state change broadcast information is current network state notification information received when the application is entered or not, if not, judging whether the IP is in an unconnected state or a connected state according to the IP connection state change broadcast information;
if the terminal is in the connected state, judging that the IP setting of the terminal to be deployed is successful.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of a method of implementing automatic deployment according to any of claims 1-8.
CN202110901329.5A 2021-08-06 2021-08-06 Method for realizing automatic deployment and computer readable storage medium Active CN113645068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110901329.5A CN113645068B (en) 2021-08-06 2021-08-06 Method for realizing automatic deployment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110901329.5A CN113645068B (en) 2021-08-06 2021-08-06 Method for realizing automatic deployment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113645068A CN113645068A (en) 2021-11-12
CN113645068B true CN113645068B (en) 2023-11-10

Family

ID=78419899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110901329.5A Active CN113645068B (en) 2021-08-06 2021-08-06 Method for realizing automatic deployment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113645068B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102860B (en) * 2022-08-24 2022-11-22 广东电网有限责任公司广州供电局 Power Internet of things application issuing deployment method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294763A (en) * 2016-03-28 2017-10-24 阿里巴巴集团控股有限公司 Network equipment method and apparatus
CN110099095A (en) * 2019-02-28 2019-08-06 新华三信息技术有限公司 Software deployment method, apparatus, electronic equipment and computer readable storage medium
CN111240702A (en) * 2019-12-31 2020-06-05 苏州浪潮智能科技有限公司 DHCP-based operating system deployment method, system, terminal and storage medium
CN112328262A (en) * 2020-11-05 2021-02-05 腾讯科技(深圳)有限公司 Deployment method, system and device of operating system and electronic equipment
CN112395016A (en) * 2020-11-26 2021-02-23 深信服科技股份有限公司 Equipment deployment method, device and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294763A (en) * 2016-03-28 2017-10-24 阿里巴巴集团控股有限公司 Network equipment method and apparatus
CN110099095A (en) * 2019-02-28 2019-08-06 新华三信息技术有限公司 Software deployment method, apparatus, electronic equipment and computer readable storage medium
CN111240702A (en) * 2019-12-31 2020-06-05 苏州浪潮智能科技有限公司 DHCP-based operating system deployment method, system, terminal and storage medium
CN112328262A (en) * 2020-11-05 2021-02-05 腾讯科技(深圳)有限公司 Deployment method, system and device of operating system and electronic equipment
CN112395016A (en) * 2020-11-26 2021-02-23 深信服科技股份有限公司 Equipment deployment method, device and related equipment

Also Published As

Publication number Publication date
CN113645068A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US10802906B2 (en) Monitoring method and apparatus of server, and storage medium
CN100391176C (en) Method and system for remote updating function of domestic apparatus
KR102202660B1 (en) A method and apparatus for controlling devices for a smart home service
CN101951400B (en) Software installation and upgrading method of application terminal in home network and system thereof
CN111356149A (en) Wireless network configuration method and device
JP2009217656A (en) Software update system in information apparatus
KR101452760B1 (en) System for updating of a household appliance and method thereof
KR20110068098A (en) Software upgrade apparatus and method of customer premise equipment
KR20080060927A (en) Server, client and method for supporting/performing update thereof
CN105245418A (en) Method, device and system for controlling smart home devices
CN104346198A (en) Information processing apparatus, server apparatus, information processing method, and program
CN113645068B (en) Method for realizing automatic deployment and computer readable storage medium
CN102082685A (en) Network configured method and system of embedded device
CN111147314A (en) Switch upgrading method, device and storage medium
CN105245556A (en) Intelligent mobile phone remote control method and device
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN114938329A (en) MQTT-based router gateway device management method and system
WO2017124741A1 (en) Method and device for synchronizing apparatus version
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN111130865B (en) Network equipment firmware batch upgrading method and system based on two-layer switching
CN112738581A (en) Equipment configuration method, smart television, universal remote controller and system
CN107920004B (en) Network connection method, device and system of gateway
CN101931615A (en) Network equipment downloading files by equipment identification codes and method thereof
CN114722363A (en) Remote locking method, system, device, equipment and computer readable storage medium
US20070263639A1 (en) IP telephone remote control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant