Method for obtaining working state of charging pile, device and vehicle
Technical Field The invention relates to the technical field of new energy, automobile charging, and particularly relates to a method for obtaining a working state of a charging pile, a, device of the method,and a vehicle. Background Art With the popularity of, new energy automobiles, the use of the charging piles. is more and more widely due to the, fact that the endurance, mileage of the new energy automobile is shorter than that. of, the new energy automobile. At present, in order to acquire the state, information of the charging pile, the information, acquiring device is required to: be installed, on the charging, pile, and the, information collecting device comprises a, sensor, a wireless communication module, a processor, a calculating. module, and the like. Content of the invention In order to solve the above- mentioned problems, the present disclosure provides a method for, obtaining a working state of a charging pile, a device thereof, and. a vehicle. The first present, disclosure provides a method for acquiring a working state of a charging, pile, according: to the present disclosure, applied to a vehicle, and the connection state of the vehicle; and the target charging pile is; acquired by the server. Optionally, the acquiring the connection state of the vehicle and the target charging: pile comprises: determining whether a charging interface of the vehicle and the; target charging pile are connected; and determining whether a connection, state of the vehicle and the target charging pile is disconnected if a; charging interface of the vehicle is disconnected from the target charging, pile. Optionally, the sending of the connection state and the location information to the server: comprises: sending the connection state and the location information to the server (; s,) according to a preset period, or the connection, state and the location information after the handover are sent to the server, if the connection state occurs between the connection and disconnection. The second present, disclosure provides a method for acquiring a working state of a charging, pile, and: the method for acquiring the working state of the charging pile is applied, and to the server (s ;), and the location information of the vehicle according to the connection state and the connection. state of the target charging pile can acquire the working, state of the target charging pile according to the connection state and the position information. Optionally, the operating state is used to characterize the working state of the; target charging pile based on the connection state and, the position information of the target charging pile, and the working state of, the target; charging pile is determined according to the connection state from among the plurality of charging piles. Optionally, the operating state includes an idle state or a; charging state, and the operating state of the target charging pile is determined: according to the connection state by the, operating state of the, target charging; pile according to the connection state. Optionally, after the, acquiring the operating state of the target charging pile, the: method further comprises: transmitting the working state of the target charging pile. to a preset target vehicle. In third accordance, with the present disclosure, the present disclosure provides a device for, acquiring the, operating: state of the charging, pile, and the connection status of the vehicle and the, target charging pile for acquiring the connection; state of the vehicle, and the target charging pile comprises the; following steps, connecting or disconnecting the connection state of the vehicle and the, target charging pile. Optionally, the connection state acquisition module, may be: specifically configured to determine whether the charging interface of the vehicle and the; target charging pile are connected to each other if a charging, interface of the vehicle is connected with the target charging pile and determines; that the connection state of the vehicle and the target charging, pile is disconnected if the charging interface of the vehicle is disconnected from. the target charging pile. Optionally, the transmission module, may transmit: the connection state and the position information to the server (s) according; to, a preset period, and the connection state and the, position information after the handover are sent to the server (server) according. to the connection state between the connection and the disconnection. The fourth present, disclosure provides a device for acquiring a working state of a charging, pile, and: the method, comprises the following steps: receiving a connection state of a vehicle and a, and target charging pile from a; vehicle; and acquiring, a working state of the target charging pile according, to the connection state and the position information. Optionally, the working state is used to characterize whether the target charging pile; is charging the target charging, pile, and the working state acquiring, module is specifically configured to determine the working state of the target charging; pile according to the connection state by using the charging pile located. at the position information from the plurality of charging piles as the target charging pile. Optionally, the operation state includes an idle state or a; state of charge, and, the: operation state acquisition module is further configured, to, when the connection state; is a connection, the operation state, is that the operation state is. an idle state when the connection state is OFF. Optionally, the, device further comprises: a, transmission module configured to transmit the working state of the target charging pile to. a preset target vehicle. The fifth present, disclosure provides. a device for obtaining, a working third state of a charging pile in accordance with the above-described first aspect of the present disclosure, in accordance with an exemplary embodiment of the present disclosure. When the working state of, the vehicle and the target charging pile is acquired by, and the above technical scheme, the working state of the vehicle and the target, charging pile is acquired by the server according to the connection state and the. position information of the vehicle, and. Other features and advantages of the present disclosure will be described in detail in the detailed description which follows. Description of drawings The accompanying drawings, which are used to provide a, further understanding of the disclosure and, constitute a part of this specification, serve to explain the present, disclosure together with the following detailed description, but are not: to. be construed as limiting the disclosure in the accompanying drawings. To an embodiment of 1 the present disclosure, a method for acquiring a working state of a charging pile according to an embodiment of the present disclosure is; shown. Another embodiment of 2 the present disclosure provides a method for acquiring a working state of a charging pile according to an embodiment of the; present disclosure. An embodiment of 3 the present disclosure provides a method for acquiring a working state third of a charging pile according to an embodiment of; the present disclosure. To an embodiment of 4 the present disclosure, an apparatus for acquiring a working state of a charging pile according to an embodiment of the present disclosure is; shown. In another 5 embodiment, the embodiment of the present disclosure provides an apparatus for acquiring a working state of a charging pile according to an embodiment of the; present disclosure. To an 6 embodiment of the present disclosure, a third device for acquiring a working state of a charging pile according to an embodiment of the disclosure; is shown. An embodiment of 7 the present disclosure provides a structural block diagram of a vehicle according to an embodiment of the. present disclosure. Mode of execution In the following detailed description of specific embodiments of the present disclosure with reference. to the accompanying drawings, it is to be understood that the specific embodiments described herein are merely, used to illustrate and explain. the present disclosure and are not intended to limit the present disclosure. First, an application scenario of the present disclosure, will be described, and the present disclosure may be, applied to the scenario, of searching for an idle charging post, where the device is complicated in structure, high in cost and, lower in efficiency, and the efficiency, is relatively low. In order to solve the, above-mentioned problems, the present disclosure provides a method for, obtaining a working, state of a charging pile, and a method, for obtaining a working state of a target charging pile by, and using the method for, obtaining a working state of a target charging pile. The present disclosure will be described below with reference to specific. embodiments. The flowchart 1 of the method for acquiring the working state of the charging pile, according to the embodiment of the 1 present, disclosure is shown in FIGS. The S101, connectivity status of the vehicle and the target charging, pile is acquired by the vehicle (s): (s): the connection state comprises a connection. or disconnection. The vehicle, can have direct current fast charging and alternating current slow charging, the target charging pile is also provided with a direct current, charging, pile and an alternating current charging pile, and therefore, the connection state of the two charging interfaces needs to. be acquired when the connection state of the vehicle and the target charging pile is obtained. In the present step, the connection information of the charging V2X(Vehicle-to-Everything, interface transmitted by) the vehicle,CAN(Controller Area Network, mounted device of) the vehicle mounted on the vehicle on the vehicle to the vehicle-mounted device of the external device through the. vehicle mounted on, the vehicle can be determined according to the connection information to determine the connection state of the vehicle and the target charging pile. Acquisition of S102, location. information of a vehicle In the present step, it is possible to, acquire the position) information GNSS(Global Navigation Satellite System, of the vehicle. by means of a global navigation satellite system (GNSS/GPS) system. The S103, connection state and the location information of the server, are sent to the server for the server, so that the server determines the working state of the target charging pile according to. the connection state and the position information. The server, may be a cloud server, or may be a local server, and the type of the server. is not limited thereto. After the location information of, the vehicle and the target charging pile is obtained, and the vehicle-mounted device, of the V2X vehicle can transmit the C-V2X(Cellular Vehicle-to-Everything, connection state and the) position information to the server through the technology of the. cellular vehicle for each charging pile, so that the server, can, determine, the working state of the target charging pile, according to the connection state by the server according to the position information. Herein, the operating state may include an idle state or a, state in which the, server determines that the target charging, pile is charging the vehicle when the connected, state is connected, and the server determines that; the operating state is the idle, state when the connected state is disconnected when, the connected state of the operating state indicates that. the target charging pile is disconnected. When the working state, of the target charging pile is acquired by the server, and according to the connection, state and the position information of the target charging pile, the server determines the working state of the, target charging pile according to. the connection state and the position information, and. In one embodiment of 2 the present disclosure, a method of acquiring an operating state of a charging pile according, to 2 an embodiment, of the present disclosure, may: be applied to a server, and the method is applied to a server (e.g. a server). The S201, connection state of the vehicle and the target charging pile, which is, and transmitted by the vehicle, is equal to the position. information of the vehicle. The S202, working state of the target charging pile is obtained, according to the. connection state and the position information of the position information. The location information corresponding to, the location information may be acquired in the electronic map according to the location, information, and the corresponding relation of the position information corresponding to, the location information may be stored in the electronic map, and the corresponding relation of the location information may be saved in the, electronic map. Herein, the operating state may include an idle state or a, state in which the, server determines that the target charging, pile is charging the vehicle when the connected, state is connected, and the server determines that; the operating state is the idle, state when the connected state is disconnected when, the connected state of the operating state indicates that. the target charging pile is disconnected. When the working state, of the target charging pile is acquired by the method, the server can acquire the working state. of the target charging pile through the connection state, and the position information of the vehicle, so that the working state of the, and vehicle and the target, charging pile can be, obtained. In one 3 embodiment of the present disclosure, third a method for acquiring a working state of a charging, pile 3 according to an embodiment of the: present disclosure is shown in FIGS. When the S301, vehicle is connected to the target charging pile, the vehicle and, the target charging pile are connected. or disconnected. In the present step, it may be determined whether the charging interface of the vehicle is; disconnected from the target charging pile if the charging interface, of the vehicle is connected with the target charging pile and the; connection state of the vehicle and the target charging pile, is determined to be open if the charging interface of the vehicle. is disconnected from the target charging pile. The operating, state is used for representing whether the working state of, the target charging pile is in the charging. state or not, and the, working state of the working; state comprises an idle state or, a state of not being. idle when the connected state is disconnected in the connected state. The S302, position. information of the vehicle is acquired by a motor-driven vehicle (EMPV). The S303, vehicle transmits the connection state and the position information to the server, as described above. In this step, it is possible to, include two implementation manners: as follows. The method of, sending the connection state and the position information according to the preset period is sent to the. server. Herein, the preset period may 10 acquire, the connection state 10 of the vehicle and the target charging pile for a second, time interval of the vehicle at every second time of. the vehicle, and transmits the connection state and the position information to the server. If the, connection state occurs between the connection state and the disconnection, state, the method of switching between the connection state and the position. information after the switch is switched between the connection state and the disconnection state is sent to the server. For example, when the connection state of the vehicle and the target charging pile is switched, to the connection state by the disconnection switching, the connection state, and the position information of the vehicle after the switching are switched to the disconnection state, by the connection when the, connection state of the vehicle and the target charging pile is switched to the, disconnection state after the vehicle is charged. The S304, service state of the target charging pile, is acquired by the server according to. the connection state and the position information of the server. After receiving the connection state, and the position information sent by the vehicle at the server in the, present step, the charging pile, located at the location information may be determined from the plurality, of charging piles as the target charging post for determining the. working state, of the target charging post according to the connected, state, and the server may update the working state. of the target charging post after the working state of the target charging pile is obtained. The S305, server transmits the working state of the target charging pile to the preset target. vehicle (s). For example, the new energy vehicle may select a new, energy vehicle for the target charging pile for, a preset time period for a preset time period in the preset time period based, on the road condition 10 information, and may select a new energy vehicle, of the target charging pile according. to the road condition information, 30 ; 2. After the working state of, the target charging pile is changed, the server, may transmit the working state of the target charging pile to the preset target vehicle by a preset time, so that the time and the electric quantity of the charging pile waste by the user can be avoided, and the utilization rate of, the charging pile can be improved to the maximum. For example, when the remaining amount of, the preset, target vehicle is C-V2X, lower than the predetermined target vehicle, the preset target vehicle may automatically turn on and receive the charging pile operating V2X state information according to. the, percentage setting of the preset target vehicle, 30%. After the working state, of the target charging pile is obtained by the method, the working state of the vehicle and. the working state of the target charging pile can, be acquired by, the server through the method, and. To an 4 exemplary embodiment of the present disclosure, a device for acquiring a working state of a charging pile, is 4 shown in an embodiment of the present disclosure, and the device is applied to a vehicle, such as, a vehicle, as shown in FIGS. The connection-state acquisition 401, module (S) is used for acquiring the connection, state of the vehicle and the target; charging pile, and the connection state comprises connecting or disconnecting the connection state of the vehicle and the target charging pile. The location information acquisition module 402, (PS) is used for acquiring the position information; of the vehicle. The transmitting module is configured to 403, transmit the connection state and the position, information to the server, so that the, server determines the operating state of the target charging pile according to. the connection state and the position information (s). Optionally, the connection state acquisition 401, module for: determining whether the connection state of the vehicle and the target; charging pile is connected to the target charging pile is, connected to the target charging pile through the charging interface of; the vehicle if the charging interface of the vehicle is, disconnected from the target charging pile. Alternatively, the transmitting 403, module may: transmit the connection state and the position information to the server (; s,) according to a preset period, and the connection, state and the position information after the switching are sent to the server . for example, if the connection state occurs between the connection and the disconnection. When the working state, of the vehicle and the target charging pile is acquired, and, the server determines, the working state of the target charging pile according to, the connection state and the position information, so that the server more simply improves. the efficiency of acquiring the working state of the, charging pile, and. In one 5 embodiment of the present disclosure, a device for acquiring a working state of a charging pile according to an embodiment of the present disclosure is shown, 5, as: a schematic diagram of, a device, as shown in FIGS. The receiving module is configured to 501, receive the position; information of the vehicle to be transmitted by the vehicle and the connection state, and of the target charging pile to the vehicle. The operation state acquisition module 502, (PS) is used for acquiring, the working state of the target charging. pile according to the connection state and the position information (DB). Optionally, the operating state is used to characterize whether the target; charging pile is being 502, charged or: not, and the working, state acquiring module (s) for determining whether the charging; pile located at the position information is in the operating. state of the target charging pile according to the connected state by using the charging pile located at the position information from the plurality of charging piles. Optionally, the operational state includes an idle state or; a state of charge 502, and the operational state acquisition module, of the SOC is further; configured to, when the connected, state is connected, the. operating state of the power state of the state of the state of the state of the state of the charging state. Optionally, the, 6 apparatus further comprises a, device as: shown in FIGS. The transmitting module 503, is configured to transmit the working state of the target charging pile to the preset target. vehicle. When the working state, of the vehicle and the target charging pile is acquired by the device, and the working state of, the vehicle and the target charging pile. is acquired from the position information of the vehicle, and the working state of the target charging pile, and. The specific manner in which the respective, modules perform operations in the above-described embodiments has been described in detail in the embodiments with respect to, the method, and will not be. described in detail herein. The embodiment of the present disclosure also provides a, device for obtaining the working state of the 4 charging pile, 7 as shown in the above-mentioned figure, in accordance with the exemplary embodiment of. the present disclosure as shown in FIGS. Although preferred embodiments of the present disclosure have been described above in detail, with, reference to the accompanying drawings, the present disclosure is not, limited to the specific details of the embodiments, described above, and that the various specific embodiments of the, present disclosure may be implemented in any suitable manner in. the technical idea of the, present disclosure. In addition, any combination of the various embodiments of the present disclosure may also be made between the various embodiments of the present disclosure, as long as it does not depart from the concept of the present disclosure, and it should also be regarded as the disclosure of. the present disclosure. When the working state of the target charging pile is acquired by the, server according to, the connection state and, the: position information of the target charging pile, the, method for acquiring the working state of; the target charging pile is; more simple and more simple, the working state, of the vehicle and the target charging pile is, obtained . and. 1.The method for obtaining the working state of the charging, pile is characterized, in that, the: method for acquiring the working state of the charging pile is characterized in that the method is characterized in that the method is applied to the vehicle. The connection state of acquiring the connection state of the vehicle, and the target charging pile comprises connecting; or disconnecting the connection state of the vehicle and the target charging pile. Acquiring location information of the vehicle. The connection state and the location information are sent to the server, such that the server determines the operating state of the, target charging pile according to the connection status. and the location information (s). 2.The method according to Claim 1, is characterized in that the connection state, of the vehicle and the target charging pile is acquired according to: the following method. Whether the charging interface of the vehicle is connected; with the target charging pile is determined. If the charging interface of the vehicle is connected with the target, charging pile, the connection state of the vehicle and the target charging pile is determined to be; connected. If the charging interface of the vehicle is disconnected from the target, charging pile, the connection state of the vehicle and the target charging pile is determined to be. open. 3.A method as according to Claim 1, described in claim, wherein the sending, of the connection state and the location information to the server comprises the step of transmitting the connection status and the location: information to a server. The connection state and the location information are sent to the server, either at; a preset period, to the server (s), respectively. If the connection state occurs between the connection and the disconnection, the switched connection state and the position information are sent to the server. 4.The method for obtaining the working state of the charging, pile is characterized, in that, the: method for acquiring the working state of the charging pile is characterized in that the method is applied to the server. A connection state of the vehicle and a target charging pile, which is transmitted by a vehicle, as well, and as the position information; of the vehicle. The working state of the target charging pile is acquired according, to the connection. state and the position information. 5.The method according to Claim 4, is characterized in that, the working state is used to characterize whether the target charging pile; is charging or not. The working state of the target charging pile is acquired according, to the connection state and the position information, and the working state of the target charging pile is: included. A charging pile located at the, location information is selected as the target charging pile from among the plurality; of charging piles. Determining the operating state of the target charging pile according. to the connection state 6.The method as according to Claim 5, characterized in that, the operating state comprises an idle state or a; charged state. The working state of the target charging pile is determined according to the connection: state, and the working state of the target charging pile is determined. When the connection state is a connection, the, operation state is a state; of charge. The operating state is idle when the, connection state is OFF. 7.The method according to Claim 4, is further characterized, in that after the obtaining of the working state of the target charging pile: the method is characterized by further comprising the step of: after the obtaining the working, state of the target charging pile. The working state of the target charging pile is sent to a preset target. vehicle. 8.The device for obtaining the working state of the charging, pile is characterized in that the device is applied, to the vehicle and: comprises the device. A connection state acquisition module, for acquiring a connection state of the vehicle and a target, charging pile, and the connection state; includes connection or disconnection. The location information acquisition module (PS,) is used for acquiring the position information; of the vehicle. The transmitting module is configured to, transmit the connection status and the location information to, the server, such that the server determines the operating state, of the target charging pile according to the. connection status and the location information (s). 9.The device for obtaining the working state of the charging, pile is characterized in that the, method: is characterized in that the device is applied, to a server and comprises a server. The receiving module is configured to, receive the connection state of the vehicle and the target charging pile transmitted by the vehicle and the position information of the vehicle, and as well as the; position information of the vehicle. The operation state acquisition module (PS,) is configured to acquire the working, state of the target charging pile according to. the connection state and the position information (DB). 10.A device for obtaining, a working state, of a charging pile 8 as claimed in any one of the preceding claims, characterized in that it comprises a device for acquiring a working state of a charging. pile as claimed in any one of the preceding claims.