CN108365967A - Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter - Google Patents

Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter Download PDF

Info

Publication number
CN108365967A
CN108365967A CN201810002439.6A CN201810002439A CN108365967A CN 108365967 A CN108365967 A CN 108365967A CN 201810002439 A CN201810002439 A CN 201810002439A CN 108365967 A CN108365967 A CN 108365967A
Authority
CN
China
Prior art keywords
acquisition
port
forwarding
stipulations
configuration information
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
CN201810002439.6A
Other languages
Chinese (zh)
Other versions
CN108365967B (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.)
Shuifa Xingye Energy Zhuhai Co ltd
Zhuhai Shuifa Xingye New Materials Technology Co ltd
Original Assignee
Zhuhai Xingye New Mstar Technology 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 Zhuhai Xingye New Mstar Technology Ltd filed Critical Zhuhai Xingye New Mstar Technology Ltd
Priority to CN201810002439.6A priority Critical patent/CN108365967B/en
Publication of CN108365967A publication Critical patent/CN108365967A/en
Application granted granted Critical
Publication of CN108365967B publication Critical patent/CN108365967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a kind of method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter, wherein method includes:The configuration information for increasing acquisition/forwarding port newly is obtained, creates corresponding business processing thread for it, configuration information is made of data item message and data item identifier;According to the data item identifier and preconfigured stipulations parsing set of scripts acquisition stipulations parsing script corresponding with acquisition/forwarding port in configuration information, and the data item message in configuration information is parsed using stipulations parsing script;According to the configuration information of data item message and preconfigured mapping parameters config set acquisition forwarding/acquisition port corresponding with acquisition/forwarding port after parsing, and normalization and renormalization mapping table are generated, newly-increased communication between port and rear end is realized by normalization and renormalization mapping table.The present invention can switch stipulations according to the type self adaption of newly-increased port and parse script, save manpower, and efficiency is higher.

Description

Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter
Technical field
The invention belongs to field of communication technology more particularly to a kind of method of dynamic configuration communications parameter, system, terminal and Computer readable storage medium.
Background technology
For different subway lines, different application scene and specific business need, access subway dims in optical projection system The type of projection device and various collecting devices also can be different, used by different types of projection device and collecting device Widely different, the projection device and acquisition this requires subway light modulation optical projection system according to access of communication interface and communications protocol The change of the type of equipment, its PORT COM for being supported of real-time update and communications protocol.In the prior art, when access subway tune After the device type of light projection system changes, need to dim what optical projection system was supported to subway again by commissioning staff PORT COM and communications protocol are configured, and the switching mode of this PORT COM and communications protocol can expend a large amount of manpowers, effect Rate is relatively low.
Invention content
In view of this, the present invention provides a kind of method of dynamic configuration communications parameter, system, terminals and computer-readable Storage medium configures the subway PORT COM supported of light modulation optical projection system and communications protocol above by commissioning staff Mode can expend a large amount of manpowers, less efficient problem.
The first aspect of the present invention provides a kind of method of dynamic configuration communications parameter, including:
The configuration information for increasing acquisition/forwarding port newly is obtained, is that the acquisition/forwarding port creates corresponding business processing Thread, the configuration information are made of data item message and data item identifier;
Load preconfigured stipulations parsing set of scripts, according in the configuration information data item identifier and the stipulations It parses set of scripts and obtains stipulations parsing script corresponding with the acquisition/forwarding port, and script pair is parsed using the stipulations Data item message in the configuration information is parsed;Wherein, the stipulations parsing set of scripts includes various data item identifiers Corresponding stipulations parse script;
Load preconfigured mapping parameters config set, according to after parsing configuration information and the mapping parameters config set Obtain the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port;Wherein, the mapping parameters config set In be stored with mapping relations between each acquisition port and each forwarding port configuration information;
It is generated and is normalized according to the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition And renormalization mapping table, the acquisition/forwarding port is realized by the normalization and renormalization mapping table Communication between rear end.
Based on the above technical solution, the method further includes:
Judge whether the business processing thread corresponding to the acquisition/forwarding port exception occurs;
If there is exception, the business processing thread, industry of going forward side by side business thread abnormality alarming processing are closed.
Based on the above technical solution, parsing packet is carried out to the configuration information using stipulations parsing script It includes:
The acquisition/forwarding port is obtained from stipulations parsing script always calls instruction/overall response instruction together, according to institute It states stipulations script configuration requirement and generates the inquiry instruction collection to match with the acquisition/forwarding port, by the inquiry instruction collection In timing write instruction queue;
After receiving setting of the top level control to data pair, parses script by the stipulations and realize that data arrive setting The dynamic generation of lower control instruction, and will be in the lower control instruction write-in described instruction queue;
Return instruction is obtained from described instruction queue, parsing script by the stipulations solves the return instruction Analysis, obtains the data pair that the configuration information is included, and the data are to including at least acquisition/forwarding port numbering-acquisition/turn Send out numerical value.
Based on the above technical solution, data item message includes acquisition port in the configuration information of the acquisition port It is one or more in number, acquisition port type, collection point number, collection point information, acquisition vertex type and communications protocol; Data item message includes forwarding information point number, forwarding information vertex type, forwarding information in the configuration information of the forwarding port It is one or more in point description and communications protocol.
Second aspect of the present invention provides a kind of system of dynamic configuration communications parameter, including:
Acquiring unit, the configuration information for obtaining newly-increased acquisition/forwarding port are that the acquisition/forwarding port creates Corresponding business processing thread, the configuration information are made of data item message and data item identifier;
Stipulations resolution unit parses set of scripts, according to the number in the configuration information for loading preconfigured stipulations It obtains stipulations corresponding with the acquisition/forwarding port according to item mark and stipulations parsing set of scripts and parses script, and utilize The stipulations parsing script parses the data item message in the configuration information;Wherein, the stipulations parse set of scripts Script is parsed including the stipulations corresponding to various data item identifiers;
Map processing unit, for loading preconfigured mapping parameters config set, according to after parsing configuration information and The mapping parameters config set obtains the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port;Wherein, It is stored with acquisition port in the mapping parameters config set and forwards the mapping relations between port;
Communication processing unit, for matching according to forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition Confidence breath generates normalization and renormalization mapping table, and institute is realized by the normalization and renormalization mapping table State the communication of acquisition/between forwarding port and rear end.
Based on the above technical solution, further include business thread exception processing unit, be used for:
Judge whether the business processing thread corresponding to the acquisition/forwarding port exception occurs;
If there is exception, the business processing thread, industry of going forward side by side business thread abnormality alarming processing are closed.
Based on the above technical solution, the stipulations resolution unit is specifically used for:
The acquisition/forwarding port is obtained from stipulations parsing script always calls instruction/overall response instruction together, according to institute It states stipulations script configuration requirement and generates the inquiry instruction collection to match with the acquisition port, inquiry instruction collection timing is write Enter in instruction queue;
After receiving setting of the top level control to data pair, parses script by the stipulations and realize that data arrive setting The dynamic generation of lower control instruction, and will be in the lower control instruction write-in described instruction queue;
Return instruction is obtained from described instruction queue, parsing script by the stipulations solves the return instruction Analysis, obtains the data pair that the configuration information is included, and the data are to including at least acquisition/forwarding port numbering-acquisition/turn Send out numerical value.
Based on the above technical solution, data item message includes acquisition port in the configuration information of the acquisition port It is one or more in number, acquisition port type, collection point number, collection point information, acquisition vertex type and communications protocol; Data item message includes forwarding information point number, forwarding information vertex type, forwarding information in the configuration information of the forwarding port It is one or more in point description and communications protocol.
The third aspect of the present invention provide a kind of terminal of dynamic configuration communications parameter, including memory, processor with And it is stored in the computer program that can be run in the memory and on the processor, wherein the processor executes institute It is realized when stating computer program such as the step of any one of above-mentioned first aspect the method.
The fourth aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited Contain computer program, wherein realized as described in above-mentioned any one of first aspect when the computer program is executed by processor The step of method.
The beneficial effects of the invention are as follows:
The present invention due to being pre-configured with stipulations parsing set of scripts and mapping parameters config set, subsequently have newly-increased acquisition/ When forwarding port, it is that the acquisition/forwarding port creates corresponding business processing thread, is obtained by the business processing thread The configuration information of the acquisition/forwarding port parses script according to the data item identifier in the configuration information from the stipulations Collection obtains corresponding stipulations parsing script and is parsed to the data item message in the configuration information;Further according to the number after parsing The configuration of forwarding/acquisition port corresponding with the acquisition/forwarding port is obtained according to item message and the mapping parameters config set Information;It is finally generated and is normalized according to the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition And renormalization mapping table, the acquisition/forwarding port is realized by the normalization and renormalization mapping table Communication between rear end, so as to parse script according to the type self adaption switching stipulations for increasing port newly, for its configuration pair The communications parameter answered saves human cost, and efficiency is higher to realize the communication between the newly-increased port and rear end.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the topological diagram of the system of dynamic configuration communications parameter provided in an embodiment of the present invention when in use;
Fig. 2 is the implementation process schematic diagram of the method for dynamic configuration communications parameter provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the system of dynamic configuration communications parameter provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the terminal of dynamic configuration communications parameter provided in an embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 is the topological diagram of system/terminal of dynamic configuration communications parameter provided in an embodiment of the present invention when in use.For Part related to the present embodiment is illustrate only convenient for explanation.
Shown in Figure 1, which includes third party's interface, intelligent terminal, subordinate's Mining and Control Device, acquisition module, moves System/terminal of state configuration communications parameter, Terminal Server Client, forwarding module, higher level adopt control, background service system, wherein described Acquisition module is communicated to connect with third party's interface network, the acquisition module and subordinate's Mining and Control Device and the intelligence Terminal serial communication connects;The forwarding module is adopted control serial ports/network interface with the higher level and is communicated to connect, the forwarding module and institute State background service system network communication connection;The acquisition module, the forwarding module and the Terminal Server Client are and institute State system/terminal communication connection of dynamic configuration communications parameter.
Wherein, the acquisition module includes acquiring intelligent terminal, third party's interface and subordinate with user respectively to adopt control pair The acquisition port answered, for acquiring various types of data;System/terminal of the dynamic configuration communications parameter is used for according to each Port type and preconfigured stipulations parsing set of scripts, mapping parameters config set are acquired, respectively each acquisition port configures phase The communications parameter answered;The forwarding module includes multiple forwarding ports, for being configured the multiple acquisition according to communications parameter Port processing to data be uploaded to the higher level adopt control or the background server.The Terminal Server Client is used to be described dynamic System/terminal setting stipulations that state configures communications parameter parse set of scripts and mapping parameters config set.
Based on topological diagram shown in FIG. 1, below in conjunction with specific embodiment to dynamic configuration provided in an embodiment of the present invention The method of communications parameter is described in detail:
It is shown in Fig. 2 Fig. 2 shows the implementation process of the method for dynamic configuration communications parameter provided in an embodiment of the present invention In embodiment, the executive agent of flow is system/terminal of the dynamic configuration communications parameter in Fig. 1.The implementation process of this method Details are as follows:
Step S201 obtains the configuration information for increasing acquisition/forwarding port newly, is that the acquisition/forwarding port creates accordingly Business processing thread, the configuration information is made of data item message and data item identifier.
The type of the acquisition port includes but not limited to the communication interfaces such as network interface, serial ports, Bluetooth architecture, and the dynamic is matched Set system/terminal of communications parameter load port can configure automatically in the process of running, and identification increases newly or newer acquisition port Configuration, create corresponding business processing thread for it.
The configuration information of the acquisition port includes acquisition port numbering, acquisition port type, collection point number, collection point It is one or more in information, acquisition vertex type and communications protocol.The configuration information of the forwarding port includes forwarding information It is one or more in point number, forwarding information vertex type, the description of forwarding information point.
Wherein, the configuration information got is made of data item message and data item identifier, the data item message It is made of heading, data field and message trailer.
Step S202 loads preconfigured stipulations parsing set of scripts, according in configuration information data item message and institute It states stipulations parsing set of scripts and obtains stipulations parsing script corresponding with the acquisition/forwarding port, and parsed using the stipulations Script parses the data item message in the configuration information;Wherein, the stipulations parsing set of scripts includes various data The corresponding stipulations of item mark parse script.
System/terminal of the dynamic configuration communications parameter is after the configuration information for getting the acquisition port, first The data item identifier for extracting the configuration information obtains the data item description of the configuration information by the data item identifier Object.
The stipulations parsing set of scripts is, the dynamic configuration communications parameter preconfigured using the Terminal Server Client The administrative staff of system/terminal can be increased newly at any time by the Terminal Server Client, stipulations parsing script is deleted or modified Stipulations included in collection parse script, are established between the corresponding data item description object of the stipulations parsing script related Connection relationship.System/terminal of the dynamic configuration communications parameter after getting the data item description object of the configuration information, It can be parsed from the stipulations according to the data item description object and find out corresponding stipulations parsing script in set of scripts, so The data field in the configuration information is parsed using the stipulations parsing script inquired afterwards.Wherein, the utilization The stipulations parsing script carries out parsing to the configuration information and specifically includes:
The acquisition/forwarding port is obtained from stipulations parsing script always calls instruction/overall response instruction together, according to institute It states stipulations script configuration requirement and generates the inquiry instruction collection to match with the acquisition/forwarding port, by the inquiry instruction collection In timing write instruction queue;
After receiving setting of the top level control to data pair, parses script by the stipulations and realize that data arrive setting The dynamic generation of lower control instruction, and will be in the lower control instruction write-in described instruction queue;
Return instruction is obtained from described instruction queue, parsing script by the stipulations solves the return instruction Analysis, obtains the data pair that the configuration information is included, and the data are to including at least acquisition/forwarding port numbering-acquisition/turn Send out numerical value.Wherein, the acquisition/forwarding data value includes but not limited to acquisition/forwarding point number, acquisition/forwarding vertex type etc..
Step S203 loads preconfigured mapping parameters config set, according to after parsing configuration information and the mapping Parameter configuration collection obtains the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port;Wherein, the mapping The centrally stored mapping relations having between each acquisition port and each forwarding port configuration information of parameter configuration.
The mapping parameters config set is, the dynamic configuration communications parameter preconfigured using the Terminal Server Client The administrative staff of system/terminal can be increased newly at any time by the Terminal Server Client, mapping parameters configuration is deleted or modified Map information included in collection.
The data of configuration information of the system/terminal of the dynamic configuration communications parameter after getting parsing, can to rear According to the data to traversing the mapping parameters config set, to search with the data to corresponding data pair, find out Data are to being the configuration information with the forwarding corresponding to the acquisition/forwarding port/acquisition port.
Step S204 gives birth to according to the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition At normalization and renormalization mapping table, by it is described normalization and renormalization mapping table realize it is described acquisition/ Forward the communication between port and rear end.
System/terminal of the dynamic configuration communications parameter get it is corresponding with the acquisition/forwarding port forwarding/ After the configuration information for acquiring port, you can generate normalized mapping relation table according to the configuration information of the two and renormalization maps Relation table, so as to the dynamic configuration communications parameter system/SS later according to the normalized mapping relation table and described Renormalization mapping table completes collection terminal to the communication between rear end.For example, in a specific implementation example, some acquisition The normalized mapping relationship of port is:Keyword A<Port numbering is acquired, collection point number acquires vertex type>, content B<Forwarding Information point is numbered, forwarding information vertex type, the description of forwarding information point>;Container Map<A, B>;Renormalization mapping relations are:It closes Key word A<Forwarding information point is numbered, forwarding information vertex type>, content B<Acquire port numbering, collection point number, collection point class Type, collection point description>;Container Map<A, B>.
It should be noted that in the present embodiment, each dynamic load increases newly or the configuration of modified acquisition port, needs Normalization and renormalization mapping table are regenerated, and requires forwarding client information point number in its this forwarding port overall situation Uniquely.The normalized mapping relation table of the business thread cache maintenance itself of each acquisition port, forwarding port renormalization reflect Penetrate business thread cache maintenance of the relation table by forwarding port.
Preferably, in the present embodiment, the method for the dynamic configuration communications parameter further includes:
Judge whether the business processing thread corresponding to the acquisition/forwarding port exception occurs;
If there is exception, the business processing thread, industry of going forward side by side business thread abnormality alarming processing are closed.
In the present embodiment, system/terminal of the dynamic communication parameter configuration can be to newly-increased or modification port configuration Business thread does catch of exception, when capturing business thread exception, can be related to the business thread, which is obtained employment and is engaged in It is kicked out of in queue, while corresponding abnormality alarming can be carried out.
Above as can be seen that the method for dynamic configuration communications parameter provided in this embodiment is due to being pre-configured with stipulations parsing Set of scripts and mapping parameters config set are the acquisition/forwarding port establishment pair subsequently when there is newly-increased acquisition/forwarding port The business processing thread answered obtains the configuration information of the acquisition/forwarding port by the business processing thread, according to described Data item identifier in configuration information obtains corresponding stipulations parsing script from stipulations parsing set of scripts and matches confidence to described Data item message in breath is parsed;Further according to after parsing configuration information and the mapping parameters config set obtain with it is described The configuration information of the corresponding forwarding in acquisition/forwarding port/acquisition port;Finally according to acquisition and the acquisition/forwarding port The configuration information of corresponding forwarding/acquisition port generates normalization and renormalization mapping table, by the normalization and Renormalization mapping table realizes the communication of the acquisition/between forwarding port and rear end, so as to according to increasing port newly Type self adaption switching stipulations parse script, corresponding communications parameter is configured for it, to realize between the port and rear end Communication, save human cost, and efficiency is higher.
Fig. 3 is the structural schematic diagram of the system of dynamic configuration communications parameter provided in an embodiment of the present invention.For the ease of saying It is bright to illustrate only part related to the present embodiment.
It is shown in Figure 3, the system 3 of dynamic configuration communications parameter provided in this embodiment, including:
Acquiring unit 31, the configuration information for obtaining newly-increased acquisition/forwarding port create corresponding for the acquisition port Business processing thread, the configuration information is made of data item message and data item identifier;
Stipulations resolution unit 32 parses set of scripts, according in the configuration information for loading preconfigured stipulations Data item identifier and stipulations parsing set of scripts obtain stipulations corresponding with the acquisition/forwarding port and parse script, and profit The configuration information is parsed with stipulations parsing script;Wherein, the stipulations parsing set of scripts includes various data The corresponding stipulations of item mark parse script;
Map processing unit 33, for loading preconfigured mapping parameters config set, according to the configuration information after parsing The configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port is obtained with the mapping parameters config set;Its In, each acquisition port and each mapping relations forwarded between port configuration information are stored in the mapping parameters config set;
Communication processing unit 34, for according to forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition Configuration information generates normalization and renormalization mapping table, is realized by the normalization and renormalization mapping table The communication of the acquisition/between forwarding port and rear end.
Optionally, the system 3 of the dynamic configuration communications parameter further includes business thread exception processing unit 35, is used for:
Judge whether the business processing thread corresponding to the acquisition/forwarding port exception occurs;
If there is exception, the business processing thread, industry of going forward side by side business thread abnormality alarming processing are closed.
Optionally, the stipulations resolution unit 32 is specifically used for:
The acquisition/forwarding port is obtained from stipulations parsing script always calls instruction/overall response instruction together, according to institute It states stipulations script configuration requirement and generates the inquiry instruction collection to match with the acquisition/forwarding port, by the inquiry instruction collection In timing write instruction queue;
After receiving setting of the top level control to data pair, parses script by the stipulations and realize that data arrive setting The dynamic generation of lower control instruction, and will be in the lower control instruction write-in described instruction queue;
Return instruction is obtained from described instruction queue, parsing script by the stipulations solves the return instruction Analysis, obtains the data pair that the configuration information is included, and the data are to including at least acquisition/forwarding port numbering-acquisition/turn Send out numerical value.
Optionally, data item message includes acquisition port numbering, acquisition port class in the configuration information of the acquisition port It is one or more in type, collection point number, collection point information and acquisition vertex type;In the configuration information of the forwarding port Data item message includes one or more in forwarding information point number, forwarding information vertex type, the description of forwarding information point.
It should be noted that each unit of above-mentioned apparatus provided in an embodiment of the present invention, due to real with the method for the present invention It applies example and is based on same design, the technique effect brought is identical as the method for the present invention embodiment, and particular content can be found in the present invention Narration in embodiment of the method, details are not described herein again.
It can therefore be seen that the system of dynamic configuration communications parameter provided in this embodiment equally can be according to newly-increased acquisition The type self adaption switching stipulations of port parse script, and corresponding communications parameter is configured for it, with realize the acquisition port and Communication between rear end saves human cost, and efficiency is higher.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 4 is the schematic diagram of the terminal of dynamic configuration communications parameter provided in an embodiment of the present invention.As shown in figure 4, the reality The terminal 4 for applying the dynamic configuration communications parameter of example includes:It processor 40, memory 41 and is stored in the memory 41 simultaneously The computer program 42 that can be run on the processor 40.The processor 40 is realized when executing the computer program 42 State the step in each embodiment of the method, such as step S201 to S204 shown in Fig. 2.Alternatively, the processor 40 executes institute Realize the function of each unit in above-mentioned each device embodiment when stating computer program 42, such as unit 31 shown in Fig. 3 is to unit 34 Function.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the terminal 4 of the dynamic configuration communications parameter is described.For example, the computer Program 42 can be divided into acquisition port information acquiring unit 31, stipulations resolution unit 32, map processing unit 33 and lead to Processing unit 34 is interrogated, each unit concrete function is as follows:
Acquiring unit 31, the configuration information for obtaining newly-increased acquisition/forwarding port create corresponding for the acquisition port Business processing thread, the configuration information is made of data item message and data item identifier;
Stipulations resolution unit 32 parses set of scripts, according in the configuration information for loading preconfigured stipulations Data item identifier and stipulations parsing set of scripts obtain stipulations corresponding with the acquisition/forwarding port and parse script, and profit The configuration information is parsed with stipulations parsing script;Wherein, the stipulations parsing set of scripts includes various data The corresponding stipulations of item mark parse script;
Map processing unit 33, for loading preconfigured mapping parameters config set, according to the configuration information after parsing The configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port is obtained with the mapping parameters config set;Its In, each acquisition port and each mapping relations forwarded between port configuration information are stored in the mapping parameters config set;
Communication processing unit 34, for according to forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition Configuration information generates normalization and renormalization mapping table, is realized by the normalization and renormalization mapping table The communication of the acquisition/between forwarding port and rear end.
The terminal 4 of the dynamic configuration communications parameter can be desktop PC, notebook, palm PC and high in the clouds clothes The computing devices such as business device.The terminal may include, but be not limited only to, processor 40, memory 41.Those skilled in the art can be with Understand, Fig. 4 is only the example of device, does not constitute the restriction to the terminal 4 of dynamic configuration communications parameter, may include than figure Show more or fewer components, either combine certain components or different components, such as the terminal can also include input Output equipment, network access equipment, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of described device, such as the hard disk or memory of device.It is described to deposit Reservoir 41 can also be the External memory equipment of described device, such as the plug-in type hard disk being equipped in described device, intelligent storage Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc.. Further, the memory 41 can also both include described device internal storage unit and also including External memory equipment.Institute Memory 41 is stated for storing other programs and data needed for the computer program and the terminal.The memory 41 It can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include:Can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to legislation in jurisdiction and the requirement of patent practice, Such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium is including being not electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of dynamic configuration communications parameter, which is characterized in that including:
The configuration information for increasing acquisition/forwarding port newly is obtained, is that the acquisition/forwarding port creates corresponding business processing line Journey, the configuration information are made of data item message and data item identifier;
Load preconfigured stipulations parsing set of scripts, according in the configuration information data item identifier and the stipulations parse Set of scripts obtains stipulations corresponding with the acquisition/forwarding port and parses script, and parses script to described using the stipulations Data item message in configuration information is parsed;Wherein, the stipulations parsing set of scripts includes that various data item identifier institutes are right The stipulations parsing script answered;
Load preconfigured mapping parameters config set, according to after parsing configuration information and the mapping parameters config set obtain The configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port;Wherein, it is deposited in the mapping parameters config set Contain the mapping relations between each acquisition port and each forwarding port configuration information;
According to the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition generation normalization and instead Normalized mapping relation table realizes the acquisition/forwarding port with after by the normalization and renormalization mapping table Communication between end.
2. the method for dynamic configuration communications parameter as described in claim 1, which is characterized in that the method further includes:
Judge whether the business processing thread corresponding to the acquisition/forwarding port exception occurs;
If there is exception, the business processing thread, industry of going forward side by side business thread abnormality alarming processing are closed.
3. the method for dynamic configuration communications parameter as described in claim 1, which is characterized in that parse script using the stipulations Carrying out parsing to the configuration information includes:
The acquisition/forwarding port is obtained from stipulations parsing script always calls instruction/overall response instruction together, according to the rule About script configuration requirement generates the inquiry instruction collection to match with the acquisition/forwarding port, by inquiry instruction collection timing In write instruction queue;
After receiving setting of the top level control to data pair, parses script by the stipulations and realize that data arrive lower control to setting The dynamic generation of instruction, and will be in the lower control instruction write-in described instruction queue;
Return instruction is obtained from described instruction queue, parsing script by the stipulations parses the return instruction, The data pair that the configuration information is included are obtained, the data are to including at least acquisition/forwarding port numbering-acquisition/forwarding Numerical value.
4. the method for dynamic configuration communications parameter as described in claim 1, which is characterized in that match confidence in the acquisition port Data item message in breath includes acquisition port numbering, acquisition port type, collection point number, collection point information collection vertex type And it is one or more in communications protocol;Data item message in the configuration information of the forwarding port includes forwarding information point It is one or more in number, forwarding information vertex type, the description of forwarding information point and communications protocol.
5. a kind of system of dynamic configuration communications parameter, which is characterized in that including:
Acquiring unit, the configuration information for obtaining newly-increased acquisition/forwarding port are that the acquisition/forwarding port creates accordingly Business processing thread, the configuration information is made of data item message and data item identifier;
Stipulations resolution unit parses set of scripts, according to the data item in the configuration information for loading preconfigured stipulations Mark and stipulations parsing set of scripts obtain stipulations corresponding with the acquisition/forwarding port and parse script, and described in utilization Stipulations parsing script parses the data item message in the configuration information;Wherein, the stipulations parsing set of scripts includes Stipulations corresponding to various data item identifiers parse script;
Map processing unit, for loading preconfigured mapping parameters config set, according to configuration information after parsing and described Mapping parameters config set obtains the configuration information of forwarding/acquisition port corresponding with the acquisition/forwarding port;Wherein, described It is stored with acquisition port in mapping parameters config set and forwards the mapping relations between port;
Communication processing unit, for matching confidence according to forwarding/acquisition port corresponding with the acquisition/forwarding port of acquisition Breath generates normalization and renormalization mapping table, by being adopted described in the normalization and the realization of renormalization mapping table The communication of collection/between forwarding port and rear end.
6. the system of dynamic configuration communications parameter as claimed in claim 5, which is characterized in that further include business thread exception Unit is managed, is used for:
Judge whether the business processing thread corresponding to the acquisition/forwarding port exception occurs;
If there is exception, the business processing thread, industry of going forward side by side business thread abnormality alarming processing are closed.
7. the system of dynamic configuration communications parameter as claimed in claim 5, which is characterized in that the stipulations resolution unit is specific For:
The acquisition/forwarding port is obtained from stipulations parsing script always calls instruction/overall response instruction together, according to the rule About script configuration requirement generates the inquiry instruction collection to match with the acquisition/forwarding port, by inquiry instruction collection timing In write instruction queue;
After receiving setting of the top level control to data pair, parses script by the stipulations and realize that data arrive lower control to setting The dynamic generation of instruction, and will be in the lower control instruction write-in described instruction queue;
Return instruction is obtained from described instruction queue, parsing script by the stipulations parses the return instruction, The data pair that the configuration information is included are obtained, the data are to including at least acquisition/forwarding port numbering-acquisition/forwarding Numerical value.
8. the system of dynamic configuration communications parameter as claimed in claim 5, which is characterized in that match confidence in the acquisition port Data item message in breath includes acquisition port numbering, acquisition port type, collection point number, collection point information, collection point class It is one or more in type and communications protocol;Data item message in the configuration information of the forwarding port includes forwarding information It is one or more in point number, forwarding information vertex type, the description of forwarding information point and communications protocol.
9. a kind of terminal of dynamic configuration communications parameter, including memory, processor and it is stored in the memory and can The computer program run on the processor, which is characterized in that the processor is realized when executing the computer program Such as the step of any one of Claims 1-4 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as Claims 1-4 of realization the method.
CN201810002439.6A 2018-01-02 2018-01-02 Method, system, terminal and computer readable storage medium for dynamically configuring communication parameters Active CN108365967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810002439.6A CN108365967B (en) 2018-01-02 2018-01-02 Method, system, terminal and computer readable storage medium for dynamically configuring communication parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002439.6A CN108365967B (en) 2018-01-02 2018-01-02 Method, system, terminal and computer readable storage medium for dynamically configuring communication parameters

Publications (2)

Publication Number Publication Date
CN108365967A true CN108365967A (en) 2018-08-03
CN108365967B CN108365967B (en) 2021-08-06

Family

ID=63010518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002439.6A Active CN108365967B (en) 2018-01-02 2018-01-02 Method, system, terminal and computer readable storage medium for dynamically configuring communication parameters

Country Status (1)

Country Link
CN (1) CN108365967B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450824A (en) * 2018-11-14 2019-03-08 盛科网络(苏州)有限公司 A kind of method and interchanger of interchanger configuration MAP
CN109597652A (en) * 2018-10-31 2019-04-09 益和电气集团股份有限公司 Specification analytic method, system, computer readable storage medium and communication manager
CN109656475A (en) * 2018-12-03 2019-04-19 郑州云海信息技术有限公司 A kind of method, apparatus that cache is automatically closed, terminal and storage medium
CN110347735A (en) * 2019-06-17 2019-10-18 平安普惠企业管理有限公司 The data forwarding of configurationization mends processing method, device and readable storage medium storing program for executing extremely
CN111431978A (en) * 2020-03-17 2020-07-17 北京三维天地科技股份有限公司 Automatic collection system of instrument
CN111835786A (en) * 2020-07-23 2020-10-27 杨承 System for data acquisition and equipment control of multi-protocol equipment and implementation method
CN111988166A (en) * 2020-07-15 2020-11-24 杭州海康威视数字技术股份有限公司 WIFI configuration method and device, electronic equipment and readable storage medium
WO2021232887A1 (en) * 2020-05-22 2021-11-25 中兴通讯股份有限公司 Method for acquiring hpack dynamic table, and communication device, core network system and storage medium
CN114253223A (en) * 2020-09-25 2022-03-29 深圳市英维克信息技术有限公司 Controller port data processing method, device, equipment and storage medium
CN114500648A (en) * 2022-01-17 2022-05-13 徐工汉云技术股份有限公司 Tower crane data multi-form conversion forwarding method and system
CN114745448A (en) * 2022-03-18 2022-07-12 南京南瑞信息通信科技有限公司 Multichannel protocol adaptation processing method, system and device
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070118570A1 (en) * 2003-05-20 2007-05-24 Yufang Wang Method and apparatus for data configuration in communication device
CN101778133A (en) * 2010-01-13 2010-07-14 山东电力集团公司 Communication protocol adapter-based integrated terminal access system structure
CN104270273A (en) * 2014-09-30 2015-01-07 许继电气股份有限公司 Self-configuring communication manager
CN104578418A (en) * 2015-01-06 2015-04-29 航天科工深圳(集团)有限公司 Configuration method and system of automatic power distribution equipment based on 101 protocols, and equipment
CN105429827A (en) * 2016-01-13 2016-03-23 秦嘉喜 Integrated protection system communication protocol analysis test apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070118570A1 (en) * 2003-05-20 2007-05-24 Yufang Wang Method and apparatus for data configuration in communication device
CN101778133A (en) * 2010-01-13 2010-07-14 山东电力集团公司 Communication protocol adapter-based integrated terminal access system structure
CN104270273A (en) * 2014-09-30 2015-01-07 许继电气股份有限公司 Self-configuring communication manager
CN104578418A (en) * 2015-01-06 2015-04-29 航天科工深圳(集团)有限公司 Configuration method and system of automatic power distribution equipment based on 101 protocols, and equipment
CN105429827A (en) * 2016-01-13 2016-03-23 秦嘉喜 Integrated protection system communication protocol analysis test apparatus

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597652A (en) * 2018-10-31 2019-04-09 益和电气集团股份有限公司 Specification analytic method, system, computer readable storage medium and communication manager
CN109597652B (en) * 2018-10-31 2021-10-08 青岛益和电气集团股份有限公司 Protocol analysis method, system, computer readable storage medium and communication manager
CN109450824B (en) * 2018-11-14 2021-05-14 盛科网络(苏州)有限公司 Method for configuring MAP by switch and switch
CN109450824A (en) * 2018-11-14 2019-03-08 盛科网络(苏州)有限公司 A kind of method and interchanger of interchanger configuration MAP
CN109656475A (en) * 2018-12-03 2019-04-19 郑州云海信息技术有限公司 A kind of method, apparatus that cache is automatically closed, terminal and storage medium
WO2020253045A1 (en) * 2019-06-17 2020-12-24 平安普惠企业管理有限公司 Configured supplementary processing method and device for data of which forwarding has abnormality, and readable storage medium
CN110347735A (en) * 2019-06-17 2019-10-18 平安普惠企业管理有限公司 The data forwarding of configurationization mends processing method, device and readable storage medium storing program for executing extremely
CN111431978B (en) * 2020-03-17 2020-12-25 北京三维天地科技股份有限公司 Automatic collection system of instrument
CN111431978A (en) * 2020-03-17 2020-07-17 北京三维天地科技股份有限公司 Automatic collection system of instrument
WO2021232887A1 (en) * 2020-05-22 2021-11-25 中兴通讯股份有限公司 Method for acquiring hpack dynamic table, and communication device, core network system and storage medium
CN111988166A (en) * 2020-07-15 2020-11-24 杭州海康威视数字技术股份有限公司 WIFI configuration method and device, electronic equipment and readable storage medium
CN111835786A (en) * 2020-07-23 2020-10-27 杨承 System for data acquisition and equipment control of multi-protocol equipment and implementation method
CN114253223A (en) * 2020-09-25 2022-03-29 深圳市英维克信息技术有限公司 Controller port data processing method, device, equipment and storage medium
CN114500648A (en) * 2022-01-17 2022-05-13 徐工汉云技术股份有限公司 Tower crane data multi-form conversion forwarding method and system
CN114745448A (en) * 2022-03-18 2022-07-12 南京南瑞信息通信科技有限公司 Multichannel protocol adaptation processing method, system and device
CN114745448B (en) * 2022-03-18 2024-05-24 南京南瑞信息通信科技有限公司 Multi-channel protocol adaptation processing method, system and device
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment
CN117369906B (en) * 2023-12-07 2024-02-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108365967B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN108365967A (en) Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter
CN110247811A (en) A kind of alarm method and relevant apparatus of internet of things equipment
CN110019651A (en) A kind of streaming regulation engine and business data processing method
CN110365536A (en) A kind of the fault cues method and relevant apparatus of internet of things equipment
CN108021710A (en) A kind of dynamic socket conversion method, device, terminal device and storage medium
CN109447276B (en) Machine learning system, equipment and application method
CN110245029A (en) A kind of data processing method, device, storage medium and server
CN108243407A (en) A kind of method and terminal device of multiple wireless module device network interface managements
CN109491857A (en) A kind of data monitoring method, system and the terminal device of rule-based engine
US11469951B2 (en) Network-configuration-information generation method and communication device
CN108062243A (en) Generation method, task executing method and the device of executive plan
CN109151025A (en) Load-balancing method, device, computer storage medium and equipment based on URL
CN104270434A (en) Service state monitoring system based on cloud service
CN107193917A (en) Whole station CONFIG.SYS lossless data update method based on IID
CN108416568A (en) Government affairs business data processing method, device and terminal device
CN104702638A (en) Event subscribing and dispatching method and device
CN104765596A (en) Request handling method and device
CN106815128A (en) Log-output method and device, electronic equipment
CN109617713A (en) The implementation method and server of resource dissemination
CN109766245A (en) A kind of method and relevant apparatus of shared terminal resource
CN108806071A (en) Self-service dispenser management method, self-service dispenser managing device and electronic equipment
CN108038171A (en) Method for writing data, device and data server
CN110399534B (en) Terminal performance report generation method, device, equipment and storage medium
CN110209722A (en) A kind of data-interface for data exchange
CN109784030A (en) A kind of method and system of CA certificate management

Legal Events

Date Code Title Description
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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221129

Address after: 519000 room 111, 1st floor, No.6 workshop, No.9 Jinzhu Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee after: ZHUHAI SINGYES NEW MATERIALS TECHNOLOGY Co.,Ltd.

Patentee after: Shuifa Xingye energy (Zhuhai) Co.,Ltd.

Address before: 519000 room 111, 1st floor, No.6 workshop, No.9 Jinzhu Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI SINGYES NEW MATERIALS TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address

Address after: 519000 room 111, 1st floor, No.6 workshop, No.9 Jinzhu Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Shuifa Xingye New Materials Technology Co.,Ltd.

Country or region after: China

Patentee after: Shuifa Xingye energy (Zhuhai) Co.,Ltd.

Address before: 519000 room 111, 1st floor, No.6 workshop, No.9 Jinzhu Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI SINGYES NEW MATERIALS TECHNOLOGY Co.,Ltd.

Country or region before: China

Patentee before: Shuifa Xingye energy (Zhuhai) Co.,Ltd.