CN109002405A - A kind of industrial field bus virtualization system, method and apparatus - Google Patents

A kind of industrial field bus virtualization system, method and apparatus Download PDF

Info

Publication number
CN109002405A
CN109002405A CN201810588808.4A CN201810588808A CN109002405A CN 109002405 A CN109002405 A CN 109002405A CN 201810588808 A CN201810588808 A CN 201810588808A CN 109002405 A CN109002405 A CN 109002405A
Authority
CN
China
Prior art keywords
business
module
virtual
slave station
station equipment
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
CN201810588808.4A
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201810588808.4A priority Critical patent/CN109002405A/en
Publication of CN109002405A publication Critical patent/CN109002405A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • G06F13/128Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine for dedicated transfers to a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/26Systems using multi-frequency codes
    • H04L27/2601Multicarrier modulation systems
    • H04L27/2626Arrangements specific to the transmitter only
    • H04L27/2627Modulators

Abstract

The invention discloses a kind of industrial field bus virtualization systems, method and apparatus, multiple business modules are set in master device, each business module is correspondingly arranged a virtual bus, when needing processing business data, the business datum that at least one business module generates is subjected to multi-carrier modulation and obtains modulated signal, then the logical address for the virtual module for being capable of handling such business is determined according to the type of service of business datum, and modulated signal is issued to the slave station equipment of the virtual module comprising determining by the corresponding virtual bus of business module, so that slave station equipment is after demodulating business datum in the modulated signal received, business datum is distributed to the corresponding virtual module of the logical address determined, by the virtual module processing business data.

Description

A kind of industrial field bus virtualization system, method and apparatus
Technical field
The present invention relates to industrial field bus technical field more particularly to a kind of industrial field bus virtualization systems, side Method and device.
Background technique
, can be more and more for the business demand of industrial bus with the development of industry internet, how to utilize existing The market demand that industrial bus meets rapid growth is that industrial bus develops the major issue faced.And bus virtualizes skill The introducing of art not only can solve the rapid deployment of fieldbus business demand, moreover it is possible to which cost is saved from certain scale reduces energy Source consumption.The development of software definition PLC and software definition DCS are but also bus virtualization technology will necessarily be by more and more Attention and application.
What existing virtual bus technology mostly used be based on equipment inside a plurality of physical bus using controller or Person's arbiter carries out virtualization process, and this virtualization bussing technique is limited to existing physical bus and realizes, existing for industry If field can obviously increase the maintenance cost etc. at scene using a plurality of physical bus, and need list for different physical bus Solely design controller or arbiter, and do not have versatility.
Therefore, how to realize that the individual transmission of multiple business data is technology urgently to be resolved based on a physical bus One of problem.
Summary of the invention
The embodiment of the present invention provides a kind of industrial field bus virtualization system, method and apparatus, to be based on an object Manage the individual transmission that bus realizes multiple business data.
In a first aspect, the embodiment of the present invention provides a kind of industrial field bus virtualization system, comprising: master device and extremely Lack a slave station equipment, is provided at least two virtual modules in the slave station equipment;The master device passes through a physics Bus is connected at least one described slave station equipment respectively, in which: the master device includes at least two business modules, often One business module corresponds to a virtual bus, and the division rule of the business module based on the master device is total by the physics Line virtually turns to the virtual bus of respective numbers;
The master device, for needing the virtual module in slave station equipment to handle the generation of at least one business module When business datum, multi-carrier modulation is carried out to the business datum and obtains the modulated signal of business datum;And according to the business The type of service of data determines the logical address of the virtual module in the slave station equipment for handling the business datum;By institute It states modulated signal and the corresponding virtual module of logical address comprising determining is sent to by the corresponding virtual bus of business module Slave station equipment;
The slave station equipment, for after demodulating the business datum in the modulated signal received, by the industry Business data distribution gives the corresponding virtual module of logical address determined, handles the business datum by the virtual module.
Multi-carrier modulation, each business are carried out by the business datum generated at least one business module in master device Module corresponds to a virtual bus, based on the modulation principle of multi-carrier modulation itself, the modulation of available various businesses data Signal, and slave station equipment is sent to by the corresponding virtual bus of business module;In addition, by being arranged in slave station equipment At least two virtual modules, can use what the various businesses module that receives of virtual module processing in slave station equipment generated Business datum, not only realizes the virtualization of physical bus, while improving the treatment effeciency of business datum.
Preferably, the master device, specifically for the media interviews according to type of service, logical address and slave station equipment Control MAC Address three between corresponding relationship, determine the corresponding logical address of the type of service of the business datum be for Handle the logical address of the virtual module in the slave station equipment of the business datum.
By the way that above-mentioned corresponding relationship is arranged, it is ensured that modulation intelligence is accurately issued to the virtual module of slave station equipment.
Preferably, the virtual module has at least one logical address;The logical address is by domain identity ID, mould Block identity ID and submodule identity ID is constituted;And the logical address meets at least one following configuration rule: Different virtual bus correspond to that different domain ID, the module I D of virtual module in same slave station equipment be identical, same slave station equipment In virtual module different, for handling same type of service the virtual modules of submodule ID domain ID it is identical.
It is mentioned by configuring multiple logical addresses to virtual module so that virtual module is capable of handling more business datums The high traffic handing capacity of system.
Optionally, the business module includes real time business module and non-real-time service module;And the slave station equipment Including the real-time virtual module for handling real time business and the non real-time virtual module for handling non-real-time service;The industry Data of being engaged in include real time traffic data and non-real-time service data;And the business datum includes real time traffic data and non-reality When business datum.
Preferably, the slave station equipment is provided with shared buffer, and is each configured with solely for each virtual module Vertical buffer area;And
Virtual module in the slave station equipment, if for the business datum be real time traffic data, utilize and its Corresponding individual buffer area carries out the processing of real time traffic data;If the business datum is non-real-time service data, utilize The processing of shared buffer progress non-real-time service data.
Preferably, the business that each business module generates has different service periods.
Second aspect, the embodiment of the present invention provide a kind of industrial field bus virtual method, are applied in master device, The master device is connected at least one slave station equipment respectively by a physical bus, in which: the master device packet Containing at least two business modules, the corresponding virtual bus of each business module, the business module based on the master device The physical bus is virtually turned to the virtual bus of respective numbers by division rule;And the method, comprising:
When needing the virtual module in slave station equipment to handle the business datum of at least one business module generation, to described Business datum carries out multi-carrier modulation and obtains the modulated signal of business datum;
According to the type of service of the business datum, determine virtual in the slave station equipment for handling the business datum The logical address of module;
The modulated signal is sent to the logical address pair comprising determining by the corresponding virtual bus of business module The slave station equipment for the virtual module answered.
Preferably, according to the type of service of the business datum, the slave station equipment for handling the business datum is determined In virtual module logical address, specifically include:
According to the corresponding pass between type of service, logical address and the MAC address three of slave station equipment System determines the corresponding logical address of the type of service of the business datum in the slave station equipment for handling the business datum Virtual module logical address.
Preferably, the virtual module has at least one logical address;The logical address is by domain identity ID, mould Block identity ID and submodule identity ID is constituted;And the logical address meets at least one following configuration rule: Different virtual bus correspond to that different domain ID, the module I D of virtual module in same slave station equipment be identical, same slave station equipment In virtual module different, for handling same type of service the virtual modules of submodule ID domain ID it is identical.
Optionally, the business module includes real time business module and non-real-time service module;And the slave station equipment Including the real-time virtual module for handling real time business and the non real-time virtual module for handling non-real-time service;The industry Data of being engaged in include real time traffic data and non-real-time service data;And the business datum includes real time traffic data and non-reality When business datum.
Preferably, the business that each business module generates has different service periods.
The third aspect, the embodiment of the present invention provide a kind of industrial field bus virtualization apparatus, comprising:
Scheduler, in the business number for needing the virtual module in slave station equipment to handle the generation of at least one business module According to when, to the business datum carry out multi-carrier modulation obtain the modulated signal of business datum;
Scheduler, is also used to the type of service according to the business datum, determine for handle the business datum from The logical address of virtual module in station equipment;
Data distributor, for being sent to the modulated signal by the corresponding virtual bus of business module comprising determining The slave station equipment of the corresponding virtual module of logical address out.
Preferably, the dispatcher unit, specifically for being visited according to the media of type of service, logical address and slave station equipment It asks the corresponding relationship between control MAC Address three, determines the corresponding logical address of the type of service of the business datum to use The logical address of virtual module in the slave station equipment for handling the business datum.
Fourth aspect, the embodiment of the present invention provide a kind of nonvolatile computer storage media, and being stored with computer can hold Row instruction, the computer executable instructions are for executing industrial field bus virtual method provided by the present application.
5th aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out industrial field bus virtualization side provided by the present application Method.
The invention has the advantages that:
Industrial field bus virtualization system provided in an embodiment of the present invention, method and apparatus, in needing slave station equipment Virtual module handle at least one business module generation business datum when, to the business datum carry out multi-carrier modulation obtain To the modulated signal of business datum;According to the type of service of the business datum, determine for handle the business datum from The logical address of virtual module in station equipment;The modulated signal is sent to packet by the corresponding virtual bus of business module Slave station equipment containing the corresponding virtual module of logical address determined so that slave station equipment from the modulated signal received After demodulating business datum, the business datum is distributed to the corresponding virtual module of logical address determined, it is virtual by this The business datum that resume module demodulates.In this way, being provided through the invention due to the corresponding virtual bus of each business module Method the business datum that each business module generates can be passed through to the corresponding virtual bus of each business module respectively send To slave station equipment;In addition, in transmission process, since present invention employs multi-carrier modulation technologies, by the business of all kinds of business Data are modulated on subcarrier and then are transmitted again, and each subcarrier is equivalent to a transmission channel, can be by business number It is transmitted according on each subcarrier, due to mutually orthogonal between each subcarrier, is also ensured that on each subcarrier in this way The individual transmission of business datum, does not interfere with each other;In addition, virtual module is contained at least two in the present invention in slave station equipment, in this way Virtual module can be made to be capable of handling more business datums, improve the treatment effeciency of business datum.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of a scenario of the transaction processing system provided in an embodiment of the present invention based on industrial field bus;
Fig. 2 is the flow diagram of industrial field bus virtual method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of internal structure of the high-speed bus chip in master device provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of internal structure of master device provided in an embodiment of the present invention and slave station equipment;
Fig. 5 is the virtual bus network topology schematic diagram of real time business provided in an embodiment of the present invention and non-real-time service;
Fig. 6 obtains the modulation of business datum to business datum progress multi-carrier modulation to be provided in an embodiment of the present invention The flow diagram of signal;
Fig. 7 is the virtual bus network topology of logic-based business function RT1 business module provided in an embodiment of the present invention Schematic diagram;
Fig. 8 is that the bus scheduling effect of each business provided in an embodiment of the present invention based on identical services cycle period is shown It is intended to;
Fig. 9 is provided in an embodiment of the present invention based on high-speed bus Data within the chip forwarding channel shown in Fig. 3 signal Figure;
Figure 10 is the structural schematic diagram of industrial field bus virtualization apparatus provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram for implementing the computing device of industrial field bus virtual method provided by the invention.
Specific embodiment
Industrial field bus virtualization system provided in an embodiment of the present invention, method and apparatus, to be based on a physics The individual transmission of bus realization multiple business data.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
To facilitate the understanding of the present invention, in technical term of the present invention:
1, master device is industrial field bus communication main station, also referred to as management node (MN), it is total that high speed is arranged inside Core piece, which provides multi-channel data transmission ability, and realizes business datum void using cache mode Quasi-ization subregion configures different channel resources for different virtualized partitions and transmits, can under the premise of meeting business demand To carry out dynamic random access of virtual bus traffic, the channel resource of different virtual bus exclusively enjoys band width in physical.Wherein, virtual total Resource and the logical address needs of line configure in advance in master device.
2, slave station equipment, for industrial field bus communicate slave station, be referred to as controlled node (CN), be arranged inside to Few two virtual modules can handle more master devices by the way that multiple virtual modules are arranged in the case where slave station equipment is constant The business datum issued not only saves cost but also can reduce energy consumption.
3, virtual bus, virtual bus are not physical presence, it is possible to understand that are as follows: master device is issued to slave station equipment Before the business datum that all kinds of business modules generate, all kinds of business datums can carry out to multi-carrier modulation, and each business mould Block corresponds to a virtual bus, will be each after the business datum that each business module generates being carried out multi-carrier modulation in this way The corresponding modulated signal of a business module is sent to slave station equipment by respective virtual bus.
Do not have versatility, the high problem of maintenance cost, this hair to solve bus virtualization existing in the prior art It is bright to provide a kind of transaction processing system based on industrial field bus, a physical bus can use based on the system and realize The individual transmission of multiple business data, not only realizes bus virtualization but also ensure that transmit between each business and do not interfere with each other, logical It is stronger with property.The schematic diagram of a scenario of transaction processing system provided in an embodiment of the present invention based on industrial field bus can refer to Shown in Fig. 1, which includes master device (DEV0) and at least one slave station equipment (DEV1~DEV6), in the slave station equipment Be provided at least two virtual modules, two virtual modules be set in the slave station equipment DEV1 of example as shown in figure 1, be denoted as VD1 and Two virtual modules are set in VD2 ... ..., slave station equipment DEV6, are denoted as VD11 and VD12;The master device passes through an object Reason bus is connected at least one described slave station equipment respectively, and master device includes at least two business modules, each business Module corresponds to a virtual bus, and the division rule of the business module based on the master device is virtual by the physical bus Turn to the virtual bus of respective numbers.Master device handles at least one business module needing the virtual module in slave station equipment When the business datum of generation, multi-carrier modulation is carried out to above-mentioned business datum and obtains the modulated signal of business datum;And according to upper The type of service of business datum is stated, the virtual module in the determining slave station equipment for handling the business datum is logically Location;The modulated signal is sent to the corresponding void of logical address comprising determining by the corresponding virtual bus of business module The slave station equipment of quasi- module;Slave station equipment is after receiving modulated signal, after demodulating the business datum in modulated signal, Business datum is distributed to the corresponding virtual module of the logical address determined, which is handled by the virtual module.It is logical It crosses and multi-carrier modulation is carried out to the business datum that at least one business module to be treated generates, ensure that and utilize same physics The business datum that transmission business module generates on the corresponding virtual bus of each business module that bus virtually dissolves, and multicarrier Modulation technique itself has the advantage of isolation interference, therefore can guarantee the independence of business datum when transmitting multiple business data Transmission.
Below with reference to the scene of Fig. 1, the work that illustrative embodiments provide according to the present invention is described with reference to Fig. 2-Figure 10 Industry fieldbus virtual method.It should be noted that above-mentioned application scenarios be merely for convenience of understanding spirit of the invention and Principle and show, embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can be applied In applicable any scene.
As shown in Fig. 2, be the flow diagram of industrial field bus virtual method provided in an embodiment of the present invention, including Following steps:
S11, master device are in the business for needing the virtual module in slave station equipment to handle the generation of at least one business module When data, multi-carrier modulation is carried out to the business datum and obtains the modulated signal of business datum.
Business module for generating various businesses data is set in this step, in master device, and each business module A corresponding virtual bus specifically can virtually dissolve physical bus and business module according to the division rule of business module Virtual bus with identical quantity.When the business datum that each business module generates is after multi-carrier modulation, the tune that will obtain Signal processed is sent to slave station equipment through the corresponding virtual bus of each business module.
Specifically, when the business datum of generation needs the virtual module in slave station equipment to handle, master device is utilized The high-speed bus chip being arranged inside carries out multi-carrier modulation to the business datum that at least one business module generates and is modulated Signal.The schematic diagram of internal structure of high-speed bus chip in the present invention can be refering to what is shown in Fig. 3, high-speed bus chip includes height Fast serial computer expansion bus standard (PCIE) interface, buffer area, scheduler, data distributor, serial ports UART, CAN interface With Ethernet Ethernet interface, wherein PCIE interface is to be based on PCIE for providing the internal bus interface of virtualization capability The virtualization of interface meets corresponding interface specification, so that upper layer application or system access more addresses PCIE of same chip And operation;Buffer area, for distinguishing the data buffer zone of virtual bus business;Scheduler, for realizing data distribution and according to The priority of business carries out the processing such as traffic scheduling;Data distributor, for realizing data distribution processing based on channel resource; UART serial ports is external serial interface, for docking the buses such as HART or PROFBUS;CAN interface, for docking CAN bus; Ethernet interface, for docking industry ethernet.In addition, the high-speed bus chip in the present invention additionally provides dual port RAM Virtualization, the virtualization of dual port RAM realize multi-pass for the multidomain treat-ment to data, and to the data of different virtual bus Road parallel transmission.By integrating the components such as above-mentioned interface in high-speed bus chip, it is ensured that obtain the modulation of business datum Signal.
In addition, automatic point to the data on different virtual bus may be implemented in the internal state machine of high-speed bus chip Hair, does not need additionally to configure, and non real-time scheduling is for the scheduling to non-real-time service, by the non real-time scheduling processing in real time, no Influence the processing of application layer non-real-time service.High-speed bus chip interior is based on the preconfigured bus cycles to real-time and non real-time Business datum is scheduled processing, and scheduler is based on different channels resource by data distribution to the buffering of the different virtual bus of correspondence Area.
Preferably, the business datum in the present invention can be, but not limited to include real time traffic data and non-real-time service data Deng.
The real time traffic data that at least one real time business module generates can be carried out multi-carrier modulation and obtained by master device To modulated signal;For example, refering to what is shown in Fig. 4, being provided with the business module for generating various businesses in master device, respectively The business module RT1 for generating the first real time business, the business module RT2 for generating second of real time business, the third reality is generated When business business module RT3 and generate non-real-time service business module NRT etc., due in master device include 4 business Physical bus is then virtually dissolved 4 virtual bus by module, corresponding with this four business modules respectively, such as NRT corresponding empty Quasi- bus 1, RT3 corresponds to virtual bus 2, RT2 corresponds to virtual bus 3 and RT1 corresponds to virtual bus 4.And this four business Module is connected with each other based on the bus topology mode of same physical medium.Based on Fig. 4, in a kind of possible embodiment, main website The business datum for the real time business that the business datum of the RT1 real time business generated and RT2 generate can be carried out multicarrier by equipment Modulation obtains modulated signal, the virtual mould being then according to the method provided by the invention sent to modulated signal in slave station equipment Block demodulates modulated signal by virtual module and handles the business datum demodulated.
In alternatively possible embodiment, master device can be by the business datum of real time business and non-real-time service Business datum carries out multi-carrier modulation jointly and obtains modulated signal, refering to what is shown in Fig. 4, the reality that master device can generate RT1 When business business datum and NRT generate non-real-time service business datum carry out jointly multi-carrier modulation obtain modulation letter Number.But in view of the requirement of real-time of real time business is higher, the present invention is it is not recommended that by real time traffic data and non-real-time service number According to common progress multi-carrier modulation and send, refering to what is shown in Fig. 5, suggest real time business and non-real-time service separately send, but The present invention can be realized this embodiment, only need that corresponding treatment mechanism is arranged in slave station equipment.
In another possible embodiment, master device provided by the invention can also will generate in same business module One or more business datums carry out multi-carrier modulation and obtain modulated signal, and be sent to energy according to the method provided by the invention The virtual module in the slave station equipment of the business datum is enough handled, modulated signal demodulation post-processing is demodulated by the virtual module Business datum.Fig. 4 is also referred to, master device can carry out the business datum of RT1 two real time business generated more jointly Carrier modulation obtains modulated signal, and similarly, master device can also carry out the business datum of the RT1 real time business generated Multi-carrier modulation obtains modulated signal.
Preferably, the present invention, which can carry out multi-carrier modulation to the business datum according to process shown in fig. 6, obtains industry The modulated signal for data of being engaged in, may comprise steps of:
S21, according to the quantity of preset subcarrier, business datum is divided into the subdata of respective numbers.
Before implementing method provided by the invention, master device can set implementation multicarrier with slave station equipment in advance in advance The quantity of the subcarrier of modulation and the frequency of each subcarrier etc., after master device sends modulated signal to slave station equipment, from Station equipment can use the subcarrier information made an appointment and demodulate business datum from modulated signal, and by virtual module to industry Business data are handled.
On this basis, when executing this step, at least one business module can be generated according to the quantity of subcarrier Business datum is divided into the subdata of respective numbers, if the quantity of subcarrier be it is N number of, need for above-mentioned business datum to be divided into N number of subdata.
S22, it obtained subdata will be divided will be modulated on preset subcarrier respectively, and obtain the modulation letter of each subdata Number.
Specifically, subcarrier is first subjected to ascending sequence according to frequency, the method that then can use positive sequence utilizes First subdata that first subcarrier obtains division is modulated processing and obtains the modulated signal of first subdata, so Afterwards and so on obtain the modulated signal of each subdata.The method that inverted order can certainly be used, it may be assumed that n-th subcarrier pair Divide obtained first subdata and be modulated processing and obtains the modulated signal of first subdata, and so on it is available The modulated signal of each subdata.Obviously N number of subdata can also be modulated using N number of subcarrier using other methods To the modulated signal of N number of subdata, the invention does not limit this.
S23, the modulated signal progress summation process of each subdata is obtained into the modulated signal of business datum.
Specifically, the modulated signal of N number of subdata is overlapped processing, stack result is the modulation letter of business datum Number.
It should be noted that the multi-carrier modulation method in the present invention can be orthogonal frequency division multiplexing (Orthogonal Frequency Division Multiplexing, OFDM).Business datum is subjected to multicarrier tune by using OFDM technology Ofdm modulation signal is made so that ofdm modulation signal in transmission process due to the orthogonality between subcarrier, ensure that each The modulated signal of each subdata of a subcarrier-modulated is orthogonal in a sending cycle, so that in transmission process Crosstalk will not be sent, is equivalent to transmit the modulation of each subdata of each subcarrier-modulated there are multiple independent channels Signal, each channel are irrelevant.
S12, master device determine the slave station for handling the business datum according to the type of service of the business datum The logical address of virtual module in equipment.
Preferably, master device business module of the present invention can be, but not limited to include real time business module and non-real-time service Module etc., the business datum generated based on this division rule can be, but not limited to include: real time traffic data and non-real-time service Data etc..Virtual module in slave station equipment of the present invention can be, but not limited to include: the real-time virtual for handling real time business Module and non real-time virtual module etc. for handling non-real-time service.Although business module divides real time business mould in the present invention Block and non-real-time service module, but the business that real time business module generates is also to have business that is different types of, while obtaining Data be also have it is different types of.
In order to handle the business datum for various types of business that master device issues, configured in slave station equipment When any virtual module, the business datum that the virtual module handles several business can permit, then allow another virtual module Other kinds of business datum is handled, the type of service of the business handled between certain each virtual module there can be overlapping.Example Such as, there is the business of 5 seed types, in configuration process, can permit the virtual module VD1 processing first kind in slave station equipment DEV1 Business~the third window allows the virtual module VD2 in slave station equipment in DEV1 to handle the 4th class business~the 5th class business Deng.If the portfolio of certain a kind of business is larger, if only one virtual module handles this kind of business, the void may result in Quasi- module load is higher, in order to avoid the generation of this problem, other virtual modules can be arranged in configuration process and also handle This kind of business, such as the portfolio of the third window are larger, then can be when configuring the virtual module in slave station equipment DEV2, can To configure the virtual module VD3 processing third window, it can guarantee load balancing between each virtual module in this way.Specific implementation When, the permission any class business is handled in each slave station equipment can be configured according to actual business requirement.
In this step, search handle certain for convenience with postponing in the processing authority in advance to each virtual module The virtual module of a kind of business, invention introduces the logical address of virtual module, master device can be according to business datum Type of service determines the logical address of the virtual module for handling the business datum.
Preferably, logical address, the slave station equipment of type of service and virtual module can be created in master device in advance MAC Address between corresponding relationship, shown in reference table 1:
Table 1
The logical address of virtual module in table 1 in each slave station equipment can be with more than one, and each virtual module Logical address is different.It should be noted that table 1 is pair for listing a kind of type of service, MAC Address and logical address It should be related to, not constitute the restriction to above-mentioned corresponding relationship, this corresponding relationship can be configured in practical application, this hair It is bright to this without limit.
, can be according to following procedure performance step S12 based on foregoing description, comprising: according to type of service, logical address with The corresponding relationship of the MAC address of slave station equipment determines the corresponding logic of the type of service of the business datum Address is the logical address of the virtual module in the slave station equipment for handling the business datum.
When it is implemented, type of service 1 in such as table 1 it is corresponding be the real time business that RT1 module generates service class Type, master device is after RT1 module generates real time business, however, it is determined that the type of service for going out the business datum of the real time business is industry Service type 1 can then find the MAC Address of the slave station equipment of real time business for being capable of handling type of service 1 and each from table 1 The logical address of the virtual module of the real time business of type of service 1 is capable of handling in slave station equipment, for example, determining logical address 1, logical address 2, logical address n and the corresponding virtual module of logical address n+1 allow the real time business of processing business Class1.
The modulated signal is sent to by the corresponding virtual bus of business module comprising determining by S13, master device The corresponding virtual module of logical address slave station equipment.
After the virtual module for determining the real time business for being capable of handling type of service 1 based on step S12, step S11 is obtained To modulated signal be sent to by the virtual bus of business module the slave station equipment of the virtual module comprising above-mentioned logical address.
In a kind of possible embodiment, when sending modulated signal, the virtual mould determined can be contained with carrying package The logical address of the MAC Address of the slave station equipment of block and the virtual module of the business datum for handling above-mentioned real time business, and The MAC Address and virtual module for sending the modulated signal and above-mentioned slave station equipment by the port of master device are logically Location.
In another possibility real-time mode, processing business data can be only sent while sending modulated signal The MAC Address of slave station equipment.Since slave station equipment is to the type of service of the virtual module processing of itself and the logic of virtual module Address is known, even if only sending the MAC Address of slave station equipment, business datum can also be distributed to and is capable of handling by slave station equipment The virtual module of the business datum.
Based on above two possible embodiment, it can also carry in the MAC Address and master device of master device and produce The logical address of the business module of raw real time business, since virtual module may need return to handle after having handled business datum As a result, the event present invention proposes to carry the logical address for generating the business module of real time business in master device, so as to virtual module Processing result is back to corresponding business module.
S14, slave station equipment are after receiving and demodulating the business datum in modulated signal, by the business datum point The corresponding virtual module of the logical address determined is issued, the business datum is handled by the virtual module.
In this step, the slave station equipment on physical bus being connected with master device has signal on monitoring physical bus When transmission, when what is obtained from physical bus is modulated signal and MAC Address, however, it is determined that the MAC Address and slave station obtained out The MAC Address of equipment itself is consistent, then according to the relevant information for the subcarrier arranged with master device, is gone out using subcarrier demodulation Business datum, then slave station equipment determines the type of service of the business datum demodulated, and business datum is then sent to slave station The virtual module of the business datum of the type of service is capable of handling in equipment.
If the MAC Address that slave station equipment is got is inconsistent with itself MAC Address, the modulated signal is not done any Processing, handles the modulated signal by other slave station equipments.Refering to what is shown in Fig. 4, the business datum that generates of the RT1 in Fig. 4 can be by It is virtual in virtual module VD4, the slave station equipment DEV4 in virtual module VD1, slave station equipment DEV2 in slave station equipment DEV1 Virtual module VD10 in module VD7 and slave station equipment DEV5 is handled.And slave station equipment DEV3 modulated signal is not done it is any Processing.After the completion of virtual module is to business data processing, service processing result if desired is returned to master device and is then being returned Port numbers based on slave station equipment belonging to virtual module when service processing result are sent to master device, while can carry this The logical address of the business module of business datum and the MAC Address of master device, to guarantee that service processing result is correctly back to The business module of master device.
If any slave station equipment has also got MAC Address and logical address, then first while obtaining modulated signal Judge whether the MAC obtained is consistent with the MAC Address of itself, the modulated signal got is demodulated if consistent, and will The business datum demodulated is sent to the corresponding virtual module of the logical address got, handles the business number by the virtual module According to.
Preferably, when only parsing MAC Address from the business datum received, master device issuing service data with And slave station equipment the processing mode that business datum is issued to corresponding virtual module can be divided into it is following several:
The first: if business datum is the business datum that at least one business module generates, master device is will at least one When the business datum that a business module generates carries out multi-carrier modulation, all kinds of business can be distinguished by the way that apparent mark is arranged Then data are sent to slave station equipment by the corresponding virtual bus of each business module.Master device is determining slave station equipment When the logical address of virtual module, such as determine to be capable of handling the logical address of the virtual module of at least a kind of business, certainly This logical address is pre-configured, modulated signal of such slave station equipment in the business datum for getting this kind of business When, the business datum demodulated directly can be issued to the above-mentioned corresponding virtual module of logical address determined, by this Virtual module handles such business datum.
Second: when carrying out multi-carrier modulation to business datum, considering the virtual module processing of each slave station equipment Type of service, if the business datum for Ganlei's business that virtual module in slave station equipment is capable of handling can be carried out multi-carrier modulation The virtual module being then sent in the slave station equipment can guarantee several by virtual module processing in a slave station equipment in this way The business datum of class business, it is easy to operate.
The third: when not differentiated service type carries out multi-carrier modulation to business datum, slave station equipment is receiving tune It, will be in the business datum that demodulated equally when the MAC Address for determining to obtain is consistent with the MAC Address of itself after signal processed A kind of business datum that virtual module in slave station equipment is capable of handling is issued to corresponding virtual module, and for slave station equipment That class business datum that interior virtual module cannot be handled is then without any processing, by being capable of handling that class in other slave station equipments The virtual module of business datum is handled, and guarantees that the virtual module in slave station equipment is capable of handling all kinds of of master device generation Business datum.
, also can be according to logic business function distinguishing virtual module for all slave station equipments in Fig. 4, slave station equipment in Fig. 4 In all there is virtual module, although master device is divided into different business module and slave station equipment root according to logic business It is divided into different virtual modules according to logic business, corresponding virtual bus network is accessed in a manner of virtual module, but practical Slave station equipment external interface form it is constant, but the virtual module of logic-based business always with independent virtual bus functionality realization Data communication and transmission, refering to what is shown in Fig. 7, business module RT1 generate business datum after carrying out multi-carrier modulation, finally It is the virtual module in the virtual module VD1 being issued in the form of independent channel in slave station equipment DEV1, slave station equipment DEV2 The virtual module VD10 in virtual module VD7 and slave station equipment DEV5 in VD4, slave station equipment DEV4.
It should be noted that business module in the logical address and master device of virtual module in slave station equipment in the present invention Logical address be to be made of domain identity ID, module identity ID and submodule identity ID, and virtual module With at least one logical address;Specifically, domain ID is used in logical address addressing distinguish different virtual bus, Ke Yishi It, specifically can be with logical address format shown in reference table 2 now based on the uniform service layout of different virtual bus:
Table 2
Domain ID Module I D Submodule ID
8bits 16bits 8bits
In table 2, domain ID, also referred to as Domain ID account for 8, identify the affiliated virtual bus of all kinds of business, which has as follows Definition value:
0x00: identification service is not belonging to any virtual bus;
0x01-0xDF: the domain ID, i.e., the domain ID of all kinds of business of one virtual bus of mark;
0xE0-0xEF: one domain ID range of mark, is a multicast offset, characterizes the one of a plurality of virtual bus composition A virtual bus group, it can be understood as the domain ID of multiple business forms a virtual bus group;
0xF0-0xFE: domain ID retention;
0xFF: broadcast type domain ID identifies all bus domains.
In table 2, module I D, also referred to as module ID account for 16, identify the number of slave station equipment, exist such as the field Give a definition value:
0x0000: the initialization module ID of slave station equipment is identified;
0x0001-0xDFFF: the effective number of mark module ID;
0xE000-0xE0FF: mark virtual module or business module the multicast group # belonging to this bus domain;
0xFFFF: the module I D of broadcast type, all virtual modules in identification field.
In table 2, submodule ID, also referred to as sub-module ID account for 8, identify the number of virtual module in slave station equipment, Virtual value is 0x01-0xFE;0x00 is for not having default value when virtual module in slave station equipment;0xFF is retention, mark Know all virtual modules.
Preferably, above-mentioned logical address meets at least one following configuration rule: different virtual bus correspond to different domains ID, the module I D of virtual module in same slave station equipment be identical, the submodule ID of virtual module in same slave station equipment not It is identical with, the domain ID of virtual module for handling same type of service.
It should be noted that the present invention is since different domain ID corresponds to different virtual bus, therefore it can be concluded that being capable of benefit Different virtual bus is distinguished with different domain ID, and each business module corresponds to a virtual bus, each business module Corresponding one kind business, it can be deduced that virtual bus is also one-to-one with type of service, and different virtual bus is corresponding not Same domain ID, so as to show that different domain ID also corresponds to different types of service.
Based on the logical address configuration rule, the slave station equipment on the same physical bus can be realized at virtualization Reason, that is, in the same slave station equipment, point of multiple logical addresses is may be implemented in functional module or business demand based on business Match.In conjunction with Fig. 4, the logical address of the virtual module in master device, slave station equipment and slave station equipment shown in reference table 3:
Table 3
Equipment or module Logical address Explanation
RT1 0x01000000 The corresponding virtual master node logical address of real-time virtual bus 1
RT2 0x02000000 The corresponding virtual master node logical address of real-time virtual bus 2
RT3 0x03000000 The corresponding virtual master node logical address of real-time virtual bus 3
NRT 0x0F000000 Non real-time virtual bus corresponds to virtual master node logical address
DEV1 0x0F000100 The logical address of non real-time virtual bus is corresponded on physical equipment 1
VD1 0x01000101 The logical address of the corresponding virtual bus RT1 of virtual module 1 on physical equipment 1
VD2 0x02000102 The logical address of the corresponding virtual bus RT2 of virtual module 2 on physical equipment 1
DEV2 0x0F000200 The logical address of non real-time virtual bus is corresponded on physical equipment 2
VD4 0x01000202 The logical address of the corresponding virtual bus RT1 of virtual module 4 on physical equipment 2
DEV4 0x0F000400 The logical address of non real-time virtual bus is corresponded on physical equipment 4
VD7 0x01000401 The logical address of the corresponding virtual bus RT1 of virtual module 7 on physical equipment 4
DEV5 0x0F000500 The logical address of non real-time virtual bus is corresponded on physical equipment 5
VD10 0x01000501 The logical address of the corresponding virtual bus RT1 of virtual module 10 on physical equipment 5
It in table 3, is illustrated so that the logical address of RT1 is " 0x01000000 " as an example, " 0x01 " is domain in logical address ID, centre 40 characterization modules ID, last two characterizations submodule ID, since business module RT1 does not have submodule so submodule Block ID is " 00 ".From table 3 it is observed that the corresponding domain ID of different business is different, the virtual module tool in same slave station equipment There is different submodule ID etc..Based on above-mentioned configuration rule can in master device business module and slave station equipment and its The logical address of interior virtual module is configured.
Preferably, the slave station equipment is provided with shared buffer, and it is each configured with solely for each virtual module Vertical buffer area;And
Virtual module in the slave station equipment, if for the business datum be real time traffic data, utilize and its Corresponding individual buffer area carries out the processing of real time traffic data;If the business datum is non-real-time service data, utilize The processing of shared buffer progress non-real-time service data.
Specifically, the data access mode that the present invention uses are as follows: between the virtual module in same slave station equipment, according to patrolling Business demand is collected, data access is realized by the way of independence or shared buffer, such as the void in slave station equipment DEV1 Quasi- module VD1 and VD2 can be realized using shared buffer mode to business datum when handling the access of non-real-time data Processing, when handling different types of business datum, then respective individual buffer area is respectively adopted in virtual module VD1 and VD2 Realize the processing to business datum.
The business data processing method that the present invention uses, the business that each business module generates have different business weeks Phase.Specifically, since the business datum generated at least one business module has carried out multi-carrier modulation, the business of each type There are oneself independent service period, the i.e. cycle period of business processing, and these service periods always meet bus cycle week The requirement of the integral multiple of phase (the data processing cycle period of such as high-speed bus chip), refering to what is shown in Fig. 8, the VBUSx in Fig. 8 is Each virtual bus service period, the corresponding cycle of business operations period of virtual bus 1 are 2T, i.e., carry out at data within the 2T period Reason, and the corresponding cycle of business operations period of virtual bus 4 is T, i.e., it always can processing business data in each cycle period T;Cause Carried out data transmission for all virtual bus using different physical channels, does not interfere with each other and influence, so the weight in time domain The folded data transmission that will not influence virtual bus, i.e., in same circulation time, may be implemented the same of a plurality of virtual bus Step transmission, and the virtual bus number that can actually support depends on band width in physical and channel resource limits.
The industrial field bus virtual method provided in order to better illustrate the present invention, which is realized, utilizes same physical bus The reliability and versatility of multiple business data are transmitted, Fig. 9 gives to be turned based on high-speed bus Data within the chip shown in Fig. 3 Access diagram is sent out, the function of associated components is as follows in Fig. 9:
Physical bus data: the data frame transmitted on physical bus medium;
Bus interface: the physical interface of different transmission channels can be distinguished;
Data distributor: encapsulation and parsing to data frame complete the data with physical bus interface based on different channels Distribution processor, while the data interaction with buffer area, the data interaction of data distributor and buffer area are completed in logic-based address It is handled using logical address, specific processing mode issues completion by scheduler;
Buffer control unit: the management to each buffer area and data processing instructions are issued;
Shared buffer: buffered data when for handling non-real-time service for virtual module.
Individual buffer area: buffered data when for handling real time business for virtual module.
Data forwarding schematic diagram based on Fig. 9, different virtual bus can complete data transmission based on different physical channels, Data isolation is realized in physical layer;The data distributor and scheduler of high-speed bus chip interior are completed on different virtual bus The mapping of data and data buffer zone is handled, to meet the different business demand of application layer, data distributor and scheduler exist It is handled by the way of address descriptor when handling data, avoids influence of the multiple copy of data to real-time, So as to the requirement of a plurality of virtual bus real-time synchronization transmission of further satisfaction.
In conjunction with Fig. 3 and Fig. 9, the present invention is illustrated internal data forwarding process in high-speed bus chip, first main website After at least two business modules in equipment generate business datum, the industry that is respectively generated each business module by PCIE interface It is engaged in data buffer storage to corresponding buffer area, business datum is cached to shared delay if business datum is non-real-time service data It deposits in area, if business datum is real time traffic data, the business datum that each business module generates is cached to the business mould In the corresponding individual buffer area of block.The industry that scheduler generates the relatively high business module of priority according to the priority of business datum Data of being engaged in carry out multi-carrier modulation processing, then obtain modulated signal, and then determination is true according to the type of service of the business datum The logical address of virtual module in the fixed slave station equipment for handling the business datum, while by modulated signal and determining Logical address notify to data distributor, such data distributor can by modulated signal pass through the higher business of priority ratio The corresponding virtual bus of module is sent to the slave station equipment of the corresponding virtual module of logical address comprising determining.For example, non- Realtime traffic priority is higher than non-real-time service, then the business number that scheduler generates non-real-time service module in shared buffer It handles to obtain modulated signal according to multi-carrier modulation is carried out, the type of service for being then based on the business datum is determined to be at this Then the logical address of the virtual module of business datum the storage address by the modulated signal in shared buffer and is determined The logical address of virtual module be sent to data distributor, data distributor can be from shared buffer according to above-mentioned storage address Above-mentioned modulated signal is read in area, is then that the corresponding virtual bus 1 of non-real-time service module is sent out by the modulated signal channel 1 The slave station equipment comprising above-mentioned logical address is given, so that slave station equipment sends out the business datum demodulated from above-mentioned modulated signal It gives above-mentioned logical address corresponding virtual module, above-mentioned business datum is handled by the virtual module.
By implementing industrial field bus virtual method provided by the invention, the industry that at least one business module is generated Business data carry out multi-carrier modulation and obtain modulated signal, then determine to be capable of handling such according to the type of service of business datum The logical address of the virtual module of business datum, and modulated signal is issued to the void comprising determining based on a physical bus The slave station equipment of quasi- module, so that slave station equipment is after demodulating business datum in the modulated signal received, by the industry Business data distribution gives the corresponding virtual module of logical address determined, handles the business datum demodulated by the virtual module. In this way, the method provided through the invention can be by each business module due to the corresponding virtual bus of each business module The business datum of generation is sent to slave station equipment by the corresponding virtual bus of each business module respectively;In addition, being transmitted across The business datum of all kinds of business can be modulated to subcarrier since the present invention is due to using multi-carrier modulation technology by Cheng Zhong It is upper then to be transmitted again, and each subcarrier is equivalent to a transmission channel, and business datum is carried out on each subcarrier Transmission also ensures that the individual transmission of business datum on each subcarrier, mutually due to mutually orthogonal between each subcarrier in this way It does not interfere;In addition, contain at least two virtual module in the present invention in slave station equipment, can enable at virtual module in this way More business datums are managed, the treatment effeciency of business datum is improved.
Based on the same inventive concept, a kind of industrial field bus virtualization apparatus is additionally provided in the embodiment of the present invention, by It is similar to industrial field bus virtual method in the principle that above-mentioned apparatus solves the problems, such as, therefore the implementation of above-mentioned apparatus can be joined The implementation of square method, overlaps will not be repeated.
It as shown in Figure 10, is the structural schematic diagram of industrial field bus virtualization apparatus provided in an embodiment of the present invention, this Invention provide device be set in master device, the master device by a physical bus respectively at least one slave station Equipment is connected, in which: the master device includes at least two business modules, and each business module corresponding one virtual total The physical bus is virtually turned to the virtual of respective numbers by line, the division rule of the business module based on the master device Bus;And described device, comprising:
Scheduler 31, in the business for needing the virtual module in slave station equipment to handle the generation of at least one business module When data, multi-carrier modulation is carried out to the business datum and obtains the modulated signal of business datum;
Scheduler 31 is also used to the type of service according to the business datum, determines for handling the business datum The logical address of virtual module in slave station equipment;
Data distributor 32, for being sent to the modulated signal by the corresponding virtual bus of business module comprising true The slave station equipment of the corresponding virtual module of the logical address made.
Preferably, the scheduler 31, specifically for the media interviews according to type of service, logical address and slave station equipment Control MAC Address three between corresponding relationship, determine the corresponding logical address of the type of service of the business datum be for Handle the logical address of the virtual module in the slave station equipment of the business datum.
Preferably, the virtual module has at least one logical address;The logical address is by domain identity ID, mould Block identity ID and submodule identity ID is constituted;And the logical address meets at least one following configuration rule: Different virtual bus correspond to that different domain ID, the module I D of virtual module in same slave station equipment be identical, same slave station equipment In virtual module different, for handling same type of service the virtual modules of submodule ID domain ID it is identical.
Optionally, the business module includes real time business module and non-real-time service module;And the slave station equipment Including the real-time virtual module for handling real time business and the non real-time virtual module for handling non-real-time service;The industry Data of being engaged in include real time traffic data and non-real-time service data;And the business datum includes real time traffic data and non-reality When business datum.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
In the industrial field bus virtualization system for describing exemplary embodiment of the invention, after method and apparatus, Next, introducing the computing device of another exemplary embodiment according to the present invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, it is single can to include at least at least one processing for computing device according to the present invention Member and at least one storage unit.Wherein, the storage unit is stored with program code, when said program code is described When processing unit executes, so that the processing unit executes the exemplary implementations various according to the present invention of this specification foregoing description Step in the industrial field bus virtual method of mode.For example, the processing unit can execute step as shown in Figure 2 The industrial field bus virtual method of S11~S14.
The computing device 40 of this embodiment according to the present invention is described referring to Figure 11.The calculating that Figure 11 is shown Device 40 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 11, computing device 40 is showed in the form of universal computing device.The component of computing device 40 can wrap It includes but is not limited to: at least one above-mentioned processing unit 41, at least one above-mentioned storage unit 42, connection different system components (packet Include storage unit 42 and processing unit 41) bus 43.
Bus 43 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 42 may include the readable medium of form of volatile memory, such as random access memory (RAM) 421 and/or cache memory 422, it can further include read-only memory (ROM) 423.
Storage unit 42 can also include program/utility 425 with one group of (at least one) program module 424, Such program module 424 includes but is not limited to: operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.
Computing device 40 can also be communicated with one or more external equipments 44 (such as keyboard, sensing equipment etc.), may be used also With one or more enable a user to the equipment interacted with computing device 4 communication, and/or with enable the computing device 40 with One or more of the other any equipment (such as router, modem etc.) communication for calculating equipment and being communicated.It is this Communication can be carried out by input/output (I/O) interface 45.Also, computing device 40 can also by network adapter 46 with One or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as Shown in figure, network adapter 46 is communicated by bus 43 with other modules for computing device 40.It will be appreciated that though in figure It is not shown, other hardware and/or software module can be used in conjunction with computing device 40, including but not limited to: microcode, equipment are driven Dynamic device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
In some possible embodiments, the various aspects of industrial field bus virtual method provided by the invention are also It can be implemented as a kind of form of program product comprising program code, when described program product is run on a computing device When, said program code is for making the computer equipment execute the various according to the present invention exemplary of this specification foregoing description Step in the industrial field bus virtual method of embodiment, for example, the computer equipment can execute as shown in Figure 2 Step S11~S14 industrial field bus virtual method.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program product for industrial field bus virtual method of embodiments of the present invention can use portable Compact disk read-only memory (CD-ROM) and including program code, and can run on the computing device.However, journey of the invention Sequence product is without being limited thereto, and in this document, readable storage medium storing program for executing can be any tangible medium for including or store program, the journey Sequence can be commanded execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider is connected by internet).
It should be noted that although being referred to several unit or sub-units of device in the above detailed description, this stroke It point is only exemplary not enforceable.In fact, embodiment according to the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can It is to be embodied by multiple units with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (15)

1. a kind of industrial field bus virtualization system characterized by comprising master device and at least one slave station equipment, At least two virtual modules are provided in the slave station equipment;The master device by a physical bus respectively with it is described extremely A few slave station equipment is connected, in which: the master device includes at least two business modules, each business module corresponding one The physical bus is virtually turned to respective counts by virtual bus, the division rule of the business module based on the master device The virtual bus of amount;
The master device, in the business for needing the virtual module in slave station equipment to handle the generation of at least one business module When data, multi-carrier modulation is carried out to the business datum and obtains the modulated signal of business datum;And according to the business datum Type of service, determine the logical address of the virtual module in slave station equipment for handling the business datum;By the tune Signal processed by the corresponding virtual bus of business module be sent to comprising the corresponding virtual module of logical address determined from Station equipment;
The slave station equipment, for after demodulating the business datum in the modulated signal received, by the business number According to the corresponding virtual module of the logical address determined is distributed to, the business datum is handled by the virtual module.
2. the system as claimed in claim 1, which is characterized in that
The master device, specifically for the MAC address according to type of service, logical address and slave station equipment Corresponding relationship between three determines that the corresponding logical address of the type of service of the business datum is for handling the business The logical address of virtual module in the slave station equipment of data.
3. the system as claimed in claim 1, which is characterized in that the virtual module has at least one logical address;It is described Logical address is made of domain identity ID, module identity ID and submodule identity ID;And the logical address Meet at least one following configuration rule: different virtual bus correspond to different domain ID, the virtual module in same slave station equipment Identical, in same slave station equipment the virtual module of module I D submodule ID is different, the void for handling same type of service The domain ID of quasi- module is identical.
4. the system as claimed in claim 1, which is characterized in that the business module includes real time business module and non real-time industry Business module;And the slave station equipment includes real-time virtual module for handling real time business and for handling non-real-time service Non real-time virtual module;The business datum includes real time traffic data and non-real-time service data.
5. system as claimed in claim 4, which is characterized in that the slave station equipment is provided with shared buffer, and is every One virtual module is each configured with individual buffer area;And
Virtual module in the slave station equipment utilizes corresponding if being real time traffic data for the business datum Individual buffer area carry out real time traffic data processing;If the business datum is non-real-time service data, utilize shared The processing of buffer area progress non-real-time service data.
6. the system as claimed in claim 1, which is characterized in that the business that each business module generates has different business weeks Phase.
7. a kind of industrial field bus virtual method, which is characterized in that be applied in master device, the master device passes through One physical bus is connected at least one slave station equipment respectively, in which: the master device includes at least two business moulds Block, the corresponding virtual bus of each business module, the division rule of the business module based on the master device, by the object Reason bus virtually turns to the virtual bus of respective numbers;And the method, comprising:
When needing the virtual module in slave station equipment to handle the business datum of at least one business module generation, to the business Data carry out multi-carrier modulation and obtain the modulated signal of business datum;
According to the type of service of the business datum, the virtual module in the slave station equipment for handling the business datum is determined Logical address;
The modulated signal is sent to by the corresponding virtual bus of business module corresponding comprising the logical address determined The slave station equipment of virtual module.
8. the method for claim 7, which is characterized in that according to the type of service of the business datum, determine for locating The logical address for managing the virtual module in the slave station equipment of the business datum, specifically includes:
According to the corresponding relationship between the MAC address three of type of service, logical address and slave station equipment, really The corresponding logical address of type of service of the fixed business datum is the void in the slave station equipment for handling the business datum The logical address of quasi- module.
9. the method for claim 7, which is characterized in that the virtual module has at least one logical address;It is described Logical address is made of domain identity ID, module identity ID and submodule identity ID;And the logical address Meet at least one following configuration rule: different virtual bus correspond to different domain ID, the virtual module in same slave station equipment Identical, in same slave station equipment the virtual module of module I D submodule ID is different, the void for handling same type of service The domain ID of quasi- module is identical.
10. the method for claim 7, which is characterized in that the business module includes real time business module and non real-time Business module;And the slave station equipment includes real-time virtual module for handling real time business and for handling non real-time industry The non real-time virtual module of business;The business datum includes real time traffic data and non-real-time service data;And the business Data include real time traffic data and non-real-time service data.
11. the method for claim 7, which is characterized in that the business that each business module generates has different business Period.
12. a kind of industrial field bus virtualization apparatus, which is characterized in that be set in master device, the master device is logical It crosses a physical bus to be connected at least one slave station equipment respectively, in which: the master device includes at least two business Module, the corresponding virtual bus of each business module, the division rule of the business module based on the master device will be described Physical bus virtually turns to the virtual bus of respective numbers;And described device, comprising:
Scheduler, in the business datum for needing the virtual module in slave station equipment to handle the generation of at least one business module When, multi-carrier modulation is carried out to the business datum and obtains the modulated signal of business datum;
The scheduler, is also used to the type of service according to the business datum, determine for handle the business datum from The logical address of virtual module in station equipment;
Data distributor includes to determine for the modulated signal to be sent to by the corresponding virtual bus of business module The slave station equipment of the corresponding virtual module of logical address.
13. device as claimed in claim 12, which is characterized in that
The scheduler, specifically for the MAC address three according to type of service, logical address and slave station equipment Corresponding relationship between person determines that the corresponding logical address of the type of service of the business datum is for handling the business number According to slave station equipment in virtual module logical address.
14. a kind of nonvolatile computer storage media, is stored with computer executable instructions, which is characterized in that the calculating Machine executable instruction is used to execute the method as described in claim 7 to 11 any claim.
15. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out the method as described in claim 7 to 11 any claim.
CN201810588808.4A 2018-06-08 2018-06-08 A kind of industrial field bus virtualization system, method and apparatus Pending CN109002405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810588808.4A CN109002405A (en) 2018-06-08 2018-06-08 A kind of industrial field bus virtualization system, method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810588808.4A CN109002405A (en) 2018-06-08 2018-06-08 A kind of industrial field bus virtualization system, method and apparatus

Publications (1)

Publication Number Publication Date
CN109002405A true CN109002405A (en) 2018-12-14

Family

ID=64601259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810588808.4A Pending CN109002405A (en) 2018-06-08 2018-06-08 A kind of industrial field bus virtualization system, method and apparatus

Country Status (1)

Country Link
CN (1) CN109002405A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181821A (en) * 2019-12-31 2020-05-19 山东有人信息技术有限公司 Master-slave communication system and method for multiple communication groups
CN112231074A (en) * 2020-05-06 2021-01-15 青岛鼎信通讯股份有限公司 Single-channel multi-task sharing multiplexing method
CN113992470A (en) * 2021-10-14 2022-01-28 上海艾为电子技术股份有限公司 Data sending method, data receiving method, master device, slave device and electronic device
CN114124614A (en) * 2021-11-22 2022-03-01 浙江华消科技有限公司 Signal transmission method and system, storage medium and electronic device
CN114338269A (en) * 2021-12-24 2022-04-12 北京东土科技股份有限公司 Data transmission method, device, broadband field bus equipment, system and medium
CN114422873A (en) * 2021-12-15 2022-04-29 浙江中控技术股份有限公司 Method, device and equipment for dynamically accessing industrial Internet identification analysis platform
CN115913817A (en) * 2023-01-28 2023-04-04 南京芯驰半导体科技有限公司 Multi-channel virtualization bus system, control method, chip and electronic equipment
CN116389188A (en) * 2023-04-10 2023-07-04 北京索英电气技术股份有限公司 Data transmission method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070300004A1 (en) * 2006-06-22 2007-12-27 Samsung Electronics Co., Ltd. Method and system of connecting between a single wireless device and plurality of hosts using a wireless USB
CN101374092A (en) * 2007-06-18 2009-02-25 Csi技术股份有限公司 Virtual field bus equipment
CN102368723A (en) * 2010-12-08 2012-03-07 深圳市亚特尔科技有限公司 System and method for realizing multiplex communication on local bus
CN107370839A (en) * 2017-06-29 2017-11-21 北京东土科技股份有限公司 The addressing method and relevant apparatus of industrial field device, system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070300004A1 (en) * 2006-06-22 2007-12-27 Samsung Electronics Co., Ltd. Method and system of connecting between a single wireless device and plurality of hosts using a wireless USB
CN101374092A (en) * 2007-06-18 2009-02-25 Csi技术股份有限公司 Virtual field bus equipment
CN102368723A (en) * 2010-12-08 2012-03-07 深圳市亚特尔科技有限公司 System and method for realizing multiplex communication on local bus
CN107370839A (en) * 2017-06-29 2017-11-21 北京东土科技股份有限公司 The addressing method and relevant apparatus of industrial field device, system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181821A (en) * 2019-12-31 2020-05-19 山东有人信息技术有限公司 Master-slave communication system and method for multiple communication groups
CN112231074A (en) * 2020-05-06 2021-01-15 青岛鼎信通讯股份有限公司 Single-channel multi-task sharing multiplexing method
CN113992470A (en) * 2021-10-14 2022-01-28 上海艾为电子技术股份有限公司 Data sending method, data receiving method, master device, slave device and electronic device
CN113992470B (en) * 2021-10-14 2023-06-16 上海艾为电子技术股份有限公司 Data transmitting method, data receiving method, master device, slave device and electronic device
CN114124614A (en) * 2021-11-22 2022-03-01 浙江华消科技有限公司 Signal transmission method and system, storage medium and electronic device
CN114124614B (en) * 2021-11-22 2023-06-13 浙江华消科技有限公司 Signal transmission method and system, storage medium and electronic device
CN114422873A (en) * 2021-12-15 2022-04-29 浙江中控技术股份有限公司 Method, device and equipment for dynamically accessing industrial Internet identification analysis platform
CN114422873B (en) * 2021-12-15 2023-12-08 浙江中控技术股份有限公司 Method, device and equipment for dynamically accessing industrial Internet identification analysis platform
CN114338269B (en) * 2021-12-24 2023-10-20 北京东土科技股份有限公司 Data transmission method, device, broadband field bus equipment, system and medium
CN114338269A (en) * 2021-12-24 2022-04-12 北京东土科技股份有限公司 Data transmission method, device, broadband field bus equipment, system and medium
CN115913817A (en) * 2023-01-28 2023-04-04 南京芯驰半导体科技有限公司 Multi-channel virtualization bus system, control method, chip and electronic equipment
CN116389188A (en) * 2023-04-10 2023-07-04 北京索英电气技术股份有限公司 Data transmission method and related device
CN116389188B (en) * 2023-04-10 2024-03-12 北京索英电气技术股份有限公司 Data transmission method and related device

Similar Documents

Publication Publication Date Title
CN109002405A (en) A kind of industrial field bus virtualization system, method and apparatus
JP6530520B2 (en) Real-time transmission method and apparatus based on industrial internet fieldbus architecture
US9294351B2 (en) Dynamic policy based interface configuration for virtualized environments
CN103475704B (en) A kind of method for virtual node configuration of Virtual group of planes application
TW201914271A (en) Interconnected region controller, interconnected region control method, and computer storage medium
CN103346981A (en) Virtual exchange method, related device and computer system
CN105490910B (en) Network communication method and client
JP2008294717A (en) Virtual network structure method and network system
US9614789B2 (en) Supporting multiple virtual switches on a single host
CN105159753A (en) Virtualization method and device for accelerator and centralized resource manager
CN112134801B (en) Method and device for processing segment identification SID and each node
CN103905309A (en) Method and system of data exchange between virtual machines
Khujamatov et al. Existing technologies and solutions in 5G-enabled IoT for industrial automation
CN105429811A (en) Network management system and method
CN102316043A (en) Port virtualization method, switch and communication system
CN106878480A (en) A kind of DHCP service process sharing method and device
CN105309029A (en) Allocation of shared resources for virtualized networking
WO2014160652A1 (en) Hardware acceleration for routing programs
Xia et al. Heterogeneous network access and fusion in smart factory: A survey
CN105264837B (en) A kind of Transmission system of data message, transmission method and equipment
CN112929206B (en) Method and device for configuring cloud physical machine in cloud network environment
CN103795621B (en) Virtual machine data exchange method and device, and physical host
CN110062396A (en) A kind of method and device configuring base station
Xu et al. A mathematical model and dynamic programming based scheme for service function chain placement in NFV
CN108777603A (en) A kind of data transmission method, device, storage medium and electronic equipment

Legal Events

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

Application publication date: 20181214

RJ01 Rejection of invention patent application after publication