CN1598879A - Bus automatic section charging device and its section charging method - Google Patents

Bus automatic section charging device and its section charging method Download PDF

Info

Publication number
CN1598879A
CN1598879A CN 200410020336 CN200410020336A CN1598879A CN 1598879 A CN1598879 A CN 1598879A CN 200410020336 CN200410020336 CN 200410020336 CN 200410020336 A CN200410020336 A CN 200410020336A CN 1598879 A CN1598879 A CN 1598879A
Authority
CN
China
Prior art keywords
bus
passenger
getting
data
microprocessor
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
CN 200410020336
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 200410020336 priority Critical patent/CN1598879A/en
Publication of CN1598879A publication Critical patent/CN1598879A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention relates to an auto segment charging equipment and method for bus. The equipment is made up with main controller and other devices connecting with the main controller, such as aboard-detection transducer, display, printer and bar code scanning device. The transducer is used to generate trigger signal when passenger is aboard. Printer and bar code scanning device are respectively connected with main controller through serial port COM1 and COM2. The charging method is: a trigger signal is generated by transducer when passenger is abroad; current bus station's number is recorded by microcontroller, converted into bar code data and printed on bill; comparison is made between two stations' number when passenger got in and got off a bus to get segment charging data, and this passenger's charging data is made by multiplying unit price with segment charging data. Adopting the invention, automatic segment charging is realized, which makes bus charging more reasonable and scientific. The method can adapts both bus or coach and freeway charging system and other public place by means of network system.

Description

Bus segmentation automatic charging device and block meter rate method thereof
Technical field
The present invention relates to the automatic segmentation message accounting and the block meter rate method of a kind of automatic segmentation message accounting and block meter rate method, especially mass transportation facilities.
Background technology
At present, a ticket system is all adopted in the charge of self-service ticketing bus, and omnidistance admission fee, as the monobasic of getting on the bus are that a station or omnidistance its admission fee all are monobasics.The most significant advantage of this charging method is to help public transport department to reduce personnel cost.Yet there is also deficiency: (1) this charging method exists irrationality, be embodied in how far all take be the same admission fee, metropolitan bus routes whole process is all about ten kilometers, establish a twenty or thirty station along the line, circuit long in addition reach the twenty or thirty kilometer, the situation that the passenger takes big half way or omnidistance mileage is inequitable to bus department, and the situation that also will pay same fare that the passenger only takes a station or several stations is also unfair concerning the passenger.(2) driver and public transport department are difficult to set up the relation of mutual trust, are unfavorable for benign development.On the one hand, especially when the circuit volume of the flow of passengers was not enough, public traffic management department can worry whether exist the driver to connect the problem of money unavoidably, thereby can take some may have the control measure of negative effect; And driver itself can worry that also less handling capacity of passengers can allow company that oneself is produced and distrust on the other hand.In addition, whole charge also only taked in some public place of entertainment, and be obviously also unreasonable.Just like the charge of highway, the turnover time and the no record of vehicle cause relevant department to collect evidence thereby some people can utilize this leak to carry out tax evasion again.
Summary of the invention
A technical matters to be solved by this invention is, overcomes above-mentioned deficiency of the prior art, and a kind of automatic segmentation message accounting of mass transportation facilities that can block meter rate is provided, and it can print ticket, bar-code identification automatically; Another technical matters to be solved by this invention is that a kind of automatic segmentation charging method of mass transportation facilities of energy block meter rate is provided.
For solving the problems of the technologies described above, bus automatic segmentation message accounting of the present invention is made up of main control unit and the detecting sensor of getting on the bus that is connected with main control unit respectively, display unit, printer, bar code scan rifle, and the detecting sensor of getting on the bus is used for producing trigger pip when passenger loading is arranged; Described printer is connected with described main control unit with COM2 by serial ports CMO1 respectively with the bar code scan rifle.
Described main control unit is connected with the voice broadcast unit.
The COM1 serial ports of described main control unit is connected with host computer.
Bus automatic segmentation charging method of the present invention is characterized in that, may further comprise the steps:
A. during passenger loading, produce a trigger pip notice microprocessor by the detecting sensor of getting on the bus;
B. microprocessor records real-time time, vehicle residing at that time station station number or mileage number convert barcode data then to;
C. printer prints to the above-mentioned barcode data of bar on the bill under the control of main control unit, holds this bill by the passenger;
When d. the passenger gets off, read the barcode data on passenger's bill and send microprocessor to by the bar code reading unit;
E. real-time time, vehicle residing station station number or the mileage number that microprocessor will this moment, time, vehicle residing at that time station station number or mileage number during with the getting on the bus of bar code information representative on passenger's bill are compared, and obtain the block meter rate data;
F. microprocessor with the charging unit price of its storage and above-mentioned block meter rate data mutually computing obtain this passenger's charge data.
Compared with prior art, the present invention has following beneficial effect: (one) bus automatic segmentation of the present invention message accounting and block meter rate method thereof have realized block meter rate, make the charge industry science science, rationally more of bus; (2) the voice quotation guarantees the expense that the passenger clearly will pay, and sound broadcast can make the passenger be well understood to the position in bus place more, carries out the preparation of getting off early; (3) reasonable in design, with low cost, the response execution speed fast; (4) use extensively, not only can be used for bus or long-distance car and can also be used for highway (charge) or other public place by means of the network system.
Description of drawings
Fig. 1 is the functional-block diagram of bus automatic segmentation message accounting of the present invention;
Fig. 2 is a kind of scheme of installation of bus automatic segmentation message accounting of the present invention;
Fig. 3 is the another kind of scheme of installation of bus automatic segmentation message accounting of the present invention;
Fig. 4 is the concise and to the point electrical schematic diagram of bus automatic segmentation message accounting main control unit of the present invention;
Fig. 5 is the installation requirement synoptic diagram of the detecting sensor of bus automatic segmentation message accounting of the present invention;
Fig. 6 is the circuit diagram of the detecting sensor of bus automatic segmentation message accounting of the present invention;
Fig. 7 is the main program flow chart of bus automatic segmentation message accounting of the present invention;
Fig. 8 is the interrupt routine process flow diagram of getting on the bus;
Fig. 9 is the interrupt routine process flow diagram of getting off;
Figure 10 is the Local Area Network synoptic diagram that bus automatic segmentation message accounting of the present invention is formed;
Figure 11 is the LAN synoptic diagram that bus automatic segmentation message accounting of the present invention is formed;
Figure 12 is the network communication location diagram of bus automatic segmentation message accounting of the present invention;
Figure 13 is the synoptic diagram of a kind of style of bus automatic segmentation ticket that message accounting uses of the present invention.
Reference numeral:
1 main control unit, 2 static digital X4 display 3 loudspeakers 4 COM1 (DB9 jack)
5 host computer 6 minitype thermal printers, 7 bar code scan rifles, 8 COM2 (DB9 jack)
9 buttons 10 detecting sensor 11 power supply units 12 RS485 (CON5 jack) that get on the bus
13 MODEM (DB25 jack), the 15 button inputting circuits 16 testing circuit 17 communication interface circuit of getting on the bus
18 minimum single chip circuit 19 NV_RAM circuit, 20 RS485 and MODEM communication interface circuit
21 digital demonstrations and driving circuit 22 speech play and power amplification circuit
23 sensor emission ends, 24 sensor receiving ends
Embodiment
Below in conjunction with embodiment the present invention is described in detail.
Bus automatic segmentation message accounting of the present invention is made up of main control unit and the detecting sensor of getting on the bus that is connected with main control unit respectively, display unit, printer, bar code scan rifle, and the detecting sensor of getting on the bus is used for producing trigger pip when passenger loading is arranged; Described printer is connected with described main control unit with COM2 by serial ports CMO1 respectively with the bar code scan rifle.Described main control unit is connected with the voice broadcast unit.Described main control unit serial ports COM1 connects host computer when Data Update.
Preferred forms:
In preferred forms shown in Figure 1, bus automatic segmentation message accounting of the present invention is by main control unit 1, static digital X4 display 2, loudspeaker 3, host computer 5, minitype thermal printer 6, bar code scan rifle 7, button 9, the detecting sensor 10 of getting on the bus, power supply unit 11 and tie cable are formed.The COM1 serial ports 4 that host computer 5 and miniature temperature-sensitive are made a call to 6 shared master control borads carries out communication with master control borad.The bar code scan rifle links to each other with master control borad COM2 serial ports 8.
Fig. 2 and Fig. 3 are seen in the installation site of each associated components of the present invention, and wherein Fig. 2 is applicable to the vehicle of getting on the bus at the back door Qianmen getting off, and Fig. 3 is applicable to the vehicle that has only a door.
Host computer 5 is used to move CLIENT PROGRAM, for the user provides a friendly interface and native system is carried out initialization setting and Data Update.The host computer minimalist configuration requires: PII300 CPU, 128M RAM, 4.3G hard disk.
Fig. 4 is seen in master control borad unit 1, mainly by forming with lower member:: microprocessor IC-1 model is DS87C530, not power down RAMIC-2 model is NV-RAM M48208, UART Universal Asynchronous Receiver Transmitter IC-3 model is ST16C550, the first latch IC-4 model is 74LS373, power amplification chip IC-5 model is LM368, level transferring chip IC-6 model is MAX232, the model of trigger IC-7 is 74LS174, inverter ic-8 model is MM74C04, the model of the first differential transceiver IC-9 is SN65175, the model of the second differential transceiver IC-10 is SN65175, the model of code translator IC-11 is 74LS138, the model of the second latch IC-12 is 74LS373, the static digital model that shows driver module IC-13 is MM74C912, the model of recording playback sound module MC-2 is ZY1420, COM1 serial ports (DB9 jack), COM2 serial ports (DB9 jack), RS485 (CON5 jack), button, loudspeaker, MODEM (DB25 jack), the model of static digital X4 display is M5202CSR, and some peripheral cells are formed.
Microprocessor IC-1 adopts microprocessor DS87C530, and this chip internal is integrated with real time clock circuit, 32 I/O, 2 full duplex UART, 16K program storage (FLASH), 2K data-carrier store (RAM), 4 exterior interrupt.Be mainly used in runs program instructions, receive external information, calculation process is also coordinated each other parts action relationships according to programmed instruction.
The I/O mouth P2 of microprocessor IC-1 is as the high address bus A_BUS[A8-A15 of system].The I/O mouth P0 of microprocessor IC-1 is as the data bus D_BUS[D0_D7 of system].The second latch IC-12 links to each other with the P0 mouth of microprocessor IC-1, forms the low order address bus A_BUS[A0-A7 of system under the control of control signal wire ALE].Control signal wire/RD of microprocessor IC-1 ,/WR ,/PSEN and systematic reset signal line RST form system control signal bus CONTROL_BUS.Code translator IC-11 is connected to high address bus A_BUS[A13-A15] produce gating signal NVRAM respectively according to programmed instruction, 485/MODEM, DISPLAY, all gating signal lines of TONE-IC. form decoding bus DECODE BUS.
High address bus A_BUS[A8-A15], low order address bus A_BUS[A0-A7], data bus D_BUS[D0_D7] and decoding bus DECODE_BUS construction system bus.
Microprocessor IC-1, latch IC-12, code translator IC-11 and peripheral cell are formed minimum single chip circuit 18.
Not power down RAM IC-2 adopts the NV-RAM chip, is used to store inner form, data structure, customer information, passenger's record, volume of the flow of passengers record etc.This chip is by address wire A_BUS[A0-A12], data line D_BUS[D0_D7], gating signal NVRAM and control signal wire/WR ,/RD is mounted on system bus.
Form NV_RAM circuit 19 by NV-RAM chip and some peripheral cells.
UART Universal Asynchronous Receiver Transmitter IC-3 selects the ST16C550 chip for use, and complete MODEM interface signal CTS, DSR, DTR, RTS, CD, RI and look-at-me M-INT be changed and be provided to this chip can mutually with parallel data and serial data.UART Universal Asynchronous Receiver Transmitter IC-3 is by address wire A_BUS[A0-A2], data line D_BUS[D0_D7], gating signal 485/MODEM and control signal wire/WR, / RD is mounted on system bus, is connected to the external interrupt input end INT1 of microprocessor IC-1 after look-at-me M-INT process inverter ic-8 is anti-phase.
The serial data RX of UART Universal Asynchronous Receiver Transmitter IC-3, TX is obtaining RS485 communication data signal R+ after differential transceiver IC-8/IC-9 conversion, R-, T+, T-, signal R+, R-, T+, T-are connected to RS485 (connection terminal) respectively.
UART Universal Asynchronous Receiver Transmitter IC-3, the first differential transceiver IC-9, the second differential transceiver IC-10 and some peripheral cells form RS485/MODEM communication interface circuit 20.
Static digital driver module IC-13 can adopt static digital display module MM74C912 commonly used, this circuit or module are by address wire A_BUS[A0-A2], data line D_BUS[D0_D4], gating signal DISPLAY and control signal wire/WR are mounted on system bus.Static digital X4 display 4 is responsible for license number, train number, and informations such as error code show.Static digital driver module IC-13, static digital X4 display 2 and some peripheral cells form digital the demonstration and driving circuit 21.
The first latch IC-4 will be from data line D_BUS[D0 D7 under the control of gating signal TONE-IC and control signal wire/WR] data latching and offer the address M0-M7 of recording playback sound module MC-2 as segmentation recording playback sound.Control signal/PLAY of recording playback sound module MC-2 ,/REC is connected to external signal input end P1.6 and the P1.7 of microprocessor IC-1 respectively.The sound signal of recording playback sound module MC-2 is through power amplification chip IC-5 power amplification rear drive loudspeaker 3.
The first latch IC-4, recording playback sound module MC-2, power amplification chip IC-5 and peripheral cell are formed speech play and power amplification circuit 22.This part is by data line D_BUS[D0_D7], gating signal TONE-IC and control signal wire/WR are mounted on system bus also can carry out operations such as voice typing or output voice suggestion signal under the control of microprocessor.
Level transferring chip IC-6 selects MAX232 for use, this chip can be changed mutually to COMS level and Transistor-Transistor Logic level, the rs 232 serial interface signal of this chip and microprocessor IC-1 (Transistor-Transistor Logic level) RXD0, TXD0, RXD1, TXD1 links to each other, the serial ports letter RXD0 of microprocessor IC-1, TXD0, RXD1, TXD1 obtain the serial data signal R0 of COMS level, T0 after level transferring chip (IC-6) level conversion, R1, T1, data-signal R0, T0, R1, T1 are connected to COM1 (4) (DB9 jack) and COM2 (8) (DB9 jack) respectively.
Level transferring chip IC-6 and some peripheral cells are formed COM1, COM2 communication interface circuit 17.Two communication port COM1 serial ports 4 and COM2 serial ports 8 are respectively as the communication channel of microprocessor IC-1 and host computer 5 or minitype thermal printer 6 and the communication channel of microprocessor IC-1 and bar code scan rifle 7.
Trigger IC-7, inverter ic-8 connects the back and forms SIGNAL1, SIGNAL2 signal logic comparator circuit relatively produces the external interrupt input end INT0 that the look-at-me of getting on the bus is received microprocessor IC-1 in the back from the signal SIGNAL1 of the detecting sensor 10 of getting on the bus and SIGNAL2 through logic comparator circuit.
Trigger IC-7, inverter ic-8 and some peripheral cells are formed the testing circuit 16 of getting on the bus.The testing circuit 16 of the getting on the bus detection signal of detecting sensor receiving end 24 (SIGNAL1 and SIGNAL2) of will getting on the bus judges, if for true (someone gets on the bus really) then export a pulse signal and provide external interrupt signal for microprocessor IC-1 to the INT0 with microprocessor IC-1.
Button (GO/INC) and button (DEC) are connected to external signal input end P1.4 and the P1.5 of microprocessor IC-1 respectively through pull-up resistor.Button (GO/INC) and button (DEC) and some peripheral cells are formed button inputting circuits 15.
The detection sensor unit of getting on the bus 10 is seen Fig. 6, is made up of the laser diode of 630-680nm wavelength, output power<1mw and reception diode TS601A41 and shaping amplification circuit.Native system needs two covers, cultivate two cover parallelizations and be not more than the 20mm height about 1200mm, sees Fig. 5.In case have the people to pass through (someone gets on the bus), deliver to the testing circuit 16 of getting on the bus on the master control borad 1 after the potential change of SIGNAL1 and SIGNAL2 is amplified through shaping on the detecting sensor of getting on the bus 10.
Bar code scan rifle 7 adopts the standard bar code scan rifle of industrial band serial ports.
Minitype thermal printer 6 adopts the ZT-T08 minitype thermal printer.
Static digital X4 display 2 is made up of four seven segment digital tubes M5202CSR.
Tie cable comprises three nine kinds of needles standard serial port lines.Power supply unit 11 is responsible for that vehicular power-bottle 12V or 24V direct current are adjusted into the 5V5A direct supply and is exported to native system.
System's main program flow is seen Fig. 7, and P1A, P7 and P9A are the detections of function key (GO/INC), carries out self check subroutine P1B respectively in case this key is pressed or station number adds subroutine P9B.P1B carries out a series of built in self testings, comprises storer, communication etc.P9B will add 1 to station counting unit, can voice reporting go out name of station if necessary in addition.
P2A and P10A detect function key (DEC), carry out Data Update subroutine P2B respectively in case this key is pressed or station number subtracts subroutine P10B.P2B mainly imports customer information into master control borad 1 by host computer 5 and then is stored among the not power down RAMIC-2.P10B will subtract 1 to station counting unit, can voice reporting go out name of station if necessary in addition.
P3A detects simultaneously to function key (GO/INC) and function key (DEC), in case two keys are inquired about subroutine P3B by next entering simultaneously.
P3B can check operations such as internal counter (income accumulative total), same day passenger flow statistics, zero clearing, enters and requires the input password before this program enters.
The P4 subroutine is carried out the initialization setting to system's master routine.
P5 subroutine display reminding information also requires user (driver) to select traffic direction, if wait was not selected then moved according to the program setting direction in 2 seconds, every switch primary power source automaticallyes switch once.
P6/P15 shows information such as train number/station number by static digital X4 display (2), such as " 686 "/" 013 ".
The initialization of P7 subroutine is interrupted, and opens interruption.
P8 subroutine cycle detection function key (GO/INC) also waits for, in case be pressed then carry out following procedure.
The P11A subroutine detects whether someone's Status Flag of getting on the bus of inside, if having the people to get on the bus then carry out the P11B subroutine.
The P11B subroutine is printed a bill, removes whether someone's state flag bit of getting on the bus of inside then.
The P12A subroutine detects whether someone's Status Flag of getting off of inside, if having the people to get off then carry out the P12B subroutine.
The bar code information that the processing of P12B subroutine is read and the content of inner passenger's registration form are judged comparison.If invalid ticket then sends voice suggestion as " invalid ticket ", if effective ticket, then calculate the admission fee lang sound quotation of going forward side by side.
P13 is the interrupt routine of getting on the bus, and sees Fig. 8.In case the people is arranged by the execution that can be triggered immediately of this interrupt routine of the detecting sensor of getting on the bus (10), system can add whether someone's state flag bit of getting on the bus of a record and set inside in the registration form of getting on the bus.
P14 is the interrupt routine of getting off, and sees according to Fig. 9.Will get off as the passenger, the passenger need brush ticket in the hand once at the bar code scan rifle 7 of ticket checking window, and the interrupt routine execution that is triggered immediately of getting off this moment is read whether someone's state flag bit of getting off of barcode data and set inside from COM2 serial ports 8.
Wherein, P1A, P2A, P3A, P4, P5, P6, P7, P8 only moves once after start; P9A, P10A, P11A, P12A then is among the major cycle.
System operation of the present invention and points for attention: must carry out Data Update before the normal operation of (1) native system.(2) accident power-off.In case vehicle breaks down halfway and causes the native system power down, when resuming operation, must note adjusting traffic direction, otherwise the mistake of valuating can occur, and the bill of going up afterwards that the passenger took also is reciprocal.
Operational process of the present invention is as follows: produce a trigger pip notice microprocessor by the detecting sensor of getting on the bus when passenger loading, note by travel condition of vehicle such as car station number (or mileage number or time) that microprocessor will be at that time, convert barcode data then to and these data are printed on the bill by printer; When getting off, the passenger bar code information on the bill in passenger's hand is read out and sends to microprocessor by the bar code reading unit, again by microprocessor will this moment travel condition of vehicle such as car station number (or mileage number or time) and passenger's hand in bar code information on the bill compare and obtain the block meter rate variable, carry out computing with the fees policy of this block meter rate variable and client (public transport department) setting and can obtain corresponding charge.
Technical scheme of the present invention utilization single-chip microcomputer is controlled and can be remedied deficiency of the prior art fully: the passenger gets on the bus from the back door, and whenever go up a people and be placed in the microprinting chance of locating at the back door and get a ticket that has bar code: the ticket style is seen Figure 13.Car one departures, the driver need only click the GO/INC button on the guidance panel, and native system can carry out voice broadcast.As " this car is sectional fare, every N station (billing interval) charge N unit (Charging Detail Record unit), and minimum charge N unit, Maximum Charge N unit is the N station now ", the concrete sound suggestion content can be self-defined by public transport department.The LED display of native system is installed in a certain showy position in the car, shows the admission fee that station number is at that time dealt with when making things convenient for the passenger clearly to get off at any time.The station number on the bill multiply by Charging Detail Record unit again divided by billing interval then in passenger's hand as long as the station number that LED shows when getting off deducts, if should value greater than Maximum Charge, then be the upper limit, otherwise this value is exactly the denomination that this passenger will pay with the Maximum Charge.Passenger's the past student's car is brushed ticket in the hand once at ticket checking window (barcode scanner) when getting off, and native system will carry out the voice quotation immediately, and the passenger then initiatively inserts coins in face of the driver or brushes IC-card (present most vehicles have been equipped with IC-card) and get off then.When vehicle returned the vehicle to the garage and knock off, the cashier of department can check/print volume of the flow of passengers record and the income accumulative total (palpus password) and the zero clearing on the same day by native system if necessary.
Native system adopts the 630-680nm wavelength, and the laser diode of output power<1mw is as getting on the bus the detecting sensor emitting diode.The laser direct irradiation human eye of this intensity can cause certain injury to human eye.Therefore, when the laser diode energized, be sure not to look at straight laser diode.
Principle of work of the present invention is as follows:
One, Data Update.The COM1 serial ports 4 of main control unit 1 connects bit machine 5 during Data Update.Master control borad 1COM1 serial ports 4 is connected to host computer 5, pins function key (DEC) and connect master control borad 1 power supply, operation host computer CLIENT PROGRAM is by the corresponding customer information of prompting input, such as " train number, Charging Detail Record unit, billing interval, minimum charge; Maximum Charge, master station's number, Customer ID ".The client also can select directly to import from file, clicks " Data Update " button after the customer information editor has imported, and can close the master control borad power supply and come into operation after the prompting of screen appearance " Data Update finishes ".
Two, system's operation (routine work state).The COM1 serial ports 4 of main control unit 1 connects minitype thermal printer 6 during conventional operation, and the COM2 serial ports 8 of main control unit 1 connects bar code scan rifle 7.
At first function key (GO/INC) and function key (DEC) are detected after the system power-up.Divide four kinds of possibilities: (one) pins function key (GO/INC) and powers up, and system will enter self check subroutine P1B and carry out a series of built in self testings, comprise storer, communication etc.(2) pin function key (DEC) and power up, system will enter Data Update subroutine P2B, and circular wait host computer 5 is given an order.(3) pin function key (GO/INC) simultaneously and function key (DEC) powers up, system will enter inquiry subroutine P3B.Can check/print internal counter (income accumulative total) and passenger flow record, enter and require the input password before this program enters.(4) directly power up function key when promptly powering up (GO/INC) and function key (DEC) is not all pressed, system will enter the P4 subroutine system's master routine will be carried out the initialization setting, then move P5 subroutine display reminding information after the P4 subroutine is carried out and require user (driver) to select traffic direction, if wait for 2 seconds and do not select then move according to the program setting direction, every switch primary power source automaticallyes switch once, then move the P6 subroutine after the P5 subroutine is carried out and show train number, the initialization of P7 subroutine breaks interruption, P8 subroutine cycle detection function key (GO/INC) is pressed the back system up to function key (GO/INC) and is entered main circulating program.System enters behind the main circulating program repeatedly whether someone's whether get off Status Flag and update displayed of someone of Status Flag and inside of getting on the bus of cycle detection function key (GO/INC) and function key (DEC) and inside, waits for look-at-me simultaneously.
[1] update displayed
[2] detecting function key (GO/INC) presses [whenever enter the next stop, the driver will click function key (GO/INC)] and then carries out a station number and add subroutine P9B station counting unit is added 1.
[3] detecting function key (DEC) then carries out a station number and subtracts subroutine P10B station counting unit is subtracted 1.
[4] detect inside whether someone's Status Flag of getting on the bus then carry out the P11B subroutine for very i.e. someone gets on the bus, microprocessor IC-1 can send command request to minitype thermal printer 6 by COM1 serial ports 4 and print and transmit data, remove whether someone's state flag bit of getting on the bus of inside then, minitype thermal printer (6) is printed a bill after receiving instruction and data immediately.
[5] detect and inner whether have the Status Flag of getting on the bus under the people to carry out then for very i.e. someone gets off that the P12B subroutine is handled the bar code information that reads and the content of inner passenger's registration form is judged comparison.If invalid ticket then microprocessor IC-1 send instruction to voice broadcast unit 22 and point out as " invalid ticket ", if effectively ticket then calculates admission fee and sends instruction to voice broadcast unit 22 and carry out the voice quotation.
Three, in case have the people by get on the bus detecting sensor 10 promptly the someone get on the bus, the people who moves knows from experience the instantaneous laser beam that the detecting sensor transmitting terminal 23 of getting on the bus sends of blocking, thereby can't receiving the SIGNAL1 and the SIGNAL2 of the detecting sensor receiving end 24 of getting on the bus, the detecting sensor receiving end 24 that causes getting on the bus to produce the saltus step current potential, these two skip signal are delivered to the testing circuit of being made up of inverter ic-8 and trigger IC-7 16 of getting on the bus, this testing circuit will produce the external interrupt input end INT0 of a pulse signal to microprocessor IC-1, and microprocessor IC-1 receives to make an immediate response after this external signal and carries out interrupt routine P13 adds also set inside someone's state flag bit of getting on the bus whether of a record in the registration form of getting on the bus.Bar code scan rifle 7 is arranged on the autoscan pattern, in case people's get off (this is taken advantage of and ticket in the hand need be brushed at the scanning window of bar code scan rifle 7) is arranged, bar code scan rifle 7 scans after the bar code can send barcode data to microprocessor IC-1 by COM2 serial ports 8, and microprocessor 43 reads behind the barcode data whether someone's state flag bit of getting off of set inside.
Shown in Figure 10,11 and 12, but bus automatic charging device 100 of the present invention increases regional main control computer 104, RS232/RS485 converter 103 compositing area nets (485 net), be applicable to short distance (<1200M) network communication, Figure 10 is seen in the binding of regional network; On the basis of regional network communication, add modulator-demodular unit 107 or network interface card again, LAN server 106, network communication switch 108 can further be formed LAN (Local Area Network), is applicable to the long distance network communication, and the binding of LAN (Local Area Network) sees 11; The position relation of network communication is seen Figure 12.
In Figure 10, zone main control computer 104 provides RS485 bus 102 by 232/RS485 converter 103, this device 100 links to each other with RS485 bus 102 by the RS485 communication port, and all (<32) RS485 mouths (this device) all are attempted by and constitute a region R S485 network system on the RS485 bus.The Local Area Network communication can be applicable to each metered public place.
In a single day each master controller 1 receives identification circuit 16 (testing circuit of the marching into the arena<=〉testing circuit of getting on the bus in the single region R S485 network system) look-at-me that transmits handles the barcode data that obtains printing immediately and sends regional main control computer 104 unified managing by bill printer 7 printed tickets and with this data sink to the necessary information of network communication (as address, local state etc.); In a single day master controller 1 is received that barcode data that screen bar code recognizer 6 transmits converts the bar code information that reads to internal data immediately and is sent operations such as regional main control computer 104 is examined, record with the necessary information package of network communication to.Zone main control computer (104) sends result data to master controller 1 after to this data processing, the Data Control speech play that master controller 1 sends according to main control computer 104 and power amplification circuit 22 carries out voice suggestion or bill printer 7 is printed receipts.The several regions RS485 network system can be formed the LAN system, LAN system synoptic diagram such as Figure 11 after adding LAN server 106, MODEM107 and network communication switch 108.The LAN communication can be applicable to highway sectional fare system and large-scale each metered public place.
In the LAN system flow direction of data generally by the principle of up/down step by step by LAN server 106 unified managements, the data that are any master controller 1 in the LAN (Local Area Network) not only also will hand over the regions main control computer 104 of one's respective area to manage by self-management, and all data of any regional main control computer 104 must be put on record by LAN server 106; Any master controller 1 is not exported the right of control according to the data archival of self in the regional extent, can only export control by the instruction of regional main control computer 104; Any regional main control computer 104 has only the right of data message in the autonomous processing one's respective area in the local scope, otherwise must press these data of instruction process of local server 106.
Bus automatic segmentation charging method of the present invention is characterized in that, may further comprise the steps: during a. passenger loading, produce a trigger pip notice microprocessor by the detecting sensor of getting on the bus; B. microprocessor records real-time time, vehicle residing at that time station station number or mileage number convert barcode data then to; C. printer prints to the above-mentioned barcode data of bar on the bill under the control of main control unit, holds this bill by the passenger; When d. the passenger gets off, read the barcode data on passenger's bill and send microprocessor to by the bar code reading unit; E. real-time time, vehicle residing station station number or the mileage number that microprocessor will this moment, time, vehicle residing at that time station station number or mileage number during with the getting on the bus of bar code information representative on passenger's bill are compared, and obtain the block meter rate data; F. microprocessor with the charging unit price of its storage and above-mentioned block meter rate data mutually computing obtain this passenger's charge data.

Claims (4)

1. bus automatic segmentation message accounting, it is characterized in that, it is made up of main control unit and the detecting sensor of getting on the bus that is connected with main control unit respectively, display, printer, bar code scan rifle, and the detecting sensor of getting on the bus is used for producing trigger pip when passenger loading; Described printer is connected with described main control unit with serial ports COM2 by serial ports COM1 respectively with the bar code scan rifle.
2. a kind of bus automatic segmentation message accounting according to claim 1 is characterized in that described main control unit is connected with loudspeaker.
3. a kind of bus automatic segmentation message accounting according to claim 1 is characterized in that the COM1 serial ports of described main control unit is connected with host computer.
4. the charging method of the described bus automatic segmentation of claim 1 message accounting is characterized in that, may further comprise the steps:
A. during passenger loading, produce a trigger pip notice microprocessor by the detecting sensor of getting on the bus;
B. microprocessor records real-time time, vehicle residing at that time station station number or mileage number convert barcode data then to;
C. printer prints to the above-mentioned barcode data of bar on the bill under the control of main control unit, holds this bill by the passenger;
When d. the passenger gets off, read the barcode data on passenger's bill and send microprocessor to by the bar code reading unit;
E. real-time time, vehicle residing station station number or the mileage number that microprocessor will this moment, time, vehicle residing at that time station station number or mileage number during with the getting on the bus of bar code information representative on passenger's bill are compared, and obtain the block meter rate data;
F. microprocessor with the charging unit price of its storage and above-mentioned block meter rate data mutually computing obtain this passenger's charge data.
CN 200410020336 2004-08-23 2004-08-23 Bus automatic section charging device and its section charging method Pending CN1598879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410020336 CN1598879A (en) 2004-08-23 2004-08-23 Bus automatic section charging device and its section charging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410020336 CN1598879A (en) 2004-08-23 2004-08-23 Bus automatic section charging device and its section charging method

Publications (1)

Publication Number Publication Date
CN1598879A true CN1598879A (en) 2005-03-23

Family

ID=34663209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410020336 Pending CN1598879A (en) 2004-08-23 2004-08-23 Bus automatic section charging device and its section charging method

Country Status (1)

Country Link
CN (1) CN1598879A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262791A (en) * 2010-05-26 2011-11-30 苏州巴米特信息科技有限公司 Bus charging method based on card swiping
CN102592319A (en) * 2012-01-20 2012-07-18 青岛大学 Method for realizing 'dynamic sectional fare' of self-service ticketing bus
CN102890832A (en) * 2012-09-18 2013-01-23 深圳创维数字技术股份有限公司 Method, device and system for separately charging bus
CN102903150A (en) * 2011-07-29 2013-01-30 深圳光启高等理工研究院 Toll collection system, toll collection method and bus utilizing toll collection system
CN102903151A (en) * 2011-07-29 2013-01-30 深圳光启高等理工研究院 Bus with charging device and charging method thereof
CN103177477A (en) * 2011-12-22 2013-06-26 冯林 Method and system for bus sectional charging
CN106875319A (en) * 2017-03-21 2017-06-20 武汉微诚科技股份有限公司 A kind of Operation and Management of Expressway platform
CN110084896A (en) * 2019-05-17 2019-08-02 青岛鼎泰丰电子有限公司 A kind of anti-cheating pricing device based on vehicle-mounted OBD interface

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262791A (en) * 2010-05-26 2011-11-30 苏州巴米特信息科技有限公司 Bus charging method based on card swiping
CN102903150A (en) * 2011-07-29 2013-01-30 深圳光启高等理工研究院 Toll collection system, toll collection method and bus utilizing toll collection system
CN102903151A (en) * 2011-07-29 2013-01-30 深圳光启高等理工研究院 Bus with charging device and charging method thereof
CN102903150B (en) * 2011-07-29 2015-10-07 深圳光启高等理工研究院 A kind of Fare Collection System, charging method and apply the bus of this Fare Collection System
CN102903151B (en) * 2011-07-29 2015-10-28 深圳光启高等理工研究院 With bus and the charging method thereof of charging device
CN103177477A (en) * 2011-12-22 2013-06-26 冯林 Method and system for bus sectional charging
CN103177477B (en) * 2011-12-22 2016-05-25 浙江传媒学院 The method of sectional fare by bus
CN102592319A (en) * 2012-01-20 2012-07-18 青岛大学 Method for realizing 'dynamic sectional fare' of self-service ticketing bus
CN102592319B (en) * 2012-01-20 2014-07-09 青岛大学 Method for realizing 'dynamic sectional fare' of self-service ticketing bus
CN102890832A (en) * 2012-09-18 2013-01-23 深圳创维数字技术股份有限公司 Method, device and system for separately charging bus
CN106875319A (en) * 2017-03-21 2017-06-20 武汉微诚科技股份有限公司 A kind of Operation and Management of Expressway platform
CN110084896A (en) * 2019-05-17 2019-08-02 青岛鼎泰丰电子有限公司 A kind of anti-cheating pricing device based on vehicle-mounted OBD interface

Similar Documents

Publication Publication Date Title
CN105631947B (en) Intelligent parking control system
CN204904458U (en) Multi -functional intelligent terminal machine
CN108961817A (en) It is a kind of can wireless charging intelligent car position management system and method
CN108830954A (en) Management method, system and the computer readable storage medium in parking lot
CN104936825A (en) Parking meter system
CN105184940B (en) A kind of vehicle road gate machine traffic system based on intelligent cloud
CN105046967B (en) The control system of parking management
CN206370085U (en) A kind of compound visa card automatic recovery system for supporting Quick Response Code to pay
CN201936386U (en) Public vehicle and charging terminal, billing system and payment terminal thereof
CN1598879A (en) Bus automatic section charging device and its section charging method
CN105608749B (en) A kind of intelligent multifunction taxi valuation implementation method
CN105069492A (en) Automobile electronic display label remote communication system and communication method
CN105788009A (en) Artificial/electronic mixed charging low speed passing lane system and construction method thereof
CN1549990A (en) Parking meter enforcement system
CN204423444U (en) Parking lot self-service payment terminal
CN200965698Y (en) Automatic ticket checking machine
CN107680176A (en) Settlement system and expense processing method, parking management system based on Quick Response Code
CN209928534U (en) Intellectual property and administrative examination and approval intelligent self-service handling device
CN201580058U (en) Portable printer
CN204965462U (en) Automotive electronics shows label telecommunication system
CN112216112B (en) Beidou positioning and induced parking system and method based on scene of integration with internet of things
TW201939447A (en) Roadside parking charging system with Internet-of-Things function capable of performing two-way data transmission or command delivery
CN1189848C (en) Drain ticket automatic buying machine capable of using bank card
CN203520526U (en) Integrated operation platform for tax levying and comprehensive management for mining industry
CN202495154U (en) Automatic management device of district vehicle network

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