CN108429820A - A kind of communication means of internet of things application layer, system and terminal device - Google Patents
A kind of communication means of internet of things application layer, system and terminal device Download PDFInfo
- Publication number
- CN108429820A CN108429820A CN201810499587.3A CN201810499587A CN108429820A CN 108429820 A CN108429820 A CN 108429820A CN 201810499587 A CN201810499587 A CN 201810499587A CN 108429820 A CN108429820 A CN 108429820A
- Authority
- CN
- China
- Prior art keywords
- destination server
- instruction
- currently monitored
- sent
- terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/329—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention is suitable for computer application technology, provides a kind of communication means of internet of things application layer, system and terminal device, the method includes:It generates certification instruction and is sent to destination server, receive the first response results of destination server feedback, if the first response results are to respond successfully, the currently monitored data of monitoring device are obtained, and generate the currently monitored instruction according to the currently monitored data and be sent to destination server.The present invention is sent to destination server by generating certification instruction, and it generates the currently monitored instruction according to the currently monitored data and is sent to destination server, define the process of application layer communication, suitable for various fields, with versatility, communicating pair no longer needs to the application layer communication protocol of study other side, reduces the difficulty communicated between terminal, improves the efficiency of communication.
Description
Technical field
The invention belongs to a kind of field of communication technology more particularly to communication means of internet of things application layer, system and terminals
Equipment.
Background technology
Internet of Things is the important component of generation information technology, and the important development stage in " informationization " epoch.
Internet of Things is exactly the connected internet of object object.This has two layers of meaning:First, the core of Internet of Things and basis are still internet,
It is the network of the extension and extension on Internet basic;Second, its user terminal extends and extends to any article and article
Between, information exchange and communication are carried out, that is, object object mutually ceases.Internet of Things passes through Intellisense, identification technology and general fit calculation
Deng communication cognition technology, it is widely used in the fusion of network, is also therefore referred to as the world information after computer, internet
The third wave of industry development.
In the prior art, when being communicated using internet of things application layer communication protocol, due to each internet of things application layer
The characteristics of agreement has oneself and application field need to learn the communication protocol that other side uses, increase when being communicated between terminal
Add the difficulty communicated between terminal, reduces the efficiency of communication.
Invention content
In view of this, an embodiment of the present invention provides a kind of communication means of internet of things application layer, system and terminal device,
Do not have versatility to solve internet of things application layer communication protocol in the prior art, increases the difficulty communicated between terminal, drop
The problem of efficiency of low communication.
The first aspect of the embodiment of the present invention provides a kind of communication means of internet of things application layer, including:
It generates certification instruction and is sent to destination server.
Receive the first response results of the destination server feedback.
If first response results are to respond successfully, the currently monitored data of monitoring device are obtained, and according to described
The currently monitored data generate the currently monitored instruction and are sent to the destination server.
The second aspect of the embodiment of the present invention provides a kind of communication system of internet of things application layer, including:
Certification directive generation module is sent to destination server for generating certification instruction.
Response results receiving module, the first response results for receiving the destination server feedback.
Operating instruction sending module obtains working as monitoring device if being to respond successfully for first response results
Preceding monitoring data, and generate the currently monitored instruction according to the currently monitored data and be sent to the destination server.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing method as described above.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
Existing advantageous effect is the embodiment of the present invention compared with prior art:The present embodiment is by generating certification instruction hair
It send to destination server, receives the first response results of destination server feedback, if the first response results are to respond successfully, obtain
The currently monitored data of monitoring device are taken, and generates the currently monitored instruction according to the currently monitored data and is sent to destination server.
The embodiment of the present invention is sent to destination server by generating certification instruction, and generates the currently monitored finger according to the currently monitored data
Order is sent to destination server, it is specified that the process of application layer communication, is suitable for various fields, has versatility, communicating pair
The application layer communication protocol for no longer needing to study other side, reduces the difficulty communicated between terminal, improves the efficiency of communication.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the communication means of internet of things application layer provided by one embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of step S101 in Fig. 1 provided by one embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the communication system of internet of things application layer provided by one embodiment of the present invention;
Fig. 4 is the concrete structure schematic diagram of certification directive generation module provided by one embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal device provided by one embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment 1:
Fig. 1 shows the implementation process of the communication party for the internet of things application layer that one embodiment of the present of invention provides, mistake
Details are as follows for journey:
In step S101, generates certification instruction and be sent to destination server;
In one embodiment of the invention, before step S101, including:
1) it is based on transmission control protocol, is initiated the connection to destination server.
2) if continuous preset times and destination server connection failure, are spaced after the first preset time and are taken again to target
Business device initiates the connection to be connected until being established with destination server.
In one embodiment, terminal device is communicated with destination server by a kind of new application layer protocol, this
The new application layer protocol of kind defines the data format of mode and interaction data that both sides are communicated.
Preferably, this new application layer protocol is applied to lightning protection field.
In the present embodiment, it is based on transmission control protocol (Transmission Control Protocol, TCP), is passed through
Socket is initiated the connection to destination server, i.e., initiates TCP connection to destination server.
In the present embodiment, if continuous preset times all establish TCP connection with destination server not successfully, no longer to mesh
It marks server and initiates TCP connection, after being spaced the first preset time, initiate TCP connection to destination server again.
By taking a concrete application scene as an example, preset times 2 are initiated the connection to destination server for the first time, but not with
Destination server successful connection just second is initiated the connection to destination server, not yet with destination server successful connection, due to
It is all then spaced 1 not with target success device successful connection twice in succession and was as a child initiated the connection again to destination server.
In the present embodiment, when continuous preset times all do not set up TCP connection with destination server, then show server
It currently may be due to some (for example, what destination server network was connected there are failure or currently with destination server request
Quantity is too many) can not normal response connection request, can temporarily cease and be initiated the connection to destination server, terminal device is avoided to do
Idle work, the problem of also avoiding the occurrence of by constantly initiating the connection the network resources waste brought.
In one embodiment of the invention, described based on transmission control protocol, initiate the connection it to destination server
Before, including:
1) authentication information is sent to the corresponding server in pre-stored service device address.
2) destination server address of the corresponding server feedback in pre-stored service device address is received.
3) destination server is determined according to destination server address.
In the present embodiment, pre-stored service device address can be IP address (the Internet Protocol of server
Address, Internet protocol address), or the domain name addresses (Domain Name Server) of server.
In the present embodiment, authentication information is sent to the corresponding server in pre-stored service device address, authentication letter
Breath includes account and password, and authentication information is used to indicate the server and is authenticated.
Wherein, authentication refers to that server judges whether terminal device has the access right of itself, i.e., whether the terminal device
Subsequent communications can be carried out with server.Server authentication terminal device send account and password it is whether correct, if account and
Password is all correct, then the terminal device have access server right, can be communicated with the server, if account and/
Or password bad, then it is assumed that the terminal device is disabled user, does not have the right for accessing server.
In the present embodiment, the corresponding server storage in pre-stored service device address has the address of several first servers and right
The address of the load capacity answered, first server includes domain name addresses and IP address.
Wherein, load capacity refers to the visit capacity of server.
In the present embodiment, after server determines destination server, destination server address is fed back into terminal and is set
It is standby, to terminal device can destination server corresponding with destination server address be attached communication.
In the present embodiment, whether the authentication that the corresponding server authentication terminal device in pre-stored service device address is sent
Correctly, that is, it verifies account and whether password is all correct, if account and password are correct, with obtaining whole first servers
Location, and corresponding load capacity is obtained, and select the first server of load capacity minimum as destination server, so that terminal device
It is communicated with the destination server of load capacity minimum, the first server for avoiding terminal device larger with load capacity is led to
Letter, to effectively reduce the burden of the larger first server of load capacity, and selects the first server of load capacity minimum to make
It is communicated with terminal device for destination server, improves the speed of response, ensure communication quality.
Wherein, destination server address includes the IP address and domain name addresses of destination server.
In step s 102, the first response results of destination server feedback are received.
In the present embodiment, the first response results include and respond successfully to fail with response.
In the present embodiment, the certification instruction that server receiving terminal equipment is sent, determines according to the command identification of reception
Currently received instruction type instructs for certification, and server local also preserves certification instruction format, refers to from local acquisition certification
Format is enabled, terminal number and terminal serial number are extracted from certification instruction according to certification instruction format, and verify terminal number
It is whether correct with terminal serial number, if terminal number and terminal serial number are all correct, obtain and respond successfully command identification, sound
Should succeed and the time and prestore and respond successfully instruction format, will respond successfully command identification, respond successfully time substitution and prestore response
In instruction format, generation, which responds, successfully to be instructed, that is, shows that the first response results are to respond successfully.
Wherein, it includes date Hour Minute Second to respond the successfully time.
In the present embodiment, if terminal number and/or terminal serial number are incorrect, obtain response failure command mark,
Response failure cause and the response instruction format that prestores will respond failure command mark, response Time To Failure substitutes into the response that prestores and refers to
It enables in format, generates response failure command, that is, show that the first response results are that response fails.
In the present embodiment, it is [responding successfully command identification] [response time] to prestore and respond successfully instruction format.
In the present embodiment, the response failure command format that prestores is [response failure command mark] [response failure cause].
Preferably, the first response results are read in order to facilitate terminal device, prestores and responds successfully instruction format and the sound that prestores
It further includes starting character and full stop to answer failure command format, including the response success instruction format of starting character and full stop is [to rise
Begin symbol] [responding successfully command identification] [response time] [full stop], include the response failure command lattice of starting character and full stop
Formula is [starting character] [response failure command mark] [response failure cause] [full stop].
Wherein, starting character and full stop can be pre-set, without server generate the first response results when
Time obtains starting character and full stop again, for example, prestore respond starting character that successfully instruction format includes for full stop Wei n.
In the present embodiment, by taking a concrete application scene as an example, respond successfully command identification be OK, starting character be and
Full stop is n, and it is respond that successfully to instruct be 20181011233410 respond the successfully time, responds and successfully instructs as [] [OK]
[20181011233410][\n]。
In step s 103, if the first response results are to respond successfully, the currently monitored data of monitoring device are obtained, and
The currently monitored instruction, which is generated, according to the currently monitored data is sent to destination server.
In the present embodiment, the first response results that destination server is sent are received, according to the finger in the first response results
Mark is enabled to judge that the first response results are to respond successfully or respond failure result, if the command identification in the first response results
To respond success flag, it is determined that reception is in response to successfully instruct, i.e. the first response results are to respond successfully, if the first response
As a result the command identification in is that response unsuccessfully identifies, it is determined that reception is in response to failure command, i.e. the first response results are to ring
It should fail.
In the present embodiment, when it is response failure to determine the first response results, response is obtained from response failure command
Failure cause, to which user can find one's way out according to failure cause.
In the present embodiment, if the first response results are to respond successfully, show that data can be carried out with destination server
Interaction, is sent to destination server, so that destination server can know equipment current operating conditions by present instruction.
Preferably, monitoring device is lightning protection safety on-line monitor, including atmospheric electric field detector, lightning monitoring instrument, ground connection electricity
Hinder monitor, SPD (Surge protection Device, Surge Protector) monitor etc..
In one embodiment of the invention, step S103 includes:
1) alarm grade is generated according to the currently monitored data.
2) monitoring device number and the currently monitored command identification are obtained.
3) the currently monitored data, alarm grade, monitoring device number and the substitution of the currently monitored command identification are prestored current
In Monitoring instruction format, the currently monitored instruction is generated.
4) the currently monitored instruction is sent to destination server.
In the present embodiment, monitoring device monitors corresponding monitoring object in real time, obtains monitoring data and is supervised to get to current
Measured data, monitoring object include the equipment such as Surge Protector, also include environment temperature, atmospheric electric field, ambient humidity, dust etc..
Wherein, monitoring data include lightning stroke energy, lightning stroke peak value, lightning stroke polarity, lightning stroke polarity, lightning stroke duration, ring
Border temperature, ambient humidity, dust concentration, SPD surge-crests and SPD leakage current values etc..
By taking a concrete application scene as an example, when monitoring device is grounding resistance monitor instrument, corresponding monitoring object is
Ground resistance, the real-time monitoring grounding resistance of grounding resistance monitor instrument obtain monitoring data to get to specific ground resistance number
Value.
In the present embodiment, generating alarm grade according to the currently monitored data includes:
1) the corresponding alarm threshold value of monitoring object is obtained.
If 2) the currently monitored data are more than corresponding alarm threshold value, inquiry is more than the monitoring object of corresponding alarming threshold value
Alert grade.
If 3) the currently monitored data are not more than corresponding alarm threshold value, corresponding alarm grade is 0.
By taking a concrete application scene as an example, the alarm threshold value of ground resistance is 20 Ω, current collected ground resistance
It has been more than the alarm threshold value of ground resistance for 25 Ω, then from the corresponding alarm grade of local search ground resistance.
In one embodiment of the invention, it every the second preset time, generates equipment state preservation instruction and is sent to mesh
Mark server.
In the present embodiment, equipment state refers to the operating status of monitoring device, including networking state, off-line state, event
Barrier state and disabled status.
Wherein, when the equipment state of monitoring device is networking state, show that monitoring device can be carried out with terminal device
Communication.
Wherein, when the equipment state of monitoring device be off-line state when, show monitoring device cannot with terminal device into
Row communication.
Wherein, when the equipment state of monitoring device is malfunction, showing monitoring device, there is currently failures.
Wherein, when the equipment state of monitoring device is disabled status, show that monitoring device is disabled.
In the present embodiment, every the second preset time, sending device state save instruction to destination server, by equipment
State save instruction is sent to destination server as heartbeat packet timing, keeps the communication link of terminal device and destination server
It connects, destination server is avoided to terminate present communications process, disconnect the communication connection established with destination server.
In one embodiment of the invention, the generation equipment state, which preserves to instruct, includes:
1) current operating conditions for presetting monitoring device are obtained and equipment state preserves command identification.
2) monitoring device number, current operating conditions and equipment state preservation command identification are substituted into the equipment state that prestores and referred to
It enables in format, generates equipment state and preserve instruction.
In the present embodiment, monitoring device number is the number of monitoring device, for referring to corresponding monitoring device.
In the present embodiment, it includes [equipment state preservation command identification] [monitoring device that the equipment state that prestores, which preserves instruction,
Number] [current operating conditions].
Preferably, it reads equipment state in order to facilitate server and preserves instruction, the equipment state that prestores preserves instruction and further includes
Starting character and full stop, including it is that [starting character] [equipment state is protected that starting character and the equipment state of full stop, which preserve instruction format,
Deposit command identification] [monitoring device number] [current operating conditions] [full stop], full stop and starting character can prestore and choose,
And it is fixed on equipment state and preserves in instruction format.
By taking a concrete application scene as an example, the starting character of selection is@, full stop be n, by the starting character of selection and end
Only symbol is fixed on equipment state and preserves in instruction format, and it is that [equipment state preservation refers to@that obtained equipment state, which preserves instruction format,
Enable mark] [monitoring device number] [current operating conditions].
By taking a concrete application scene as an example, monitoring device number is B0000000, and current operating conditions are networking state,
It is STATUS that equipment state, which preserves command identification, and it is [@] [STATUS] [#0001] [networking that the equipment state of generation, which preserves instruction,
State] [n].
In one embodiment, the temporal information that destination server is sent is received, the temporal information includes that standard is current
Time, and local zone time is updated to the standard current time, i.e., the described terminal device carry out pair according to the temporal information
When.
In the present embodiment, terminal device is set time, and the standard that current time is updated to destination server transmission is worked as
The preceding time, time error is avoided the occurrence of, to avoid leading to instruction execution failure occur due to time of occurrence error,
It is instructed for example, destination server is sent so that terminal device 20 divides at 12 and opens some monitoring device, and due to terminal device
Local zone time it is asynchronous with the local zone time of destination server, cause terminal device not open corresponding prison in the stipulated time
Measurement equipment, to go wrong.
In one embodiment, when managing monitoring device information, account, password and monitoring device input by user are received
Information obtains management command identification, and account, password, management command identification substitution are prestored and managed in instruction format, generates management
Instruction is sent to destination server.
Wherein, management command identification includes that ADD, DELETE and MODIFY show to work as when it is ADD to manage command identification
Preceding instruction is to indicate that destination server by monitoring device information preservation to local, works as pipe for registering monitoring device information
When reason command identification is DELETE, show that present instruction is indicated for destination server and deletes corresponding monitoring device information
, when it is MODIFY to manage command identification, show that present instruction is indicated for the monitoring that destination server modification preserves and sets
Standby information.
Wherein, management monitoring device information includes registration, modification and deletion monitoring device information.
Wherein, monitoring device information includes monitoring device number, monitoring device classification, monitoring device model, monitoring device
Software version information.
Wherein, monitoring device classification includes atmospheric electric field detector, lightning monitoring instrument, grounding resistance monitor instrument, SPD monitors
Deng.
Wherein, the factory number of monitoring device model monitoring device.
In the present embodiment, terminal device can be communicated with the monitoring device of distinct device classification, and compatibility obtains
It ensures.
In the present embodiment, the account and password in the instruction of destination server elder generation verification management, if verification is correct, basis
Management instruction register/modification/and deletes monitoring device information.
In one embodiment, it before sending instruction (for example, the currently monitored instruction) to destination server, needs to referring to
Order is encrypted, and encrypted process includes:
1) symmetric key is obtained.
2) symmetric cryptography is carried out to the instruction of transmission according to symmetric key, obtains data ciphertext.
3) the data ciphertext is sent to destination server.
In the present embodiment, destination server also includes changing symmetric key, and destination server is by symmetric key to data
Ciphertext is decrypted, and obtains the instruction of terminal device transmission.
In one embodiment, symmetric cryptography, symmetric cryptography are carried out to instruction according to symmetric key and symmetric encipherment algorithm
Algorithm includes AES (Advanced Encryption Standard, Advanced Encryption Standard) algorithm.
In the present embodiment, it is encrypted by the instruction to transmission, prevents the intercepted eavesdropping of transmission data, improve number
According to the safety of transmission.
In one embodiment, increase command identification, command content information again according to the demand of user, obtain new finger
Format is enabled, the scalability of instruction is realized.
In the present embodiment, the content that the instruction that terminal device is sent to destination server includes is less, whole instruction letter
It is single short and small (for example, the currently monitored instruction only includes the currently monitored data, alarm grade, monitoring device number and the currently monitored finger
Enable mark), occupancy network flow is extremely low, improves the speed of data interaction.
In the present embodiment, it by the method and data format that are communicated between prescribed terminal and destination server, formulates
The consensus standard communicated between a kind of internet of things application layer applied to lightning protection field, can be compatible with the lightning protection of distinct device type
The enterprise of equipment, lightning protection field can apply this consensus standard to carry out the communication between internet of things application layer, enhance number
According to readability.
In the present embodiment, it is sent to destination server by generating certification instruction, and is generated according to the currently monitored data
The currently monitored instruction is sent to destination server, it is specified that the process of application layer communication, is suitable for various fields, has general
Property, communicating pair no longer needs to the application layer communication protocol of study other side, reduces the difficulty communicated between terminal, improve communication
Efficiency.
As shown in Fig. 2, in one embodiment of the invention, step S101 is specifically included in the embodiment corresponding to Fig. 1:
In step s 201, terminal number, terminal serial number, terminal positional information and certification command identification are obtained.
In the present embodiment, terminal number is the number of terminal device, is user oneself setting, for example, terminal number
For #00001.
In the present embodiment, terminal serial number includes SN (Serial Number, product ID), and terminal serial number is
Manufacturer works out according to certain compilation principles, and manufacturer can identify corresponding terminal device by terminal serial number.
In the present embodiment, terminal positional information is the geographical position coordinates of terminal device.
In step S202, the substitution of terminal number, terminal serial number, terminal positional information and certification command identification is prestored
In certification instruction format, certification instruction is generated.
In one embodiment, the certification instruction format that prestores can be [certification command identification] [terminal number] [terminal sequence
Row number] [terminal positional information].
In the present embodiment, destination server receives certification instruction, can identify that terminal is set according to certification command identification
The type for the present instruction that preparation is sent obtains corresponding instruction format, compares the terminal for extracting and including in certification instruction and compiles
Number, terminal serial number and terminal positional information, whether verification terminal number, terminal serial number and terminal positional information correct, if
All correct, then destination server generation responds successfully instruction and is sent to terminal device, and terminal device can be with destination server
It is further communicated, for example, transmission instruction, if not all correct, then destination server generates response failure command hair
It send to terminal device.
In the present embodiment, it is instructed by certification of the transmission comprising terminal number, terminal serial number and terminal positional information
To destination server so that destination server verification terminal number, terminal serial number and terminal positional information whether with local guarantor
Terminal number, terminal serial number and the terminal location deposited it is consistent, that is, verify terminal number, terminal serial number and terminal location letter
Whether breath is correct, realizes triple verifications, improves the accuracy of verification, also improves the safety of communication.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment 2:
Fig. 3 shows the communication system 100 for the internet of things application layer that one embodiment of the present of invention provides, for executing figure
The method and step in embodiment corresponding to 1 comprising:
Certification directive generation module 110 is sent to destination server for generating certification instruction.
Response results receiving module 120, the first response results for receiving destination server feedback.
Operating instruction sending module 130 obtains the current of monitoring device if being to respond successfully for the first response results
Monitoring data, and generate the currently monitored instruction according to the currently monitored data and be sent to destination server.
In one embodiment of the invention, operating instruction sending module 130 includes:
Grade generation unit is alerted, for generating alarm grade according to the currently monitored data.
Operating instruction information acquisition unit, for obtaining monitoring device number and the currently monitored command identification.
Operating instruction generation unit is used for the currently monitored data, alarm grade, monitoring device number and the currently monitored finger
It enables mark substitute into the currently monitored instruction format that prestores, generates the currently monitored instruction.
Operating instruction transmission unit, for the currently monitored instruction to be sent to destination server.
In one embodiment of the invention, the communication system 100 of internet of things application layer further includes:
Equipment state preserves directive generation module, for every the second preset time, generating equipment state and preserving instruction hair
It send to the destination server.
In one embodiment of the invention, equipment state preservation directive generation module includes:
Status information of equipment acquiring unit, current operating conditions and equipment state for obtaining default monitoring device preserve
Command identification.
Equipment state instruction generation unit, for by monitoring device number, the current operating conditions and described setting
Standby state save instruction mark substitutes into the equipment state instruction format that prestores, and generates the equipment state and preserves instruction.
As shown in figure 4, in one embodiment of the invention, certification directive generation module 110 specifically includes:
Authentication information acquiring unit 111 refers to for obtaining terminal number, terminal serial number, terminal positional information and certification
Enable mark;
Certification instruction generation unit 112, for instructing terminal number, terminal serial number, terminal positional information and certification
Mark substitutes into the certification instruction format that prestores, and generates certification instruction.
In one embodiment of the invention, certification directive generation module 110 further includes:
Unit is communicated to connect, for being based on transmission control protocol, is initiated the connection to destination server.
Processing unit, if for continuous preset times and destination server connection failure, after being spaced the first preset time
Again it initiates the connection to destination server and is connected until being established with destination server.
In one embodiment of the invention, communication connection unit includes:
Authentication subelement, for sending authentication information to the corresponding server in pre-stored service device address.
Destination server address acquiring unit, the target for receiving the corresponding server feedback in pre-stored service device address take
Business device address.
Destination server determination unit, for determining destination server according to destination server address.
In one embodiment, the communication system 100 of internet of things application layer further includes other function module/units, is used for
Realize the method and step in each embodiment in embodiment 1.
Embodiment 3:
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment is set
Standby 5 include:Processor 50, memory 51 and it is stored in the meter that can be run in the memory 51 and on the processor 50
Calculation machine program 52.The processor 50 realizes each embodiment as described in example 1 above when executing the computer program 52
Step, such as step S101 shown in FIG. 1 to step S103.Alternatively, when the processor 50 executes the computer program 52
Realize the function of each module/unit in each system embodiment as described in example 2 above, for example, module 110 shown in Fig. 3 to
130 function.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided
It is cut into certification directive generation module, response results receiving module and operating instruction sending module.
Certification directive generation module is sent to destination server for generating certification instruction.
Response results receiving module, the first response results for receiving destination server feedback.
Operating instruction sending module obtains the current prison of monitoring device if being to respond successfully for the first response results
Measured data, and generate the currently monitored instruction according to the currently monitored data and be sent to destination server.
The terminal device 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device 5 may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that figure
5 be only the example of terminal device 5, does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete predetermined hardware component etc..General processor can be microprocessor or the processor can also be any conventional processing
Device etc..
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk of terminal device 5 or interior
It deposits.The memory 51 can also be to be equipped on the External memory equipment of the terminal device 5, such as the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
Embodiment 4:
The embodiment of the present invention additionally provides a kind of computer readable storage medium, and computer-readable recording medium storage has meter
Calculation machine program is realized the step in each embodiment as described in example 1 above, such as is schemed when computer program is executed by processor
Step S101 to step S103 shown in 1.Alternatively, being realized such as institute in embodiment 2 when the computer program is executed by processor
The function of each module/unit in each system embodiment stated, for example, module 110 to 130 shown in Fig. 3 function.
The computer program can be stored in a computer readable storage medium, and the computer program is by processor
When execution, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code,
The computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..Institute
Stating computer-readable medium may include:Can carry the computer program code any entity or device, recording medium,
USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs
It is bright, the content that the computer-readable medium includes can according in jurisdiction legislation and patent practice requirement into
Row increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium is including being electricity
Carrier signal and telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in system of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronics predetermined hardware or computer software and electronics predetermined hardware.These
Function is executed with predetermined hardware or software mode actually, depends on the specific application and design constraint of technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It should not be considered as beyond the scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of communication means of internet of things application layer, which is characterized in that including:
It generates certification instruction and is sent to destination server;
Receive the first response results of the destination server feedback;
If first response results are to respond successfully, the currently monitored data of monitoring device are obtained, and according to described current
Monitoring data generate the currently monitored instruction and are sent to the destination server.
2. the communication means of internet of things application layer as described in claim 1, which is characterized in that the generation certification instruction is sent
To destination server, including:
Obtain terminal number, terminal serial number, terminal positional information and certification command identification;
The substitution of the terminal number, the terminal serial number, the terminal positional information and the certification command identification is prestored
In certification instruction format, the certification instruction is generated.
3. the communication means of internet of things application layer as described in claim 1, which is characterized in that the generation certification instruction is sent
To before destination server, including:
Based on transmission control protocol, initiated the connection to the destination server;
If continuous preset times and the destination server connection failure, are spaced after the first preset time again to the target
Server initiates the connection to be connected until being established with the destination server.
4. the communication means of internet of things application layer as claimed in claim 3, which is characterized in that described based on biography transport control protocol
View, before establishing connection with the destination server, including:
Authentication information is sent to the corresponding server in pre-stored service device address;
Receive the destination server address of the corresponding server feedback in pre-stored service device address;
The destination server is determined according to the destination server address.
5. the communication means of internet of things application layer as described in claim 1, which is characterized in that described according to the current prison
Measured data generates the currently monitored instruction and is sent to the destination server, including:
Alarm grade is generated according to the currently monitored data;
Obtain monitoring device number and the currently monitored command identification;
By the currently monitored data, the alarm grade, monitoring device number and the currently monitored command identification generation
Enter in prestoring the currently monitored instruction format, generates the currently monitored instruction;
The currently monitored instruction is sent to the destination server.
6. the communication means of internet of things application layer as claimed in claim 5, which is characterized in that further include:
Every the second preset time, generates equipment state preservation instruction and be sent to the destination server.
7. the communication means of internet of things application layer as claimed in claim 6, which is characterized in that the generation equipment state preserves
Instruction includes:
It obtains the current operating conditions for presetting monitoring device and equipment state preserves command identification;
Monitoring device number, the current operating conditions and the equipment state are preserved into command identification and substitute into the equipment that prestores
In status command format, generates the equipment state and preserve instruction.
8. a kind of communication system of internet of things application layer, which is characterized in that including:
Certification directive generation module is sent to destination server for generating certification instruction;
Response results receiving module, the first response results for receiving the destination server feedback;
Operating instruction sending module obtains the current prison of monitoring device if being to respond successfully for first response results
Measured data, and generate the currently monitored instruction according to the currently monitored data and be sent to the destination server.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810499587.3A CN108429820A (en) | 2018-05-23 | 2018-05-23 | A kind of communication means of internet of things application layer, system and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810499587.3A CN108429820A (en) | 2018-05-23 | 2018-05-23 | A kind of communication means of internet of things application layer, system and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108429820A true CN108429820A (en) | 2018-08-21 |
Family
ID=63163949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810499587.3A Pending CN108429820A (en) | 2018-05-23 | 2018-05-23 | A kind of communication means of internet of things application layer, system and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108429820A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109614789A (en) * | 2018-11-07 | 2019-04-12 | 平安科技(深圳)有限公司 | A kind of verification method and equipment of terminal device |
CN110912687A (en) * | 2019-10-17 | 2020-03-24 | 上海海加网络科技有限公司 | Distributed identity authentication method |
CN110958281A (en) * | 2018-09-26 | 2020-04-03 | 华为技术有限公司 | Data transmission method and communication device based on Internet of things |
CN111147536A (en) * | 2018-11-05 | 2020-05-12 | 千寻位置网络有限公司 | Data transmission method and device, server, monitoring equipment and interaction system |
CN111737076A (en) * | 2019-05-23 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Server monitoring method, device, equipment and storage medium |
CN113472882A (en) * | 2021-06-30 | 2021-10-01 | 北京百度网讯科技有限公司 | Network state switching method and device, client device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079884A (en) * | 2007-03-27 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A method, system and device for client login to service server |
CN105245445A (en) * | 2015-09-08 | 2016-01-13 | 浙江风向标科技有限公司 | Internet of things gateway |
CN106156548A (en) * | 2015-04-10 | 2016-11-23 | 杭州海康威视数字技术股份有限公司 | Authentication method and device for program encryption |
CN106549962A (en) * | 2016-11-03 | 2017-03-29 | 中冶华天南京工程技术有限公司 | A kind of implementation method of unitized intelligent control platform communication protocol |
US20170295447A1 (en) * | 2016-04-08 | 2017-10-12 | Dell Software, Inc. | Systems and methods for cloud-based device configuration management of heterogeneous devices |
CN107809487A (en) * | 2017-11-07 | 2018-03-16 | 普天东方通信集团有限公司 | A kind of sensor data transmission method, system and medium |
CN107919993A (en) * | 2017-11-24 | 2018-04-17 | 深圳市恒扬数据股份有限公司 | A kind of alert processing method and system |
-
2018
- 2018-05-23 CN CN201810499587.3A patent/CN108429820A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079884A (en) * | 2007-03-27 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A method, system and device for client login to service server |
CN106156548A (en) * | 2015-04-10 | 2016-11-23 | 杭州海康威视数字技术股份有限公司 | Authentication method and device for program encryption |
CN105245445A (en) * | 2015-09-08 | 2016-01-13 | 浙江风向标科技有限公司 | Internet of things gateway |
US20170295447A1 (en) * | 2016-04-08 | 2017-10-12 | Dell Software, Inc. | Systems and methods for cloud-based device configuration management of heterogeneous devices |
CN106549962A (en) * | 2016-11-03 | 2017-03-29 | 中冶华天南京工程技术有限公司 | A kind of implementation method of unitized intelligent control platform communication protocol |
CN107809487A (en) * | 2017-11-07 | 2018-03-16 | 普天东方通信集团有限公司 | A kind of sensor data transmission method, system and medium |
CN107919993A (en) * | 2017-11-24 | 2018-04-17 | 深圳市恒扬数据股份有限公司 | A kind of alert processing method and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958281A (en) * | 2018-09-26 | 2020-04-03 | 华为技术有限公司 | Data transmission method and communication device based on Internet of things |
CN110958281B (en) * | 2018-09-26 | 2021-07-09 | 华为技术有限公司 | Data transmission method and communication device based on Internet of things |
CN111147536A (en) * | 2018-11-05 | 2020-05-12 | 千寻位置网络有限公司 | Data transmission method and device, server, monitoring equipment and interaction system |
CN109614789A (en) * | 2018-11-07 | 2019-04-12 | 平安科技(深圳)有限公司 | A kind of verification method and equipment of terminal device |
CN109614789B (en) * | 2018-11-07 | 2023-04-14 | 平安科技(深圳)有限公司 | Terminal equipment verification method and equipment |
CN111737076A (en) * | 2019-05-23 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Server monitoring method, device, equipment and storage medium |
CN110912687A (en) * | 2019-10-17 | 2020-03-24 | 上海海加网络科技有限公司 | Distributed identity authentication method |
CN113472882A (en) * | 2021-06-30 | 2021-10-01 | 北京百度网讯科技有限公司 | Network state switching method and device, client device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108429820A (en) | A kind of communication means of internet of things application layer, system and terminal device | |
US11483143B2 (en) | Enhanced monitoring and protection of enterprise data | |
TWI254523B (en) | A system and method for managing network equipment via e-mail | |
CN105027493B (en) | Safety moving application connection bus | |
US20170302663A1 (en) | BLOCK CHAIN BASED IoT DEVICE IDENTITY VERIFICATION AND ANOMALY DETECTION | |
US20050188196A1 (en) | Method of nullifying digital certificate, apparatus for nullifying digital certificate, and system, program, and recoring medium for nullifying digital certificate | |
CN110462652A (en) | For area of computer aided provide the shielded number of safety twin method and apparatus | |
CN110072236A (en) | Equipment connection method, equipment and system | |
CN112134956A (en) | Distributed Internet of things instruction management method and system based on block chain | |
CN110912877B (en) | Data transmitting and receiving method and device based on IEC61850 model in transformer substation | |
CN114448654B (en) | Block chain-based distributed trusted audit security evidence storing method | |
CN107959930A (en) | Terminal access method, device, Lora servers and Lora terminals | |
Sun et al. | Research on distributed feeder automation communication based on XMPP and GOOSE | |
CN103384246A (en) | Safety supervision system login assistant method | |
CN104396216A (en) | Methods for identifying network traffic characteristics to correlate and manage one or more subsequent flows and devices thereof | |
CN109587134B (en) | Method, apparatus, device and medium for secure authentication of interface bus | |
CN116743850B (en) | Equipment discovery method and device based on Internet of things platform, computer equipment and storage medium | |
CN108076089A (en) | A kind of long-range control method and device | |
CN105407095B (en) | Secure communication device and its communication means between heterogeneous networks | |
WO2018172776A1 (en) | Secure transfer of data between internet of things devices | |
CN110769010B (en) | Data management authority processing method and device and computer equipment | |
CN113992734A (en) | Session connection method, device and equipment | |
CN113518121A (en) | Batch operation method and device | |
TWI835351B (en) | Cross-domain secure connect transmission method | |
CN102148704A (en) | Software implementation method for universal network management interface of safe switch |
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: 20180821 |