Based on the sectional fare method and system by bus of mobile phone
[technical field]
The invention belongs to wireless communication technology field, the present invention relates to a kind of method and system being undertaken charging by bus by distance, the method and system of particularly a kind of sectional fare by bus based on mobile phone.
[background technology]
Public transport is the abbreviation of public transport, and public transport refers to all means of transports providing transport services, comprises urban transit bus, urban track traffic and intercity automobile and track traffic etc.The advantages such as public transport is quick and easy with it, economical and practical become the indispensable part in modern city.In order to maintain remaining in operation of urban public transport facility, need to charge to the people taken public transport, and the distance taken due to everyone is different, the service enjoyed is also different, so be necessary that the people to enjoying different mileage services collects different expenses, to show the fairness of modern society to greatest extent.But the volume of the flow of passengers related to every day due to public transport is very large, this just proposes a very large difficult problem for the charge of present urban transportation.
For a series of difficult problem that public transport charge before improving eyesight bus occurs, but bales catch charge system of the present invention and method not only can be applied on bus, can also be applied in other public transport.
Have above several at present in the method for charging to the people taking bus:
Artificial ticketing.The shortcoming of artificial ticketing have following some:
(1) cost is high, and large-and-medium size cities pay ticket seller's wage for 1 year up to arriving more than one hundred million unit.
(2) not in place, the arbitrary imposition of fees of service quality and wrong charge phenomenon occur now and then.
(3) although there is artificial ticketing, still there will be the situation making a false report the distance taken and occur.
The mode of brush passive RFID mass transit card.Current brush passive RFID mass transit card has two kinds of patterns, and one is disposable charge, only needs to get on the bus to swipe the card, no matter how far you sit, and expense is all fixing, although this charging mode is simple, convenient, need not be equipped with ticket seller, decrease operation cost, but the distance taken due to everyone is different, and the price of charge is the same, to be obviously like this unfair, and very difficult when fixing a price to ticket, fixed is too high, passenger is difficult to accept, and fixed is too low, and operation cost can be caused to be difficult to regain.Another is sectional fare, the current whole nation have employed the pattern of brush mass transit card sectional fare in Shenzhen and Beijing, the charge method in Shenzhen is still charge of manually stamping the card, what just collect is not cash, but employing is deducted fees from mass transit card, the mode of this charge method and artificial ticketing is in fact as broad as long, also has a lot of shortcomings of artificial ticketing.Pekinese's charge method gets on the bus to swipe the card, and gets off and swipe the card, and calculated the distance of getting on the bus and swiping the card and getting off and swiping the card by a kind of system, thus collect different expenses to the people taking different distance, and this kind of system needs to coordinate the manual station reporting instrument of driver to use.The shortcoming of this charge method is, card has been brushed when passenger loading, do not swipe the card when getting off, or get on the bus and do not swipe the card, get off and swipe the card, or get on or off the bus and all do not swipe the card, in order to exercise supervision to the behavior of swiping the card of passenger and remind, also need to be equipped with crew member, this too increases cost of labor undoubtedly; Simultaneously passenger swipes the card if there is forgetting, only brush phenomenon once, then can be collected the riding fee use of full section, is obviously like this unfair.Moreover, the site bought owing to giving, move back card and supplement with money to mass transit card is limited, so cause client very inconvenient in use.
Automatic coin.This charge method also can only disposable charge can not sectional fare, and due to its no change given, so passenger is very inconvenient when taking.And test coin device owing to not arranging true and false coin, cause occurring a lot of counterfeit money, the grievous injury interests of public transport company.
So the operation cost of public transport will be reduced, just need to reduce to reduce cost of labor, adopt the mode of automatic segmentation charge.In order to solve the difficult problem that bus segmentation is deducted fees automatically, people have found out a lot of way.But all can not propose a kind of with low cost and realize the technology that bus segmentation deducts fees automatically efficiently.
At present, there is technology passive RFID tags and Mobile phone card integrated, mobile phone can substitute mass transit card and use, the essence adopting mobile phone card-brushing to ride still reads the FRID label information being positioned at Mobile phone card by RFID reader, know-why does not change, and the medium of instruction existing for RFID label tag there occurs change.By arranging microsimulation base station search handset mobile communications signal onboard, when searching mobile phone movable signal to first time, record is carried out in the geographic position of bus, and then record is carried out to the geographical location information of bus when searching this handset mobile communications signal for the last time, the distance that the user that carries this mobile phone takes bus can be calculated, sectional fare can be carried out according to this distance, this technology is feasible in theory, but there will be a lot of problem in real life, such as, user may in order to artificial closing mobile phone of stealing a ride, and when this user gets off to cause microsimulation base station accurately to judge, cause accurately to carry out sectional fare to it.Or some user is in order to not carrying mobile phone of stealing a ride deliberately, and the user causing system cannot judge which is ridden is legal, and which user is illegal.
[summary of the invention]
Object of the present invention is exactly to solve prior art Problems existing, proposes a kind of method and system of the sectional fare by bus based on mobile phone.
Microsimulation base station of the present invention refers to have identical with the ordinary base station communication function that to carry out with mobile phone, and the base station that signal cover is less.
Concrete technical scheme of the present invention is as follows:
The invention provides a kind of method of the sectional fare by bus based on mobile phone, it is characterized in that, the method comprises:
Vehicle geographical position coordinates is at any one time obtained by vehicle-mounted GPS positioning system;
Obtain the card number being provided with the Mobile phone card of RFID label tag, and this card number is stored in an rfid tag;
RFID reader reads the card number of the Mobile phone card stored in an rfid tag;
Obtain the geographical position coordinates of vehicle when RFID reader reads the card number of this Mobile phone card;
The microsimulation base station timing being positioned on vehicle and the whole compartment of quorum sensing inhibitor sends heartbeat request to mobile phone;
The geographical position coordinates of vehicle when acquisition mobile phone and microsimulation base station off-line;
The distance that the card number that calculating reads this Mobile phone card from RFID reader travels to vehicle mobile phone and the whole process of microsimulation base station off-line;
The distance that the card number of described Mobile phone card and vehicle travel is sent to remote server by onboard wireless telecommunication equipment;
Remote server calculate user ride produced expense and from the account of Mobile phone card deduct fees.
Microsimulation base station on each vehicle has a unique device address, and the method comprises further:
The device address of the microsimulation base station on the distance of the card number of Mobile phone card, vehicle traveling and this vehicle is sent to remote server;
Calculate riding fee according to the card number of described Mobile phone card, the distance of vehicle traveling and device address to use.
The method comprises further:
The legitimacy of vehicle-mounted RFID reader checking RFID label tag, and provide corresponding audio-video signal;
Described RFID label tag obtains the on-off state information of mobile phone, and this information is stored in an rfid tag, and only when mobile phone is in opening, RFID label tag is just by the legitimate verification of vehicle-mounted RFID reader;
Obtain vehicle-mounted microsimulation base station sends threshold values interval time from heartbeat request to mobile phone;
The distance last time receiving microsimulation base station transmission heartbeat request, when not exceeding described threshold values interval time, forbids user's manual-lock mobile phone, and provides illegal information prompting of closing.
The method comprises further:
Vehicle-mounted microsimulation base station obtains the intensity of the mobile communication signal of mobile phone;
When judging that microsimulation base station searches mobile phone for the last time according to the change of the mobile communication signal intensity of mobile phone, whether mobile phone is positioned on bus;
When described mobile phone be positioned at bus cuts out time, provide the prompting of illegal closing hand phone.
The method comprises further:
Obtained the information of account of deducting fees corresponding to Mobile phone card by mobile communications network, and accounts information of this being deducted fees stores in an rfid tag;
The legitimacy of vehicle-mounted RFID reader to accounts information of deducting fees corresponding to the Mobile phone card stored in RFID label tag is verified.
The present invention also provides a kind of system of the sectional fare by bus based on mobile phone, and it is characterized in that, this system comprises:
One mobile phone, is provided with RFID label tag in described Mobile phone card, and described cell phone processor obtains the card number of Mobile phone card and is stored in the RFID label tag of Mobile phone card by the card number of Mobile phone card;
Vehicle-mounted GPS positioning system, for obtaining vehicle geographical position coordinates at any one time;
Be arranged at the RFID reader on vehicle, for reading the card number of storage Mobile phone card in an rfid tag;
Be arranged at the treating apparatus on vehicle, for obtaining the geographical position coordinates of vehicle when RFID reader reads the card number of this Mobile phone card;
Be positioned on vehicle and the microsimulation base station in the whole compartment of quorum sensing inhibitor and send heartbeat request for timing to mobile phone;
The geographical position coordinates of vehicle when described treating apparatus acquisition mobile phone and microsimulation base station off-line;
The distance that described treating apparatus calculating travels from the card number that RFID reader reads this Mobile phone card to vehicle mobile phone and the whole process of microsimulation base station off-line;
Onboard wireless telecommunication equipment, sends to remote server for the distance card number of described Mobile phone card and vehicle travelled;
Remote server calculate user ride produced expense and from the account of Mobile phone card deduct fees.
Vehicle-mounted microsimulation base station on each vehicle has a unique device address, and the device address of the vehicle-mounted microsimulation base station on the distance of the card number of Mobile phone card, vehicle traveling and this vehicle is sent to remote server by described onboard wireless telecommunication equipment;
Remote server calculates riding fee according to the card number of described Mobile phone card, the distance of vehicle traveling and device address and uses.
Described vehicle-mounted RFID reader comprises audio-video signal indicating device, and after the legitimacy of vehicle-mounted RFID reader checking RFID label tag, described audio-video signal indicating device provides corresponding audio-video signal;
Described RFID label tag obtains the on-off state information of mobile phone, and this information is stored in an rfid tag, and only when mobile phone is in opening, RFID label tag is just by the legitimate verification of vehicle-mounted RFID reader;
Cell phone processor obtains microsimulation base station sends threshold values interval time from heartbeat request to mobile phone;
The distance last time receiving microsimulation base station transmission heartbeat request, when not exceeding described threshold values interval time, cell phone processor forbade user's manual-lock mobile phone, and provided illegal information prompting of closing by audio & video equipment.
The method comprises further:
Microsimulation base station obtains the intensity of the mobile communication signal of mobile phone;
When judging that microsimulation base station searches mobile phone for the last time according to the change of the mobile communication signal intensity of mobile phone, whether mobile phone is positioned on bus;
When described mobile phone be positioned at bus cuts out time, provide the prompting of illegal closing hand phone.
Cell phone processor obtains the information of account of deducting fees corresponding to Mobile phone card by mobile communications network, and accounts information of this being deducted fees stores in an rfid tag;
The legitimacy of vehicle-mounted RFID reader to accounts information of deducting fees corresponding to the Mobile phone card stored in RFID label tag is verified.
The technique effect that the present invention is useful is:
Compared to prior art, the present invention using mobile phone as qualification user whether identification facility onboard, when passenger carry mobile phone get on the bus time, the mobile communication signal of microsimulation base station covers whole compartment simultaneously, passenger loading can be recognized like this when passenger's carrying mobile phone enters compartment, and passenger can be recognized when microsimulation base station can't detect mobile phone signal and got off, calculate passenger loading and can carry out sectional fare to passenger with the distance that vehicle in this time period of getting off is advanced, and whole process, passenger very can realize sectional fare without the need to brush twice rfid card, easy to use, shorten the time of passenger getting on/off simultaneously.
By the card number of Mobile phone card is stored in an rfid tag, the card number of Mobile phone card is read by RFID reader, carry out heartbeat inspecting for further microsimulation base station to mobile phone to lay the first stone, and be very easy to the card number that can obtain Mobile phone card entrained by user by the method.
By arranging RFID label tag in Mobile phone card, and the identifying information of Mobile phone card is stored in an rfid tag, and RFID label tag and mobile phone card number are bound, the RFID label tag of binding by arranging RFID reader pair and passenger identity is verified, and RFID reader is arranged at the doorway at bus Qianmen, identify by RFID label tag is pressed close to RFID reader when passenger loading, the legal mobile phone whether passenger carries representative of consumer by bus payment account can be identified accurately, avoid the problem of artificially deliberately stealing a ride.Brush RFID mass transit card to get on the bus and become passenger and to ride public transportation means the custom of swiping the card simultaneously, although the present invention has used the function that RFID label tag exercises supervision to passenger and identifies, but deducting fees of its essence is realized by binding mobile phone card number, on the basis of use habit not changing people, automatic formation segmentation is deducted fees, so the present invention is the upgrading to an existing brush RFID mass transit card, when not changing passenger's use habit, there is upgrading simple, the advantage that upgrade cost is lower.
Only when mobile phone is in opening, RFID label tag just by the legitimate verification of vehicle-mounted RFID reader, impels passenger before getting on the bus, carry out the detection of mobile phone like this, avoids the problem of user's shutdown, thus avoids the problem occurring stealing a ride.When not exceeding described threshold values interval time by arranging apart from the last time receiving microsimulation base station transmission heartbeat request, forbidding user's manual-lock mobile phone, thus user can be avoided after getting on the bus, the problem deliberately turned off a mobile phone.
When can judge that microsimulation base station searches mobile phone for the last time by the mobile communication signal intensity of detection of handset, whether mobile phone is positioned on bus, thus can avoid the problem of user's closing hand phone by force onboard, avoids the appearance of stealing a ride.
By the quick recognition capability of RFID, the legitimacy of the mobile phone entrained by passenger can be identified fast, accounts information corresponding for mobile phone card number is written in RFID label tag simultaneously, legitimacy (the such as whether arrearage) information of the account of deducting fees by bus of passenger can be identified very fast by RFID reader, avoid and pass through transmitted data on network, and cause identifying too slow problem, facilitate the speed of passenger loading.
[accompanying drawing explanation]
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is the system architecture diagram of the embodiment of the present invention.
[embodiment]
In order to make the object of invention, technical scheme and advantage clearly understand, below in conjunction with the embodiment of accompanying drawing and optimum, the present invention is further elaborated.Should be appreciated that the embodiment of optimum described herein is only in order to explain the present invention, be not used for limiting the present invention.
Embodiment
The present embodiment provides a kind of sectional fare method by bus based on mobile phone, and the method comprises:
S1: Mobile phone card is bound mutually with RFID label tag, and the card number of Mobile phone card is stored in an rfid tag;
S2: the on-off state information obtaining mobile phone, and this information is stored in an rfid tag;
S3: verified by the legitimacy of RFID reader to RFID label tag, and make instruction by sound or visual signal;
The legitimate verification of RFID label tag comprises:
The on-off state information of checking mobile phone, when mobile phone is in open state, RFID label tag passes through legitimate verification;
Checking RFID label tag encrypted authentication information, the encrypted authentication information of RFID label tag need by the checking of RFID reader;
Checking and Mobile phone card bind the validity (such as with or without arrearage, with or without expired etc.) of account of deducting fees, and when the account of deducting fees of binding with Mobile phone card to be in without arrearage without expired normal condition, RFID label tag passes through legitimate verification.
S4:RFID reader reads the card number of the Mobile phone card stored in an rfid tag;
S5: obtain vehicle geographical position coordinates at any one time by vehicle-mounted GPS positioning system;
S6: the geographical position coordinates obtaining vehicle when RFID reader reads this Mobile phone card card number;
S7: the microsimulation base station timing being positioned on vehicle and the whole compartment of quorum sensing inhibitor sends heartbeat request to mobile phone;
After RFID reader reads the card number of the Mobile phone card stored in an rfid tag, the card number of this Mobile phone card is sent to vehicle-mounted microsimulation base station, microsimulation base station sends the packet of heartbeat request to mobile phone according to this card number information.
The time interval that the timing of described microsimulation base station sends heartbeat request to mobile phone is 4s in the present embodiment, in fact 1s ~ 60s can be set in, the too high meeting of frequency of heartbeat inspecting adds the burden of Iarge-scale system, and the underfrequency of heartbeat inspecting can cause the accuracy rate of monitoring to decline.
Because vehicle is constantly being advanced, and microsimulation base station is identical with the mobile communication signal standard that the signal of communication standard of mobile phone understands vehicle external, so the signal that microsimulation base station sends likely can produce co-channel interference with external mobile communication signal, the present invention is in order to address this problem, take the method for the frequency jitter of the mobile communication signal of microsimulation base station, that is: obtain the frequency information of the mobile communication signal outside vehicle, then change the frequency of microsimulation base station transmit signals; Or: the distribution plan obtaining mobile communication signal frequency in vehicle travel line, again according to the position that vehicle is advanced, change the frequency of microsimulation base station transmit signals, make the frequency of microsimulation base station transmit signals different from external mobile communication signal frequency.
S8: obtain microsimulation base station sends threshold values interval time from heartbeat request to mobile phone;
S9: when judging that mobile phone cuts out, distance is last receives time that microsimulation base station sends heartbeat request and whether exceed threshold values described interval time;
S10: when the time that the distance last time receives microsimulation base station transmission heartbeat request does not exceed described threshold values interval time, forbid user's manual-lock mobile phone, and provide illegal information prompting of closing;
S11: when the time that the distance last time receives microsimulation base station transmission heartbeat request exceedes described threshold values interval time, allow user's manual-lock mobile phone.
The effect that above-mentioned step S8-S11 plays is exactly avoid user by the illegal operation of button operation closing hand phone while taking a bus;
S12: the mobile phone signal intensity level comprised in the heartbeat reply data bag that microsimulation base station acquisition mobile phone returns;
S13: when judging the last heartbeat inspecting in microsimulation base station to mobile phone according to the change of the signal intensity of mobile phone, whether mobile phone is positioned on bus;
If the mobile phone of user after getting off just close, then mobile phone signal the last time heartbeat inspecting to its change in signal strength during vanishing must than user onboard intentional mobile phone cuts out time change in signal strength large.
S14: when described mobile phone be positioned at bus cuts out time, provide the prompting of illegal closing hand phone;
The effect that above-mentioned step S12-S14 plays is exactly avoid user's not enough and illegal operation that Bluetooth of mobile phone is closed by force of powered-down or Power supply by force while taking a bus;
S15: when described mobile phone leaves bus, the geographical position coordinates of vehicle during acquisition mobile phone off-line;
Mobile phone off-line is mobile phone and no longer returns heartbeat response instruction to microsimulation base station, and microsimulation base station does not receive the heartbeat response of mobile phone, and namely judge mobile phone off-line, namely mobile phone leaves bus.
S16: calculate the distance of card number to vehicle traveling the whole process of mobile phone off-line reading this Mobile phone card from RFID reader;
S17: the distance that the device address of the card number of described Mobile phone card, microsimulation base station and vehicle travel is sent to remote server by onboard wireless telecommunication equipment;
S18: remote server according to the distance that the card number of Mobile phone card, the device address of microsimulation base station and vehicle travel calculate user ride produced expense and from the account of Mobile phone card deduct fees;
S19: mobile phone obtains the information of account of deducting fees corresponding to Mobile phone card by mobile communications network, and accounts information storage of this being deducted fees carries out legitimate verification again for RFID reader in an rfid tag.
According to the Method And Principle of the above-mentioned sectional fare by bus based on mobile phone, the present invention also provides a kind of system of the sectional fare by bus based on mobile phone, and this system comprises:
One mobile phone 10, is provided with RFID label tag 111 in the Mobile phone card 11 of described mobile phone 10, stores the card number of Mobile phone card in described RFID label tag 111, and the card number of described Mobile phone card is bound in the database of remote server 20 mutually with account of deducting fees by bus;
The account of this account of deducting fees can be the bank account of binding mutually with the card number of Mobile phone card also can be Mobile phone card can also be that the Special riding bound mutually with the card number of Mobile phone card is deducted fees account.
Mobile unit 30, described mobile unit 30 comprises:
Vehicle-mounted GPS positioning system 31, for obtaining vehicle geographical position coordinates at any one time;
Be arranged at the RFID reader 32 on vehicle, for reading the card number of the Mobile phone card 11 be stored in RFID label tag 111;
Be arranged at the treating apparatus 33 on vehicle, for obtaining the geographical position coordinates of vehicle when RFID reader 32 reads the card number of this Mobile phone card 11;
Be positioned on vehicle and the microsimulation base station 34 in the whole compartment of quorum sensing inhibitor and send heartbeat request for timing to mobile phone radio frequency module 13;
The geographical position coordinates of vehicle when described treating apparatus 33 obtains mobile phone 10 off-line;
Described treating apparatus 33 calculates the distance of card number to vehicle traveling the whole process of mobile phone 10 off-line reading this Mobile phone card 11 from RFID reader 32;
Onboard wireless telecommunication equipment 35, for sending to remote server 20 by the device address of the microsimulation base station 34 on the distance of the card number of described Mobile phone card 11, vehicle traveling and this vehicle;
Remote server 20 also for the card number according to described Mobile phone card 11, vehicle travel distance and device address calculate user ride produced expense and from the account of Mobile phone card deduct fees, the vehicle-mounted Bluetooth equipment on each vehicle has a unique device address;
Described vehicle-mounted RFID reader 32 comprises audio-video signal indicating device 321, after vehicle-mounted RFID reader 32 verifies the legitimacy of RFID label tag, described audio-video signal indicating device 321 provides corresponding audio-video signal, cell phone processor 12 obtains the open and-shut mode information of mobile phone 10, and this information is stored in RFID label tag 111, only when mobile phone 10 is in opening, RFID label tag 111 is just by the legitimate verification of vehicle-mounted RFID reader 32;
Cell phone processor 12 obtains microsimulation base station 34 sends threshold values interval time from heartbeat request to mobile phone radio frequency module 13; Distance is last receives time that microsimulation base station 34 sends heartbeat request when not exceeding described threshold values interval time, and cell phone processor 12 forbids user's manual-lock mobile phone 10, and provides illegal information prompting of closing by the audio & video equipment 14 of mobile phone.
Microsimulation base station 34 obtains the intensity of the signal of mobile phone 10; When judging the last heartbeat inspecting in microsimulation base station 34 to mobile phone 10 according to the change of the signal intensity of mobile phone 10, whether mobile phone 10 is positioned on bus, when described mobile phone 10 be positioned at bus cuts out time, provided the prompting of illegal closing hand phone 10 by the audio frequency apparatus 35 be arranged on bus.
Accounts information of deducting fees corresponding for Mobile phone card is sent to mobile phone 10 by mobile communications network by remote server 20, cell phone processor 12 obtains the information of account of deducting fees corresponding to Mobile phone card, and the legitimacy that accounts information of this being deducted fees is stored in accounts information of deducting fees corresponding for the Mobile phone card stored in vehicle-mounted RFID reader 32 pairs of RFID label tag 111 next time in RFID label tag 111 is verified.
In a word, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not departing from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.