CN101188057A - ARM-based flat wheel detection and control system - Google Patents
ARM-based flat wheel detection and control system Download PDFInfo
- Publication number
- CN101188057A CN101188057A CNA2007101448180A CN200710144818A CN101188057A CN 101188057 A CN101188057 A CN 101188057A CN A2007101448180 A CNA2007101448180 A CN A2007101448180A CN 200710144818 A CN200710144818 A CN 200710144818A CN 101188057 A CN101188057 A CN 101188057A
- Authority
- CN
- China
- Prior art keywords
- links
- master chip
- data line
- address wire
- adopts
- 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.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Power Sources (AREA)
Abstract
The invention relates to a face cam test and control system, which is based on the ARM. The system mainly comprises a power supply, a crystal, a reset circuit, an ARM, consisting of JTAG ports and working as an embedded CPU which is connected with FLASH and SDRAM; the invention also comprises a power-supply module, a buzzer, indicators, an eight-section nixietube and a system expansion bus, which are all connected with the embedded CPU. By using the distinctive features of the technology used in embedded products, the invention has self advantages of in size and power consumption. The invention does not have the problems such as crashes and upgrades, but has simpler and more convenient operation interfaces and operation manners, and relatively long lifecycle.
Description
(1) technical field
What the present invention relates to is a kind of railway pick-up unit, specifically a kind of flat wheel detection system.
(2) background technology
Along with improving constantly of railway transport capacity, railway interests presses for haulage vehicle is monitored in real time, to security, high efficiency, the higher requirement of intelligent proposition of railway checkout equipment.And wheel flat is exactly one of hidden danger of the great driving accident of train, therefore, for flat exploitation and the research of taking turns detection platform very important meaning is arranged
For many years, a lot of countries have done unremitting effort for the detection of dynamic that realizes wheel flat, put forward various plans, but the method that monitor supervision platform generally adopts, its major part is also all finished by industrial computer or PC, front end mainly adopts A/D change-over circuit image data, main afterwards algorithm and judgment task are all left industrial computer for and are finished, there is not independent entire system control procedure in some sense in this way, gather the data of coming and give industrial computer fully, though its complete function, but possess a lot of adverse factors simultaneously, for example volume is big, is difficult for expansion, construction cost, maintenance cost and dilatation cost are all high, and are unfavorable for field observation.
Present external some other technical method, on the DSP data acquisition board that begins the part work of industrial computer is moved to front, carry out most algorithm process, but because the complexity of algorithm, and a large amount of control, cause high efficiency and real-time to decrease, and this need adopt high-powered DSP, it requires configuration condition also higher, make the cost cost increase, design difficulty improves, therefore, adopt a kind of reasonable configuration structure and some new methods for designing, using for the design of flat wheel detection platform has very important meaning.
(3) summary of the invention
The object of the present invention is to provide a kind ofly can make that program development is more prone to, can improve the flat wheel detection and control system based on ARM of system stability and reliability simultaneously.
The object of the present invention is achieved like this:
It comprises that the ARM that mainly is made of power supply, crystal oscillator, reset circuit, JTAG mouth is used as embedded type CPU, FLASH is connected with embedded type CPU with SDRAM, also comprises the power module that is connected with embedded type CPU, hummer, pilot lamp, eight sections charactrons and system extension bus.
The present invention also comprises the serial port circuit that is connected with embedded type CPU; The LCD that is connected with embedded type CPU shows and corresponding keyboard control circuit.
Adopt ARM to be used as embedded type CPU, comprise that mainly power supply, crystal oscillator, reset circuit, JTAG mouth etc. constitute its minimum system, add that FLASH and SDRAM can constitute a more complete embedded system, other details comprise power module, hummer, pilot lamp, eight sections charactrons and system extension bus.Interactive mode debugging for embedded OS also has serial port circuit.With communicating by letter of upper PC, rationally adopt the scheme of Network Transmission.In addition, for the ease of the field observation and the debugging of whole detection platform, need LCD to show in real time and corresponding keyboard control circuit.Because the Peripheral Interface that ARM is abundant, therefore for example serial line interface and liquid crystal interface etc., and be convenient to the expansion of bus can finish the control function of the platform that flat wheel detects fully.
And in the embedded system application and development, adopt embedded real-time operating system can support multitask, and make program development be more prone to, improved system stability and reliability simultaneously.The present invention adopts the VxWorks of Wind RiverSystem company as operating system, but it has high-performance cutting and characteristics such as remarkable real-time and reliability.
Superiority of the present invention and technique effect: the product technology of utilizing embedded technology especially salient feature is:
1. because embedded system adopts is microprocessor, often do not need a large amount of peripheral components, therefore on the volume, himself advantage arranged on the power consumption.
2. embedded system is convenient to transplant various independently operating systems, and the industrial computer that adopts Windows of comparing does not need to worry various problems such as deadlock, upgrading.
3. embedded system is the product of software and hardware height combination, and the realization of its SOC (system on a chip) makes this series products have easier operation interface and mode of operation.
Embedded system often and concrete the application combine, its upgrading and specific product carry out synchronously, so in a single day the embedded system product come into the market, and have long life cycle.
Our design philosophy is that whole platform is specialized according to its functional characteristics modularization, the division of labor.Wherein main detection algorithm partly is placed among the DSP and handles, and the transmission of the data stream of whole platform and coordination control are all finished by this embedded type control module, detect the data of flat wheel and finally will carry out data base administration to upper PC by network delivery, this part also comprises man-machine interface etc.And the present invention is exactly a control module wherein, main configuration and the control of being responsible for the data collection, and the temporary and transmission of data.
(4) description of drawings
Fig. 1 is embedded flat wheel detection platform one-piece construction block diagram.
Fig. 2 is an embedded type CPU control module hardware composition diagram.
Fig. 3 is the Ethernet interface hardware circuit diagram.
Fig. 4 is a keyboard charactron hardware circuit diagram.
The form of data stream in Fig. 5 communication.
Fig. 6 network multiple-task associated diagram.
The Interrupt Process process flow diagram of Fig. 7 dual port RAM and ARM communication process.
(5) embodiment
For example the present invention is done description in more detail below in conjunction with accompanying drawing:
1, hardware components:
In conjunction with Fig. 2, its detail is as follows:
1) embedded host CPU adopts the representative microcontroller S3CxxB0 of the Samsung ARM7TDMI of company nuclear, and the dominant frequency maximum can reach 66MHz.
2) 8M internal memory SDRAM adopts HY57V64xxxx, as the space of system code operation, that is: [0x0C000000~0X0C800000].Its data line D15~D0 links to each other with master chip data line DATA15~DATA0, address wire A11~A0 links to each other with master chip address wire ADDR12~ADDR1, and control line links to each other with master chip nWBE0, nWBE1, nSCKE, nSCLK, nSCS0, nSRAS, nSCAS respectively.
3) FLASH[0x00000000~0X00200000 of 2M] be used for program curing, adopt AM29LVxxxDB, its data line D15~D0 links to each other with master chip data line DATA15~DATA0, address wire A20~A0 links to each other with master chip address wire ADDR21~ADDR1, and control line links to each other with master chip nGCS0, nWE, nOE, nRESET respectively.As needs, expansion simultaneously adopts Nand-F1ash as electronic hard disc, can be used as the data of the flat wheel of storage, as K9FxxxxU0A etc.
4) the interactive development environment that adopts for embedded system, the adding of serial ports has improved the efficient of exploitation greatly, here only need carry out simple data and send receiving function, the present invention adopts MAXxxxx as level conversion, and direct the connection with CTS0, RTS0, TXD0, the RXD0 of master chip of 9,10,11,12 pins of MAXxxxx gets final product.
5) because S3CxxB0 itself does not have network interface, so need to adopt the pattern of extended network interface, the present invention has adopted the CS89xxA network interface chip, full-duplex communication, transmitting-receiving can reach the speed of 10Mbps simultaneously, this module circuit diagram please refer to Fig. 3: CS89xxA (U1) links to each other with RJ45 (J1) by an isolating transformer 20FxxxN (U2), carry out the data communication between network and the CPU, the effect of isolating transformer mainly is to prevent to disturb and burn out components and parts, realizes charged plug function.Some control pins of CS89xxA will carry out logical transition as NET_MEMW, NET_MEMR, BnWBE1, NET_IOR, NET_IOW or the like in CPLD, be connected at last on the control line of S3Cxxxx.
6) communicate by letter between DSP data processing end and the present invention and adopt dual port RAM, as IDT70Vxx.Its data line D15~D0 links to each other with S3CxxB0 data line DATA15~DATA0, and address wire A11~A0 links to each other with S3CxxB0 address wire ADDR12~ADDR1, and control line is connected with nWE, the nOE of S3CxxB0 respectively, a sheet selects and an external interrupt.Dsp board is connected with the ARM plate and adopts 96 needle interfaces, if IDT70Vxx is placed on dsp board one end, then S3CxxB0 data line, address wire and control line are directly connected to 96 needle interfaces and get final product.
7) keyboard circuit adopts matrix keyboard, and chip for driving adopts ZLGxxxx, and when keyboard was pressed, chip detection produced down trigger level notice master chip to the back at the INT pin, and master chip reads the key assignments of preserving in the chip by iic bus.Simultaneously, ZLGxxxx also can expand a plurality of eight sections charactrons.
8) EEPROM adopts AT24Cxx, can be used for critical data and the record that system's power down preserves.Keyboard circuit and EEPROM all adopt iic bus to control, and its hardware circuit (with reference to figure 4) mainly comprises: U1 is 5 * 4 matrix keyboards, and U2 is 8 sections charactrons of 2, and U3 is EEPROM, and they all drive by U4-ZLGxxxx.
9) LCDs adopts the UG32Gxx of Samsung company, adopts power transfer module MC3xxxx simultaneously.This part is mainly finished the data of displayed record, comprises essential information and informations such as license number, compartment, the speed of a motor vehicle, flat wheel wheel check mark.
10) increase CPLD as logical extension, adopt EPM7xxxAE.
11) other some peripheral circuits: TCK, TMS, TDI, TRST and the TDO port of the corresponding S3CxxB0 of jtag interface, can select the jtag interface debugger of 20 pins for use, be added with ground wire to avoid interference.Reset circuit finishes system power-on reset and user key-press resets, and can adopt control chips such as IMP811, can select different reset level values.Adopt the active crystal oscillator of 8M to provide work clock, can carry out frequency multiplication by the PLL circuit in the S3CxxB0 for system.Hummer is connected on the GPE3 pin, and debugging is by being connected on the external interrupt, other can select any unworn universal port as the indication LED lamp.
2, software section:
Because the present invention has adopted vxworks operating system, need plate level support package BSP, and write the configuration file of kernel at hardware of the present invention and different demands, after finishing the kernel initialization in early stage, set up system clock and interruption, add serial port drive or the like for the ease of debugging, need to write network device driver simultaneously, if use Nand-Flash as electronic hard disc, also need to set up the TrueFFS file system, finally generate the reflection of VxWorks with BSP.
For upper-layer user's program, can be divided into following components according to function:
1). network service: the network service of the present invention and far-end PC is based upon on the tcp/ip layer, as long as the BSP of front VxWorks finishes the bottom layer driving of network and the loading of TCP/IP upper-layer protocol, just can utilize the function that provides among the function library sockLib of VxWorks correspondence to realize network service.The present invention is responsible for fill order and return results as server end, and upper PC is as client, and the software at normally man-machine control interface is responsible for sending and is ordered, monitors, sets up database etc.In order to understand the character string that communicating pair sends over, also should set up communication protocol, comprise command number, string length, the emergency circumstance etc., these can stipulate to be placed on the position of the several byte in foremost of all data, ensuing is clear data (particular content about communication data please refer to Fig. 5).Simultaneously, at the robustness of network service, functions such as network monitoring and self-healing must be arranged, interrupt (for example PC end human interface software withdraws from suddenly) in case connect, server end is got back to again the state of listen socket at once, waits for reconnecting of client.VxWorks acquiescence adopts the obstructive type socket, and send buffer be empty when sending the full or recv of buffer zone during send, all can be blocked in the there, therefore, if network service employing single task pattern obviously is not suitable for, may cause main task to get clogged.What the present invention adopted is exactly Network Transmission and the function control that the network multiple-task mode is finished flat wheel data, please refer to Fig. 6.
2). with communicating by letter of DSP signal-processing board: for dual port RAM: IDT70Vxx, this flat wheel detection platform has adopted the pattern of interrupting, by DSP control data are sent in the dual port RAM, and the external interrupt pin notice that drags down connection ARM plate is peeked, the ARM plate need be finished afterwards: receive data, again draw high its interrupt pin, and notice DSP data (control IDT70Vxx drags down the interrupt pin that connects DSP) have been taken out.Characteristics according to the interrupt management of real time operating system VxWorks, the mode that the present invention adopts interrupt service routine and interrupt service task to cooperate is handled and is caused the external event that interrupts, wherein interrupt service routine is just carried out the most basic Interrupt Process, disabled interrupt for example, judge interrupt type, remove hardware related register etc., and the processing of most task definitions, particularly can early cause the task of obstruction, all be put in the interrupt service task and carry out, wherein, interrupt service routine and interrupt service task are synchronous with semaphore, please refer to the DSP concrete process flow diagram 7 of communicating by letter with ARM.In addition, the ending that interrupt service task is handled can discharge the synchronizing signal amount that the networking sends task, here adopt counting semaphore,, also do not initiate network and send task if this moment, socket did not connect as yet, whenever temporary flat wheel data, the semaphore counting also increases by 1.Send task (its priority is higher) in case initiated network, will wake the how many times network immediately up and send task according to what of count signal value.
3) keyboard and LCD display module:, only need operate getting final product to IIC because Keyboard Control has adopted iic bus, so does not need to carry out writing of keyboard drive among the BSP.Operation for LCDs, can write the function that needs voluntarily shows, also can utilize instruments such as the assembly WindML of VxWorks or ZINC to develop, be directed to flat wheel detection platform, some api function exploitations that the present invention utilizes WindML to provide get final product: show or the like comprising fundamental figure demonstration, bitmap demonstration, Chinese character, in conjunction with the control of keyboard, make on-the-spot dynamic demonstration that detects and data query change be more prone to.
4). some other concrete function that the present invention realizes: the PC end subscriber can be controlled restarting of whole platform, the calibration of ARM plate clock, and the self check of control total system, these all will lean on the support of communication protocol, when not having train to pass through for a long time, can enter IDLE MODE, stop the clock supply of CPU CORE by PC end control ARM plate as the scene, only provide clock, therefore can reduce the consumption of power supply all peripheral hardwares.In addition, keyboard has necessary user's field control function, can key in numerical value and revise and be provided with, and the setting of some parameter is passed to DSP, and the work of control DSP and the control of PC end are similar, do not need update routine equally, make operation become simple.
Claims (7)
1. flat wheel detection and control system based on ARM, it is characterized in that: it comprises that the ARM that mainly is made of power supply, crystal oscillator, reset circuit, JTAG mouth is used as embedded type CPU, FLASH is connected with embedded type CPU with SDRAM, also comprises the power module that is connected with embedded type CPU, hummer, pilot lamp, eight sections charactrons and system extension bus.
2. the flat wheel detection and control system based on ARM according to claim 1 is characterized in that: also comprise the serial port circuit that is connected with embedded type CPU.
3. the flat wheel detection and control system based on ARM according to claim 1 and 2 it is characterized in that: further comprising: the LCD that is connected with embedded type CPU shows and corresponding keyboard control circuit.
4. the flat wheel detection and control system based on ARM according to claim 1 and 2 is characterized in that: described embedded type CPU is that S3CxxB0 is a master chip; Described SDRAM is HY57V64xxxx, its data line D15~D0 links to each other with master chip data line DATA15~DATA0, address wire A11~A0 links to each other with master chip address wire ADDR12~ADDR1, and control line links to each other with master chip nWBE0, nWBE1, nSCKE, nSCLK, nSCS0, nSRAS, nSCAS respectively; Described FLASH is AM29LVxxxDB, its data line D15~D0 links to each other with master chip data line DATA15~DATA0, address wire A20~A0 links to each other with master chip address wire ADDR21~ADDR1, and control line links to each other with master chip nGCS0, nWE, nOE, nRESET respectively; Adopt MAXxxxx as level conversion, 9,10,11,12 pins of MAXxxxx directly are connected with CTS0, RTS0, TXD0, the RXD0 of master chip; Adopt the CS89xxA network interface chip; Communicate by letter between DSP data processing end and the present invention and adopt dual port RAM, as IDT70Vxx, its data line D15~D0 links to each other with S3CxxBx data line DATA15~DATA0, address wire A11~A0 links to each other with S3C44B0 address wire ADDR12~ADDR1, and control line selects and an external interrupt with nWE, the nOE of S3CxxB0, a sheet respectively; Dsp board is connected employing 96 needle interfaces with the ARM plate; Keyboard circuit adopts matrix keyboard, and chip for driving adopts ZLGxxxx EEPROM to adopt AT24Cxx; LCDs adopts UG32Gxx, adopts power transfer module MC3xxxx simultaneously.
5. the flat wheel detection and control system based on ARM according to claim 3 is characterized in that: described embedded type CPU is the S3CxxB0 master chip; Described SDRAM is HY57V64xxxx, its data line D15~D0 links to each other with master chip data line DATA15~DATA0, address wire A11~A0 links to each other with master chip address wire ADDR12~ADDR1, and control line links to each other with master chip nWBE0, nWBE1, nSCKE, nSCLK, nSCS0, nSRAS, nSCAS respectively; Described FLASH is AM29LVxxxDB, its data line D15~D0 links to each other with master chip data line DATA15~DATA0, address wire A20~A0 links to each other with master chip address wire ADDR21~ADDR1, and control line links to each other with master chip nGCS0, nWE, nOE, nRESET respectively; Adopt MAXxxxx as level conversion, 9,10,11,12 pins of MAXxxxx directly are connected with CTS0, RTS0, TXD0, the RXD0 of master chip; Adopt the CS89xxA network interface chip; Communicate by letter between DSP data processing end and the present invention and adopt dual port RAM, as IDT70Vxx, its data line D1 5~D0 links to each other with S3C44B0 data line DATA15~DATA0, address wire A11~A0 links to each other with S3CxxB0 address wire ADDR12~ADDR1, and control line selects and an external interrupt with nWE, the nOE of S3CxxB0, a sheet respectively; Dsp board is connected employing 96 needle interfaces with the ARM plate; Keyboard circuit adopts matrix keyboard, and chip for driving adopts ZLGxxxx; EEPROM adopts AT24Cxx; LCDs adopts UG32Gxx, adopts power transfer module MC3xxxx simultaneously.
6. the flat wheel detection and control system based on ARM according to claim 4, it is characterized in that: other some peripheral circuits: TCK, TMS, TDI, TRST and the TDO port of the corresponding S3CxxB0 of jtag interface, select the jtag interface debugger of 20 pins for use, reset circuit adopts the IMPxxx control chip, and hummer is connected on the GPE3 pin.
7. the flat wheel detection and control system based on ARM according to claim 5, it is characterized in that: other some peripheral circuits: TCK, TMS, TDI, TRST and the TDO port of the corresponding S3CxxB0 of jtag interface, select the jtag interface debugger of 20 pins for use, reset circuit adopts the IMPxxx control chip, and hummer is connected on the GPE3 pin.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101448180A CN100507968C (en) | 2007-12-14 | 2007-12-14 | ARM-based flat wheel detection and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101448180A CN100507968C (en) | 2007-12-14 | 2007-12-14 | ARM-based flat wheel detection and control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101188057A true CN101188057A (en) | 2008-05-28 |
CN100507968C CN100507968C (en) | 2009-07-01 |
Family
ID=39480421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101448180A Expired - Fee Related CN100507968C (en) | 2007-12-14 | 2007-12-14 | ARM-based flat wheel detection and control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100507968C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231060A (en) * | 2011-07-18 | 2011-11-02 | 北京航天福道高技术股份有限公司 | General-purpose hardware platform device |
CN102360305A (en) * | 2011-10-09 | 2012-02-22 | 中国航天科技集团公司第五研究院第五一三研究所 | VxWorks operating system scaling and customizing method for aerospace computer |
CN106765870A (en) * | 2016-11-22 | 2017-05-31 | 浙江大学城市学院 | A kind of mobile communication base station energy-saving monitoring Management Integrated Control System |
CN111565126A (en) * | 2019-10-16 | 2020-08-21 | 江苏云涌电子科技股份有限公司 | Network situation perception acquisition device |
-
2007
- 2007-12-14 CN CNB2007101448180A patent/CN100507968C/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231060A (en) * | 2011-07-18 | 2011-11-02 | 北京航天福道高技术股份有限公司 | General-purpose hardware platform device |
CN102360305A (en) * | 2011-10-09 | 2012-02-22 | 中国航天科技集团公司第五研究院第五一三研究所 | VxWorks operating system scaling and customizing method for aerospace computer |
CN102360305B (en) * | 2011-10-09 | 2013-09-04 | 中国航天科技集团公司第五研究院第五一三研究所 | VxWorks operating system scaling and customizing method for aerospace computer |
CN106765870A (en) * | 2016-11-22 | 2017-05-31 | 浙江大学城市学院 | A kind of mobile communication base station energy-saving monitoring Management Integrated Control System |
CN111565126A (en) * | 2019-10-16 | 2020-08-21 | 江苏云涌电子科技股份有限公司 | Network situation perception acquisition device |
Also Published As
Publication number | Publication date |
---|---|
CN100507968C (en) | 2009-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN207367115U (en) | A kind of server master board and server based on Feiteng processor | |
CN100507968C (en) | ARM-based flat wheel detection and control system | |
CN104656632A (en) | Integrated interface test system and detection method for aircraft semi-physical simulation tests | |
CN204241597U (en) | Portable cable fast detector | |
CN105487533A (en) | Vehicle-mounted diagnostic data sharing terminal system | |
CN110389927A (en) | A kind of four road servers | |
CN102768561B (en) | Design method for twinbridge piece mainboard redundancy | |
CN112596743A (en) | JTAG interface-based military FPGA universal reconfiguration circuit | |
CN202025427U (en) | Vehicle-mounted monitoring device for agricultural products in distribution process | |
CN201177836Y (en) | Information recorder for hybrid power automobile | |
CN107861565A (en) | Computer control system based on Loongson processor | |
CN103631739B (en) | The method for positioning analyzing and embedded system of embedded system | |
CN200993738Y (en) | Linux based modulariz embedded industrial control platform device | |
CN205486066U (en) | Control card based on embedded operating system | |
CN110119113A (en) | A kind of embedded short-wave antenna alteration switch control system | |
CA2792247A1 (en) | A high-speed communication chip of anti-irradiation interference in the harsh environment | |
CN104572515B (en) | Tracking module, method, system and on-chip system chip | |
CN201673382U (en) | Test-launch-control computer platform structure | |
CN201903931U (en) | Tax controlled gathering machine | |
CN106647495A (en) | Ultra-high-frequency range finder control system and realization method thereof | |
CN207224994U (en) | Automobile tire intelligent monitor system | |
CN205845211U (en) | A kind of multi-functional public transport card fills shifting money POS | |
CN101609319B (en) | Circuit device for monitoring running state of programs in real time | |
CN209590607U (en) | Flying shear controller state display circuit | |
CN111294985A (en) | Portable miner lamp communication system based on 4G, communication method and construction method |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090701 Termination date: 20111214 |