[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 automatically deducting fees based on the segmentation that takes bus of bluetooth and RFID.
RFID of the present invention refers to passive RFID, and the mode of its induction can be multiple, and its frequency of operation also can be multiple, but is not preferably close with the frequency of operation of bluetooth.
Concrete technical scheme of the present invention is as follows:
The invention provides a kind of method that segmentation that takes bus is deducted fees automatically, it is characterized in that, the method comprises:
Obtain bus geographical position coordinates at any one time;
Be positioned at signal on bus and the vehicle-mounted Bluetooth equipment covering whole compartment searches for the bluetooth module of its signal cover, and obtain the bluetooth recognition code of this bluetooth module;
Obtain vehicle-mounted Bluetooth equipment search the moment of a bluetooth module and search the moment of this bluetooth module for the last time for the first time;
Calculate the distance that in vehicle-mounted Bluetooth equipment first time to the same Bluetooth module time section of last search, bus travels;
The distance that the bluetooth recognition code of the bluetooth module searched and this bluetooth module travel with bus is sent to remote server;
Find out the account of deducting fees of the representative passenger identity bound mutually with described bluetooth recognition code;
Calculate the riding fee use corresponding with this distance according to the distance that bluetooth module travels with bus, and deduct fees the account corresponding from the bluetooth recognition code with this bluetooth module.
Vehicle-mounted Bluetooth equipment on each bus has a unique device address, and the method comprises further:
The device address of the vehicle-mounted Bluetooth equipment on the distance travel the bluetooth recognition code of bluetooth module, this bluetooth module with bus and this bus sends to remote server;
The distance travelled according to described bluetooth recognition code, bus and device address calculate riding fee and use.
The method comprises further:
Legal RFID label tag and bluetooth module are coupled together by electrical number and are packaged together;
The bluetooth recognition code of this bluetooth module and the account of deducting fees representing passenger identity are bound mutually;
Verified by the legitimacy of RFID reader to RFID label tag, and make instruction by sound or visual signal.
The method comprises further:
Only when bluetooth module is opened, RFID label tag is just by the legitimate verification of RFID reader;
Described bluetooth module by a button by artificially opening.
Vehicle-mounted Bluetooth equipment sends paging instructions to bluetooth module, when bluetooth module exceed the regular hour do not receive vehicle-mounted Bluetooth equipment send paging instructions time, close bluetooth module.
The bluetooth recognition code stored in RFID label tag is read by RFID reader;
Relatively whether the bluetooth recognition code of RFID reader reading is identical with the bluetooth recognition code that vehicle-mounted Bluetooth equipment searches;
Calculate vehicle-mounted Bluetooth equipment first time to search for the last time have RFID reader read bluetooth recognition code Bluetooth module time section in bus traveling distance.
This mass transit card bluetooth module bluetooth recognition code is sent to the accounts information that the blue identification code of this bluetooth module of remote server verification is corresponding;
The accounts information that bluetooth module described in remote server sends to onboard wireless telecommunication equipment is corresponding;
By vehicle-mounted Bluetooth equipment, accounts information corresponding for described bluetooth module is sent to bluetooth module;
Accounts information corresponding for bluetooth module is stored and verifies for the legitimacy to accounts information corresponding to the bluetooth module stored in RFID label tag of vehicle-mounted RFID reader next time in an rfid tag.
The system that the present invention also provides a kind of segmentation that takes bus automatically to deduct fees, it is characterized in that, this system comprises:
Bluetooth module entrained by passenger;
Be arranged at the GPS locating device on bus, for obtain bus at any one time time geographical position coordinates;
To be arranged on bus and cover whole compartment vehicle-mounted Bluetooth equipment, for the bluetooth module in its signal cover, and obtain the bluetooth recognition code of this bluetooth module;
Be arranged at the time set on bus, search the moment of a bluetooth module for obtaining vehicle-mounted Bluetooth equipment first time and search the moment of this bluetooth module for the last time;
Be arranged at the treating apparatus on bus, for calculating the distance that in vehicle-mounted Bluetooth equipment first time to the same Bluetooth module time section of last search, bus travels;
Be arranged at the wireless signal transmission on bus, send to remote server for the distance bluetooth recognition code of the bluetooth module searched and this bluetooth module travelled with bus;
Remote server, for finding out the account of deducting fees of the representative passenger identity bound mutually with described bluetooth recognition code, and calculate the riding fee use corresponding with this distance according to the distance that bluetooth module travels with bus, and deduct fees the account corresponding from the bluetooth recognition code with this bluetooth module.
The device address of the vehicle-mounted Bluetooth equipment on the distance travel the bluetooth recognition code of bluetooth module, this bluetooth module with bus and this bus sends to remote server;
The distance travelled according to described bluetooth recognition code, bus and device address calculate riding fee and use.
This system also comprises:
Be positioned at the RFID reader on bus;
RFID label tag entrained by passenger, described RFID label tag and bluetooth module are coupled together by electrical number and are packaged together;
Described RFID reader reads the data in RFID label tag and verifies the legitimacy of RFID label tag, and makes instruction by sound or visual signal.
Described RFID label tag and bluetooth module are connected a control chip jointly, and bluetooth module is also connected with a supply module, and control chip, supply module and RFID label tag, bluetooth module are packaged together
Described mass transit card is arranged a button, for opening bluetooth module;
Described mass transit card also comprises control chip, described vehicle-mounted Bluetooth equipment also sends paging instructions to bluetooth module, control chip obtains bluetooth module and receives paging instructions and analyze, when bluetooth module exceed the regular hour do not receive vehicle-mounted Bluetooth equipment send paging instructions time, control chip control supply module stop power to bluetooth module.
The bluetooth recognition code stored in RFID label tag is read by RFID reader;
Relatively whether the bluetooth recognition code of RFID reader reading is identical with the bluetooth recognition code that vehicle-mounted Bluetooth equipment searches;
Calculate vehicle-mounted Bluetooth equipment first time to search for the last time have RFID reader read bluetooth recognition code Bluetooth module time section in bus traveling distance.
The accounts information that this mass transit card bluetooth module bluetooth recognition code sends to the blue identification code of this bluetooth module of remote server verification corresponding by wireless signal transmission;
The accounts information that bluetooth module described in remote server sends to onboard wireless telecommunication equipment is corresponding;
By vehicle-mounted Bluetooth equipment, accounts information corresponding for described bluetooth module is sent to bluetooth module;
Accounts information corresponding for bluetooth module stores by control chip to be verified for the legitimacy to accounts information corresponding to the bluetooth module stored in RFID label tag of vehicle-mounted RFID reader next time in an rfid tag.
The technique effect that the present invention is useful is:
Compared to prior art, the present invention using registered bluetooth module as legal bluetooth module, when passenger carry legal bluetooth module get on the bus time, namely legal bluetooth module can be used as the instrument of passenger identity identification, Bluetooth signal covers whole compartment simultaneously, enter compartment can recognize passenger loading when passenger carries bluetooth module like this, and passenger can be recognized when vehicle-mounted Bluetooth equipment can't detect the Bluetooth signal of bluetooth module 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.
Calculating riding fee by long-range server can facilitate user to be supplemented with money account of deducting fees by internet or other long-range modes, inquired about and data modification, can save the later stage and to ride the handling cost of RFID mass transit card and the operation cost of the whole segmentation bales catch charge system that takes bus.
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, thus can judge whether passenger carries legal bluetooth module accurately, the phenomenon avoiding passenger to steal a ride occurs.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 identifies that the bluetooth recognition code of bluetooth module realizes by binding, 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.
RFID label tag and bluetooth module are bound, it connects a control chip jointly, bluetooth module is closed after bluetooth module can't detect the paging signal that vehicle-mounted Bluetooth equipment sends, facilitate and bluetooth module is managed, passenger is avoided bluetooth module to be carried out the problem of manual-lock bluetooth module after getting on the bus, the power consumption of bluetooth module can be saved simultaneously, and only when bluetooth module is opened, RFID label tag, just by the legitimate verification of RFID reader, can impel passenger before by bus by button manual unlocking bluetooth module.
RFID label tag and bluetooth are bound together, RFID reader by identifying that RFID label tag identifies the bluetooth recognition code of bluetooth module, thus can be identified legal passenger fast and accurately, and the problem preventing passenger from stealing a ride occurs, and recognition speed is fast, efficiency is high.
By the bluetooth recognition code of bluetooth module is directly stored in an rfid tag, the bluetooth recognition code of bluetooth module is directly read by vehicle-mounted Bluetooth equipment, identify the bluetooth module entrained by the real user for taking bus, the problem of the wrong charging avoided, decrease the task amount of vehicle-mounted treating apparatus process data simultaneously, save wireless signal transmission data traffic.
By the quick recognition capability of RFID, the legitimacy of the car card entrained by passenger can be identified fast, the accounts information of the bluetooth recognition code correspondence of bluetooth module 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.
[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 1
Principle of the present invention is as follows:
Bus arranges vehicle-mounted Bluetooth equipment, bluetooth module within the scope of its Bluetooth signal of search of this vehicle-mounted Bluetooth equipment timing or not timing (situation of not timing is that this vehicle-mounted Bluetooth equipment described below can carry out the adjustment of search rate according to the gait of march of bus), and obtain the bluetooth recognition code of this bluetooth module.
The time interval of described vehicle-mounted Bluetooth equipment timing search bluetooth module is 3s in the present embodiment, in fact can be set in 1s ~ 60s, and the too high meeting of frequency of search adds the burden of Iarge-scale system, and the underfrequency of search can cause the accuracy rate of timing to decline.
By adopting suitable antenna and suitable Bluetooth signal transmission power, the Bluetooth signal of vehicle-mounted Bluetooth equipment can be covered whole compartment.Because Bluetooth signal is nondirectional, and there will be unstable phenomenon, so the Bluetooth signal of part can be allowed to leak outside the compartment of bus, but can not be too much.
Bus arranges GPS navigation device, for obtaining the information of the geographical position coordinates of each moment bus, bus also arranges a time set, this time set searches for obtaining vehicle-mounted Bluetooth equipment first time bluetooth module (the such as mobile phone that the actual passenger of this bluetooth module carries that a passenger carries, bluetooth earphone, bluetooth module in the bluetooth equipments such as bluetooth key) moment, and the geographical position coordinates information of the bus corresponding with this moment is obtained from GPS navigation device, in passenger takes bus the process of constantly advancing with bus, vehicle-mounted Bluetooth equipment constantly searches for the bluetooth module in its range of signal, because passenger is always on bus, so it can search bluetooth module (except signal brief interruption) always, get off until passenger carries bluetooth module, leave the signal cover of vehicle-mounted Bluetooth equipment, then vehicle-mounted Bluetooth equipment no longer inquires the bluetooth recognition code of bluetooth module, when vehicle-mounted Bluetooth equipment no longer inquires the bluetooth recognition code of bluetooth module, then think that passenger carries bluetooth module and gets off, the moment of vehicle-mounted Bluetooth equipment search less than bluetooth module is calculated by time set, be can be regarded as the moment of passenger getting off car this moment, or the moment of moment as passenger getting off car of bluetooth module will be searched less than upper once (for the last time) during bluetooth module in search, from GPS navigation device, the geographical position coordinates information of the bus corresponding with this moment is obtained by this moment.
Cause to prevent the Bluetooth signal brief interruption of vehicle-mounted Bluetooth equipment searching for the problem causing vehicle-mounted Bluetooth equipment false judgment less than the bluetooth module be also positioned on car, need to arrange vehicle-mounted Bluetooth equipment when the bluetooth module that continuous 3 times (other number of times also can) search are carried less than passenger, namely think that this passenger carries bluetooth module and gets off, at this moment, moment vehicle-mounted Bluetooth equipment being searched for the last time the bluetooth module that passenger carries is more accurately as the moment of passenger getting off car.
Bus is also provided with treating apparatus, and described treating apparatus searches bluetooth module that passenger carries to the distance searching bus traveling in Bluetooth module time section that passenger carries for the last time for calculating vehicle-mounted Bluetooth equipment first time.
Because bus travels according to permanent haulage line, so according to the geographical position coordinates of bus, be easy to calculate the station number that bus runs over, thus the distance that bus travels can be known easily, simultaneously, bus only just can stop when arriving at a station, so geographical position coordinates when searching according to vehicle-mounted Bluetooth equipment the bluetooth module that passenger carries for the last time residing for bus, readily appreciates that passenger at which station gets off.
Bus is also provided with wireless signal transmission, sends to remote server for the distance bluetooth recognition code of bluetooth module and this bluetooth module travelled with bus.Described wireless signal transmission can have multiple, as transmission of wireless signals such as WLAN, WIFI, can also by GSM communication signal or the transmission of 3G communication signal, certainly along with the development of 3G mechanics of communication, 3G transmission of wireless signals data are adopted to have with low cost, the advantage that message transmission rate is fast.
Each bluetooth recognition code is all that registration in advance is good and offer the deduct fees account corresponding with this bluetooth recognition code, the bluetooth recognition code of bluetooth module, in fact with regard to passenger identity identification code, can be differentiated the identity of passenger by the bluetooth recognition code of bluetooth module.The bluetooth recognition code of a bluetooth module can only a corresponding account of deducting fees, and an account of deducting fees can corresponding multiple bluetooth module.
The distance that remote server travels with bus according to bluetooth module calculates the riding fee use corresponding with this distance, and takes off with this apart from corresponding expense from the corresponding account of the bluetooth recognition code to this bluetooth module.In fact the distance that bus travels is exactly the quantity equaling the station that bus runs over.
Can realize automatically deducting fees by bus to passenger by above-mentioned method, ideally, if each people taken bus carries the bluetooth module representing its identity, and keep bluetooth module to be in opening in whole process always, then can make passenger in the process of getting on or off the bus, not need mass transit card to take out, also get on the bus without the need to the Qianmen from bus, passenger directly gets on the bus and gets off and can realize automatically deducting fees, thus without the need to steward, sectional fare is carried out to passenger, and the speed of getting on or off the bus is accelerated greatly, improve the road speed of bus.
But in real life, each passenger can not can carry the bluetooth module representing its identity and (likely forget band, or be not deliberately with), do not carry the passenger of bluetooth module to being difficult to its charge, if which passenger can accurately do not distinguished carry the bluetooth module representing its identity, who passenger does not carry, then there will be steal a ride serious and unfair irrational problem of charging.Another situation is, passenger carries such as bluetooth cellular phone, bluetooth earphone, bluetooth key etc. and comprises the device of bluetooth module, but the bluetooth recognition code of the bluetooth module of these devices is not registered at server, the bluetooth module do not bound with account of deducting fees, can not deduct fees to it.A kind of situation is in addition, can arbitrarily open and close if bluetooth module is passenger, the passenger then had can after getting on the bus soon, by the closedown of bluetooth module, vehicle-mounted Bluetooth equipment is caused to can't detect the Bluetooth signal of bluetooth module, system then can be caused to think that passenger gets off by mistake, so just there will be the problem that the distant passenger of travel distance deducts fees less.
Solve the problem, just need to judge whether each passenger just got on the bus carries legal bluetooth module accurately, the present invention proposes the principle closely identified in conjunction with existing RFID technique, the bluetooth module that each passenger just got on the bus carries is identified, and its legitimacy is verified.Concrete:
At the Qianmen of bus (in fact, be arranged on back door also passable, being arranged on Qianmen is that conveniently driver exercises supervision to passenger's brush RFID label tag, if back door is also arranged, just need to increase steward to exercise supervision, human cost will be increased like this, but, if passenger is more conscious or passenger supervises mutually, then need not increase carry out steward supervision also can) RFID reader is set, passenger carries legal RFID label tag, this legal RFID label tag can carry out legitimate verification by RFID reader, it is whether legal in order to the RFID label tag that passenger carries can be identified fast, can only be verified by the RFID reader of itself on bus, ID in RFID label tag can not be sent to server verify, so need to verify by suitable cryptographic algorithm, this recognition technology is very ripe in existing RFID technique, do not repeat them here.
After RFID label tag is identified, if bluetooth module and RFID label tag are bound, namely by verifying the legitimacy of bluetooth module to the legitimate verification of RFID label tag, in order to avoid bluetooth module and RFID label tag separate by passenger, need bluetooth module and RFID label tag to be electrically connected, physical package together simultaneously, when bluetooth module is separated with RFID label tag by passenger, RFID label tag can be caused to damage, the checking of legitimacy cannot be obtained.Certainly, the bluetooth recognition code of the bluetooth module be packaged together with RFID label tag needs to bind mutually with the account of deducting fees representing passenger identity, so just by identifying that the bluetooth recognition code of bluetooth module realizes automatically deducting fees.
Because bluetooth module need of work power supply is powered to it, so also need power module (mainly adopting powered battery) and RFID label tag, bluetooth module to be packaged together, be made into a mass transit card, the size of this mass transit card is identical with existing I.D. size, but Thickness Ratio certificate card is slightly thick, object is the battery in order to hold model.
Conveniently people's carrying mass transit card, avoid mass transit card to intake and cause bluetooth module and RFID label tag to be damaged, need bluetooth module, power module and RFID label tag are sealed in a plastic casing, the interface charged to power module is not set, so the power-on time in order to ensure electric power source pair of module bluetooth module, just need to adopt corresponding power-saving technique, bluetooth module of the present invention adopts ultra low power bluetooth module (Wibree), simultaneously, described RFID label tag and bluetooth module are connected a control chip jointly, after vehicle-mounted Bluetooth equipment searches bluetooth module, paging state is proceeded to immediately from query State, vehicle-mounted Bluetooth equipment timing (being preferably designed to 1 ~ 3 minute) sends paging instructions to bluetooth module, when bluetooth module exceed the regular hour (preferably design be 5 ~ 10 minutes) do not receive the paging instructions that vehicle-mounted Bluetooth equipment sends time, control chip controls power module to be stopped powering to bluetooth module.
Design like this, the signal cover making bluetooth module be positioned at vehicle-mounted Bluetooth equipment just can be opened, and be passenger by RFID label tag near RFID reader time just can open, just bluetooth module can be opened when that is to say and only have real passenger to ride, and when not riding, bluetooth module can not be opened, and has so just saved power supply greatly, has extended the serviceable life of power supply.
The closedown of bluetooth module can complete automatically, can not manually complete, and the unlatching of bluetooth module can manually complete, such as can a button be set on mass transit card, this button is for generation of the trigger pip of opening bluetooth module, passenger first opened bluetooth module by pressing keys before getting on the bus, in order to avoid passenger does not deliberately open the problem of bluetooth module, so need design only after bluetooth module is opened, RFID label tag is just by the legitimate verification of RFID reader, after bluetooth module is opened, namely vehicle-mounted Bluetooth equipment can search the Bluetooth signal of this bluetooth module.
Because Bluetooth signal is non-directional and signal intensity instability, the Bluetooth signal of vehicle-mounted Bluetooth equipment can not completely only be present in the compartment of bus, and it inevitably leaks into outside bus, may occur such situation in actual operation:
A kind of people of being carry bluetooth cellular phone and drive to go together with bus after certain distance, because vehicle-mounted Bluetooth equipment can search the Bluetooth signal of bluetooth cellular phone, even if bluetooth cellular phone is not on bus, but native system also can be identified as bluetooth cellular phone to be positioned on bus and together to advance with bus, native system will calculate the distance that bluetooth cellular phone is advanced with bus, and send it to long-range server, even if the bluetooth recognition code of bluetooth cellular phone is not registered in the server, the problem of by mistake deducting fees can not be caused, but so but can waste the flow of wireless signal transmission and remote server communication, increase the burden of the process data of system simultaneously.
Recognize the identification code of the bluetooth module of non-registered mistake in order to avoid the vehicle-mounted Bluetooth equipment on bus, in described RFID label tag, also store the bluetooth recognition code of bluetooth module; The bluetooth recognition code stored in RFID reader reading RFID label tag also sends to treating apparatus; The bluetooth recognition code that vehicle-mounted Bluetooth equipment searches by treating apparatus and the bluetooth recognition code that RFID reader reads compare; Find out vehicle-mounted Bluetooth equipment the searches out bluetooth recognition code identical with RFID reader reads bluetooth recognition code, calculate the geographic position residing for bus when the bluetooth module with this bluetooth recognition code was searched by vehicle-mounted Bluetooth equipment first time, obtain this bluetooth module simultaneously and searched geographic position residing for bus for the last time by vehicle-mounted Bluetooth equipment, calculate further there is the bluetooth recognition code that RFID reader reads bluetooth module by the distance of vehicle-mounted Bluetooth equipment first time to bus traveling in the time period searched for the last time.
The checking of the legitimacy of described RFID label tag is not only comprised to the information of checking label, whether by lawful registration, whether also comprise the bluetooth recognition code of the bluetooth module that checking is bound with this RFID label tag by lawful registration, whether this account corresponding to bluetooth recognition code is in normal condition (comprising the situations such as whether expired and arrearage), and due to be arranged at the bluetooth module in mass transit card bluetooth recognition code corresponding to accounts information be stored in remote server, if so the accounts information of this bluetooth recognition code correspondence is transferred on bus by network, obviously there will be the situation that speed is excessively slow, be unfavorable for identifying the legal user ridden fast and accurately.So need, by wireless signal transmission and Bluetooth signal, the accounts information of bluetooth recognition code correspondence is transferred to bluetooth module, and stored in an rfid tag, could realize quick and precisely identifying the legal user ridden, avoid the problem occurring stealing a ride.
Be dependent on above-mentioned principle, as shown in Figure 1, the present invention proposes a kind of method that segmentation that takes bus is deducted fees automatically, the method comprises:
S1: legal RFID label tag and bluetooth module are coupled together by electrical number and are packaged together;
S2: the bluetooth recognition code of bluetooth module and the account of deducting fees representing passenger identity are bound mutually;
S3: obtain the key press signal on mass transit card, controls bluetooth module and opens;
S4: verified by the legitimacy of RFID reader to RFID label tag, and make instruction by sound or visual signal;
S5: obtain bus geographical position coordinates at any one time;
S6: the bluetooth module in search vehicle-mounted Bluetooth equipment signal cover, and obtain the bluetooth recognition code of bluetooth module;
S7: the bluetooth recognition code being read the bluetooth module stored in RFID label tag by RFID reader;
S8: this mass transit card bluetooth module bluetooth recognition code is sent to the accounts information that the blue identification code of this bluetooth module of server authentication is corresponding;
S9: the accounts information that the bluetooth module described in remote server sends to onboard wireless telecommunication equipment is corresponding;
S10: accounts information corresponding for described bluetooth module is sent to bluetooth module by vehicle-mounted Bluetooth equipment;
S11: accounts information corresponding for bluetooth module is stored and verifies for the legitimacy of vehicle-mounted RFID reader next time to RFID label tag in an rfid tag;
S12: the bluetooth recognition code that the bluetooth recognition code got by vehicle-mounted Bluetooth equipment and RFID reader read compares;
S13: find out vehicle-mounted Bluetooth equipment the searches out bluetooth recognition code identical with RFID reader reads bluetooth recognition code;
S14: the moment that the bluetooth module that acquisition has this bluetooth recognition code was searched by vehicle-mounted Bluetooth equipment first time;
S15: vehicle-mounted Bluetooth equipment sends paging instructions to bluetooth module, bluetooth module sends response instruction after obtaining the paging instructions of vehicle-mounted Bluetooth equipment transmission;
S16: the moment that the bluetooth module that acquisition has this bluetooth recognition code is searched for the last time by vehicle-mounted Bluetooth equipment;
S17: the distance calculating bus traveling in vehicle-mounted Bluetooth equipment first time to the time period searching this bluetooth module for the last time;
S18: the distance that the bluetooth recognition code of this bluetooth module, the device address of vehicle-mounted Bluetooth equipment and this bluetooth module travel with bus is sent to remote server;
S19: the riding fee use corresponding with this distance calculated by the device address of the vehicle-mounted Bluetooth equipment on the distance travelled with bus according to bluetooth module, bus and the bluetooth recognition yardage of bluetooth module, and deduct fees from the account that the bluetooth recognition code with this bluetooth module is bound mutually;
In reality operation, passenger likely there will be and sits anti-problem by bus, or the problem occurring getting station wrong and sat car or got off in advance, and when this thing happens, passenger has to reselect an other bus and takes, for this situation, need to mark each bus of each public bus network, and each car is provided with at least one vehicle-mounted Bluetooth equipment, which bus by what analyze that the device address of vehicle-mounted Bluetooth equipment can know that this passenger takes, reselect another bus judge whether passenger sits anti-car by analyzing circuit that each bus advances and passenger again, the situation of sitting car or getting off in advance, and can deduct fees according to passenger's final distance (namely from the initial starting station to final docking station) of advancing that takes bus, passenger can be avoided to be treated unjustly that the situation of deducting fees occurs.
So need the bus to passenger takes to mark, the device address of vehicle-mounted Bluetooth equipment and passenger are transferred to together with the time and alternate distance of pausing between an other bus and be uploaded to server, analyzed by the situation by bus of server to passenger, thus calculate corresponding expense.
S20: when bluetooth module exceed the regular hour do not receive vehicle-mounted Bluetooth equipment send paging instructions time, close bluetooth module.
Equally, be dependent on above-mentioned principle, as shown in Figure 2, the invention provides the system that a kind of segmentation that takes bus is deducted fees automatically, this system comprises:
Mass transit card 21 in passenger's hand, this mass transit card comprises the button 215 that RFID label tag 211, bluetooth module 212, the control chip 213 be connected with RFID label tag and bluetooth module 212, the power module 214 of powering to bluetooth module and control chip and trigger Bluetooth module are opened, control chip 213 obtains the pressing signal of button 215, thus controls the power supply of power module 214 to bluetooth module 212;
Be positioned at the RFID reader 22 on bus, the legitimacy of RFID label tag verified for the data that read in RFID label tag, and make instruction by sound or visual signal;
Be arranged at the GPS locating device 23 on bus, for obtaining bus geographical position coordinates at any one time;
Be arranged at the vehicle-mounted Bluetooth equipment 24 on bus, for the bluetooth module in timing search vehicle-mounted Bluetooth equipment signal cover, and obtain the bluetooth recognition code of bluetooth module;
Be arranged at the time set 25 on bus, search the moment of legal bluetooth module for obtaining vehicle-mounted Bluetooth equipment first time and search the moment of this bluetooth module for the last time;
Be arranged at the treating apparatus 26 on bus, for calculating the distance of bus traveling in vehicle-mounted Bluetooth equipment first time to the time period searching same legal bluetooth module for the last time;
Be arranged at the wireless signal transmission 27 on bus, send to remote server for the distance bluetooth recognition code of legal bluetooth module, the device address of vehicle-mounted Bluetooth equipment and this bluetooth module travelled with bus;
Remote server 28, distance, the device address of vehicle-mounted Bluetooth equipment on bus and the bluetooth recognition yardage of bluetooth module for travelling with bus according to bluetooth module are calculated the riding fee use corresponding with this distance, and are deducted fees from the account that the bluetooth recognition code with this bluetooth module is bound mutually; Described remote server is also for binding the bluetooth recognition code of bluetooth module and the account of deducting fees that passenger rides mutually, and the bluetooth module after binding is legal bluetooth module.
The bluetooth recognition code of bluetooth module is also stored in described RFID label tag 211; RFID reader 22 reads the bluetooth recognition code that stores in RFID label tag and sends to treating apparatus 25; The bluetooth recognition code that vehicle-mounted Bluetooth equipment 24 searches by treating apparatus 25 and the bluetooth recognition code that RFID reader 22 reads compare; Find out the bluetooth recognition code identical with the bluetooth recognition code that RFID reader 22 reads that vehicle-mounted Bluetooth equipment 24 searches out, calculate the geographic position residing for bus when the bluetooth module with this bluetooth recognition code was searched by vehicle-mounted Bluetooth equipment first time, obtain this bluetooth module 212 simultaneously and searched geographic position residing for bus for the last time by vehicle-mounted Bluetooth equipment 24, calculate further there is the bluetooth recognition code that RFID reader 22 reads bluetooth module 212 by the distance of vehicle-mounted Bluetooth equipment first time to bus traveling in the time period searched for the last time.
Vehicle-mounted Bluetooth equipment 24 sends paging instructions to bluetooth module 212, when bluetooth module 212 exceed the regular hour do not receive vehicle-mounted Bluetooth equipment 24 send paging instructions time, close bluetooth module 212.
Described vehicle-mounted RFID reader 22 comprises audio-video signal indicating device 221, and after vehicle-mounted RFID reader 22 verifies the legitimacy of RFID label tag, described audio-video signal indicating device 221 provides corresponding audio-video signal.
This mass transit card bluetooth module bluetooth recognition code sends to remote server 30 to verify the accounts information that the blue identification code of this bluetooth module is corresponding by onboard wireless telecommunication equipment 25;
Remote server 30 sends accounts information corresponding to described bluetooth module to onboard wireless telecommunication equipment 25;
By vehicle-mounted Bluetooth equipment 24, accounts information corresponding for described bluetooth module is sent to bluetooth module 12;
The accounts information of bluetooth module 12 correspondence is stored in RFID label tag 11 by the control module 13 of mass transit card to be verified for the legitimacy of vehicle-mounted RFID reader next time to RFID label tag.
Power when working to make bluetooth module is less, the antenna of vehicle-mounted Bluetooth equipment rationally can be set in compartment, make the distance of the bluetooth module entrained by passenger and vehicle-mounted Bluetooth equipment nearer, operationally emissive power is lower to make bluetooth module, like this then make the supply module longer service life of powering to bluetooth module, under normal usage, serviceable life can reach 5 years, makes commercialization prospect of the present invention more wide.
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.