CN106131073A - A kind of communications framework being applicable to many application scenarios and communication means - Google Patents

A kind of communications framework being applicable to many application scenarios and communication means Download PDF

Info

Publication number
CN106131073A
CN106131073A CN201610750425.3A CN201610750425A CN106131073A CN 106131073 A CN106131073 A CN 106131073A CN 201610750425 A CN201610750425 A CN 201610750425A CN 106131073 A CN106131073 A CN 106131073A
Authority
CN
China
Prior art keywords
communication
module
downlink data
thread
stipulations
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610750425.3A
Other languages
Chinese (zh)
Inventor
尹江南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN ROUTON ELECTRONIC CO Ltd
Original Assignee
WUHAN ROUTON ELECTRONIC 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 WUHAN ROUTON ELECTRONIC CO Ltd filed Critical WUHAN ROUTON ELECTRONIC CO Ltd
Priority to CN201610750425.3A priority Critical patent/CN106131073A/en
Publication of CN106131073A publication Critical patent/CN106131073A/en
Pending legal-status Critical Current

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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of communications framework being applicable to many application scenarios and communication means, described communications framework includes configuring module, communication control module and communication module, and described communication control module is provided with application interface and communication interface.The configuration file of different upper layer application is configured with different stipulations configuration informations, configuration module in communications framework can load different assemblies according to the configuration file of different upper layer application, for different upper layer application, have only to load corresponding assembly and be i.e. applicable to many application scenarios, during exploitation, need not too much change, carry out flexible combination by different assemblies, thus the adaptivity that improve whole framework is poor;It addition, communication control module can be different upper layer application provides unified application interface, this application interface adapts to different upper layer application, and communication module supports multiple communication link mode.

Description

A kind of communications framework being applicable to many application scenarios and communication means
Technical field
The present invention relates to the communications field, be specifically related to a kind of communications framework being applicable to many application scenarios and communication means.
Background technology
In a lot of network applications, front end communication data collection is necessary basic function, can determine although gathering data Justice is the function that a comparison is single, but in different application scenarios, the communication used due to remote equipment transmission data Mode, communication protocol are different, and application system self is different, as at some row to the real-time of communication, high efficiency, security requirement In industry field, higher to the requirement of real-time of data, it is desirable to be able to high concurrent high efficiency and healthy and strong stable collection system are provided System, these all cause the difference gathered when data function realizes.Additionally, due to the variation of headend equipment, every kind equipment institute The communication protocol used is not necessarily all conformance with standard agreement, and some equipment may use producer and be defined according to self-demand Communication protocol, it is therefore desirable to again develop.Described it can be concluded that different front end communication data by use above scene There is common point in acquisition system on functional realiey point, the most variant, and the module of diversity and concomitant module are coupling in Together, then can cause overlapping development to system, the defect such as code not easy care.
Summary of the invention
The invention provides a kind of communications framework being applicable to many application scenarios and communication means, solve prior art Shortcoming.
The technical scheme is that and provide a kind of communication being applicable to many application scenarios Framework,
Including configuration module, communication control module and communication module, described communication control module is provided with application interface and leads to Communication interface;
Described configuration module, for reading the stipulations configuration information of upper layer application from configuration file, and joins according to stipulations The confidence breath corresponding assembly of dynamic load;
Communication control module, sets for receiving downlink data that upper layer application sends and reception far-end by application interface Standby through communication module and the upstream data that sent by communication interface;Be additionally operable to call corresponding assembly to downlink data according to Rule schemata packages, and by communication interface, the downlink data after group bag is sent to communication module;Or it is additionally operable to adjust It is sent to upper layer application by application interface after upstream data being carried out stipulations parsing with corresponding assembly;
Described communication module is logical for set up with each remote equipment according to the communication mode of each remote equipment Letter link;It is additionally operable to be sent to by the downlink data of group bag the remote equipment of correspondence by corresponding communication link;Or also use In receiving, by corresponding communication link, the upstream data that corresponding remote equipment sends.
In order to solve the technical problem of the present invention, additionally provide a kind of communication means being applicable to many application scenarios, including:
S1, reads the stipulations configuration information of upper layer application from configuration file and configures dynamic load respective sets according to stipulations Part;
S2, communication module sets up the link with each remote equipment according to the communication mode of each remote equipment;
S3, communication control module is received a plurality of downlink data that transmitted by application interface of upper layer application or receives multiple Remote equipment is through communication module the upstream data that transmitted by communication interface;
S4, this plurality of downlink data is packaged by communication control module according to rule schemata, and by communication interface also It is sent to remote equipment through communication module;Or, a plurality of upstream data is solved by communication control module according to rule schemata Analysis, and it is transferred to upper layer application by application reception.
The invention have the benefit that and the configuration file of different upper layer application is configured with different stipulations configuration informations Configuration module in communications framework can load different assemblies according to the configuration file of different upper layer application, for different upper Layer application, it is only necessary to load corresponding assembly and be i.e. applicable to many application scenarios, during exploitation, it is not necessary to too much change Become, carry out flexible combination by different assemblies, thus improve the adaptivity of whole communications framework;It addition, Control on Communication Module can be that different upper layer application provides unified application interface, and this application interface adapts to different upper layer application, and Communication module supports multiple communication link mode.
Accompanying drawing explanation
Fig. 1 is a kind of communications framework figure being applicable to many application scenarios of embodiment 1;
Fig. 2 is the general frame figure of communication control module;
Fig. 3 is communication module general frame figure;
Fig. 4 is a kind of communication means flow chart being applicable to many application scenarios of embodiment 2.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining the present invention, and Non-for limiting the scope of the present invention.
Embodiment 1, a kind of communications framework being applicable to many application scenarios.Below in conjunction with Fig. 1-Fig. 4, the present embodiment is provided Communications framework be described in detail.
Seeing Fig. 1, the communications framework that the present embodiment provides includes configuring module, communication control module and communication module, institute State communication control module and be provided with application interface and communication interface;
Described configuration module, for reading the stipulations configuration information of upper layer application from configuration file, and joins according to stipulations The confidence breath corresponding assembly of dynamic load;
Communication control module, sets for receiving downlink data that upper layer application transmits and reception far-end by application interface Standby through communication module and the upstream data that transmitted by communication interface;Or, it is used for calling corresponding assembly to downlink data Package according to rule schemata, and the downlink data after group bag is sent to communication module by communication interface;And also use It is sent to upper layer application by application interface in calling after corresponding assembly carries out stipulations parsing to upstream data;
Described communication module is logical for set up with each remote equipment according to the communication mode of each remote equipment Letter link;It is additionally operable to be sent to by the downlink data of group bag the remote equipment of correspondence by corresponding communication link;Or, also use In receiving, by corresponding communication link, the upstream data that corresponding remote equipment sends.
The communications framework provided the present embodiment below in conjunction with the workflow of communications framework illustrates.
First, the configuration module in communications framework reads stipulations configuration information from the configuration file of upper layer application, different Upper layer application be configured with different stipulations configuration module according to the stipulations configuration information dynamic load of reading from configuration file Corresponding assembly, mainly loads stipulations control module and stipulations module in the present embodiment.
The application interface of the correspondence that upper layer application is provided by communication control module with the agreement of configuration is by a plurality of lower line number According to being handed down to communication control module, wherein, communication control module provide for upper layer application access application interface, upper strata Application communicates with remote equipment by calling this application interface, it is not necessary to be concerned about bottom communication and the realization of link communication business Details, can focus more on the operation flow realizing operation layer.
Wherein, being finally to realize the communication between remote equipment due to upper layer application, wherein, remote equipment has been typically A lot of, therefore, the communication module in communications framework is to need to set up communication connection with remote equipment.Wherein, can be found in Fig. 4, communication module includes communication link management module, serial port connector, network intercepting device and network connector.Described network Detectaphone, for intercepting the available port in network, communication module can only set up communication chain by available port and remote equipment Road;Serial port connector, for when the communication mode of remote equipment is serial communication mode, is set with this far-end by available port The standby serial ports that carries out connects formation communication link;Described network connector, is used for when the communication mode of remote equipment is that network connects During mode, carry out network by available port with remote equipment and be connected formation communication link;Described communication link management module, uses Corresponding relation between management communication link and remote equipment, i.e. communication module is by which bar link business datum to be sent out Give the remote equipment of correspondence.
The general frame figure of communication control module can be found in Fig. 2, and described communication control module includes scheduler module, stipulations control Molding block and stipulations module;Described scheduler module, for when receiving downlink data, by call stipulations control module and then Call stipulations module downlink data is packaged according to rule schemata, and the downlink data after group bag is sent out by communication interface Give communication module;Or, it is additionally operable to when receiving upstream data, by calling stipulations control module and then calling reduction modulo Block carries out stipulations parsing to upstream data, and the upstream data after resolving is sent to upper layer application by application interface.Wherein, Stipulations control module and stipulations module are primarily used to realize the flow process that stipulations control, to downlink data
Concrete, described scheduler module includes that downlink data processes thread pool, upstream data processes thread pool and link Time-out manager;
Described downlink data processes thread pool, is configured with multiple descending thread, for when receiving what upper layer application issued During a plurality of downlink data, give multiple descending threads by this plurality of downlink data equilibrium assignment, call in each descending thread Stipulations control module and then call stipulations module downlink data is packaged according to rule schemata, and by the lower line number after group bag It is sent to communication module according to by communication interface;
Described upstream data processes thread pool, is configured with multiple up thread, for when receiving what remote equipment sent A plurality of upstream data, gives multiple up threads by this plurality of upstream data equilibrium assignment, calls rule in each up thread About control module and then call stipulations module upstream data is resolved according to rule schemata, and the upstream data after resolving It is transferred to upper layer application by application interface;
Described link time-out manager, is configured with intervalometer thread pool, has multiple intervalometer line in intervalometer thread pool Journey, has a timer queue in an intervalometer thread, have multiple intervalometer, an intervalometer pipe in a timer queue Managing a link, each intervalometer can trigger a time out event, and it is fixed that the reactor in each thread is responsible for intercepting each Time device time out event, when after intervalometer trigger event, reactor notifies that the event handler corresponding to each intervalometer is to touching The event of sending out processes.I.e. intervalometer can trigger time out event, goes to judge that link is the most overtime in time out event processes, or The whether business such as response timeout.How to process as these events, relevant with the stipulations that this upper layer application configures.
Wherein, described downlink data processes and is configured with downlink data task queue in thread pool, and described upstream data processes Thread pool is configured with upstream data task queue;
Described downlink data task queue, processes the downlink data in thread pool for often for placing described downlink data One descending thread therefrom reads corresponding downlink data;
Described upstream data task queue, processes the upstream data in thread pool for often for placing described upstream data One up line journey therefrom reads corresponding upstream data.
Fig. 3 is communication module frame diagram, described communication module also include send thread pool and before take the photograph device pond, described transmission line Cheng Chizhong includes sending thread management module and multiple transmission thread;
Described transmission thread management module, is used for when receiving a plurality of downlink data from communication control module, will A plurality of downlink data equilibrium assignment processes to multiple transmission threads.
Each sends thread, for obtaining the downlink data of correspondence, and finds correspondence from communication link management module Link, and by this link downlink data is sent to the remote equipment of correspondence;Wherein, described communication module supports RS232/ RS485, USB and Ethernet multiple communication link mode.
In the present embodiment, the scheduling feature of communication control module is to process thread pool or upstream data by downlink data Processing what thread pool completed, the downlink data from upper layer application or the upstream data from remote equipment are placed into correspondence Task queue in wait, concrete stipulations control module after downlink data being packaged, by bottom communication module Transmission interface be sent to remote equipment, or after team's upstream data carries out stipulations parsing, be sent to upper strata by application interface Application.Intervalometer thread pool is responsible for the time-out management to communication link, and the management of transmission frame, and management rule depends on specifically Stipulations control module, as in 104 stipulations, does not receives Echo Frame when sending after frame sends the T1 time, then needs disconnecting link, class As rule treatments can be completed by intervalometer thread pool.
The data processing threads pond of communication control module (includes that downlink data processes thread pool and upstream data processes thread Pond) have employed the active objects pattern of ACE.Active objects pattern performs the coupling between method call for reducing method. This pattern describes the method for communication between tasks that another is the most transparent.Traditionally, all of object is all passive code Section, the code in object is to perform in the thread calling its sending method, and when method is called, calling thread will resistance Plug, until calling end.And active objects is different.These objects have the order of oneself and perform thread, active objects Method, by performing in the execution thread of oneself, will not block call method.Owing to the method call of active objects will not block, Which improves system response time, the treatment effeciency of data is greatly improved by communication control module.
In the present embodiment, communication module is for using ACE adaptive communication environ (Adaptive Communication Environment) the cross-platform dynamic base designed.Modern operating system provides number of mechanisms for exploitation concurrently application.Synchronize Multithreading is a kind of popular mechanism, performs the application of multiple operation for exploitation simultaneously.But, thread usually has the highest property Energy expense, and need that synchronous mode and principle are had deep understanding.Therefore, increasing operating system is had to support asynchronous Mechanism, while a large amount of expenses reducing multithreading and complexity, it is provided that concurrent benefit.Communication module is based on ACE_ Proactor framework effectively utilizes the asynchronous mechanism that operating system is supported, to realize the communication function of high handling capacity concurrent, big.
Communication control module is that upper layer application provides interface class TCommControl, encapsulates the public of most of communication Operation, including setting up all types of thread pool, loading configuration file, loading stipulations according to configuration and control storehouse, issue control command, each Plant communication mode and be encapsulated as standard interface etc..Data are realized by classes such as TUpThread, TDownThread, TTimerManger Dispatch deal function.Concrete Business Processing is completed by stipulations control object, stipulations analysis object, owing to having related to concrete rule About, this partly belongs to the part of change in application program, and stipulations control object needs to realize the communication of customization in concrete stipulations Flow process, stipulations analysis object needs to realize the data structure group bag of concrete stipulations and parsing, encapsulates hence with factory mode Stipulations control object and the establishment of stipulations analysis object so that need not do big change during object to be revised it is achieved that Reduce coupling of upper layer application and communication control module.
Embodiment 2, a kind of communication means being applicable to many application scenarios.
Seeing Fig. 4, the communications framework that the present embodiment uses above-described embodiment 1 to provide realizes being applicable to the logical of many application scenarios Letter method, comprises the following steps:
S1, reads the stipulations configuration information of upper layer application from configuration file, and according to stipulations configuration information dynamic load Corresponding assembly;
S2, communication module sets up the link with each remote equipment according to the communication mode of each remote equipment;
S3, communication control module is received a plurality of downlink data that transmitted by application interface of upper layer application or receives multiple Remote equipment is through communication module the upstream data that sent by communication interface;
S4, this plurality of upstream data is packaged by communication control module according to rule schemata, and by communication interface also It is sent to remote equipment through communication module;Or, a plurality of upstream data is solved by communication control module according to rule schemata Analysis, and it is sent to upper layer application by application interface.
Below above-mentioned steps is introduced in detail.
First, the configuration module in communications framework reads configuration information, wherein, configuration from the configuration file of upper layer application Information spinner stipulations to be included configuration information, configuration module according to stipulations configuration information, the corresponding assembly of dynamic load.Upper layer application With the agreement of configuration, by application interface, downlink data being handed down to communication control module, downlink data is deposited by communication control module Being stored in the task queue of downlink data process thread pool of scheduler module, downlink data processes thread pool and is configured with multiple descending Thread, each descending thread reads the downlink data of corresponding distribution from task queue, and under stipulations control module is incited somebody to action Row data are converted to meet the bytes of stream data of remote equipment, pass through communication interface subsequently by business data transmission to communication mould Block.Being configured with multiple transmission thread in communication module, each transmission thread is assigned the downlink data of correspondence and processes.Often One is sent thread and reads corresponding downlink data, and downlink data is sent to by corresponding communication link the far-end of correspondence Equipment.
Equally, communication module can also receive the upstream data from remote equipment, and will by corresponding communication interface Upstream data is sent to electroplate module, and up bytes of stream data is converted to upper layer application through stipulations control module by scheduler module The response structural data needed, and it is sent to upper layer application by application interface.Wherein, communication module and communication control module Similar with the aforementioned processing procedure to downlink data to the processing procedure of upstream data, it is not repeated.
A kind of communications framework being applicable to many application scenarios of present invention offer and communication means, different upper layer application The configuration module being configured with in different stipulations configuration communications frameworks in configuration file can be according to the configuration of different upper layer application File loads different assemblies, for different upper layer application, it is only necessary to load corresponding assembly and be i.e. applicable to many applied field Scape, during exploitation, it is not necessary to makees too much to change, carries out flexible combination by different assemblies, thus improve whole The adaptivity of communications framework;It addition, communication control module can be different upper layer application provides unified application interface, should Adapt to different upper layer application with interface, and communication module supports multiple communication link mode;Use multithreading to business Data carry out equilibrium treatment, it is achieved parallel data processes, and improve the speed that data process;Intervalometer is utilized to realize link time-out pipe Reason, carries out real-time management to the link of whole communications framework;According to the difference of application scenarios, stipulations parsing module use factory and The design pattern of combination, extracts public external interface to variant agreement, and each concrete protocol object each realizes The parsing of this agreement and group packet function.
In the description of this specification, reference term " embodiment one ", " example ", " concrete example " or " some examples " Deng description means to combine this embodiment or example describes concrete grammar, device or feature be contained at least the one of the present invention In individual embodiment or example.In this manual, the schematic representation of above-mentioned term is necessarily directed to identical enforcement Example or example.And, the specific features of description, method, device or feature can be with one or more embodiments in office or examples In combine in an appropriate manner.Additionally, in the case of the most conflicting, those skilled in the art can be by this specification The feature of the different embodiments described or example and different embodiment or example is combined and combines.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. the communications framework being applicable to many application scenarios, it is characterised in that include configuring module, communication control module and leading to News module, described communication control module is provided with application interface and communication interface;
Described configuration module, for reading the stipulations configuration information of upper layer application, and according to stipulations configuration letter from configuration file The breath corresponding assembly of dynamic load;
Communication control module, for receiving downlink data and the reception remote equipment warp that upper layer application is sent by application interface Cross communication module the upstream data sent by communication interface;It is additionally operable to call corresponding assembly to downlink data according to stipulations Form packages, and by communication interface, the downlink data after group bag is sent to communication module;Or it is additionally operable to call phase The assembly answered is sent to upper layer application by application interface after upstream data is carried out stipulations parsing;
Described communication module, sets up the communication chain with each remote equipment for the communication mode according to each remote equipment Road;It is additionally operable to be sent to by the downlink data of group bag the remote equipment of correspondence by corresponding communication link;Or it is additionally operable to lead to Cross corresponding communication link and receive the upstream data that corresponding remote equipment sends.
It is applicable to the communications framework of many application scenarios the most as claimed in claim 1, it is characterised in that described communication module is concrete Including communication link management module, serial port connector, network intercepting device and network connector;
Described network intercepting device, for intercepting the available port in network;
Serial port connector, for when the communication mode of remote equipment is serial communication mode, by available port and this far-end Equipment carries out serial ports and connects formation communication link;
Described network connector, for when the communication mode of remote equipment is internetwork connection mode, by available port with remote End equipment carries out network and connects formation communication link;
Described communication link management module, for managing the corresponding relation between communication link and remote equipment.
It is applicable to the communications framework of many application scenarios the most as claimed in claim 2, it is characterised in that described communication control module Including scheduler module, stipulations control module and stipulations module;
Described scheduler module, for when receiving downlink data, by calling stipulations control module and then calling stipulations module Downlink data is packaged according to rule schemata, and the downlink data after group bag is sent to communication mould by communication interface Block;Or it is additionally operable to when receiving upstream data, by calling stipulations control module and then calling stipulations module to upper line number According to carrying out stipulations parsing, and will resolve after upstream data be sent to upper layer application by application interface.
It is applicable to the communications framework of many application scenarios the most as claimed in claim 3, it is characterised in that described scheduler module is wrapped Include downlink data and process thread pool, upstream data process thread pool and link time-out manager;
Described downlink data processes thread pool, is configured with multiple descending thread, for a plurality of when receive that upper layer application issues During downlink data, give multiple descending threads by this plurality of downlink data equilibrium assignment, in each descending thread, call stipulations Control module and then call stipulations module downlink data is packaged according to rule schemata, and the downlink data after group bag is led to Cross communication interface and be sent to communication module;
Described upstream data processes thread pool, is configured with multiple up thread, for when receiving a plurality of of remote equipment transmission Upstream data, gives multiple up threads by this plurality of upstream data equilibrium assignment, calls stipulations control in each up thread Molding block and then call stipulations module upstream data is resolved according to rule schemata, and the upstream data after resolving passes through Application interface is sent to upper layer application;
Described link time-out manager, is configured with intervalometer thread pool, has multiple intervalometer thread in intervalometer thread pool, and one Individual intervalometer thread has a timer queue and a reactor, a timer queue has multiple intervalometer, one One link of timer management, each intervalometer can trigger a time out event, and the reactor in each thread is responsible for detecing Listen the time out event of each intervalometer, when, after intervalometer trigger event, reactor notifies at the event corresponding to each intervalometer Trigger event is processed by reason device.
It is applicable to the communications framework of many application scenarios the most as claimed in claim 4, it is characterised in that described downlink data processes Being configured with downlink data task queue in thread pool, described upstream data processes and is configured with upstream data task team in thread pool Row;
Described downlink data task queue, processes the downlink data in thread pool for each for placing described downlink data Descending thread therefrom reads corresponding downlink data;
Described upstream data task queue, processes the upstream data in thread pool for each for placing described upstream data Up line journey therefrom reads corresponding upstream data.
It is applicable to the communications framework of many application scenarios the most as claimed in claim 5, it is characterised in that described communication module also wraps Include transmission thread pool and before take the photograph device pond, described transmission thread pool includes sending thread management module and multiple transmission thread;
Described transmission thread management module, for when receiving a plurality of downlink data from communication control module, by a plurality of Downlink data equilibrium assignment processes to multiple transmission threads;Each sends thread, for obtaining the downlink data of correspondence, and From communication link management module, find the link of correspondence, and by this link, downlink data is sent to the far-end of correspondence and sets Standby.
It is applicable to the communications framework of many scenes the most as claimed in claim 6, it is characterised in that described communication module support RS232/RS485, USB and Ethernet multiple communication link mode.
8. the communication means being applicable to many application scenarios, it is characterised in that including:
S1, reads the stipulations configuration information of upper layer application from configuration file and configures dynamic load corresponding assembly according to stipulations;
S2, communication module sets up the link with each remote equipment according to the communication mode of each remote equipment;
S3, communication control module is received a plurality of downlink data that transmitted by application interface of upper layer application or receives multiple far-end Equipment is through communication module the upstream data that transmitted by communication interface;
S4, this plurality of downlink data is packaged according to rule schemata, and passes through communication interface and pass through by communication control module Communication module is sent to remote equipment;Or, a plurality of upstream data is resolved by communication control module according to rule schemata, and It is transferred to upper layer application by application reception.
It is applicable to the communication means of many application scenarios the most as claimed in claim 8, it is characterised in that described communication control module In be configured with scheduler module, described scheduler module is configured with multiple descending thread and multiple up thread, described scheduler module Multiple descending threads are given, by each descending thread by distribution by a plurality of downlink data equilibrium assignment that issues from upper layer application Downlink data is transferred to communication module by communication interface;The a plurality of upstream data that described scheduler module will be uploaded from remote equipment Equilibrium assignment gives multiple up threads, each up thread by application interface, the upstream data of distribution is transferred to upper strata Application.
It is applicable to the communication means of many application scenarios the most as claimed in claim 9, it is characterised in that in described communication module It is configured with multiple transmission thread, gives multiple transmission threads by a plurality of downlink data equilibrium assignment that transmits from communication control module, Sent thread by each and the downlink data of distribution is sent to by corresponding link the remote equipment of correspondence.
CN201610750425.3A 2016-08-29 2016-08-29 A kind of communications framework being applicable to many application scenarios and communication means Pending CN106131073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610750425.3A CN106131073A (en) 2016-08-29 2016-08-29 A kind of communications framework being applicable to many application scenarios and communication means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610750425.3A CN106131073A (en) 2016-08-29 2016-08-29 A kind of communications framework being applicable to many application scenarios and communication means

Publications (1)

Publication Number Publication Date
CN106131073A true CN106131073A (en) 2016-11-16

Family

ID=57272808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610750425.3A Pending CN106131073A (en) 2016-08-29 2016-08-29 A kind of communications framework being applicable to many application scenarios and communication means

Country Status (1)

Country Link
CN (1) CN106131073A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040528A (en) * 2017-03-31 2017-08-11 合肥民众亿兴软件开发有限公司 A kind of communications network system
CN107942753A (en) * 2017-12-07 2018-04-20 惠州市德赛西威汽车电子股份有限公司 The communication frame and the means of communication of the software of robot and terminal device
CN111147510A (en) * 2019-12-31 2020-05-12 中国兵器装备集团自动化研究所 Data acquisition system and method based on SOA reflection factory architecture

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040202128A1 (en) * 2000-11-24 2004-10-14 Torbjorn Hovmark Method for handover between heterogeneous communications networks
CN102855143A (en) * 2012-09-29 2013-01-02 南京国电南自轨道交通工程有限公司 Universal communication frame in SCADA (supervisory control and data acquisition) system
CN103391290A (en) * 2013-07-16 2013-11-13 沈阳时尚实业有限公司 Power consumer power utilization information acquisition system with protocol parsing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040202128A1 (en) * 2000-11-24 2004-10-14 Torbjorn Hovmark Method for handover between heterogeneous communications networks
CN102855143A (en) * 2012-09-29 2013-01-02 南京国电南自轨道交通工程有限公司 Universal communication frame in SCADA (supervisory control and data acquisition) system
CN103391290A (en) * 2013-07-16 2013-11-13 沈阳时尚实业有限公司 Power consumer power utilization information acquisition system with protocol parsing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040528A (en) * 2017-03-31 2017-08-11 合肥民众亿兴软件开发有限公司 A kind of communications network system
CN107942753A (en) * 2017-12-07 2018-04-20 惠州市德赛西威汽车电子股份有限公司 The communication frame and the means of communication of the software of robot and terminal device
CN111147510A (en) * 2019-12-31 2020-05-12 中国兵器装备集团自动化研究所 Data acquisition system and method based on SOA reflection factory architecture

Similar Documents

Publication Publication Date Title
CN104050029B (en) A kind of task scheduling system
CN105573129B (en) Cross-platform smart home mobile terminal based on Cordova
CN101923485B (en) JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN104572277B (en) A kind of thread flow control method and device
CN102185898B (en) Multi-protocol medical data sharing and service integration system and realization method
CN106131073A (en) A kind of communications framework being applicable to many application scenarios and communication means
CN101707399A (en) Method and system for acquiring electric energy information
CN111899501B (en) Remote control method for switch in distribution network automation master station substation
CN104317661A (en) Intersystem communication method and device of dual embedded systems
CN103514030A (en) Event collecting and reporting system and method of Android system
CN105607904B (en) The Quick Development Framework and its application method of communication software based on Linux platform
CN107391245A (en) A kind of software systems of multi core chip
CN108874623A (en) Distributed type assemblies method for monitoring performance, device, equipment, system and storage medium
CN103812953B (en) Communication interface system of micro-control unit and ARM (advanced RISC (reduced instruction-set computer) machines) processor
CN104038390A (en) Linux server cluster unified peripheral event monitoring method based on netlink
CN104123185A (en) Resource scheduling method, device and system
CN105635173B (en) Intelligent power distribution terminal communicates weak coupling modular system and method
CN105468682A (en) Event scheduling system
CN101321178A (en) Portal workflow engine system and its implementing method
CN1955990B (en) Flow executing method and system of integral telecommunication platform
WO2023185390A1 (en) Base station version downloading method, network management server, base station, device and medium
CN104636206B (en) The optimization method and device of a kind of systematic function
CN110430117A (en) A kind of high concurrent tunnel system and method connecting cloud network and user's Intranet
CN102694775A (en) Campus information machine terminal authentication method based on asynchronous communication mode
CN110636073A (en) Distributed asynchronous remote service arranging and calling technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116

RJ01 Rejection of invention patent application after publication