CN104636175A - ARM platform networking method for embedded real-time system - Google Patents

ARM platform networking method for embedded real-time system Download PDF

Info

Publication number
CN104636175A
CN104636175A CN201310548605.XA CN201310548605A CN104636175A CN 104636175 A CN104636175 A CN 104636175A CN 201310548605 A CN201310548605 A CN 201310548605A CN 104636175 A CN104636175 A CN 104636175A
Authority
CN
China
Prior art keywords
network
interruption
rtai
interrupt
adeos
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310548605.XA
Other languages
Chinese (zh)
Inventor
于东
卢林
胡毅
韩旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY Co Ltd
Original Assignee
SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY Co Ltd filed Critical SHENYANG HIGH-END COMPUTER NUMERICAL CONTROL TECHNOLOGY Co Ltd
Priority to CN201310548605.XA priority Critical patent/CN104636175A/en
Publication of CN104636175A publication Critical patent/CN104636175A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the field of embedded real-time systems, in particular to a method for achieving the network function of an RTAI-Linux real-time system based on an ADEOS microkernel on an ARM platform. According to the method, based on the ARM platform, the ADEOS microkernel is implanted into a Linux system and an RTAI is embedded into the Linux system, so that the embedded RTAI-Linux real-time system is constructed; then, the real-time system is reformed to achieve the network function. By means of the method, the defect that the network processing function can not be achieved is overcome, and the network connection function is provided for the system. Meanwhile, prototypes can be provided for achieving other expanding functions on the system, and the method has the advantages of being high in universality and good in stability.

Description

A kind of embedded real time system ARM platform network method
Technical field
The present invention relates to embedded real-time domain, specifically a kind of based on ADEOS(Adaptive Domain Environment for Operating Systems, adaptation field operating system) RTAI-Linux embedded real time system (on ARM platform, by embedding the system that RTAI interface has been transformed in Linux system) ARM platform network method.
Background technology
On ARM platform, the RTAI-Linux system (RTAI:RealTime Application Interface, real-time application interface) based on ADEOS can realize many kernel operating system, makes full use of the advantage of each kernel to perform corresponding task.And current ADEOS core does not provide network connecting function to embedded-type ARM platform, cause and use the embedded RTAI-Linux real-time system of ADEOS core cannot be undertaken alternately by network and the external world, carry out sharing of information.The research of the domestic and international ADEOS to embedded RTAI-Linux real-time system is at present all at the many kernel dispatchings of research, and real-time function is transformed, real-time performance evaluation and test etc., not yet has the achievement in research realizing network function relevant externally to announce.
The default treatment of ADEOS core to network of embedded RTAI-Linux real-time system is: as illegal interrupt, in time enabling network, only provides response and to make mistakes warning.Find the research of ADEOS core, what its core adopted is the method for interrupting daily record, and namely when there is device interrupt, system does not process immediately, but is registered in the middle of corresponding construction.After machine arrives when treated, more registered interruption is processed.And for the interrupt request of the network equipment, system, without any effective response, is namely registered in daily record, more there is no relevant treatment.
Summary of the invention
For the above-mentioned blank existed in prior art, the technical problem to be solved in the present invention is on ARM platform, provide a kind of RTAI-Linux real-time system networking method that can realize based on ADEOS, and stability is high, highly versatile.
For achieving the above object, technical scheme of the present invention is: a kind of RTAI-Linux system ARM platform network method, comprises the following steps:
Initialization: after ADEOS system and relevant device initialization, configuration network interrupts environment;
Network interruption intercepts: when there is system break, judge whether interrupt type is network interruption, if network interruption, then the father shielding network IRQ sharing is interrupted, and is recorded in and interrupts in daily record, then responds father's interruption;
Network interruption process: the state of preserving network equipment register before interrupt processing, is invoked at the process function arranged in initialization procedure, processes network interruption by ADEOS core;
Recovery system environment is to network interruption system environments before treatment.
Described configuration network interrupts environment and comprises: register it, configuration network interrupt descriptors to RTAI-Linux system log on interrupt number, add network interruption in a network describe in disconnected descriptor table.
Described recovery system environment, to network interruption system environments before treatment, is specially: recover the state value of network device register before interrupt processing.
Advantage of the present invention and beneficial effect are:
1. realize the RTAI-Linux real-time system networking based on ADEOS.
2. stability is high, highly versatile.
Accompanying drawing explanation
Fig. 1 is the detail flowchart that the ADEOS of the inventive method starts newly-increased netinit;
Fig. 2 is the inventive method network function process general flow chart;
Fig. 3 is that the inventive method system break intercepts process flow diagram;
Fig. 4 is the inventive method network interruption process dependence diagram;
Fig. 5 is the process flow diagram of method, system recovering state of the present invention;
Fig. 6 is the system architecture diagram that the present invention applies.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The present invention is directed to the situation that cannot be realized network connection by simple network Development of device driver method, in Kernel Initialization start-up course, configuration network interrupts environment, and by intercepting system interrupt processing, stored in interruption daily record, add network interruption process, the corresponding steps such as recovery system treatment scheme complete the realization connected network.
In described system initialization process, configuration network interrupts the concrete execution step of environment as shown in Figure 1, performs step as follows:
Step 1.1mach-s3c24xx/irq.c starts in configuration in ADEOS core, adds the initialization requests to network processes, the interrupt number that log on process needs;
Step 1.2 configuration network interrupt descriptors, uses the structure of ADEOS standard to construct new network interruption descriptor;
Step 1.3.1kernel/irq.c gives tacit consent to the process adding network function in initial interrupt process function to ADEOS, register the interrupt number of application in step 1.1, and association process function;
The network interruption descriptor built in step 1.2 adds in the interrupt-descriptor table of ADEOS core by step 1.3.2.
Step 1.4 gets back to the original start-up operation flow process of system, terminates newly-increased flow process.
The treatment scheme of the core of the inventive method as shown in Figure 2.Specifically be divided into intercepting system interruption, network interruption process, recovery system running environment.When an interrupt occurs, interrupt type is judged, if the interruption relevant to network, then the newly-designed network interruption process of redirect counterweight.Disconnected daily record registration network interruption in systems in which, ADEOS core is invoked at the process function arranged in system starting process, processes network interruption.After interrupt processing terminates, processing module interrupts daily record to inspection, and cleaning network interruption log recording, empties the register of the network equipment, reset the structure that network outage information is preserved, and recover the amendment in intercepting system interrupt module.
After enabling the network equipment, when system carries out network connection, corresponding application program can ask network service, thus produces network interruption.In the middle of the embedded platform patch that ADEOS provides, there is no support network outages, so the process of acquiescence is exactly as illegal operation, prompting fault interrupt.Realize network connecting function, must design the treatment scheme of ADEOS, expand the support to network wherein, require to expand not influential system original function simultaneously.The present invention, according to above-mentioned analysis in detail, utilizes development interface reserved in ADEOS core, designs a method that can realize network and connect.Its concrete treatment step is analyzed as follows:
Described intercepting system interrupt processing refers to when an interrupt occurs, judges interrupt type, if the interruption relevant to network, then redirect is to newly-increased network interruption process, its concrete steps as shown in Figure 3:
Step 3.1kernel/chip.c, when an interrupt occurs, judges interrupt number, if the father relevant to network is interrupted, carry out step 3.3; Otherwise carry out step 3.2;
Step 3.2 forwards ADEOS core to for the default processing flow interrupted, end operation;
Step 3.3 forwards network father interrupt processing early-stage preparations module to;
Step 3.4 temporarily shields interruption, and due to the employing of ADEOS core is the mechanism of interrupting daily record, is that avoidance breakout is lost, when appearance is once interrupted, temporarily must shields interruption;
Step 3.5 responds interrupts, but does not do concrete interrupt processing, and just registration is in interruption daily record, and guarantee system can receive interruption again, can record Current interrupt again, for next part interrupt processing is ready.
Described network interruption process refers to that ADEOS core is invoked at the process function arranged in system starting process, processes network interruption to when network interruption is registered in system break daily record.It specifically performs step as shown in Figure 4:
Step 4.1 system scan interrupts daily record, when process network interruption, forwards the processing module arranged in start-up course to;
Step 4.2 interrupts relevant information according to the father relevant to network, judges whether it is real network interruption, if so, then carry out step 4.3, otherwise carry out step 4.2;
Step 4.2 is left intact, and this is unexpected system break, does not thus do any process, end operation;
The driver that step 4.3 calls the network equipment carries out network function process;
The request of step 4.4 response to network device interrupt;
This process terminates.
Concrete data flowing is see Fig. 6.
Described System recover refers to when interrupting occurring to relevant interruption logging in the middle of daily record, at the end of network processes interrupt processing, will intercept in interrupt module and recover flow process amendment.Recover concrete execution step as shown in Figure 5:
Step 5.1 recovers the relevant register of interrupting device, and ensure that this interrupt processing does not produce any impact to equipment, guarantee can continue normally to complete processing capacity.
Step 5.2 clears up the structure relevant to network interruption, pay special attention to know interruption daily record, otherwise system is by re-treatment interrupt request, occurs exception error.
The interruption of shielding is opened by step 5.3, to accept new interruption;
Step 5.4 end operation, jumps to system normal process flow process.
In order to test actual motion effect of the present invention and performance, embedded board applying the present invention and actually carries out network connecting test.System run all right, network delay controls in ms level, and network connects continued smooth, not other function of influential system, and real-time monitored does not exist shake, without connecting situation about disconnecting.
Test environment of the present invention: the embedding TQ2440 embedded board in sky; System hardware platform is CPU Samsung S3C2440,400MHz, RAM-64M, FLASH-256M; Operating system is linux-2.6.20, ADEOS patch release is adeos-ipipe-2.6.20-arm-1.7-03.patch, RTAI-3.8; Execution result test mode: enable the network equipment, observes network connection, and to the packet loss of network, network-induced delay real time print is observed.

Claims (3)

1. a RTAI-Linux system ARM platform network method, is characterized in that, comprise the following steps:
Initialization: after ADEOS system and relevant device initialization, configuration network interrupts environment;
Network interruption intercepts: when there is system break, judge whether interrupt type is network interruption, if network interruption, then the father shielding network IRQ sharing is interrupted, and is recorded in and interrupts in daily record, then responds father's interruption;
Network interruption process: the state of preserving network equipment register before interrupt processing, is invoked at the process function arranged in initialization procedure, processes network interruption by ADEOS core;
Recovery system environment is to network interruption system environments before treatment.
2. a kind of RTAI-Linux system ARM platform network method according to claim 1, it is characterized in that, described configuration network interrupts environment and comprises: register to RTAI-Linux system log on interrupt number it, configuration network interrupt descriptors, adds network interruption in disconnected descriptor table in a network and describes.
3. a kind of RTAI-Linux system ARM platform network method according to claim 1, it is characterized in that, described recovery system environment, to network interruption system environments before treatment, is specially: recover the state value of network device register before interrupt processing.
CN201310548605.XA 2013-11-06 2013-11-06 ARM platform networking method for embedded real-time system Pending CN104636175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310548605.XA CN104636175A (en) 2013-11-06 2013-11-06 ARM platform networking method for embedded real-time system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310548605.XA CN104636175A (en) 2013-11-06 2013-11-06 ARM platform networking method for embedded real-time system

Publications (1)

Publication Number Publication Date
CN104636175A true CN104636175A (en) 2015-05-20

Family

ID=53214971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310548605.XA Pending CN104636175A (en) 2013-11-06 2013-11-06 ARM platform networking method for embedded real-time system

Country Status (1)

Country Link
CN (1) CN104636175A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250215A (en) * 2016-07-20 2016-12-21 中国航空工业集团公司航空动力控制***研究所 The graphical methods of exhibiting of interruption situation of embedded Control software
CN109947539A (en) * 2017-12-20 2019-06-28 广州中国科学院先进技术研究所 A kind of robot controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251806A1 (en) * 2004-05-10 2005-11-10 Auslander Marc A Enhancement of real-time operating system functionality using a hypervisor
CN101841470A (en) * 2010-03-29 2010-09-22 东南大学 High-speed capturing method of bottom-layer data packet based on Linux

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251806A1 (en) * 2004-05-10 2005-11-10 Auslander Marc A Enhancement of real-time operating system functionality using a hypervisor
CN101841470A (en) * 2010-03-29 2010-09-22 东南大学 High-speed capturing method of bottom-layer data packet based on Linux

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
WLOVEG: "ARM Linux终端源码分析(1)--中断初始化与注册", 《HTTP://BLOG.CHINAUNIX.NET/UID-12216245-ID-3953014.HTML》 *
WLOVEG: "ARM Linux终端源码分析(2)--中断处理流程", 《HTTP://BLOG.CHINAUNIX.NET/UID-12216245-ID-3955163.HTML》 *
常峰等: "基于ARM-Linux的网络驱动程序设计", 《通信技术》 *
洪雪玉等: "Linux实时性研究及其中断进程化实现", 《软件技术与数据库》 *
胡吉朝等: "中断式网络通信技术在LabVIEW下的实现", 《微计算机信息》 *
薛钧义等: "《高等学校教材 微型计算机原理 修订版》", 30 April 1992, 西安电子科技大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250215A (en) * 2016-07-20 2016-12-21 中国航空工业集团公司航空动力控制***研究所 The graphical methods of exhibiting of interruption situation of embedded Control software
CN106250215B (en) * 2016-07-20 2019-05-31 中国航空工业集团公司航空动力控制***研究所 The graphical methods of exhibiting of interruption situation of embedded control software
CN109947539A (en) * 2017-12-20 2019-06-28 广州中国科学院先进技术研究所 A kind of robot controller

Similar Documents

Publication Publication Date Title
EP3352083B1 (en) Debugging method, multi-core processor, and debugging equipment
TWI727988B (en) System and method for establishing a trusted diagnosis/debugging agent over a closed commodity device
US9135130B2 (en) Debugging method, chip, board, and system
KR101619078B1 (en) A method and system for cell recovery in telecommunication networks
CN101859258A (en) Interrupt redirection between the System Management Mode processor
JP2010517164A5 (en)
CN104991811B (en) The method of adjustment and intelligent terminal of running state of process when shielding system switches
CN101236512A (en) Enabling multiple instruction stream/multiple data stream extensions on microprocessors
CN106603498B (en) Event reporting method and device
CN104794395A (en) Architecture characteristic based lightweight multi-system safety management structure
KR20150029613A (en) Recovery after input/output error-containment events
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
WO2024012003A1 (en) Data processing method and apparatus, and device, storage medium and program product
WO2023124589A1 (en) Method and apparatus for preventing processing by security processor from being interrupted
KR20180086919A (en) Cloud security analysing apparatus, apparatus and method for management of security policy based on nsfv
Sun et al. SIDE: Isolated and efficient execution of unmodified device drivers
CN106997313B (en) Signal processing method and system of application program and terminal equipment
US8737419B2 (en) Network concentrator and method of controlling the same
CN104636175A (en) ARM platform networking method for embedded real-time system
CN110309036B (en) CPU occupancy rate detection method and detection equipment
CN102023887B (en) Power supply management method of computer system and computer system
WO2012164418A1 (en) Facilitating processing in a communications environment using stop signaling
CN109063516B (en) Data processor
Stecklina Shrinking the hypervisor one subsystem at a time: A userspace packet switch for virtual machines
CN102722678A (en) Executable program protection mechanism for virtual desktop

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Nanping Road in Dongling District of Shenyang city of Liaoning Province, No. 110168 16-2

Applicant after: SHENYANG GAOJING NUMERICAL CONTROL INTELLIGENT TECHNOLOGY CO., LTD.

Address before: Nanping Road in Dongling District of Shenyang city of Liaoning Province, No. 16 110168

Applicant before: Shenyang High-End Computer Numerical Control Technology Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150520