CN101364312A - Implementing method for embedded application control unit of automatic tichet checking machine - Google Patents

Implementing method for embedded application control unit of automatic tichet checking machine Download PDF

Info

Publication number
CN101364312A
CN101364312A CNA2007100446949A CN200710044694A CN101364312A CN 101364312 A CN101364312 A CN 101364312A CN A2007100446949 A CNA2007100446949 A CN A2007100446949A CN 200710044694 A CN200710044694 A CN 200710044694A CN 101364312 A CN101364312 A CN 101364312A
Authority
CN
China
Prior art keywords
reworks
operating system
machine
host
target machine
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
CNA2007100446949A
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.)
SHANGHAI POTEVIO CO Ltd
Original Assignee
SHANGHAI POTEVIO 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 SHANGHAI POTEVIO CO Ltd filed Critical SHANGHAI POTEVIO CO Ltd
Priority to CNA2007100446949A priority Critical patent/CN101364312A/en
Publication of CN101364312A publication Critical patent/CN101364312A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an implementation method of an embedded type application control unit on an automatic ticket checker, which is realized through the following steps: a debugging and development environment which comprises an object machine, a host machine and a network connecting the object machine with the host machine is built; a bootstrap program of a Reworks operating system is installed on the object machine; a ReWorks application development environment ReDe is installed on the host machine; in the ReWorks application development environment ReDe, a set of core components of a telescopiform embedded type real time operating system ReWorks are customized, wherein, the customize can be cut out; control unit application layer software of the automatic ticket checker is compiled by utilizing hard real time scheduling, basic memory management, clock management and interruption management which are provided by a Reworks microkernel as well as the interface functions such as a timer, a region, a subarea, a signal, events, semaphores, information, etc. which are provided by the Reworks operating system; the downloading is performed on the object machine for debugging through a network after successfully compiling on the host machine; a control software package is led to be less than 1.5M and is beneficial to be developed by multiple people at the same time, and the requirement of quick development period can be realized.

Description

The implementation method of embedded application control unit of automatic tichet checking machine
Technical field
The present invention relates to a kind of automatic ticket checker, relate in particular to a kind of implementation method of embedded application control unit of automatic tichet checking machine.
Background technology
Automatic ticket checker is a member in the AFC system, and it is mainly used between toll zone and the non-toll zone of AFC system, tourism sight spot, gardens AFC system of urban track traffic personnel and the work attendance in the people's group control and statistics and office buildings and controls.
At present, the control module software realization mode of automatic ticket checker all adopts in the Shanghai rail transit AFC system terminal device is the mode of application program of respective application demand of packing on the control module of the operating system that existing main flow is housed in advance.The software realization mode that is to say the control module of automatic ticket checker is that operating system and application layer Control Software are self-existent separately.
The operating system that existing automatic ticket checker equipment adopts all is: the Windows of Microsoft, the Linux that increases income and ancient DOS system.That its development environment correspondence adopts is .NET environment, GCC and the Borlandc C++ (or TC) etc. of Microsoft.
Because in the AFC (Automatic Fare Collection) terminal device, some task of automatic ticket checker has stronger real-time (such as ticket card Processing tasks, retention device and network communication Processing tasks etc.) all to require to provide response in the regular hour.The picture general-purpose operating system such as DOS do not support the multi-process programming, can cause catastrophic consequence to the task of obstructive type, and real-time is not strong yet, is difficult to ensure the real-time of these mission criticals, has fault in actual use often and takes place.In addition, some use maximum operating system such as Windows, because the general-purpose operating system is bulky, reliability is had a greatly reduced quality.
It will be a trend that the AFC (Automatic Fare Collection) terminal device adopts embedded OS.Embedded OS has comparatively outstanding characteristics at the aspects such as specificity of relevant dependence, software solid state and the application of system's real-time high-efficiency, hardware.
Though now also released the XPe that can reduce (generally also needing about 200M), in use also exist powered-off fault, the phenomenon of system crash produces.And, in performance history or operation process, some system bottom faults are difficult to diagnosis, fault location place fast.Because AFC system is a big network system, in case certain node infective virus will propagate into whole network fast, causes unpredictable consequence.
How selecting a suitable operating system, will be the big problem that the developer faces.In general, select embedded OS should consider that the compatibility of committed memory size, real-time performance, software module and device driver, debugging acid, standard, technical support, expense, development environment etc. are all multifactor.
ReWorks is the real-time embedded operating system of the 32 research institute of China Electronic Science and Technology Corporation (Huadong Computing Technology Inst.) independent development, provide the interface and market that meet the real-time standard of IEEE POSIX1003.13-2003/POSIX 1003.1-2001 widely used VxWorks compatibility interface, its real-time response time less than 15 microsecond levels (100MHZ CPU frequency), system's minimal configuration less than 30KB.
But ReWorks is the telescopic embedded real-time operating system that the core component by micro-kernel and one group of cutting makes up.Micro-kernel provides functions such as hard real time scheduling, base memory management, Clock management, interrupt management, but core component provides clipping functions such as timer, zone, subregion, signal, incident, semaphore, message, satisfies from dark embedded system to high-end complicated embedded system demand.
How ReWorks being applied in the automatic ticket checker is the problem that the technician will solve.
Summary of the invention
The technical issues that need to address of the present invention have provided a kind of implementation method of embedded application control unit of automatic tichet checking machine, are intended to solve the above problems.
In order to solve the problems of the technologies described above, the present invention realizes by following steps:
Build a debugging and development environment: the network between target machine (being automatic ticket checker), host (development environment) and linking objective machine and host is arranged;
The boot of Reworks operating system is installed on target machine;
ReWorks Application development environ-ment ReDe is installed on host;
In ReWorks Application development environ-ment ReDe, but the core component of one group of cutting of telescopic embedded real-time operating system ReWorks is customized;
Utilization Reworks micro-kernel provides interface functions such as timer that hard real time scheduling, base memory management, Clock management, interrupt management and Reworks operating system provides, zone, subregion, signal, incident, semaphore, message, writes the control module application layer software of automatic ticket checker;
After compiling successfully on the host, debug by network download to target machine;
After debugging successfully, the control module application layer software of this automatic ticket checker is copied to the normal operation that can realize target machine on the target machine.
Compared with prior art, the invention has the beneficial effects as follows: because the application layer Control Software of ReWorks operating system and automatic ticket checker has been carried out incorporate design, make Control Software wrap in below the 1.5M, reduce demand greatly the hardware store unit of control module; Because Control Software is finished on host, help many people and develop simultaneously again, can realize quick construction cycle needs.
Description of drawings
Fig. 1 is ReWorks operating system configuration figure;
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is described in further detail: the present invention realizes by following steps:
1. build a debugging and development environment: the network between target machine (being automatic ticket checker), host (development environment) and linking objective machine and host is arranged;
2. the boot of Reworks operating system is installed on target machine;
3. ReWorks Application development environ-ment ReDe is installed on host;
4. in ReWorks Application development environ-ment ReDe, but the core component of one group of cutting of telescopic embedded real-time operating system ReWorks is customized;
5. utilization Reworks micro-kernel provides interface functions such as timer that hard real time scheduling, base memory management, Clock management, interrupt management and Reworks operating system provides, zone, subregion, signal, incident, semaphore, message, writes the control module application layer software of automatic ticket checker;
6. after compiling successfully on the host, debug by network download to target machine.
In step 1: the characteristics of this development environment of the present invention are different with the development environment of present main flow, exploitation be equipped with everybody the custom the Window environment under host on carry out, having solved the technician must directly finish on target machine in the process of exploitation control module software, this both had been unfavorable for that many people developed simultaneously, and having limited development environment again must have the target machine environment, is unfavorable for the quick construction cycle of team.
Typical host's development system has bigger RAM, disk space, storage medium, printer and other peripheral hardware.Comparatively speaking, typical goal systems only has the necessary resource of real-time application, also may also have some other a few resources for test and debugging usefulness.Target machine only has a CPU (RAM is also in chip) and a serial ports I/O probably.
In step 2: the boot of Reworks operating system is installed on target machine, and it can not destroy original operating system, can support to realize the guiding of several operation systems.It mainly is to be used for obtaining the application program that bundles with Reworks from host under debugging enironment, or in the function of the normal application program of direct execution in service on target machine.
In step 3: ReWorks Application development environ-ment ReDe is installed on host, ReWorks Application development environ-ment ReDe is based on Eclipse exploitation architecture, ReDe possesses feature card combination flexibly and extension mechanism, it is integrated that support is carried out the interface to developing instrument, collection design, exploitation, configuration, debugging, simulation run are one, the graphical interfaces development system of " What You See Is What You Get " is provided, can accelerates the development efficiency of application system.That is to say that the technician finishes on host in the process of exploitation control module software, rather than on target machine, helps many people and develop simultaneously, can realize quick construction cycle needs.
In step 4: as seen from Figure 1, ReWorks operating system is a telescopic embedded real-time operating system.Before writing application program, must be in ReWorks Application development environ-ment ReDe, but earlier the core component of one group of cutting of ReWorks is customized.Because the microkernel designs of ReWorks can ensure the stability of Automatic Verify-checking Tickets System, but the clipping volume architecture can satisfy the function expansion demand of automatic ticket checker.Adopted have micro-kernel, high real-time and crash-free Reworks operating system, guarantee the accessible realization of security of the mechanical floor of automatic ticket checker.Make the control module software of automatic ticket checker have functions such as anti-virus and anti-powered-off fault, this also is a principal feature of the present invention.
In step 5: utilization Reworks micro-kernel provides interface functions such as timer that hard real time scheduling, base memory management, Clock management, interrupt management and Reworks operating system provides, zone, subregion, signal, incident, semaphore, message, writes the control module application layer software (as ticket card Processing tasks, retention device and network communication Processing tasks etc.) of automatic ticket checker.
Be to adopt modular design among the present invention, each module is to realize by different tasks, and the task scheduling by Reworks is selected a task and moved to processor from the task of ready state.The kernel program of being responsible for the task scheduling feature is called task dispatch or task dispatcher, and it is an important component part of kernel.The priority scheduling algorithm is to dispatch according to the priority size of task, makes high-priority task obtain the scheduling strategy of priority processing.
The task of foundation relates to two operations: the firstth, call the actual task of setting up with rtos_task_create, and the secondth, call with rtos_task_start and to make task become ready state.Rtos_task_create makes new task be in latence, must call the process that rtos_task_start finishes the work and sets up, and task is in case after starting, task becomes ready state to wait for scheduled for executing.
Get in touch by message and incident between each task.Message queue is the buffer zone with variable length of using dynamic creation, and formation is the mechanism of system management.Formation permission task is transmitted the message of variable length.Can use formation to carry out the exclusive reference of several resources of the same race.The length of formation is equivalent to the number of resource in this, and what tasks it has determined to use this resource simultaneously.
Incident is a semaphore, and rtos_event_send is used for transmitting one or more incidents to another task.If goal task is not in the incident of waiting for these transmission, then rtos_event_send is just in events corresponding position 1; If task is being waited for necessary incident and is being met fully now that then releasing task is blocked, become readyly, otherwise task will continue the remaining incident of wait.In either case, the do not match incident waited for of the incident of any transmission always suspends and 1 stays.
Incident is separate, and rtos_event_receive uses AND or OR condition to limit the synchronous of one or more event comes.If all event bit that need all put 1, rtos_event_receive please remove these event bit, and returns immediately; Otherwise task can be selected to return immediately or be clogged to always and receive till the incident of wanting.Incident is noncumulative.Before task call rtos_event_receive comes the reception incident, even there are many identical incidents to be sent to this task.The result is identical with the incident that suspends.
Rtos_event_receive calls and only catches the incident that caller is selected, and the incident that it catches each selection once.If the incident of incident that suspends and selection is inconsistent, the incident that suspends still suspends.Equally, if incident that suspends is delivered to after previous incident has been used to the incident of the selection of mating, then this incident still suspends.
Asynchronous event is meant none regularly event at random of order relation.Finish data transmission as external unit, abnormal conditions etc. appear in real-time control unit.Interruption is a hardware mechanisms, and it signals to CPU, and expression external asynchronous incident takes place.Compare with application task, task is by the ReWorks isochronous schedules, and interrupt handling routine be asynchronous execution can't help the ReWorks scheduling.When interrupting being triggered, interrupt handling routine just brings into operation.Interruption supervisor provides system call: rtos_interrupt_catch sets up an ISR.Allow application program with a function, promptly interrupt handling routine (ISR) is connected to a hardware interrupts vector.
Check the I/O equipment driver structure in the ReWorks and operate and do not add any restriction.Driver can concentrate be selected in the ReWorks system service, realizes lining up, waits for, wakes up, cushions and other mechanism with a kind of data of the most suitable special driver and the method for control characteristic.The ReWorks kernel comprises the I/O watchdog routine.The purpose of this watchdog routine is not only for driver being incorporated into system but also for call the standard method that these drivers provide the equipment of being independent of from user's application.It should be noted that and beyond the ReWorks kernel, realize I/O.Like this, the ReWorks equipment control quick response that has very big dirigibility and I/O is interrupted.
Have 15 modules in the present invention, be respectively reader processing module, display interface processing module, configuration file processing module, network link processing module, data encryption module, message processing module, NVRAM driver module, application file preserve processing module, movement read-write processing module, hardware interface processing module, procotol processing module, serial port protocol processing module, with platform computerized information interaction process module, each module design task schedule process module and graphic presentation processing module.
Step 6: after compiling successfully on the host, debug by network download to target machine.After debugging successfully, the control module application layer software of this automatic ticket checker is copied to the normal operation that can realize target machine on the target machine.
The application layer Control Software of this micro-kernel of the present invention, operating system and automatic ticket checker is that the characteristics of incorporate design show that also the Control Software of the control module software of automatic ticket checker wraps in below the 1.5M, reduces the demand to the hardware store unit of control module greatly.Because taking storage space reduces greatly, makes control module no longer need hard disk, has saved the resource of control module to a greater extent, has reduced cost.And the control module software of automatic ticket checker can realize that Control Software starts (less than 10 seconds) fast.

Claims (1)

1. the implementation method of an embedded application control unit of automatic tichet checking machine, realize by following steps:
Build a debugging and development environment: the network between target machine, host and linking objective machine and host is arranged;
The boot of Reworks operating system is installed on target machine;
ReWorks Application development environ-ment ReDe is installed on host;
In ReWorks Application development environ-ment ReDe, but the core component of one group of cutting of telescopic embedded real-time operating system ReWorks is customized;
Utilization Reworks micro-kernel provides interface functions such as timer that hard real time scheduling, base memory management, Clock management, interrupt management and Reworks operating system provides, zone, subregion, signal, incident, semaphore, message, writes the control module application layer software of automatic ticket checker;
After compiling successfully on the host, debug by network download to target machine;
After debugging successfully, the control module application layer software of this automatic ticket checker is copied to the normal operation that can realize target machine on the target machine.
CNA2007100446949A 2007-08-08 2007-08-08 Implementing method for embedded application control unit of automatic tichet checking machine Pending CN101364312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100446949A CN101364312A (en) 2007-08-08 2007-08-08 Implementing method for embedded application control unit of automatic tichet checking machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100446949A CN101364312A (en) 2007-08-08 2007-08-08 Implementing method for embedded application control unit of automatic tichet checking machine

Publications (1)

Publication Number Publication Date
CN101364312A true CN101364312A (en) 2009-02-11

Family

ID=40390667

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100446949A Pending CN101364312A (en) 2007-08-08 2007-08-08 Implementing method for embedded application control unit of automatic tichet checking machine

Country Status (1)

Country Link
CN (1) CN101364312A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111537791A (en) * 2020-07-01 2020-08-14 杭州雷甸科技有限公司 Intelligent electric meter based on embedded operating system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111537791A (en) * 2020-07-01 2020-08-14 杭州雷甸科技有限公司 Intelligent electric meter based on embedded operating system

Similar Documents

Publication Publication Date Title
Dibble Real-time Java platform programming
US20060277400A1 (en) System for executing code during operating system initialization
EP1870810A2 (en) Kernel-aware debugging system, medium, and method
WO2018028055A1 (en) Method and apparatus for running android application program on windows system
US20040199927A1 (en) Enhanced runtime hosting
US20010034751A1 (en) Real-time OS simulator
KR20040068600A (en) A method and a system for executing operating system functions, as well as an electronic device
Saksena et al. Design and implementation of Maruti-II
CN101529392A (en) Method and system for instruction stuffing operations during non-intrusive digital signal processor debugging
CN104461876A (en) Concurrent program reappearance debugging method based on snapshot sequence running
JP3938343B2 (en) Task management system, program, and control method
Kirsch et al. A programmable microkernel for real-time systems
CN100538649C (en) Be used to distribute the untapped processor round-robin method and system in the dispatch window
Lindstrom et al. Model checking real time Java using Java PathFinder
CN108958903B (en) Embedded multi-core central processor task scheduling method and device
CN101364312A (en) Implementing method for embedded application control unit of automatic tichet checking machine
des Places et al. Linux on the OSF Mach3 microkernel
Leyva-del-Foyo et al. Predictable interrupt scheduling with low overhead for real-time kernels
CN110851239B (en) TYPE-I TYPE hard real-time high-reliability full-virtualization method
US20030204639A1 (en) Task dispatch in priority pre-emptive real-time operating systems
CN108958904B (en) Driver framework of lightweight operating system of embedded multi-core central processing unit
CN108958905B (en) Lightweight operating system of embedded multi-core central processing unit
Harbour Real-time posix: an overview
Obenland et al. Comparing the Real-time Performance of Windows NT to an NT Real-time Extension
Zhang et al. Design of Real Time Communication Software Based on ReWorks Operating System

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090211