CN102970202B - 1553B bus communication method based on preemptive strategy - Google Patents

1553B bus communication method based on preemptive strategy Download PDF

Info

Publication number
CN102970202B
CN102970202B CN201210489385.3A CN201210489385A CN102970202B CN 102970202 B CN102970202 B CN 102970202B CN 201210489385 A CN201210489385 A CN 201210489385A CN 102970202 B CN102970202 B CN 102970202B
Authority
CN
China
Prior art keywords
bus
message
district
message block
sending module
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
CN201210489385.3A
Other languages
Chinese (zh)
Other versions
CN102970202A (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.)
Beijing Institute of Spacecraft System Engineering
Original Assignee
Beijing Institute of Spacecraft System Engineering
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 Beijing Institute of Spacecraft System Engineering filed Critical Beijing Institute of Spacecraft System Engineering
Priority to CN201210489385.3A priority Critical patent/CN102970202B/en
Publication of CN102970202A publication Critical patent/CN102970202A/en
Application granted granted Critical
Publication of CN102970202B publication Critical patent/CN102970202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention belongs to the technical field of computer buses, and in particular relates to a 1553B bus communication method. According to the technical scheme, a 1553B bus communication method based on a preemptive strategy comprises the following steps of: 1, calling a bus initializing module; 2, calling a bus message organization module; 3, calling a bus scheduling module; 4, calling a bus B-region sending module; 5, calling a bus A-region sending module; and 6, calling a returned message processing module. By the method, a message with a high priority level can preempt sending of a message with a low priority level, so that a working mode that the conventional bus message sending does not consider the priority level is changed; a phenomenon that non-important data occupies a bus communication channel for a long time is avoided; the message with the high priority level can be quickly responded; real-time transmission of important data messages is guaranteed; and the execution efficiency of a key instruction is improved. Moreover, the processing procedure is transparent to an application layer; a processing mode is encapsulated; and interfaces are uniform.

Description

Based on the 1553B bus communication of preemptive type strategy
Technical field
The invention belongs to aerospace computer technical field, be specifically related to a kind of 1553B bus communication of message priority preemptive type strategy.
Background technology
Current spacecraft widely uses the communication that 1553B bus carries out each equipment room, and CPU is held as BC, completes Telemetry Data Acquisition, remote-control data injects the critical functions such as forwarding, real-time command transmission.But the transmission rate of 1553B bus is 1Mbps, along with spacecraft task becomes increasingly complex, the response time of its systematic function and important instruction needs to pay close attention to.In spacecraft 1553B bus, the speed of transmission of messages is with periodically different, (periodically instruction and aperiodicity instruction is comprised except transfer instruction information, valid data length is less, length is fixed), (valid data length is longer also to need to transmit the telemetry intelligence (TELINT) of spacecraft each equipment, length is not fixed, there is some cycles), how reasonably to dispatch the various message in 1553B bus, particularly realizing the quick response of significant data message, is an important content of spacecraft Design of Database Management System.
Have more research to spacecraft 1553B bus communication abroad, but to important data-message how fast response do not introduce, to message severities classification with how to dispatch not introduction, namely details technology does not describe in detail.
Mainly there are the following problems for domestic existing spacecraft 1553B bus communication: most of spacecraft does not distinguish priority to important data-message and other data-messages, put into same bus district to send, even if minority spacecraft has divided the importance of data-message, but significant data and insignificant data all use same bus RAM district to carry out message communicating, and the importance when practical communication is identical.Like this, the significant datas such as key instruction are consistent with the importance of the insignificant data such as telemetry intelligence (TELINT), if bus message scheduler program is processing a large amount of telemetry, the instruction message higher to time requirement can be caused to can not get making an immediate response, the real-time Transmission of key instruction can be blocked time serious, affect the execution of key instruction.
Summary of the invention
The object of the invention is: overcome the deficiencies in the prior art, for the feature of data communication between spacecraft equipment, provide a kind of 1553B bus communication based on preemptive type strategy, significant data message is set to high priority by it, general data message is set to low priority, in bus message process of transmitting, the message of high priority can seize the transmission of low priority message, after being sent completely Deng high-priority message, recover the transmission of low priority message, ensure that the quick response of significant data message, and the process do not affected the less demanding general data message of time urgency.
Technical scheme of the present invention is: a kind of 1553B bus communication based on preemptive type strategy, comprises the following steps:
Step one, calls bus initialization module;
Initialized content comprises:
A. to the attribute definition of bus message block; Its attribute comprises: the bus message block classification corresponding with application data, bus message block format, object are far put terminal RT address, object and far put terminal RT subaddressing, the length of bus message block and the memory block of carrying application data;
B. the address of all bus message blocks in bus message buffering area is inserted in idle message block chained list;
C. message blocks chained list to be sent is carried out to the definition of priority: first message blocks chained list to be sent is for receiving key instruction, and priority is the highest; All the other message blocks chained list decreasing priority to be sent; The quantity of message blocks chained list to be sent is at least 2;
Step 2, calls bus message molded tissue block;
Bus message molded tissue block obtains application data from the application process of CPU CTU, and from idle message block chained list, transfer multiple bus message block according to the size of application data, the application data of self-application process is put in the memory block of multiple bus message block, according to the attribute of the setup of attribute bus message block of application data after splitting in the future; The address of multiple bus message blocks of carrying application data is inserted in message blocks chained list to be sent corresponding to the priority of application data;
Step 3, calls bus scheduling module;
Bus scheduling module according to priority order from high in the end collects the bus message block in message blocks chained list to be sent successively, and according to the type of priority, the bus message block that priority is the highest calls bus B district sending module, proceeds to step 4; All the other bus message blocks call bus A district sending module, proceed to step 5;
Step 4, calls bus B district sending module;
Bus B district sending module sends bus message block to RT end; RT enters step 6 after holding message to return; Because bus B district sending module sends in the memory block of bus message block the key instruction the highest for priority of depositing and carrying, bus B district sending module interrupts the transmission state of bus A district sending module when sending, key instruction preferentially sent to RT to hold, after bus B district sending module is sent completely, recovers bus A district sending module again continues to send;
Step 5, calls bus A district sending module;
Bus A district sending module sends bus message block to RT end; RT enters step 6 after holding message to return;
Step 6, calls return messages processing module;
Return messages processing module receives holds message from RT, and the message after process is returned to application process; And again the address completing the bus message block that application data sends is inserted in idle message block chained list.
The invention has the beneficial effects as follows: (1) the present invention due to by bus message according to task classification prioritization, the priority of significant data is high, and the priority of insignificant data is low.The bus message of high priority sends in RAM B district, and low priority message sends in RAM A district, and the message in B district sends and can interrupt the transmission of A district, after B district message is sent completely, recovers the transmission in A district.Like this, the message of high priority can seize the transmission of low priority message, change bus message in the past and send the mode of operation not having priority, avoiding the insignificant data long period takies bus communication channel, high-priority message can be responded fast, for the real-time Transmission of important data-message provides guarantee, improve the execution efficiency of key instruction.
(2) data category that the present invention uses bus message molded tissue block to provide according to application process organizes bus message block automatically, and be inserted in corresponding priority chained list, then call bus scheduling module realize the transmission of message and return, the message realizing high priority seizes the message of low priority, this processing procedure is transparent to application layer, processing mode is encapsulation, and interface is unified.
Accompanying drawing explanation
Fig. 1 is running environment schematic diagram of the present invention;
Fig. 2 is system configuration schematic diagram of the present invention;
Fig. 3 is bus scheduling block flow diagram of the present invention;
Fig. 4 is bus A district of the present invention sending module flow chart;
Fig. 5 is bus B district of the present invention sending module flow chart.
Embodiment
See accompanying drawing 1, the present invention runs on CPU CTU and BC end, be input as the data that application process is imported into, comprise the director data etc. that remote control injecting data, telemetry, real-time command data and CPU inside generates, the telemetry exporting the remote control forwarding data for being sent to RT end by 1553B bus, real-time command data, built-in command data and return to application layer.
See accompanying drawing 2, based on the 1553B bus communication of preemptive type strategy, it comprises the following steps:
Step one, calls bus initialization module;
Initialized content comprises:
A. to the attribute definition of bus message block; Its attribute comprises: the bus message block classification corresponding with application data, bus message block format, object are far put terminal RT address, object and far put terminal RT subaddressing, the length of bus message block and the memory block of carrying application data;
B. be inserted in idle message block chained list by the address of all bus message blocks in bus message buffering area, now the memory block of bus message block is can write state;
C. message blocks chained list to be sent is carried out to the definition of priority: first message blocks chained list to be sent is for receiving key instruction, and priority is the highest; All the other message blocks chained list decreasing priority to be sent; The quantity of message blocks chained list to be sent is at least 2;
Step 2, calls bus message molded tissue block;
See accompanying drawing 3, bus message molded tissue block obtains application data from the application process of CPU CTU, and from idle message block chained list, transfer multiple bus message block according to the size of application data, the application data of self-application process is put in the memory block of multiple bus message block, according to the attribute of the setup of attribute bus message block of application data after splitting in the future; Be inserted into the address of multiple bus message blocks of carrying application data in message blocks chained list to be sent corresponding to the priority of application data, now the memory block of bus message block is write state;
Step 3, calls bus scheduling module;
Bus scheduling module according to priority order from high in the end collects the bus message block in message blocks chained list to be sent successively, and according to the type of priority, the bus message block that priority is the highest calls bus B district sending module, proceeds to step 4; All the other bus message blocks call bus A district sending module, proceed to step 5;
Step 4, calls bus B district sending module;
Bus B district sending module sends bus message block to RT end; RT enters step 6 after holding message to return; Because bus B district sending module sends in the memory block of bus message block the key instruction the highest for priority of depositing and carrying, bus B district sending module interrupts the transmission state of bus A district sending module when sending, key instruction preferentially sent to RT to hold, after bus B district sending module is sent completely, recovers bus A district sending module again continues to send;
Step 5, calls bus A district sending module;
Bus A district sending module sends bus message block to RT end; RT enters step 6 after holding message to return;
Step 6, calls return messages processing module;
Return messages processing module receives holds message from RT, and the message after process is returned to application process; And again inserted in idle message block chained list the address completing the bus message block that application data sends, now the memory block of bus message block is can write state.
See accompanying drawing 4, in above-mentioned steps five, the step that bus A district sending module sends bus message block to RT end is:
A. the content in the data storage area of each bus message block collected is write the RAM A district of 1553B bus by bus A district sending module;
B. bus A district sending module arrange 1553B bus configuration register 1 when proparea be 1553B bus RAM A district, reset RAM A district stack pointer to stack beginning, RAM A district, the number that message number is bus message block be set, and start transmission.
See accompanying drawing 5, in above-mentioned steps four, the step that bus B district transmission submodule sends bus message block to RT is:
A1. first bus B district sending module stops the transmission in 1553B bus RAM A district;
B1. the content in the data storage area of each bus message block collected is write the RAM B district of 1553B bus by bus B district sending module, bus B district sending module arrange 1553B bus configuration register 1 when proparea be bus RAM B district, reset B district stack pointer to stack beginning, RAM B district, the number that message number is bus message block is set, and starts transmission;
C1. bus B district sending module arrange 1553B bus configuration register 1 when proparea be bus RAM A district, recover the transmission in 1553B bus RAM A district, terminate.
In above-mentioned steps six, the method for return messages process submodule processing messages is:
After RT holds returning of message, be stored in 1553B bus RAM A district or RAM B district, message writes in the data storage area of the bus message block of former transmission application data by 1553B bus according to different type of messages; Bus scheduling module calls return messages processing module, return messages processing module is according to bus message block format, process respectively, if BC->RT form, read 1553B bus message status word and judge whether bus message block has sent successfully, if success, again the address successfully sending the bus message block of application data is inserted in idle message block chained list, if failure, then record sends the state of mistake, and again inserts in idle message block chained list by the address unsuccessfully sending the bus message block of application data; If the form of RT->BC form, RT->RT form, RT->RT broadcast, then the message returned being write to former carrying sends in the data storage area of the bus message block of application data, and the content in the data storage area of the bus message block of carrying return messages is sent to the application process of CPU CTU, again the address of the bus message block of carrying return messages is inserted in idle message block chained list.

Claims (4)

1., based on a 1553B bus communication for preemptive type strategy, comprise the following steps:
Step one, calls bus initialization module;
Initialized content comprises:
A. to the attribute definition of bus message block; Its attribute comprises: the bus message block classification corresponding with application data, bus message block format, object are far put terminal RT address, object and far put terminal RT subaddressing, the length of bus message block and the memory block of carrying application data;
B. the address of all bus message blocks in bus message buffering area is inserted in idle message block chained list;
C. message blocks chained list to be sent is carried out to the definition of priority: first message blocks chained list to be sent is for receiving key instruction, and priority is the highest; All the other message blocks chained list decreasing priority to be sent; The quantity of message blocks chained list to be sent is at least 2;
Step 2, calls bus message molded tissue block;
Bus message molded tissue block obtains application data from the application process of CPU CTU, and from idle message block chained list, transfer multiple bus message block according to the size of application data, the application data of self-application process is put in the memory block of multiple bus message block, according to the attribute of the setup of attribute bus message block of application data after splitting in the future; The address of multiple bus message blocks of carrying application data is inserted in message blocks chained list to be sent corresponding to the priority of application data;
Step 3, calls bus scheduling module;
Bus scheduling module according to priority order from high in the end collects the bus message block in message blocks chained list to be sent successively, and according to the type of priority, the bus message block that priority is the highest calls bus B district sending module, proceeds to step 4; All the other bus message blocks call bus A district sending module, proceed to step 5;
Step 4, calls bus B district sending module;
Bus B district sending module sends bus message block to RT end; RT enters step 6 after holding message to return; Because bus B district sending module sends in the memory block of bus message block the key instruction the highest for priority of depositing and carrying, bus B district sending module interrupts the transmission state of bus A district sending module when sending, key instruction preferentially sent to RT to hold, after bus B district sending module is sent completely, recovers bus A district sending module again continues to send;
Step 5, calls bus A district sending module;
Bus A district sending module sends bus message block to RT end; RT enters step 6 after holding message to return;
Step 6, calls return messages processing module;
Return messages processing module receives holds message from RT, and the message after process is returned to application process; And again the address completing the bus message block that application data sends is inserted in idle message block chained list.
2. a kind of 1553B bus communication based on preemptive type strategy as claimed in claim 1, is characterized in that, in step 5, the step that bus A district sending module sends bus message block to RT end is:
A. the content in the data storage area of each bus message block collected is write the RAM A district of 1553B bus by bus A district sending module;
B. bus A district sending module arrange 1553B bus configuration register 1 when proparea be 1553B bus RAM A district, reset RAM A district stack pointer to stack beginning, RAM A district, the number that message number is bus message block be set, and start transmission.
3. a kind of 1553B bus communication based on preemptive type strategy as claimed in claim 1 or 2, is characterized in that, in step 4, the step that bus B district sending module sends bus message block to RT end is:
A1. first bus B district sending module stops the transmission in 1553B bus RAM A district;
B1. the content in the data storage area of each bus message block collected is write the RAM B district of 1553B bus by bus B district sending module, bus B district sending module arrange 1553B bus configuration register 1 when proparea be bus RAM B district, reset B district stack pointer to stack beginning, RAM B district, the number that message number is bus message block is set, and starts transmission;
C1. bus B district sending module arrange 1553B bus configuration register 1 when proparea be bus RAM A district, recover the transmission in 1553B bus RAM A district, terminate.
4. a kind of 1553B bus communication based on preemptive type strategy as claimed in claim 1 or 2, it is characterized in that, in step 6, the method for return messages processing module processing messages is:
After RT holds returning of message, be stored in 1553B bus RAM A district or RAM B district, message writes in the data storage area of the bus message block of former transmission application data by 1553B bus according to different type of messages; Bus scheduling module calls return messages processing module, return messages processing module is according to bus message block format, process respectively, if BC->RT form, read 1553B bus message status word and judge whether bus message block has sent successfully, if success, again the address successfully sending the bus message block of application data is inserted in idle message block chained list, if failure, then record sends the state of mistake, and again inserts in idle message block chained list by the address unsuccessfully sending the bus message block of application data; If the form of RT->BC form, RT->RT form, RT->RT broadcast, then the message returned being write to former carrying sends in the data storage area of the bus message block of application data, and the content in the data storage area of the bus message block of carrying return messages is sent to the application process of CPU CTU, again the address of the bus message block of carrying return messages is inserted in idle message block chained list.
CN201210489385.3A 2012-11-26 2012-11-26 1553B bus communication method based on preemptive strategy Active CN102970202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210489385.3A CN102970202B (en) 2012-11-26 2012-11-26 1553B bus communication method based on preemptive strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210489385.3A CN102970202B (en) 2012-11-26 2012-11-26 1553B bus communication method based on preemptive strategy

Publications (2)

Publication Number Publication Date
CN102970202A CN102970202A (en) 2013-03-13
CN102970202B true CN102970202B (en) 2015-02-18

Family

ID=47800090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210489385.3A Active CN102970202B (en) 2012-11-26 2012-11-26 1553B bus communication method based on preemptive strategy

Country Status (1)

Country Link
CN (1) CN102970202B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684948B (en) * 2013-12-13 2016-08-17 中国航空工业集团公司第六三一研究所 A kind of 1553B bus list sorting optimization method
CN104184681B (en) * 2014-09-16 2018-02-27 南车株洲电力机车有限公司 Communication means and device between ECP system display terminal and head end control unit
CN105389287B (en) * 2015-12-11 2018-07-03 中国航空工业集团公司西安航空计算技术研究所 The method of cycle command is inserted into a kind of 1553 bus sequence table
CN108462654B (en) * 2016-12-12 2021-12-24 中国航空工业集团公司西安航空计算技术研究所 Enhanced GJB289A bus communication management and scheduling method
CN107391526B (en) 2017-03-28 2021-04-02 创新先进技术有限公司 Data processing method and device based on block chain
CN109547312B (en) * 2018-11-27 2021-01-01 中国航空工业集团公司洛阳电光设备研究所 1553B bus event message scheduling method sensitive to message interval
CN110750473B (en) * 2019-10-18 2023-06-02 天津津航计算技术研究所 Message configuration processing method based on management table in 1553B bus BC mode
CN112000605B (en) * 2020-08-26 2022-07-08 北京控制与电子技术研究所 Method and device for transmitting instructions and data
CN112114981B (en) * 2020-09-09 2023-12-12 天津津航计算技术研究所 1553B bus message scheduling method based on linked list
CN112235207B (en) * 2020-10-14 2023-02-03 天津津航计算技术研究所 RT address-based 1553B message receiving method
CN114531315B (en) * 2022-01-18 2023-10-31 北京临近空间飞行器系统工程研究所 Information scheduling method and scheduling device for bus information chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6272580B1 (en) * 1999-03-16 2001-08-07 Compaq Computer Corp. Apparatus and method for dynamically elevating a lower level bus master to an upper level bus master within a multi-level arbitration system
CN101046788A (en) * 2006-03-31 2007-10-03 上海奇码数字信息有限公司 Bus arbitration method
CN101227366A (en) * 2007-12-11 2008-07-23 北京豪沃尔科技发展股份有限公司 Anti-conflict method of bus transfer data
CN101499041A (en) * 2009-03-17 2009-08-05 成都优博创技术有限公司 Method for preventing abnormal deadlock of main unit during access to shared devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6272580B1 (en) * 1999-03-16 2001-08-07 Compaq Computer Corp. Apparatus and method for dynamically elevating a lower level bus master to an upper level bus master within a multi-level arbitration system
CN101046788A (en) * 2006-03-31 2007-10-03 上海奇码数字信息有限公司 Bus arbitration method
CN101227366A (en) * 2007-12-11 2008-07-23 北京豪沃尔科技发展股份有限公司 Anti-conflict method of bus transfer data
CN101499041A (en) * 2009-03-17 2009-08-05 成都优博创技术有限公司 Method for preventing abnormal deadlock of main unit during access to shared devices

Also Published As

Publication number Publication date
CN102970202A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN102970202B (en) 1553B bus communication method based on preemptive strategy
CN106648896B (en) Method for dual-core sharing of output peripheral by Zynq chip under heterogeneous-name multiprocessing mode
CN106681949B (en) Direct memory operation implementation method based on consistency acceleration interface
CN112422453A (en) Message processing method, device, medium and equipment
CN105376129B (en) One kind 1394 bus transaction layers-link layer data packet transmission circuit and method
CN102480426A (en) Communication method based on peripheral component interconnect-express (PCIE) switching bus and PCIE switching system
CN105426260B (en) A kind of transparent interprocess communication system and method for supporting distributed system
CN102811152A (en) Method for realizing real-time transaction and data exchange of multiple main bus network communication
WO2022127873A1 (en) Method for realizing high-speed scheduling of network chip, device, and storage medium
CN104850516A (en) DDR frequency conversion design method and device
CN107329842B (en) Method and terminal for acquiring data based on Qt signal slot mechanism
CN109062857B (en) Novel message controller capable of realizing communication among multiple processors at high speed and communication method thereof
WO2021042972A1 (en) Smart card management apparatus and method
CN106896956A (en) The implementation method of multi-point touch under a kind of " road " system
CN116166582A (en) Data reading and writing method, system, equipment and storage medium
CN102117261A (en) Communication method between inner processors of chip
CN106997304B (en) Input and output event processing method and device
CN108011751B (en) Airborne FlexRay communication interface device and method
CN112491620A (en) Multi-channel data transmission controller based on SRIO and adjusting method
CN107729140B (en) Device and method for realizing command queuing functions of multiple eMMC host interfaces in parallel
CN101256489A (en) System and method for implementing AT command interaction with Apple computer
CN111221299A (en) Intelligent module for numerical control system interconnection and expansion functions and communication method thereof
CN112835823B (en) Storage controller response sending method
CN103593437A (en) Data compression chip structure based on DMA and implementation method thereof
WO2024045580A1 (en) Method for scheduling tasks, and related product thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant