Vehicle control method, vehicle control device, vehicle, computer device, and storage medium

文档序号:1562723 发布日期:2020-01-24 浏览:21次 中文

阅读说明:本技术 车辆控制方法、装置、车辆、计算机设备和存储介质 (Vehicle control method, vehicle control device, vehicle, computer device, and storage medium ) 是由 杨磊 徐登平 木春发 于 2019-10-25 设计创作,主要内容包括:本申请涉及一种车辆控制方法、装置、车辆、计算机设备和存储介质。所述方法包括:接收预设时间内车辆采集并发送的多个车辆位置信息;确定多个所述车辆位置信息中超出预设行驶区域的车辆位置信息的数量;当所述超出预设行驶区域的车辆位置信息的数量大于预设值时,向所述车辆发送断电控制指令;所述断电控制指令用于指示所述车辆的储能设备停止为所述车辆供电。通过本发明实施例,可以对超出正常运营区域的车辆进行断电处理,从而避免车辆远离正常运营区域,进而降低了运维人员的维护难度,降低了维护成本。(The application relates to a vehicle control method, a vehicle control device, a vehicle, a computer device and a storage medium. The method comprises the following steps: receiving a plurality of pieces of vehicle position information which are collected and sent by vehicles within preset time; determining the number of pieces of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information; when the number of the vehicle position information exceeding the preset driving area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control instruction is used for indicating an energy storage device of the vehicle to stop supplying power to the vehicle. By the embodiment of the invention, the power-off treatment can be carried out on the vehicles exceeding the normal operation area, so that the vehicles are prevented from being far away from the normal operation area, the maintenance difficulty of operation and maintenance personnel is reduced, and the maintenance cost is reduced.)

1. A vehicle control method, characterized by comprising:

receiving a plurality of pieces of vehicle position information which are collected and sent by vehicles within preset time;

determining the number of pieces of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information;

when the number of the vehicle position information exceeding the preset driving area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control instruction is used for indicating an energy storage device of the vehicle to stop supplying power to the vehicle.

2. The method of claim 1, wherein after said sending a power-off control command to the vehicle, the method further comprises:

when the number of the vehicle position information exceeding the preset running area is smaller than the preset value, a power supply control instruction is sent to the vehicle; the power supply control instruction is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

3. The method according to claim 1, wherein the receiving of the plurality of pieces of vehicle position information collected and transmitted by the vehicle within the preset time comprises:

receiving the vehicle position information which is acquired by the vehicle according to a first preset time interval and sent according to a second preset time interval; wherein the first preset time interval is smaller than the second preset time interval.

4. The method of claim 1, wherein after receiving a plurality of vehicle location information collected and transmitted by a vehicle within a preset time, the method further comprises:

storing a plurality of pieces of vehicle position information into a Kafka queue established in advance;

correspondingly, the determining the number of the vehicle position information exceeding the preset driving area in the plurality of the vehicle position information comprises:

obtaining a plurality of pieces of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude;

determining whether the longitude and latitude of each vehicle exceed a preset driving area corresponding to the vehicle identification;

and counting the number of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

5. The method according to any one of claims 1-4, further comprising:

storing a current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

6. The method according to any one of claims 1-4, wherein the power-off control command is further used for instructing the vehicle to emit a prompt message, wherein the prompt message comprises at least one of a sound prompt and a light prompt; the audible prompts include voice prompts.

7. A vehicle control apparatus, characterized in that the apparatus comprises:

the vehicle position information receiving module is used for receiving vehicle position information which is acquired and sent by a vehicle within preset time;

the excess area number determining module is used for determining the number of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information;

the power-off control instruction sending module is used for sending a power-off control instruction to the vehicle when the number of the vehicle position information exceeding the preset driving area is larger than a preset value; the power-off control instruction is used for instructing an energy storage device of the vehicle to stop supplying power to the target vehicle.

8. A vehicle is characterized in that the vehicle is provided with a control device, a collection device, an energy storage device and a communication device;

the acquisition equipment is used for acquiring vehicle position information;

the communication equipment is used for sending the vehicle position information to a server and receiving a power-off control instruction sent by the server;

and the control equipment is used for controlling the energy storage equipment to stop supplying power according to the power-off control instruction.

9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.

Technical Field

The present application relates to the field of vehicle technologies, and in particular, to a vehicle control method and apparatus, a vehicle, a computer device, and a storage medium.

Background

With the development of science and technology, shared vehicles such as shared moped and shared electric automobile appear in the market, and great convenience is provided for the life of people.

Disclosure of Invention

In view of the above, it is necessary to provide a vehicle control method, a device, a vehicle, a computer device, and a storage medium, which can perform power-off processing on a vehicle traveling beyond a normal operating area, thereby reducing the difficulty of maintenance for operation and maintenance personnel.

In a first aspect, an embodiment of the present invention provides a vehicle control method, including:

receiving a plurality of pieces of vehicle position information which are collected and sent by vehicles within preset time;

determining the number of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information;

when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle.

In one embodiment, after the sending of the power-off control command to the vehicle, the method further includes:

when the quantity of the vehicle position information exceeding the preset running area is smaller than a preset value, a power supply control instruction is sent to the vehicle; the power supply control command is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

In one embodiment, the receiving the plurality of pieces of vehicle location information collected and sent by the vehicle within the preset time includes:

receiving vehicle position information which is acquired by a vehicle according to a first preset time interval and sent according to a second preset time interval; the first preset time interval is smaller than the second preset time interval.

In one embodiment, after receiving the plurality of pieces of vehicle position information collected by the vehicle within the preset time, the method further includes:

storing a plurality of vehicle position information into a pre-established Kafka queue;

correspondingly, the determining the number of the vehicle position information exceeding the preset running area in the plurality of pieces of vehicle position information includes:

obtaining a plurality of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude;

determining whether the longitude and latitude of the vehicle exceed a preset driving area corresponding to the vehicle identification;

and counting the quantity of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

In one embodiment, the method further comprises:

storing a current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

In one embodiment, the power-off control instruction is further used for instructing the vehicle to send out prompt information, wherein the prompt information comprises at least one of sound prompt and light prompt; the audible prompts include voice prompts.

In a second aspect, an embodiment of the present invention provides a vehicle control apparatus, including:

the vehicle position information receiving module is used for receiving a plurality of pieces of vehicle position information which are collected and sent by vehicles within preset time;

the excess area number determining module is used for determining the number of the vehicle position information exceeding the preset running area in the plurality of pieces of vehicle position information;

the power-off control instruction sending module is used for sending a power-off control instruction to the vehicle when the quantity of the vehicle position information exceeding the preset driving area is larger than a preset value; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle.

In one embodiment, the apparatus further comprises:

the power supply control instruction sending module is used for sending a power supply control instruction to the vehicle when the quantity of the vehicle position information exceeding the preset running area is smaller than a preset value; the power supply control command is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

In one embodiment, the vehicle position information receiving module is specifically configured to receive vehicle position information that is acquired by a vehicle according to a first preset time interval and sent according to a second preset time interval; the first preset time interval is smaller than the second preset time interval.

In one embodiment, the apparatus further comprises:

the vehicle position information storage module is used for storing a plurality of pieces of vehicle position information into a Kafka queue established in advance;

correspondingly, the excess area number determining module is specifically configured to obtain a plurality of pieces of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude; determining whether the longitude and latitude of each vehicle exceed a preset driving area corresponding to the vehicle identification; and counting the quantity of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

In one embodiment, the apparatus further comprises:

the current vehicle state storage module is used for storing the current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

In one embodiment, the power-off control instruction is further used for instructing the vehicle to send out prompt information, wherein the prompt information comprises at least one of sound prompt and light prompt; the audible prompts include voice prompts.

In a third aspect, an embodiment of the present invention provides a vehicle, where the vehicle is provided with a control device, a collection device, an energy storage device, and a communication device;

the acquisition equipment is used for acquiring vehicle position information;

the communication equipment is used for sending the vehicle position information to the server and receiving the power-off control instruction sent by the server;

and the control equipment is used for controlling the energy storage equipment to stop supplying power according to the power-off control instruction.

In a fourth aspect, an embodiment of the present invention provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the method when executing the computer program.

In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the method as described above.

According to the vehicle control method, the vehicle control device, the computer equipment and the storage medium, the server receives a plurality of pieces of vehicle position information which are collected and sent by the vehicle within the preset time; determining the number of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information; when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle. According to the embodiment of the invention, if the vehicle exceeds the normal operation area, the power-off processing is carried out on the vehicle, so that the vehicle is prevented from being far away from the normal operation area, the maintenance difficulty of operation and maintenance personnel is reduced, and the maintenance cost is reduced.

Drawings

FIG. 1 is a diagram of an exemplary vehicle control system;

FIG. 2 is a schematic flow chart diagram of a vehicle control method in one embodiment;

FIG. 3 is a schematic flow chart diagram of a vehicle control method in another embodiment;

FIG. 4 is a block diagram showing the construction of a vehicle control apparatus according to one embodiment;

FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The vehicle control method provided by the application can be applied to the application environment shown in FIG. 1. The application environment includes a vehicle 101 and a server 102, and the vehicle 101 and the server 102 communicate via a network. The vehicle 101 is not limited to a power-assisted vehicle and an electric vehicle; the server 102 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.

In one embodiment, as shown in fig. 2, a vehicle control method is provided, which is described by taking the method as an example applied to the server in fig. 1, and comprises the following steps:

step 201, receiving a plurality of vehicle position information collected and sent by a vehicle within a preset time.

In this embodiment, a vehicle may be provided with a vehicle position information acquisition device, such as a GPS (global positioning System) module or a mobile communication module. The embodiment of the invention does not limit the acquisition equipment in detail, and can be set according to actual conditions. The acquisition equipment can acquire the vehicle position information in real time and also can acquire the vehicle position information according to a preset time interval. For example, the vehicle position information is collected once every 10s, or the vehicle position information is collected once every 30 s. After the vehicle obtains the vehicle position information, the vehicle position information can be sent to the server in real time, and the vehicle position information can also be sent to the server at preset time intervals. The server receives a plurality of pieces of vehicle position information transmitted by the vehicles. For example, the vehicle sends the vehicle position information to the server every 2min, and the server receives a plurality of pieces of vehicle position information collected by the vehicle within 2 min. The embodiment of the invention does not limit the preset time in detail, and can be set according to the actual situation.

In step 202, the number of pieces of vehicle position information exceeding a preset travel area among the plurality of pieces of vehicle position information is determined.

In this embodiment, after receiving the plurality of pieces of vehicle position information, the server determines whether the vehicle exceeds a preset travel area. Specifically, the server firstly judges whether the position information of each vehicle exceeds a preset running area, and then counts the number of the position information of the vehicles exceeding the preset running area; and determining whether the vehicle exceeds the preset driving area according to the quantity of the vehicle position information exceeding the preset driving area. The preset driving area may be determined according to an administrative area, or may be determined according to an operation and maintenance area of an operation and maintenance person. The preset driving area is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.

For example, the server receives 8 pieces of vehicle position information transmitted by the vehicle at one time, respectively determines whether each piece of vehicle position information exceeds the preset travel area, and then determines the number of pieces of vehicle position information exceeding the preset travel area, for example, determines that 6 pieces of vehicle position information exceed the preset travel area, or determines that 4 pieces of vehicle position information exceed the preset travel area.

Step 203, when the quantity of the vehicle position information exceeding the preset driving area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle.

In this embodiment, after determining that the vehicle position information exceeds the number of the preset driving areas, it is determined whether the number of the vehicle position information exceeding the preset driving areas is greater than a preset value, if so, it is indicated that the vehicle exceeds the preset driving areas, and the server sends a power-off control instruction to the vehicle. And after the vehicle receives the power-off control instruction, controlling the energy storage equipment on the vehicle to stop supplying power according to the power-off control instruction.

For example, the preset value is 5, if the number of the vehicle position information exceeding the preset travel area is 6, that is, the number of the vehicle position information exceeding the preset travel area is greater than the preset value, the server sends a control instruction to the vehicle, and the vehicle controls the battery to stop supplying power after receiving the control instruction. Like this, the vehicle using motor can only ride, and electric automobile can not continue to travel to the suggestion user vehicle has surpassed normal operation region, avoids the vehicle to keep away from normal operation region. The preset value is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.

In the vehicle control method, a plurality of pieces of vehicle position information which are collected and sent by a vehicle within a preset time are received; determining the number of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information; when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle. According to the embodiment of the invention, if the vehicle exceeds the normal operation area, the server performs power-off processing on the vehicle, so that the vehicle is prevented from being far away from the normal operation area, the maintenance difficulty of operation and maintenance personnel is reduced, and the maintenance cost is reduced.

In another embodiment, as shown in fig. 3, the present embodiment relates to an alternative process of the vehicle control method. On the basis of the embodiment shown in fig. 2, the method may specifically include the following steps:

step 301, receiving vehicle position information which is acquired by a vehicle according to a first preset time interval and sent according to a second preset time interval; the first preset time interval is smaller than the second preset time interval.

In this embodiment, the vehicle may acquire the vehicle position information according to a first preset time interval, and send the vehicle position information according to a second preset time interval. For example, the vehicle collects the vehicle position information every 15 seconds, and after collecting 8 pieces of vehicle position information, the collected 8 pieces of vehicle position information are transmitted to the server at one time, that is, the vehicle position information is transmitted every 120 seconds. The server receives the vehicle position information sent by the vehicle. The vehicle position information collected for many times is sent to the server by the vehicle at one time, so that frequent sending can be avoided, and the sending efficiency is improved.

Step 302, storing a plurality of vehicle position information into a pre-established Kafka queue.

In this embodiment, a Kafka queue may be pre-established, where Kafka is a high-throughput distributed publish-subscribe message system, and has the following characteristics: the persistence of the message is provided by a disk data structure of O (1), and the structure can also keep the stable performance for long-time TB message storage; has high throughput, even the very common hardware Kafka can support millions of messages per second; supporting partitioning of messages by Kafka server and consumer clusters; and Hadoop parallel data loading is supported. The server stores the vehicle position information in the Kafka queue after receiving the vehicle position information, and storage resources of the server can be saved because Kafka has high throughput.

Step 303, obtaining a plurality of vehicle position information from the Kafka queue; the vehicle location information includes a vehicle identification and vehicle latitude and longitude.

In this embodiment, when determining whether the vehicle exceeds the preset driving area, the server obtains a plurality of pieces of vehicle location information from the Kafka queue, where the vehicle location information may include a vehicle identifier and vehicle longitude and latitude, and may further include at least one of a current vehicle state and a timestamp.

For example, the server acquires vehicle position information from the Kafka queue, wherein the vehicle position information comprises a vehicle identifier a, the longitude and latitude of the vehicle a are 108.48 degrees from east longitude and latitude, 33.82 degrees from north latitude, the current vehicle state is a power supply state, and the timestamp is 13:51 in 2019, 10, 9 and 51. The embodiment of the invention does not limit the vehicle position information in detail, and can be set according to the actual situation.

And step 304, determining whether the longitude and latitude of each vehicle exceed the preset driving area corresponding to the vehicle identification.

In the embodiment, after the vehicle position information is acquired, a preset driving area corresponding to the vehicle identifier is determined according to the vehicle identifier; and judging whether the longitude and latitude of the vehicle exceed the preset driving area corresponding to the vehicle identification. For example, the preset driving area corresponding to the vehicle identifier a is 108.50 degrees to 109.00 degrees of east longitude and 33.50 degrees to 34.00 degrees of north latitude, and it is determined that the longitude and latitude of the vehicle a is 108.48 degrees of east longitude and 33.82 degrees of north latitude exceed the preset driving area corresponding to the vehicle identifier a.

And 305, counting the quantity of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

For example, the number of the vehicle position information exceeding the preset running area corresponding to the vehicle identifier is counted to be 6; or counting the number of the vehicle position information exceeding the preset running area corresponding to the vehicle identifier to be 4.

And step 306, when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle.

In this embodiment, when the vehicle position information exceeding the preset traveling area is greater than the preset value, a power-off control instruction is sent to the vehicle. The power-off control instruction is used for indicating the energy storage equipment of the vehicle to stop supplying power to the vehicle; the vehicle is also used for indicating the vehicle to send out prompt information, and the prompt information comprises at least one of sound prompt and light prompt; the audible prompts include voice prompts.

For example, the server sends a power-off control instruction to the vehicle a, and the vehicle a controls the battery to stop supplying power after receiving the power-off control instruction. Meanwhile, the vehicle a also sends out prompt information, such as voice broadcast of "the vehicle exceeds the preset driving area"; or the light flickers to prompt the user that the vehicle exceeds the preset driving area. The embodiment of the invention does not limit the prompt information in detail, and can be set according to the actual situation.

In actual operation, the vehicle can send out prompt information after receiving the power-off control instruction, and if the vehicle does not return to the preset running area within the preset time period after the prompt information is sent out, the energy storage device is controlled to stop supplying power.

Step 307, when the number of the vehicle position information exceeding the preset driving area is smaller than a preset value, sending a power supply control instruction to the vehicle; the power supply control command is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

In this embodiment, after the power-off control instruction is sent to the vehicle, the vehicle position information sent by the vehicle is continuously received, and whether the vehicle returns to the preset driving area is determined according to the subsequently received vehicle position information. And if the quantity of the vehicle position information exceeding the preset running area is determined to be less than the preset value, judging that the vehicle returns to the preset running area, and sending a power supply control instruction to the vehicle. And after the vehicle receives the power supply control command, controlling the energy storage equipment to supply power again. Therefore, the user is prompted to return to the normal operation area, and the use of the system is more convenient.

For example, after the server transmits a power-off control instruction to the vehicle a, the vehicle a controls the battery to stop supplying power. And the server receives the vehicle position information subsequently sent by the vehicle A, determines that the number of the vehicle position information exceeding the preset running area is 4 and is smaller than the preset value 5, namely, determines that the vehicle A returns to the preset running area, and sends a power supply control instruction to the vehicle A. And after the vehicle A receives the power supply control command, the battery is controlled to supply power for the vehicle again.

Step 308, storing the current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

In this embodiment, after the power-off control instruction is sent to the vehicle, it may be determined that the current vehicle state of the vehicle is the power-off state, and then the power-off state is stored in the Redis. After the power supply control instruction is transmitted to the vehicle, the current vehicle state of the vehicle may be determined to be a power supply state, and then the power supply state is stored into the Redis. Redis is a key-value storage system, and the value types supporting storage comprise string, list, set, zset and hash. These data types all support push/pop, add/remove, and intersect union and difference, and richer operations, and these operations are all atomic. On the basis, Redis also supports various different sorting modes, and data is cached in a memory. And the current vehicle state is stored by utilizing Redis, so that the storage resource of the server is saved.

In the vehicle control method, a server receives vehicle position information which is acquired by a vehicle according to a first preset time interval and is sent according to a second preset time interval; storing the vehicle position information into a pre-established Kafka queue; obtaining a plurality of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude; determining whether the longitude and latitude of each vehicle exceed a preset driving area corresponding to the vehicle identification; counting the number of the vehicle position information exceeding a preset driving area corresponding to the vehicle identification; when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle; when the quantity of the vehicle position information exceeding the preset running area is smaller than a preset value, a power supply control instruction is sent to the vehicle; the current vehicle state of the vehicle is stored into Redis. By the embodiment of the invention, the power-off processing can be carried out on the vehicle when the vehicle exceeds the normal operation area, and the power supply processing can also be carried out on the vehicle when the vehicle returns to the normal operation area, so that the vehicle power supply device is convenient for users to use, and the operation and maintenance difficulty of operation and maintenance personnel is reduced. Further, when the vehicle exceeds the normal operation area, prompt information is sent out, and the vehicle is prevented from being far away from the normal operation area. Moreover, the Kafka queue is used for storing the vehicle position information, and the Redis queue is used for storing the current vehicle state, so that the storage resource of the server is saved.

It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 4, there is provided a vehicle control apparatus including:

the vehicle position information receiving module 401 is configured to receive vehicle position information collected and sent by a vehicle within a preset time;

an excess area number determination module 402, configured to determine the number of pieces of vehicle position information exceeding a preset travel area in the plurality of pieces of vehicle position information;

a power-off control instruction sending module 403, configured to send a power-off control instruction to the vehicle when the number of pieces of vehicle position information exceeding the preset driving area is greater than a preset value; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle.

In one embodiment, the apparatus further comprises:

the power supply control instruction sending module is used for sending a power supply control instruction to the vehicle when the quantity of the vehicle position information exceeding the preset running area is smaller than a preset value; the power supply control command is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

In one embodiment, the vehicle position information receiving module 401 is specifically configured to receive vehicle position information that is acquired by a vehicle according to a first preset time interval and sent according to a second preset time interval; the first preset time interval is smaller than the second preset time interval.

In one embodiment, the apparatus further comprises:

the vehicle position information storage module is used for storing a plurality of pieces of vehicle position information into a Kafka queue established in advance;

correspondingly, the number-of-passing-zones determining module 402 is specifically configured to obtain a plurality of pieces of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude; determining whether the longitude and latitude of each vehicle exceed a preset driving area corresponding to the vehicle identification; and counting the quantity of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

In one embodiment, the apparatus further comprises:

the current vehicle state storage module is used for storing the current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

In one embodiment, the power-off control instruction is further used for instructing the vehicle to send out prompt information, wherein the prompt information comprises at least one of sound prompt and light prompt; the audible prompts include voice prompts.

For specific limitations of the vehicle control device, reference may be made to the above limitations of the vehicle control method, which are not described herein again. The respective modules in the vehicle control apparatus described above may be realized in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing vehicle control data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a vehicle control method.

Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a vehicle is provided, wherein a control device, an acquisition device, an energy storage device and a communication device are arranged on the vehicle; the acquisition equipment is used for acquiring vehicle position information; the communication equipment is used for sending the vehicle position information to the server and receiving a power-off control instruction sent by the server; and the control equipment is used for controlling the energy storage equipment to stop supplying power according to the power-off control instruction.

In this embodiment, the collection device on the vehicle collects the vehicle position information, wherein the collection device is not limited to a GPS (Global Positioning System) module or a mobile communication module. After the vehicle position information is collected, the vehicle position information can be sent to the server through the communication device, wherein the communication device is not limited to the mobile communication module and the near field communication module. And after the server judges that the vehicle exceeds the preset running area, sending a power-off control instruction to the vehicle. The vehicle receives a power-off control command through the communication device. And after determining that the received power-off control instruction is received, the control equipment controls the energy storage equipment to stop supplying power. Meanwhile, the control equipment can also generate prompt information, and then control the vehicle lamp to flash and/or control the audio equipment to play voice prompts.

The acquisition device continuously acquires the vehicle position information and sends the vehicle position information to the server through the communication device. And the server sends a power supply control instruction to the vehicle when judging that the vehicle returns to the preset running area according to the subsequently received vehicle position information. The vehicle receives a power supply control instruction through the communication device. And after the control equipment determines that the received command is a power supply control command, controlling the energy storage equipment to supply power.

Among the above-mentioned vehicle, be provided with controlgear, collection equipment, energy storage equipment and communication equipment to make the vehicle can gather vehicle position information, and communicate with the server, receive the outage control or the power supply control of server, and then can help fortune dimension personnel to maintain the vehicle better.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

receiving a plurality of pieces of vehicle position information which are collected and sent by vehicles within preset time;

determining the number of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information;

when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

when the quantity of the vehicle position information exceeding the preset running area is smaller than a preset value, a power supply control instruction is sent to the vehicle; the power supply control command is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

receiving vehicle position information which is acquired by a vehicle according to a first preset time interval and sent according to a second preset time interval; the first preset time interval is smaller than the second preset time interval.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

storing a plurality of vehicle position information into a pre-established Kafka queue;

obtaining a plurality of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude;

determining whether the longitude and latitude of the vehicle exceed a preset driving area corresponding to the vehicle identification;

and counting the quantity of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

storing a current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

In one embodiment, the power-off control instruction is further used for instructing the vehicle to send out prompt information, wherein the prompt information comprises at least one of sound prompt and light prompt; the audible prompts include voice prompts.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

receiving a plurality of pieces of vehicle position information which are collected and sent by vehicles within preset time;

determining the number of vehicle position information exceeding a preset driving area in the plurality of pieces of vehicle position information;

when the quantity of the vehicle position information exceeding the preset running area is larger than a preset value, sending a power-off control instruction to the vehicle; the power-off control command is used for instructing an energy storage device of the vehicle to stop supplying power to the vehicle.

In one embodiment, the computer program when executed by the processor further performs the steps of:

when the quantity of the vehicle position information exceeding the preset running area is smaller than a preset value, a power supply control instruction is sent to the vehicle; the power supply control command is used for instructing the energy storage device of the vehicle to supply power for the vehicle again.

In one embodiment, the computer program when executed by the processor further performs the steps of:

receiving vehicle position information which is acquired by a vehicle according to a first preset time interval and sent according to a second preset time interval; the first preset time interval is smaller than the second preset time interval.

In one embodiment, the computer program when executed by the processor further performs the steps of:

storing a plurality of vehicle position information into a pre-established Kafka queue;

obtaining a plurality of vehicle position information from the Kafka queue; the vehicle position information comprises vehicle identification and vehicle longitude and latitude;

determining whether the longitude and latitude of the vehicle exceed a preset driving area corresponding to the vehicle identification;

and counting the quantity of the vehicle position information exceeding the preset running area corresponding to the vehicle identification.

In one embodiment, the computer program when executed by the processor further performs the steps of:

storing a current vehicle state of the vehicle into Redis; the current vehicle state is a power-off state or a power-on state.

In one embodiment, the power-off control instruction is further used for instructing the vehicle to send out prompt information, wherein the prompt information comprises at least one of sound prompt and light prompt; the audible prompts include voice prompts.

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 hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种车载终端的防盗油检测系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!