CN110113207A - A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium - Google Patents

A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium Download PDF

Info

Publication number
CN110113207A
CN110113207A CN201910380720.8A CN201910380720A CN110113207A CN 110113207 A CN110113207 A CN 110113207A CN 201910380720 A CN201910380720 A CN 201910380720A CN 110113207 A CN110113207 A CN 110113207A
Authority
CN
China
Prior art keywords
agreement
configuration information
terminal
server
file
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.)
Pending
Application number
CN201910380720.8A
Other languages
Chinese (zh)
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.)
Guangzhou Creation Cloud Technology Co Ltd
Original Assignee
Guangzhou Creation Cloud Technology 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 Guangzhou Creation Cloud Technology Co Ltd filed Critical Guangzhou Creation Cloud Technology Co Ltd
Priority to CN201910380720.8A priority Critical patent/CN110113207A/en
Publication of CN110113207A publication Critical patent/CN110113207A/en
Pending legal-status Critical Current

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/04Network management architectures or arrangements
    • 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/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of method for updating protocol based on Internet of Things, device, equipment and storage mediums.It include server and multiple terminals in Internet of Things, each terminal connects multiple sensors, and sensor sends data to terminal according to agreement for acquiring data, by obtaining description file from server, description file includes the first configuration information that agreement is arranged in server;It determines in terminal to the second configuration information of agreement setting;First configuration information is compared with the second configuration information;When the first configuration information and the second configuration information there are it is different when, the agreement for meeting the first configuration information is obtained from server;Application protocol is arranged to sensor, it solves the problems, such as because maintenance cost is high caused by terminal is different to protocol requirement, reach and the agreement in terminal has been managed collectively using server, the maintenance cost of terminal protocol is saved, and easily the agreement of terminal is modified, improve the technical effect of the flexibility of agreement maintenance.

Description

A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium
Technical field
The present embodiments relate to technology of Internet of things more particularly to a kind of method for updating protocol based on Internet of Things, device, Equipment and storage medium.
Background technique
With the fast development of Internet of Things, the demand of data collection station becomes increasing, and Platform communication is caused to be assisted It discusses more and more.As the sensor that data collection station accesses is more and more, data collection station needs the biography parsed Sensor agreement also becomes more and more.Traditional way be allow data collection station constantly support newly-increased platform communications protocol and Sensor communication agreement causes the software in data collection station to do more and more huger, and the configuration item of software is also more and more, This maintenance just to software in data collection station brings difficulty.Particularly, for the terminal runed, if necessary to support New sensor also inevitably needs reheating software, increases production cost.
In addition, in some cases, if the demand sudden change of client, will lead to product to burn again it is soft Part increases production cost.In some cases, if client is dissatisfied to certain operating parameters, with regard to needing to reconfigure, Increase maintenance cost.
Summary of the invention
The present invention provides a kind of method for updating protocol based on Internet of Things, device, equipment and storage medium, to realize service Device is managed collectively the agreement in terminal, has saved the maintenance cost of terminal protocol, and easily to the agreement of terminal into Row change, improves the flexibility of agreement maintenance.
In a first aspect, the embodiment of the invention provides a kind of method for updating protocol based on Internet of Things, in the Internet of Things Including server and multiple terminals, each terminal connects multiple sensors, and the sensor, will according to agreement for acquiring data The data are transmitted to the terminal, and the method is applied to the terminal, which comprises
Description file is obtained from server, the description file includes that the server is matched to the agreement is arranged first Confidence breath;
It determines in the terminal to the second configuration information of agreement setting;
First configuration information is compared with second configuration information;
When first configuration information and second configuration information there are it is different when, meet institute from server acquisition State the agreement of the first configuration information;
The sensor is arranged and applies the agreement.
It is further, described to obtain description file from server, comprising:
When meeting preset condition, the identification number of the terminal is determined;
Configuration downloading request is generated, the configuration downloading request includes the identification number;
The configuration downloading request is sent to the server, the server downloads request for responding the configuration, Description file is sent to the terminal, the description file is determined according to the identification number;
Wherein, the condition includes following at least one:
The terminal is in replay phase, the terminal reaches predetermined period.
Further, the second configuration information that the agreement is arranged in the terminal is determined, comprising:
It determines in the terminal for installing the first catalogue of the agreement;
First catalogue is scanned, determines type, fingerprint characteristic and the installation site of the agreement;
The second configuration information is generated, second configuration information includes type, fingerprint characteristic and the installation position of the agreement It sets.
Further, first configuration information is compared with second configuration information, comprising:
S11, the type for determining the agreement configured in first configuration information;
S12, determine in second configuration information whether configure to the agreement of the type, if so, executing S13, if it is not, then executing S16;
S13, it determines in second configuration information and first configuration information, the fingerprint characteristic of the agreement of the type It is whether consistent;If so, executing S14;If it is not, then execute S16, and by the agreement of the type in the terminal be determined as to Delete agreement;
S14, it determines in second configuration information and first configuration information, the agreement of the type is configured Whether installation site is consistent, if so, S15 is executed, if it is not, then executing S17;
S15, determine that the agreement of the type in the terminal meets first configuration information;
S16, determine that the agreement is agreement to be updated, the agreement to be updated will be downloaded to described from the server Terminal;
S17, determine that the agreement is agreement to be moved, the agreement to be moved will be moved into first configuration information The installation site of the agreement of configuration;
S18, the type for determining the agreement configured in second configuration information;
S19, it determines the agreement of the type is not configured in first configuration information, it is determined that the type Agreement is agreement to be deleted.
Further, when first configuration information and second configuration information there are it is different when, from the server Obtain the agreement for meeting first configuration information, comprising:
Create download directory;
Agreement downloading request is sent to the server;
It receives the server and responds the agreement that the agreement downloading request, sent;
And the received agreement is stored in the download directory.
Further, the sensor is arranged and applies the agreement, comprising:
Determine the installation site configured in first configuration information to the agreement;
The agreement of downloading is moved to the installation site;
Delete the agreement that first configuration information is not configured.
Further, this method further includes:
Log caused by the terminal is saved as into journal file;
When the file size for determining the journal file is more than preset value, then the journal file is sent to the clothes Business device;
When determining that the journal file is successfully transmitted to the server, then the journal file in the terminal is deleted, And re-execute the operation that log caused by the terminal is saved as to journal file.
Further, this method further includes:
The task packet sent from server is received, includes at least one executable file in the task packet;
Executable file in the task packet is unziped into predetermined directory;
It detects that the predetermined directory meets execution condition, then executes the executable file in the predetermined directory.
Further, encryption and signature of the transmission file obtained from the server by the server, the biography Defeated file includes at least one of following: description file, agreement;
The method also includes:
Decryption oprerations are executed to the encryption file of the transmission file, obtain decryption file and signature check information;
Signature check is executed to the decryption file using the signature check information to operate;
When the result of signature check operation is successfully, the transmission file download success is determined.
Second aspect, the embodiment of the invention also provides a kind of method for updating protocol based on Internet of Things, the Internet of Things In include server and multiple terminals, each terminal connects multiple sensors, and the sensor is for acquiring data, according to agreement The data are transmitted to the terminal, the method is applied to the server, which comprises
Description file is issued to the terminal, the description file includes the agreement is arranged in the server first Configuration information;First configuration information in the terminal with the second configuration information for being compared, second configuration Information is in the terminal to the configuration information of agreement setting;
The agreement for meeting first configuration information is issued to the terminal, the agreement determines institute in the terminal State the first configuration information and second configuration information there are it is different when issue, the terminal be used for the sensor setting answer With the agreement issued.
The third aspect, the embodiment of the present invention also provide a kind of protocol update device based on Internet of Things, in the Internet of Things Including server and multiple terminals, each terminal connects multiple sensors, and the sensor, will according to agreement for acquiring data The data are transmitted to the terminal, and described device is applied to the terminal, and described device includes:
File acquisition module is described, for obtaining description file from server, the description file includes the server To the first configuration information of agreement setting;
Second configuration information determining module, for determining in the terminal to the second configuration information of agreement setting;
Comparison module, for first configuration information to be compared with second configuration information;
Agreement obtains module, for when first configuration information and second configuration information there are it is different when, from institute It states server and obtains the agreement for meeting first configuration information;
Agreement application module applies the agreement for the sensor to be arranged.
Fourth aspect, the embodiment of the present invention also provide a kind of protocol update device based on Internet of Things, in the Internet of Things Including server and multiple terminals, each terminal connects multiple sensors, and the sensor, will according to agreement for acquiring data The data are transmitted to the terminal, and described device is applied to the server, and described device includes:
Description file issues module, and for issuing description file to the terminal, the description file includes the service The first configuration information that the agreement is arranged in device;First configuration information is used in the terminal and the second configuration information It is compared, second configuration information is in the terminal to the configuration information of agreement setting;
Agreement issues module, for issuing the agreement for meeting first configuration information, the association to the terminal View the terminal determine first configuration information and second configuration information there are it is different when issue, the terminal is used for The agreement that sensor setting application is issued.
5th aspect, the embodiment of the present invention also provides a kind of protocol update equipment based on Internet of Things, comprising: memory with And one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the method for updating protocol based on Internet of Things as described in any in first aspect or second aspect.
6th aspect, the embodiment of the present invention also provide a kind of storage medium comprising computer executable instructions, feature It is, the computer executable instructions by computer processor when being executed for executing as in first aspect or second aspect Any method for updating protocol based on Internet of Things.
The present invention includes server and multiple terminals in the Internet of Things by being arranged, and each terminal connects multiple sensings The data are transmitted to the terminal for acquiring data, according to agreement by device, the sensor, and the method is applied to described Terminal, which comprises obtain description file from server, the description file includes that the server sets the agreement The first configuration information set;It determines in the terminal to the second configuration information of agreement setting;Match confidence for described first Breath is compared with second configuration information;When first configuration information and second configuration information there are it is different when, The agreement for meeting first configuration information is obtained from the server;The sensor is arranged and applies the agreement, is solved Because terminal is to protocol requirement high problem of maintenance cost caused by different, reach using server to the agreement in terminal It is managed collectively, has saved the maintenance cost of terminal protocol, and easily the agreement of terminal is modified, improve agreement dimension The technical effect of the flexibility of shield.
Detailed description of the invention
Fig. 1 is a kind of flow chart for method for updating protocol based on Internet of Things that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the method for updating protocol based on Internet of Things provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for protocol update device based on Internet of Things that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for protocol update device based on Internet of Things that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram for protocol update equipment based on Internet of Things that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for method for updating protocol based on Internet of Things that the embodiment of the present invention one provides, this implementation Example is applicable to be updated the agreement of the terminal in Internet of Things situation, and this method can be by the protocol update based on Internet of Things Equipment executes, and this document processing equipment can be data collection station with the terminal in Internet of Things, the terminal.Specifically, It include server and multiple terminals in Internet of Things, each terminal connects multiple sensors, and sensor is for acquiring data, according to association View sends data to terminal.In the present embodiment, server is for being managed collectively multiple terminals, in addition to can be from multiple terminals Data are received, it can be with the agreement in configurating terminal.The agreement may include: the communication of sensor agreement, terminal and server Agreement etc..It is described in detail so that agreement is sensor agreement as an example in the present embodiment.Multiple interfaces are provided in terminal, this connects Mouth can be used for connecting sensor.It should be noted that different terminals is connected with different sensings according to different requirements, Device.Further, terminal when leaving the factory, in terminal can not configuration protocol, but until terminal login service device, by servicing Device is terminal configuration protocol.Specifically, in one embodiment, in first using terminal, can configure to be logged in for terminal Server address, server setting login account and password.Further, terminal can be on backstage according to the login Account and password access the server of the address, to complete to log in the operation of the server.Later, server can then manage The terminal.
Referring to Fig.1, a kind of method for updating protocol based on Internet of Things provided in this embodiment, specifically comprises the following steps S110-S150:
S110, description file is obtained from server, the description file includes that the agreement is arranged in the server First configuration information.
In the present embodiment, the description file in server is mainly used for recording the first configuration information.Illustratively, this first Description file, which can be, records the first configuration information with the format of json.First configuration information is server to the association in terminal The configuration of view, can include at least a kind of following configuration item: the type of agreement, the fingerprint characteristic of agreement, agreement installation position It sets, the Runtime Library that the system that the dependence between agreement, agreement are applicable in, agreement are relied on.Wherein, the type of agreement is used for Indicate which kind of agreement will be installed in the terminal;The fingerprint characteristic of agreement is the feature extracted from the file of agreement, for unique Characterize the file of the agreement;The installation site of agreement refers to what position being installed to agreement in terminal;Between agreement according to Which kind of other agreement is the relationship of relying need to rely on for presentation protocol, just can be used normally;The system that agreement is applicable in can match Set the version of system used in terminal, such as Linux system;The Runtime Library that agreement is relied on is the application journey of the bottom in system Sequence interface, such as the glibc Runtime Library of Linux system.The glibc Runtime Library in addition to being provided by encapsulation linux operating system System service is outer, and itself also provides the realization of many other some necessary function services.In some embodiments, in order to guarantee The stability of terminal, server configure the first configuration information according to preset permission.Such as, for the stability shadow of terminal The Runtime Library that system, the agreement that biggish, agreement is applicable in are relied on is rung, needs preset permission that can just change.
In the present embodiment, storage space can be divided for each terminal in server, which can be used for storing The description file of terminal.Further, the path of the storage space can be set according to the identification number of terminal.Specifically, terminal Identification number can be terminal media obtain control address (Media Access Control Address, MAC), terminal pair Factory number, Runtime Library version number, system kernel version number of the login account, terminal answered etc..Needing to obtain description file When, then the path of storage space can be determined according to the identification number of terminal, description file is obtained from the path.
Correspondingly, in one embodiment, when terminal is determined for compliance with preset condition, the mark of determining terminal can be passed through Number;Configuration downloading request is generated, configuration downloading request includes identification number;Configuration downloading request is sent to server, server is used Downloading request is configured in response, sends description file to terminal, description file is determined according to identification number;Specifically, server pair Configuration downloading request containing the identification number carries out digest authentication, can increase the safety of request;Further, recognize in abstract After card passes through, description file can be obtained from the path that identification number determines.In this embodiment, preset condition includes as follows At least one: terminal is in replay phase, terminal reaches predetermined period.Specifically, being in replay phase in terminal, do not add also When carrying agreement, configuration downloading request can be sent to server;Furthermore it is also possible to predetermined period be arranged, to reach pre- in terminal If when the period, sending configuration downloading request to server;Pass through the setting of condition, it is ensured that agreement in terminal in time according to The first configuration information being arranged in server is configured.
S120, it determines in the terminal to the second configuration information of agreement setting.
In the present embodiment, the second configuration information is the configuration of the agreement in terminal, for being compared with the first configuration information Compared with, and then determine whether the agreement in terminal needs to update.Second configuration information can when needed with the first configuration information The first configuration information that Shi Jinhang is generated or a upper predetermined period is obtained from server.
In one embodiment, second configuration information can when needed with the first configuration information when generated.Specifically , include at least a kind of following configuration item in the first configuration information: the type of agreement, the fingerprint characteristic of agreement, agreement peace It, can be by determining in terminal for installing the first catalogue of agreement when holding position;The first catalogue is scanned, determines the class of agreement Type, fingerprint characteristic and installation site;Generate the second configuration information, the second configuration information include the type of agreement, fingerprint characteristic and Installation site.
S130, first configuration information is compared with second configuration information.
In the present embodiment, the uniform format of configuration item, can pass through reading in the first configuration information and the second configuration information The specific setting of identical configuration item in first configuration information and the second configuration information, the specific setting to the identical configuration item It is compared.
S140, when first configuration information and second configuration information there are it is different when, obtained from the server Meet the agreement of first configuration information.
In the present embodiment, when there are configuration item difference, it is different to determine that the first configuration information and the second configuration information exist. Further, by creating download directory;Agreement downloading request is sent to server, agreement downloading request includes the mark of terminal Knowledge number;Receive the agreement that server response protocol downloading request, sent;And received agreement is stored in download directory.This Agreement is stored in advance in download directory by embodiment, rather than directly covering installation, it is ensured that terminal will not be because of agreement Installation clashes, and the case where be unable to operate normally.
S150, the sensor is arranged and applies the agreement.
In the present embodiment, terminal is restarted, load the system in terminal, and determine and configured in the first configuration information to agreement Installation site;The file in the installation site is emptied, and the agreement of downloading is moved to installation site;Further, it deletes The agreement that first configuration information is not configured, so that the agreement in terminal meets the first configuration information.
The technical solution of the present embodiment includes server and multiple terminals, each terminal in the Internet of Things by being arranged Multiple sensors are connected, the data are transmitted to the terminal, the side according to agreement for acquiring data by the sensor Method is applied to the terminal, which comprises obtains description file from server, the description file includes the server To the first configuration information of agreement setting;It determines in the terminal to the second configuration information of agreement setting;By institute The first configuration information is stated to be compared with second configuration information;When first configuration information and second configuration information There are it is different when, obtained from the server and meet the agreement of first configuration information;Institute is applied to sensor setting Agreement is stated, solves the problems, such as to have reached and used server pair because maintenance cost is high caused by terminal is different to protocol requirement Agreement in terminal is managed collectively, and the maintenance cost of terminal protocol has been saved, and is easily carried out more to the agreement of terminal Change, improves the technical effect of the flexibility of agreement maintenance.
Further, based on the above technical solution, the present embodiment will further refine step S130-S150.
In one embodiment, a kind of following configuration item is included at least in the first configuration information: the type of agreement, agreement Fingerprint characteristic, agreement installation site when, step S130 can be further refined as step S11-S19:
S11, the type for determining the agreement configured in the first configuration information;Wherein, the type can be the name by agreement Claim to determine.
S12, determine in the second configuration information whether configure to the agreement of the type, if so, showing in terminal The agreement of the type is installed, S13 is continued to execute, if it is not, then showing the agreement for not installing the type in the terminal, is continued to execute S16。
S13, it determines in the second configuration information and the first configuration information, whether the fingerprint characteristic of the agreement of the type is consistent; If so, showing the file of the agreement of mounted the type, the file with the agreement of the type that will be installed is consistent, The agreement that may also indicate that the two is the agreement of same version, continues to execute S14;If it is not, then showing mounted the type The file of agreement, the file with the agreement of the type that will be installed, be it is inconsistent, the agreement that both may also indicate that is difference The agreement of version needs to download from server since the file of the agreement of the type is inconsistent, with the agreement in more new terminal, S16 is continued to execute, and the agreement of the type in terminal is determined as agreement to be deleted.
Whether S14, the installation site for determining in the second configuration information and the first configuration information, being configured to the agreement of type Unanimously, if so, showing that the agreement installation site of the type is correct, S15 is continued to execute, if it is not, then showing the agreement of the type Installation site mistake, continues to execute S17.
S15, determine that the agreement of the type in terminal meets the first configuration information.
In one embodiment, when the agreement for determining the type in terminal meets the first configuration information, then show the type Agreement do not need to update.It then can be set when meeting the agreement of first configuration information from server downloading, be not necessarily to down The agreement of the type is carried, to save downloading flow, saves download time, improves the efficiency that terminal updates agreement.
S16, determine that agreement is agreement to be updated, agreement to be updated will be downloaded to terminal from server.
S17, determine that agreement is agreement to be moved, agreement to be moved will be moved into the agreement of the first configuration information configuration The agreement of the type is installed to correct position by installation site.
Further, in terminal mounted agreement there is also there is the agreement being not configured in the first configuration information, need by The agreement is deleted.In the present embodiment, step S18-S19 determines the agreement.
S18, the type for determining the agreement configured in the second configuration information.
S19, it determines in the first configuration information the agreement of the type is not configured, the type is in the second configuration information The type of the agreement of configuration, it is determined that the agreement of the type is agreement to be deleted.
Further, in the agreement of more new terminal, agreement to be downloaded is obtained from server, and the agreement of downloading is mobile The installation site of the agreement configured to the first configuration information;Agreement to be moved in terminal is moved to the configuration of the first configuration information The installation site of agreement;Delete agreement to be deleted.
Based on the above technical solution, increase decryption and the operation of signature check.
In the present embodiment, encryption and signature of the transmission file obtained from server by server, transmission file is at least Including one of following: description file, agreement;Further, this method further includes: being executed to the encryption file of transmission file Decryption oprerations obtain decryption file and signature check information;Signature check is executed to decryption file using signature check information to grasp Make;When the result of signature check operation is successfully, transmission file download success is determined.Specifically, from the encryption of transmission file Random information is read in file, random information is written in encryption file by server;Obtain the identity information of terminal, identity information Terminal is uniquely determined for server;The original code key for encryption file is generated, original code key is according to random information and identity The combined information of information generates;Piecemeal decryption is carried out using original secret key pair encryption file, obtains decryption file and signature check Information;When executing signature check operation to decryption file using signature check information, if signature check information is preset value, Determine that decryption file is consistent with transmission file, that is, show signature check operation result be successfully, it is determining transmit file download at Function.
In the present embodiment, random information may include: timestamp, file size.The timestamp can be one in following Kind: terminal request download the time point of the transmission file, server response terminal request time point, generate transmission file when Between put etc..File size refers to the size of transmission file.Further, server is needing to send transmission file to terminal When, the random information including timestamp, file size is generated, which is written in the predeterminated position of transmission file.It needs It should be noted that server in the operation that transmission file is encrypted and signed, when obtaining encryption file, will not influence random Position and content of the information in encryption file.That is, the random information in write-in transmission file, it can be from encryption file In directly read to obtain.
In the present embodiment, identity information may include: the login account and password for login service device;Wherein, it logs in Account can be the identification number of terminal;The media that the identification number can be terminal obtain control address (Media Access Control Address, MAC), the account pet name for terminal setting, the factory number of terminal etc. can be with unique identification terminal Information.
It should be noted that, from the received encryption file of server, being that transmission file makes by server in the present embodiment With the random information and the identity information, execute obtained by encryption and the operation of signature.For this purpose, due to using random information, it can To further increase the randomness of cryptographic operation, to increase the difficulty for cracking the encryption file, the content of transmission file is reduced A possibility that being leaked.Further, due to using identity information, so that transmitting file in the correspondence that has of terminal, only Possess the terminal of identity information corresponding with the encryption file, decryption could be executed to decryption file, and in application transport file Agreement.This guarantees the stability of this terminal works, and the transmission file of other terminals will not will be corresponded to because of server It is issued to this terminal, and the performed business of this terminal is caused to clash.
Based on the above technical solution, increase the function of log.
In the present embodiment, log caused by terminal is saved as into journal file;When the file size for determining journal file When more than preset value, then journal file is sent to server, the journal file that server can receive is stored in terminal In the corresponding storage space of identification number;When determining that journal file is successfully transmitted to server, then the log text in terminal is deleted Part, and re-execute the operation that log caused by terminal is saved as to journal file.Further, when the log in server , can be by journal file boil down to backup file when file is more than specified size, and delete original journal file.
Based on the above technical solution, increase the function of executing remote task.It is sent specifically, receiving from server Task packet, include at least one executable file in task packet;The task packet can be the format of compressed package, such as with gz, bz2 The file of format;After the reception for completing task packet, the executable file in task packet is unziped into predetermined directory, this is executable File can be the file of sh format;It detects that predetermined directory meets execution condition, then executes the executable text in predetermined directory Part, to execute task corresponding to executable file.Illustratively, task represented by the task packet, can be used for controlling end End acquisition data, or data analysis is carried out to the data of acquisition.
Illustratively, the executable file in task packet is unziped in the catalogue for being named as bin, into bin catalogue, really Determine the executable file in catalogue including preset name.It should be noted that the executable file for being provided with preset name exists When operation, other executable files in bin catalogue can be called.Further, after executable file end of run, may be used also To delete the executable file in bin catalogue, the occupancy to the storage space of terminal is reduced.
Embodiment two
Fig. 2 is a kind of flow chart of the method for updating protocol based on Internet of Things provided by Embodiment 2 of the present invention, this implementation Example is applicable to the case where carrying out to the agreement of the terminal in Internet of Things, and this method can be executed by document handling apparatus, should Document handling apparatus can be separate server or cluster server with the server in Internet of Things, the server.Specifically, It include server and multiple terminals in the Internet of Things, each terminal connects multiple sensors, and the sensor is for acquiring number According to the data are transmitted to the terminal according to agreement.
In the present embodiment, server is for being managed collectively multiple terminals, in addition to that can receive data from multiple terminals, also It can be with the agreement in configurating terminal.The agreement may include: the communication protocol etc. of sensor agreement, terminal and server.This reality It applies in example and is described in detail so that agreement is sensor agreement as an example.Multiple interfaces are provided in terminal, which can be used for Connect sensor.It should be noted that different terminals is connected with different sensors according to different requirements,.Further, Terminal when leaving the factory, in terminal can not configuration protocol be that terminal configures by server but until terminal login service device Agreement.Specifically, in one embodiment, in first using terminal, the ground for the server to be logged in can be configured for terminal Location, the login account and password being arranged in server.Further, terminal can on backstage according to the login account and password, The server of the address is accessed, to complete to log in the operation of the server.Later, server can then manage the terminal.
Referring to Fig. 2, this method specifically comprises the following steps:
S210, Xiang Suoshu terminal issue description file, and the description file includes that the agreement is arranged in the server The first configuration information;First configuration information in the terminal with the second configuration information for being compared, and described the Two configuration informations are in the terminal to the configuration information of agreement setting.
In the present embodiment, the description file in server is mainly used for recording the first configuration information.Illustratively, this first Description file, which can be, records the first configuration information with the format of json.First configuration information is server to the association in terminal The configuration of view, can include at least a kind of following configuration item: the type of agreement, the fingerprint characteristic of agreement, agreement installation position It sets, the Runtime Library that the system that the dependence between agreement, agreement are applicable in, agreement are relied on.Wherein, the type of agreement is used for Indicate which kind of agreement will be installed in the terminal;The fingerprint characteristic of agreement is the feature extracted from the file of agreement, for unique Characterize the file of the agreement;The installation site of agreement refers to what position being installed to agreement in terminal;Between agreement according to Which kind of other agreement is the relationship of relying need to rely on for presentation protocol, just can be used normally;The system that agreement is applicable in can match Set the version of system used in terminal, such as Linux system;The Runtime Library that agreement is relied on is the application journey of the bottom in system Sequence interface, such as the glibc Runtime Library of Linux system.The glibc Runtime Library in addition to being provided by encapsulation linux operating system System service is outer, and itself also provides the realization of many other some necessary function services.In some embodiments, in order to guarantee The stability of terminal, server configure the first configuration information according to preset permission.Such as, for the stability shadow of terminal The Runtime Library that system, the agreement that biggish, agreement is applicable in are relied on is rung, needs preset permission that can just change.
In the present embodiment, storage space can be divided for each terminal in server, which can be used for storing The description file of terminal.Further, the path of the storage space can be set according to the identification number of terminal.Specifically, terminal Identification number can be terminal media obtain control address (Media Access Control Address, MAC), terminal pair Factory number, Runtime Library version number, system kernel version number of the login account, terminal answered etc..It needs to obtain description in terminal When file, then the path of storage space can be determined according to the identification number of terminal, description file is obtained from the path.
Illustratively, when terminal is determined for compliance with preset condition, server receives the configuration downloading sent from terminal and asks It asks, configuration downloading request includes the identification number of terminal;Configuration downloading request is responded, the configuration containing the identification number is downloaded Request carries out digest authentication, can increase the safety of request;It further, can be from identification number after digest authentication passes through Description file is obtained in determining path.Later, description file is sent to terminal.In this embodiment, preset condition includes Following at least one: terminal is in replay phase, terminal reaches predetermined period.Specifically, being in replay phase in terminal, also When not loading agreement, configuration downloading request can be sent to server;Furthermore it is also possible to predetermined period be arranged, to reach in terminal When to predetermined period, configuration downloading request is sent to server;Pass through the setting of condition, it is ensured that the agreement in terminal is timely It is configured according to the first configuration information being arranged in server.
S220, Xiang Suoshu terminal issue the agreement for meeting first configuration information, and the agreement is in the terminal Determine first configuration information and second configuration information there are it is different when issue, the terminal be used for the sensor It is arranged using the agreement issued.
In the present embodiment, the second configuration information is the configuration of the agreement in terminal, for being compared with the first configuration information Compared with, and then determine whether the agreement in terminal needs to update.Second configuration information can when needed with the first configuration information The first configuration information that Shi Jinhang is generated or a upper predetermined period is obtained from server.
In one embodiment, second configuration information can when needed with the first configuration information when generated.Specifically , include at least a kind of following configuration item in the first configuration information: the type of agreement, the fingerprint characteristic of agreement, agreement peace It, can be by determining in terminal for installing the first catalogue of agreement when holding position;The first catalogue is scanned, determines the class of agreement Type, fingerprint characteristic and installation site;Generate the second configuration information, the second configuration information include the type of agreement, fingerprint characteristic and Installation site.
Further, in the terminal, the first configuration information is compared with the second configuration information;When the first configuration information With the second configuration information there are it is different when, to server send agreement downloading request.Correspondingly, server is to containing terminal The agreement downloading request of identification number carries out digest authentication, can increase the safety of request;Further, logical in digest authentication Later, the agreement for meeting the first configuration information can be obtained from the path that identification number determines, which is issued to terminal.
The technical solution of the present embodiment includes server and multiple terminals, each terminal in the Internet of Things by being arranged Multiple sensors are connected, the data are transmitted to the terminal, the side according to agreement for acquiring data by the sensor Method is applied to the server, which comprises Xiang Suoshu terminal issues description file, and the description file includes the clothes The first configuration information that the agreement is arranged in business device;First configuration information is used to match confidence with second in the terminal Breath is compared, and second configuration information is in the terminal to the configuration information of agreement setting;To under the terminal Hair meets the agreement of first configuration information, and the agreement determines first configuration information and described in the terminal Second configuration information there are it is different when issue, the terminal is used for the agreement that issues of sensor setting application, solution It has determined because terminal is to protocol requirement high problem of maintenance cost caused by different, has reached using server to the association in terminal View is managed collectively, and has saved the maintenance cost of terminal protocol, and be easily modified to the agreement of terminal, improves agreement The technical effect of the flexibility of maintenance.
Based on the above technical solution, increase the operation of encryption and signature.
In the present embodiment, the operation of encryption and signature is executed to the transmission file for being issued to terminal, transmission file at least wraps It includes one of following: description file, agreement;Specifically, to random information being written in the file to be encrypted of transmission file;Really Determine the identity information of terminal, identity information uniquely determines terminal for server;The original code key for being directed to file to be encrypted is generated, Original code key is generated according to the combined information of random information and identity information;Piecemeal is carried out using original secret key pair file to be encrypted Encryption obtains encryption file and signature check information;Signature check information is written in the encryption file of transmission file.
In the present embodiment, random information may include: timestamp, file size.The timestamp can be one in following Kind: terminal request download the time point of the transmission file, server response terminal request time point, generate transmission file when Between put etc..File size refers to the size of transmission file.Further, server is needing to send transmission file to terminal When, the random information including timestamp, file size is generated, which is written in the predeterminated position of transmission file, is shown Example property, which is the head for encrypting file.It should be noted that server is encrypted and is signed to transmission file The operation of name when obtaining encryption file, will not influence position and content of the random information in encryption file.That is, writing Enter to transmit the random information in file, can directly read to obtain from encryption file.
In the present embodiment, identity information may include: the login account and password for login service device;Wherein, it logs in Account can be the identification number of terminal;The media that the identification number can be terminal obtain control address (Media Access Control Address, MAC), the account pet name for terminal setting, the factory number of terminal etc. can be with unique identification terminal Information.
It is that transmission file is used by server it should be noted that being issued to the encryption file of terminal in the present embodiment The random information and the identity information execute obtained by encryption and the operation of signature.It, can be with for this purpose, due to using random information The randomness of cryptographic operation is further increased, to increase the difficulty for cracking the encryption file, reduces the content quilt of transmission file A possibility that leakage.Further, it due to using identity information, so that transmission file has correspondence in terminal, only gathers around There is the terminal of identity information corresponding with the encryption file, decryption could be executed to decryption file, and in application transport file Agreement.This guarantees the stability of this terminal works, will not will correspond under the transmission file of other terminals because of server It is sent to this terminal, and the performed business of this terminal is caused to clash.
Based on the above technical solution, increase the function of log.
In the present embodiment, the journal file that server can receive is stored in the corresponding storage space of identification number of terminal In;, can be by journal file boil down to backup file when the journal file in server is more than specified size, and delete original Journal file.
Based on the above technical solution, increase the function of executing remote task.
Specifically, including at least one executable file in the task packet to the task packet that terminal is sent;The task packet can To be the format of compressed package, such as with the file of gz, bz2 format;The terminal, will be in task packet after the reception for completing task packet Executable file unzips to predetermined directory, which can be the file of sh format;Detect that predetermined directory satisfaction is held Row condition then executes the executable file in predetermined directory, to execute task corresponding to executable file.Illustratively, should Task represented by task packet can be used for controlling terminal acquisition data, or carry out data analysis to the data of acquisition.
Illustratively, when generating the task packet, including the executable file of preset name in the task packet.So that terminal After unziping to the executable file in task packet in the catalogue for be named as bin, bin catalogue can be entered, execute the setting There is the executable file of preset name;It, can be with it should be noted that this is provided with the executable file of preset name at runtime Call other executable files in bin catalogue.Further, after executable file end of run, bin mesh can also be deleted Executable file in record reduces the occupancy to the storage space of terminal.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for protocol update device based on Internet of Things that the embodiment of the present invention three provides, this Embodiment is applicable to be updated situation to the agreement of the terminal in Internet of Things, which can integrate in based on Internet of Things Protocol update equipment executes, and this document processing equipment can be data collection station with the terminal in Internet of Things, the terminal. Specifically, including server and multiple terminals in the Internet of Things, each terminal connects multiple sensors, and the sensor is used for Data are acquired, the data are transmitted to the terminal according to agreement.
Referring to Fig. 3, which is specifically included such as flowering structure: description file acquisition module 310, the second configuration information determine mould Block 320, comparison module 330, agreement obtain module 340 and agreement application module 350.
File acquisition module 310 is described, for obtaining description file from server, the description file includes the service The first configuration information that the agreement is arranged in device.
Second configuration information determining module 320 matches confidence to the second of agreement setting for determining in the terminal Breath.
Comparison module 330, for first configuration information to be compared with second configuration information.
Agreement obtains module 340, for when first configuration information and second configuration information there are it is different when, from The server obtains the agreement for meeting first configuration information.
Agreement application module 350 applies the agreement for the sensor to be arranged.
Based on the above technical solution, file acquisition module 310 is described, comprising:
Identification number determination unit, for when meeting preset condition, determining the identification number of the terminal.
Configuration downloading request generation unit, for generating configuration downloading request, the configuration downloading request includes the mark Knowledge number.
Configuration downloading request transmitting unit, for sending the configuration downloading request, the server to the server For responding the configuration downloading request, Xiang Suoshu terminal sends description file, and the description file is true according to the identification number It is fixed.
Wherein, the condition includes following at least one:
The terminal is in replay phase, the terminal reaches predetermined period.
Based on the above technical solution, the second configuration information determining module 320, comprising:
First catalogue determination unit, for determining in the terminal for installing the first catalogue of the agreement;
It configures determination unit and determines type, fingerprint characteristic and the installation position of the agreement for scanning first catalogue It sets.
Second configuration information generation unit, for generating the second configuration information, second configuration information includes the association Type, fingerprint characteristic and the installation site of view.
In one embodiment, comparison module 330, for executing step S11-S19:
S11, the type for determining the agreement configured in first configuration information;
S12, determine in second configuration information whether configure to the agreement of the type, if so, executing S13, if it is not, then executing S16;
S13, it determines in second configuration information and first configuration information, the fingerprint characteristic of the agreement of the type It is whether consistent;If so, executing S14;If it is not, then execute S16, and by the agreement of the type in the terminal be determined as to Delete agreement;
S14, it determines in second configuration information and first configuration information, the agreement of the type is configured Whether installation site is consistent, if so, S15 is executed, if it is not, then executing S17;
S15, determine that the agreement of the type in the terminal meets first configuration information;
S16, determine that the agreement is agreement to be updated, the agreement to be updated will be downloaded to described from the server Terminal;
S17, determine that the agreement is agreement to be moved, the agreement to be moved will be moved into first configuration information The installation site of the agreement of configuration;
S18, the type for determining the agreement configured in second configuration information;
S19, it determines the agreement of the type is not configured in first configuration information, it is determined that the type Agreement is agreement to be deleted.
Based on the above technical solution, agreement obtains module 340, comprising:
Download directory creating unit, for creating download directory.
Agreement downloads request transmitting unit, for sending agreement downloading request to the server.
Agreement receiving unit responds the agreement that the agreement downloading request, sent for receiving the server.
Agreement storage unit is used for and the received agreement is stored in the download directory.
Based on the above technical solution, agreement application module 350, comprising:
Installation site determination unit, for determining the installation position configured in first configuration information to the agreement It sets.
Agreement mobile unit, for the agreement of downloading to be moved to the installation site.
Agreement deletes unit, the agreement being not configured for deleting first configuration information.
Based on the above technical solution, the device further include:
Journal file preserving module, for log caused by the terminal to be saved as journal file.
Journal file sending module, for when determine the journal file file size be more than preset value when, then by institute It states journal file and is sent to the server.
Journal file removing module, for when determining that the journal file is successfully transmitted to the server, then deleting Journal file in the terminal, and re-execute the operation that log caused by the terminal is saved as to journal file.
Based on the above technical solution, the device further include:
Task packet receiving module includes at least one in the task packet for receiving the task packet sent from server Executable file.
Task packet decompression module, for the executable file in the task packet to be unziped to predetermined directory.
Executable file execution module then executes described default for detecting that the predetermined directory meets execution condition Executable file in catalogue.
Based on the above technical solution, the transmission file obtained from the server passes through the encryption of the server And signature, the transmission file include at least one of following: description file, agreement;
Described device further include:
Deciphering module executes decryption oprerations for the encryption file to the transmission file, obtains decryption file and signature Check information.
Signature check module is operated for executing signature check to the decryption file using the signature check information;
Download state determining module when the result for operating when the signature check is successfully, determines the transmission text Part is downloaded successfully.
Example IV
Fig. 4 is a kind of structural schematic diagram for protocol update device based on Internet of Things that the embodiment of the present invention four provides, this Embodiment is applicable to the case where carrying out to the agreement of the terminal in Internet of Things, which can integrate in document handling apparatus In, this document processing equipment can be separate server or cluster server with the server in Internet of Things, the server.Tool Body, include server and multiple terminals in the Internet of Things, and each terminal connects multiple sensors, and the sensor is for adopting Collect data, the data are transmitted to the terminal according to agreement.
Referring to Fig. 4, which is specifically included such as flowering structure: description file issues module 410 and agreement issues module 420.
Description file issues module 410, and for issuing description file to the terminal, the description file includes the clothes The first configuration information that the agreement is arranged in business device;First configuration information is used to match confidence with second in the terminal Breath is compared, and second configuration information is in the terminal to the configuration information of agreement setting.
Agreement issues module 420, described for issuing the agreement for meeting first configuration information to the terminal Agreement the terminal determine first configuration information and second configuration information there are it is different when issue, the terminal is used In the agreement issued to sensor setting application.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for protocol update equipment based on Internet of Things that the embodiment of the present invention five provides.Such as Shown in Fig. 5, being somebody's turn to do the protocol update equipment based on Internet of Things includes: processor 50, memory 51, input unit 52 and output dress Set 53.The quantity of processor 50 can be one or more in the protocol update equipment based on Internet of Things, with one in Fig. 5 For processor 50.The quantity of memory 51 can be one or more in the protocol update equipment based on Internet of Things, Fig. 5 In by taking a memory 51 as an example.Processor 50, memory 51, the input unit 52 of the protocol update equipment based on Internet of Things And output device 53 can be connected by bus or other modes, in Fig. 5 for being connected by bus.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, the corresponding program instruction/mould of the method for updating protocol based on Internet of Things as described in any embodiment of that present invention Block is (for example, description file acquisition module 310, the second configuration information determining module in the protocol update device based on Internet of Things 320, comparison module 330, agreement obtain module 340 and agreement application module 350;In another example the protocol update based on Internet of Things Description file in device issues module 410 and agreement issues module 420).Memory 51 can mainly include storing program area and Storage data area, wherein storing program area can application program needed for storage program area, at least one function;Storing data Area, which can be stored, uses created data etc. according to equipment.In addition, memory 51 may include high-speed random access memory, It can also include nonvolatile memory, for example, at least a disk memory, flush memory device or other nonvolatile solid states Memory device.In some instances, memory 51 can further comprise the memory remotely located relative to processor 50, these Remote memory can pass through network connection to equipment.The example of above-mentioned network include but is not limited to internet, intranet, Local area network, mobile radio communication and combinations thereof.
Input unit 52 can be used for receiving the number or character information of input, and generate and the agreement based on Internet of Things The related key signals input of the spectators' user setting and function control of more new equipment, can also be the camera shooting for obtaining image Head and the pick up facility for obtaining audio data.Output device 53 may include the audio frequency apparatuses such as loudspeaker.It should be noted that The concrete composition of input unit 52 and output device 53 may be set according to actual conditions.
Software program, instruction and the module that processor 50 is stored in memory 51 by operation, thereby executing equipment Various function application and data processing, that is, realize the above-mentioned method for updating protocol based on Internet of Things.
Embodiment six
The embodiment of the present invention six also provides a kind of storage medium comprising computer executable instructions, and the computer can be held Row instruction by computer processor when being executed for executing a kind of method for updating protocol based on Internet of Things.
It include server and multiple terminals in the Internet of Things, each terminal connects multiple sensors, and the sensor is used In acquisition data, the data are transmitted to the terminal according to agreement.
In one embodiment, this method is applied in terminal, comprising:
Description file is obtained from server, the description file includes that the server is matched to the agreement is arranged first Confidence breath;
It determines in the terminal to the second configuration information of agreement setting;
First configuration information is compared with second configuration information;
When first configuration information and second configuration information there are it is different when, meet institute from server acquisition State the agreement of the first configuration information;
The sensor is arranged and applies the agreement.
In another embodiment, this method is applied in server, comprising:
Description file is issued to the terminal, the description file includes the agreement is arranged in the server first Configuration information;First configuration information in the terminal with the second configuration information for being compared, second configuration Information is in the terminal to the configuration information of agreement setting;
The agreement for meeting first configuration information is issued to the terminal, the agreement determines institute in the terminal State the first configuration information and second configuration information there are it is different when issue, the terminal be used for the sensor setting answer With the agreement issued.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method for updating protocol operation based on Internet of Things that executable instruction is not limited to the described above can also be performed of the invention any real The relevant operation in the method for updating protocol based on Internet of Things provided by example is applied, and has corresponding function and beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be robot, personal computer, server or the network equipment etc.) executes base described in any embodiment of that present invention In the method for updating protocol of Internet of Things.
It is worth noting that, included each unit and module are only in the above-mentioned protocol update device based on Internet of Things It is to be divided according to the functional logic, but be not limited to the above division, as long as corresponding functions can be realized;Separately Outside, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (14)

1. a kind of method for updating protocol based on Internet of Things, which is characterized in that include server and multiple ends in the Internet of Things End, each terminal connect multiple sensors, and the data are transmitted to described by the sensor for acquiring data, according to agreement Terminal, the method are applied to the terminal, which comprises
Description file is obtained from server, the description file includes that the server matches confidence to the agreement is arranged first Breath;
It determines in the terminal to the second configuration information of agreement setting;
First configuration information is compared with second configuration information;
When first configuration information and second configuration information there are it is different when, meet described the from server acquisition The agreement of one configuration information;
The sensor is arranged and applies the agreement.
2. the method according to claim 1, wherein described obtain description file from server, comprising:
When meeting preset condition, the identification number of the terminal is determined;
Configuration downloading request is generated, the configuration downloading request includes the identification number;
The configuration downloading request is sent to the server, the server is for responding the configuration downloading request, to institute It states terminal and sends description file, the description file is determined according to the identification number;
Wherein, the condition includes following at least one:
The terminal is in replay phase, the terminal reaches predetermined period.
3. the method according to claim 1, wherein determining the second configuration that the agreement is arranged in the terminal Information, comprising:
It determines in the terminal for installing the first catalogue of the agreement;
First catalogue is scanned, determines type, fingerprint characteristic and the installation site of the agreement;
The second configuration information is generated, second configuration information includes type, fingerprint characteristic and the installation site of the agreement.
4. according to the method described in claim 3, it is characterized in that, by first configuration information and second configuration information It is compared, comprising:
S11, the type for determining the agreement configured in first configuration information;
S12, determine in second configuration information whether configure to the agreement of the type, if so, S13 is executed, if It is no, then execute S16;
S13, it determines in second configuration information and first configuration information, whether the fingerprint characteristic of the agreement of the type Unanimously;If so, executing S14;If it is not, then execute S16, and the agreement of the type in the terminal is determined as to be deleted Agreement;
S14, the installation for determining in second configuration information and first configuration information, the agreement of the type being configured Whether position is consistent, if so, S15 is executed, if it is not, then executing S17;
S15, determine that the agreement of the type in the terminal meets first configuration information;
S16, determine that the agreement is agreement to be updated, the agreement to be updated will be downloaded to the end from the server End;
S17, determine that the agreement is agreement to be moved, the agreement to be moved will be moved into the first configuration information configuration The agreement installation site;
S18, the type for determining the agreement configured in second configuration information;
S19, it determines the agreement of the type is not configured in first configuration information, it is determined that the agreement of the type For agreement to be deleted.
5. the method according to claim 1, wherein working as first configuration information and second configuration information There are it is different when, obtained from the server and meet the agreement of first configuration information, comprising:
Create download directory;
Agreement downloading request is sent to the server;
It receives the server and responds the agreement that the agreement downloading request, sent;
And the received agreement is stored in the download directory.
6. applying the agreement the method according to claim 1, wherein the sensor is arranged, comprising:
Determine the installation site configured in first configuration information to the agreement;
The agreement of downloading is moved to the installation site;
Delete the agreement that first configuration information is not configured.
7. the method according to claim 1, wherein further include:
Log caused by the terminal is saved as into journal file;
When the file size for determining the journal file is more than preset value, then the journal file is sent to the service Device;
When determining that the journal file is successfully transmitted to the server, then the journal file in the terminal is deleted, is laid equal stress on It is new to execute the operation that log caused by the terminal is saved as to journal file.
8. the method according to claim 1, wherein further include:
The task packet sent from server is received, includes at least one executable file in the task packet;
Executable file in the task packet is unziped into predetermined directory;
It detects that the predetermined directory meets execution condition, then executes the executable file in the predetermined directory.
9. the method according to claim 1, wherein the transmission file obtained from the server passes through the clothes The encryption of business device and signature, the transmission file include at least one of following: description file, agreement;
The method also includes:
Decryption oprerations are executed to the encryption file of the transmission file, obtain decryption file and signature check information;
Signature check is executed to the decryption file using the signature check information to operate;
When the result of signature check operation is successfully, the transmission file download success is determined.
10. a kind of method for updating protocol based on Internet of Things, which is characterized in that include server and multiple ends in the Internet of Things End, each terminal connect multiple sensors, and the data are transmitted to described by the sensor for acquiring data, according to agreement Terminal, the method are applied to the server, which comprises
Description file is issued to the terminal, the description file includes the first configuration that the agreement is arranged in the server Information;First configuration information in the terminal with the second configuration information for being compared, second configuration information For the configuration information that the agreement is arranged in the terminal;
The agreement for meeting first configuration information is issued to the terminal, the agreement determines described in the terminal One configuration information and second configuration information there are it is different when issue, the terminal is used under sensor setting application The agreement of hair.
11. a kind of protocol update device based on Internet of Things, which is characterized in that include server and multiple ends in the Internet of Things End, each terminal connect multiple sensors, and the data are transmitted to described by the sensor for acquiring data, according to agreement Terminal, described device are applied to the terminal, and described device includes:
File acquisition module is described, for obtaining description file from server, the description file includes the server to institute State the first configuration information of agreement setting;
Second configuration information determining module, for determining in the terminal to the second configuration information of agreement setting;
Comparison module, for first configuration information to be compared with second configuration information;
Agreement obtains module, for when first configuration information and second configuration information there are it is different when, from the clothes Business device obtains the agreement for meeting first configuration information;
Agreement application module applies the agreement for the sensor to be arranged.
12. a kind of protocol update device based on Internet of Things, which is characterized in that include server and multiple ends in the Internet of Things End, each terminal connect multiple sensors, and the data are transmitted to described by the sensor for acquiring data, according to agreement Terminal, described device are applied to the server, and described device includes:
Description file issues module, and for issuing description file to the terminal, the description file includes the server pair First configuration information of the agreement setting;First configuration information is used to carry out in the terminal with the second configuration information Compare, second configuration information is in the terminal to the configuration information of agreement setting;
Agreement issues module, and for issuing the agreement for meeting first configuration information to the terminal, the agreement exists The terminal determine first configuration information and second configuration information there are it is different when issue, the terminal be used for institute State the agreement that sensor setting application issues.
13. a kind of protocol update equipment based on Internet of Things characterized by comprising memory and one or more processing Device;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method for updating protocol based on Internet of Things as described in any in claim 1-10.
14. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by For executing the method for updating protocol based on Internet of Things as described in any in claim 1-10 when computer processor executes.
CN201910380720.8A 2019-05-08 2019-05-08 A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium Pending CN110113207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380720.8A CN110113207A (en) 2019-05-08 2019-05-08 A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380720.8A CN110113207A (en) 2019-05-08 2019-05-08 A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110113207A true CN110113207A (en) 2019-08-09

Family

ID=67488863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380720.8A Pending CN110113207A (en) 2019-05-08 2019-05-08 A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110113207A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538623A (en) * 2020-04-22 2020-08-14 深圳市汇川技术股份有限公司 Parameter maintenance method, rectifying device, inverting device and multi-transmission frequency converter
CN111756734A (en) * 2020-06-24 2020-10-09 江西安百川电气有限公司 Internal interconnection communication interface and protocol of frequency converter
WO2021143025A1 (en) * 2020-01-15 2021-07-22 平安科技(深圳)有限公司 Internet-of-things data transmission method and apparatus, and medium and electronic device
CN114143199A (en) * 2021-11-15 2022-03-04 江苏有线技术研究院有限公司 Terminal configuration method, configuration device, configuration equipment and storage medium of broadband access system
WO2022227805A1 (en) * 2021-04-25 2022-11-03 华为技术有限公司 Communication method and communication apparatus

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807149A (en) * 2009-02-18 2010-08-18 联咏科技股份有限公司 Firmware updating method capable of restoring firmware safely and embedded electronic device of firmware
CN101877723A (en) * 2010-06-18 2010-11-03 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
CN102664956A (en) * 2012-04-27 2012-09-12 东北大学 Wireless sensor network and mobile terminal interaction system and wireless sensor network and mobile terminal interaction method
CN103973717A (en) * 2013-01-24 2014-08-06 中国科学院计算技术研究所 Internet of things terminal capable of being rebuilt
CN104144466A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Access method for sensor in Internet of Things, Internet of Things system and server
CN106843954A (en) * 2017-01-16 2017-06-13 武汉慧联无限科技有限公司 Sensor node remote upgrade method
CN107205055A (en) * 2017-08-01 2017-09-26 海信集团有限公司 Terminal staging method and device
CN107225918A (en) * 2016-03-24 2017-10-03 苏州驶安特汽车电子有限公司 A kind of tyre pressure sensor system and communication protocol concocting method
JP2018133004A (en) * 2017-02-16 2018-08-23 日本電信電話株式会社 Abnormality detection system and abnormality detection method
CN108965018A (en) * 2018-07-27 2018-12-07 广东美的制冷设备有限公司 Dynamic Configuration, wireless communication device and the household electrical appliance of communication protocol
CN109067734A (en) * 2018-07-27 2018-12-21 广东美的制冷设备有限公司 Dynamic Configuration, wireless communication device and the household electrical appliance of communication protocol
KR20180138349A (en) * 2017-06-21 2018-12-31 한국전자통신연구원 IoT TERMINAL APPARATUS FOR GENERATING DYNAMIC SESSION KEY AND METHOD FOR USING THE SAME
CN109697080A (en) * 2018-12-24 2019-04-30 普华基础软件股份有限公司 A kind of Internet of Things operating system online upgrading method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807149A (en) * 2009-02-18 2010-08-18 联咏科技股份有限公司 Firmware updating method capable of restoring firmware safely and embedded electronic device of firmware
CN101877723A (en) * 2010-06-18 2010-11-03 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
CN102664956A (en) * 2012-04-27 2012-09-12 东北大学 Wireless sensor network and mobile terminal interaction system and wireless sensor network and mobile terminal interaction method
CN103973717A (en) * 2013-01-24 2014-08-06 中国科学院计算技术研究所 Internet of things terminal capable of being rebuilt
CN104144466A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Access method for sensor in Internet of Things, Internet of Things system and server
CN107225918A (en) * 2016-03-24 2017-10-03 苏州驶安特汽车电子有限公司 A kind of tyre pressure sensor system and communication protocol concocting method
CN106843954A (en) * 2017-01-16 2017-06-13 武汉慧联无限科技有限公司 Sensor node remote upgrade method
JP2018133004A (en) * 2017-02-16 2018-08-23 日本電信電話株式会社 Abnormality detection system and abnormality detection method
KR20180138349A (en) * 2017-06-21 2018-12-31 한국전자통신연구원 IoT TERMINAL APPARATUS FOR GENERATING DYNAMIC SESSION KEY AND METHOD FOR USING THE SAME
CN107205055A (en) * 2017-08-01 2017-09-26 海信集团有限公司 Terminal staging method and device
CN109067734A (en) * 2018-07-27 2018-12-21 广东美的制冷设备有限公司 Dynamic Configuration, wireless communication device and the household electrical appliance of communication protocol
CN108965018A (en) * 2018-07-27 2018-12-07 广东美的制冷设备有限公司 Dynamic Configuration, wireless communication device and the household electrical appliance of communication protocol
CN109697080A (en) * 2018-12-24 2019-04-30 普华基础软件股份有限公司 A kind of Internet of Things operating system online upgrading method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021143025A1 (en) * 2020-01-15 2021-07-22 平安科技(深圳)有限公司 Internet-of-things data transmission method and apparatus, and medium and electronic device
CN111538623A (en) * 2020-04-22 2020-08-14 深圳市汇川技术股份有限公司 Parameter maintenance method, rectifying device, inverting device and multi-transmission frequency converter
CN111538623B (en) * 2020-04-22 2024-03-19 深圳市汇川技术股份有限公司 Parameter maintenance method, rectifying equipment, inversion equipment and multi-transmission frequency converter
CN111756734A (en) * 2020-06-24 2020-10-09 江西安百川电气有限公司 Internal interconnection communication interface and protocol of frequency converter
WO2022227805A1 (en) * 2021-04-25 2022-11-03 华为技术有限公司 Communication method and communication apparatus
CN114143199A (en) * 2021-11-15 2022-03-04 江苏有线技术研究院有限公司 Terminal configuration method, configuration device, configuration equipment and storage medium of broadband access system
CN114143199B (en) * 2021-11-15 2023-11-03 江苏有线技术研究院有限公司 Configuration method, configuration device, configuration equipment and storage medium for broadband access system terminal

Similar Documents

Publication Publication Date Title
CN110113207A (en) A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium
EP3716656B1 (en) Profile generation method, profile acquisition method, and related device and storage medium
JP2015092374A5 (en)
JP2015092374A (en) Apparatus and methods for managing firmware verification on wireless device
JP2012084159A5 (en)
JP2008547092A5 (en)
US7797504B2 (en) Device for processing information based on stored identifiers and a working method therof.
US9344406B2 (en) Information processing device, information processing method, and computer program product
CN106686754B (en) Data interaction method and data interaction system
CN103051456B (en) The method and system of application program in a kind of management intelligent SD card
CN105468393A (en) Module version upgrading method and terminal apparatus
CN109905237A (en) Pass through the method for movement station and cellular network communication
CN109600451A (en) A kind of terminal device firmware upgrade method and system based on Websocket long connection
CN111459524A (en) Software upgrading method, device and system
JP2019153310A (en) Information processing apparatus, information processing method, and program
WO2022257927A1 (en) Key burning method and apparatus, electronic device board card, and storage medium
CN111031542B (en) Base station opening method, device, communication equipment and storage medium
CN110493644B (en) Television application upgrading method, television terminal and server
CN111405016A (en) User information acquisition method and related equipment
US10735937B2 (en) Management apparatus, mobile terminal, and methods thereof
US11140554B2 (en) Management of a multi-SIM offer with multiple activation codes
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
US11962465B2 (en) Control system, electronic device, and control method
CN113098869B (en) Production test method, wireless intelligent device, upper computer, electronic device and medium
CN105975624A (en) Data transmission method, equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190809