Summary of the invention
For solving the above-mentioned defective that exists in the prior art, the utility model provides a kind of car parking area truck space guiding system main control system, this main control system not only can be finished the parking situation of parking stall is carried out real-time statistics, this statistics is transmitted to host computer by Ethernet, can also control a plurality of navigational panels simultaneously, can guide the driver to find the empty wagons position quickly and accurately.
For this reason, the technical solution adopted in the utility model is as follows:
A kind of parking position guidance system main control system, comprise controller, described controller is provided with two-way RS485 interface (COM0, COM1), network communication interface, latch and power circuit module, and wherein: controller communicates by network communication interface and host computer; The RS485 interface is used to connect harvester and navigational panel by bus; The input end of latch links to each other with LED light, is used for the related work state indication of system; Power module is used for the management to device power supply (DPS).
As preferably, also be provided with the SPI interface on the described controller, link to each other with SPI FLASH by this SPI interface, be used for extending out of system data storage.
As preferably, the RS485 interface (COM0) of one road RS232 Interface and Controler links to each other by wire jumper, downloads the program of .hex form by this RS232 interface, has increased the confidentiality of program.
As preferably, one road RS485 interface can be connected with the harvester that is no more than 255 by bus, and another road RS485 interface can be connected with navigational panel with the harvester that is no more than 255 by bus.By two-way 485 buses, can connect nearly 510 harvesters and navigational panel, can guide the driver to find the parking stall quickly and accurately.
One+12V Switching Power Supply that the utility model main control system is also integrated makes power supply have washability, i.e. alternating current 220V input or+the 12V input.
Embodiment
Referring to accompanying drawing.Parking position guidance system main control system of the present utility model mainly is made up of two-way RS485 interface COM0 and COM1, network communication interface, latch and power circuit on controller, the controller, wherein: controller communicates by network communication interface and host computer, the RS485 interface is used to connect harvester and navigational panel by bus, the input end of latch links to each other with LED light, be used for the related work state indication of system, power circuit is used for the management to device power supply (DPS).
Present embodiment adopts the core of the LPC2148 of band ARM7 kernel as controller.LPC2148 is based on a microcontroller of supporting 32/16 ARM7TDMI-SCPU of real-time simulation and embedded tracking.This ARM7 controller is provided with two-way RS 485 interfaces, network communication interface, SPI interface, jtag interface etc.
The SPI interface is connected with SPI FLASH storer, finish extending out of system data storage, SPIFLASH has that the power down data are not lost, chipset rapid data access speed, electric erasable, capacity are big, online programmable, the erasable number of times in cheap and abundant ground and higher characteristics such as reliability.
Latch is the 74LVC374 latch, and its input end is connected with 8 bit data bus, and eight LED lamps of output termination are used for the related work state indication of system.
RS485 interface COM0 finishes the first via 232 changes 485, and these road 485 buses connect harvester, and main control system is a main frame, and harvester is a slave, and these road 485 buses connect 255 harvesters at most.RS485 interface COM1 finishes the second the tunnel 232 changes 485, these road 485 buses connect harvester and navigational panel, adopt the multi computer communication mode, and main control system is a main frame, harvester and navigational panel are slave, and these road 485 buses connect 255 harvesters and navigational panel at most.Described harvester is a kind of parking stall state detector based on ultrasonic technology, and a harvester detects a parking stall, carries out communication by 485 buses and main control system; Described navigational panel is the display device that has a section, parking lot total space number, residue parking stall number, direction of traffic guiding arrow etc. to show, the driver can find the empty wagons position fast along the indication of arrow.
RS485 interface COM0 links to each other with the RS232 interface by wire jumper, can finish the download of .hex format program by this interface.
Network communication interface adopts the W3100A+RTL8201BL design, ICP/IP protocol that W3100A is integrated, the ARM7 controller carries out communication by 8 position datawires and W3100A, RTL8201BL is the physical chip of ICP/IP protocol, the passive crystal oscillator of 25M provides work clock to RTL8201BL, and Ethernet adopts RJ45 network interface and host computer to carry out communication.The dead ship condition information of all parking stalls all will be given host computer, and host computer connects all main control systems in the parking lot.
As shown in Figure 3, one+12V Switching Power Supply that the utility model main control system is integrated, the power supply power supply has two kinds of selections, can insert the 220V50HZ alternating current, also can insert+the 12V direct current, between+12V direct current and Switching Power Supply, use and anti-ly poured in down a chimney diode, prevent that electric current from pouring in down a chimney.+ 5V and+3.3V obtains by power supply chip LM2575-5 and LM1117-3.3.
LPC2148 needs the correct design clock, resets, circuit such as JTAG when operate as normal/debugging.Since processor built-in clock oscillation circuit, only need the passive crystal oscillator of 11.0592M, the work clock of ARM7 controller is provided.Because system is one day 24 continuous throughout the twenty-four hour24, in order to prevent system in case of system halt, has designed the reset circuit ADM706SAR that has hard house dog, and it is resetted.The jtag interface circuit design need be considered the startup of Reset signal, is used to the on-line debugging of the system that finishes and the download of program.32.768K passive crystal oscillator provides real-time clock for the ARM7 controller.