CN108845964B - Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS) - Google Patents

Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS) Download PDF

Info

Publication number
CN108845964B
CN108845964B CN201810664178.4A CN201810664178A CN108845964B CN 108845964 B CN108845964 B CN 108845964B CN 201810664178 A CN201810664178 A CN 201810664178A CN 108845964 B CN108845964 B CN 108845964B
Authority
CN
China
Prior art keywords
cps
node
bus
master node
nodes
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.)
Active
Application number
CN201810664178.4A
Other languages
Chinese (zh)
Other versions
CN108845964A (en
Inventor
张伟功
王姗
周继芹
王晶
朱晓燕
王莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Capital Normal University
Original Assignee
Capital Normal University
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 Capital Normal University filed Critical Capital Normal University
Priority to CN201810664178.4A priority Critical patent/CN108845964B/en
Publication of CN108845964A publication Critical patent/CN108845964A/en
Application granted granted Critical
Publication of CN108845964B publication Critical patent/CN108845964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0615Address space extension
    • G06F12/063Address space extension for I/O modules, e.g. memory mapped I/O

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

A CPS master node dynamic identification method is characterized in that: after time synchronization is completed, the CPS master node M0 sends identification requests to all CPS nodes on the bus through global interrupt requests, other CPS master nodes complete identification of the master node M0 by reading configuration information of the master node M0, and a functional parameter read-write access mapping table and a method mapping table are established for the master node M0 in a memory of the CPS master node M0. Meanwhile, all other nodes will also send back an interrupt request requesting identification to the master node M0, and with the interrupt request, the master node M0 completes dynamic identification of other nodes by reading configuration spaces of other nodes. The invention provides a dynamic identification and access method of a CPS node, supports plug-and-play and drive-free access of CPS node equipment, and can improve heterogeneous access capability and access normalization of the CPS node.

Description

Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS)
Technical Field
The invention relates to a method for organizing functional modules of a physical information system (CPS), in particular to a method for dynamically accessing and identifying CPS nodes.
Background
The Cyber-Physical Systems (CPS) is a new-generation intelligent system which performs deep fusion of information processing and Physical perception by organically combining computing, communication and control technologies to realize coordinated work of computing resources and Physical resources. The CPS improves the capability of the system in the aspects of information processing, real-time communication, remote accurate control, automatic coordination of components and the like through high integration and interaction of a series of computing units and physical objects in a network environment, is a hybrid autonomous system with space-time multi-dimensional isomerism, and has the characteristics of real time, safety, reliability, high performance and the like. The CPS constructs a complex system with a plurality of elements in physical space and information space mapped with each other, interacted in time and efficiently cooperated by integrating advanced information technologies such as sensing, calculation, communication, control and the like and automatic control technologies, and realizes the on-demand response, rapid iteration and dynamic optimization of resource configuration and operation in the system.
CPS emphasizes close coupling of computation and physics, while also emphasizing networking, the core remains information processing. The data perception is the basis for realizing real-time analysis and scientific decision by the CPS and is the starting point of closed-loop flow of CPS data. It is an important objective of the CPS to control the execution units to act on the physical world by instructing them to evolve according to the desired state. In order to meet the requirements of ubiquitous access and multi-source perception fusion of sensors, the CPS has good adaptability to heterogeneous information, and dynamic exit and access of part of components in the system are allowed.
At present, a main approach for sensing data by the CPS is to rely on a wireless sensor network for data acquisition. However, in the fields of a large number of industrial production sites, embedded control and the like, due to the restriction of factors such as noise, signal attenuation, message collision and the like, the wireless sensor network is difficult to meet the application requirements in the aspects of real-time performance, accuracy, reliability and the like. Because the traditional embedded distributed processing system based on bus network connection lacks sufficient support in the aspects of bus rate, fault-tolerant capability, node synchronization, heterogeneous expansion and the like, the development requirements of the CPS in the aspects of heterogeneous access, dynamic connection, reliability, instantaneity and the like are difficult to meet. Meanwhile, most of various wireless networks and high-speed buses lack inter-device interrupt support, and good support is difficult to be provided for quick real-time response of inter-device events in CPS application.
A dynamically reconfigurable high-speed serial BUS (UM-BUS) is a high-speed serial BUS which is provided aiming at the system miniaturization and embedded integrated design, can organically unify redundancy fault tolerance and high-speed communication and has the remote expansion capability. As shown in fig. 1, it adopts a bus-type topology structure based on M-LVDS (multi-point Low Voltage Differential Signaling) technology, supports multi-node direct interconnection, can use 32 channels at most for concurrent transmission, and has a communication rate of 6.4 Gbps. In the communication process, if some channels have faults, the bus controller can monitor the faults in real time, dynamically distribute data to the remaining effective channels for transmission, and realize dynamic reconstruction, thereby carrying out dynamic fault tolerance on communication faults.
The UM-BUS adopts a communication mode of master-slave command response, and performs information interaction in a data packet mode. The communication nodes connected to the bus can be divided into a master node, a slave node and a monitoring node according to different functions, the bus communication process is always initiated by the master node, and the slave node responds to the bus communication process. The UM-BUS has the function of time synchronization and can ensure the accurate synchronization of time systems among all nodes of the BUS. The UM-BUS supports two modes of communication, Single Master (Single Master) communication and Multi Master (Multi Master) communication. In the multi-master mode, a plurality of master nodes can exist on the bus, and the plurality of master nodes need to compete for the use right of the bus through an arbitration mode of variable time slot rotation.
The UM-BUS BUS communication process can only be initiated by the main node, the main node can read and write access to internal functional units of other nodes according to addresses, and three address spaces including an IO space, a storage space and an attribute space can be supported, wherein the size of the attribute space is 1KB, the size of the IO space is 64KB, and the size of the storage space is 256 TB. Technical support can be provided for plug and play of sensors and execution units in the CPS, data method attribute encapsulation, high-speed reliable connection, heterogeneous real-time access and the like.
The UM-BUS supports interrupt processing, and any node on the BUS may make an interrupt request to any one or more BUS nodes via a common interrupt signal line.
Aiming at the application requirements of the CPS, the invention provides a CPS main node dynamic identification and management organization method based on the characteristics of a UM-BUS BUS, which is used for meeting the development requirements of the CPS in the aspects of heterogeneous access, dynamic organization, standardized extension and the like.
Disclosure of Invention
The invention aims to design a dynamic identification method of a CPS main node based on UM-BUS BUS, which provides support for CPS node plug and play, heterogeneous access, difference shielding, standardized extension and drive-free application.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a CPS main node dynamic identification method based on UM-BUS BUS is characterized in that: the CPS system adopts UM-BUS as a communication BUS, nodes in the CPS system are divided into CPS main nodes and CPS slave nodes, one CPS main node M0 is added into the system or reset, and the following methods and steps are adopted to dynamically identify other CPS nodes connected in the system and are identified by other CPS main nodes:
(1) the CPS main node M0 sends a global interrupt request requesting for identification to the UM-BUS, requests all other CPS main nodes connected to the UM-BUS to identify the CPS main node and requests to identify other CPS nodes;
(2) after receiving a global interrupt request which is sent by a CPS master node M0 and is requested to identify, all CPS slave nodes connected to the UM-BUS BUS send an interrupt request which is requested to identify to a CPS master node M0 through the UM-BUS BUS, and the CPS master node M0 is requested to identify and load the CPS slave nodes;
(3) after receiving a global interrupt request which is sent by a CPS main node M0 and is requested to identify, other CPS main nodes connected on an UM-BUS firstly read configuration information of an attribute space of the CPS main node M0 through the UM-BUS, establish a function parameter read-write access mapping table and a method mapping table for the CPS main node M0 in a memory, and complete dynamic identification of the CPS main node M0; then, an interrupt request requesting for identification is sent to the CPS master node M0, and the CPS master node M0 is requested to identify and load the CPS master node;
(4) after receiving an interrupt request of a request identification sent by other CPS nodes, the CPS master node M0 reads an attribute space of the CPS node of which the sending request identification is interrupted, establishes a functional parameter read-write access mapping table and a method mapping table for the CPS node of which the sending request identification is interrupted in a memory of the CPS master node M0 according to configuration information of the attribute space, loads a method code of the CPS node of which the sending request identification is interrupted into the memory of the CPS master node M0, and completes dynamic identification of the CPS node of which the sending request identification is interrupted.
The CPS main node dynamic identification method can realize automatic identification and drive management of other CPS nodes after the CPS main node accesses the BUS through UM-BUS BUS global interruption and attribute space, and enables other CPS main nodes on the BUS to also identify the CPS main nodes and map data and methods for the CPS main nodes. The CPS system based on the invention can support the non-difference organization fusion of different types of CPS nodes, avoids the requirement of pre-installation of CPS node driving programs, solves the problems of CPS node heterogeneous fusion and dynamic access, can improve the heterogeneous access capability and the access normalization of the CPS nodes, and is beneficial to the standardized upgrading maintenance of the CPS system.
Drawings
FIG. 1 is a diagram of the topology of the UM-BUS BUS;
FIG. 2 is a diagram of a UM-BUS protocol hierarchy model;
FIG. 3 is a diagram illustrating the UM-BUS data transfer process and data path;
FIG. 4 is a schematic diagram of a UM-BUS interrupt signal line connection;
FIG. 5 is a diagram of a CPS master node method mapping area structure;
FIG. 6 is a schematic diagram of the overall layout and storage structure of the CPS node method area;
FIG. 7 is a CPS master node data mapping table structure diagram;
FIG. 8 is a diagram of the CPS slave node dynamic identification process;
fig. 9 is a diagram of a CPS master node dynamic identification process.
Detailed Description
As shown in fig. 1, the UM-BUS adopts a multi-channel intelligent dynamic redundancy BUS type topology based on M-LVDS (TIA/EIA-899), and at most 30 communication nodes are directly interconnected without routing or relaying equipment; the data are transmitted by using 2-32 channels, and the maximum communication rate can reach 6.4 Gbps; if the channel fails, the failed channel can be automatically shielded through the channel dynamic redundancy and fault reconstruction technology, and communication is continued on the remaining healthy channels; the communication mode of master-slave command response is adopted, so that remote storage access and non-intelligent expansion capability can be provided for the system.
The nodes on the UM-BUS BUS can be divided into a main node, a slave node and a monitoring node according to different functions, a communication process can only be initiated by the main node and responded by the slave node or other main nodes, and the monitoring node is used for monitoring the communication process on the BUS. The nodes exchange information in the form of data packets. The UM-BUS BUS main node can read and write access to internal functional units of other nodes according to addresses, and can support three address spaces of an IO space, a storage space and an attribute space, wherein the IO space and the attribute space can only carry out read and write access according to words and cannot be buffered, and the storage space can only carry out read and write access according to pages and needs to be buffered locally.
The communication protocol hierarchical model of the UM-BUS is shown in fig. 2, and comprises a processing layer, a data link layer and a physical layer from top to bottom, wherein the processing layer is responsible for management of the whole BUS, protocol encapsulation and conversion of an upper application interface. The data link layer is divided into a transmission sublayer and an MAC sublayer, and the transmission sublayer carries out grouping and dynamic reconstruction on data according to the existing effective line; the MAC sublayer is responsible for communication line detection, provides channel health conditions for the transmission sublayer, completes secondary packaging and unpacking of channel transmission information, and achieves time synchronization of bus nodes. The physical layer is the bottom layer of the protocol, provides transmission media and interconnection equipment for data communication, realizes the physical connection of the network, completes the functions of serial-parallel conversion, 8b/10b coding and decoding, clock synchronization and the like, and provides a reliable communication basis for the bus.
The bus nodes transmit data between different protocol layers in the form of data packets during communication, and the data transmission process is shown in fig. 3. When data communication is carried out, at a sending end, a processing layer obtains data from an upper layer interface and stores the data into a data buffer area, a transmission sublayer dynamically and uniformly distributes data packets to effective channels according to effective line information provided by an MAC sublayer, and a physical layer packages the grouped data and encodes the packed data into bit streams through 8b/10b to send the bit streams to a link. At the receiving end, the physical layer carries out clock synchronization, 8b/10b decoding and serial-parallel conversion on the received data, then unpacks the channel data, dynamically organizes the data according to the effective line information provided by the MAC sublayer at the transmission sublayer and stores the data in a data buffer area, and finally the processing layer delivers the data to the application layer for processing.
In the multi-master communication mode, the master node must obtain the bus use right before sending data from the physical layer to the bus, and a bus communication process is started. The UM-BUS has a time synchronization function, and all nodes on the UM-BUS are in a time synchronization state during work.
The UM-BUS BUS has a dedicated shared interrupt signal line between all nodes. As shown in fig. 4, all nodes of the bus may send an interrupt request signal to the shared interrupt signal line by using an OC (open collector) or an equivalent manner and using a serial encoding manner, and raise an interrupt request to the bus master node; meanwhile, all nodes can also receive signals from the shared interrupt line to acquire information transmitted on the interrupt line.
Based on the UM-BUS working principle, a specific implementation manner of the CPS master node dynamic identification method of the present invention is as follows:
for convenience in description, it is assumed that the UM-BUS is adopted by the CPS system as a communication BUS, the BUS has 6 master nodes and 10 slave nodes, which are respectively equal to a CPS master node and a CPS slave node in the CPS system, the node number of each CPS master node is defined as 1-6, and the node number of each CPS slave node is defined as 11-20.
TABLE 1 Attribute space definition
Figure BDA0001707194940000061
In order to realize the standardized operation of UM-BUS node equipment in a CPS system and meet the requirements of heterogeneous fusion and dynamic access, the attribute space of the UM-BUS is utilized to realize software-defined virtualization equipment, and the consistent operation of heterogeneous equipment is realized through a standardized interface and a standardized method defined by the attribute space.
UM-BUS BUS node attribute space setting
The 1KB attribute space of each node on the UM-BUS is divided into three parts, a node description area (32 words, 128B), a reserved area (32 words, 128 bytes) and a function attribute definition area (maximum 192 words, 768 bytes), as shown in table 1. The node description area is used for describing and defining the basic characteristics of the UM-BUS BUS node, the reserved area is used for future expansion, the number of the function attribute definition areas can be 0-4 according to needs, and at most, 4 specific functions can be specifically defined. One UM-BUS BUS node can support four function combinations at most, and a function attribute definition area can be set for each function through an attribute space to perform software definition on the functions.
1. Node description area
The node description area has 32 words (128 bytes) in total, occupies attribute space addresses 0-124, and defines node numbers, interrupt control, space requirements, function classification, global methods, node names and the like.
(1) Node number and basic attribute
The 0 th word is a node number and basic attributes and is divided into 4 bytes, the lowest byte is a node number, bits 4-0 are UM-BUS BUS node numbers, and the effective value is 1-30; the next lower byte is a node type attribute, a bit 7 (the highest bit) is 1 to indicate that the node has the master node capability, a bit 6 is 1 to indicate that the node has the slave node capability, a bit 5 is 1 to indicate that the node has the time master node capability, a bit 4 is 1 to indicate that the node has the interrupt request capability, and a bit 3 is 1 to indicate that the node has the interrupt processing capability; the next high byte is a node function attribute, the bits 2-0 are 0 to represent that the node has no specific function area, the bits 1-4 represent that the node has 1-4 combined functions, and 1-4 function attribute areas are used for defining the specific attribute and method of each function; the highest byte is reserved for future expansion.
(2) Interrupt control
The interrupt control is 5 words in total, address 4 is a forced reset register, and writing 0x1005 into the register resets the node device; the address 8 is an interrupt mask register, the bit 15-0 corresponds to the interrupt request 15-0, the corresponding interrupt request is masked when the bit is 1, and only the interrupt of number 0 is allowed after resetting; address 12 is an interrupt identification register, bits 15-0 correspond to interrupt requests 15-0, respectively, a 1 indicates that the corresponding interrupt request is active at a high level, otherwise, the rising edge is active; address 16 is an interrupt force register, bits 15-0 correspond to interrupt requests 15-0, respectively, and writing 1 indicates forcing the corresponding interrupt request; address 20 is reserved for future extensions.
(3) Space mapping requirements
The address 24 is an IO space address requirement register, the bits 15-0 are the size of IO space required by the slave node when the slave node performs unified address mapping in the master node, the unit is byte, and one slave node can only map 64KB of IO space at most. Address 28 is a memory space address requirement register and bits 15-0 indicate the number of blocks of memory space required for the slave node to perform the unified address mapping in the master node, each block being 64 KB. Therefore, a slave node can only map 4GB of memory at most. When the memory space is accessed, if the range of more than 4GB is needed, a block mapping mode can be adopted, and the upper 16-bit address is independently designated through the bits 31-16.
(4) Definition of functions
The address 32 is a function encoding register, which is divided into 4 bytes, the lowest byte is a function classification, the next lowest byte is a function subclass encoding, and the highest byte and the next highest byte are reserved for future expansion.
The addresses 36, 40 are two words reserved for future expansion.
The addresses 44, 48 are node global method area indices, including the starting address and size of the method area. The initial address is 48 bits, and the initial address of the global method in the storage space of the node is specified. Address 44 is the lower 32 bits of the start address and the lower 16 bits of address 48 are the upper 16 bits of the start address. The upper 16 bits of address 48 are the size of the global method area, which is expressed in 256 byte blocks, i.e., the maximum of 16 MB.
The address 52 is a functional attribute area definition register, and is divided into 4 bytes, which represent the number of functional attribute definition area words of four functions 1, 2, 3, and 4 in the order of the lowest byte (bits 7-0), the next lowest byte (bits 15-8), the next highest byte (bits 23-16), and the highest byte (bits 31-24). A function attribute definition area is 10 words at the minimum and 140 words at the maximum, so that the value range of each byte is 10-140. If the function attribute definition area does not exist, i.e., there is no corresponding function, the corresponding byte should be 0.
The addresses 56, 60 are two words reserved for future expansion.
(5) Name definition
The address 64-76 is four words, 16 bytes in total, is used for setting the name of the node, adopts Unicode encoding, and can represent 8 characters in total by representing one character every two bytes. The address 80-92 is four words and has 16 bytes, is used for setting the name of the node manufacturer, adopts Unicode coding, and can represent one character every two bytes and can represent 8 characters in total. The addresses 96-124 are reserved for a total of 8 words for future expansion.
2. Function attribute definition region
The UM-BUS BUS node supports at most four function combinations, a function attribute definition area is set for each function, and abstract definition is carried out on attribute configuration, IO operation and processing methods of the function attribute definition area so as to support standardized operation of heterogeneous equipment. A UM-BUS node includes at least one functional attribute definition area, and may include up to four functional attribute definition areas. The function attribute definition area defines a processing method and an operation address related to one function module by adopting a normative structure, so that the heterogeneous versions can be subjected to unified normative operation on software.
The function attribute definition area comprises a basic attribute definition and an operable attribute definition. The basic attribute definition is fixed to 10 words, and must have a basic attribute definition if a functional attribute definition area exists. And the operation attribute is selected and realized according to the function requirement.
(1) Fundamental attribute definition
The basic attribute definition includes a function code, name and operation attribute configuration, for a total of 10 words and 40 bytes.
The function code occupies the first word and is divided into 4 bytes, the lowest byte is the function classification, the next lowest byte is the function subclass coding, and the highest byte and the next highest byte are reserved for future expansion.
The 2 nd to 5 th words are function names and have 16 bytes, are coded by Unicode, and each two bytes represent one character and can represent 8 characters in total.
Word 6 is an operation attribute configuration word, divided into 4 bytes. Reserving the highest byte; a next-highest byte bit of 0 of 1 indicates that a functional method storage area exists, otherwise, no functional method storage area exists; the next lower byte is the size of the direct access attribute area, the value is 0-64, 0 represents that the attribute area is not directly accessed, and 1-64 represents the number of words directly accessed to the attribute area; the minimum byte is the size of the IO space mapping attribute area (indirect access attribute area), the value is 0-64, 0 represents that no IO space mapping attribute area exists, and 1-64 represents the number of words in the IO space mapping attribute area. In this embodiment, the operation attribute configuration words in the four function attribute definition areas are 0x00011020, 0x00010C00, 0x00000800, and 0x00010040, respectively, and indicate that: function 1, 2, 4 has a function method storage area, function 3 has no function method storage area; the direct access attribute area numbers of functions 1, 2 and 3 are respectively 16, 12 and 8, and function 4 has no direct access attribute area; the numbers of IO space mapping attribute areas of functions 1 and 4 are 32 and 64, respectively, and functions 2 and 3 have no IO space mapping attribute area.
Words 7-10 are reserved for future expansion.
(2) Operation attribute definition
The operating attributes of the UM-BUS node functions are divided into four categories:
1) and the function method attribute uses 2 words and 8 bytes to provide the storage starting address and size of the function method code in the node storage space in the operation attribute definition area. The starting address is 48 bits, the first word is the lower 32 bits of the starting address and the lower 16 bits of the second word are the upper 16 bits of the starting address. The upper 16 bits of the second word are the size of the functional method area, which is expressed in terms of the number of 256-byte blocks, and thus the maximum of the functional method area is 16 MB.
2) The direct access data can define 64 direct access addresses at most in the operation attribute area, and the read-write access to the functional data can be directly completed by reading and writing the addresses of the direct access data.
3) And indirectly accessing data, defining 64 IO space mapping addresses at most in an operation attribute area, respectively storing a node IO space address, and completing read-write access on the functional data through the read-write access of the IO space addresses.
4) The proprietary data, which is related to the specific implementation of the node, may be in the IO space or in the storage space.
The operation attribute definition region supports the standardized definition of the function method attribute, the direct access data attribute and the indirect access data attribute, and the system software can adopt the same software to carry out unified processing on the heterogeneous realization of the same function as long as the same attribute definition is used.
Table 1 gives an example of a function attribute definition area of a bus node including four combinations of functions.
Second, method area storage format
The UM-BUS node may include a global approach to support system initialization, common operation, and interrupt handling functions of the node device and a functional attribute approach to specifically handle data processing, attribute setting, and drive control of specific functions. The global method and the function attribute method both adopt the same storage structure to be solidified in the storage space of the node, and after the system is reset, the main node is dynamically loaded into the local memory of the processor to run according to the requirement. And respectively providing storage starting addresses and ranges of the global method and the function attribute method in the node storage space in the node description area and the function attribute definition area. The method area occupies 16MB at most, 256B memory blocks are taken as basic growth units, the memory start address must be 256B boundary alignment, and the memory format is as shown in FIG. 5, which comprises three parts, namely a method description area, a method mapping area and a method entity area. Fig. 6 shows the overall layout and storage organization of the CPS node method area.
1. Method description area
The method description area has 16 words and 64 bytes, the lowest byte of the 1 st word is used for indicating the total number of methods of the method area, the value range is 0-128, and the other three bytes are reserved. Thus, each method region contains a minimum of 0 methods and a maximum of 128 methods. When the total number of methods of the method area is 0, there is no method mapping area and method entity area. The remaining 15 words of the method description area are 60 bytes, and the method is simply explained by using ASCII codes and can comprise information such as copyright, name, version and the like.
2. Method mapping zone
The method mapping area is used for providing indexes for each specific method and establishing an index item for each method. An index entry occupies 8 words (32 bytes) and includes a method name, a method offset, a method parameter, and a reserved field. The method name occupies 16 bytes, and the ASCII code is adopted to represent the method. The method offset occupies 4 bytes, and the offset of the method code entry in the initial address of the method area is given; the method parameter has 4 bytes in total, 4 parameter definitions are supported, 0 represents that the parameter does not exist, 1 represents a numerical parameter, and 2 represents a pointer parameter. The reserved field is 8 bytes in total for future expansion.
3. Method entity area
The method entity area is used for storing entity codes and data supporting the operation of the method, and comprises not only execution codes of the method, but also supporting codes and data required by the execution of the method codes, and other data and codes defined by a user.
Third, access method of function parameter
Based on the UM-BUS attribute space definition, in the CPS system, the specific access method for the node function parameters is as follows:
(1) for attribute definition data of the attribute space, directly performing read-write access in an attribute space data access mode of the UM-BUS;
(2) for the special data of the nodes, read-write access is carried out through an attribute method, and also can be carried out according to an appointed IO address or a storage address;
(3) for direct access data and indirect access data defined in the attribute space, performing read-write access according to the following method and steps:
1) as shown in fig. 7, in the CPS master node, an address mapping table consisting of three parts, namely a node number, a space identifier and a storage address, is established for each data of the CPS slave node, and the address mapping table of all data of each function constitutes an independent attribute data address mapping table. Wherein the node number is the node number of the CPS slave node; the space identification indicates whether the data is in an IO space or an attribute space, and can also comprise other attributes such as reading, writing, size and the like of the data; the storage address is the storage location of the data in the space corresponding to the CPS slave node.
2) When the CPS slave node is initialized, the CPS master node acquires the storage addresses of the direct access data and the indirect access data one by one from each function attribute definition area, takes the acquired storage addresses as the storage addresses of the data address mapping, and sets a space identifier and a node number for the data address mapping.
3) And when the CPS master node performs read-write access on the functional data, acquiring corresponding address mapping from an attribute data address mapping table corresponding to the function, and performing read-write operation on corresponding addresses of corresponding spaces of the CPS slave nodes through the UM-BUS BUS according to the node numbers, the space identifications and the storage addresses of the address mapping.
Dynamic loading method of function processing method
In the CPS system, a CPS main node needs to load function methods of other nodes, and in the dynamic loading process, for any CPS main node, the other CPS nodes are used as CPS slave nodes, and the function methods are loaded into the main node.
The global method and the function processing method are dynamically loaded and called when the node is initialized and the system is applied. When a CPS slave node is initialized, the following steps and methods are adopted for dynamic loading and calling:
(1) the CPS master node firstly reads the attribute space of the CPS slave node and acquires the configuration information of the global method area and the function processing method area of the CPS slave node;
(2) the CPS main node establishes a method loading area for the CPS slave node in a CPS main node memory according to the storage space requirements of a global method area and a function processing method area of the CPS slave node, wherein the method loading area comprises an interrupt processing method area, a global method area and a function method area;
(3) copying all method codes of the CPS slave nodes to corresponding areas of a CPS main node method loading area through an UM-BUS BUS;
(4) establishing a method mapping table in the CPS master node, indicating the initial address and the size of the occupied memory for each method of the CPS slave node, and arranging the methods in the mapping table according to the ASCII code sequence of names so as to facilitate retrieval;
(5) when the application program in the CPS main node calls the function method of the CPS slave node, firstly, the method name and the parameters are searched and matched in a method mapping table, then, the corresponding mapping address is transferred, and a specific method code is called for processing.
Fifth, dynamic identification method of function module
1. Dynamic identification method of slave node
Based on the UM-BUS, the CPS master node dynamically identifies CPS slave nodes using the following methods and steps, as shown in fig. 8. For convenience of description, without loss of generality, it is assumed that the CPS slave node S0 is a slave node to be identified, and is identified by any CPS master node Mx in the CPS system.
(1) After a CPS slave node S0 is added into the system or reset, firstly, time synchronization is completed according to UM-BUS specifications, then a global interrupt request requesting identification is sent to the UM-BUS, and all CPS master nodes connected to the UM-BUS are requested to identify the CPS slave node S0;
(2) after receiving the global interrupt request identified by the request of the CPS slave node S0, one CPS master node Mx on the UM-BUS is processed according to the following steps:
reading the attribute space of a CPS slave node S0 to obtain basic attribute information of a CPS slave node S0; judging according to the basic attribute information of the CPS slave node S0, and if the CPS slave node S0 is identified, then turning to the step (four); otherwise, go to step two to continue to carry out;
establishing a method loading area for the CPS slave node S0 in a memory, reading configuration information of a global method area and a function attribute method area of an attribute space of the CPS slave node S0, establishing a method mapping table for all interrupt processing methods, global methods and function methods of the CPS slave node S0, moving method codes on the CPS slave node S0 to a memory of a CPS master node Mx, and transferring to the step III;
reading the direct data attribute and indirect data attribute definition area information of the CPS slave node S0, establishing a functional parameter read-write access mapping table for the CPS slave node S0 in a memory, establishing an address mapping containing three parts of information of a node number, a space identifier and a storage address for each data, and turning to the step IV; when a CPS master node Mx establishes a functional parameter read-write access mapping table for a CPS slave node S0, mapping the addresses of all attribute data of each function of the CPS slave node S0 to form an independent functional parameter read-write access mapping table;
fourthly, when the CPS master node Mx accesses the data of the CPS slave node S0, the data of the CPS slave node S0 are accessed by reading and writing an access mapping table through the functional parameters; when the method of the CPS slave node S0 is called, the corresponding method code is executed through a method mapping table in the memory of the CPS master node Mx.
(3) In the process of dynamically identifying the slave nodes, after each CPS master node on the UM-BUS receives a global interrupt request identified by a request sent by the CPS slave node S0, required BUS access is sequentially carried out on the CPS slave node S0 according to a multi-master arbitration method of the BUS.
2. Dynamic identification method of main node
Based on the UM-BUS, the CPS master node dynamically identifies the CPS slave nodes on the BUS by the following method and steps, and is dynamically identified by other master nodes on the BUS, as shown in FIG. 9, and the layout of the internal structures of the UM-BUS address space and the host memory space is the same as that of FIG. 8. For convenience of description, without loss of generality, the CPS master node M0 is assumed to be the master node to be identified.
(1) After a CPS main node M0 is added into the system or reset, firstly, time synchronization is completed according to UM-BUS specifications, then a global interrupt request for identification is sent to the UM-BUS, and other CPS main nodes connected to the UM-BUS are requested to identify the CPS main node and request to identify other CPS nodes;
(2) after receiving a global interrupt request which is sent by a CPS master node M0 and is requested to identify, all CPS slave nodes connected to the UM-BUS BUS send an interrupt request which is requested to identify to a CPS master node M0 through the UM-BUS BUS, and the CPS master node M0 is requested to identify and load the CPS slave nodes;
(3) after receiving a global interrupt request which is sent by a CPS main node M0 and is requested to identify, other CPS main nodes connected on an UM-BUS firstly read configuration information of an attribute space of the CPS main node M0 through the UM-BUS, establish a function parameter read-write access mapping table and a method mapping table for the CPS main node M0 in a memory, and complete dynamic identification of the CPS main node M0; then, an interrupt request requesting for identification is sent to the CPS master node M0, and the CPS master node M0 is requested to identify and load the CPS master node; each CPS master node on the UM-BUS sequentially accesses the CPS master node M0 according to a multi-master arbitration method of the UM-BUS.
(4) After receiving an interrupt request of a request identification sent by other CPS nodes, the CPS master node M0 reads an attribute space of the CPS node of which the sending request identification is interrupted, establishes a functional parameter read-write access mapping table and a method mapping table for the CPS node of which the sending request identification is interrupted in a memory of the CPS master node M0 according to configuration information of the attribute space, loads a method code of the CPS node of which the sending request identification is interrupted into the memory of the CPS master node M0, and completes dynamic identification of the CPS node of which the sending request identification is interrupted.
The CPS main node dynamic identification method is based on UM-BUS BUS, provides a method for CPS main node to dynamically identify and manage other CPS nodes on the BUS and dynamically identify and manage other CPS main nodes on the BUS, can avoid the requirement of pre-deployment of CPS slave node driving program on CPS main node, realizes driving-free application, can improve the fusion capability of heterogeneous CPS nodes, and is beneficial to the standardized upgrading and maintenance of CPS system.
The present invention may have various modifications within the scope not departing from the spirit of the invention, such as: other forms of buses, networks, etc. may be used, and may vary from implementation to implementation. Such variations are also intended to be included within the scope of the invention as claimed.

Claims (3)

1. A CPS main node dynamic identification method based on UM-BUS BUS is characterized in that: the CPS system adopts an UM-BUS BUS as a communication BUS, and nodes in the CPS system are divided into a CPS main node and CPS slave nodes; in each node, node configuration information is established by using a node attribute space which can be accessed through an UM-BUS BUS, a node description area and function attribute definition areas are arranged in the node attribute space, the node description area describes and defines the basic characteristics of the node, the number of the function attribute definition areas can be 0-4, the specific functions and methods of the node are defined, and each function attribute definition area defines the processing method and the operation address related to one function module; after a CPS master node M0 is added to the system or reset, other CPS nodes connected in the system are dynamically identified and identified by other CPS master nodes using the following methods and steps:
(1) the CPS main node M0 sends a global interrupt request requesting for identification to the UM-BUS, requests all other CPS main nodes connected to the UM-BUS to identify the CPS main node and requests to identify other CPS nodes;
(2) after receiving a global interrupt request which is sent by a CPS master node M0 and is requested to identify, all CPS slave nodes connected to the UM-BUS BUS send an interrupt request which is requested to identify to a CPS master node M0 through the UM-BUS BUS, and the CPS master node M0 is requested to identify and load the CPS slave nodes;
(3) after receiving a global interrupt request which is sent by a CPS main node M0 and is requested to identify, other CPS main nodes connected on an UM-BUS firstly read configuration information of an attribute space of the CPS main node M0 through the UM-BUS, establish a function parameter read-write access mapping table and a method mapping table for the CPS main node M0 in a memory, and complete dynamic identification of the CPS main node M0; then, an interrupt request requesting for identification is sent to the CPS master node M0, and the CPS master node M0 is requested to identify and load the CPS master node;
(4) after receiving an interrupt request of a request identification sent by other CPS nodes, the CPS master node M0 reads an attribute space of the CPS node of which the sending request identification is interrupted, establishes a functional parameter read-write access mapping table and a method mapping table for the CPS node of which the sending request identification is interrupted in a memory of the CPS master node M0 according to configuration information of the attribute space, loads a method code of the CPS node of which the sending request identification is interrupted into the memory of the CPS master node M0, and completes dynamic identification of the CPS node of which the sending request identification is interrupted.
2. The CPS master node dynamic identification method of claim 1, wherein: after the CPS master node M0 is added into the system or reset, the UM-BUS time synchronization is firstly completed, and then the global interrupt request for requesting identification is sent to the UM-BUS.
3. The CPS master node dynamic identification method of claim 1, wherein: after receiving the global interrupt request identified by the request sent by the CPS master node M0, each CPS master node on the UM-BUS sequentially accesses the CPS master node M0 according to the multi-master arbitration method of the UM-BUS.
CN201810664178.4A 2018-06-25 2018-06-25 Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS) Active CN108845964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810664178.4A CN108845964B (en) 2018-06-25 2018-06-25 Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810664178.4A CN108845964B (en) 2018-06-25 2018-06-25 Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS)

Publications (2)

Publication Number Publication Date
CN108845964A CN108845964A (en) 2018-11-20
CN108845964B true CN108845964B (en) 2021-04-09

Family

ID=64202697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810664178.4A Active CN108845964B (en) 2018-06-25 2018-06-25 Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS)

Country Status (1)

Country Link
CN (1) CN108845964B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585859B (en) * 2020-04-30 2021-08-10 首都师范大学 Information physical system capable of multi-level expansion
CN111586031B (en) * 2020-04-30 2021-08-10 首都师范大学 Sensor convergence access method of information physical system
WO2021248286A1 (en) * 2020-06-08 2021-12-16 首都师范大学 Multi-level scalable cyber-physical system and sensor convergence access method
CN114968874B (en) * 2022-05-13 2024-02-06 无锡力芯微电子股份有限公司 Quick parallel interrupt detection circuit suitable for multi-sensor system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866455A (en) * 2015-06-10 2015-08-26 首都师范大学 Multi-master arbitration method in dynamic reconfigurable high-rate serial bus
CN104951385A (en) * 2015-07-09 2015-09-30 首都师范大学 Channel health state recording device of dynamic reconfigurable bus monitoring system
CN105677607A (en) * 2015-12-30 2016-06-15 华自科技股份有限公司 SPI bus topological structure
CN107566543A (en) * 2017-08-28 2018-01-09 沈阳东软医疗系统有限公司 A kind of node identification method to set up and device
CN108199867A (en) * 2017-12-20 2018-06-22 北京城市系统工程研究中心 A kind of network-building method and data transmission method of wired sensor network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605623B2 (en) * 2002-05-31 2013-12-10 Koninklijke Philips N.V. Determining and configuring a communication path in a network
DE102013201106B4 (en) * 2013-01-24 2014-12-11 Smiths Heimann Gmbh Bus node and bus system and method for identifying the bus node of the bus system
US20150012679A1 (en) * 2013-07-03 2015-01-08 Iii Holdings 2, Llc Implementing remote transaction functionalities between data processing nodes of a switched interconnect fabric

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866455A (en) * 2015-06-10 2015-08-26 首都师范大学 Multi-master arbitration method in dynamic reconfigurable high-rate serial bus
CN104951385A (en) * 2015-07-09 2015-09-30 首都师范大学 Channel health state recording device of dynamic reconfigurable bus monitoring system
CN105677607A (en) * 2015-12-30 2016-06-15 华自科技股份有限公司 SPI bus topological structure
CN107566543A (en) * 2017-08-28 2018-01-09 沈阳东软医疗系统有限公司 A kind of node identification method to set up and device
CN108199867A (en) * 2017-12-20 2018-06-22 北京城市系统工程研究中心 A kind of network-building method and data transmission method of wired sensor network

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Design of the UM-BUS Data Link Layer;Deng Zhe;《2013 Fourth International Conference on Intelligent Systems Design and Engineering Applications》;IEEE;20140630;全文 *
UM-BUS总线及接入式体系结构;张伟功 等;《电子学报》;20150930(第9期);全文 *
动态可重构总线数据传输管理方法设计与实现;邓哲 等;《计算机工程》;20130131;第39卷(第1期);全文 *

Also Published As

Publication number Publication date
CN108845964A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN108845964B (en) Dynamic identification method for CPS (cyber physical system) main node based on UM-BUS (UM-BUS)
CN108829624B (en) CPS node attribute data and function method code storage and organization method
US9667699B2 (en) Method for transmitting data via a CANopen bus
CN102739654B (en) Method for realizing application program to access database
CN114048164B (en) Chip interconnection method, system, device and readable storage medium
CN111797051B (en) System on chip, data transmission method and broadcast module
CN106534178B (en) System and method for realizing RapidIO network universal socket
US20130179621A1 (en) Extensible daisy-chain topology for compute devices
CN108845965B (en) Dynamic identification method for CPS slave node based on UM-BUS BUS
CN108563501B (en) Interrupt request method and device for dynamic reconfigurable high-speed serial bus
CN115102780B (en) Data transmission method, related device, system and computer readable storage medium
CN104063300A (en) Acquisition device based on FPGA (Field Programmable Gate Array) for monitoring information of high-end multi-channel server
US11714776B2 (en) Enabling a multi-chip daisy chain topology using peripheral component interconnect express (PCIe)
CN106873541A (en) A kind of EtherCAT Distributed Servo kinetic control systems based on DSP
CN110798479B (en) Interoperation device and method for dynamically reconfigurable high-speed serial bus and Ethernet
CN108845966B (en) CPS node function parameter access method
CN204291029U (en) A kind of Internet of Things cloud gateway
CN108919756B (en) Method for loading and calling CPS node function processing method
CN109525472B (en) Bus communication conversion circuit, device and system
CN111585859B (en) Information physical system capable of multi-level expansion
CN114915499B (en) Data transmission method, related device, system and computer readable storage medium
CN105491082A (en) Remote resource access method and switch equipment
CN105630727A (en) Access method, apparatus and system among multi-SoC nodes
CN208569619U (en) The interrupt request device of dynamic reconfigurable high-speed serial bus
CN111586031B (en) Sensor convergence access method of information physical system

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
GR01 Patent grant
GR01 Patent grant