Skip to content

Commit

Permalink
Merge pull request #861 from Jockz0rz/master
Browse files Browse the repository at this point in the history
Add support for Maxus Euniq 5 6-seat
  • Loading branch information
dexterbg committed Mar 28, 2023
2 parents 874e4c1 + 8c4d81a commit 7cff295
Show file tree
Hide file tree
Showing 8 changed files with 1,422 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vehicle/OVMS.V3/components/vehicle_maxus_euniq56/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set(srcs)
set(include_dirs)

if (CONFIG_OVMS_VEHICLE_MAXED3)
list(APPEND srcs "src/me56_web.cpp" "src/vehicle_me56.cpp")
list(APPEND include_dirs "src")
endif ()

# requirements can't depend on config
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${include_dirs}
PRIV_REQUIRES "main"
WHOLE_ARCHIVE)
14 changes: 14 additions & 0 deletions vehicle/OVMS.V3/components/vehicle_maxus_euniq56/component.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Main component makefile.
#
# This Makefile can be left empty. By default, it will take the sources in the
# src/ directory, compile them and link them into lib(subdirectory_name).a
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#

ifdef CONFIG_OVMS_VEHICLE_MAXE56
COMPONENT_ADD_INCLUDEDIRS:=src
COMPONENT_SRCDIRS:=src
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
endif
34 changes: 34 additions & 0 deletions vehicle/OVMS.V3/components/vehicle_maxus_euniq56/docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
=======================
Maxus Euniq 5 6-seats
=======================

Vehicle Type: **ME56**

The Maxus Euniq 5 6-seats will be documented here.

----------------
Support Overview
----------------

=========================== ==============
Function Support Status
=========================== ==============
Hardware OVMS v3 (or later)
Vehicle Cable OBD-II to DB9 Data Cable for OVMS (1441200 right, or 1139300 left)
GSM Antenna 1000500 Open Vehicles OVMS GSM Antenna (or any compatible antenna)
GPS Antenna 1020200 Universal GPS Antenna (SMA Connector) (or any compatible antenna)
SOC Display Yes
Range Display Yes
GPS Location Yes (from modem module GPS)
Speed Display No
Temperature Display Yes (External Temp and Battery)
BMS v+t Display Yes
TPMS Display No
Charge Status Display No
Charge Interruption Alerts No
Charge Control No
Cabin Pre-heat/cool Control No
Lock/Unlock Vehicle No
Valet Mode Control No
Others
=========================== ==============
70 changes: 70 additions & 0 deletions vehicle/OVMS.V3/components/vehicle_maxus_euniq56/src/me56_pids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
; Project: Open Vehicle Monitor System
; Date: 8th March 2021
;
; Changes:
; 1.0 Initial release
;
; (C) 2021 Shane Hunns
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
; THE SOFTWARE.
*/

#ifndef ME56_PIDS_H_
#define ME56_PIDS_H_

// Module IDs
constexpr uint32_t broadcastId = 0x7dfu;
constexpr uint32_t bmstx = 0x748u;
constexpr uint32_t bmsrx = 0x7c8u;
constexpr uint32_t vcutx = 0x7e3u;
constexpr uint32_t vcurx = 0x7ebu;
constexpr uint32_t gwmtx = 0x710u;
constexpr uint32_t gwmrx = 0x790u;
constexpr uint32_t evcctx = 0x726u;
constexpr uint32_t evccrx = 0x7a6u;


// BMS PIDs
constexpr uint16_t bmssoc = 0xe014u;
constexpr uint16_t bmsStatusPid = 0xe037u;
constexpr uint16_t bmssoh = 0xe053u;
constexpr uint16_t bmsccsamps = 0xe088u;
constexpr uint16_t bmsacamps = 0xe089u;
//constexpr uint16_t bmsccschargeon = 0xe090u;
//constexpr uint16_t bmsacchargeon = 0xe091u;
constexpr uint16_t bmssocraw = 0xe096u;
constexpr uint16_t cellvolts = 0xe113u;
constexpr uint16_t celltemps = 0xe114u;
// constexpr uint16_t packamps = 0xe131u;

// VCU PIDs
constexpr uint16_t vcuspeed = 0xe000u;
constexpr uint16_t vcutemp1 = 0xe005u;
constexpr uint16_t vcutemp2 = 0xe006u;
constexpr uint16_t vcupackvolts = 0xe019u;
constexpr uint16_t vcuvin = 0xf190u;
constexpr uint16_t vcu12vamps = 0xe022u;
constexpr uint16_t vcuchargervolts = 0xe020u;
//constexpr uint16_t vcuchargeramps = 0xe039u;

// EVCC PIDs
constexpr uint16_t evccacamps = 0xe005u;

#endif // ME56_PIDS_H_

0 comments on commit 7cff295

Please sign in to comment.