[Ovmsdev] "New" car add

Tamás Kovács kommykt at gmail.com
Wed Sep 12 12:22:02 HKT 2018


In component.mk and main/Kconfig has the same name.
Kconfig: config OVMS_VEHICLE_PEUGEOT
component.mk (in vehicle folder): CONFIG_OVMS_VEHICLE_PEUGEOT

Mark Webb-Johnson <mark at webb-johnson.net> ezt írta (időpont: 2018. szept.
12., Sze, 5:40):

> It seems your module is not compiled in / registered (if it doesn’t appear
> in vehicle list).
>
> Can you check your component.mk (the one in your vehicle directory, not
> the mail project one you attached). Make sure it matches the main/Kconfig
> name (with CONFIG at the start).
>
> Regards, Mark.
>
> On 12 Sep 2018, at 12:11 AM, Tamás Kovács <kommykt at gmail.com> wrote:
>
>
>    - In attachment
>    - compare on attachment picture
>    - OvmsVehiclePeugeotInit::OvmsVehiclePeugeotInit()
>
>   {
>   ESP_LOGI(TAG, "Registering Vehicle: PEUGEOT ION (9000)");
>
>   MyVehicleFactory.RegisterVehicle<OvmsVehiclePeugeot>("PI","Peugeot iOn");
>   }
>
>
>    - OvmsVehiclePeugeot::OvmsVehiclePeugeot()
>
>   {
>   ESP_LOGI(TAG, "Start Peugeot  vehicle module");
>
>   mi_candata_timer = 0;
>   mi_est_range = 0;
>   mi_stale_charge = 0;
>   mi_QC = 0;
>   mi_QC_counter = 5;
>   mi_last_good_SOC = 0;
>   mi_last_good_range = 0;
>   memset(m_vin,0,sizeof(m_vin));
>   memset(mi_batttemps,0,sizeof(mi_batttemps));
>
>   RegisterCanBus(1,CAN_MODE_ACTIVE,CAN_SPEED_500KBPS);
>
>   // require GPS:
>   MyEvents.SignalEvent("vehicle.require.gps", NULL);
>   MyEvents.SignalEvent("vehicle.require.gpstime", NULL);
>   }
>
>    - Type Name
>       - DEMO Demonstration vehicle
>       - FT5E Fiat 500e
>       - KS   Kia Soul EV
>       - MI   Mitsubishi iMiev
>       - NL   Nissan Leaf
>       - NONE Empty vehicle
>       - O2   OBDII
>       - RT   Renault Twizy
>       - TGTC Think City
>       - TR   Tesla Roadster
>       - TS   Tesla Model S
>       - VA   Volt/Ampera
>       - XX   TRACK
>       - ZEVA ZEVA BMS
>
>
>
>
> Mark Webb-Johnson <mark at webb-johnson.net> ezt írta (időpont: 2018. szept.
> 11., K, 3:07):
>
>> Can you show the source code for your module (github repository?), or
>> just:
>>
>>
>>    - Your component.mk
>>    - The changes you have made to sdkconfig
>>    - Your OvmsVehicle***Init::OvmsVehicle**Init() function
>>    - Your OvmsVehicle***::OvmsVehicle***() function
>>    - Output of ‘vehicle list’ command
>>
>>
>> Regards, Mark.
>>
>> On 11 Sep 2018, at 2:27 AM, Tamás Kovács <kommykt at gmail.com> wrote:
>>
>> Hi, i have a Peugoet iOn, some week ago i buy a OVMS v3.1 kit. Works
>> well the basic functions for my car with Mitsubishi profile. I want to
>> create a own profile for my car for testing, my own code, but i
>> duplicate mitsubishi files in components folder, and all mitsubishi
>> change to peugeot (case sensitive), and vehicle code modified to PI,
>> and duplicate mitsibishi code in main/Kconfig and modify to peugeot,
>> but i can not see in the web interface after make flash. After add it
>> make show a question: add Peugeot to... i write Y, but nothing happen.
>> I use MacOS High Sierra, and atom for modify files.
>> <Screen Shot 2018-09-06 at 8.17.21.png><Screen Shot 2018-09-06 at
>> 8.17.35.png>_______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>
>
>
> --
> Üdvözlettel:
> Kovács Tamás
> <component.mk><Screen Shot 2018-09-11 at 6.04.29.png>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>


-- 
Üdvözlettel:
Kovács Tamás
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180912/2c7ea16c/attachment.htm>


More information about the OvmsDev mailing list