Disclosure of Invention
The embodiment of the invention provides a parking space information acquisition method, a mobile terminal and vehicle-mounted equipment, which can reduce the loss of the mobile terminal to flow and electric quantity and improve the personal safety of a vehicle owner.
The embodiment of the invention provides a parking space information acquisition method, which comprises the following steps:
receiving navigation positioning information sent by vehicle-mounted equipment, wherein the navigation positioning information comprises information of the current position of the vehicle-mounted equipment, and the navigation positioning information is sent when the vehicle-mounted equipment detects that the distance between the vehicle-mounted equipment and a navigation terminal point is within a first preset distance threshold;
acquiring parking lot information with the distance from the current position of the vehicle-mounted equipment within a second preset distance threshold;
and outputting the acquired parking lot information.
Optionally, the method further includes:
the method comprises the steps of obtaining Bluetooth equipment information of vehicle-mounted equipment, wherein the Bluetooth equipment information comprises a Bluetooth application protocol supported by the vehicle-mounted equipment;
establishing Bluetooth connection with the vehicle-mounted equipment according to the Bluetooth application protocol;
the receiving of the navigation positioning information sent by the vehicle-mounted equipment comprises:
and receiving the navigation positioning information sent by the vehicle-mounted equipment through the Bluetooth connection.
Optionally, the obtaining of the parking lot information that the distance from the current position of the vehicle-mounted device is within a second preset distance threshold includes:
detecting whether a data connection is opened locally;
if not, opening local data connection;
and acquiring parking lot information with the distance from the current position of the vehicle-mounted equipment within a second preset distance threshold value through the data connection.
Optionally, the outputting the acquired parking lot information includes:
outputting the parking lot information through a local output device; or,
and sending the parking lot information to the vehicle-mounted equipment so that the vehicle-mounted equipment outputs the parking lot information.
The embodiment of the invention also provides another parking space information acquisition method, which comprises the following steps:
monitoring the geographic position of the vehicle-mounted equipment;
and when the distance between the current position of the vehicle-mounted equipment and the navigation end point is within a first preset distance threshold, sending navigation positioning information to the mobile terminal, wherein the navigation positioning information comprises the current position information of the vehicle-mounted equipment, so that the mobile terminal acquires parking lot information according to the navigation positioning information.
Optionally, after the sending the navigation positioning information to the mobile terminal, the method further includes:
receiving parking lot information sent by the mobile terminal;
and outputting the parking lot information through a local output device.
Optionally, the method further includes:
establishing Bluetooth connection with the mobile terminal;
the sending the navigation positioning information to the mobile terminal comprises:
and sending the navigation positioning information to the mobile terminal through the Bluetooth connection.
Accordingly, an embodiment of the present invention provides a mobile terminal, including:
the navigation positioning information comprises information of the current position of the vehicle-mounted equipment, and the navigation positioning information is sent when the vehicle-mounted equipment detects that the distance between the vehicle-mounted equipment and a navigation terminal point is within a first preset distance threshold;
the acquisition module is used for acquiring parking lot information of which the distance from the current position of the vehicle-mounted equipment is within a second preset distance threshold;
and the output module is used for outputting the acquired parking lot information.
Optionally, the mobile terminal further includes:
the Bluetooth scanning module is used for acquiring Bluetooth device information of the vehicle-mounted device, wherein the Bluetooth device information comprises a Bluetooth application protocol supported by the vehicle-mounted device;
the Bluetooth connection module is used for establishing Bluetooth connection with the vehicle-mounted equipment according to the Bluetooth application protocol;
the receiving module is specifically configured to:
and receiving the navigation positioning information sent by the vehicle-mounted equipment through the Bluetooth connection.
Optionally, the obtaining module includes:
the detection unit is used for detecting whether the data connection is opened locally;
the control unit is used for starting local data connection if the data connection is not started;
and the acquisition unit is used for acquiring the parking lot information of which the distance from the current position of the vehicle-mounted equipment is within a second preset distance threshold value through the data connection.
Optionally, the output module is specifically configured to:
an output device for outputting the parking lot information; or,
and the sending unit is used for sending the parking lot information to the vehicle-mounted equipment so as to enable the vehicle-mounted equipment to output the parking lot information.
Correspondingly, an embodiment of the present invention provides an on-board device, including:
the monitoring module is used for monitoring the geographic position of the vehicle-mounted equipment;
the sending module is used for sending navigation positioning information to the mobile terminal when the distance between the current position of the vehicle-mounted equipment and the navigation end point is within a first preset distance threshold, wherein the navigation positioning information comprises the current position information of the vehicle-mounted equipment, so that the mobile terminal can obtain parking lot information according to the navigation positioning information.
Optionally, the vehicle-mounted device further includes:
the receiving module is used for receiving the parking lot information sent by the mobile terminal;
and the output device is used for outputting the parking lot information.
Optionally, the vehicle-mounted device further includes:
the Bluetooth connection module is used for establishing Bluetooth connection with the mobile terminal;
the sending module is specifically configured to:
and sending the navigation positioning information to the mobile terminal through the Bluetooth connection.
The embodiment of the invention has the following beneficial effects:
according to the invention, the vehicle-mounted equipment is used for navigation positioning, when the fact that the distance between the vehicle-mounted equipment and the navigation terminal is within the first preset distance threshold value is detected, the mobile terminal sends the navigation positioning information to the mobile terminal, and the mobile terminal inquires the parking lot information according to the navigation positioning information.
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.
Please refer to fig. 1, in which fig. 1 is a schematic flowchart of a parking space information obtaining method according to an embodiment of the present invention; the embodiments of the present invention are described from the perspective of a mobile terminal. The mobile terminal may comprise a personal computer, a tablet computer, a mobile phone or an e-reader. The method as shown in fig. 1 may include:
step S11, receiving navigation positioning information sent by the vehicle-mounted device, wherein the navigation positioning information comprises information of the current position of the vehicle-mounted device, and the navigation positioning information is sent when the vehicle-mounted device detects that the distance between the vehicle-mounted device and a navigation terminal is within a first preset distance threshold.
The mobile terminal can receive the navigation positioning information sent by the vehicle-mounted equipment through short-distance transmission modes such as Bluetooth connection, WiFi connection or NFC connection.
Preferably, the mobile terminal and the vehicle-mounted device can be connected in a short distance in advance.
Taking bluetooth connection as an example, the mobile terminal can start bluetooth, and acquire bluetooth device information of the vehicle-mounted device through scanning, wherein the bluetooth device information comprises a bluetooth application protocol supported by the vehicle-mounted device, and if the bluetooth application protocol indicates that the vehicle-mounted device supports bluetooth low power consumption connection, preferably, the mobile terminal establishes bluetooth connection with the vehicle-mounted device through bluetooth low power consumption; if the Bluetooth application protocol indicates that the vehicle-mounted equipment only supports the traditional Bluetooth connection, the mobile terminal establishes the Bluetooth connection with the vehicle-mounted equipment based on an SPP (Serial Port Profile) protocol. Further, after the bluetooth connection is established between the mobile terminal and the vehicle-mounted device, the mobile terminal is set to be in a Central role (i.e., receiving data), and the vehicle-mounted device is set to be in a peripheral role (i.e., sending data).
And step S12, acquiring parking lot information with the distance from the current position of the vehicle-mounted device within a second preset distance threshold.
In an optional implementation manner, after the mobile terminal acquires the navigation positioning information sent by the vehicle-mounted device, the information of the current position of the vehicle-mounted device in the navigation positioning information is extracted, and the information is queried according to the information of the current position to acquire the parking lot information of which the distance from the current position of the vehicle-mounted device is within a second preset threshold value.
The parking lot information comprises the position of the parking lot and the number of free parking spaces; further, the parking lot information may further include a charge standard.
It should be noted that how the mobile terminal determines the parking lot information according to the specific location is understood by those skilled in the art, and the description of the present invention is omitted.
It should be further noted that the second preset threshold may be a default of the mobile terminal, or may be set by the user, and the user may also adjust the second preset threshold according to actual needs.
Further, after the mobile terminal acquires the navigation positioning sent by the vehicle-mounted device, the mobile terminal can detect whether the local data connection is opened or not, if the local data connection is not opened, the mobile terminal can automatically open the local data connection, and the parking lot information of which the distance from the current position of the vehicle-mounted device is within a second preset distance threshold value is acquired through the data connection.
And step S13, outputting the acquired parking lot information.
In specific implementation, if the mobile terminal acquires the parking lot information, the mobile terminal outputs the parking lot information.
In an alternative embodiment, the mobile terminal may output the parking lot information through a local output device. Preferably, the mobile terminal can display the parking lot information through a display screen of the terminal. In specific implementation, the mobile terminal can load a map, and highlight the current position of the vehicle-mounted device and the obtained number of the parking lots and the obtained number of the idle parking spaces on the map. Optionally, the mobile terminal may prompt the parking lot information through a speaker at the home terminal. In a specific implementation, the mobile terminal may determine an arrangement order of the parking lots, such as an order of a small-to-large distance between each parking lot and the current position, an order of a large-to-small number of free parking spaces of each parking lot and a small-to-large charging standard, and then sequentially output corresponding parking lot information through the speakers according to the arrangement order.
In another alternative embodiment, the mobile terminal may transmit parking lot information to the vehicle-mounted device, so that the vehicle-mounted device outputs the parking lot information. If the parking lot information is transmitted to the vehicle-mounted device through the bluetooth connection, the mobile terminal needs to be set to a personal role (i.e., data transmission), and the vehicle-mounted device needs to be set to a Central role (i.e., data reception).
It should be noted that how the vehicle-mounted device outputs the parking lot information may refer to the description of the mobile terminal side, and is not described herein again.
Please refer to fig. 2, fig. 2 is a schematic flowchart illustrating another parking space information obtaining method according to an embodiment of the present invention; the embodiment of the invention is described from the perspective of vehicle-mounted equipment. The method as shown in fig. 2 may include:
and step S21, monitoring the geographic position of the vehicle-mounted equipment.
In an optional implementation mode, the vehicle-mounted device is provided with a GPS module, and in an off-line situation, the vehicle-mounted device can be navigated and positioned through the GPS module.
It should be noted that, in the offline case, how the GPS module locates the vehicle-mounted device is understandable to those skilled in the art, and is not described herein again.
Step S22, when the distance between the current position of the vehicle-mounted device and the navigation end point is within a first preset distance threshold, sending navigation positioning information to the mobile terminal, wherein the navigation positioning information comprises the information of the current position of the vehicle-mounted device, so that the mobile terminal can obtain parking lot information according to the navigation positioning information.
In the concrete implementation, when the vehicle-mounted device acquires the information of the current position, the distance between the current position and the navigation end point is determined according to the information of the current position and the navigation end point information, and when the distance is within a first preset threshold value, it is indicated that the distance between the vehicle-mounted device and the navigation end point is short, the navigation positioning information is sent to the mobile terminal, and the navigation positioning information comprises the information of the current position of the vehicle-mounted device, so that the mobile terminal acquires the parking lot information according to the navigation positioning information.
It should be noted that the first preset threshold may be a default of the mobile terminal, or may be set by the user, and the user may also adjust the first preset threshold according to actual needs.
Further, after the vehicle-mounted device sends the navigation positioning information to the mobile terminal, the vehicle-mounted device can also receive the parking lot information sent by the mobile terminal, and output the parking lot information through a local output device.
Preferably, the vehicle-mounted device can display the parking lot information through a display screen of the home terminal. In specific implementation, the current position of the vehicle-mounted device, the obtained parking lot and the number of the obtained vacant parking spaces of the parking lot can be highlighted on a map by the vehicle-mounted device. Optionally, the vehicle-mounted device may prompt the parking lot information through a speaker at the home terminal. In specific implementation, the vehicle-mounted device may determine an arrangement order of the parking lots, such as an order of a small-to-large distance between each parking lot and the current position, an order of a large-to-small number of free parking spaces of each parking lot and a small-to-large charging standard, and then sequentially output corresponding parking lot information through the speakers according to the arrangement order.
The data interaction between the vehicle-mounted equipment and the mobile terminal can be realized through short-distance transmission modes such as Bluetooth connection, WiFi connection or NFC connection; preferably, the vehicle-mounted device and the mobile terminal can be connected in a short distance in advance. Taking bluetooth connection as an example, after the mobile terminal establishes bluetooth connection with the vehicle-mounted device, the mobile terminal is set to be in a Central role (i.e., receiving data), and the vehicle-mounted device is set to be in a peripheral role (i.e., sending data). And when the distance between the current position of the vehicle-mounted equipment and the navigation end point is within a first preset distance threshold, the navigation positioning information can be sent to the mobile terminal through the Bluetooth connection.
Please refer to fig. 3, fig. 3 is a schematic flowchart of another parking space information obtaining method according to an embodiment of the present invention; embodiments of the present invention are described from a system perspective. The method as shown in fig. 3 may include:
step S31, optionally, the mobile terminal establishes a bluetooth connection with the in-vehicle device.
The mobile terminal can also establish NFC connection or wifi connection with the vehicle-mounted device.
And step S32, the vehicle-mounted equipment monitors the geographical position of the vehicle-mounted equipment.
And step S33, when the distance between the current position of the vehicle-mounted equipment and the navigation end point is within a first preset distance threshold, the vehicle-mounted equipment sends navigation positioning information to the mobile terminal through the Bluetooth connection, and the navigation positioning information comprises the information of the current position of the vehicle-mounted equipment.
And step S34, the mobile terminal receives the navigation positioning information sent by the vehicle-mounted equipment.
And step S35, the mobile terminal acquires the parking lot information of which the distance from the current position of the vehicle-mounted device is within a second preset distance threshold.
And step S36, the mobile terminal outputs the parking lot information through the display screen.
Note that the mobile terminal may output the parking lot information through a speaker; or the mobile terminal sends the parking lot information to the vehicle-mounted equipment through the Bluetooth connection, and the vehicle-mounted equipment outputs the parking lot information.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 4, the mobile terminal 4 may include at least a receiving module 41, an obtaining module 42, and an outputting module 43, where:
the receiving module 41 is configured to receive navigation positioning information sent by a vehicle-mounted device, where the navigation positioning information includes information of a current position of the vehicle-mounted device, and the navigation positioning information is sent when the vehicle-mounted device detects that a distance between the vehicle-mounted device and a navigation end point is within a first preset distance threshold.
And the obtaining module 42 is configured to obtain parking lot information, where a distance from the current position of the vehicle-mounted device is within a second preset distance threshold.
As shown in fig. 5, the obtaining module 42 may further include:
a detecting unit 421, configured to detect whether a data connection is opened locally; a control unit 422, configured to open a local data connection if a data connection is not opened; an obtaining unit 423, configured to obtain, through the data connection, parking lot information whose distance from the current location of the vehicle-mounted device is within a second preset distance threshold.
And the output module 43 is configured to output the acquired parking lot information.
As shown in fig. 6, the output module 43 may further include:
an output device 431 for outputting the parking lot information; or,
a sending unit 432, configured to send the parking lot information to the vehicle-mounted device, so that the vehicle-mounted device outputs the parking lot information.
Further, the mobile terminal 4 may further include:
the bluetooth scanning module 44 is configured to acquire bluetooth device information of a vehicle-mounted device, where the bluetooth device information includes a bluetooth application protocol supported by the vehicle-mounted device; the Bluetooth connection module 45 is used for establishing Bluetooth connection with the vehicle-mounted equipment according to the Bluetooth application protocol; the receiving module 41 is specifically configured to: and receiving the navigation positioning information sent by the vehicle-mounted equipment through the Bluetooth connection.
It can be understood that the functions of the functional modules of the mobile terminal 4 in this embodiment can be implemented according to the method in the foregoing method embodiment, and the description of the method embodiment in fig. 1 to fig. 3 may be referred to specifically, and are not repeated herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a vehicle-mounted device according to an embodiment of the present invention. As shown in fig. 7, the vehicle-mounted device 7 may include at least a monitoring module 71 and a sending module 72, where:
the monitoring module 71 is configured to monitor a geographic location of the vehicle-mounted device;
the sending module 72 is configured to send navigation positioning information to the mobile terminal when a distance between the current position of the vehicle-mounted device and the navigation end point is within a first preset distance threshold, where the navigation positioning information includes information of the current position of the vehicle-mounted device, so that the mobile terminal obtains parking lot information according to the navigation positioning information.
Further, the in-vehicle apparatus 7 further includes:
a receiving module 73, configured to receive the parking lot information sent by the mobile terminal;
and an output device 74 for outputting the parking lot information.
Optionally, as shown in fig. 8, the vehicle-mounted device 7 may further include:
a bluetooth connection module 75, configured to establish a bluetooth connection with the mobile terminal;
the sending module 72 is specifically configured to:
and sending the navigation positioning information to the mobile terminal through the Bluetooth connection.
It can be understood that the functions of the functional modules of the vehicle-mounted device 7 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and may specifically correspond to the related description of the method embodiment in fig. 1 to fig. 3, which is not described herein again.
The embodiment of the invention carries out navigation positioning through the vehicle-mounted equipment, when the fact that the distance between the vehicle-mounted equipment and the navigation terminal is within the first preset distance threshold value is detected, the mobile terminal sends the navigation positioning information to the mobile terminal, and the mobile terminal inquires the parking lot information according to the navigation positioning information.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that acts and modules referred to are not necessarily required to practice embodiments of the invention.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs.
The modules or units in the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (central processing unit), or an ASIC (application specific integrated circuit).
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.