[go: up one dir, main page]

CN106534067A - Intelligent control method and system based on internet of things - Google Patents

Intelligent control method and system based on internet of things Download PDF

Info

Publication number
CN106534067A
CN106534067A CN201610866313.4A CN201610866313A CN106534067A CN 106534067 A CN106534067 A CN 106534067A CN 201610866313 A CN201610866313 A CN 201610866313A CN 106534067 A CN106534067 A CN 106534067A
Authority
CN
China
Prior art keywords
ason
client
internet
things
message
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.)
Granted
Application number
CN201610866313.4A
Other languages
Chinese (zh)
Other versions
CN106534067B (en
Inventor
李巍
章进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Huasuda Electronic Technology Co Ltd
Original Assignee
Anhui Huasuda Electronic 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 Anhui Huasuda Electronic Technology Co Ltd filed Critical Anhui Huasuda Electronic Technology Co Ltd
Priority to CN201610866313.4A priority Critical patent/CN106534067B/en
Publication of CN106534067A publication Critical patent/CN106534067A/en
Application granted granted Critical
Publication of CN106534067B publication Critical patent/CN106534067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3271Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an intelligent control system based on internet of things. The intelligent control system based on internet of things comprises an intelligent control platform of the internet of things and a plurality of intelligent optical network clients. The invention further discloses an intelligent control method based on internet of things, wherein the intelligent optical network clients are taken as TCP clients, and the intelligent control platform based on the internet of things is taken as a TCP server end, so that an application to the wide area network is possible. Cross-platform management changes the traditional complex and dull message format interaction, changes to use command statements so as to be more direct, source-opening and further easily understanding, and matches with a command manual of the device in use so as to simplify butt joint difficulty and reduce maintenance costs. The intelligent control method based on the internet of things meets a purpose that a server is configured in a local area network to manage modular intelligent optical network units in the local area network, and also meets the capability that the server is configured in the wide area network to manage the modular intelligent optical network units in the different wide area networks; and finally, the costs of user use and server operation are reduced.

Description

A kind of intelligent control method and system based on Internet of Things
Technical field
The present invention relates to intelligent management, and in particular to a kind of intelligent control method and system based on Internet of Things.
Background technology
As social informatization process is being developed rapidly, various sensors, digitized and intelligent equipment occur in us The every aspect of life.Technical method and complexity more and more higher involved by this kind of information system, this requires manager Method will also grow with each passing hour, and need to give the ability of management " thinking ".
Modular ASON unit light harvesting network technology, the informationization technology such as technology of Internet of things and embedded technology , system module is more, in order to ensure operation that systematic function can be efficient and stable under LAN and wan environment, Need a set of special management method and system.
Server end of the modules of traditional mode managed devices all as TCP, management server connect as TCP Each module of the client for connecing, management equipment and managed devices sets up TCP connections, due to the port numbers of management server Limited, this mode wastes the port numbers of TCP connections, increased the expense of system.
Traditional mode is addressed by IP address, this mode on a local area network using having no problem, but in wide area Probably due to the IP address of server-assignment is modified and causes mistake in net.
The content of the invention
A kind of intelligent control method and system based on Internet of Things proposed by the present invention, increased the certification of managed devices Function, safety are significantly improved.
For achieving the above object, present invention employs technical scheme below:A kind of intelligent control method based on Internet of Things, Comprise the steps:
(1) judge whether TCP connections set up:
Intelligent control platform based on Internet of Things monitors the TCP of corresponding ASON client as server end Connection request, ASON client send TCP connection requests, ASON client by socket to server end Detect whether that receiving corresponding message judges whether TCP connections are successfully established;
If TCP connection establishments, into step (2);If TCP connections are not set up, terminate;
(2) judge the whether certification of ASON client:
If ASON Client Device Authentication is matched, into step (3);If ASON Client Device Authentication Mismatch, terminate;
(3) manage the instruction of control station transmitting order to lower levels:
Intelligent control platform based on Internet of Things issues the instruction of function request command to ASON client, passes through Transmission Control Protocol is transmitted, and can request that command instruction includes TVP stems and tcp data part, and tcp data part includes 5 fields, point It is not:Constant mark, order, action type, parameter, order number of times;
(4) ASON unit receives instruction:
ASON client creates a thread to be used for processing reception TCP message, by the fixed mark in TCP message Whether character learning section is the instruction message that receives to distinguish, while instruction message to be passed to by way of interprocess communication message Treatment progress;
(5) instruction of ASON unit is processed:
ASON client carries out instruction process, searches including instruction parsing, Processing Interface readjustment and function is performed;
Instruction parsing, refines the content of each field of message, and instruction ID is continuous and different order parameter from 0 to n With unique instruction ID;ASON unit resolves by offseting m structure, find instruction ID to after instruction ID (m) M () corresponding function API, performs corresponding API, by way of readjustment in the intelligent control platform based on Internet of Things and intelligence Optical network unit safeguards identical Array for structural body, keeps the synchronization of order;
(6) ASON unit returns result:
The parameter of the API for calling is from the parameter being resolved to, ASON unit and management control station response message After filling is correct, ASON client is sent to server end by socket.
Used as the further optimization of such scheme, step (1) judges whether TCP connections set up, and comprises the steps:
(11) ASON client sends TCP connection requests by socket threads to server end;
(12) whether server end Monitor detection receives the TCP connectivity request messages of ASON client transmission;
If after server end receives the TCP connectivity request messages of ASON client transmission, into step (13);If Server end does not receive the TCP connectivity request messages of ASON client transmission, and flow process terminates;
(13) server end sends corresponding response message and gives ASON client;
(14) ASON client detects whether to receive the message of server end response;If ASON client Message of the termination by server end response, ASON client carry out matching certification;If ASON client does not have There is the message for receiving server end response, flow process terminates.
Used as the further optimization of such scheme, step (2) judges the whether certification of ASON client, including as follows Step:
(21) after TCP connections are set up at ASON client and server end, to server in the way of AES encryption End sends equipment Serial Number and password;
(22) server end automatic inquiry service device data base, judges the equipment Serial Number and close in the message information for receiving Whether code is matched with the initialized data message of server database;
If information matches, into step (23);If information is mismatched, into step (24)
(23) server end sends equipment call number to ASON client;
(24) server forbids ASON client connection corresponding with equipment Serial Number and password, to management platform Issue warning information;
As the further optimization of such scheme, in step (6), ASON unit response message form:
After call back function end of run, if run-time error, response result field filling failed, if operation is just Really, response result field filling ok;
When returning result, action type field and implementing result field is noted, if the operation field of request message Value is 0x1 (set) and 0x3 (get) respectively, then the operation field of response message respectively correspond to 0x02 (set response) and 0x04(get response);
If it is 0x04 that the operation field of response message is corresponding, then the value that implementing result stuffing function is obtained;
If it is 0x03 that the operation field of response message is corresponding, implementing result field need not be filled.
Used as the further optimization of such scheme, the ASON client includes PON modules, PHY modules, ether Network interface circuit, Switching Module, CPU control modules, at least three road expansion connection modules, interface of internet of things module and be above-mentioned mould The power module that block is powered, the interface of internet of things module include at least No. three interface circuits, the interface circuit be RS485 and DO interface circuits, DO interface circuits or DI interface circuits, the PHY modules are connect by managing data input output with Switching Module Mouth corresponding matching is electrically connected with, and the network interface interface corresponding matching of the ethernet interface circuit and Switching Module is electrically connected with, institute The signal for stating PON modules goes out the signal input end points electric connection at end and Switching Module, the Switching Module and CPU control modules It is electrically connected with by corresponding matching, the extension mouth of the CPU control modules is matched somebody with somebody with the extension mouth of at least three road expansion connection modules Close and be electrically connected with, the extension mouth of expansion connection module described in interface circuit described in one and is electrically connected with.
Used as the further optimization of such scheme, the CPU control modules include TIAM3358 chips and its peripheral circuit, Integrated 5 circuit-switched data expansion interface on TIAM3358 chips;The Switching Module includes the Switch control of Marvell88E6095 Chip and its peripheral circuit, the media of the GMII MII_ETH and CPU control modules of Switch control chip independently connect Mouth MII_ETH is electrically connected with.
Used as the further optimization of such scheme, the PHY modules include PHY chip and its peripheral circuit, the PHY The MDC_PHY interfaces of chip, are electrically connected with the MDC_PHY Interference fits of Switch control chip after series resistance R1, described The MDIO_PHY interfaces of PHY chip, are electrically connected with the MDIO_PHY Interference fits of Switch control chip after series resistance R2.
Used as the further optimization of such scheme, the PON modules include BCM6838 control chips and its peripheral circuit, The LAN interface of the BCM6838 control chips is communicated to connect with the Switch control chip LAN interface of Switching Module.
The invention also discloses a kind of intelligence control system based on Internet of Things, intelligent control platform including Internet of Things and The interactive controlling of some ASON clients, intelligent control platform and energy optical-fiber network client comprises the steps:
(1) judge whether TCP connections set up:
Intelligent control platform based on Internet of Things monitors the TCP of corresponding ASON client as server end Connection request, ASON client send TCP connection requests, ASON client by socket to server end Detect whether that receiving corresponding message judges whether TCP connections are successfully established;
If TCP connection establishments, into step (2);If TCP connections are not set up, terminate;
(2) judge the whether certification of ASON client:
If ASON Client Device Authentication is matched, into step (3);If ASON Client Device Authentication Mismatch, terminate;
(3) manage the instruction of control station transmitting order to lower levels:
Intelligent control platform based on Internet of Things issues the instruction of function request command to ASON client, passes through Transmission Control Protocol is transmitted, and can request that command instruction includes TVP stems and tcp data part, and tcp data part includes 5 fields, point It is not:Constant mark, order, action type, parameter, order number of times;
(4) ASON unit receives instruction:
ASON client creates a thread to be used for processing reception TCP message, by the fixed mark in TCP message Whether character learning section is the instruction message that receives to distinguish, while instruction message to be passed to by way of interprocess communication message Treatment progress;
(5) instruction of ASON unit is processed:
ASON client carries out instruction process, searches including instruction parsing, Processing Interface readjustment and function is performed;
Instruction parsing, refines the content of each field of message, and instruction ID is continuous and different order parameter from 0 to n With unique instruction ID;ASON unit resolves by offseting m structure, find instruction ID to after instruction ID (m) M () corresponding function API, performs corresponding API, by way of readjustment in the intelligent control platform based on Internet of Things and intelligence Optical network unit safeguards identical Array for structural body, keeps the synchronization of order;
(6) ASON unit returns result:
The parameter of the API for calling is from the parameter being resolved to, ASON unit and management control station response message After filling is correct, ASON client is sent to server end by socket.
Used as the further optimization of such scheme, step (1) judges whether TCP connections set up, and comprises the steps:
(11) ASON client sends TCP connection requests by socket threads to server end;
(12) whether server end Monitor detection receives the TCP connectivity request messages of ASON client transmission;
If after server end receives the TCP connectivity request messages of ASON client transmission, into step (13);If Server end does not receive the TCP connectivity request messages of ASON client transmission, and flow process terminates;
(13) server end sends corresponding response message and gives ASON client;
(14) ASON client detects whether to receive the message of server end response;If ASON client Message of the termination by server end response, ASON client carry out matching certification;If ASON client does not have There is the message for receiving server end response, flow process terminates.
Used as the further optimization of such scheme, step (2) judges the whether certification of ASON client, including as follows Step:
(21) after TCP connections are set up at ASON client and server end, to server end in the way of AES encryption Send equipment Serial Number and password;
(22) server end automatic inquiry service device data base, judges the equipment Serial Number and close in the message information for receiving Whether code is matched with the initialized data message of server database;
If information matches, into step (23);If information is mismatched, into step (24)
(23) server end sends equipment call number to ASON client;
(24) server forbids ASON client connection corresponding with equipment Serial Number and password, to management platform Issue warning information;
As the further optimization of such scheme, in step (6), ASON unit response message form:
After call back function end of run, if run-time error, response result field filling failed, if operation is just Really, response result field filling ok;
When returning result, action type field and implementing result field is noted, if the operation field of request message Value is 0x1 (set) and 0x3 (get) respectively, then the operation field of response message respectively correspond to 0x02 (set response) and 0x04(get response);
If it is 0x04 that the operation field of response message is corresponding, then the value that implementing result stuffing function is obtained;
If it is 0x03 that the operation field of response message is corresponding, implementing result field need not be filled.
As shown from the above technical solution, a kind of intelligent control method based on Internet of Things of the invention has following beneficial effect Really:
(1) a kind of intelligent control method based on Internet of Things of the invention, management process include TCP connection establishments, intelligence Change device authentication, order, response interaction.AES encryption, serial number is used to correspond to a unique intelligent equipment in verification process, Define exclusive command parameter structure, response and interaction protocol specification.
(2) a kind of intelligent control method based on Internet of Things of the invention, connects relative to common TCP, increased by The authentication function of management equipment, safety are significantly improved.
(3) a kind of intelligent control method based on Internet of Things of the invention, ASON client is used as TCP client End, the intelligent control platform based on Internet of Things is used as TCP server end so that application is possibly realized on a wide area network;While across Platform management changes traditional complicated dull message format interaction, and it is more direct to use command statement instead, more increases income, it is easier to manage Solution, is used cooperatively with the Command Reference of equipment, simplifies docking development difficulty, reduce maintenance cost.
(4) a kind of intelligent control method based on Internet of Things of the invention, can not only meet and for server be arranged on local The purpose of modularity ASON unit in LAN is managed in net, is managed while can meet and arrange server in the wide area network The ability of modularity ASON unit in reason LAN, reduces user using the cost with Operation Server.
Description of the drawings
Fig. 1 is a kind of flow chart of intelligent control method based on Internet of Things of the present invention.
Fig. 2 is that a kind of intelligent control platform based on Internet of Things of the present invention is illustrated with the response message form of client Figure.
Fig. 3 is the circuit structure frame diagram of the ASON unit of the present invention;
Fig. 4 is the connection Organization Chart based on Ethernet input part of the ASON unit of the present invention.
Specific embodiment
The present invention will be further described below in conjunction with the accompanying drawings:
Referring to Fig. 1, Fig. 1 is a kind of flow chart of intelligent control method based on Internet of Things of the present invention.It is a kind of to be based on thing The intelligent control method of networking, comprises the steps:
(1) judge whether TCP connections set up:
Intelligent control platform based on Internet of Things monitors the TCP of corresponding ASON client as server end Connection request, ASON client send TCP connection requests, ASON client by socket to server end Detect whether that receiving corresponding message judges whether TCP connections are successfully established;
If TCP connection establishments, into step (2);If TCP connections are not set up, terminate;
(2) judge the whether certification of ASON client:
If ASON Client Device Authentication is matched, into step (3);If ASON Client Device Authentication Mismatch, terminate;
(3) manage the instruction of control station transmitting order to lower levels:
Intelligent control platform based on Internet of Things issues the instruction of function request command to ASON client, passes through Transmission Control Protocol is transmitted, and referring to Fig. 2, Fig. 2 is that a kind of intelligent control platform based on Internet of Things of the present invention is disappeared with the response of client Breath form schematic diagram.Request command instruction includes TVP stems and tcp data part, and tcp data part includes 5 fields, respectively For:Constant mark, order, action type, parameter, order number of times;
The field that message package contains has the parameters such as fixed mark, the ID of order, action type, parameter 1 (most 5 ginsengs Number), order number of times.Constant mark, order, action type, parameter, the size of order number of times each field are 6 bytes respectively, 4 Byte, 1 byte, maximum 320 byte, 1 byte.
(4) ASON unit receives instruction:
ASON client creates a thread to be used for processing reception TCP message,.By the fixation in TCP message Whether identification field is the instruction message that receives to distinguish, while instruction message is passed to by way of interprocess communication disappearing Breath treatment progress;
(5) instruction of ASON unit is processed:
ASON client carries out instruction process, searches including instruction parsing, Processing Interface readjustment and function is performed;
Instruction parsing, refines the content of each field of message, and instruction ID is continuous and different order parameter from 0 to n With unique instruction ID;ASON unit resolves by offseting m structure, find instruction ID to after instruction ID (m) M () corresponding function API, performs corresponding API, by way of readjustment in the intelligent control platform based on Internet of Things and intelligence Optical network unit safeguards identical Array for structural body, keeps the synchronization of order;
Array for structural body:The structure of multiple same types is contained, each structure contains 4 elements, is respectively: Command parameter, command parameter help information order ID, wherein function API, function API to use exclusively for intelligent equipment, each Structure is an order.Array for structural body is as follows:
(6) ASON unit returns result:
The parameter of the API for calling is from the parameter being resolved to, ASON unit and management control station response message After filling is correct, ASON client is sent to server end by socket.
Used as the further optimization of such scheme, step (1) judges whether TCP connections set up, and comprises the steps:
(11) ASON client sends TCP connection requests by socket threads to server end;
(12) whether server end Monitor detection receives the TCP connectivity request messages of ASON client transmission;
If after server end receives the TCP connectivity request messages of ASON client transmission, into step (13);If Server end does not receive the TCP connectivity request messages of ASON client transmission, and flow process terminates;
(13) server end sends corresponding response message and gives ASON client;
(14) ASON client detects whether to receive the message of server end response;If ASON client Message of the termination by server end response, ASON client carry out matching certification;If ASON client does not have There is the message for receiving server end response, flow process terminates.
Used as the further optimization of such scheme, step (2) judges the whether certification of ASON client, including as follows Step:
(21) after TCP connections are set up at ASON client and server end, to server end in the way of AES encryption Send equipment Serial Number and password;
(22) server end automatic inquiry service device data base, judges the equipment Serial Number and close in the message information for receiving Whether code is matched with the initialized data message of server database;
If information matches, into step (23);If information is mismatched, into step (24)
(23) server end sends equipment call number to ASON client;
(24) server forbids ASON client connection corresponding with equipment Serial Number and password, to management platform Issue warning information;
In step (6), ASON unit response message form:After call back function end of run, if operation is wrong By mistake, response result field filling failed, if operation is correct, response result field filling ok;When returning result, note Action type field and implementing result field, if the operational word segment value of request message is 0x1 (set) and 0x3 (get) respectively, Then the operation field of response message corresponds to 0x02 (set response) and 0x04 (get response) respectively;If response disappears It is 0x04 that the operation field of breath is corresponding, then the value that implementing result stuffing function is obtained;If the operation field of response message Corresponding is 0x03, and implementing result field need not be filled.
Referring to Fig. 3 and Fig. 4, the ASON client of the present invention includes PON modules, PHY modules, Ethernet interface electricity Road, Switching Module, CPU control modules, at least three road expansion connection modules, interface of internet of things module and for above-mentioned module for power supply Power module, the interface of internet of things module include at least No. three interface circuits, and the interface circuit is RS485 and DO interfaces electricity Road, DO interface circuits or DI interface circuits, by managing, data input/output interface is corresponding to match somebody with somebody the PHY modules with Switching Module Close and be electrically connected with, the network interface interface corresponding matching of the ethernet interface circuit and Switching Module is electrically connected with, the PON modules Signal go out end and be electrically connected with the signal input end points of Switching Module, the Switching Module and CPU control modules are by correspondence Coordinate and be electrically connected with, the extension mouth of the CPU control modules is coordinated with the extension mouth of at least three road expansion connection modules and electrically connected Connect, the extension mouth of expansion connection module described in interface circuit described in one and is electrically connected with.
The CPU control modules include TIAM3358 chips and its peripheral circuit, integrated 5 circuit-switched data on TIAM3358 chips Expansion interface;The Switching Module includes the Switch control chip and its peripheral circuit of Marvell88E6095, switch control The GMII MII_ETH of coremaking piece is electrically connected with the GMII MII_ETH of CPU control modules.
The PHY modules include PHY chip and its peripheral circuit, the MDC_PHY interfaces of the PHY chip, series resistance It is electrically connected with the MDC_PHY Interference fits of Switch control chip after R1, the MDIO_PHY interfaces of the PHY chip, series connection It is electrically connected with the MDIO_PHY Interference fits of Switch control chip after resistance R2.
The PON modules include BCM6838 control chips and its peripheral circuit, and the LAN of the BCM6838 control chips connects Mouth is communicated to connect with the Switch control chip LAN interface of Switching Module.
The invention also discloses a kind of intelligence control system based on Internet of Things, referring to Fig. 1, Fig. 1 is one kind of the present invention Structured flowchart based on the intelligence control system of Internet of Things.Intelligent control platform and some ASONs including Internet of Things The interactive controlling of client, intelligent control platform and energy optical-fiber network client comprises the steps:
(1) judge whether TCP connections set up:
Intelligent control platform based on Internet of Things monitors the TCP of corresponding ASON client as server end Connection request, ASON client send TCP connection requests, ASON client by socket to server end Detect whether that receiving corresponding message judges whether TCP connections are successfully established;
If TCP connection establishments, into step (2);If TCP connections are not set up, terminate;
(2) judge the whether certification of ASON client:
If ASON Client Device Authentication is matched, into step (3);If ASON Client Device Authentication Mismatch, terminate;
(3) manage the instruction of control station transmitting order to lower levels:
Intelligent control platform based on Internet of Things issues the instruction of function request command to ASON client, passes through Transmission Control Protocol is transmitted, and can request that command instruction includes TVP stems and tcp data part, and tcp data part includes 5 fields, point It is not:Constant mark, order, action type, parameter, order number of times;
(4) ASON unit receives instruction:
ASON client creates a thread to be used for processing reception TCP message, by the fixed mark in TCP message Whether character learning section is the instruction message that receives to distinguish, while instruction message to be passed to by way of interprocess communication message Treatment progress;
(5) instruction of ASON unit is processed:
ASON client carries out instruction process, searches including instruction parsing, Processing Interface readjustment and function is performed;
Instruction parsing, refines the content of each field of message, and instruction ID is continuous and different order parameter from 0 to n With unique instruction ID;ASON unit resolves by offseting m structure, find instruction ID to after instruction ID (m) M () corresponding function API, performs corresponding API, by way of readjustment in the intelligent control platform based on Internet of Things and intelligence Optical network unit safeguards identical Array for structural body, keeps the synchronization of order;
(6) ASON unit returns result:
The parameter of the API for calling is from the parameter being resolved to, ASON unit and management control station response message After filling is correct, ASON client is sent to server end by socket.
Used as the further optimization of such scheme, step (1) judges whether TCP connections set up, and comprises the steps:
(11) ASON client sends TCP connection requests by socket threads to server end;
(12) whether server end Monitor detection receives the TCP connectivity request messages of ASON client transmission;
If after server end receives the TCP connectivity request messages of ASON client transmission, into step (13);If Server end does not receive the TCP connectivity request messages of ASON client transmission, and flow process terminates;
(13) server end sends corresponding response message and gives ASON client;
(14) ASON client detects whether to receive the message of server end response;If ASON client Message of the termination by server end response, ASON client carry out matching certification;If ASON client does not have There is the message for receiving server end response, flow process terminates.
Used as the further optimization of such scheme, step (2) judges the whether certification of ASON client, including as follows Step:
(21) after TCP connections are set up at ASON client and server end, to server end in the way of AES encryption Send equipment Serial Number and password;
(22) server end automatic inquiry service device data base, judges the equipment Serial Number and close in the message information for receiving Whether code is matched with the initialized data message of server database;
If information matches, into step (23);If information is mismatched, into step (24)
(23) server end sends equipment call number to ASON client;
(24) server forbids ASON client connection corresponding with equipment Serial Number and password, to management platform Issue warning information;
A kind of intelligent control method based on Internet of Things of the present invention, management process include TCP connection establishments, and intellectuality sets Standby certification, order, response interaction.AES encryption, the unique intelligent equipment of serial number correspondence, definition are used in verification process Exclusive command parameter structure, response and interaction protocol specification.A kind of Based Intelligent Control side based on Internet of Things of the present invention Method, connects relative to common TCP, increased the authentication function of managed devices, and safety is significantly improved.One kind of the present invention Based on the intelligence control system of Internet of Things, ASON client is put down as TCP Client, the Based Intelligent Control based on Internet of Things Platform is used as TCP server end so that application is possibly realized on a wide area network;Cross-platform management simultaneously changes traditional complicated dull Message format interaction, it is more direct to use command statement instead, more increases income, it is easier to understand, uses cooperatively with the Command Reference of equipment, Docking development difficulty is simplified, maintenance cost is reduced.
Embodiment described above is only that the preferred embodiment of the present invention is described, not the model to the present invention Enclose and be defined, on the premise of without departing from design spirit of the present invention, technical side of the those of ordinary skill in the art to the present invention Various modifications and improvement that case is made, all should fall within the scope of protection of the present invention.

Claims (9)

1. a kind of intelligent control method based on Internet of Things, it is characterised in that comprise the steps:
(1) judge whether TCP connections set up:
Intelligent control platform based on Internet of Things monitors the TCP connections of corresponding ASON client as server end Request, ASON client send TCP connection requests, the detection of ASON client by socket to server end Whether receive corresponding message and judge whether TCP connections are successfully established;
If TCP connection establishments, into step (2);If TCP connections are not set up, terminate;
(2) judge the whether certification of ASON client:
If ASON Client Device Authentication is matched, into step (3);If ASON Client Device Authentication is not Match somebody with somebody, terminate;
(3) manage the instruction of control station transmitting order to lower levels:
Intelligent control platform based on Internet of Things issues the instruction of function request command to ASON client, is assisted by TCP View transmission, can request that command instruction includes TVP stems and tcp data part, and tcp data part includes 5 fields, respectively: Constant mark, order, action type, parameter, order number of times;
(4) ASON unit receives instruction:
ASON client creates a thread to be used for processing reception TCP message, by the constant mark word in TCP message Whether section is the instruction message that receives to distinguish, while instruction message to be passed to by way of interprocess communication Message Processing Process;
(5) instruction of ASON unit is processed:
ASON client carries out instruction process, searches including instruction parsing, Processing Interface readjustment and function is performed;
Instruction parsing, refines the content of each field of message, and instruction ID is that continuous and different order parameter has from 0 to n Unique instruction ID;ASON unit resolves by offseting m structure, find instruction ID (m) to after instruction ID (m) Corresponding function API, performs corresponding API by way of readjustment, in the intelligent control platform based on Internet of Things and intelligent light NE safeguards identical Array for structural body, keeps the synchronization of order;
(6) ASON unit returns result:
The parameter of the API for calling is from the parameter being resolved to, ASON unit and the response message filling of management control station After correct, ASON client is sent to server end by socket.
2. a kind of intelligent control method based on Internet of Things according to claim 1, it is characterised in that
Step (1) judges whether TCP connections set up, and comprises the steps:
(11) ASON client sends TCP connection requests by socket threads to server end;
(12) whether server end Monitor detection receives the TCP connectivity request messages of ASON client transmission;
If after server end receives the TCP connectivity request messages of ASON client transmission, into step (13);If service Device end does not receive the TCP connectivity request messages of ASON client transmission, and flow process terminates;
(13) server end sends corresponding response message and gives ASON client;
(14) ASON client detects whether to receive the message of server end response;If ASON client terminates By the message that server end is responded, ASON client carries out matching certification;If ASON client does not connect By the message that server end is responded, flow process terminates.
3. a kind of intelligent control method based on Internet of Things according to claim 1, it is characterised in that step (2) judges The whether certification of ASON client, comprises the steps:
(21), after TCP connections are set up at ASON client and server end, sent to server end in the way of AES encryption Equipment Serial Number and password;
(22) server end automatic inquiry service device data base, judge receive message information in equipment Serial Number and password be It is no to match with the initialized data message of server database;
If information matches, into step (23);If information is mismatched, into step (24)
(23) server end sends equipment call number to ASON client;
(24) server forbids ASON client connection corresponding with equipment Serial Number and password, issues to management platform Warning information.
4. a kind of intelligent control method based on Internet of Things according to claim 1, it is characterised in that in step (6), intelligence Can optical network unit response message form:
After call back function end of run, if run-time error, response result field filling failed, if operation is correct, should Answer result field filling ok;
When returning result, action type field and implementing result field is noted, if the operational word segment value of request message point It is not 0x1 (set) and 0x3 (get), then the operation field of response message corresponds to 0x02 (set response) and 0x04 respectively (get response);
If it is 0x04 that the operation field of response message is corresponding, then the value that implementing result stuffing function is obtained;
If it is 0x03 that the operation field of response message is corresponding, implementing result field need not be filled.
5. a kind of intelligent control method based on Internet of Things according to claim 1, it is characterised in that:The intelligent Optical Networks Network client includes PON modules, PHY modules, ethernet interface circuit, Switching Module, CPU control modules, the extension of at least three tunnels Interface module, interface of internet of things module and the power module for above-mentioned module for power supply, the interface of internet of things module are included at least No. three interface circuits, the interface circuit be RS485 and DO interface circuits, DO interface circuits or DI interface circuits, the PHY moulds Block is with Switching Module by managing the electric connection of data input/output interface corresponding matching, the ethernet interface circuit and exchange The network interface interface corresponding matching of module is electrically connected with, and the signal of the PON modules goes out the signal input end points at end and Switching Module It is electrically connected with, the Switching Module and CPU control modules are electrically connected with by corresponding matching, the extension of the CPU control modules Mouth coordinates electric connection, expansion interface mould described in interface circuit described in one and with the extension mouth of at least three road expansion connection modules The extension mouth of block is electrically connected with.
6. a kind of intelligent control method based on Internet of Things according to claim 5, it is characterised in that:The CPU controls Module includes TIAM3358 chips and its peripheral circuit, integrated 5 circuit-switched data expansion interface on TIAM3358 chips;The interchange mode Block includes the Switch control chip and its peripheral circuit of Marvell88E6095, the GMII of Switch control chip MII_ETH is electrically connected with the GMII MII_ETH of CPU control modules.
7. a kind of intelligent control method based on Internet of Things according to claim 5, it is characterised in that:The PHY modules Including PHY chip and its peripheral circuit, the MDC_PHY interfaces of the PHY chip, with Switch control chip after series resistance R1 MDC_PHY Interference fits be electrically connected with, the MDIO_PHY interfaces of the PHY chip, with Switch control after series resistance R2 The MDIO_PHY Interference fits of chip are electrically connected with.
8. a kind of intelligent control method based on Internet of Things according to claim 5, it is characterised in that:The PON modules Including BCM6838 control chips and its peripheral circuit, the LAN interface of the BCM6838 control chips and the exchange of Switching Module Machine control chip LAN interface is communicated to connect.
9. a kind of intelligence control system based on Internet of Things, the intelligent control platform including Internet of Things and some ASONs visitor Family end, it is characterised in that:It is arbitrary described that interaction between intelligent control platform and ASON client possesses claim 1-5 Intelligent control method.
CN201610866313.4A 2016-09-29 2016-09-29 A kind of intelligent control method and system based on Internet of Things Active CN106534067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610866313.4A CN106534067B (en) 2016-09-29 2016-09-29 A kind of intelligent control method and system based on Internet of Things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610866313.4A CN106534067B (en) 2016-09-29 2016-09-29 A kind of intelligent control method and system based on Internet of Things

Publications (2)

Publication Number Publication Date
CN106534067A true CN106534067A (en) 2017-03-22
CN106534067B CN106534067B (en) 2019-07-05

Family

ID=58344571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610866313.4A Active CN106534067B (en) 2016-09-29 2016-09-29 A kind of intelligent control method and system based on Internet of Things

Country Status (1)

Country Link
CN (1) CN106534067B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167809A (en) * 2018-07-18 2019-01-08 浙江苍南仪表集团股份有限公司 A kind of platform of internet of things Interworking Data transformat processing method
CN110445642A (en) * 2019-07-17 2019-11-12 陕西千山航空电子有限责任公司 A kind of means of communication of across bus maintenance FDR system
CN110851096A (en) * 2019-09-10 2020-02-28 广州维升舞台灯光设备有限公司 Display module, method and system based on Internet of Things
CN111866165A (en) * 2017-12-06 2020-10-30 上海麦腾物联网技术有限公司 A communication system for cross-platform IoT embedded devices
CN113938517A (en) * 2021-10-20 2022-01-14 电子科技大学成都学院 A marketing device based on the Internet of Things and its realization method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001033355A1 (en) * 1999-11-01 2001-05-10 Secure.Net Corporation Security process for public networks
CN101047453A (en) * 2006-04-25 2007-10-03 华为技术有限公司 Managing method and system for optical network unit or optical network terminal
US20080031235A1 (en) * 2006-08-03 2008-02-07 Citrix Systems, Inc. Systems and Methods of Fine Grained Interception of Network Communications on a Virtual Private Network
CN101505191A (en) * 2009-04-01 2009-08-12 北京讯风光通信技术开发有限责任公司 Fault processing method and system for Ethernet passive optical network
CN104090792A (en) * 2014-07-03 2014-10-08 电子科技大学 Method for dynamically loading logical files in broadband access network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001033355A1 (en) * 1999-11-01 2001-05-10 Secure.Net Corporation Security process for public networks
CN101047453A (en) * 2006-04-25 2007-10-03 华为技术有限公司 Managing method and system for optical network unit or optical network terminal
US20080031235A1 (en) * 2006-08-03 2008-02-07 Citrix Systems, Inc. Systems and Methods of Fine Grained Interception of Network Communications on a Virtual Private Network
CN101505191A (en) * 2009-04-01 2009-08-12 北京讯风光通信技术开发有限责任公司 Fault processing method and system for Ethernet passive optical network
CN104090792A (en) * 2014-07-03 2014-10-08 电子科技大学 Method for dynamically loading logical files in broadband access network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴颖娜: "基于OpenFlow的ROADM控制系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 *
韩雪松: "智能家居控制系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866165A (en) * 2017-12-06 2020-10-30 上海麦腾物联网技术有限公司 A communication system for cross-platform IoT embedded devices
CN109167809A (en) * 2018-07-18 2019-01-08 浙江苍南仪表集团股份有限公司 A kind of platform of internet of things Interworking Data transformat processing method
CN109167809B (en) * 2018-07-18 2021-11-26 浙江苍南仪表集团股份有限公司 Internet of things platform docking data transmission format processing method
CN110445642A (en) * 2019-07-17 2019-11-12 陕西千山航空电子有限责任公司 A kind of means of communication of across bus maintenance FDR system
CN110851096A (en) * 2019-09-10 2020-02-28 广州维升舞台灯光设备有限公司 Display module, method and system based on Internet of Things
CN113938517A (en) * 2021-10-20 2022-01-14 电子科技大学成都学院 A marketing device based on the Internet of Things and its realization method

Also Published As

Publication number Publication date
CN106534067B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN106534067A (en) Intelligent control method and system based on internet of things
US11616696B2 (en) Transparent auto-negotiation of Ethernet
CN103856361B (en) Realize the method and system of remote debugging
CN100385862C (en) A method for upgrading the version of the optical network unit ONU
CN101282252A (en) Method for managing and logging-on password of remote server based on network
CN114630201B (en) Operation and maintenance control system and method for data machine room
CN106487444A (en) A kind of method and system realizing mobile terminal and telecommunication apparatus data communication
CN107426166B (en) A kind of acquisition methods of information, device and electronic equipment
CN103138946B (en) A kind of POE power supply management methods and device
CN109951749A (en) The method and system that the business of PON+EOC networking is opened automatically
CN102045870A (en) Business processing device and method based on wireless machine-to-machine protocol (WMMP)
CN102438017A (en) Modbus and BACnet Ethernet protocol conversion device and conversion method based on routing function
CN103634163B (en) Method for testing interchangeability of remote communication unit of acquisition terminal
CN115802209A (en) A fault detection method, device and storage medium
CN106888216B (en) Internet of Things bridge joint adaption system and method based on AllJoyn agreement
WO2014048129A1 (en) Indicating message sending method, indicating message receiving method, device and system
CN112448915B (en) Verification method and device for configuration message and computer storage medium
CN104022901B (en) Method of configuring and managing ONU (Optical Network Unit) module of state grid concentrator by utilizing PLC (Programmable Logic Controller)
CN110430075A (en) Management method for supporting logic configuration of support networking controller
CN103905228B (en) The collocation method and system of serial line interface attribute
CN114513792B (en) Remote network control method and device based on eSIM card
CN102572617B (en) Private network server access method and optical network unit
CN104580456B (en) A kind of dynamic message distribution method and system for distributed system
CN209313866U (en) A kind of information security of computer network control device
CN109283901A (en) Integrated smart home system

Legal Events

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