CN115878632A - Vehicle state updating method and device, storage medium and electronic equipment - Google Patents

Vehicle state updating method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115878632A
CN115878632A CN202111112909.2A CN202111112909A CN115878632A CN 115878632 A CN115878632 A CN 115878632A CN 202111112909 A CN202111112909 A CN 202111112909A CN 115878632 A CN115878632 A CN 115878632A
Authority
CN
China
Prior art keywords
vehicle
state
determining
position information
target vehicle
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.)
Pending
Application number
CN202111112909.2A
Other languages
Chinese (zh)
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.)
Hanhai Information Technology Shanghai Co Ltd
Original Assignee
Hanhai Information Technology Shanghai 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 Hanhai Information Technology Shanghai Co Ltd filed Critical Hanhai Information Technology Shanghai Co Ltd
Priority to CN202111112909.2A priority Critical patent/CN115878632A/en
Publication of CN115878632A publication Critical patent/CN115878632A/en
Pending legal-status Critical Current

Links

Images

Abstract

The specification discloses a vehicle state updating method, a vehicle state updating device, a storage medium and electronic equipment. And simultaneously, determining the current second state of the vehicle according to the access information of the vehicle to the access designated area. And then, judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle, if so, determining the current final state of the target vehicle according to at least one state of the first state and the second state, and updating the state of the target vehicle according to the final state. In the method, whether the reason for generating the first state and the second state of the vehicle is related to the order task in the designated order pool needs to be judged, and only the state of the vehicle related to the order task in the designated order pool has updating value, so that the problem that the updated state of the target vehicle is not consistent with the actual state can be avoided, and the rationality for scheduling other target vehicles is improved.

Description

Vehicle state updating method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a vehicle state, a storage medium, and an electronic device.
Background
In the storage field, a plurality of transport vehicles can enter and exit from a warehouse, the state of each transport vehicle is determined, the transport vehicles can be conveniently dispatched, and automatic card punching can be set for the transport vehicles entering and exiting the warehouse. Wherein the state of each transport vehicle comprises: located inside the warehouse and located outside the warehouse.
In general, warehouses on the same campus are not leased to one leasing party, so different warehouses on the same campus may be leased to different leasing parties. When the same transport vehicle serves warehouses of different leasing parties, as long as the transport vehicle enters and exits the park, the servers of the different leasing parties can receive the real-time position information of the transport vehicle. Therefore, for a server of a renter, when a transport vehicle executes a transportation task of another renter, the server of the renter also receives the position information of the transport vehicle entering and exiting the park, so that the server of the renter mistakenly considers that the transport vehicle enters and exits the warehouse of the renter, and updates the state of the transport vehicle entering and exiting the warehouse of the renter according to the time when the transport vehicle enters and exits the park, which easily causes the updated state of the transport vehicle on the server of the renter to be inconsistent with the actual state, thereby causing the unreasonable scheduling of the server of the renter on other transport vehicles.
Disclosure of Invention
Embodiments of the present disclosure provide a vehicle status updating method and apparatus, a storage medium, and an electronic device, so as to partially solve the above problems in the prior art.
The embodiment of the specification adopts the following technical scheme:
a vehicle state updating method provided in this specification includes:
determining real-time position information of the vehicle;
determining a current first state of the vehicle according to the real-time position information of the vehicle; determining a current second state of the vehicle according to access information recorded in real time in the vehicle access designated area;
judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle;
if the vehicle is a target vehicle, determining the current final state of the target vehicle according to at least one state of the first state and the second state;
and updating the state of the target vehicle according to the final state.
Optionally, determining the real-time location information of the target vehicle specifically includes:
the method comprises the steps that position information collected by GPS collection equipment in real time is received through the GPS collection equipment installed on a vehicle;
aiming at each piece of received position information, screening each piece of received position information according to the time length between the acquisition time of the position information and the receiving time of the position information to obtain a first set;
and determining real-time position information of the vehicle according to the first set.
Optionally, determining the real-time location information of the vehicle according to the first set specifically includes:
determining the position information corresponding to the last acquisition time of the acquisition time as first position information aiming at the acquisition time of each position information in the first set;
determining a distance between the location information and the first location information;
judging whether the position information is abnormal or not according to the distance;
screening each piece of position information in the first set according to a judgment result corresponding to each piece of position information in the first set to obtain a second set;
and determining the real-time position information of the vehicle according to the second set.
Optionally, determining the current first state of the vehicle according to the real-time location information of the vehicle specifically includes:
determining an area containing a specified warehouse as a specified area according to the position information of the specified warehouse;
comparing the position information of the current acquisition moment with the specified area according to the real-time position information of the vehicle;
determining the current first state of the vehicle according to the comparison result; wherein the first state comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
Optionally, determining a current second state of the vehicle according to access information recorded in real time in the vehicle access designated area, specifically including:
acquiring access information recorded by a barrier gate when the vehicle accesses the designated area according to the barrier gate arranged in the designated area;
determining a current second state of the vehicle according to the access information; wherein the second state comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
Optionally, determining whether the vehicle is a target vehicle according to the order task currently executed by the vehicle, specifically including:
acquiring an identification of the vehicle;
judging whether a currently executed order task corresponding to the identifier of the vehicle exists in an appointed order pool or not according to the identifier of the vehicle;
if the currently executed order task corresponding to the identification of the vehicle exists, determining that the vehicle is a target vehicle; the target vehicle is a vehicle executing the order task in the designated order pool.
Optionally, the method further comprises:
if the currently executed order task corresponding to the identification of the vehicle does not exist, judging whether the vehicle is a target vehicle or not according to the acquired information of the platform in the specified warehouse;
if the information that the vehicle is located on the platform is obtained, determining that the vehicle is a target vehicle;
and if the information that the vehicle is positioned on the platform is not acquired, determining that the vehicle is not the target vehicle.
Optionally, determining a current final state of the target vehicle according to at least one of the first state and the second state, specifically including:
determining a current third state of the target vehicle according to the acquired information that the target vehicle reaches a platform in the designated area; wherein the third state comprises: the target vehicle is located within the designated area and the target vehicle is located outside the designated area;
and determining the current final state of the target vehicle according to at least one state of the first state, the second state and the third state.
Optionally, determining a current final state of the target vehicle according to at least one of the first state, the second state, and the third state, specifically including:
judging whether the target vehicle has a state change according to the first state, the second state and the third state;
and if the state of the target vehicle is changed, taking the changed state as the current final state of the target vehicle, and taking the earliest time when the state is changed as the current time of the final state.
A vehicle state updating device provided by this specification includes:
the first determining module is used for determining real-time position information of the vehicle;
the second determining module is used for determining the current first state of the vehicle according to the real-time position information of the vehicle; determining the current second state of the vehicle according to access information recorded in real time in the vehicle access designated area;
the judging module is used for judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle;
a third determining module, configured to determine, if the vehicle is a target vehicle, a current final state of the target vehicle according to at least one of the first state and the second state;
and the updating module is used for updating the state of the target vehicle according to the final state.
A computer-readable storage medium is provided herein, which stores a computer program that, when executed by a processor, implements the vehicle state updating method described above.
The present specification provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the vehicle state updating method is implemented.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the embodiment of the specification determines the current first state of the vehicle according to the positioning information of the vehicle. And meanwhile, determining the current second state of the vehicle according to the access information of the vehicle to the access designated area. And then, judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle, if so, determining the current final state of the target vehicle according to at least one state of the first state and the second state, and updating the state of the target vehicle according to the final state. In the method, whether the reason for generating the first state and the second state of the vehicle is related to the order task in the designated order pool needs to be judged, and only the state of the vehicle related to the order task in the designated order pool has updating value, so that the problem that the updated state of the target vehicle is not consistent with the actual state can be avoided, and the rationality for scheduling other target vehicles is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the principles of the specification and not to limit the specification in a limiting sense. In the drawings:
fig. 1 is a schematic flow chart of a vehicle state updating method provided in an embodiment of the present disclosure;
fig. 2 is a schematic view illustrating a determination process for entering and exiting a designated area according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating relationships among an order pool, a vehicle pool, and a target vehicle status pool provided by embodiments of the present description;
fig. 4 is a schematic flowchart of determining whether a target vehicle state is in a state mask period according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a vehicle state updating device provided in the embodiment of the present specification;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of this specification.
Detailed Description
The vehicle state updating method in the specification can be applied to a community group purchase platform. The community group buying is an internet online and offline shopping consumption behavior of a resident group in a real residential community, and is a regional, small, popular, local and networked group buying form depending on the real community. In short, the method is a new retail mode for realizing fresh commodity circulation by depending on community and group social relations. The flow process of the commodities in the community group purchase is as follows: shared bin-center bin-grid bin. Wherein, the central warehouse is maintained by a community group purchase platform.
As for the center bin, there are vehicles that transport commodities to the center bin and vehicles that transport commodities from the center bin to the outside. Therefore, the community group buying platform needs to monitor the time of each vehicle passing in and out of the central bin, so that the vehicles can be reasonably scheduled, and the vehicles in the central bin are not too crowded. Automatic card punching can be set for the vehicle according to the time when the vehicle enters and exits the center bin.
It should be noted that the vehicle state updating method in this specification may be applied to any scene for monitoring vehicle entering and exiting, and is not limited to warehouses such as a central warehouse.
Three methods are mainly used in this specification to determine whether and when a vehicle enters a specified warehouse. The first method comprises the following steps: and judging whether the vehicle enters the designated warehouse or not and determining the time for entering the designated warehouse according to the position information and the designated area of the vehicle. The second method comprises the following steps: and judging whether the vehicle enters the designated warehouse or not and determining the time for entering the designated warehouse according to the vehicle access information recorded by the vehicle barrier gate of the designated area. The third method comprises the following steps: and judging whether the vehicle enters the designated warehouse or not and determining the time for entering the designated warehouse according to whether the vehicle reaches a platform in the designated warehouse or not.
Two methods are mainly used in this specification to determine whether and when a vehicle leaves a designated warehouse. The first method comprises the following steps: and judging whether the vehicle leaves the specified warehouse or not and determining the time of leaving the specified warehouse according to the position information and the specified area of the vehicle. The second method comprises the following steps: and judging whether the vehicle leaves the specified warehouse or not and determining the time for leaving the specified warehouse according to the vehicle access information recorded by the vehicle barrier gate of the specified area.
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a vehicle state updating method provided in an embodiment of the present specification, including:
s100: and determining real-time position information of the vehicle.
In the embodiments of the present specification, taking the vehicle entering and exiting the warehouse as an example, the vehicle may be a transportation vehicle entering and exiting the warehouse, and the transportation vehicle is used for transporting goods to and from the warehouse. Note that the vehicle state updating method shown in fig. 1 in this specification is applied to a server.
In this specification, the vehicle may collect its GPS data according to a Global Positioning System (GPS) collection device installed on the vehicle, where the GPS data may include: location information, etc. The vehicle can send the acquired GPS data, the acquisition time of the GPS data, the identification of the vehicle and the current speed of the vehicle to the server, and the server receives the GPS data of the vehicle, the acquisition time of the GPS data, the identification of the vehicle and the current speed of the vehicle. Wherein the identification of the vehicle may refer to a license plate number.
When the vehicle sends the acquired GPS data to the server, there may be a situation of time delay in sending the GPS data due to too poor network environment where the vehicle is currently located, so in this specification, the received GPS data is first screened to remove the time-delayed GPS data.
Specifically, the server receives position information in real-time GPS data transmitted by the vehicle. And judging whether the position information is received with time delay or not according to the time length between the acquisition time corresponding to the position information and the receiving time corresponding to the position information aiming at each piece of received position information. And screening each piece of received position information according to the judgment result to obtain a first set.
Further, for each piece of position information, if the time length between the acquisition time corresponding to the position information and the acquisition time corresponding to the position information is greater than a preset time length, it is determined that there is a delay in receiving the position information. And if the time length between the acquisition time corresponding to the position information and the acquisition time corresponding to the position information is not more than the preset time length, determining that no time delay exists in the receiving of the position information. And if the receiving of the position information has time delay, deleting the position information. If the receiving of the position information has no time delay, the position information is reserved. The remaining position information is then used as a first set, i.e. the first set is formed by the position information without delay.
In addition, because the GPS itself has a drift phenomenon, the position information in the acquired GPS data has a large deviation from the actual position information. Therefore, in this specification, the position information in which the drift phenomenon exists in the first set is filtered.
Specifically, according to each piece of position information in the first set, the acquisition time corresponding to each piece of position information is determined. And determining the position information corresponding to the last acquisition time of the acquisition time as the first position information aiming at the acquisition time corresponding to each position information in the first set. Then, a distance between the location information and the first location information is determined. And judging whether the position information is abnormal or not according to the distance between the position information and the first position information. Whether the position information is abnormal or not can mean whether a drift phenomenon exists or not when the GPS acquisition equipment acquires the position information. And then, screening each piece of position information in the first set according to a judgment result corresponding to each piece of position information in the first set to obtain a second set.
Further, after determining the first position information corresponding to the previous collection time of the collection time, for the collection time corresponding to each position information in the first set, the first speed of the vehicle at the collection time and the second speed of the vehicle at the previous collection time are determined. An average speed of the vehicle is determined based on the first speed and the second speed. And determining the farthest driving distance of the vehicle from the last acquisition time to the acquisition time according to the average speed and the time length between the acquisition time and the last acquisition time. Then, whether the position information is abnormal or not is judged according to the distance between the position information and the first position information and the farthest driving distance. And if the distance between the position information and the first position information is less than the farthest driving distance, determining that the position information is normal, namely, no drift phenomenon exists when the GPS acquisition equipment acquires the position information. And if the distance between the position information and the first position information is not less than the farthest driving distance, determining that the position information is abnormal. Namely, the GPS acquisition device has a drift phenomenon when acquiring the position information.
Still further, if the location information is normal, the location information is retained. And if the position information is abnormal, deleting the position information from the first set. Then, the first set from which the abnormal position information is deleted is set as a second set. And finally, determining the real-time position information of the target vehicle according to the position information in the second set.
In addition, the position information in the second set can be updated in real time. Specifically, each time the vehicle sends one GPS data to the server, the vehicle needs to determine the position information in the GPS data. And judging whether the receiving of the position information in the GPS data has time delay or not, and judging whether the position information in the GPS data has abnormity or not. If the position information in the GPS data has delay or abnormity, the GPS data is discarded without being added to the second set. If there is no delay or anomaly in the location information in the GPS data, adding the location information in the GPS data to a second set.
S102: determining a current first state of the vehicle according to the real-time position information of the vehicle; and determining the current second state of the vehicle according to access information recorded in real time in the vehicle access designated area.
In the embodiment of the present specification, the state of the vehicle can be determined according to two methods. The states of the vehicle include: the vehicle is located within the designated area and the vehicle is located outside the designated area. The designated area may refer to an area including a designated warehouse, and in practical applications, the designated area may be a campus including the designated warehouse. In addition, the change in the state of the vehicle may indicate that the vehicle enters or exits the designated area, that is, may indicate that the vehicle enters or exits the designated warehouse. Wherein a given repository may refer to a repository monitored by the server.
The first method comprises the following steps: and comparing the real-time position information of the vehicle with the specified area to determine the current first state of the vehicle. Wherein the current first state of the vehicle comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
Specifically, the area including the designated warehouse may be determined as the designated area based on the location information of the designated warehouse. The method for determining the designated area may be: and taking the position of the designated warehouse as the center of a circle and taking the preset distance as the radius of the circular area as the designated area. A designated area containing a designated warehouse may also be determined according to a geo-fencing algorithm.
After a second set containing real-time position information of the vehicle and the designated area are determined, the position information of each collection moment in the second set is compared with the designated area.
Specifically, as shown in fig. 2. And judging whether the position information of the last acquisition time of the current acquisition time is located in the designated area or not if the position information of the current acquisition time is located outside the designated area aiming at the position information of the current acquisition time. And if the position information at the last acquisition moment is positioned in the specified area, determining that the vehicle leaves the specified area, namely, determining that the vehicle leaves the specified warehouse. And then, recording the state of the vehicle at the current acquisition time, wherein the vehicle is located outside the specified area. And if the position information of the last acquisition moment is not located in the designated area, not recording the current acquisition moment state of the vehicle.
And if the position information of the current acquisition moment is located in the designated area, judging whether the position information of the previous acquisition moment of the current acquisition moment is located outside the designated area. And if the position information at the last acquisition moment is positioned outside the specified area, determining that the vehicle enters the specified area, namely, determining that the vehicle enters the specified warehouse. Then, the state of the vehicle at the current collection time, that is, the vehicle is located in the designated area, is recorded. And if the position information of the last acquisition moment is not located outside the specified area, not recording the current acquisition moment state of the vehicle.
In addition, the method of determining the time when the vehicle enters or exits the designated area in the first method may include: the current acquisition time can be used as the time when the vehicle enters or exits the designated area.
The second method comprises the following steps: and determining the current second state of the vehicle according to the access information recorded by the barrier when the vehicle accesses the designated area. Wherein the current second state of the vehicle comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
In the case where the barrier is provided in the designated area, when the vehicle enters or exits the designated area, the barrier may record the time at which the vehicle enters or exits the designated area, and transmit the time at which the vehicle enters or exits the designated area to the server. The server receives the access time recorded in real time by the gateway when the vehicle accesses the designated area, and determines the current second state of the vehicle according to the received access time of the vehicle accessing the designated area.
S104: and judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle.
In the embodiment of the present specification, after determining the current first state and the current second state of the vehicle, in order to prevent the server from performing state update on the vehicle which does not currently have an order task, it is necessary to determine whether the vehicle currently has an order task and to take the vehicle which currently has the order task as a target vehicle. The server then updates the status of the target vehicle. The target vehicle may refer to a vehicle that actually performs the order task in the specified order pool. Wherein the designated order pool may refer to an order pool stored at the server. And, order tasks in the specified order pool are associated with the specified warehouse. Thus, the target vehicle may be a vehicle transporting goods corresponding to the ordered task associated with the specified warehouse.
Specifically, the identification of the vehicle is obtained first. And then, judging whether a currently executed order task corresponding to the identification of the vehicle exists in the appointed order pool or not according to the identification of the vehicle. And if the currently executed order task corresponding to the identification of the vehicle exists, determining that the vehicle is the target vehicle. In this way, it may be indicated that the reason for the first and second states currently being generated by the vehicle is relevant for performing the current order task.
If the currently executed order task corresponding to the identifier of the vehicle does not exist, it may be that the order system has a fault, so in this case, it may be determined whether the vehicle is the target vehicle according to whether the information that the vehicle is located at the platform is acquired. Wherein the platform is located in the designated warehouse. In practical application, the platform in this specification is used for loading and unloading goods.
And if the information that the vehicle is positioned at the platform is acquired, determining that the vehicle is the target vehicle. Because the platform is located in the designated warehouse, when the information that the vehicle is located at the platform is acquired, the vehicle is indicated to actually enter the designated warehouse, and this also indirectly indicates that the order system has a fault, so that the order task currently executed by the vehicle is not found in the designated order pool, and the order system can be maintained.
And if the information that the vehicle is positioned at the platform is not acquired, determining that the vehicle is not the target vehicle. When the information that the vehicle is located at the platform is not obtained, it is indicated that the vehicle does not actually enter the specified warehouse, and the currently executed order task corresponding to the vehicle identifier is not found in the specified order pool. In this case, the vehicle may be currently transporting goods for other warehouses than the designated warehouse.
In addition, under the condition that the currently executed order task corresponding to the identification of the target vehicle exists in the appointed order pool, whether the identification of the target vehicle exists in the vehicle pool or not can be judged according to the identification of the target vehicle. If the identification of the target vehicle does not exist in the vehicle pool, the vehicle pool can be updated according to the identification of the target vehicle.
In addition, when the currently executed order task corresponding to the identifier of the vehicle does not exist in the designated order pool, whether the identifier of the vehicle exists in the vehicle pool or not can be judged according to the identifier of the vehicle. If the vehicle identification does not exist in the vehicle pool, it can be determined that the vehicle has nothing to do with the designated warehouse.
S106: and if the vehicle is a target vehicle, determining the current final state of the target vehicle according to at least one state of the first state and the second state.
S108: and updating the state of the target vehicle according to the final state.
In this embodiment, when the vehicle is a target vehicle, a current third state of the target vehicle may be determined according to the acquired information that the target vehicle arrives at the platform, where the third state includes: the target vehicle is located within the designated warehouse and the target vehicle is located outside the designated warehouse. Since the designated warehouse is located in the designated area, the third state includes: the target vehicle is located within the designated area and the target vehicle is located outside the designated area.
Specifically, the video information of the platform can be acquired in real time through the image acquisition device installed on the platform. The server can determine the time when the target vehicle arrives at the platform and the time when the target vehicle leaves the platform according to the video information of the platform acquired in real time.
If the target vehicle in the currently acquired video information of the platform is located at the platform and the target vehicle in the video information of the platform acquired at the previous moment is not located at the platform, determining that the target vehicle reaches the platform, namely determining that the target vehicle enters a specified warehouse and the target vehicle is located in the specified warehouse. And if the target vehicle is not at the platform in the currently acquired video information of the platform and the target vehicle is positioned at the platform in the video information of the platform acquired at the last moment, determining that the target vehicle leaves the platform, namely determining that the target vehicle leaves the specified warehouse. The status of the target vehicle may be outside of a designated warehouse. Wherein the time when the (video) information of the platform is currently acquired is taken as the time when the target vehicle enters or exits the designated warehouse.
Further, a current final state of the target vehicle may be determined based on the first state, the second state, and the third state.
Specifically, it may be determined whether the target vehicle has changed state based on the determined first state, second state, and third state. And if the state of the target vehicle is changed, taking the changed state as the current final state of the target vehicle, and taking the moment of the earliest state change as the current moment of the final state. That is, the state in which the state change occurs earliest may be selected from the first state, the second state, and the third state as the final state of the target vehicle. Then, the state of the target vehicle is updated according to the final state of the target vehicle. The time when the state change occurs at the earliest time is taken as the current time of the final state, so that the timeliness of updating the state of the target vehicle can be improved.
As can be seen from the method shown in fig. 1, the present specification determines the current first state of the vehicle according to the positioning information of the vehicle. And simultaneously, determining the current second state of the vehicle according to the access information of the vehicle to the access designated area. And then, judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle, if so, determining the current final state of the target vehicle according to at least one state of the first state and the second state, and updating the state of the target vehicle according to the final state. In the method, whether the reason for generating the first state and the second state of the vehicle is related to the order task in the designated order pool needs to be judged, and only the state of the vehicle related to the order task in the designated order pool has updating value, so that the problem that the updated state of the target vehicle is not consistent with the actual state can be avoided, and the rationality for scheduling other target vehicles is improved.
Further, in step S104 shown in fig. 1, when it is determined whether the vehicle is the target vehicle, the present specification provides a business system including an order system and a vehicle information system. Wherein the order system provides a designated order pool and the vehicle information system provides a designated vehicle pool. Then, a vehicle state pool is constructed from the vehicle states. Whether the vehicle is a target vehicle can be judged according to the relation among the designated order pool, the designated vehicle pool and the vehicle state pool, and the order system and the vehicle information system can be maintained and updated. Wherein, the step of designating orders in the order pool comprises the following steps: a shipping order for the carrier and a delivery order for the supplier.
The relationship between the order pool, the vehicle pool, and the vehicle status pool is shown in FIG. 3. Seven relationships are identified in fig. 3.
Relationship 1: a vehicle determined to be in a vehicle state exists in the designated vehicle pool and is associated with an order in the designated order pool. In this relation, the vehicle is determined to be the target vehicle.
Relationship 2: the vehicle is present in the designated vehicle pool and is associated with an order in the designated order pool, but the status of the vehicle is not determined. In this relation, the vehicle is identified as the target vehicle, but the state of the target vehicle cannot be updated.
Relationship 3: the vehicle for which the vehicle status is determined exists in the designated vehicle pool and is independent of the order in the designated order pool. In such a relationship, it is necessary to determine whether or not the vehicle is the target vehicle, based on whether or not the platform information of the vehicle is acquired.
And when the information that the vehicle is positioned at the platform is acquired, determining that the vehicle is the target vehicle. In this case, the order system malfunctions.
When the information that the vehicle is located at the platform is not acquired, it is determined that the vehicle is not the target vehicle. In this case, the vehicle is independent of the service system.
The 4 th relationship: the vehicle for which the vehicle status is determined is not present in the designated vehicle pool but is associated with an order in the designated order pool. In this relationship, the vehicle is determined to be the target vehicle, and the pool of designated vehicles is updated.
Relationship No. 5: the vehicle is present in the designated vehicle pool, but the status of the vehicle is not determined and the vehicle is not associated with an order in the designated order pool. In this relationship, the vehicle is non-operational.
The 6 th relationship: the vehicle is not present in the designated vehicle pool and the status of the vehicle is not determined, but the vehicle is associated with the designated order pool. In this relationship, the order system fails.
The 7 th relationship: the status of the vehicle is determined, but the vehicle is not present in the designated pool of vehicles and the vehicle is not associated with the designated pool of orders. In this relationship, the vehicle is independent of the business system.
In step S106 shown in fig. 1, the time at which the state change occurs earliest may be set as the current time of the final state by a method of setting a state mask period. That is, to prevent the server from determining a plurality of states identical to the final state for the target vehicle in a short time. The change of the vehicle state includes: enter the designated area and leave the designated area.
And determining the duration of the state shielding period of the target vehicle according to the type of the target vehicle when the target vehicle enters the specified area. Wherein, the motorcycle type of target vehicle can include: the length of the car body. The duration of the average work of the target vehicle in a specified area (specified warehouse) is taken as the duration of the status mask period. The longer the body of the target vehicle, the longer the length of the average work of the target vehicle in a specified area (specified warehouse).
For the condition that the target vehicle leaves the designated area, if the target vehicle transports the goods in the designated area to other areas, the duration of the condition masking period of the target vehicle can be dynamically determined according to the distance between the designated area and other areas and the real-time transport speed of the target vehicle. If the target vehicle leaves the designated area after transporting the goods in other areas to the designated area, the duration of the state shielding period of the target vehicle can be dynamically determined according to the area radius of the designated area and the real-time speed of the target vehicle.
After the current time of the final state of the target vehicle is determined according to the earliest time of state change, the determined state after the current time and in the state shielding period is deleted, and the determined state after the current time and outside the state shielding period is taken as the new final state of the target vehicle. As shown in fig. 4.
Based on the same idea, the present specification further provides a corresponding apparatus, a storage medium, and an electronic device.
Fig. 5 is a schematic structural diagram of a vehicle state updating apparatus provided in an embodiment of the present specification, where the apparatus includes:
a first determining module 501, configured to determine real-time location information of a vehicle;
a second determining module 502, configured to determine a current first state of the vehicle according to the real-time location information of the vehicle; determining a current second state of the vehicle according to access information recorded in real time in the vehicle access designated area;
the judging module 503 is configured to judge whether the vehicle is a target vehicle according to the order task currently executed by the vehicle;
a third determining module 504, configured to determine, if the vehicle is a target vehicle, a current final state of the target vehicle according to at least one of the first state and the second state;
and an updating module 505, configured to update the vehicle state according to the final state.
Optionally, the first determining module 501 is specifically configured to receive, through a global positioning system GPS collecting device installed in a vehicle, location information collected by the GPS collecting device in real time; aiming at each piece of received position information, screening each piece of received position information according to the time length between the acquisition time of the position information and the receiving time of the position information to obtain a first set; and determining real-time position information of the vehicle according to the first set.
Optionally, the first determining module 501 is specifically configured to, for the acquisition time of each piece of location information in the first set, determine location information corresponding to a previous acquisition time of the acquisition time as first location information; determining a distance between the location information and the first location information; judging whether the position information is abnormal or not according to the distance; screening each piece of position information in the first set according to a judgment result corresponding to each piece of position information in the first set to obtain a second set; and determining the real-time position information of the vehicle according to the second set.
Optionally, the second determining module 502 is specifically configured to determine, according to the location information of the specified warehouse, an area including the specified warehouse as a specified area; comparing the position information of the current acquisition moment with the specified area according to the real-time position information of the vehicle; determining the current first state of the vehicle according to the comparison result; wherein the first state comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
Optionally, the second determining module 502 is specifically configured to, according to a barrier set in a designated area, obtain access information recorded by the barrier when the vehicle accesses the designated area; determining a current second state of the vehicle according to the access information; wherein the second state comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
Optionally, the determining module 503 is specifically configured to obtain an identifier of the vehicle; judging whether a currently executed order task corresponding to the identifier of the vehicle exists in an appointed order pool or not according to the identifier of the vehicle; if the currently executed order task corresponding to the identification of the vehicle exists, determining that the vehicle is a target vehicle; the target vehicle is a vehicle that performs the order task in the designated order pool.
Optionally, the determining module 503 is further configured to, if there is no currently executed order task corresponding to the identifier of the vehicle, determine whether the vehicle is a target vehicle according to the acquired information of the platform located in the specified warehouse; if the information that the vehicle is located on the platform is obtained, determining that the vehicle is a target vehicle; and if the information that the vehicle is positioned on the platform is not acquired, determining that the vehicle is not the target vehicle.
Optionally, the third determining module 504 is specifically configured to determine a current third state of the target vehicle according to the obtained information that the target vehicle reaches a platform located in the specified area; wherein the third state comprises: the target vehicle is located within the designated area and the target vehicle is located outside the designated area; and determining the current final state of the target vehicle according to at least one state of the first state, the second state and the third state.
Optionally, the third determining module 504 is specifically configured to determine whether the state of the target vehicle changes according to the first state, the second state, and the third state; and if the state of the target vehicle is changed, taking the changed state as the current final state of the target vehicle, and taking the earliest time when the state is changed as the current time of the final state.
The present description also provides a computer-readable storage medium storing a computer program which, when executed by a processor, is operable to perform the vehicle state updating method provided above with respect to fig. 1.
Based on the vehicle state updating method shown in fig. 1, the embodiment of the present specification further provides a schematic structural diagram of the electronic device shown in fig. 6. As shown in fig. 6, at a hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for services. The processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to implement the vehicle state updating method described in fig. 1 above.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, respectively. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (12)

1. A vehicle state updating method characterized by comprising:
determining real-time position information of the vehicle;
determining the current first state of the vehicle according to the real-time position information of the vehicle; determining a current second state of the vehicle according to access information recorded in real time in the vehicle access designated area;
judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle;
if the vehicle is a target vehicle, determining the current final state of the target vehicle according to at least one state of the first state and the second state;
and updating the state of the target vehicle according to the final state.
2. The method of claim 1, wherein determining real-time location information for the vehicle comprises:
the method comprises the steps that position information collected by GPS collection equipment in real time is received through the GPS collection equipment installed on a vehicle;
aiming at each piece of received position information, screening each piece of received position information according to the time length between the acquisition time of the position information and the receiving time of the position information to obtain a first set;
and determining real-time position information of the vehicle according to the first set.
3. The method of claim 2, wherein determining real-time location information of the vehicle based on the first set comprises:
determining the position information corresponding to the last acquisition time of the acquisition time as first position information aiming at the acquisition time of each position information in the first set;
determining a distance between the location information and the first location information;
judging whether the position information is abnormal or not according to the distance;
screening each piece of position information in the first set according to a judgment result corresponding to each piece of position information in the first set to obtain a second set;
and determining the real-time position information of the vehicle according to the second set.
4. The method according to claim 1, wherein determining the current first state of the vehicle based on the real-time location information of the vehicle comprises:
determining an area containing a specified warehouse according to the position information of the specified warehouse, and taking the area as a specified area;
comparing the position information of the current acquisition moment with the specified area according to the real-time position information of the vehicle;
determining the current first state of the vehicle according to the comparison result; wherein the first state comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
5. The method of claim 1, wherein determining the current second state of the vehicle based on access information recorded in real time in the vehicle access designated area comprises:
acquiring access information recorded by a barrier gate when the vehicle accesses the designated area according to the barrier gate arranged in the designated area;
determining a current second state of the vehicle according to the access information; wherein the second state comprises: the vehicle is located within the designated area and the vehicle is located outside the designated area.
6. The method according to claim 1, wherein determining whether the vehicle is a target vehicle according to an order task currently executed by the vehicle specifically comprises:
acquiring an identification of the vehicle;
judging whether a currently executed order task corresponding to the identifier of the vehicle exists in an appointed order pool or not according to the identifier of the vehicle;
if the currently executed order task corresponding to the identification of the vehicle exists, determining that the vehicle is a target vehicle; the target vehicle is a vehicle executing the order task in the designated order pool.
7. The method of claim 6, wherein the method further comprises:
if the currently executed order task corresponding to the identification of the vehicle does not exist, judging whether the vehicle is a target vehicle or not according to the acquired information of the platform in the specified warehouse;
if the information that the vehicle is located on the platform is obtained, determining that the vehicle is a target vehicle;
and if the information that the vehicle is positioned on the platform is not acquired, determining that the vehicle is not the target vehicle.
8. The method according to claim 1, wherein determining the current final state of the target vehicle based on at least one of the first state and the second state comprises:
determining a current third state of the target vehicle according to the acquired information that the target vehicle reaches a platform located in the designated area; wherein the third state comprises: the target vehicle is located within the designated area and the target vehicle is located outside the designated area;
and determining the current final state of the target vehicle according to at least one state of the first state, the second state and the third state.
9. The method of claim 8, wherein determining the current final state of the target vehicle based on at least one of the first state, the second state, and the third state comprises:
judging whether the target vehicle has a state change according to the first state, the second state and the third state;
and if the state of the target vehicle is changed, taking the changed state as the current final state of the target vehicle, and taking the earliest time when the state is changed as the current time of the final state.
10. A vehicle state updating device characterized by comprising:
the first determining module is used for determining real-time position information of the vehicle;
the second determining module is used for determining the current first state of the vehicle according to the real-time position information of the vehicle; determining the current second state of the vehicle according to access information recorded in real time in the vehicle access designated area;
the judging module is used for judging whether the vehicle is a target vehicle or not according to the order task currently executed by the vehicle;
a third determining module, configured to determine, if the vehicle is a target vehicle, a current final state of the target vehicle according to at least one of the first state and the second state;
and the updating module is used for updating the state of the target vehicle according to the final state.
11. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, carries out the method of any of the preceding claims 1-9.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-9 when executing the program.
CN202111112909.2A 2021-09-23 2021-09-23 Vehicle state updating method and device, storage medium and electronic equipment Pending CN115878632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111112909.2A CN115878632A (en) 2021-09-23 2021-09-23 Vehicle state updating method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111112909.2A CN115878632A (en) 2021-09-23 2021-09-23 Vehicle state updating method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115878632A true CN115878632A (en) 2023-03-31

Family

ID=85762352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111112909.2A Pending CN115878632A (en) 2021-09-23 2021-09-23 Vehicle state updating method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115878632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116152955A (en) * 2023-04-19 2023-05-23 北京阿帕科蓝科技有限公司 Vehicle state detection method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116152955A (en) * 2023-04-19 2023-05-23 北京阿帕科蓝科技有限公司 Vehicle state detection method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110705934A (en) Abnormal order identification method and device, readable storage medium and electronic equipment
CN111401766B (en) Model, service processing method, device and equipment
CN111784468B (en) Account association method and device and electronic equipment
CN114581167A (en) Service abnormity identification method and device, storage medium and electronic equipment
CN115878632A (en) Vehicle state updating method and device, storage medium and electronic equipment
CN116011815A (en) Model training method and device, electronic equipment and storage medium
CN115967821A (en) Video cloud storage method, device, equipment and storage medium
CN109376988B (en) Service data processing method and device
CN109144600B (en) Application program running method and device and computer readable medium
CN106878365B (en) data synchronization method and device
CN108769152B (en) Service refresh policy registration method, service refresh request method, device and equipment
CN110968483A (en) Service data acquisition method and device and electronic equipment
CN115758141A (en) Method and device for model training and business wind control
CN110853311B (en) Vehicle alarm method and device
CN113888080A (en) Goods management method and device, storage medium and electronic equipment
CN113836154B (en) Database switching method and device
CN108628615B (en) Method, device and equipment for detecting abandoned codes
CN113347110A (en) Flow control method, flow control device, storage medium and equipment
CN111539961A (en) Target segmentation method, device and equipment
CN115293709B (en) Service processing system, method and device and electronic equipment
CN113360787A (en) Method, device, medium and electronic device for entrance and exit marking and route planning
CN112948361B (en) Data restoration method and device
CN114862380B (en) Quota sharing processing method and device
CN112308261B (en) Project processing method and device
CN117034262B (en) Abnormality supervision system and abnormality supervision method

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