WO2015192593A1 - Automatic charging method, terminal and system for public transport - Google Patents

Automatic charging method, terminal and system for public transport Download PDF

Info

Publication number
WO2015192593A1
WO2015192593A1 PCT/CN2014/091181 CN2014091181W WO2015192593A1 WO 2015192593 A1 WO2015192593 A1 WO 2015192593A1 CN 2014091181 W CN2014091181 W CN 2014091181W WO 2015192593 A1 WO2015192593 A1 WO 2015192593A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
information
identification card
site information
location
Prior art date
Application number
PCT/CN2014/091181
Other languages
French (fr)
Chinese (zh)
Inventor
潘易龙
叶建生
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015192593A1 publication Critical patent/WO2015192593A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B13/00Taximeters
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/02Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/10Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means together with a coded signal, e.g. in the form of personal identification information, like personal identification number [PIN] or biometric data

Definitions

  • the invention relates to the field of bus application technology, in particular to a bus automatic deduction method, a bus terminal and a bus system.
  • the main purpose of the embodiment of the present invention is to realize automatic segmentation deduction of the bus terminal, improve the efficiency of the bus ticket sales, and reduce the labor cost.
  • an embodiment of the present invention provides a method for automatically charging a bus, and the method for automatically charging a bus includes
  • the step of acquiring the initial site information corresponding to the current location of the identification card, and storing the initial site information to the preset storage area of the identification card includes: :
  • the starting site information is stored to a preset storage area of the identification card.
  • the step of acquiring the termination site information corresponding to the current location of the identification card when the identification card is swiped again includes:
  • the step of reading the initial site information stored in the preset storage area of the identification card, and performing the charge processing on the identification card according to the start site information and the termination site information specifically includes:
  • acquiring the starting site information corresponding to the current location of the identification card, and storing the initial site information to the preset storage area of the identification card include:
  • the method further includes:
  • the start site information, the termination site information, and the tariff information corresponding to the termination site information of the identification card are reported to the bus server.
  • an embodiment of the present invention further provides a public transportation terminal, where the public transportation terminal includes:
  • the site information obtaining module is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to a preset storage area of the identification card When detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
  • the deduction processing module is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the initial site information and the termination site information.
  • the site information obtaining module includes:
  • the card detecting unit is configured to detect whether the identification card is swiped in real time
  • the GPS positioning unit is configured to acquire first position information of a current location of the identification card when the card detecting unit detects the identification card, and acquire the identification card when detecting that the identification card is swiped again Second location information of the current location;
  • a site querying unit configured to query, in the preset bus station location information, the start site information corresponding to the first location information according to the first location information; and according to the second location information, in a preset bus stop site Querying the location information to obtain the termination site information corresponding to the second location information;
  • An information transmitting unit is configured to store the starting site information to a preset storage area of the identification card.
  • the deduction processing module includes:
  • An information reading unit configured to read the starting site information stored in a preset storage area of the identification card
  • the deduction request unit is configured to generate a deduction request according to the read start site information and the termination site information;
  • the tariff inquiry unit is configured to query, according to the deduction request, the tariff information corresponding to the termination site information in the preset tariff mapping information;
  • the mobile terminal further includes:
  • An information storage module configured to connect to a bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server;
  • the information reporting module is configured to report the identified starting site information, the terminating site information, and the tariff information corresponding to the terminating site information to the terminating site information to the bus server.
  • an embodiment of the present invention further provides a public transportation system, which includes an identification card, a bus server, and a bus terminal;
  • the bus terminal includes:
  • the site information obtaining module is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to a preset storage area of the identification card When detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
  • the debit processing module is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the start site information and the termination site information;
  • the identification card is set to swipe in a sensing area of the bus terminal
  • the bus server is configured to connect to the bus terminal and perform information interaction with the bus terminal.
  • the public bus automatic deduction method, the bus terminal and the public transportation system provided by the embodiment of the present invention, when the bus terminal detects the identification card swiping, obtains the starting site information corresponding to the current location of the identification card, and the starting site is The information is stored in the preset storage area of the identification card, and the bus station where the passenger gets on the vehicle is obtained; when the identification card is detected to be swiped again, the terminal information corresponding to the current location of the identification card is obtained; And then reading the initial site information stored in the preset storage area of the identification card, obtaining a termination site where the passenger gets off the vehicle, and deducting the identification card according to the initial site information and the termination site information. Fee processing.
  • the bus fee corresponding to the passenger's identification card can be automatically deducted from the balance on the passenger identification card according to the tariff information corresponding to the passenger's station at the bus stop where the passenger is getting on the bus, and the bus terminal is realized.
  • the automatic segmentation deduction is applicable to the bus routes with segmented deductions, and there is no need for manual ticket sales, which improves the efficiency of bus ticket sales and reduces labor costs.
  • FIG. 1 is a schematic flow chart of an embodiment of an automatic bus deduction method according to the present invention.
  • step S10 in FIG. 1 is a schematic flow chart of step S10 in FIG. 1;
  • step S20 in FIG. 1 is a schematic flow chart of step S20 in FIG. 1;
  • step S30 in FIG. 1 is a schematic flow chart of step S30 in FIG. 1;
  • FIG. 5 is a schematic flow chart of another embodiment of a method for automatically charging a bus according to the present invention.
  • FIG. 6 is a schematic structural view of an embodiment of a bus terminal according to the present invention.
  • FIG. 7 is a schematic structural diagram of a site acquisition module in FIG. 6;
  • Figure 8 is a schematic structural view of the deduction processing module of Figure 6;
  • FIG. 9 is a schematic structural view of another embodiment of a bus terminal according to the present invention.
  • FIG. 10 is a schematic structural view of an embodiment of a public transportation system according to the present invention.
  • the invention provides a method for automatically charging a bus.
  • FIG. 1 is a schematic flow chart of an embodiment of an automatic bus deduction method according to the present invention.
  • the method for automatically charging a bus includes the following steps:
  • step S10 when the identification card is detected, the initial site information corresponding to the current location of the identification card is obtained, and the initial site information is stored in the preset storage area of the identification card.
  • the automatic bus deduction method of the present embodiment is applied to a bus terminal.
  • the bus terminal detects whether the sensing area has an identification card, and when a passenger gets on the vehicle, the identification card is close to or touches the sensing area of the bus terminal.
  • the terminal detects that there is an identification card swipe.
  • the bus terminal detects that the identification card is swiped, according to the current location of the identification card, that is, the location where the passenger holds the identification card when the passenger gets on the vehicle, the initial site information corresponding to the current location of the identification card is obtained, that is, according to the passenger. Get on the bus and determine the bus stop where passengers board the bus.
  • the obtained initial site information is stored in the preset storage area of the identification card, and the preset storage area of the identification card records the bus stop of the passenger on board, so that the passenger can get off the vehicle and hold the identification card, the bus terminal can
  • the stored starting site information identifies that the same passenger is getting off.
  • the identification card may be a bus card, a resident ID card, or a memory card stored in a mobile terminal such as a mobile phone.
  • the above starting site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is first swiped.
  • Step S20 When it is detected that the identification card is swiped again, the termination site information corresponding to the current location of the identification card is obtained.
  • the bus terminal detects that the identification card is swiped again.
  • the bus terminal detects that the same identification card is swiped again, according to the current location of the identification card, that is, the location where the passenger gets off the card when the identification card is swiped, the terminal information corresponding to the current location of the identification card is obtained, that is, according to the passenger.
  • the location of the car determines the bus stop where the passenger gets off.
  • the termination site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is swiped again.
  • Step S30 Read the start site information stored in the preset storage area of the identification card, and perform deduction processing on the identification card according to the start site information and the termination site information.
  • the initial site information stored in the preset storage area is obtained from the preset storage area of the identification card, and the bus stop where the passenger gets on the bus is determined.
  • the initial site information and the terminating site information corresponding to the location where the identification card is located that is, after determining the bus stop on which the passenger gets on the bus and the bus stop that gets off the bus, according to the preset start site information to the tariff information corresponding to the terminating site information, That is, determining the tariff information corresponding to the passenger section of the stop site where the passenger gets on the bus to the stop site where the passenger is getting off, and deducting the charge card according to the tariff information, automatically extracting the identification card from the passenger.
  • the balance on the deduction is deducted from the bus fare payable by the passenger.
  • the automatic bus deduction method provided by the present invention can automatically extract from the passenger identification card according to the tariff information corresponding to the passenger section of the stop site where the passenger is on the bus to the stop site where the passenger is getting on the bus.
  • the balance deducts the bus fare payable by the passenger, realizes the automatic segmentation deduction of the bus terminal, applies to the bus line with the deduction of the deduction, and does not require manual ticket sales, which improves the efficiency of bus ticket sales and reduces the labor cost.
  • FIG. 2 is a schematic flow chart of step S10 of FIG.
  • Step S10 has the following steps:
  • Step S11 detecting whether the identification card is swiped in real time
  • Step S12 When the identification card is swiped, the first location information of the current location of the identification card is obtained.
  • the bus terminal When detecting the identification card, the bus terminal locates the current location of the identification card through the GPS, and obtains the first location information of the current location of the identification card.
  • the first location information is the identification card when the bus terminal detects the identification card for the first time.
  • the latitude and longitude coordinates corresponding to the location that is, the latitude and longitude coordinates corresponding to the location where the passenger gets on the bus.
  • Step S13 Query, according to the first location information, the start site information corresponding to the first location information in the preset bus station location information.
  • the bus terminal queries the location information of the corresponding bus station in the preset bus station location information according to the acquired first location information, and the preset location information of the bus station overlaps with the first location information or When the location information of the nearest station is determined, the location information of the site that is coincident with or closest to the first location information is determined as the location information of the initial site, and the corresponding location of the location information of the initial site is obtained in the preset bus site information.
  • Site Information is provided.
  • the above starting site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is first swiped.
  • the location information of the above bus station is the latitude and longitude coordinates corresponding to the location of each bus station in the bus line.
  • the above bus stop information is the name code of each bus stop in the bus line.
  • the bus terminal After the bus terminal determines the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle through the GPS positioning, it searches for the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle in the preset bus station location information, if there is a passenger with the latitude and longitude coordinates.
  • the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at the time of boarding are determined, and the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at which the passenger gets on the vehicle are determined as the latitude and longitude coordinates of the bus stop where the passenger gets on the bus, and the bus on which the passenger gets on the bus is determined.
  • the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle are found in the preset bus station location information,
  • the latitude and longitude coordinates closest to the latitude and longitude coordinates corresponding to the position at which the passenger gets on the vehicle are determined as the latitude and longitude coordinates of the bus stop where the passenger gets on the bus, and the bus stop where the passenger gets on the bus is determined.
  • bus stop A is the bus stop where the passenger gets on the bus. If the passenger is on the bus, the location is not within the bus stop A, if the vehicle has not entered When the station stops, at this time, by GPS positioning, it will find the bus stop A, bus stop B, bus stop C, etc. adjacent to the location where the passenger got on the bus, if the bus stop A, bus stop B, bus stop C bus Site A is closest to the location where the passenger got on the bus, and it is determined that bus stop A is the bus stop where the passenger gets on the bus.
  • Step S14 storing the starting site information to a preset storage area of the identification card.
  • the bus terminal After determining the bus stop on which the passenger gets on the bus, in order to pick up the identification card when the passenger gets off the bus, the bus terminal can recognize that the same passenger is getting off the bus according to the stored initial site information, and the starting site acquired in this embodiment
  • the information is stored in a preset storage area of the identification card, and the preset storage area of the identification card records the bus stop where the passenger gets on the bus.
  • FIG. 3 is a schematic flow chart of step S20 of FIG.
  • Step S20 has the following steps:
  • Step S21 detecting in real time whether the identification card is swiped again
  • Step S22 When it is detected that the identification card is swiped again, the second location information of the current location of the identification card is obtained.
  • the bus terminal When detecting that the same identification card is swiped again, the bus terminal locates the current location of the identification card through the GPS, and obtains the second location information of the current location of the identification card, and the second location information is the identification card when the identification card is detected again.
  • the latitude and longitude coordinates corresponding to the location that is, the latitude and longitude coordinates corresponding to the location where the passenger gets off the vehicle.
  • Step S23 Query, according to the second location information, the terminal station information corresponding to the second location information in the preset bus station location information.
  • the site location information corresponding to each bus station is inquired in the preset bus station location information according to the second location information, and the preset bus site location information is overlapped or closest to the second location information. And determining the site location information that is coincident or closest to the second location information is the terminating site location information, and obtaining the terminating site information corresponding to the terminating site location information in the preset bus site information.
  • the termination site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is swiped again.
  • the above bus station information includes the above starting site information and terminating site information.
  • the bus terminal After the bus terminal determines the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle by GPS positioning, it searches for the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle in the preset bus station location information, if there is a passenger with the latitude and longitude coordinates.
  • the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at which the vehicle is getting off are determined, and the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at which the passenger gets off the vehicle are determined as the latitude and longitude coordinates of the bus stop where the passenger gets off the bus, and the bus that the passenger gets off is determined.
  • the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle are found in the preset bus station position information, Determine the location of the passenger and the vehicle
  • the closest latitude and longitude coordinates of the latitude and longitude coordinates of the latitude and longitude coordinate are the latitude and longitude coordinates of the bus stop where the passenger gets off, and determine the bus stop where the passenger gets off.
  • the bus stop D is the bus stop where the passenger gets off the bus. If the passenger gets off the bus, the location is not within the bus stop D, if the vehicle has not entered yet. When the station stops, at this time, by GPS positioning, the bus stop D, the bus stop E, the bus stop F, etc. adjacent to the location where the passenger gets off the bus will be found. If the bus stop D, the bus stop E, the bus stop F, the bus Site D is closest to the location where the passenger got off the bus, and it is determined that bus stop D is the bus stop where the passenger gets off.
  • FIG. 4 is a schematic flow chart of step S30 in FIG.
  • Step S30 has the following steps:
  • Step S31 Read the start site information stored in a preset storage area of the identification card.
  • the mobile terminal Since the mobile terminal stores the acquired initial site information in the preset storage area of the identification card when the identification card is first swiped, when the identification card is to be charged, the first reading is performed from the preset storage area of the identification card. The starting site information stored in the preset storage area is taken.
  • Step S32 Generate a deduction request according to the read start site information and the termination site information.
  • Step S33 Query, according to the deduction request, the tariff information corresponding to the termination site information in the preset tariff mapping information.
  • Step S34 Perform deduction processing on the identification card according to the tariff information.
  • the above tariff mapping information is the corresponding tariff information between two bus stations of each bus station of the bus line; for example, if a bus line includes bus station A, bus station B, bus station C, bus station D, the above tariff mapping The information includes bus stop A to bus stop B ride section, bus stop B to bus stop C ride section, bus stop C to bus stop D ride section, bus stop A to bus stop C ride section, The bus station A to the bus stop D ride section, and the bus station B to the bus stop D ride section corresponding to the tariff information, that is, the bus fare payable by the passenger.
  • FIG. 5 is a schematic flowchart of another embodiment of a method for automatically charging a bus according to the present invention.
  • the method before the step S10, the method further includes:
  • Step S40 Connect the bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server.
  • the bus terminal Before the bus terminal presets the bus station information, the bus station location information, and the tariff mapping information, the bus terminal first connects to the bus server, and downloads the bus station information, the bus station location information, and the tariff mapping information that the bus server has configured from the bus server.
  • the bus server is configured to configure bus station information, bus station location information, and tariff mapping information.
  • the bus terminal needs to load or update bus station information, bus station location information, and tariff mapping information, first configure the required bus station information through the bus server.
  • the bus station location information and the tariff mapping information the bus terminal re-bus server downloads the bus station configured bus station information, the bus station location information and the tariff mapping information, and re-presets the required bus station information, bus station location information, and Tariff mapping information.
  • the bus terminal re-bus server downloads the bus station information, the bus station location information and the tariff mapping information that have been configured by the bus server, and re-presets the required bus station information, bus station location information and tariff mapping. information.
  • the bus terminal can be downloaded online, that is, the bus terminal can be connected to the bus server, and the bus station updated bus station information and bus station can be downloaded from the bus server.
  • Location information and/or tariff mapping information when the bus terminal has preset bus station information, bus station location information, and tariff mapping information, and does not need to download and change bus station information, bus station location information, and/or tariff mapping information, the bus The terminal can work offline.
  • the embodiment further includes after step S30:
  • Step S50 Report the start site information, the termination site information, and the tariff information corresponding to the termination site information of the identification card to the bus server.
  • the start site information and the termination site information of the identification card may be obtained. And the tariff information corresponding to the start site information to the termination site information is reported to the bus server, so that the bus server can record the number of times of the card swiping of the identification card, and the bus stop of the passenger holding the identification card and the bus stop that gets off the bus And the bus fare payable by bus to facilitate the unified management of the identification card.
  • the invention also provides a bus terminal.
  • FIG. 6 is a schematic structural diagram of an embodiment of a bus terminal according to the present invention.
  • the bus terminal includes:
  • the site information obtaining module 100 is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to the preset storage of the identification card. An area; when detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card.
  • the debit processing module 200 is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the start site information and the termination site information. .
  • the station information acquisition module 100 of the bus terminal detects whether the identification card is swiped in the sensing area.
  • the station information acquisition module 100 of the bus terminal detects A card with an identification card was detected.
  • the site information acquisition module 100 of the bus terminal detects that the identification card is swiped, according to the current location of the identification card, that is, the location where the passenger picks up the identification card, the first site corresponding to the current location of the identification card is obtained.
  • Information that is, the bus stop where the passenger gets on the bus based on the location of the passenger on board.
  • the site information obtaining module 100 stores the acquired starting site information to a preset storage area of the identification card, and the preset storage area of the identification card records the bus stop where the passenger gets on the vehicle, so that when the passenger gets off and holds the identification card,
  • the bus terminal can recognize that the same passenger is getting off the vehicle based on the stored initial site information.
  • the identification card may be a bus card, a resident ID card, or a memory card stored in a mobile terminal such as a mobile phone.
  • the first site information is the name code of the bus station corresponding to the location where the identification card is located when the site information acquisition module 100 detects the first time the card is swiped.
  • the station information acquisition module 100 of the bus terminal detects that the identification card is swiped again.
  • the bus terminal detects that the same identification card is swiped again, according to the current location of the identification card, that is, the location where the passenger gets off the card when the identification card is swiped, the terminal information corresponding to the current location of the identification card is obtained, that is, according to the passenger.
  • the location of the car determines the bus stop where the passenger gets off.
  • the termination site information is a name code of the bus stop corresponding to the location where the identification card is located when the site information acquisition module 100 detects that the identification card is swiped again.
  • the site information obtaining module 100 After acquiring the termination site information corresponding to the location where the identification card is swiped again, the site information obtaining module 100 obtains the initial site information stored in the preset storage area from the preset storage area of the identification card, and determines the passenger. Bus stop of the car. The site information obtaining module 100 obtains the initial site information and the terminating site information corresponding to the location where the identification card is located, that is, after determining the bus stop and the bus stop site of the passenger getting on the bus, the deduction processing module 200 according to the preset starting site. The information corresponding to the termination information of the termination site information, that is, determining the tariff information corresponding to the passenger section of the stop site where the passenger is on the bus to the stop site, and deducting the identification card according to the tariff information. The fee is processed, and the bus fare payable by the passenger is automatically deducted from the balance on the passenger's identification card.
  • the bus terminal provided by the present invention can automatically deduct the balance from the passenger identification card according to the tariff information corresponding to the passenger section of the terminal station where the passenger is on the bus to the stop site where the passenger is getting off.
  • the bus fare payable by the passenger realizes the automatic segmentation deduction of the bus terminal, which is applicable to the bus line with the deduction of the deduction, and does not require manual ticket sales, which improves the efficiency of the bus ticket sales and reduces the labor cost.
  • FIG. 7 is a schematic structural diagram of the site information acquiring module in FIG.
  • the site information obtaining module includes:
  • the card detecting unit 110 is configured to detect whether the identification card is swiped in real time.
  • the GPS positioning unit 120 is configured to acquire first position information of a current location of the identification card when the card detecting unit 110 detects the identification card, and acquire the Identify the second location information of the current location of the card.
  • the website querying unit 130 is configured to query, according to the first location information, the initial site information corresponding to the first location information in the preset bus station location information; and preset the bus according to the second location information.
  • the site location information is queried to obtain the terminating site information corresponding to the second location information.
  • the information transmitting unit 140 is configured to store the starting site information to a preset storage area of the identification card.
  • the card detecting unit 110 detects whether the card is swiped in real time.
  • the GPS positioning unit 120 locates the current location of the card by using the GPS to obtain the first position of the current location of the card.
  • Information, the first location information is that the card detecting unit 110 of the bus terminal detects the identification card
  • the latitude and longitude coordinates corresponding to the position where the card is located when the card is swiped for the first time that is, the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle.
  • the site querying unit 130 queries the location information of the corresponding bus station in the preset bus station location information according to the acquired first location information, and the first location information exists in the preset bus site location information.
  • the location information of the site is coincident or closest, it is determined that the site location information that is coincident or closest to the first location information is the initial site location information, and the corresponding location information of the initial site is obtained in the preset bus site information. Start site information.
  • the initial site information is a name code of the bus stop corresponding to the location where the card is detected when the card detecting unit 110 detects the first time the card is swiped.
  • the location information of the above bus station is the latitude and longitude coordinates corresponding to the location of each bus station in the bus line.
  • the above bus stop information is the name code of each bus stop in the bus line.
  • the site query unit 130 searches the preset bus station location information for the latitude and longitude of the latitude and longitude coordinates corresponding to the location where the passenger gets on the vehicle.
  • Coordinates if there is a latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle, it is determined that the latitude and longitude coordinates of the latitude and longitude coordinates coincident with the position at which the passenger gets on the vehicle are the latitude and longitude coordinates of the bus stop where the passenger gets on the vehicle, Determining the bus stop where the passenger gets on the bus; if there is no latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the location where the passenger got on the bus, find the latitude and longitude coordinates corresponding to the position where the passenger got on the bus in the preset bus stop position information
  • the closest latitude and longitude coordinates determine that the latitude and longitude coordinates closest to the latitude and longitude coordinates corresponding to the position at which the passenger gets on the vehicle are the latitude and longitude coordinates of the bus stop where the passenger gets on the bus, and determine the bus stop where the passenger gets on the bus.
  • bus stop A is the bus stop where the passenger gets on the bus. If the passenger is on the bus, the location is not within the bus stop A, if the vehicle has not entered When the station stops, at this time, by GPS positioning, it will find the bus stop A, bus stop B, bus stop C, etc. adjacent to the location where the passenger got on the bus, if the bus stop A, bus stop B, bus stop C bus Site A is closest to the location where the passenger got on the bus, and it is determined that bus stop A is the bus stop where the passenger gets on the bus.
  • the bus terminal After determining the bus stop on which the passenger gets on the bus, in order to pick up the identification card when the passenger gets off the bus, the bus terminal can recognize that the same passenger is getting off the bus according to the stored initial site information, and the site query unit 130 of the embodiment will The obtained initial site information is stored in a preset storage area of the identification card, and the preset storage area of the identification card records the bus stop where the passenger gets on the bus.
  • the GPS positioning unit 120 locates the current location of the identification card by using the GPS to obtain the second location information of the current location of the identification card, and the second location information is detected.
  • the latitude and longitude coordinates corresponding to the position where the card is located that is, the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle.
  • the site querying unit 130 queries the location information of the corresponding bus station in the preset bus station location information according to the second location information, and the preset location information of the bus station overlaps with the second location information. Or the nearest site location information, determining that the site location information that is coincident or closest to the second location information is the terminating site location information, and obtaining the terminating site corresponding to the terminating site location information in the preset bus station information information.
  • the termination site information is a name code of the bus stop corresponding to the location where the identification card is located when the card detection unit 110 detects that the identification card is swiped again.
  • the above bus station information includes the above starting site information and terminating site information.
  • the station query unit 130 searches the preset bus station location information for the latitude and longitude of the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle.
  • Coordinates if there is a latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle, it is determined that the latitude and longitude coordinates of the latitude and longitude coordinates coincident with the position at which the passenger gets off the vehicle are the latitude and longitude coordinates of the bus stop where the passenger gets off, Determining the bus stop where the passenger gets off; if there is no latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the location where the passenger got off the bus, find the latitude and longitude coordinates corresponding to the position where the passenger got off the bus in the preset bus stop position information.
  • the closest latitude and longitude coordinate determines that the latitude and longitude coordinates closest to the latitude and longitude coordinates corresponding to the position at which the passenger gets off the bus are the latitude and longitude coordinates of the bus stop where the passenger gets off, and determines the bus stop where the passenger gets off.
  • the bus stop D is the bus stop where the passenger gets off the bus. If the passenger gets off the bus, the location is not within the bus stop D, if the vehicle has not entered yet. When the station stops, at this time, by GPS positioning, the bus stop D, the bus stop E, the bus stop F, etc. adjacent to the location where the passenger gets off the bus will be found. If the bus stop D, the bus stop E, the bus stop F, the bus Site D is closest to the location where the passenger got off the bus, and it is determined that bus stop D is the bus stop where the passenger gets off.
  • FIG. 8 is a schematic structural diagram of the deduction processing module of FIG.
  • the deduction processing module includes:
  • the information reading unit 210 is configured to read the start site information stored in a preset storage area of the identification card. Since the information sending unit 140 of the mobile terminal stores the acquired starting site information in the preset storage area of the identification card when the identification card is first swiped, the information reading unit is first used when the identification card is to be charged. 210 reads the start site information stored in the preset storage area from the preset storage area of the identification card.
  • the charge request unit 220 is configured to generate a charge request according to the read start site information and the terminated site information. After obtaining the initial site information and the termination site information corresponding to the location where the identification card is located, that is, after determining the bus stop on the passenger and the bus stop on the bus, the charge request unit 220 generates a charge request, requesting the passenger to get off the bus. The identification card is charged for deduction.
  • the tariff inquiry unit 230 is configured to query, in the preset tariff mapping information, the obtained tariff information corresponding to the termination site information according to the deduction request.
  • the debit processing unit 240 performs deduction processing on the identification card according to the tariff information.
  • the above tariff mapping information is the corresponding tariff information between two bus stations of each bus station of the bus line; for example, if a bus line includes bus station A, bus station B, bus station C, bus station D, the above tariff mapping The information includes bus stop A to bus stop B ride section, bus stop B to bus stop C ride section, bus stop C to bus stop D ride section, bus stop A to bus stop C ride section, The bus station A to the bus stop D ride section, and the bus station B to the bus stop D ride section corresponding to the tariff information, that is, the bus fare payable by the passenger.
  • the tariff inquiry unit 230 queries the preset tariff information in the preset tariff mapping information to the tariff information corresponding to the termination site information, that is, determines the bus stop where the passenger is boarding the vehicle, and the termination site where the vehicle is located at the time of getting off the vehicle.
  • the charge fee processing unit 240 performs a chargeback process on the identification card according to the tariff information, thereby automatically deducting the bus fare payable by the passenger from the balance on the passenger's identification card.
  • FIG. 9 is a schematic structural view of another embodiment of a bus terminal according to the present invention.
  • the mobile terminal according to the public automatic deduction method shown in FIG. 6 , in another embodiment of the present invention, the mobile terminal further includes:
  • the information storage module 300 is configured to connect to the bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server.
  • the information reporting module 400 is configured to report the start site information, the termination site information, and the tariff information corresponding to the termination site information to the bus server.
  • the bus terminal Before the bus terminal presets the bus station information, the bus station location information, and the tariff mapping information, the bus terminal first connects to the bus server through the information storage module 300, and downloads the bus station information, bus station location information, and tariffs that have been configured by the bus server from the bus server. Map information.
  • the bus server is configured to configure bus station information, bus station location information, and tariff mapping information.
  • When the bus terminal needs to load or update bus station information, bus station location information, and tariff mapping information first configure the required bus station information through the bus server.
  • the bus station location information and the tariff mapping information, the bus terminal information storage module 300 and the bus server download the bus station configured bus station information, the bus station location information and the tariff mapping information, and re-preset the required bus station information, Bus site location information and tariff mapping information.
  • the bus terminal re-bus server downloads the bus station information, the bus station location information and the tariff mapping information that have been configured by the bus server, and re-presets the required bus station information, bus station location information and tariff mapping. information.
  • the bus terminal can be downloaded online, that is, the bus terminal can be connected to the bus server, and the bus station updated bus station information and bus station can be downloaded from the bus server.
  • Location information and/or tariff mapping information when the bus terminal has preset bus station information, bus station location information, and tariff mapping information, and does not need to download and change bus station information, bus station location information, and/or tariff mapping information, the bus The terminal can work offline.
  • the website information obtaining module 100 obtains the initial site information of the identification card, the termination site information, and the charge processing module 200 obtains the tariff information corresponding to the termination site information, and the information reporting module 400
  • the start site information of the identification card, the termination site information, and the tariff information corresponding to the termination site information to the bus server may be reported to the bus server, so that the bus server can record the number of times of card punching of an identification card.
  • the invention further provides a public transportation system.
  • FIG. 10 is a schematic structural view of an embodiment of a bus system according to the present invention.
  • the public transportation system provided by the present invention includes an identification card 101, a bus terminal 102, and a bus server 103.
  • the identification card 101 is arranged to swipe the card in the sensing area of the bus terminal.
  • the bus server 102 is configured to connect to the bus terminal and perform information interaction with the bus terminal.
  • bus terminal 102 The structure of the bus terminal 102 and the beneficial effects achieved are all referred to the above embodiments, and are not described herein again.
  • the bus automatic deduction method, the bus terminal, and the bus system provided by the embodiments of the present invention have the following beneficial effects: according to the bus stop where the passenger gets on the bus to the stop site where the vehicle is located when the vehicle is off.
  • the tariff information corresponding to the section automatically deducts the bus fare paid by the passenger from the balance on the passenger identification card, and achieves the automatic segmentation deduction of the bus terminal, which is applicable to the bus line of the deduction of the deduction, and does not require manual ticket sales.
  • the efficiency of bus ticket sales has reduced the effect of labor costs.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

An automatic charging method for public transport includes: when detecting that an identification card is swept, acquiring starting station information corresponding to the current position of the identification card and storing the starting station information to a preset storage area of the identification card (S10); when detecting that the identification card is swept again, acquiring end station information corresponding to the current position of the identification card (S20); reading the starting station information stored in the preset storage area of the identification card and charging the identification card according to the starting station information and the end station information (S30). The method can realize automatic segmented charging of the public transport terminal, is applied to the segmented charging bus line, improves the efficiency of bus ticketing, and reduces the cost of labor with no need of manual ticketing.

Description

公交自动扣费方法、公交终端及公交系统Bus automatic deduction method, bus terminal and bus system 技术领域Technical field
本发明涉及公交应用技术领域,尤其涉及一种公交自动扣费方法、公交终端及公交系统。The invention relates to the field of bus application technology, in particular to a bus automatic deduction method, a bus terminal and a bus system.
背景技术Background technique
目前国内公交扣费方式主要有两种,一是非固定票价的人工售票,这种方式需要有专门的售票员或者司机来给乘客购票找零,费时费力且售票效率低;二是固定票价自动刷卡或者投币,这种方式的最大优势是一票制,流程简单稳定,异常情况少,但并不适用于路程长、需要分段计费的公交线路。At present, there are two main types of domestic bus deductions. One is the manual ticket sales for non-fixed fares. This method requires a special ticket seller or driver to purchase tickets for passengers. It takes time and effort and the ticket sales efficiency is low. Second, the fixed fare. Automatic card swiping or coin-operated. The biggest advantage of this method is the one-vote system. The process is simple and stable, and the abnormal situation is few, but it is not suitable for bus lines with long distance and need to be segmented and billed.
发明内容Summary of the invention
本发明实施例的主要目的是在于实现公交终端自动分段扣费,提高公交售票效率,降低人力成本。The main purpose of the embodiment of the present invention is to realize automatic segmentation deduction of the bus terminal, improve the efficiency of the bus ticket sales, and reduce the labor cost.
为了达到上述目的,本发明实施例提供一种公交自动扣费方法,该公交自动扣费方法包括In order to achieve the above object, an embodiment of the present invention provides a method for automatically charging a bus, and the method for automatically charging a bus includes
当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域;When detecting the identification card swipe, acquiring the starting site information corresponding to the current location of the identification card, and storing the starting site information to a preset storage area of the identification card;
当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息;When it is detected that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。Reading the start site information stored in the preset storage area of the identification card, and performing deduction processing on the identification card according to the start site information and the termination site information.
所述当侦测到识别卡首次刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域的步骤具体包括:When the first card is detected, the step of acquiring the initial site information corresponding to the current location of the identification card, and storing the initial site information to the preset storage area of the identification card includes: :
实时侦测识别卡是否刷卡;Real-time detection of whether the identification card is swiped;
当侦测到所述识别卡刷卡时,获取所述识别卡当前所在位置的第一位置信息; Obtaining first location information of a location where the identification card is currently located when the identification card is swiped;
根据所述第一位置信息在预置的公交站点位置信息中查询获得所述第一位置信息对应的起始站点信息;Obtaining, in the preset bus station location information, the obtained start site information corresponding to the first location information according to the first location information;
将所述起始站点信息存储至所述识别卡的预置存储区域。The starting site information is stored to a preset storage area of the identification card.
所述当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息的步骤具体包括:The step of acquiring the termination site information corresponding to the current location of the identification card when the identification card is swiped again includes:
实时侦测所述识别卡是否再次刷卡;Real-time detecting whether the identification card is swiped again;
当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置的第二位置信息;Obtaining second location information of a location where the identification card is currently located when detecting that the identification card is swiped again;
根据所述第二位置信息在预置的公交站点位置信息中查询获得所述第二位置信息对应的终止站点信息。And obtaining, according to the second location information, the terminal station information corresponding to the second location information in the preset bus station location information.
所述读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理的步骤具体包括:The step of reading the initial site information stored in the preset storage area of the identification card, and performing the charge processing on the identification card according to the start site information and the termination site information specifically includes:
读取所述识别卡的预置存储区域中存储的所述起始站点信息,Reading the start site information stored in a preset storage area of the identification card,
根据读取到的所述起始站点信息和终止站点信息生成扣费请求;Generating a deduction request according to the read start site information and the termination site information;
根据所述扣费请求在预置的资费映射信息中查询获得所述起始站点信息至终止站点信息对应的资费信息;And querying, in the preset tariff mapping information, the obtained tariff information corresponding to the termination site information according to the deduction request;
根据所述资费信息对所述识别卡进行扣费处理。Deducting the identification card according to the tariff information.
在所述当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域的步骤之前还包括:When the identification card is detected, acquiring the starting site information corresponding to the current location of the identification card, and storing the initial site information to the preset storage area of the identification card include:
连接公交服务器,从所述公交服务器上下载所述公交服务器配置的公交站点信息、公交站点位置信息和资费映射信息;Connecting a bus server, and downloading bus station information, bus station location information, and tariff mapping information configured by the bus server from the bus server;
在所述读取所述识别卡预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费步骤之后还包括:After the step of reading the initial site information stored in the identification card preset storage area and performing the deduction step on the identification card according to the start site information and the termination site information, the method further includes:
将所述识别卡的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至公交服务器。 The start site information, the termination site information, and the tariff information corresponding to the termination site information of the identification card are reported to the bus server.
为了达到上述目的,本发明实施例还提供一种公交终端,该公交终端包括:In order to achieve the above objective, an embodiment of the present invention further provides a public transportation terminal, where the public transportation terminal includes:
站点信息获取模块,设置为当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域;当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息;The site information obtaining module is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to a preset storage area of the identification card When detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
扣费处理模块,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。The deduction processing module is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the initial site information and the termination site information.
所述站点信息获取模块包括:The site information obtaining module includes:
刷卡侦测单元,设置为实时侦测识别卡是否刷卡;The card detecting unit is configured to detect whether the identification card is swiped in real time;
GPS定位单元,设置为在刷卡侦测单元侦测到识别卡刷卡时,获取所述识别卡当前所在位置的第一位置信息;在侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置的第二位置信息;The GPS positioning unit is configured to acquire first position information of a current location of the identification card when the card detecting unit detects the identification card, and acquire the identification card when detecting that the identification card is swiped again Second location information of the current location;
站点查询单元,设置为根据所述第一位置信息在预置的公交站点位置信息中查询获得所述第一位置信息对应的起始站点信息;根据所述第二位置信息在预置的公交站点位置信息中查询获得所述第二位置信息对应的终止站点信息;a site querying unit, configured to query, in the preset bus station location information, the start site information corresponding to the first location information according to the first location information; and according to the second location information, in a preset bus stop site Querying the location information to obtain the termination site information corresponding to the second location information;
信息发送单元,设置为将所述起始站点信息存储至所述识别卡的预置存储区域。An information transmitting unit is configured to store the starting site information to a preset storage area of the identification card.
所述扣费处理模块包括:The deduction processing module includes:
信息读取单元,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息;An information reading unit configured to read the starting site information stored in a preset storage area of the identification card;
扣费请求单元,设置为根据读取到的所述起始站点信息和终止站点信息生成扣费请求;The deduction request unit is configured to generate a deduction request according to the read start site information and the termination site information;
资费查询单元,设置为根据所述扣费请求在预置的资费映射信息中查询获得所述起始站点信息至终止站点信息对应的资费信息;The tariff inquiry unit is configured to query, according to the deduction request, the tariff information corresponding to the termination site information in the preset tariff mapping information;
扣费处理单元,并根据所述资费信息对所述识别卡进行扣费处理。Deducting the processing unit, and performing deduction processing on the identification card according to the tariff information.
所述移动终端还包括:The mobile terminal further includes:
信息存储模块,设置为连接公交服务器,从所述公交服务器上下载所述公交服务器配置的公交站点信息、公交站点位置信息和资费映射信息; An information storage module, configured to connect to a bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server;
信息上报模块,设置为将所述识别的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至所述公交服务器。The information reporting module is configured to report the identified starting site information, the terminating site information, and the tariff information corresponding to the terminating site information to the terminating site information to the bus server.
为了达到上述目的,本发明实施例进一步提供一种公交系统,该公交系统包括识别卡、公交服务器和公交终端;In order to achieve the above object, an embodiment of the present invention further provides a public transportation system, which includes an identification card, a bus server, and a bus terminal;
该公交终端包括:The bus terminal includes:
站点信息获取模块,设置为当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域;当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息;The site information obtaining module is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to a preset storage area of the identification card When detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
扣费处理模块,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理;The debit processing module is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the start site information and the termination site information;
所述识别卡设置为在公交终端的感应区域刷卡;The identification card is set to swipe in a sensing area of the bus terminal;
所述公交服务器设置为连接所述公交终端,与所述公交终端进行信息交互。The bus server is configured to connect to the bus terminal and perform information interaction with the bus terminal.
本发明实施例提供的公交自动扣费方法、公交终端及公交系统,公交终端在侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将该起始站点信息存储至所述识别卡的预置存储区域,得到在乘客上车时所在的公交站点;当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息;然后读取识别卡的预置存储区域中存储的所述起始站点信息,得到在乘客下车时所在的终止站点,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。从而能够根据乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,自动从该乘客识别卡上的余额扣除该乘客应付的公交费,实现了公交终端自动分段扣费,适用于分段扣费的公交线路,而且无需人工售票,提高了公交售票效率,降低了人力成本。The public bus automatic deduction method, the bus terminal and the public transportation system provided by the embodiment of the present invention, when the bus terminal detects the identification card swiping, obtains the starting site information corresponding to the current location of the identification card, and the starting site is The information is stored in the preset storage area of the identification card, and the bus station where the passenger gets on the vehicle is obtained; when the identification card is detected to be swiped again, the terminal information corresponding to the current location of the identification card is obtained; And then reading the initial site information stored in the preset storage area of the identification card, obtaining a termination site where the passenger gets off the vehicle, and deducting the identification card according to the initial site information and the termination site information. Fee processing. Therefore, the bus fee corresponding to the passenger's identification card can be automatically deducted from the balance on the passenger identification card according to the tariff information corresponding to the passenger's station at the bus stop where the passenger is getting on the bus, and the bus terminal is realized. The automatic segmentation deduction is applicable to the bus routes with segmented deductions, and there is no need for manual ticket sales, which improves the efficiency of bus ticket sales and reduces labor costs.
附图说明DRAWINGS
图1为本发明公交自动扣费方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of an automatic bus deduction method according to the present invention;
图2为图1中步骤S10的流程示意图;2 is a schematic flow chart of step S10 in FIG. 1;
图3为图1中步骤S20的流程示意图;3 is a schematic flow chart of step S20 in FIG. 1;
图4为图1中步骤S30的流程示意图; 4 is a schematic flow chart of step S30 in FIG. 1;
图5为本发明公交自动扣费方法另一实施例的流程示意图;5 is a schematic flow chart of another embodiment of a method for automatically charging a bus according to the present invention;
图6为本发明公交终端一实施例的结构示意图;6 is a schematic structural view of an embodiment of a bus terminal according to the present invention;
图7为图6中站点获取模块的结构示意图;7 is a schematic structural diagram of a site acquisition module in FIG. 6;
图8为图6中扣费处理模块的结构示意图;Figure 8 is a schematic structural view of the deduction processing module of Figure 6;
图9为本发明公交终端另一实施例的结构示意图;9 is a schematic structural view of another embodiment of a bus terminal according to the present invention;
图10为本发明公交系统一实施例的结构示意图。FIG. 10 is a schematic structural view of an embodiment of a public transportation system according to the present invention.
本发明的目的、功能特点及优点的实现,将结合实施例,并参照附图作进一步说明。The objectives, functional features, and advantages of the present invention will be described in conjunction with the embodiments of the invention.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种公交自动扣费方法。The invention provides a method for automatically charging a bus.
参照图1,图1为本发明公交自动扣费方法一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flow chart of an embodiment of an automatic bus deduction method according to the present invention.
在本发明的一实施例中,公交自动扣费方法包括以下步骤:In an embodiment of the invention, the method for automatically charging a bus includes the following steps:
步骤S10:当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域。In step S10, when the identification card is detected, the initial site information corresponding to the current location of the identification card is obtained, and the initial site information is stored in the preset storage area of the identification card.
本实施例的公交自动扣费方法应用于公交终端,初始状态下,公交终端侦测感应区域是否有识别卡刷卡,当有乘客上车时持识别卡贴近或触及公交终端的感应区域时,公交终端侦测到有识别卡刷卡。公交终端侦测到有识别卡刷卡时,根据识别卡当前所在位置,即乘客上车时持识别卡刷卡时所在的位置,获取所述识别卡当前所在位置对应的起始站点信息,即根据乘客上车的位置,确定乘客上车的公交站点。同时,将所获取的起始站点信息存储至识别卡的预置存储区域,识别卡的预置存储区域记录乘客上车的公交站点,以便乘客下车持识别卡刷卡时,公交终端能够根据所存储的起始站点信息识别出是同一乘客在下车。The automatic bus deduction method of the present embodiment is applied to a bus terminal. In the initial state, the bus terminal detects whether the sensing area has an identification card, and when a passenger gets on the vehicle, the identification card is close to or touches the sensing area of the bus terminal. The terminal detects that there is an identification card swipe. When the bus terminal detects that the identification card is swiped, according to the current location of the identification card, that is, the location where the passenger holds the identification card when the passenger gets on the vehicle, the initial site information corresponding to the current location of the identification card is obtained, that is, according to the passenger. Get on the bus and determine the bus stop where passengers board the bus. At the same time, the obtained initial site information is stored in the preset storage area of the identification card, and the preset storage area of the identification card records the bus stop of the passenger on board, so that the passenger can get off the vehicle and hold the identification card, the bus terminal can The stored starting site information identifies that the same passenger is getting off.
上述识别卡可以是公交终端能够识别的公交卡、居民身份证,或者是存储在手机等移动终端中的存储卡。 The identification card may be a bus card, a resident ID card, or a memory card stored in a mobile terminal such as a mobile phone.
上述起始站点信息为侦测到识别卡首次刷卡时识别卡所在位置对应的公交站点的名称代码。The above starting site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is first swiped.
步骤S20:当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息。Step S20: When it is detected that the identification card is swiped again, the termination site information corresponding to the current location of the identification card is obtained.
当同一乘客下车时持识别卡贴近或触及公交终端的感应区域时,公交终端侦测到上述识别卡再次刷卡。公交终端侦测到同一识别卡再次刷卡时,根据识别卡当前所在位置,即乘客下车持识别卡刷卡时所在的位置,获取所述识别卡当前所在位置对应的终止站点信息,即根据乘客下车的位置,确定乘客下车的公交站点。When the same passenger gets off the vehicle and holds the identification card close to or touches the sensing area of the bus terminal, the bus terminal detects that the identification card is swiped again. When the bus terminal detects that the same identification card is swiped again, according to the current location of the identification card, that is, the location where the passenger gets off the card when the identification card is swiped, the terminal information corresponding to the current location of the identification card is obtained, that is, according to the passenger. The location of the car determines the bus stop where the passenger gets off.
上述终止站点信息为侦测到识别卡再次刷卡时识别卡所在位置对应的公交站点的名称代码。The termination site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is swiped again.
步骤S30:读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。Step S30: Read the start site information stored in the preset storage area of the identification card, and perform deduction processing on the identification card according to the start site information and the termination site information.
在获取所述识别卡再次刷卡所在位置对应的终止站点信息后,从该识别卡的预置存储区域中获取该预置存储区域存储的所述起始站点信息,确定乘客上车的公交站点。在获取识别卡所在位置对应的起始站点信息和终止站点信息,即确定乘客上车的公交站点和下车的公交站点后,根据预置的起始站点信息至终止站点信息对应的资费信息,即确定乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,并根据该资费信息对所述识别卡进行扣费处理,自动从该乘客的识别卡上的余额扣除该乘客应付的公交费。After obtaining the termination site information corresponding to the location where the identification card is swiped again, the initial site information stored in the preset storage area is obtained from the preset storage area of the identification card, and the bus stop where the passenger gets on the bus is determined. After obtaining the initial site information and the terminating site information corresponding to the location where the identification card is located, that is, after determining the bus stop on which the passenger gets on the bus and the bus stop that gets off the bus, according to the preset start site information to the tariff information corresponding to the terminating site information, That is, determining the tariff information corresponding to the passenger section of the stop site where the passenger gets on the bus to the stop site where the passenger is getting off, and deducting the charge card according to the tariff information, automatically extracting the identification card from the passenger. The balance on the deduction is deducted from the bus fare payable by the passenger.
相对于现有技术,本发明提供的公交自动扣费方法能够根据乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,自动从该乘客识别卡上的余额扣除该乘客应付的公交费,实现了公交终端自动分段扣费,适用于分段扣费的公交线路,而且无需人工售票,提高了公交售票效率,降低了人力成本。Compared with the prior art, the automatic bus deduction method provided by the present invention can automatically extract from the passenger identification card according to the tariff information corresponding to the passenger section of the stop site where the passenger is on the bus to the stop site where the passenger is getting on the bus. The balance deducts the bus fare payable by the passenger, realizes the automatic segmentation deduction of the bus terminal, applies to the bus line with the deduction of the deduction, and does not require manual ticket sales, which improves the efficiency of bus ticket sales and reduces the labor cost.
再参照图2,图2为图1中步骤S10的流程示意图。Referring again to FIG. 2, FIG. 2 is a schematic flow chart of step S10 of FIG.
步骤S10具有包括以下步骤:Step S10 has the following steps:
步骤S11:实时侦测识别卡是否刷卡;Step S11: detecting whether the identification card is swiped in real time;
步骤S12:当侦测到所述识别卡刷卡时,获取所述识别卡当前所在位置的第一位置信息。 Step S12: When the identification card is swiped, the first location information of the current location of the identification card is obtained.
公交终端在侦测到识别卡刷卡时,通过GPS定位识别卡当前所在位置,获取识别卡当前所在位置的第一位置信息,该第一位置信息为公交终端侦测到识别卡首次刷卡时识别卡所在位置对应的经纬度坐标,即乘客上车时所在位置对应的经纬度坐标。When detecting the identification card, the bus terminal locates the current location of the identification card through the GPS, and obtains the first location information of the current location of the identification card. The first location information is the identification card when the bus terminal detects the identification card for the first time. The latitude and longitude coordinates corresponding to the location, that is, the latitude and longitude coordinates corresponding to the location where the passenger gets on the bus.
步骤S13:根据所述第一位置信息在预置的公交站点位置信息中查询获得所述第一位置信息对应的起始站点信息。Step S13: Query, according to the first location information, the start site information corresponding to the first location information in the preset bus station location information.
具体地,公交终端根据所获取的第一位置信息,在预置的公交站点位置信息中查询各公交站点对应的站点位置信息,当预置的公交站点位置信息中存在与第一位置信息重合或最邻近的站点位置信息时,确定该与第一位置信息重合或最接近的站点位置信息为起始站点位置信息,并在预置的公交站点信息中获取上述起始站点位置信息对应的起始站点信息。Specifically, the bus terminal queries the location information of the corresponding bus station in the preset bus station location information according to the acquired first location information, and the preset location information of the bus station overlaps with the first location information or When the location information of the nearest station is determined, the location information of the site that is coincident with or closest to the first location information is determined as the location information of the initial site, and the corresponding location of the location information of the initial site is obtained in the preset bus site information. Site Information.
上述起始站点信息为侦测到识别卡首次刷卡时识别卡所在位置对应的公交站点的名称代码。The above starting site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is first swiped.
上述公交站点位置信息为公交线路中各公交站点所在位置对应的经纬度坐标。The location information of the above bus station is the latitude and longitude coordinates corresponding to the location of each bus station in the bus line.
上述公交站点信息为公交线路中各公交站点的名称代码。The above bus stop information is the name code of each bus stop in the bus line.
公交终端通过GPS定位确定乘客上车时所在位置对应的经纬度坐标后,在预置的公交站点位置信息中查找是否存在与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标,若存在与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标,则确定该与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标为乘客上车的公交站点所在的经纬度坐标,确定乘客上车的公交站点;若不存在与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标,则在预置的公交站点位置信息中找出与乘客上车时所在位置对应的经纬度坐标最接近的经纬度坐标,确定该与乘客上车时所在位置对应的经纬度坐标最接近的经纬度坐标为乘客上车的公交站点所在的经纬度坐标,确定乘客上车的公交站点。After the bus terminal determines the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle through the GPS positioning, it searches for the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle in the preset bus station location information, if there is a passenger with the latitude and longitude coordinates. The latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at the time of boarding are determined, and the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at which the passenger gets on the vehicle are determined as the latitude and longitude coordinates of the bus stop where the passenger gets on the bus, and the bus on which the passenger gets on the bus is determined. a station; if there is no latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the location where the passenger gets on the vehicle, the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle are found in the preset bus station location information, The latitude and longitude coordinates closest to the latitude and longitude coordinates corresponding to the position at which the passenger gets on the vehicle are determined as the latitude and longitude coordinates of the bus stop where the passenger gets on the bus, and the bus stop where the passenger gets on the bus is determined.
例如,若乘客上车时所在位置刚好在公交站点A范围内,则确定公交站点A为乘客上车的公交站点,若乘客上车时所在位置不是在公交站点A范围内,如车辆还没有进站时就停靠,此时通过GPS定位,将找到与乘客上车时所在位置相邻的公交站点A、公交站点B、公交站点C等,若公交站点A、公交站点B、公交站点C中公交站点A距离乘客上车时所在位置最近,则确定公交站点A为乘客上车的公交站点。For example, if the passenger is on the bus just in the range of bus stop A, it is determined that bus stop A is the bus stop where the passenger gets on the bus. If the passenger is on the bus, the location is not within the bus stop A, if the vehicle has not entered When the station stops, at this time, by GPS positioning, it will find the bus stop A, bus stop B, bus stop C, etc. adjacent to the location where the passenger got on the bus, if the bus stop A, bus stop B, bus stop C bus Site A is closest to the location where the passenger got on the bus, and it is determined that bus stop A is the bus stop where the passenger gets on the bus.
步骤S14:将所述起始站点信息存储至所述识别卡的预置存储区域。 Step S14: storing the starting site information to a preset storage area of the identification card.
在确定乘客上车的公交站点后,为了在乘客下车持识别卡刷卡时,公交终端能够根据所存储的起始站点信息识别出是同一乘客在下车,本实施例将所获取的起始站点信息存储至识别卡的预置存储区域,识别卡的预置存储区域记录乘客上车的公交站点。After determining the bus stop on which the passenger gets on the bus, in order to pick up the identification card when the passenger gets off the bus, the bus terminal can recognize that the same passenger is getting off the bus according to the stored initial site information, and the starting site acquired in this embodiment The information is stored in a preset storage area of the identification card, and the preset storage area of the identification card records the bus stop where the passenger gets on the bus.
再参照图3,图3为图1中步骤S20的流程示意图。Referring again to FIG. 3, FIG. 3 is a schematic flow chart of step S20 of FIG.
步骤S20具有包括以下步骤:Step S20 has the following steps:
步骤S21:实时侦测所述识别卡是否再次刷卡;Step S21: detecting in real time whether the identification card is swiped again;
步骤S22:当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置的第二位置信息。Step S22: When it is detected that the identification card is swiped again, the second location information of the current location of the identification card is obtained.
公交终端在侦测到同一识别卡再次刷卡时,通过GPS定位识别卡当前所在位置,获取识别卡当前所在位置的第二位置信息,该第二位置信息为侦测到识别卡再次刷卡时识别卡所在位置对应的经纬度坐标,即乘客下车时所在位置对应的经纬度坐标。When detecting that the same identification card is swiped again, the bus terminal locates the current location of the identification card through the GPS, and obtains the second location information of the current location of the identification card, and the second location information is the identification card when the identification card is detected again. The latitude and longitude coordinates corresponding to the location, that is, the latitude and longitude coordinates corresponding to the location where the passenger gets off the vehicle.
步骤S23:根据所述第二位置信息在预置的公交站点位置信息中查询获得所述第二位置信息对应的终止站点信息。Step S23: Query, according to the second location information, the terminal station information corresponding to the second location information in the preset bus station location information.
具体地,根据所述第二位置信息,在预置的公交站点位置信息中查询各公交站点对应的站点位置信息,当预置的公交站点位置信息中存在与第二位置信息重合或最邻近的站点位置信息时,确定该与第二位置信息重合或最接近的站点位置信息为终止站点位置信息,并在预置的公交站点信息中获取所述终止站点位置信息对应的终止站点信息。Specifically, the site location information corresponding to each bus station is inquired in the preset bus station location information according to the second location information, and the preset bus site location information is overlapped or closest to the second location information. And determining the site location information that is coincident or closest to the second location information is the terminating site location information, and obtaining the terminating site information corresponding to the terminating site location information in the preset bus site information.
上述终止站点信息为侦测到识别卡再次刷卡时识别卡所在位置对应的公交站点的名称代码。The termination site information is a name code of a bus stop corresponding to the location where the identification card is located when the identification card is swiped again.
上述公交站点信息上述起始站点信息和终止站点信息。The above bus station information includes the above starting site information and terminating site information.
公交终端通过GPS定位确定乘客下车时所在位置对应的经纬度坐标后,在预置的公交站点位置信息中查找是否存在与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标,若存在与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标,则确定该与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标为乘客下车的公交站点所在的经纬度坐标,确定乘客下车的公交站点;若不存在与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标,则在预置的公交站点位置信息中找出与乘客下车时所在位置对应的经纬度坐标最接近的经纬度坐标,确定该与乘客下车时所在位置对 应的经纬度坐标最接近的经纬度坐标为乘客下车的公交站点所在的经纬度坐标,确定乘客下车的公交站点。After the bus terminal determines the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle by GPS positioning, it searches for the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle in the preset bus station location information, if there is a passenger with the latitude and longitude coordinates. The latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at which the vehicle is getting off are determined, and the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position at which the passenger gets off the vehicle are determined as the latitude and longitude coordinates of the bus stop where the passenger gets off the bus, and the bus that the passenger gets off is determined. a station; if there is no latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle, the latitude and longitude coordinates of the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle are found in the preset bus station position information, Determine the location of the passenger and the vehicle The closest latitude and longitude coordinates of the latitude and longitude coordinates of the latitude and longitude coordinate are the latitude and longitude coordinates of the bus stop where the passenger gets off, and determine the bus stop where the passenger gets off.
例如,若乘客下车时所在位置刚好在公交站点D范围内,则确定公交站点D为乘客下车的公交站点,若乘客下车时所在位置不是在公交站点D范围内,如车辆还没有进站时就停靠,此时通过GPS定位,将找到与乘客下车时所在位置相邻的公交站点D、公交站点E、公交站点F等,若公交站点D、公交站点E、公交站点F中公交站点D距离乘客下车时所在位置最近,则确定公交站点D为乘客下车的公交站点。For example, if the passenger gets off the vehicle and the location is just within the bus station D, it is determined that the bus stop D is the bus stop where the passenger gets off the bus. If the passenger gets off the bus, the location is not within the bus stop D, if the vehicle has not entered yet. When the station stops, at this time, by GPS positioning, the bus stop D, the bus stop E, the bus stop F, etc. adjacent to the location where the passenger gets off the bus will be found. If the bus stop D, the bus stop E, the bus stop F, the bus Site D is closest to the location where the passenger got off the bus, and it is determined that bus stop D is the bus stop where the passenger gets off.
再参照图4,图4为图1中步骤S30的流程示意图。Referring again to FIG. 4, FIG. 4 is a schematic flow chart of step S30 in FIG.
步骤S30具有包括以下步骤:Step S30 has the following steps:
步骤S31:读取所述识别卡的预置存储区域中存储的所述起始站点信息。Step S31: Read the start site information stored in a preset storage area of the identification card.
由于在识别卡首次刷卡时,移动终端将获取的起始站点信息存储在识别卡的预置存储区域,因此在要对识别卡进行扣费处理时,先从识别卡的预置存储区域中读取该预置存储区域所存储的起始站点信息。Since the mobile terminal stores the acquired initial site information in the preset storage area of the identification card when the identification card is first swiped, when the identification card is to be charged, the first reading is performed from the preset storage area of the identification card. The starting site information stored in the preset storage area is taken.
步骤S32:根据读取到的所述起始站点信息和终止站点信息生成扣费请求。Step S32: Generate a deduction request according to the read start site information and the termination site information.
在获取识别卡所在位置对应的起始站点信息和终止站点信息,即确定乘客上车的公交站点和下车的公交站点后生成扣费请求,请求需要对下车乘客的识别卡进行扣费处理。After obtaining the initial site information and the termination site information corresponding to the location where the identification card is located, that is, determining the bus stop of the passenger getting on the bus and the bus stop of the bus, a request for deduction is generated, and the request for the identification card of the passenger getting off is required to be charged. .
步骤S33:根据所述扣费请求在预置的资费映射信息中查询获得所述起始站点信息至终止站点信息对应的资费信息。Step S33: Query, according to the deduction request, the tariff information corresponding to the termination site information in the preset tariff mapping information.
步骤S34:根据所述资费信息对所述识别卡进行扣费处理。Step S34: Perform deduction processing on the identification card according to the tariff information.
上述资费映射信息为公交线路的各中公交站点两个公交站点之间对应的资费信息;例如,若一公交线路包括公交站点A、公交站点B、公交站点C、公交站点D,则上述资费映射信息包括公交站点A至公交站点B乘车区段、公交站点B至公交站点C乘车区段、公交站点C至公交站点D乘车区段、公交站点A至公交站点C乘车区段、公交站点A至公交站点D乘车区段,以及公交站点B至公交站点D乘车区段对应的资费信息,即乘客应付的公交费。The above tariff mapping information is the corresponding tariff information between two bus stations of each bus station of the bus line; for example, if a bus line includes bus station A, bus station B, bus station C, bus station D, the above tariff mapping The information includes bus stop A to bus stop B ride section, bus stop B to bus stop C ride section, bus stop C to bus stop D ride section, bus stop A to bus stop C ride section, The bus station A to the bus stop D ride section, and the bus station B to the bus stop D ride section corresponding to the tariff information, that is, the bus fare payable by the passenger.
根据该扣费请求在预置的资费映射信息中查询起始站点信息至终止站点信息对应的资费信息,即确定乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段 对应的资费信息,并根据该资费信息对所述识别卡进行扣费处理,从而自动从该乘客的识别卡上的余额扣除该乘客应付的公交费。Determining, according to the deduction request, the initial site information to the terminating site information corresponding to the tariff information in the preset tariff mapping information, that is, determining the bus stop where the passenger is on the bus and the terminating site of the terminating site where the vehicle is off. Corresponding tariff information, and deducting the identification card according to the tariff information, thereby automatically deducting the bus fare payable by the passenger from the balance on the passenger's identification card.
再参照图5,图5为本发明公交自动扣费方法另一实施例的流程示意图。Referring to FIG. 5 again, FIG. 5 is a schematic flowchart of another embodiment of a method for automatically charging a bus according to the present invention.
基于图1所示的公交自动扣费方法,本发明的另一实施例中,在步骤S10之前还包括:In another embodiment of the present invention, before the step S10, the method further includes:
步骤S40:连接公交服务器,从所述公交服务器上下载所述公交服务器配置的公交站点信息、公交站点位置信息和资费映射信息。Step S40: Connect the bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server.
公交终端在预置公交站点信息、公交站点位置信息和资费映射信息前,先连接公交服务器,从公交服务器上下载公交服务器已配置好的公交站点信息、公交站点位置信息和资费映射信息。公交服务器设置为配置公交站点信息、公交站点位置信息和资费映射信息,当公交终端需要加载或更新公交站点信息、公交站点位置信息和资费映射信息,首先通过公交服务器配置所需的公交站点信息、公交站点位置信息和资费映射信息,公交终端再公交服务器上下载公交服务器已配置好的公交站点信息、公交站点位置信息和资费映射信息,重新预置所需的公交站点信息、公交站点位置信息和资费映射信息。例如,需要增加/减少某条公交线路、增加/减少某条公交线路上的公交站点,或者变更公交站点之间的公交费,则先在公交服务器根据要求配置所需的公交站点信息、公交站点位置信息和资费映射信息,公交终端再公交服务器上下载公交服务器已配置好的公交站点信息、公交站点位置信息和资费映射信息,重新预置所需的公交站点信息、公交站点位置信息和资费映射信息。Before the bus terminal presets the bus station information, the bus station location information, and the tariff mapping information, the bus terminal first connects to the bus server, and downloads the bus station information, the bus station location information, and the tariff mapping information that the bus server has configured from the bus server. The bus server is configured to configure bus station information, bus station location information, and tariff mapping information. When the bus terminal needs to load or update bus station information, bus station location information, and tariff mapping information, first configure the required bus station information through the bus server. The bus station location information and the tariff mapping information, the bus terminal re-bus server downloads the bus station configured bus station information, the bus station location information and the tariff mapping information, and re-presets the required bus station information, bus station location information, and Tariff mapping information. For example, if you need to increase/decrease a bus line, increase/decrease a bus stop on a bus line, or change the bus fare between bus stops, first configure the bus stop information and bus stop on the bus server as required. The location information and the tariff mapping information, the bus terminal re-bus server downloads the bus station information, the bus station location information and the tariff mapping information that have been configured by the bus server, and re-presets the required bus station information, bus station location information and tariff mapping. information.
当需要下载变更公交站点信息、公交站点位置信息和/或资费映射信息时,公交终端可以联机下载,即公交终端可以连接公交服务器,从公交服务器上下载公交服务器更新后的公交站点信息、公交站点位置信息和/或资费映射信息;当公交终端已预置好公交站点信息、公交站点位置信息和资费映射信息,不需要下载变更公交站点信息、公交站点位置信息和/或资费映射信息时,公交终端可以脱机工作。When it is necessary to download and change the bus station information, the bus station location information and/or the tariff mapping information, the bus terminal can be downloaded online, that is, the bus terminal can be connected to the bus server, and the bus station updated bus station information and bus station can be downloaded from the bus server. Location information and/or tariff mapping information; when the bus terminal has preset bus station information, bus station location information, and tariff mapping information, and does not need to download and change bus station information, bus station location information, and/or tariff mapping information, the bus The terminal can work offline.
本实施例在步骤S30之后还包括:The embodiment further includes after step S30:
步骤S50:将所述识别卡的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至公交服务器。Step S50: Report the start site information, the termination site information, and the tariff information corresponding to the termination site information of the identification card to the bus server.
移动终端获取识别卡的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息后,可以将该识别卡的起始站点信息、终止站点信息, 以及所述起始站点信息至终止站点信息对应的资费信息上报至公交服务器,从而公交服务器可以记录某一识别卡的刷卡次数,持该识别卡的乘客上车的公交站点和下车的公交站点,以及乘车应付的公交费,以便对识别卡的统一管理。After the mobile terminal acquires the initial site information of the identification card, the termination site information, and the tariff information corresponding to the termination site information, the start site information and the termination site information of the identification card may be obtained. And the tariff information corresponding to the start site information to the termination site information is reported to the bus server, so that the bus server can record the number of times of the card swiping of the identification card, and the bus stop of the passenger holding the identification card and the bus stop that gets off the bus And the bus fare payable by bus to facilitate the unified management of the identification card.
本发明还提供一种公交终端。The invention also provides a bus terminal.
参照图6,图6为本发明公交终端一实施例的结构示意图。Referring to FIG. 6, FIG. 6 is a schematic structural diagram of an embodiment of a bus terminal according to the present invention.
在本发明的一实施例中,公交终端包括:In an embodiment of the invention, the bus terminal includes:
站点信息获取模块100,设置为当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域;当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息。The site information obtaining module 100 is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to the preset storage of the identification card. An area; when detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card.
扣费处理模块200,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。The debit processing module 200 is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the start site information and the termination site information. .
初始状态下,公交终端的站点信息获取模块100侦测感应区域是否有识别卡刷卡,当有乘客上车时持识别卡贴近或触及公交终端的感应区域时,公交终端的站点信息获取模块100侦测到有识别卡刷卡。公交终端的站点信息获取模块100侦测到有识别卡刷卡时,根据识别卡当前所在位置,即乘客上车持识别卡刷卡时所在的位置,获取所述识别卡当前所在位置对应的起始站点信息,即根据乘客上车的位置,确定乘客上车的公交站点。同时,站点信息获取模块100将所获取的起始站点信息存储至识别卡的预置存储区域,识别卡的预置存储区域记录乘客上车的公交站点,以便乘客下车持识别卡刷卡时,公交终端能够根据所存储的起始站点信息识别出是同一乘客在下车。In the initial state, the station information acquisition module 100 of the bus terminal detects whether the identification card is swiped in the sensing area. When the passenger gets on the vehicle and holds the identification card close to or touches the sensing area of the bus terminal, the station information acquisition module 100 of the bus terminal detects A card with an identification card was detected. When the site information acquisition module 100 of the bus terminal detects that the identification card is swiped, according to the current location of the identification card, that is, the location where the passenger picks up the identification card, the first site corresponding to the current location of the identification card is obtained. Information, that is, the bus stop where the passenger gets on the bus based on the location of the passenger on board. At the same time, the site information obtaining module 100 stores the acquired starting site information to a preset storage area of the identification card, and the preset storage area of the identification card records the bus stop where the passenger gets on the vehicle, so that when the passenger gets off and holds the identification card, The bus terminal can recognize that the same passenger is getting off the vehicle based on the stored initial site information.
上述识别卡可以是公交终端能够识别的公交卡、居民身份证,或者是存储在手机等移动终端中的存储卡。The identification card may be a bus card, a resident ID card, or a memory card stored in a mobile terminal such as a mobile phone.
上述起始站点信息为站点信息获取模块100侦测到识别卡首次刷卡时识别卡所在位置对应的公交站点的名称代码。The first site information is the name code of the bus station corresponding to the location where the identification card is located when the site information acquisition module 100 detects the first time the card is swiped.
当同一乘客下车时持识别卡贴近或触及公交终端的感应区域时,公交终端的站点信息获取模块100侦测到上述识别卡再次刷卡。公交终端侦测到同一识别卡再次刷卡时,根据识别卡当前所在位置,即乘客下车持识别卡刷卡时所在的位置,获取所述识别卡当前所在位置对应的终止站点信息,即根据乘客下车的位置,确定乘客下车的公交站点。 When the same passenger gets off the vehicle and holds the identification card close to or touches the sensing area of the bus terminal, the station information acquisition module 100 of the bus terminal detects that the identification card is swiped again. When the bus terminal detects that the same identification card is swiped again, according to the current location of the identification card, that is, the location where the passenger gets off the card when the identification card is swiped, the terminal information corresponding to the current location of the identification card is obtained, that is, according to the passenger. The location of the car determines the bus stop where the passenger gets off.
上述终止站点信息为站点信息获取模块100侦测到识别卡再次刷卡时识别卡所在位置对应的公交站点的名称代码。The termination site information is a name code of the bus stop corresponding to the location where the identification card is located when the site information acquisition module 100 detects that the identification card is swiped again.
站点信息获取模块100在获取所述识别卡再次刷卡所在位置对应的终止站点信息后,从该识别卡的预置存储区域中获取该预置存储区域存储的所述起始站点信息,确定乘客上车的公交站点。站点信息获取模块100在获取识别卡所在位置对应的起始站点信息和终止站点信息,即确定乘客上车的公交站点和下车的公交站点后,扣费处理模块200根据预置的起始站点信息至终止站点信息对应的资费信息,即确定乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,并根据该资费信息对所述识别卡进行扣费处理,自动从该乘客的识别卡上的余额扣除该乘客应付的公交费。After acquiring the termination site information corresponding to the location where the identification card is swiped again, the site information obtaining module 100 obtains the initial site information stored in the preset storage area from the preset storage area of the identification card, and determines the passenger. Bus stop of the car. The site information obtaining module 100 obtains the initial site information and the terminating site information corresponding to the location where the identification card is located, that is, after determining the bus stop and the bus stop site of the passenger getting on the bus, the deduction processing module 200 according to the preset starting site. The information corresponding to the termination information of the termination site information, that is, determining the tariff information corresponding to the passenger section of the stop site where the passenger is on the bus to the stop site, and deducting the identification card according to the tariff information. The fee is processed, and the bus fare payable by the passenger is automatically deducted from the balance on the passenger's identification card.
相对于现有技术,本发明提供的公交终端能够根据乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,自动从该乘客识别卡上的余额扣除该乘客应付的公交费,实现了公交终端自动分段扣费,适用于分段扣费的公交线路,而且无需人工售票,提高了公交售票效率,降低了人力成本。Compared with the prior art, the bus terminal provided by the present invention can automatically deduct the balance from the passenger identification card according to the tariff information corresponding to the passenger section of the terminal station where the passenger is on the bus to the stop site where the passenger is getting off. The bus fare payable by the passenger realizes the automatic segmentation deduction of the bus terminal, which is applicable to the bus line with the deduction of the deduction, and does not require manual ticket sales, which improves the efficiency of the bus ticket sales and reduces the labor cost.
再参照图7,图7为图6中站点信息获取模块的结构示意图。Referring again to FIG. 7, FIG. 7 is a schematic structural diagram of the site information acquiring module in FIG.
如图7所示,站点信息获取模块包括:As shown in FIG. 7, the site information obtaining module includes:
刷卡侦测单元110,设置为实时侦测识别卡是否刷卡。The card detecting unit 110 is configured to detect whether the identification card is swiped in real time.
GPS定位单元120,设置为在刷卡侦测单元110侦测到识别卡刷卡时,获取所述识别卡当前所在位置的第一位置信息;在侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置的第二位置信息。The GPS positioning unit 120 is configured to acquire first position information of a current location of the identification card when the card detecting unit 110 detects the identification card, and acquire the Identify the second location information of the current location of the card.
站点查询单元130,设置为根据所述第一位置信息在预置的公交站点位置信息中查询获得所述第一位置信息对应的起始站点信息;根据所述第二位置信息在预置的公交站点位置信息中查询获得所述第二位置信息对应的终止站点信息。The website querying unit 130 is configured to query, according to the first location information, the initial site information corresponding to the first location information in the preset bus station location information; and preset the bus according to the second location information. The site location information is queried to obtain the terminating site information corresponding to the second location information.
信息发送单元140,设置为将所述起始站点信息存储至所述识别卡的预置存储区域。The information transmitting unit 140 is configured to store the starting site information to a preset storage area of the identification card.
刷卡侦测单元110实时侦测识别卡是否刷卡,在刷卡侦测单元110侦测到识别卡刷卡时,GPS定位单元120通过GPS定位识别卡当前所在位置,获取识别卡当前所在位置的第一位置信息,该第一位置信息为公交终端的刷卡侦测单元110侦测到识别卡 首次刷卡时识别卡所在位置对应的经纬度坐标,即乘客上车时所在位置对应的经纬度坐标。The card detecting unit 110 detects whether the card is swiped in real time. When the card detecting unit 110 detects the card swiping, the GPS positioning unit 120 locates the current location of the card by using the GPS to obtain the first position of the current location of the card. Information, the first location information is that the card detecting unit 110 of the bus terminal detects the identification card The latitude and longitude coordinates corresponding to the position where the card is located when the card is swiped for the first time, that is, the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle.
具体地,站点查询单元130根据所获取的第一位置信息,在预置的公交站点位置信息中查询各公交站点对应的站点位置信息,当预置的公交站点位置信息中存在与第一位置信息重合或最邻近的站点位置信息时,确定该与第一位置信息重合或最接近的站点位置信息为起始站点位置信息,并在预置的公交站点信息中获取上述起始站点位置信息对应的起始站点信息。Specifically, the site querying unit 130 queries the location information of the corresponding bus station in the preset bus station location information according to the acquired first location information, and the first location information exists in the preset bus site location information. When the location information of the site is coincident or closest, it is determined that the site location information that is coincident or closest to the first location information is the initial site location information, and the corresponding location information of the initial site is obtained in the preset bus site information. Start site information.
上述起始站点信息为刷卡侦测单元110侦测到识别卡首次刷卡时识别卡所在位置对应的公交站点的名称代码。The initial site information is a name code of the bus stop corresponding to the location where the card is detected when the card detecting unit 110 detects the first time the card is swiped.
上述公交站点位置信息为公交线路中各公交站点所在位置对应的经纬度坐标。The location information of the above bus station is the latitude and longitude coordinates corresponding to the location of each bus station in the bus line.
上述公交站点信息为公交线路中各公交站点的名称代码。The above bus stop information is the name code of each bus stop in the bus line.
GPS定位单元120通过GPS定位确定乘客上车时所在位置对应的经纬度坐标后,站点查询单元130在预置的公交站点位置信息中查找是否存在与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标,若存在与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标,则确定该与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标为乘客上车的公交站点所在的经纬度坐标,确定乘客上车的公交站点;若不存在与乘客上车时所在位置对应的经纬度坐标重合的经纬度坐标,则在预置的公交站点位置信息中找出与乘客上车时所在位置对应的经纬度坐标最接近的经纬度坐标,确定该与乘客上车时所在位置对应的经纬度坐标最接近的经纬度坐标为乘客上车的公交站点所在的经纬度坐标,确定乘客上车的公交站点。After the GPS positioning unit 120 determines the latitude and longitude coordinates corresponding to the position of the passenger when the vehicle is on the vehicle, the site query unit 130 searches the preset bus station location information for the latitude and longitude of the latitude and longitude coordinates corresponding to the location where the passenger gets on the vehicle. Coordinates, if there is a latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the position where the passenger gets on the vehicle, it is determined that the latitude and longitude coordinates of the latitude and longitude coordinates coincident with the position at which the passenger gets on the vehicle are the latitude and longitude coordinates of the bus stop where the passenger gets on the vehicle, Determining the bus stop where the passenger gets on the bus; if there is no latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the location where the passenger got on the bus, find the latitude and longitude coordinates corresponding to the position where the passenger got on the bus in the preset bus stop position information The closest latitude and longitude coordinates determine that the latitude and longitude coordinates closest to the latitude and longitude coordinates corresponding to the position at which the passenger gets on the vehicle are the latitude and longitude coordinates of the bus stop where the passenger gets on the bus, and determine the bus stop where the passenger gets on the bus.
例如,若乘客上车时所在位置刚好在公交站点A范围内,则确定公交站点A为乘客上车的公交站点,若乘客上车时所在位置不是在公交站点A范围内,如车辆还没有进站时就停靠,此时通过GPS定位,将找到与乘客上车时所在位置相邻的公交站点A、公交站点B、公交站点C等,若公交站点A、公交站点B、公交站点C中公交站点A距离乘客上车时所在位置最近,则确定公交站点A为乘客上车的公交站点。For example, if the passenger is on the bus just in the range of bus stop A, it is determined that bus stop A is the bus stop where the passenger gets on the bus. If the passenger is on the bus, the location is not within the bus stop A, if the vehicle has not entered When the station stops, at this time, by GPS positioning, it will find the bus stop A, bus stop B, bus stop C, etc. adjacent to the location where the passenger got on the bus, if the bus stop A, bus stop B, bus stop C bus Site A is closest to the location where the passenger got on the bus, and it is determined that bus stop A is the bus stop where the passenger gets on the bus.
在确定乘客上车的公交站点后,为了在乘客下车持识别卡刷卡时,公交终端能够根据所存储的起始站点信息识别出是同一乘客在下车,本实施例的站点查询单元130将所获取的起始站点信息存储至识别卡的预置存储区域,识别卡的预置存储区域记录乘客上车的公交站点。 After determining the bus stop on which the passenger gets on the bus, in order to pick up the identification card when the passenger gets off the bus, the bus terminal can recognize that the same passenger is getting off the bus according to the stored initial site information, and the site query unit 130 of the embodiment will The obtained initial site information is stored in a preset storage area of the identification card, and the preset storage area of the identification card records the bus stop where the passenger gets on the bus.
在刷卡侦测单元110侦测到同一识别卡再次刷卡时,GPS定位单元120通过GPS定位识别卡当前所在位置,获取识别卡当前所在位置的第二位置信息,该第二位置信息为侦测到识别卡再次刷卡时识别卡所在位置对应的经纬度坐标,即乘客下车时所在位置对应的经纬度坐标。When the card detecting unit 110 detects that the same identification card is swiped again, the GPS positioning unit 120 locates the current location of the identification card by using the GPS to obtain the second location information of the current location of the identification card, and the second location information is detected. When the identification card is swiped again, the latitude and longitude coordinates corresponding to the position where the card is located, that is, the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle.
具体地,站点查询单元130根据所述第二位置信息,在预置的公交站点位置信息中查询各公交站点对应的站点位置信息,当预置的公交站点位置信息中存在与第二位置信息重合或最邻近的站点位置信息时,确定该与第二位置信息重合或最接近的站点位置信息为终止站点位置信息,并在预置的公交站点信息中获取所述终止站点位置信息对应的终止站点信息。Specifically, the site querying unit 130 queries the location information of the corresponding bus station in the preset bus station location information according to the second location information, and the preset location information of the bus station overlaps with the second location information. Or the nearest site location information, determining that the site location information that is coincident or closest to the second location information is the terminating site location information, and obtaining the terminating site corresponding to the terminating site location information in the preset bus station information information.
上述终止站点信息为刷卡侦测单元110侦测到识别卡再次刷卡时识别卡所在位置对应的公交站点的名称代码。The termination site information is a name code of the bus stop corresponding to the location where the identification card is located when the card detection unit 110 detects that the identification card is swiped again.
上述公交站点信息上述起始站点信息和终止站点信息。The above bus station information includes the above starting site information and terminating site information.
GPS定位单元120通过GPS定位确定乘客下车时所在位置对应的经纬度坐标后,站点查询单元130在预置的公交站点位置信息中查找是否存在与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标,若存在与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标,则确定该与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标为乘客下车的公交站点所在的经纬度坐标,确定乘客下车的公交站点;若不存在与乘客下车时所在位置对应的经纬度坐标重合的经纬度坐标,则在预置的公交站点位置信息中找出与乘客下车时所在位置对应的经纬度坐标最接近的经纬度坐标,确定该与乘客下车时所在位置对应的经纬度坐标最接近的经纬度坐标为乘客下车的公交站点所在的经纬度坐标,确定乘客下车的公交站点。After the GPS positioning unit 120 determines the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle, the station query unit 130 searches the preset bus station location information for the latitude and longitude of the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle. Coordinates, if there is a latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the position where the passenger gets off the vehicle, it is determined that the latitude and longitude coordinates of the latitude and longitude coordinates coincident with the position at which the passenger gets off the vehicle are the latitude and longitude coordinates of the bus stop where the passenger gets off, Determining the bus stop where the passenger gets off; if there is no latitude and longitude coordinate coincident with the latitude and longitude coordinates corresponding to the location where the passenger got off the bus, find the latitude and longitude coordinates corresponding to the position where the passenger got off the bus in the preset bus stop position information. The closest latitude and longitude coordinate determines that the latitude and longitude coordinates closest to the latitude and longitude coordinates corresponding to the position at which the passenger gets off the bus are the latitude and longitude coordinates of the bus stop where the passenger gets off, and determines the bus stop where the passenger gets off.
例如,若乘客下车时所在位置刚好在公交站点D范围内,则确定公交站点D为乘客下车的公交站点,若乘客下车时所在位置不是在公交站点D范围内,如车辆还没有进站时就停靠,此时通过GPS定位,将找到与乘客下车时所在位置相邻的公交站点D、公交站点E、公交站点F等,若公交站点D、公交站点E、公交站点F中公交站点D距离乘客下车时所在位置最近,则确定公交站点D为乘客下车的公交站点。For example, if the passenger gets off the vehicle and the location is just within the bus station D, it is determined that the bus stop D is the bus stop where the passenger gets off the bus. If the passenger gets off the bus, the location is not within the bus stop D, if the vehicle has not entered yet. When the station stops, at this time, by GPS positioning, the bus stop D, the bus stop E, the bus stop F, etc. adjacent to the location where the passenger gets off the bus will be found. If the bus stop D, the bus stop E, the bus stop F, the bus Site D is closest to the location where the passenger got off the bus, and it is determined that bus stop D is the bus stop where the passenger gets off.
再参照图8,图8为图6中扣费处理模块的结构示意图。Referring again to FIG. 8, FIG. 8 is a schematic structural diagram of the deduction processing module of FIG.
如图8所示,扣费处理模块包括: As shown in FIG. 8, the deduction processing module includes:
信息读取单元210,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息。由于在识别卡首次刷卡时,移动终端的信息发送单元140将获取的起始站点信息存储在识别卡的预置存储区域,因此在要对识别卡进行扣费处理时,先通过信息读取单元210从识别卡的预置存储区域中读取该预置存储区域所存储的起始站点信息。The information reading unit 210 is configured to read the start site information stored in a preset storage area of the identification card. Since the information sending unit 140 of the mobile terminal stores the acquired starting site information in the preset storage area of the identification card when the identification card is first swiped, the information reading unit is first used when the identification card is to be charged. 210 reads the start site information stored in the preset storage area from the preset storage area of the identification card.
扣费请求单元220,设置为根据读取到的所述起始站点信息和终止站点信息生成扣费请求。在获取识别卡所在位置对应的起始站点信息和终止站点信息,即确定乘客上车的公交站点和下车的公交站点后,扣费请求单元220生成扣费请求,请求需要对下车乘客的识别卡进行扣费处理。The charge request unit 220 is configured to generate a charge request according to the read start site information and the terminated site information. After obtaining the initial site information and the termination site information corresponding to the location where the identification card is located, that is, after determining the bus stop on the passenger and the bus stop on the bus, the charge request unit 220 generates a charge request, requesting the passenger to get off the bus. The identification card is charged for deduction.
资费查询单元230,设置为根据所述扣费请求在预置的资费映射信息中查询获得所述起始站点信息至终止站点信息对应的资费信息。The tariff inquiry unit 230 is configured to query, in the preset tariff mapping information, the obtained tariff information corresponding to the termination site information according to the deduction request.
扣费处理单元240,并根据所述资费信息对所述识别卡进行扣费处理。The debit processing unit 240 performs deduction processing on the identification card according to the tariff information.
上述资费映射信息为公交线路的各中公交站点两个公交站点之间对应的资费信息;例如,若一公交线路包括公交站点A、公交站点B、公交站点C、公交站点D,则上述资费映射信息包括公交站点A至公交站点B乘车区段、公交站点B至公交站点C乘车区段、公交站点C至公交站点D乘车区段、公交站点A至公交站点C乘车区段、公交站点A至公交站点D乘车区段,以及公交站点B至公交站点D乘车区段对应的资费信息,即乘客应付的公交费。The above tariff mapping information is the corresponding tariff information between two bus stations of each bus station of the bus line; for example, if a bus line includes bus station A, bus station B, bus station C, bus station D, the above tariff mapping The information includes bus stop A to bus stop B ride section, bus stop B to bus stop C ride section, bus stop C to bus stop D ride section, bus stop A to bus stop C ride section, The bus station A to the bus stop D ride section, and the bus station B to the bus stop D ride section corresponding to the tariff information, that is, the bus fare payable by the passenger.
资费查询单元230根据该扣费请求在预置的资费映射信息中查询起始站点信息至终止站点信息对应的资费信息,即确定乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,扣费处理单元240根据该资费信息对所述识别卡进行扣费处理,从而自动从该乘客的识别卡上的余额扣除该乘客应付的公交费。The tariff inquiry unit 230 queries the preset tariff information in the preset tariff mapping information to the tariff information corresponding to the termination site information, that is, determines the bus stop where the passenger is boarding the vehicle, and the termination site where the vehicle is located at the time of getting off the vehicle. The charge fee processing unit 240 performs a chargeback process on the identification card according to the tariff information, thereby automatically deducting the bus fare payable by the passenger from the balance on the passenger's identification card.
再参照图9,图9为本发明公交终端另一实施例的结构示意图。Referring again to FIG. 9, FIG. 9 is a schematic structural view of another embodiment of a bus terminal according to the present invention.
基于图6所示的公交自动扣费方法移动终端,本发明的另一实施例中,移动终端还包括:The mobile terminal according to the public automatic deduction method shown in FIG. 6 , in another embodiment of the present invention, the mobile terminal further includes:
信息存储模块300,设置为连接公交服务器,从所述公交服务器上下载所述公交服务器配置的公交站点信息、公交站点位置信息和资费映射信息。The information storage module 300 is configured to connect to the bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server.
信息上报模块400,设置为将所述识别卡的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至所述公交服务器。 The information reporting module 400 is configured to report the start site information, the termination site information, and the tariff information corresponding to the termination site information to the bus server.
公交终端在预置公交站点信息、公交站点位置信息和资费映射信息前,先通过信息存储模块300连接公交服务器,从公交服务器上下载公交服务器已配置好的公交站点信息、公交站点位置信息和资费映射信息。公交服务器设置为配置公交站点信息、公交站点位置信息和资费映射信息,当公交终端需要加载或更新公交站点信息、公交站点位置信息和资费映射信息,首先通过公交服务器配置所需的公交站点信息、公交站点位置信息和资费映射信息,公交终端的信息存储模块300再公交服务器上下载公交服务器已配置好的公交站点信息、公交站点位置信息和资费映射信息,重新预置所需的公交站点信息、公交站点位置信息和资费映射信息。例如,需要增加/减少某条公交线路、增加/减少某条公交线路上的公交站点,或者变更公交站点之间的公交费,则先在公交服务器根据要求配置所需的公交站点信息、公交站点位置信息和资费映射信息,公交终端再公交服务器上下载公交服务器已配置好的公交站点信息、公交站点位置信息和资费映射信息,重新预置所需的公交站点信息、公交站点位置信息和资费映射信息。Before the bus terminal presets the bus station information, the bus station location information, and the tariff mapping information, the bus terminal first connects to the bus server through the information storage module 300, and downloads the bus station information, bus station location information, and tariffs that have been configured by the bus server from the bus server. Map information. The bus server is configured to configure bus station information, bus station location information, and tariff mapping information. When the bus terminal needs to load or update bus station information, bus station location information, and tariff mapping information, first configure the required bus station information through the bus server. The bus station location information and the tariff mapping information, the bus terminal information storage module 300 and the bus server download the bus station configured bus station information, the bus station location information and the tariff mapping information, and re-preset the required bus station information, Bus site location information and tariff mapping information. For example, if you need to increase/decrease a bus line, increase/decrease a bus stop on a bus line, or change the bus fare between bus stops, first configure the bus stop information and bus stop on the bus server as required. The location information and the tariff mapping information, the bus terminal re-bus server downloads the bus station information, the bus station location information and the tariff mapping information that have been configured by the bus server, and re-presets the required bus station information, bus station location information and tariff mapping. information.
当需要下载变更公交站点信息、公交站点位置信息和/或资费映射信息时,公交终端可以联机下载,即公交终端可以连接公交服务器,从公交服务器上下载公交服务器更新后的公交站点信息、公交站点位置信息和/或资费映射信息;当公交终端已预置好公交站点信息、公交站点位置信息和资费映射信息,不需要下载变更公交站点信息、公交站点位置信息和/或资费映射信息时,公交终端可以脱机工作。When it is necessary to download and change the bus station information, the bus station location information and/or the tariff mapping information, the bus terminal can be downloaded online, that is, the bus terminal can be connected to the bus server, and the bus station updated bus station information and bus station can be downloaded from the bus server. Location information and/or tariff mapping information; when the bus terminal has preset bus station information, bus station location information, and tariff mapping information, and does not need to download and change bus station information, bus station location information, and/or tariff mapping information, the bus The terminal can work offline.
站点信息获取模块100扣费处理模块200获取识别卡的起始站点信息、终止站点信息,以及扣费处理模块200获取所述起始站点信息至终止站点信息对应的资费信息后,信息上报模块400可以将该识别卡的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至公交服务器,从而公交服务器可以记录某一识别卡的刷卡次数,持该识别卡的乘客上车的公交站点和下车的公交站点,以及乘车应付的公交费,以便对识别卡的统一管理。The website information obtaining module 100 obtains the initial site information of the identification card, the termination site information, and the charge processing module 200 obtains the tariff information corresponding to the termination site information, and the information reporting module 400 The start site information of the identification card, the termination site information, and the tariff information corresponding to the termination site information to the bus server may be reported to the bus server, so that the bus server can record the number of times of card punching of an identification card. The bus stop of the passengers on the identification card and the bus stop that gets off the bus, as well as the bus fare payable by the bus, for the unified management of the identification card.
本发明进一步提供一种公交系统。The invention further provides a public transportation system.
参照图10,图10为本发明公交系统一实施例的结构示意图。Referring to FIG. 10, FIG. 10 is a schematic structural view of an embodiment of a bus system according to the present invention.
本发明提供的公交系统包括识别卡101、公交终端102和公交服务器103。The public transportation system provided by the present invention includes an identification card 101, a bus terminal 102, and a bus server 103.
该识别卡101设置为在公交终端的感应区域刷卡。该公交服务器102设置为连接所述公交终端,与所述公交终端进行信息交互。The identification card 101 is arranged to swipe the card in the sensing area of the bus terminal. The bus server 102 is configured to connect to the bus terminal and perform information interaction with the bus terminal.
该公交终端102的结构以及所达到的有益效果均参照上述实施例,此处不再赘述。 The structure of the bus terminal 102 and the beneficial effects achieved are all referred to the above embodiments, and are not described herein again.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种公交自动扣费方法、公交终端及公交系统,具有以下有益效果:能够根据乘客上车时所在的公交站点至下车时所在的终止站点的乘车区段对应的资费信息,自动从该乘客识别卡上的余额扣除该乘客应付的公交费,达到了公交终端自动分段扣费,适用于分段扣费的公交线路,而且无需人工售票,提高了公交售票效率,降低了人力成本的效果。 As described above, the bus automatic deduction method, the bus terminal, and the bus system provided by the embodiments of the present invention have the following beneficial effects: according to the bus stop where the passenger gets on the bus to the stop site where the vehicle is located when the vehicle is off. The tariff information corresponding to the section automatically deducts the bus fare paid by the passenger from the balance on the passenger identification card, and achieves the automatic segmentation deduction of the bus terminal, which is applicable to the bus line of the deduction of the deduction, and does not require manual ticket sales. The efficiency of bus ticket sales has reduced the effect of labor costs.

Claims (10)

  1. 一种公交自动扣费方法,所述公交自动扣费方法包括:A method for automatically deducting a bus, the method for automatically deducting a bus includes:
    当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域;When detecting the identification card swipe, acquiring the starting site information corresponding to the current location of the identification card, and storing the starting site information to a preset storage area of the identification card;
    当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息;When it is detected that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
    读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。Reading the start site information stored in the preset storage area of the identification card, and performing deduction processing on the identification card according to the start site information and the termination site information.
  2. 如权利要求1所述的公交自动扣费方法,其中,所述当侦测到识别卡首次刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域的步骤具体包括:The method for automatically charging a bus according to claim 1, wherein when detecting that the identification card is first swiped, the first site information corresponding to the current location of the identification card is obtained, and the starting site information is obtained. The step of storing the preset storage area of the identification card specifically includes:
    实时侦测识别卡是否刷卡;Real-time detection of whether the identification card is swiped;
    当侦测到所述识别卡刷卡时,获取所述识别卡当前所在位置的第一位置信息;Obtaining first location information of a location where the identification card is currently located when the identification card is swiped;
    根据所述第一位置信息在预置的公交站点位置信息中查询获得所述第一位置信息对应的起始站点信息;Obtaining, in the preset bus station location information, the obtained start site information corresponding to the first location information according to the first location information;
    将所述起始站点信息存储至所述识别卡的预置存储区域。The starting site information is stored to a preset storage area of the identification card.
  3. 如权利要求1所述的公交自动扣费方法,其中,所述当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息的步骤具体包括:The method of claim 1, wherein the step of acquiring the termination site information corresponding to the current location of the identification card when the identification card is swiped again includes:
    实时侦测所述识别卡是否再次刷卡;Real-time detecting whether the identification card is swiped again;
    当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置的第二位置信息;Obtaining second location information of a location where the identification card is currently located when detecting that the identification card is swiped again;
    根据所述第二位置信息在预置的公交站点位置信息中查询获得所述第二位置信息对应的终止站点信息。And obtaining, according to the second location information, the terminal station information corresponding to the second location information in the preset bus station location information.
  4. 如权利要求1所述的公交自动扣费方法,其中,所述读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理的步骤具体包括: The public bus automatic deduction method according to claim 1, wherein said reading said initial site information stored in said preset storage area of said identification card, and based on said initial site information and terminating site information The step of performing the charge processing on the identification card specifically includes:
    读取所述识别卡的预置存储区域中存储的所述起始站点信息;Reading the starting site information stored in a preset storage area of the identification card;
    根据读取到的所述起始站点信息和终止站点信息生成扣费请求;Generating a deduction request according to the read start site information and the termination site information;
    根据所述扣费请求在预置的资费映射信息中查询获得所述起始站点信息至终止站点信息对应的资费信息;And querying, in the preset tariff mapping information, the obtained tariff information corresponding to the termination site information according to the deduction request;
    根据所述资费信息对所述识别卡进行扣费处理。Deducting the identification card according to the tariff information.
  5. 如权利要求1至4中任意一项所述的公交自动扣费方法,其中,在所述当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域的步骤之前还包括:The automatic bus deduction method according to any one of claims 1 to 4, wherein, when the identification card is detected, the initial site information corresponding to the current location of the identification card is acquired, and The step of storing the initial site information to the preset storage area of the identification card further includes:
    连接公交服务器,从所述公交服务器上下载所述公交服务器配置的公交站点信息、公交站点位置信息和资费映射信息;Connecting a bus server, and downloading bus station information, bus station location information, and tariff mapping information configured by the bus server from the bus server;
    在所述读取所述识别卡预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费步骤之后还包括:After the step of reading the initial site information stored in the identification card preset storage area and performing the deduction step on the identification card according to the start site information and the termination site information, the method further includes:
    将所述识别卡的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至公交服务器。The start site information, the termination site information, and the tariff information corresponding to the termination site information of the identification card are reported to the bus server.
  6. 一种公交终端,所述公交终端包括:A bus terminal, the bus terminal includes:
    站点信息获取模块,设置为当侦测到识别卡刷卡时,获取所述识别卡当前所在位置对应的起始站点信息,并将所述起始站点信息存储至所述识别卡的预置存储区域;当侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置对应的终止站点信息;The site information obtaining module is configured to: when detecting the smart card swipe, obtain the starting site information corresponding to the current location of the identification card, and store the initial site information to a preset storage area of the identification card When detecting that the identification card is swiped again, acquiring termination site information corresponding to the current location of the identification card;
    扣费处理模块,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息,并根据所述起始站点信息和终止站点信息对所述识别卡进行扣费处理。The deduction processing module is configured to read the initial site information stored in a preset storage area of the identification card, and perform deduction processing on the identification card according to the initial site information and the termination site information.
  7. 如权利要求6所述的公交终端,其中,所述站点信息获取模块包括:The bus terminal according to claim 6, wherein the site information acquisition module comprises:
    刷卡侦测单元,设置为实时侦测识别卡是否刷卡;The card detecting unit is configured to detect whether the identification card is swiped in real time;
    GPS定位单元,设置为在刷卡侦测单元侦测到识别卡刷卡时,获取所述识别卡当前所在位置的第一位置信息;在侦测到所述识别卡再次刷卡时,获取所述识别卡当前所在位置的第二位置信息; The GPS positioning unit is configured to acquire first position information of a current location of the identification card when the card detecting unit detects the identification card, and acquire the identification card when detecting that the identification card is swiped again Second location information of the current location;
    站点查询单元,设置为根据所述第一位置信息在预置的公交站点位置信息中查询获得所述第一位置信息对应的起始站点信息;根据所述第二位置信息在预置的公交站点位置信息中查询获得所述第二位置信息对应的终止站点信息;a site querying unit, configured to query, in the preset bus station location information, the start site information corresponding to the first location information according to the first location information; and according to the second location information, in a preset bus stop site Querying the location information to obtain the termination site information corresponding to the second location information;
    信息发送单元,设置为将所述起始站点信息存储至所述识别卡的预置存储区域。An information transmitting unit is configured to store the starting site information to a preset storage area of the identification card.
  8. 如权利要求6所述的公交终端,其中,所述扣费处理模块包括:The bus terminal according to claim 6, wherein the charge processing module comprises:
    信息读取单元,设置为读取所述识别卡的预置存储区域中存储的所述起始站点信息;An information reading unit configured to read the starting site information stored in a preset storage area of the identification card;
    扣费请求单元,设置为根据读取到的所述起始站点信息和终止站点信息生成扣费请求;The deduction request unit is configured to generate a deduction request according to the read start site information and the termination site information;
    资费查询单元,设置为根据所述扣费请求在预置的资费映射信息中查询获得所述起始站点信息至终止站点信息对应的资费信息;The tariff inquiry unit is configured to query, according to the deduction request, the tariff information corresponding to the termination site information in the preset tariff mapping information;
    扣费处理单元,并根据所述资费信息对所述识别卡进行扣费处理。Deducting the processing unit, and performing deduction processing on the identification card according to the tariff information.
  9. 如权利要求6至8中任意一项所述的公交终端,其中,所述公交终端还包括:The bus terminal according to any one of claims 6 to 8, wherein the bus terminal further comprises:
    信息存储模块,设置为连接公交服务器,从所述公交服务器上下载所述公交服务器配置的公交站点信息、公交站点位置信息和资费映射信息;An information storage module, configured to connect to a bus server, and download the bus station information, the bus station location information, and the tariff mapping information configured by the bus server from the bus server;
    信息上报模块,设置为将所述识别的起始站点信息、终止站点信息,以及所述起始站点信息至终止站点信息对应的资费信息上报至所述公交服务器。The information reporting module is configured to report the identified starting site information, the terminating site information, and the tariff information corresponding to the terminating site information to the terminating site information to the bus server.
  10. 一种公交系统,所述公交系统包括识别卡、公交服务器,以及权利要求6至9中任意一项所述的公交终端;A public transportation system, comprising: an identification card, a bus server, and the bus terminal according to any one of claims 6 to 9;
    所述识别卡设置为在公交终端的感应区域刷卡;The identification card is set to swipe in a sensing area of the bus terminal;
    所述公交服务器设置为连接所述公交终端,与所述公交终端进行信息交互。 The bus server is configured to connect to the bus terminal and perform information interaction with the bus terminal.
PCT/CN2014/091181 2014-06-16 2014-11-14 Automatic charging method, terminal and system for public transport WO2015192593A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410268511.1A CN105279804A (en) 2014-06-16 2014-06-16 Automatic charge method of bus, bus terminal and bus system
CN201410268511.1 2014-06-16

Publications (1)

Publication Number Publication Date
WO2015192593A1 true WO2015192593A1 (en) 2015-12-23

Family

ID=54934812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091181 WO2015192593A1 (en) 2014-06-16 2014-11-14 Automatic charging method, terminal and system for public transport

Country Status (2)

Country Link
CN (1) CN105279804A (en)
WO (1) WO2015192593A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257493A (en) * 2016-08-30 2016-12-28 重庆市城投金卡信息产业股份有限公司 Traffic promotional card falsely uses recognition methods and identification system
CN108197724A (en) * 2017-12-02 2018-06-22 山东大学 Efficiency weight calculation and public transport scheme performance estimating method in public transport complex network
CN108495253A (en) * 2018-03-01 2018-09-04 腾讯科技(深圳)有限公司 Public transport localization method and device, storage medium and electronic device
CN110910517A (en) * 2019-10-12 2020-03-24 武汉城市一卡通有限公司 Bus sectional pricing system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056403B (en) * 2016-05-23 2019-09-24 青岛博宁福田智能交通科技发展有限公司 A kind of rail traffic expense of riding determines method and system
CN106097463A (en) * 2016-06-24 2016-11-09 深圳市金溢科技股份有限公司 A kind of method preventing parking lot from repeating payment, control device and parking system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0576775A1 (en) * 1992-07-03 1994-01-05 Rodolfo Santovetti A multiple taximeter with magnetic cards for public vehicles
DE10107599A1 (en) * 2001-02-17 2002-08-29 Trend Network Ag Displaying passenger information in public transport vehicle involves displaying information next stopping point when distance to next stopping point less than defined distance
CN103198564A (en) * 2013-03-12 2013-07-10 东莞宇龙通信科技有限公司 Public transport system and public transport billing method
CN103606195A (en) * 2013-12-10 2014-02-26 中国重汽集团济南动力有限公司 Dynamic charging method and vehicle-mounted intelligent charging system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825359A (en) * 2006-04-06 2006-08-30 刘秋元 Prepayment, giving change IC card read-write device, smart card subsystem and paying method
CN101101676B (en) * 2007-07-16 2012-12-26 王洪 Mobile ticket-selling device and method for public transport
CN101615207A (en) * 2009-07-10 2009-12-30 重庆大学 A kind of method of obtaining bus stations with bus-waiting and bus-IC-card-holding passengers
WO2011066327A1 (en) * 2009-11-25 2011-06-03 Cubic Corporation Mobile wireless payment and access
CN102262791A (en) * 2010-05-26 2011-11-30 苏州巴米特信息科技有限公司 Bus charging method based on card swiping
CN102984658B (en) * 2012-11-16 2016-06-01 深圳市锐明视讯技术有限公司 A kind of vehicle site information collection method and device
CN103778675B (en) * 2014-01-21 2016-08-24 齐鲁工业大学 A kind of bus periodical charging device, charging method, radio-frequency card and card reader

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0576775A1 (en) * 1992-07-03 1994-01-05 Rodolfo Santovetti A multiple taximeter with magnetic cards for public vehicles
DE10107599A1 (en) * 2001-02-17 2002-08-29 Trend Network Ag Displaying passenger information in public transport vehicle involves displaying information next stopping point when distance to next stopping point less than defined distance
CN103198564A (en) * 2013-03-12 2013-07-10 东莞宇龙通信科技有限公司 Public transport system and public transport billing method
CN103606195A (en) * 2013-12-10 2014-02-26 中国重汽集团济南动力有限公司 Dynamic charging method and vehicle-mounted intelligent charging system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257493A (en) * 2016-08-30 2016-12-28 重庆市城投金卡信息产业股份有限公司 Traffic promotional card falsely uses recognition methods and identification system
CN106257493B (en) * 2016-08-30 2024-03-19 重庆市城投金卡信息产业(集团)股份有限公司 Identification method and identification system for traffic preference card
CN108197724A (en) * 2017-12-02 2018-06-22 山东大学 Efficiency weight calculation and public transport scheme performance estimating method in public transport complex network
CN108495253A (en) * 2018-03-01 2018-09-04 腾讯科技(深圳)有限公司 Public transport localization method and device, storage medium and electronic device
CN108495253B (en) * 2018-03-01 2022-06-03 腾讯科技(深圳)有限公司 Public transport means positioning method and device, storage medium and electronic device
CN110910517A (en) * 2019-10-12 2020-03-24 武汉城市一卡通有限公司 Bus sectional pricing system
CN110910517B (en) * 2019-10-12 2022-03-29 武汉城市一卡通有限公司 Bus sectional pricing system

Also Published As

Publication number Publication date
CN105279804A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
WO2015192593A1 (en) Automatic charging method, terminal and system for public transport
US11847586B2 (en) Method and apparatus for determining a road usage charge
EP3734522A1 (en) Rental vehicle operation management system
US10679429B2 (en) Toll payment collection with communication device
CN105550781A (en) Self-service refueling system
JP2018514032A (en) Parking lot management method, parking lot management server, and parking lot management system
US10311650B2 (en) Application, device and system for toll collection
CN104700654A (en) Parking space reserving method and system
CN103593880A (en) Method and device for paying vehicle parking fee
CN108806001B (en) License plate-based online payment method, mobile terminal and cloud server
CN104680647A (en) Card swiping management device, system and method
CN105243694A (en) Parking lot electronic toll collection system and method thereof
CN103606195A (en) Dynamic charging method and vehicle-mounted intelligent charging system
CN105637569A (en) Toll payment collection with communication device
CN105321339A (en) Road traffic intelligent management system
CN112907761B (en) Method, electronic device, and computer storage medium for parking management
US20210312808A1 (en) Car number-based parking elevator control
KR101740475B1 (en) Parking management method and system using location information
US20210407218A1 (en) Parking management system, parking management device, and computer-readable recording medium
KR101773970B1 (en) Mobile hi-pass system using smart terminal and obd terminal
CN113487311A (en) Refueling payment method, platform, system and computer readable storage medium
CN106297366A (en) A kind of reverse vehicle-searching system for parking lots
JP2021064344A (en) Parking lot management system
CN110728509A (en) Payment method, device and system based on flow position, equipment and storage medium
CN111222926A (en) Invoicing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895093

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895093

Country of ref document: EP

Kind code of ref document: A1