[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109547310B - Modular bus data receiving method - Google Patents

Modular bus data receiving method Download PDF

Info

Publication number
CN109547310B
CN109547310B CN201811311324.1A CN201811311324A CN109547310B CN 109547310 B CN109547310 B CN 109547310B CN 201811311324 A CN201811311324 A CN 201811311324A CN 109547310 B CN109547310 B CN 109547310B
Authority
CN
China
Prior art keywords
data
bus
partition
mask
receiving
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
CN201811311324.1A
Other languages
Chinese (zh)
Other versions
CN109547310A (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.)
Xian Aircraft Design and Research Institute of AVIC
Original Assignee
Xian Aircraft Design and Research Institute of AVIC
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 Xian Aircraft Design and Research Institute of AVIC filed Critical Xian Aircraft Design and Research Institute of AVIC
Priority to CN201811311324.1A priority Critical patent/CN109547310B/en
Publication of CN109547310A publication Critical patent/CN109547310A/en
Application granted granted Critical
Publication of CN109547310B publication Critical patent/CN109547310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/4028Bus for use in transportation systems the transportation system being an aircraft

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the aviation bus data receiving and distributing technology, and relates to a convenient modular bus data receiving method. The invention encodes the data packet distribution destination according to the form of the sending mask by establishing the bus receiving table, and realizes the automatic distribution of data by comparing with the partition mask. The invention modularizes the core part of data receiving and distributing, only needs to update and maintain the bus receiving table when the content, quantity or distribution demand of the data packet changes, the main software program does not need to change.

Description

Modular bus data receiving method
Technical Field
The invention belongs to the aviation bus data receiving and distributing technology, and relates to a convenient modular bus data receiving method.
Background
With the rapid development of avionics and digitization technologies, an aviation electromechanical bus becomes a nerve center of an electromechanical system and has a very important position, the electromechanical system is more and more complex in function cross-linking, the data volume transmitted on the bus is gradually increased, the data content and distribution requirement of the bus are frequently changed in the initial stage of project development, and how to quickly and effectively receive and distribute bus data is one of key technologies for electromechanical system design.
The bus data transceiver module in the electromechanical system needs to acquire data packets sent by other systems from the bus and distribute the data to each destination partition for subsequent data processing according to the system function requirements. In the traditional method, each specific data message is judged, and after the data message is received, the data is distributed to each destination partition according to the system requirements, when the number, the content or the distribution requirements of the data packets are changed, design codes need to be repeatedly modified, the change amount is large, and the codes cannot be transplanted and reused.
Disclosure of Invention
The purpose of the invention is: the modular bus data receiving method is simple in logic, small in code amount and convenient to maintain.
The technical solution of the invention is as follows: a modularized bus data receiving method is characterized in that a bus receiving table is established, a data packet is distributed to a destination, the destination is coded according to a sending mask mode, and the data packet is distributed to the destination in a mode of comparing with a partition mask of the destination.
Establishing a data distribution unit for each data packet transmitted on the bus in the bus receiving table, wherein the data distribution unit comprises a logic number, a sending mask and a message ID; the logic number is an input parameter of a bus receiving function, and a specified data message can be obtained from the bus according to the logic number; the transmit mask is a set of binary codes, each bit corresponding to a destination partition; the message ID is the unique identifier of the data message specified in the interface control file.
For the data packet in the data distribution unit, if the data packet needs to be sent to the partition, the corresponding bit of the partition in the sending mask is 1, otherwise, the corresponding bit is 0.
The modularized bus data receiving method comprises the following specific processes:
step 1: establishing a bus receiving table according to the system bus interface control file;
step 2: establishing own partition mask for indicating respective addresses for each data packet sending destination partition;
and step 3: calling a bus receiving function, receiving a required message according to the logic number of the current data distribution unit in the bus receiving table, and combining the message ID and the data to form a message to be sent;
and 4, step 4: reading a sending mask in a current data distribution unit and a partition mask of a first partition to carry out bitwise comparison operation, and if the bitwise comparison result is 0, representing that the partition does not need the packet of data and not carrying out any operation; if the result of bitwise and is not 0, the partition needs the packet of data, and at this time, a partition sending function is called to send the message to be sent to the partition.
And 5: and repeating the step 4, and carrying out bitwise comparison operation on the sending mask and the second partition. Until all destination partitions have been compared.
Step 6: and repeating the step 3-5, receiving the data message in the next data distribution unit in the bus receiving table, and detecting and sending until all the data distribution units in the bus receiving table complete receiving and distributing.
The partition mask has only 1 bit as 1 and the rest bits as zero, and the partition masks of the destinations are respectively: 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, 0x0100, 0x 0200.
The modular bus data receiving method has the advantages that the steps 3-5 are solidified into the main program, when the data package is added or the distribution purpose of the data package is changed, the main program does not need to be additionally changed by only modifying the bus receiving table, and the main program calls the updated data receiving table to realize the distribution of the data package.
The invention has the advantages and positive effects that: the modular bus data receiving method sends all bus data to the designated partition by traversing the data distribution units in the bus receiving table, and has the advantages that when the bus data volume is large and the requirement changes frequently, the bus receiving module designed by the method only needs to update and maintain the bus receiving table when the data requirement changes, a main software program does not need to be changed, the logic of the method is simple, the code volume is small, compared with the traditional method, the compiling and maintaining efficiency of the codes is improved, meanwhile, the risk caused by the large change of the software codes is reduced, and the system safety is improved.
Drawings
Fig. 1 is a schematic diagram of a data receiving and distributing process according to the present invention.
Detailed Description
The present invention is described in further detail below.
The modular bus data receiving method of the invention encodes the data packet distribution destination according to the form of the sending mask by establishing the bus receiving table, and realizes the automatic distribution of data by comparing the sending mask and the partition mask of the destination partition according to the bit and comparison mode. The main scheduling workflow is shown in fig. 1:
step 1: establishing bus receiving table according to system bus interface control file
Setting N bus data messages in a system interface control file, firstly establishing a bus receiving table, wherein the table comprises N data distribution units, and each data distribution unit comprises a logic number [ logic num ], a sending mask [ deviversemask ] and a message ID. The logic number is an input parameter of a bus receiving function, a designated data message can be obtained from a bus according to the logic number, a sending mask is a group of binary codes, each bit corresponds to a destination partition, and for the data message in the distribution unit, if the data message needs to be sent to the partition, the corresponding bit of the partition in the sending mask is 1, otherwise, the corresponding bit is 0; the message ID is the unique identifier of the data message specified in the interface control file.
Step 2: establishing own partition mask for each destination partition:
the partition mask has only 1 bit as 1 and the remaining bits as zeros. If the system has M destination partitions, the partition mask of each destination partition is M total of M1 and M2 … … Mn … … Mm: 0x0001, 0x0002, 0x0004, 0x0008, 0x0010 … ….
And step 3: and calling a bus receiving function, receiving the required message according to the logic number [ logic Num ] of the current data distribution unit in the bus receiving table, and combining the message ID and the data to form a message to be sent [ PackBuff ].
And 4, step 4: comparing the sending mask in the sending current data distribution unit with the partition mask of the destination
Reading a sending mask (DeliverMask) in a current data distribution unit and a partition mask M1 of a first partition to perform bitwise AND comparison operation, wherein if the bitwise AND result is 0, the partition does not need the packet of data and does not perform any operation; if the result of bitwise and is not 0, it represents that the partition needs the packet of data, and at this time, a partition sending function is called to send a message to be sent [ PackBuff ] to the partition.
And 5: repeating the step 4(M times) to perform bitwise and comparison operation on the transmission mask [ deviversemask ] in the current data distribution unit and the partition mask Mn of the next partition. Until all destination partitions have been compared. The data distribution in the data distribution unit is completed.
Step 6: and 3-5(N times) of the main program is repeated, the data message in the next data distribution unit in the bus receiving table is received, the comparison operation is carried out with the partition mask of each destination partition, and the automatic detection distribution is completed until the N data distribution units in the bus receiving table complete the receiving and the distribution.
In summary, the modular bus data receiving method of the present invention encodes the data packet distribution destination in the form of the transmission mask by establishing the bus receiving table, and realizes the automatic distribution of data by comparing with the partition mask. The invention modularizes the core part (step 3-5) of data receiving and distributing, only needs to update and maintain the bus receiving table when the content, quantity or distribution demand of the data packet changes, the main software program does not need to change.

Claims (5)

1. A modularized bus data receiving method is characterized in that a bus receiving table is established, a data packet is distributed to a destination, the destination is coded according to a sending mask mode, and the distribution of the data packet destination is realized in a mode of comparing with a partition mask of the destination;
establishing a data distribution unit for each data packet transmitted on the bus in the bus receiving table, wherein the data distribution unit comprises a logic number, a sending mask and a message ID; the logic number is an input parameter of a bus receiving function, and a specified data message can be obtained from the bus according to the logic number; the transmit mask is a set of binary codes, each bit corresponding to a destination partition; the message ID is the unique identifier of the data message specified in the interface control file.
2. The modular bus data receiving method according to claim 1, wherein for the data packet in the data distribution unit, if it needs to be sent to the partition, the corresponding bit of the partition in the sending mask is 1, otherwise it is 0.
3. The modular bus data receiving method according to claim 1, characterized in that the specific procedure is as follows:
step 1: establishing a bus receiving table according to the system bus interface control file;
step 2: establishing own partition mask for indicating respective addresses for each data packet sending destination partition;
and step 3: calling a bus receiving function, receiving a required message according to the logic number of the current data distribution unit in the bus receiving table, and combining the message ID and the data to form a message to be sent;
and 4, step 4: reading a sending mask in a current data distribution unit and a partition mask of a first partition to carry out bitwise comparison operation, and if the bitwise comparison result is 0, representing that the partition does not need the packet of data and not carrying out any operation; if the result of bitwise and is not 0, the partition needs the packet of data, and at the moment, a partition sending function is called to send the message to be sent to the partition;
and 5: repeating the step 4, and carrying out bitwise comparison operation on the sending mask and the second partition; until all destination partitions are compared;
step 6: and repeating the step 3-5, receiving the data message in the next data distribution unit in the bus receiving table, and detecting and sending until all the data distribution units in the bus receiving table complete receiving and distributing.
4. Modular bus data receiving method according to claim 3,
the partition mask has only 1 bit as 1 and the rest bits as zero, and the partition masks of the destinations are respectively: 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, 0x0100, 0x 0200.
5. The modular bus data receiving method as claimed in claim 4, wherein steps 3-5 are solidified into a main program, and when the purpose of adding or distributing the data packets is changed, the main program calls the updated data receiving table to realize the data packet distribution only by modifying the bus receiving table without additional change.
CN201811311324.1A 2018-11-05 2018-11-05 Modular bus data receiving method Active CN109547310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811311324.1A CN109547310B (en) 2018-11-05 2018-11-05 Modular bus data receiving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811311324.1A CN109547310B (en) 2018-11-05 2018-11-05 Modular bus data receiving method

Publications (2)

Publication Number Publication Date
CN109547310A CN109547310A (en) 2019-03-29
CN109547310B true CN109547310B (en) 2021-06-01

Family

ID=65845043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811311324.1A Active CN109547310B (en) 2018-11-05 2018-11-05 Modular bus data receiving method

Country Status (1)

Country Link
CN (1) CN109547310B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143212B (en) * 2019-12-24 2023-06-23 中国航空工业集团公司西安飞机设计研究所 Functional logic function library verification method under module integrated software architecture
CN113141289B (en) * 2021-05-18 2022-07-26 卡斯柯信号有限公司 Bus data transmission method for trackside safety platform
CN116129681B (en) * 2023-04-07 2023-06-20 南京莱斯信息技术股份有限公司 Civil aviation telegraph shunting processing system and method based on regional gridding management

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145897A (en) * 2007-10-19 2008-03-19 中兴通讯股份有限公司 A method and system for reducing transmission clock line based on communication hardware platform
CN101876957A (en) * 2009-11-27 2010-11-03 珠海许继电气有限公司 Method for anti-interference encryption in bus expansion
CN102377664A (en) * 2010-08-27 2012-03-14 武汉烽火网络有限责任公司 TCAM (ternary content addressable memory)-based range matching device and method
CN105045635A (en) * 2015-08-11 2015-11-11 中国航空工业集团公司西安飞机设计研究所 Configuration table file generation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605894B2 (en) * 2011-07-14 2013-12-10 Apple Inc. Cryptographic process execution protecting an input value against attacks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145897A (en) * 2007-10-19 2008-03-19 中兴通讯股份有限公司 A method and system for reducing transmission clock line based on communication hardware platform
CN101876957A (en) * 2009-11-27 2010-11-03 珠海许继电气有限公司 Method for anti-interference encryption in bus expansion
CN102377664A (en) * 2010-08-27 2012-03-14 武汉烽火网络有限责任公司 TCAM (ternary content addressable memory)-based range matching device and method
CN105045635A (en) * 2015-08-11 2015-11-11 中国航空工业集团公司西安飞机设计研究所 Configuration table file generation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于iSCSI协议的加密存储区域网模型设计与实现》;任星;《计算机工程与设计》;20090228;第30卷(第4期);第876-879页 *

Also Published As

Publication number Publication date
CN109547310A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109547310B (en) Modular bus data receiving method
KR890702392A (en) Network and intelligent cells to provide detection and bidirectional communication and control
CN102231728A (en) Train control data communication method, equipment and system
CN103608795A (en) Dynamically reconfigurable electrical interface
CN114553799B (en) Multicast forwarding method, device, equipment and medium based on programmable data plane
CN110166857B (en) Method for realizing dynamic configuration of fiber channel switch
CN101515889B (en) Replication and processing method for multicast message and device thereof
CN103167441B (en) A kind of delivery method of short message, Apparatus and system
CN101534298B (en) Aircraft download data chain telegraph distribution method and device therefor
CN104486250A (en) Deadline-oriented scheduling method capable of meeting time determinability
CN117097753B (en) Data acquisition system based on industrial Internet identification
CN101163258B (en) Method and system for processing high-capacity cell broadcasting service
CN111010353A (en) Self-adaptive carefree network implementation method based on optical fiber channel
CN114338569B (en) Message copying and forwarding method and device
CN111614612B (en) Communication protocol implementation method, device, network management server and storage medium
CN101415128B (en) Method, apparatus for sharing signaling message load, and signaling transmission system
CN104144134A (en) Queue scheduling method and device
CN1300977C (en) An open method and system for ultra-remote industrial monitoring information integration
CN109787888B (en) System and method for supporting multi-device message distribution and storage medium
CN106657264A (en) Distributed system and data synchronization method thereof
CN101909283B (en) M2M (Machine-to-Machine) platform and method for sharing load downloaded with in high capacity
CN101510901A (en) Communication method, communication apparatus and system between distributed equipment
CN101360061B (en) Method and apparatus implementing official telephone and customer transparent channel route
CN117278627A (en) DDS communication system and method for integrating DDS in AUTOSAR CP
CN113660341A (en) Communication method between airborne CMU and radio communication station

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