Vehicle power system automatic switching method based on electronic fence
By using electronic fence automatic switching technology in hybrid vehicles, the problem of poor reliability of power mode switching caused by manual operation is solved, efficient and low-cost automatic power mode switching is achieved, and carbon emission management efficiency is improved.
Patent Information
- Application Number
- CN202311554609.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2024-09-27
AI Technical Summary
Hybrid vehicle power mode switching mainly relies on manual operation, resulting in poor technical reliability, prone to omissions and misoperations, and affecting the efficiency of carbon emission management.
The vehicle power system automatic switching method based on electronic fence is adopted. By drawing the enterprise factory area on the electronic map, binding the vehicle and the polygon area, the vehicle position data is received in real time, the vehicle position change is judged, the power mode is automatically switched, and the CAN message control is used. ECU switches modes.
It improves the reliability of power mode switching, reduces manual operation errors, and improves carbon emission management efficiency and vehicle management levels.
Smart Images

Figure CN118701025A
Abstract
Description
Technical Field
[0001] The invention relates to a vehicle power system, and in particular to an automatic switching method for a vehicle power system based on an electronic fence. Background Art
[0002] According to the increasingly stringent national requirements for carbon emissions, commercial vehicles using the carbon calculation formula generate about 85 kg of carbon emissions for every 100 kilometers traveled. As the main tool for long-distance transportation, hybrid vehicles are highly valued. There are two modes for hybrid vehicles, one is electric mode (electric mode uses only batteries as the vehicle's power source), and the other is power mode (power mode uses fossil energy such as oil and natural gas as the vehicle's power source). Vehicles use electric mode in areas with carbon emission requirements and special scenarios, and use power mode in areas without carbon emission requirements and long-distance transportation. At present, hybrid vehicles mainly rely on manual switching of power modes, and the technical reliability is poor. Summary of the invention
[0003] The present invention solves the problem that the current hybrid vehicle mode mainly relies on manual switching of power modes and has poor technical reliability by providing an efficient and low-cost hybrid vehicle mode switching method.
[0004] The present invention is achieved by the following technical solutions:
[0005] A method for automatically switching a vehicle power system based on an electronic fence comprises the following steps:
[0006] 1. Draw the regional polygon of the enterprise factory area on the electronic map
[0007] 1. Draw the polygonal area of the enterprise factory through the API provided by the mainstream map service provider;
[0008] 2. The set of longitude and latitude of the enterprise area obtained after drawing is stored in the database;
[0009] 2. Binding vehicles to polygonal areas
[0010] 1. Establish an association relationship between the vehicle and the longitude and latitude set of the enterprise polygon area stored in step 1;
[0011] 2. Store the association between the vehicle and the stored longitude and latitude set of the enterprise polygon area in the database;
[0012] 3. The platform receives real-time location data and hybrid mode data reported by the vehicle terminal
[0013] 1. Install a positioning terminal on the vehicle, set the reporting frequency in the terminal, and report to the web server;
[0014] 2. The platform analyzes the communication protocol between the terminal and the platform and stores it in the database;
[0015] 4. The platform determines in real time based on the data reported by the terminal whether the latitude and longitude points of the vehicle have changed their status inside or outside the enterprise factory.
[0016] 1. Based on the reported vehicle data, the platform searches for the relationship between the vehicle and the enterprise's factory area, and finds the longitude and latitude set of the area of the enterprise where the vehicle is located;
[0017] 2. Based on the reported vehicle data and the regional longitude and latitude set of the enterprise of the vehicle, the relationship between the longitude and latitude of the current position of the vehicle and the longitude and latitude set of the polygonal area of the enterprise is determined respectively. The determination method is as follows:
[0018] Draw connecting lines through the vehicle's longitude and latitude points and the points of the enterprise area polygon. If the sum of the vector angles formed by each connecting line and the vehicle point vertex is 2π, then the vehicle's longitude and latitude are within the enterprise polygon area, that is, the vehicle is traveling within the enterprise polygon area. Otherwise, if the sum of the vector angles is less than 2π, the vehicle's longitude and latitude are not within the enterprise polygon area, that is, the vehicle is traveling outside the enterprise polygon area.
[0019] 3. The result of determining whether the latitude and longitude of the vehicle is in the enterprise polygonal area is stored in the database;
[0020] 4. Obtain the vehicle latitude and longitude results in the enterprise polygonal area that have been stored in the database last time, and compare them. There are four situations in the comparison:
[0021] 4.1. If the vehicle's latitude and longitude were in the enterprise polygonal area last time and the result this time is also in the area, the vehicle mode will not be changed;
[0022] 4.2. If the vehicle's latitude and longitude were within the enterprise's polygonal area last time and are outside the area this time, change the vehicle to power mode;
[0023] 4.3. If the vehicle's latitude and longitude were outside the enterprise's polygonal area last time and are within the area this time, the vehicle will be changed to electric mode;
[0024] 4.4. If the vehicle's latitude and longitude were outside the enterprise's polygonal area last time and are also outside the area this time, the vehicle mode will not be changed;
[0025] 5. Change vehicle mode
[0026] 1. According to the judgment results of the above steps 4.1 and 4.4, the vehicle mode is not switched. When the vehicle is in the factory, the platform will also perform a redundant comparison on the vehicle mode in the real-time data reported by the current terminal. If the mode is the power mode, the platform will issue a mode switching instruction to make the vehicle in the electric mode. When the vehicle is outside the factory, no redundant comparison will be performed;
[0027] 2. According to the judgment result of the above step 4.2, the vehicle should be switched to the power mode. The platform sends the platform command to the vehicle terminal. After receiving the command, the vehicle terminal sends it to the vehicle ECU controller through the vehicle CAN message to make the vehicle enter the power mode;
[0028] 3. According to the judgment result of the above step 4.3, the vehicle should switch to electric mode. The platform sends the platform command to the vehicle terminal. After the vehicle terminal receives the command, it sends it to the vehicle ECU controller through the vehicle CAN message to make the vehicle enter the electric mode.
[0029] The present invention adopts platform area control to automatically switch the power mode, effectively avoiding omissions and erroneous operations caused by manual operation, and has high reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flow chart of the present invention;
[0031] Figure 2 , Figure 3 It is a schematic diagram of steps 4 and 2 of the present invention for determining whether the longitude and latitude of the vehicle are within or outside the enterprise polygonal area. DETAILED DESCRIPTION
[0032] The purpose of the present invention is to provide an efficient and low-cost hybrid vehicle mode switching method. Figure 1 , the details include the following steps:
[0033] 1. Draw the regional polygon of the enterprise factory area on the electronic map. The detailed steps include:
[0034] 1. Draw the polygonal area of the enterprise factory through the API provided by mainstream map service providers.
[0035] 2. The set of longitude and latitude of the enterprise area is obtained after drawing, and the longitude and latitude set is stored in the database.
[0036] 2. Bind the vehicle to the polygonal area. This includes the following detailed steps:
[0037] 1. Establish an association between the vehicle and the longitude and latitude set of the enterprise polygon area stored in step 1.
[0038] 2. Store the association between the vehicle and the stored enterprise polygon area longitude and latitude set in the database.
[0039] 3. The platform receives the location data and hybrid mode data reported by the vehicle terminal in real time. It includes the following detailed steps:
[0040] 1. Install a positioning terminal on the vehicle, set the reporting frequency in the terminal to once every 10 seconds, and report to the web server.
[0041] 2. The platform parses the information based on the communication protocol between the terminal and the platform and stores it in the database.
[0042] 4. The platform determines in real time whether the vehicle's latitude and longitude points have changed status inside or outside the enterprise factory based on the data reported by the terminal every 10 seconds. The detailed steps are as follows:
[0043] 1. Based on the reported vehicle data, the platform queries the relationship between the vehicle and the enterprise's factory area, and finds the longitude and latitude set of the area of the enterprise where the vehicle is located.
[0044] 2. Based on the reported vehicle data and the regional longitude and latitude set of the enterprise found for the vehicle, determine the relationship between the longitude and latitude of the vehicle's current location and the longitude and latitude set of the enterprise's polygonal area. The determination method is as follows:
[0045] Draw connecting lines through the vehicle's longitude and latitude points and the points of the enterprise area polygon. The sum of the vector angles formed by each connecting line and the vehicle point vertex is 2π. The vehicle's longitude and latitude are within the enterprise polygon area, which means that the vehicle is driving within the enterprise polygon area. For reference, see the schematic diagram. Figure 2 ; Otherwise, the sum of the vector angles is less than 2π, and the longitude and latitude of the vehicle are not within the enterprise polygonal area, that is, the vehicle is traveling outside the enterprise polygonal area. For reference, see the schematic diagram Figure 3 .
[0046] 3. The result of determining the latitude and longitude of the vehicle in the enterprise polygonal area is stored in the database
[0047] 4. Obtain the vehicle latitude and longitude results in the enterprise polygonal area that have been stored in the database last time, and compare them. There are four situations in the comparison:
[0048] 4.1. If the vehicle's latitude and longitude were within the enterprise polygonal area last time and are also within the area this time, the vehicle mode will not be changed.
[0049] 4.2. If the vehicle's latitude and longitude were within the enterprise's polygonal area last time and are outside the area this time, the vehicle will be changed to power mode.
[0050] 4.3. If the vehicle's latitude and longitude were outside the enterprise's polygonal area last time and are within the area this time, the vehicle will be changed to electric mode.
[0051] 4.4. If the vehicle's latitude and longitude were outside the enterprise polygonal area last time and are also outside the area this time, the vehicle mode will not be changed.
[0052] 5. Change vehicle mode.
[0053] 1. According to the judgment results of the above steps 4.1 and 4.4, the vehicle mode is not switched. When the vehicle is in the factory, the platform also performs a redundant comparison on the vehicle mode in the real-time data reported by the current terminal. If the mode is the power mode, the platform issues a mode switching instruction to make the vehicle in the electric mode. When the vehicle is outside the factory, no redundant comparison is performed.
[0054] 2. According to the judgment result of the above step 4.2, the vehicle should switch to the power mode. The platform sends the platform command to the vehicle terminal. After the vehicle terminal receives the command, it sends it to the vehicle ECU controller through the vehicle CAN message to make the vehicle enter the power mode.
[0055] 3. According to the judgment result of the above step 4.3, the vehicle should switch to electric mode. The platform sends the platform command to the vehicle terminal. After the vehicle terminal receives the command, it sends it to the vehicle ECU controller through the vehicle CAN message to make the vehicle enter the electric mode.
[0056] The present invention can effectively solve the problem of manual power mode switching operations, reduce omissions and misoperations by relevant personnel, and cause the carbon detector to monitor carbon emissions, thereby improving the company's management of vehicles and improving the execution efficiency of personnel.
Claims
1. A method for automatically switching a vehicle power system based on an electronic fence, characterized in that it comprises the following steps:
1. Draw the regional polygon of the enterprise factory area on the electronic map 1) Draw the polygonal area of the enterprise factory through the API provided by the mainstream map service provider; 2) The set of longitude and latitude of the enterprise area obtained after drawing is stored in the database; 2. Binding vehicles to polygonal areas 1) Establish an association relationship between the vehicle and the enterprise polygon area longitude and latitude set stored in step 1; 2) storing the association relationship between the vehicle and the stored enterprise polygon area longitude and latitude set in the database; 3. The platform receives real-time location data and hybrid mode data reported by the vehicle terminal 1) Install a positioning terminal on the vehicle, set the reporting frequency in the terminal, and report to the web server; 2) The platform analyzes the communication protocol between the terminal and the platform and stores it in the database; 4. The platform determines in real time based on the data reported by the terminal whether the latitude and longitude points of the vehicle have changed their status inside or outside the enterprise factory. 1) Based on the reported vehicle data, the platform queries the relationship between the vehicle and the enterprise's factory area, and finds the longitude and latitude set of the area of the enterprise of the vehicle; 2) Based on the reported vehicle data and the regional longitude and latitude set of the enterprise of the vehicle, the relationship between the longitude and latitude of the current position of the vehicle and the longitude and latitude set of the polygonal area of the enterprise is determined respectively. The determination method is as follows: Draw connecting lines through the vehicle's longitude and latitude points and the points of the enterprise area polygon. If the sum of the vector angles formed by each connecting line and the vehicle point vertex is 2π, then the vehicle's longitude and latitude are within the enterprise polygon area, that is, the vehicle is traveling within the enterprise polygon area. Otherwise, if the sum of the vector angles is less than 2π, the vehicle's longitude and latitude are not within the enterprise polygon area, that is, the vehicle is traveling outside the enterprise polygon area. 3) The result of determining whether the latitude and longitude of the vehicle is in the enterprise polygonal area is stored in the database; 4) Obtain the vehicle latitude and longitude results in the enterprise polygonal area that have been stored in the database last time, and compare them. There are four situations in the comparison: 4.1) If the vehicle's latitude and longitude were in the enterprise polygonal area last time and the result this time is also in the area, the vehicle mode will not be changed; 4.2) If the vehicle's latitude and longitude were within the enterprise's polygonal area last time and are outside the area this time, change the vehicle to power mode; 4.3) If the vehicle's latitude and longitude were outside the enterprise's polygonal area last time and are within the area this time, the vehicle will be changed to electric mode; 4.4) If the vehicle's latitude and longitude were outside the enterprise polygonal area last time and are also outside the area this time, the vehicle mode will not be changed; 5. Change vehicle mode 1) According to the judgment results of the above steps 4.1 and 4.4, the vehicle mode is not switched. When the vehicle is in the factory, the platform also performs a redundant comparison on the vehicle mode in the real-time data reported by the current terminal. If the mode is the power mode, the platform issues a mode switching instruction to make the vehicle in the electric mode. When the vehicle is outside the factory, no redundant comparison is performed; 2) According to the judgment result of the above step 4.2, the vehicle should switch to the power mode. The platform sends the platform command to the vehicle terminal. After receiving the command, the vehicle terminal sends it to the vehicle ECU controller through the vehicle CAN message to make the vehicle enter the power mode; 3) According to the judgment result of the above step 4.3, the vehicle should switch to electric mode. The platform sends the platform command to the vehicle terminal. After the vehicle terminal receives the command, it sends it to the vehicle ECU controller through the vehicle CAN message to make the vehicle enter the electric mode.
