CN109982237B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN109982237B
CN109982237B CN201811574637.6A CN201811574637A CN109982237B CN 109982237 B CN109982237 B CN 109982237B CN 201811574637 A CN201811574637 A CN 201811574637A CN 109982237 B CN109982237 B CN 109982237B
Authority
CN
China
Prior art keywords
server
gate
target
communication module
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811574637.6A
Other languages
Chinese (zh)
Other versions
CN109982237A (en
Inventor
宋曹春洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811574637.6A priority Critical patent/CN109982237B/en
Publication of CN109982237A publication Critical patent/CN109982237A/en
Application granted granted Critical
Publication of CN109982237B publication Critical patent/CN109982237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • G06Q30/0284Time or distance, e.g. usage of parking meters or taximeters
    • 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
    • G07B15/04Arrangements 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 comprising devices to free a barrier, turnstile, or the like
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/42Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for mass transport vehicles, e.g. buses, trains or aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a communication method and equipment, relates to the technical field of communication, and aims to solve the problem that a server cannot accurately deduct fees of a user account. The method comprises the following steps: a target communication module in the communication modules sends a first message to a server, wherein the first message is used for indicating the target communication module to establish connection with the terminal equipment; the server acquires first position information according to the first message, wherein the first position information is used for indicating the position of the target communication module when the target communication module sends the first message; the target communication module sends a second message to the server, wherein the second message is used for indicating the target communication module to be disconnected with the terminal equipment; the server acquires second position information according to the second message, wherein the second position information is used for indicating the position of the target communication module when the target communication module sends the second message; and the server deducts the fee of the user account corresponding to the terminal equipment according to the first position information and the second position information.

Description

Communication method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a communication method and equipment.
Background
With the acceleration of the pace of life in modern society, subways become an important vehicle adopted by people when people go out.
At present, when a user enters a subway station, the user can align a two-dimensional code displayed by a terminal device with a scanning device in an entrance gate, so that a server can control the gate of the entrance gate to be opened and start charging after the identity information of the user is successfully verified; when the user leaves the subway station, the two-dimensional code can be aligned to the scanning equipment in the outbound gate again, so that the server can control the gate of the outbound gate to be opened and stop charging after the user identity information is successfully verified, and then the user account is charged.
However, in the above method, if the user enters from an entrance gate of one subway station and leaves from an exit gate of the same subway station, the server cannot determine whether the user takes a subway, so that the user account cannot be accurately charged.
Disclosure of Invention
The embodiment of the invention provides a communication method and equipment, and aims to solve the problem that a server cannot judge whether a user takes a subway or not and cannot accurately deduct a fee from a user account due to the fact that the user enters and exits from the same subway station.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a communication method. The method is applied to server-side equipment, the server-side equipment comprises a server and a plurality of communication modules connected with the server, and the communication modules are arranged on a vehicle. The method comprises the following steps: a target communication module in the plurality of communication modules sends a first message to a server, wherein the first message is used for indicating the target communication module to establish connection with the terminal equipment; the server acquires first position information according to the first message, wherein the first position information is used for indicating the position of the target communication module when the target communication module sends the first message; the target communication module sends a second message to the server, wherein the second message is used for indicating the target communication module to be disconnected with the terminal equipment; the server acquires second position information according to the second message, wherein the second position information is used for indicating the position of the target communication module when the target communication module sends the second message; and the server deducts the fee of the user account corresponding to the terminal equipment according to the first position information and the second position information.
In a second aspect, an embodiment of the present invention provides a server device. The server-side equipment comprises a server and a plurality of communication modules connected with the server, wherein the communication modules are arranged on a vehicle. The target communication module in the plurality of communication modules is used for sending a first message and a second message to the server, wherein the first message is used for indicating the target communication module to establish connection with the terminal equipment, and the second message is used for indicating the target communication module to disconnect from the terminal equipment. The server is used for acquiring first position information according to the first message; acquiring second position information according to the second message; according to the first position information and the second position information, deducting a user account corresponding to the terminal equipment; the first location information is used for indicating the location of the target communication module when the target communication module sends the first message, and the second location information is used for indicating the location of the target communication module when the target communication module sends the second message.
In a third aspect, an embodiment of the present invention provides a communication method. The method is applied to the terminal equipment. The method comprises the following steps: under the condition that the distance between the terminal equipment and a target communication module is smaller than or equal to a preset target distance, the terminal equipment is connected with the target communication module, and the target communication module is one of a plurality of communication modules arranged on a vehicle; and receiving verification information sent by the server under the condition that the disconnection time of the terminal equipment and the target communication module is greater than or equal to the preset time, wherein the verification information is used for indicating that the server deducts the fee of a user account corresponding to the terminal equipment, and the server is connected with the terminal equipment.
In a fourth aspect, an embodiment of the present invention provides a terminal device. The terminal equipment comprises a connecting module and a receiving module. The connection module is used for establishing connection with a target communication module under the condition that the distance between the terminal equipment and the target communication module is smaller than or equal to a preset target distance, wherein the target communication module is one of a plurality of communication modules arranged on a vehicle; and the receiving module is used for receiving verification information sent by the server under the condition that the time length for disconnecting the terminal equipment and the target communication module is greater than or equal to the preset time length, the verification information is used for indicating that the server deducts the fee of the user account corresponding to the terminal equipment, and the server is connected with the terminal equipment.
In a fifth aspect, an embodiment of the present invention provides a server device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the communication method provided in the first aspect.
In a sixth aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, and when executed by the processor, the computer program implements the steps of the communication method provided in the third aspect.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the communication method provided in the first aspect or the third aspect.
In the embodiment of the present invention, a target communication module in the plurality of communication modules may send a first message to the server (the first message may be used to instruct the target communication module to establish a connection with the terminal device); the server may obtain first location information according to the first message (the first location information may be used to indicate a location of the target communication module when the target communication module sends the first message); the target communication module may send a second message to the server (the second message may be used to instruct the target communication module to disconnect from the terminal device); the server may obtain second location information according to the second message (the second location information may be used to indicate a location of the target communication module when the target communication module sends the second message); the server can deduct the fee of the user account corresponding to the terminal device according to the first position information and the second position information. According to the scheme, the target communication module on the vehicle can be connected with and disconnected from the terminal equipment, so that the server can determine the starting site of the user according to the position of the target communication module when the target communication module is connected with the terminal equipment, and determine the target site of the user according to the position of the target communication module when the target communication module is disconnected with the terminal equipment, so that the user account can be charged under the condition that the user takes a car, namely the embodiment of the invention can more accurately charge the user account.
Drawings
Fig. 1 is a schematic architecture diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a second schematic diagram of a communication system according to an embodiment of the present invention;
fig. 3 is a third schematic diagram of a communication system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a communication method according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of a communication method according to the embodiment of the invention;
fig. 6 is a third schematic diagram of a communication method according to an embodiment of the present invention;
fig. 7 is a fourth schematic diagram illustrating a communication method according to an embodiment of the present invention;
fig. 8 is a fifth schematic diagram illustrating a communication method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 11 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first message and the second message, etc. are for distinguishing different messages, not for describing a specific order of the messages.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
Some terms/nouns referred to in the embodiments of the present invention are explained below.
Private Virtual Network (PVN): refers to a private virtual network capable of supporting 5G lan-type services, in which wireless communication can be implemented between devices (or apparatuses).
The embodiment of the invention provides a communication method and equipment, wherein a target communication module in a plurality of communication modules can send a first message to a server (the first message can be used for indicating the target communication module to establish connection with terminal equipment); the server may obtain first location information according to the first message (the first location information may be used to indicate a location of the target communication module when the target communication module sends the first message); the target communication module may send a second message to the server (the second message may be used to instruct the target communication module to disconnect from the terminal device); the server may obtain second location information according to the second message (the second location information may be used to indicate a location of the target communication module when the target communication module sends the second message); the server can deduct the fee of the user account corresponding to the terminal device according to the first position information and the second position information. According to the scheme, the target communication module on the vehicle can be connected with and disconnected from the terminal equipment, so that the server can determine the starting site of the user according to the position of the target communication module when the target communication module is connected with the terminal equipment, and determine the target site of the user according to the position of the target communication module when the target communication module is disconnected with the terminal equipment, so that the user account can be charged under the condition that the user takes a car, namely the embodiment of the invention can more accurately charge the user account.
The following describes exemplary communication methods and apparatuses according to embodiments of the present invention with reference to the drawings provided in the embodiments of the present invention.
The first embodiment,
As shown in fig. 1, an embodiment of the present invention provides a communication system. The communication system may include a server device 10 and a terminal device 11. The server device 10 may include a server 101, and a plurality of communication modules 102 connected to the server 101, where the plurality of communication modules 102 may be disposed on a vehicle.
Among them, the target communication module in the plurality of communication modules 102 may be configured to send the first message and the second message to the server 101. The first message may be used to instruct the target communication module to establish a connection with terminal device 11. The second message may be used to instruct the target communication module to disconnect from terminal device 11.
The server 101 may be configured to obtain first location information according to the first message; acquiring second position information according to the second message; and deducting the user account corresponding to the terminal device 11 according to the first position information and the second position information. The first location information may be used to indicate a location at which the target communication module was located when the target communication module sent the first message. The second location information may be used to indicate a location at which the target communication module was located when the target communication module sent the second message.
Optionally, in the embodiment of the present invention, the network type of the communication system may be 5G PVN.
It should be noted that, in the embodiment of the present invention, the above-mentioned fig. 1 takes the server 101 and the three communication modules 102 as an example for illustration, and does not set any limit to the embodiment of the present invention. It can be understood that, in practical implementation, the number of the communication modules can be determined according to practical use requirements. For example, when the transportation means is a bus, each bus can be provided with a communication module; when the transportation means is a subway, each carriage of each subway can be respectively provided with one communication module.
Optionally, in the embodiment of the present invention, the vehicle may be a bus, a subway, or another possible vehicle. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the target communication module may be any communication module in the plurality of communication modules 102 connected to the server 101. For example, when a user is riding in a first car of a subway, the target communication module may be a communication module or a plurality of communication modules disposed in the first car.
Optionally, in this embodiment of the present invention, the server 101 may obtain the first location information and the second location information through a 3rd Generation Partnership Project (3 GPP) network, or obtain the first location information and the second location information through a non-3 GPP network. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
The embodiment of the invention provides a server side device, because a target communication module on a vehicle can be connected and disconnected with a terminal device, a server can determine an initial station of a user according to the position of the target communication module when the target communication module is connected with the terminal device, and determine a target station of the user according to the position of the target communication module when the target communication module is disconnected with the terminal device, so that the fee can be deducted from a user account under the condition that the user takes a bus, namely the server side device provided by the embodiment of the invention can more accurately deduct the fee from the user account.
Optionally, in this embodiment of the present invention, a target communication module in the plurality of communication modules 102 may be specifically configured to send a first message to the server 101 when a duration of a continuous connection between the target communication module and the terminal device 11 is greater than or equal to a first preset duration; and sends a second message to the server 101 when the duration of the continuous disconnection between the target communication module and the terminal device 11 is greater than or equal to a second preset duration.
It should be noted that, in the embodiment of the present invention, the first preset time period and the second preset time period may be equal to or different from each other. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Illustratively, assume that the first preset duration is 30 seconds. After the user carries the terminal device to sit on the subway, the distance between the terminal device and the target communication module is smaller than or equal to the preset target distance, so that the terminal device can be connected with the target communication module on the subway. If the target communication module detects that the duration of the continuous connection between the target communication module and the terminal equipment is longer than 30 seconds, the target communication module can determine that the terminal equipment is on the subway and send a first message for indicating that the target communication module and the terminal equipment are connected to each other to the server. Thus, the server can receive the first message and obtain, according to the first message, first location information indicating a location where the target communication module is located when the target communication module sends the first message, that is, obtain the starting site of the user.
For example, assume that the second preset time period is 10 seconds. After the user carries the terminal device away from the subway, the terminal device can be disconnected with the target communication module on the subway because the distance between the terminal device and the target communication module is greater than a preset distance. If the target communication module detects that the duration of the continuous disconnection between the target communication module and the terminal equipment is longer than 10 seconds, the target communication module can determine that the user carrying the terminal equipment leaves the subway, and sends a second message for indicating the disconnection between the target communication module and the terminal equipment to the server. Thus, the server can receive the second message and obtain, according to the second message, second location information indicating a location where the target communication module is located when the target communication module sends the second message, that is, obtain the destination site of the user.
The server-side device provided by the embodiment of the invention can avoid that the terminal device and the target communication module are temporarily connected or disconnected due to possible reasons such as unstable network signals of a communication system, so that the target communication module mistakenly thinks that the user-carried terminal device takes the subway and sends the first message to the server or mistakenly thinks that the user-carried terminal device leaves the subway and sends the second message to the server, thereby avoiding the user account from being deducted by service errors and further improving the accuracy of server fee deduction.
Optionally, in this embodiment of the present invention, the server 101 may be further configured to send the verification information to the terminal device 11 after the user account corresponding to the terminal device 11 is deducted. The verification information may be used to indicate that the server 101 has deducted a fee from a user account corresponding to the terminal device 11, and the server 101 is connected to the terminal device 11.
For example, after the user leaves the subway with the terminal device, the server may deduct a fee from the user account corresponding to the terminal device, and send verification information "payment is successful: 4.0 yuan. The payment method comprises the following steps: bank, balance. The transaction object is: city lead development ltd. Riding time: 2018-11-2808:09:34. Verification code: 548091". In this way, the terminal device can receive the verification information, display the verification information on a screen of the terminal device, and send the verification information to the first target gate device when the terminal device is out of the station, so that a user can pass through the area where the first target gate device is located.
According to the server-side equipment provided by the embodiment of the invention, the server sends the verification information to the terminal equipment, so that the user can know the specific consumption content, and the user can use the verification information as the outbound certificate.
Optionally, with reference to fig. 1 and as shown in fig. 2, the server device 10 provided in the embodiment of the present invention may further include a plurality of first gate devices 103 connected to the server 101. Wherein, a first target gate device of the plurality of first gate devices 103 is configured to send a first request message to the server 101, where the first request message may include authentication information, and the first request message may be used to request authentication of the authentication information, if a distance between the first target gate device and the terminal device is less than or equal to a first preset distance. The server 101 may be further configured to verify whether the verification information matches the first information in the server according to the first request message, and send a first response message to the first target gate device when the verification information matches the first information, where the first response message may be used to indicate that the terminal device 11 is allowed to pass through the area where the first target gate device is located. The first target gate device can be further used for controlling the gate of the first target gate device to be opened according to the first response message.
It should be noted that, in the embodiment of the present invention, the first gate device may be an outbound gate device, and the first target gate device may be one of the outbound gate devices.
For example, in the case that the terminal device receives the verification information sent by the server, if the terminal device carried by the user is close to the first target gate device and the distance between the terminal device and the first target gate device is less than or equal to the first preset distance, the terminal device may establish a connection with the first target gate device and send the verification information to the first target gate device (the verification information may be used to indicate that the server has deducted a fee from a user account corresponding to the terminal device). After the first target gate device receives the authentication information, a first request message including the authentication information may be sent to a server. The server may receive the first request message, verify the verification information, and send a first response message to the first target gate device if the verification of the verification information is successful. The first target gate device can control the gate of the first target gate device to open according to the first response message, so that the user can carry the terminal device to pass through the area where the first target gate device is located.
According to the server-side device provided by the embodiment of the invention, the first target gate device can forward the verification information sent by the terminal device to the server, so that the server can control the gate of the first target gate device to be automatically opened under the condition that the user account is deducted, and a user can pass through the area where the first target gate device is located.
Optionally, with reference to fig. 2, as shown in fig. 3, the server device 10 provided in the embodiment of the present invention may further include a plurality of second gate devices 104 connected to the server 101. A second target gate device in the plurality of second gate devices 104 may be configured to send a second request message to the server 101 when a distance between the second target gate device and the terminal device is less than or equal to a second preset distance, where the second request message may be used to request to verify the user information corresponding to the terminal device 11. The server 101 may be further configured to verify whether the user information matches with second information in the server according to the second request message, and send a second response message to the second target gate device when the user information matches with the second information, where the second response message may be used to indicate that the terminal device is allowed to pass through an area where the second target gate device is located. And the second target gate device can be further used for controlling the gate of the second target gate device to be opened according to the second response message.
It should be noted that, in the embodiment of the present invention, the second gate device may be an inbound gate device, and the second target gate device may be one inbound gate device of the plurality of inbound gate devices.
In addition, fig. 3 is an exemplary illustration taken in conjunction with fig. 2, and does not set any limit to the embodiment of the present invention. It can be understood that, in practical implementation, the above-mentioned fig. 3 may also be combined with fig. 1, and may be determined according to practical use requirements.
For example, when a user enters a subway with a terminal device, if the terminal device is close to a second target gate device in the station and the distance between the terminal device and the second target gate device is less than or equal to a second preset distance, the terminal device may establish a connection with the second target gate device. The second target gate device may send a second request message (which may be used to request authentication of the user information corresponding to the terminal device) to the server. The server may receive the second request message, verify the user information according to the second request message, and send a second response message to the second target gate device in case the user information is successfully verified (the second response message may be used to indicate that the terminal device is allowed to pass through the area where the second target gate device is located). The second target gate device may receive the second response message, and control the gate of the second target gate device to open according to the second response message, so that the user may pass through the area where the second target gate device is located with the terminal device.
According to the server-side device provided by the embodiment of the invention, the second target gate device can request the server to verify the user information corresponding to the terminal device, so that the second target gate device can control the gate of the second target gate device to be automatically opened under the condition that the user information is verified to be passed, and a user can pass through the area where the second target gate device is located.
Optionally, in this embodiment of the present invention, the server 101 may be further configured to send a prompt message to the terminal device 11 when detecting that the balance of the user account is insufficient before obtaining the second location information. The prompt information may be used to prompt that the balance of the user account corresponding to the terminal device 11 is insufficient.
For example, after the user takes a subway with the terminal device, if the target communication module on the subway detects that the duration of the continuous connection between the target communication module and the terminal device is longer than 30 seconds, the target communication module may determine that the terminal device is on the subway, and send a first message to the server, where the first message is used to indicate that the target communication module establishes a connection with the terminal device. The server may obtain the first location information according to the first message, and detect a balance of a user account corresponding to the terminal device. If the server detects that the balance of the user account is insufficient, the server can send a prompt message to the terminal device, wherein the prompt message is that the balance of the user account is insufficient, and the terminal device is required to be recharged in time so as not to influence normal outbound of a user, so that the terminal device can receive and display the prompt message. Therefore, the user can recharge in advance before getting off according to the prompt message.
According to the server-side equipment provided by the embodiment of the invention, the server can prompt the user to recharge in time under the condition that the balance of the user account corresponding to the terminal equipment is insufficient, so that the user can recharge in advance before getting off, and the waste of user time caused by recharging after getting off is avoided.
Example II,
As shown in fig. 4, an embodiment of the present invention provides a communication method. The method can be applied to the communication system of the first embodiment. The method may include steps 401-406 described below.
Step 401, under the condition that the distance between the terminal device and the target communication module is less than or equal to the preset distance of the target, the terminal device and the target communication module establish connection.
Step 402, the target communication module sends a first message to the server.
The first message may be used to instruct the target communication module to establish a connection with the terminal device.
Step 403, the server receives the first message, and obtains first location information according to the first message.
The first location information may be used to indicate a location of the target communication module when the target communication module sends the first message.
And step 404, the target communication module sends a second message to the server under the condition that the time length for disconnecting the terminal device from the target communication module is greater than or equal to the preset time length.
The second message may be used to instruct the target communication module to disconnect from the terminal device.
Step 405, the server receives the second message, and acquires second location information according to the second message.
The second location information may be used to indicate a location of the target communication module when the target communication module sends the second message.
And step 406, the server deducts the fee of the user account corresponding to the terminal device according to the first position information and the second position information.
It should be noted that, for the specific description of the above steps 401 to 406, reference may be made to the relevant description in the above embodiments, and details are not described here again.
The embodiment of the invention provides a communication method, and a target communication module on a vehicle can be connected and disconnected with a terminal device, so that a server can determine an initial station of a user according to the position of the target communication module when the target communication module is connected with the terminal device, and determine a target station of the user according to the position of the target communication module when the target communication module is disconnected with the terminal device, so that the user account can be charged under the condition that the user takes a bus, namely the communication method provided by the embodiment of the invention can more accurately charge the user account.
Optionally, with reference to fig. 4, as shown in fig. 5, after the step 406, the communication method provided in the embodiment of the present invention may further include the following steps 407 to 408.
Step 407, the server sends the verification information to the terminal device.
The verification information can be used for indicating that the server deducts the fee of the user account corresponding to the terminal equipment, and the server is connected with the terminal equipment.
Step 408, the terminal device receives the verification information.
It should be noted that, for the specific description of the above steps 407 to 408, reference may be made to the relevant description in the above embodiments, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the server sends the verification information to the terminal equipment, so that the user can know the specific consumption content, and the user can use the verification information as the outbound certificate.
Optionally, with reference to fig. 5, as shown in fig. 6, after step 408, the communication method provided in the embodiment of the present invention may further include steps 409 to 414 described below.
Step 409, the terminal device sends verification information to a first target gate device in the plurality of first gate devices when the distance between the terminal device and the first target gate device is smaller than or equal to a first preset distance.
The verification information can be used for indicating that the server deducts the fee of the user account corresponding to the terminal equipment.
The first target gate device receives the verification information, step 410.
Step 411, the first target gate device sends a first request message to the server.
The first request message may include authentication information, and the first request message is used to request authentication information.
Step 412, the server receives the first request message, and verifies whether the verification information matches the first information in the server according to the first request message.
In step 413, the server sends a first response message to the first target gate device when the verification information matches the first information.
Wherein the first response message may be used to indicate that the terminal device is allowed to pass through the area where the first target gate device is located.
And 414, the first target gate device receives the first response message, and controls the gate of the first target gate device to open according to the first response message.
It should be noted that, for the specific description of the above steps 409 to 414, reference may be made to the relevant description in the above embodiments, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the first target gate device can forward the verification information sent by the terminal device to the server, so that the server can control the gate of the first target gate device to be automatically opened under the condition that the user account is deducted, and a user can pass through the area where the first target gate device is located.
Optionally, with reference to fig. 5, as shown in fig. 7, before step 401, the communication method provided in the embodiment of the present invention may further include steps 415 to 419 described below.
Step 415, in a case that the distance between the terminal device and the second target gate device is less than or equal to a second preset distance, the terminal device establishes a connection with the second target gate device.
Step 416, the second target gate device sends a second request message to the server.
The second request message may be used to request to verify user information corresponding to the terminal device.
Step 417, the server receives the second request message, and verifies whether the user information matches with the second information in the server according to the second request message.
Step 418, in case the user information matches the second information, the server sends a second response message to the second target gate device.
Wherein the second response message may be used to indicate that the terminal device is allowed to pass through the area where the second target gate device is located.
And 419, the second target gate device receives the second response message, and controls the gate of the second target gate device to be opened according to the second response message.
It should be noted that, for the specific description of the above steps 415 to 419, reference may be made to the relevant description in the above embodiments, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the second target gate device can request the server to verify the user information corresponding to the terminal device, so that the second target gate device can control the gate of the second target gate device to be automatically opened under the condition that the user information is verified to be passed, and a user can pass through the area where the second target gate device is located.
Optionally, with reference to fig. 5, as shown in fig. 8, after step 403, the communication method provided in the embodiment of the present invention may further include steps 420 to 421 described below.
And step 420, under the condition that the balance of the user account is detected to be insufficient, the server sends prompt information to the terminal equipment.
The prompt information can be used for prompting that the balance of the user account corresponding to the terminal device is insufficient.
Step 421, the terminal device receives the prompt message.
It should be noted that, for the specific description of the above step 420 to step 421, reference may be made to the relevant description in the above embodiments, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the server can send the prompt information to the terminal equipment under the condition that the balance of the user account corresponding to the terminal equipment is insufficient, so that the terminal equipment can prompt the user to recharge in time according to the prompt information, and the user can recharge in advance before getting off, thereby avoiding the waste of user time caused by recharging after getting off.
Example III,
The embodiment of the invention provides a communication method. The method can be applied to the server side equipment. The server-side equipment can comprise a server and a plurality of communication modules connected with the server, wherein the communication modules are arranged on a vehicle. The method comprises steps 501-505 described below.
Step 501, a target communication module of a plurality of communication modules sends a first message to a server.
The first message may be used to instruct the target communication module to establish a connection with the terminal device.
Step 502, the server obtains the first location information according to the first message.
The first location information may be used to indicate a location where the target communication module is located when the target communication module sends the first message.
Step 503, the target communication module sends a second message to the server.
The second message may be used to instruct the target communication module to disconnect from the terminal device.
Step 504, the server obtains second location information according to the second message.
The second location information may be used to indicate a location where the target communication module is located when the target communication module sends the second message.
And 505, the server deducts the fee of the user account corresponding to the terminal device according to the first position information and the second position information.
It should be noted that, for the specific description of the above steps 501 to 505, reference may be made to the related description in the above embodiments, and details are not described here again.
The embodiment of the invention provides a communication method, and a target communication module on a vehicle can be connected and disconnected with a terminal device, so that a server can determine an initial station of a user according to the position of the target communication module when the target communication module is connected with the terminal device, and determine a target station of the user according to the position of the target communication module when the target communication module is disconnected with the terminal device, so that the user account can be charged under the condition that the user takes a bus, namely the communication method provided by the embodiment of the invention can more accurately charge the user account.
Optionally, in the embodiment of the present invention, after the step 505, the communication method provided in the embodiment of the present invention may further include a step 506 described below.
Step 506, after the user account is deducted, the server sends the verification information to the terminal device.
The verification information can be used for indicating that the server deducts the fee from the user account, and the server is connected with the terminal equipment.
It should be noted that, for the specific description of the step 506, reference may be made to the relevant description in the foregoing embodiment, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the server sends the verification information to the terminal equipment, so that the user can know the specific consumption content, and the user can use the verification information as the outbound certificate.
Optionally, in this embodiment of the present invention, the server device further includes a plurality of first gate devices connected to the server. After the step 506, the communication method provided by the embodiment of the present invention may further include the following steps 507 to 509.
Step 507, in the case that the distance between a first target gate device of the plurality of first gate devices and the terminal device is less than or equal to a first preset distance, the first target gate device sends a first request message to the server.
The first request message includes authentication information, and the first request message is used for requesting authentication information.
Step 508, the server verifies whether the verification information matches the first information in the server according to the first request message, and sends a first response message to the first target gate device when the verification information matches the first information.
The first response message is used for indicating that the terminal equipment is allowed to pass through the area where the first target gate equipment is located.
Step 509, the first target gate device controls the gate of the first target gate device to open according to the first response message.
It should be noted that, for the specific description of the above steps 507 to 509, reference may be made to the relevant description in the above embodiments, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the first target gate device can forward the verification information sent by the terminal device to the server, so that the server can control the gate of the first target gate device to be automatically opened under the condition that the user account is deducted, and a user can pass through the area where the first target gate device is located.
Optionally, in this embodiment of the present invention, the server device further includes a plurality of second gate devices connected to the server. Before the step 501, the communication method provided by the embodiment of the present invention may further include the following steps 510 to 512.
Step 510, in a case that a distance between a second target gate device of the plurality of second gate devices and the terminal device is less than or equal to a second preset distance, the second target gate device sends a second request message to the server.
The second request message is used for requesting to verify the user information corresponding to the terminal equipment.
Step 511, the server verifies whether the user information matches with the second information in the server according to the second request message, and sends a second response message to the second target gate device when the user information matches with the second information.
And the second response message is used for indicating that the terminal equipment is allowed to pass through the area where the second target gate equipment is located.
And step 512, the second target gate device controls the gate of the second target gate device to open according to the second response message.
It should be noted that, for the specific description of the above steps 510 to 512, reference may be made to the related description in the above embodiments, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the second target gate device can request the server to verify the user information corresponding to the terminal device, so that the second target gate device can control the gate of the second target gate device to be automatically opened under the condition that the user information is verified to be passed, and a user can pass through the area where the second target gate device is located.
Optionally, the communication method provided in the embodiment of the present invention may further include the following step 513.
Step 513, before acquiring the second location information, the server sends a prompt message to the terminal device when detecting that the balance of the user account is insufficient.
It should be noted that, for the specific description of the step 513, reference may be made to the relevant description in the foregoing embodiment, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the server can send the prompt information to the terminal equipment under the condition that the balance of the user account corresponding to the terminal equipment is insufficient, so that the terminal equipment can prompt the user to recharge in time according to the prompt information, and the user can recharge in advance before getting off, thereby avoiding the waste of user time caused by recharging after getting off.
Example four,
The embodiment of the invention provides a communication method. The method can be applied to terminal equipment. The method may include steps 601-602 described below.
Step 601, under the condition that the distance between the terminal equipment and the target communication module is smaller than or equal to the preset distance of the target, the terminal equipment and the target communication module are connected.
The target communication module may be a communication module of a plurality of communication modules provided on a vehicle.
It should be noted that, for specific description of the target communication module, reference may be made to the related description of the target communication module in the foregoing embodiment, and details are not described here again.
Optionally, the terminal device in the embodiment of the present invention may be a mobile terminal device. For example, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), and the like, and embodiments of the present invention are not limited in particular.
In the embodiment of the present invention, the preset target distance may be 2 meters, 5 meters, or 8 meters. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Illustratively, assume that the target preset distance is 5 meters. After a user takes a subway with the terminal equipment, if the distance between the terminal equipment and a target communication module on the subway is less than or equal to 5 meters, the terminal equipment can receive an address message broadcasted by the target communication module and send a message requesting to establish connection to the target communication module according to the address message, so that the terminal equipment can establish connection with the target communication module.
Step 602, in the case that the time length for disconnecting the terminal device and the target communication module is greater than or equal to the preset time length, the terminal device receives the verification information sent by the server.
The verification information can be used for indicating that the server deducts the fee of the user account corresponding to the terminal equipment, and the server is connected with the terminal equipment.
Optionally, in an embodiment of the present invention, the preset time period may be 10 seconds, 20 seconds, 30 seconds, or the like. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not limited.
For example, assume that the preset time period is 10 seconds. After the user leaves the subway with the terminal equipment, the terminal equipment can be disconnected with the target communication module on the subway. If the target communication module detects that the duration of the continuous disconnection between the target communication module and the terminal equipment is longer than 10 seconds, the target communication module can determine that the user carrying the terminal equipment leaves the subway, and sends a second message for indicating the disconnection between the target communication module and the terminal equipment to the server. Therefore, the server can acquire the second position information according to the second message, deduct the fee of the user account corresponding to the terminal device according to the first position information and the second position information, and send the verification information to the terminal device, so that the terminal device can receive the verification information.
The embodiment of the invention provides a communication method, and the terminal equipment can be connected with and disconnected from a target communication module on a vehicle, so that a server can determine whether a user takes a car or not according to position information when the terminal equipment is connected with and disconnected from the target communication module, and deduct the fee of the user account under the condition that the user takes the car, so that the terminal equipment can obtain the fee deduction information of the user account corresponding to the terminal equipment, and the embodiment of the invention can more accurately deduct the fee of the user account.
Optionally, in the embodiment of the present invention, after the step 602, the communication method provided in the embodiment of the present invention may further include the following step 603.
Step 603, the terminal device sends verification information to a first target gate device in the plurality of first gate devices when the distance between the terminal device and the first target gate device is less than or equal to a first preset distance.
The verification information may be used to indicate that the server has deducted a fee from the user account corresponding to the terminal device.
It should be noted that, for specific description of the first target gate device, reference may be made to the related description of the first target gate device in the foregoing embodiment, and details are not described here again.
The first preset distance and the second preset distance may be equal to or different from each other. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the first preset distance may be 2 meters, 5 meters, or 8 meters. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the communication method provided by the embodiment of the invention, the terminal device sends the verification information to the first target gate device, and the first target gate device can forward the verification information to the server and request the server to verify the verification information, so that the server can control the gate of the first target gate device to be automatically opened under the condition that the user account is deducted, and a user can pass through the area where the first target gate device is located.
Optionally, in this embodiment of the present invention, the communication method provided in this embodiment of the present invention may further include step 604 described below.
And step 604, under the condition that the terminal equipment establishes connection with the target communication module, the terminal equipment receives prompt information sent by the server.
The prompt information can be used for prompting that the balance of the user account is insufficient.
It should be noted that, for the specific description of the prompt information, reference may be made to the related description of the prompt information in the foregoing embodiment, and details are not described here again.
According to the communication method provided by the embodiment of the invention, the server can send the prompt information to the terminal equipment under the condition that the balance of the user account corresponding to the terminal equipment is insufficient, so that the terminal equipment can prompt the user to recharge in time according to the prompt information, and the user can recharge in advance before getting off, thereby avoiding the waste of user time caused by recharging after getting off.
Example V,
As shown in fig. 9, an embodiment of the present invention provides a terminal device 900. The terminal device includes a connection module 901 and a reception module 902. The connection module 901 may be configured to establish connection with a target communication module when a distance between the terminal device and the target communication module is less than or equal to a preset target distance, where the target communication module is a communication module of a plurality of communication modules disposed on a vehicle; the receiving module 902 may be configured to receive verification information sent by the server when the time length for disconnecting the terminal device from the target communication module is greater than or equal to a preset time length, where the verification information may be used to indicate that the server has deducted a fee from a user account corresponding to the terminal device, and the server is connected to the terminal device.
Optionally, with reference to fig. 9, as shown in fig. 10, the terminal device provided in the embodiment of the present invention may further include a sending module 903. The sending module 903 may be configured to, after the receiving module 902 receives the verification information sent by the server, send the verification information to a first target gate device of the plurality of first gate devices when a distance between the terminal device and the first target gate device is less than or equal to a first preset distance, where the verification information may be used to indicate that the server has deducted a fee from a user account corresponding to the terminal device.
Optionally, in this embodiment of the present invention, the receiving module 902 may be further configured to receive, when the terminal device establishes a connection with the target communication module, a prompt message sent by the server. The prompt information can be used for prompting that the balance of the user account corresponding to the terminal device is insufficient.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The embodiment of the invention provides the terminal equipment, and the server can send the prompt information to the terminal equipment under the condition that the balance of the user account corresponding to the terminal equipment is insufficient, so that the terminal equipment can prompt the user to recharge in time according to the prompt information, and the user can recharge in advance before getting off, thereby avoiding the waste of user time caused by recharging after getting off.
Example six,
Fig. 11 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 11, the terminal device 200 includes, but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 11 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 210 may be configured to establish a connection with a target communication module when a distance between the terminal device and the target communication module is less than or equal to a preset target distance, where the target communication module is a communication module of a plurality of communication modules disposed on a vehicle; the radio frequency unit 201 may be configured to receive verification information sent by the server when a duration of disconnection between the terminal device and the target communication module is greater than or equal to a preset duration, where the verification information may be used to indicate that the server has deducted a fee from a user account corresponding to the terminal device, and the server is connected to the terminal device.
The embodiment of the invention provides the terminal equipment, and the server can send the prompt information to the terminal equipment under the condition that the balance of the user account corresponding to the terminal equipment is insufficient, so that the terminal equipment can prompt the user to recharge in time according to the prompt information, and the user can recharge in advance before getting off, thereby avoiding the waste of user time caused by recharging after getting off.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 202, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input Unit 204 may include a Graphics Processing Unit (GPU) 2041 and a microphone 2042, and the Graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode.
The terminal device 200 further comprises at least one sensor 205, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 2061 and/or the backlight when the terminal apparatus 200 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The Display unit 206 may include a Display panel 2061, and the Display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, a touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 11 to implement the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the terminal device, and are not limited herein.
The interface unit 208 is an interface for connecting an external device to the terminal apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 200 or may be used to transmit data between the terminal apparatus 200 and the external device.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the terminal device. Processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
Terminal device 200 may also include a power source 211 (e.g., a battery) for providing power to various components, and optionally, power source 211 may be logically connected to processor 210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the terminal device 200 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a server device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the foregoing method embodiment, and can achieve the same technical effect, so as to avoid repetition.
Optionally, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the foregoing method embodiment, and can achieve the same technical effect, so as to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. Examples of the computer-readable storage medium include a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (17)

1. A communication method is applied to server-side equipment, and is characterized in that the server-side equipment comprises a server and a plurality of communication modules connected with the server, and the server-side equipment further comprises a plurality of gate equipment connected with the server; the plurality of communication modules are disposed on a vehicle, the method comprising:
a target communication module in the plurality of communication modules sends a first message to the server, wherein the first message is used for indicating the target communication module to establish connection with terminal equipment;
the server acquires first position information according to the first message, wherein the first position information is used for indicating the position of the target communication module when the target communication module sends the first message;
the target communication module sends a second message to the server, wherein the second message is used for indicating the target communication module to be disconnected with the terminal equipment;
the server acquires second position information according to the second message, wherein the second position information is used for indicating the position of the target communication module when the target communication module sends the second message;
the server deducts a fee from a user account corresponding to the terminal equipment according to the first position information and the second position information;
when the distance between one gate device of the gate devices and the terminal device is smaller than or equal to a preset distance and the terminal device is successfully verified by the one gate device through the server, the one gate device controls the gate of the one gate device to be opened;
wherein each device in the server device and the terminal device use a private virtual network.
2. The method according to claim 1, wherein after the server deducts a fee from the user account corresponding to the terminal device according to the first location information and the second location information, the method further comprises:
the server sends verification information to the terminal equipment, the verification information is used for indicating that the server deducts the fee of the user account, and the server is connected with the terminal equipment.
3. The method of claim 2, wherein the plurality of gate devices comprises a first plurality of gate devices;
the method for controlling the gate of the gate device to open when the distance between one gate device of the gate devices and the terminal device is smaller than or equal to a preset distance and the one gate device successfully verifies the terminal device through the server includes:
when the distance between a first target gate device in the plurality of first gate devices and the terminal device is smaller than or equal to a first preset distance, the first target gate device sends a first request message to the server, wherein the first request message comprises the verification information, and the first request message is used for requesting verification of the verification information;
the server verifies whether the verification information is matched with first information in the server or not according to the first request message, and sends a first response message to the first target gate equipment under the condition that the verification information is matched with the first information, wherein the first response message is used for indicating that the terminal equipment is allowed to pass through an area where the first target gate equipment is located;
and the first target gate equipment controls the gate of the first target gate equipment to be opened according to the first response message.
4. The method of claim 1, wherein the plurality of gate devices comprises a plurality of second gate devices;
the controlling, by the one gate device, the gate of the one gate device to be opened when the distance between the one gate device of the plurality of gate devices and the terminal device is less than or equal to a preset distance and the one gate device successfully verifies the terminal device through the server includes:
when the distance between a second target gate device in the plurality of second gate devices and the terminal device is smaller than or equal to a second preset distance, the second target gate device sends a second request message to the server, wherein the second request message is used for requesting to verify user information corresponding to the terminal device;
the server verifies whether the user information is matched with second information in the server according to the second request message, and sends a second response message to the second target gate equipment under the condition that the user information is matched with the second information, wherein the second response message is used for indicating that the terminal equipment is allowed to pass through an area where the second target gate equipment is located;
and the second target gate equipment controls the gate of the second target gate equipment to be opened according to the second response message.
5. The method of claim 1, further comprising:
and before the server acquires the second position information, sending prompt information to the terminal equipment under the condition of detecting that the balance of the user account is insufficient.
6. The server-side equipment is characterized by comprising a server and a plurality of communication modules connected with the server, and further comprising a plurality of gate equipment connected with the server; the plurality of communication modules are arranged on a vehicle; wherein the content of the first and second substances,
a target communication module in the plurality of communication modules is used for sending a first message and a second message to the server, wherein the first message is used for indicating the target communication module to establish connection with a terminal device, and the second message is used for indicating the target communication module to disconnect from the terminal device;
the server is used for acquiring first position information according to the first message; acquiring second position information according to the second message; according to the first position information and the second position information, deducting a user account corresponding to the terminal equipment; the first position information is used for indicating the position of the target communication module when the target communication module sends the first message, and the second position information is used for indicating the position of the target communication module when the target communication module sends the second message;
the gate device of the plurality of gate devices is configured to control a gate of the gate device to open when a distance between the gate device and the terminal device is less than or equal to a preset distance and the terminal device is successfully verified by the gate device through the server;
wherein each device in the server device and the terminal device use a private virtual network.
7. The server-side device of claim 6, wherein the server is further configured to send, after the fee deduction is performed on the user account, verification information to the terminal device, where the verification information is used to indicate that the server has paid the fee for the user account, and the server is connected to the terminal device.
8. The server-side device of claim 7, wherein the plurality of gate devices comprises a first plurality of gate devices;
a first target gate device of the plurality of first gate devices, configured to send a first request message to the server when a distance between the first target gate device and the terminal device is less than or equal to a first preset distance, where the first request message includes the verification information, and the first request message is used to request verification of the verification information;
the server is further configured to verify whether the verification information is matched with first information in the server according to the first request message, and send a first response message to the first target gate device under the condition that the verification information is matched with the first information, where the first response message is used to indicate that the terminal device is allowed to pass through an area where the first target gate device is located;
the first target gate device is further configured to control a gate of the first target gate device to open according to the first response message.
9. The server-side device of claim 6, wherein the plurality of gate devices comprises a plurality of second gate devices;
a second target gate device of the plurality of second gate devices is configured to send a second request message to the server when a distance between the second target gate device and the terminal device is less than or equal to a second preset distance, where the second request message is used to request to verify user information corresponding to the terminal device;
the server is further configured to verify whether the user information is matched with second information in the server according to the second request message, and send a second response message to the second target gate device under the condition that the user information is matched with the second information, where the second response message is used to indicate that the terminal device is allowed to pass through an area where the second target gate device is located;
and the second target gate device is further configured to control the gate of the second target gate device to be opened according to the second response message.
10. The server-side device of claim 6, wherein the server is further configured to send a prompt message to the terminal device when detecting that a balance of the user account is insufficient before obtaining the second location information.
11. A communication method is applied to a terminal device, and is characterized in that the method comprises the following steps:
under the condition that the distance between the terminal equipment and a target communication module is smaller than or equal to a preset target distance, the terminal equipment is connected with the target communication module, and the target communication module is one of a plurality of communication modules arranged on a vehicle;
receiving verification information sent by a server under the condition that the time length for disconnecting the terminal equipment and the target communication module is greater than or equal to the preset time length, wherein the verification information is used for indicating that the server deducts the fee of a user account corresponding to the terminal equipment, and the server is connected with the terminal equipment;
under the condition that the distance between the terminal equipment and a first target gate equipment in a plurality of first gate equipment is smaller than or equal to a first preset distance, sending verification information to the first target gate equipment, wherein the verification information is used for controlling the gate of the first target gate equipment to be opened by the first target gate equipment;
wherein the terminal device, the server, the plurality of communication modules and the plurality of first gate devices use a private virtual network.
12. The method of claim 11, further comprising:
and receiving prompt information sent by the server under the condition that the terminal equipment is connected with the target communication module, wherein the prompt information is used for prompting that the balance of the user account is insufficient.
13. The terminal equipment is characterized by comprising a connecting module, a sending module and a receiving module;
the connection module is used for establishing connection with a target communication module under the condition that the distance between the terminal equipment and the target communication module is smaller than or equal to a preset target distance, wherein the target communication module is one of a plurality of communication modules arranged on a vehicle;
the receiving module is used for receiving verification information sent by a server under the condition that the time length of disconnection between the terminal equipment and the target communication module is greater than or equal to a preset time length, the verification information is used for indicating that the server deducts the fee of a user account corresponding to the terminal equipment, and the server is connected with the terminal equipment;
the sending module is configured to send the verification information to a first target gate device of the plurality of first gate devices after the receiving module receives the verification information sent by the server, where the verification information is used by the first target gate device to control a gate of the first target gate device to open when a distance between the terminal device and the first target gate device is less than or equal to a first preset distance;
wherein the terminal device, the server, the plurality of communication modules and the plurality of first gate devices use a private virtual network.
14. The terminal device of claim 13,
the receiving module is further configured to receive prompt information sent by the server under the condition that the terminal device is connected with the target communication module, where the prompt information is used to prompt that the balance of the user account is insufficient.
15. A server device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the communication method according to any one of claims 1 to 5.
16. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the communication method according to any one of claims 11 to 12.
17. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the communication method according to one of the claims 1 to 5, or carries out the steps of the communication method according to one of the claims 11 to 12.
CN201811574637.6A 2018-12-21 2018-12-21 Communication method and device Active CN109982237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811574637.6A CN109982237B (en) 2018-12-21 2018-12-21 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811574637.6A CN109982237B (en) 2018-12-21 2018-12-21 Communication method and device

Publications (2)

Publication Number Publication Date
CN109982237A CN109982237A (en) 2019-07-05
CN109982237B true CN109982237B (en) 2021-03-23

Family

ID=67076297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811574637.6A Active CN109982237B (en) 2018-12-21 2018-12-21 Communication method and device

Country Status (1)

Country Link
CN (1) CN109982237B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929238B (en) * 2019-10-29 2022-02-01 维沃移动通信有限公司 Information processing method and device
CN114442502B (en) * 2022-01-27 2024-02-06 北京声智科技有限公司 Information interaction method and system and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825358A (en) * 2005-02-22 2006-08-30 三星电子株式会社 System and method for providing public tranport information
CN103198564A (en) * 2013-03-12 2013-07-10 东莞宇龙通信科技有限公司 Public transport system and public transport billing method
CN105809747A (en) * 2014-12-31 2016-07-27 成都言鼎胜道科技有限公司 Public transportation wireless charging system and method
CN106203945A (en) * 2016-06-29 2016-12-07 新石器龙码(北京)科技有限公司 Vehicle-mounted mobile attendance checking system and method
CN106887048A (en) * 2017-03-24 2017-06-23 南昌专腾科技有限公司 A kind of subway bales catch charge system and method
CN107195002A (en) * 2017-04-01 2017-09-22 深圳市微付充科技有限公司 Implementation method, server, mobile device and monitoring device that traffic is paid
CN206639266U (en) * 2017-03-24 2017-11-14 南昌专腾科技有限公司 A kind of subway bales catch charge system
CN107609859A (en) * 2017-08-31 2018-01-19 八维通科技有限公司 A kind of method of mobile payment based on Quick Response Code and bluetooth for track traffic
CN108090974A (en) * 2016-11-22 2018-05-29 深圳市微付充科技有限公司 gate control method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10152706B2 (en) * 2013-03-11 2018-12-11 Cellco Partnership Secure NFC data authentication

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825358A (en) * 2005-02-22 2006-08-30 三星电子株式会社 System and method for providing public tranport information
CN103198564A (en) * 2013-03-12 2013-07-10 东莞宇龙通信科技有限公司 Public transport system and public transport billing method
CN105809747A (en) * 2014-12-31 2016-07-27 成都言鼎胜道科技有限公司 Public transportation wireless charging system and method
CN106203945A (en) * 2016-06-29 2016-12-07 新石器龙码(北京)科技有限公司 Vehicle-mounted mobile attendance checking system and method
CN108090974A (en) * 2016-11-22 2018-05-29 深圳市微付充科技有限公司 gate control method and system
CN106887048A (en) * 2017-03-24 2017-06-23 南昌专腾科技有限公司 A kind of subway bales catch charge system and method
CN206639266U (en) * 2017-03-24 2017-11-14 南昌专腾科技有限公司 A kind of subway bales catch charge system
CN107195002A (en) * 2017-04-01 2017-09-22 深圳市微付充科技有限公司 Implementation method, server, mobile device and monitoring device that traffic is paid
CN107609859A (en) * 2017-08-31 2018-01-19 八维通科技有限公司 A kind of method of mobile payment based on Quick Response Code and bluetooth for track traffic

Also Published As

Publication number Publication date
CN109982237A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN108171832B (en) Unlocking method of shared bicycle and mobile terminal
CN108629580B (en) Screen-off payment method and mobile terminal
CN108256853B (en) Payment method and mobile terminal
CN109979045B (en) Information output method and terminal equipment
CN108347512B (en) Identity recognition method and mobile terminal
CN110474437B (en) Wireless charging method and related equipment
CN108629579B (en) Payment method and mobile terminal
CN109523253B (en) Payment method and device
CN107682359B (en) Application registration method and mobile terminal
CN111107219B (en) Control method and electronic equipment
CN111132128B (en) Account control method and device
CN108282759B (en) Service processing method and mobile communication terminal
CN109888928B (en) Terminal and wireless charging control method
CN110941501A (en) Application sharing method and electronic equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN109982237B (en) Communication method and device
CN110571952B (en) Wireless charging method and related equipment
CN110571953B (en) Wireless charging method and related equipment
CN110225040B (en) Information processing method and terminal equipment
CN109474747B (en) Information prompting method and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN110929238B (en) Information processing method and device
CN110576765B (en) Wireless charging method and related equipment
CN110474436B (en) Wireless charging method and related equipment
CN109547622B (en) Verification method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant