[Ovmsdev] "New" car add

Mark Webb-Johnson mark at webb-johnson.net
Sat Sep 15 09:36:18 HKT 2018


Yep. You are running from ota_1:



Please try changing to factory partition, which is what ‘make app-flash’ writes to.

Regards, Mark

> On 15 Sep 2018, at 12:31 AM, Tamás Kovács <kommykt at gmail.com> wrote:
> 
> First i run 
> "make flash" at first time, the ovms "booted" up 
> and not shown in web interface,
> "vehicle list" command
> not shown peugeot
> "make size-components|grep -e 'Archive' -e peugeot"
> output same as yours
> sdkconfig
> same as yours
> make monitor
> not shown "v-peugeot: Registering Vehicle: PEUGEOT ION (9000)" row
> I don't understand what is a problem. Now i install debian 9 -on my laptop to test in the car, and write code, but same as if i compile on my Mac.
> I attach some picture, to show some state.
> 
> Mark Webb-Johnson <mark at webb-johnson.net> ezt írta (időpont: 2018. szept. 14., P, 3:19):
>> I compiled your code, and get:
>> 
>> ...
>> I (287) v-twizy: Registering Vehicle: Renault Twizy (9000)
>> I (293) v-peugeot: Registering Vehicle: PEUGEOT ION (9000)
>> I (300) v-obdii: Registering Vehicle: OBDII (9000)
>>>> 
>> OVMS# vehicle list
>> Type Name
>> DEMO Demonstration vehicle
>> FT5E Fiat 500e
>> KS   Kia Soul EV
>> MI   Mitsubishi iMiev
>> NL   Nissan Leaf
>> NONE Empty vehicle
>> O2   OBDII
>> PI   Peugeot iOn
>> RT   Renault Twizy
>> TGTC Think City
>> TR   Tesla Roadster
>> TS   Tesla Model S
>> VA   Volt/Ampera
>> XX   TRACK
>> ZEVA ZEVA BMS
>> 
>> The Peugeot iOn also appears in the web interface config vehicle list.
>> 
>> My sdkconfig has:
>> 
>> #
>> # Vehicle Support
>> #
>> CONFIG_OVMS_VEHICLE_NONE=y
>> CONFIG_OVMS_VEHICLE_OBDII=y
>> CONFIG_OVMS_VEHICLE_TRACK=y
>> CONFIG_OVMS_VEHICLE_DEMO=y
>> CONFIG_OVMS_VEHICLE_TESLAROADSTER=y
>> CONFIG_OVMS_VEHICLE_TESLAMODELS=y
>> CONFIG_OVMS_VEHICLE_NISSANLEAF=y
>> CONFIG_OVMS_VEHICLE_RENAULTTWIZY=y
>> CONFIG_OVMS_VEHICLE_KIASOULEV=y
>> CONFIG_OVMS_VEHICLE_VOLTAMPERA=y
>> CONFIG_OVMS_VEHICLE_THINKCITY=y
>> CONFIG_OVMS_VEHICLE_MITSUBISHI=y
>> CONFIG_OVMS_VEHICLE_PEUGEOT=y
>> CONFIG_OVMS_VEHICLE_ZEVA=y
>> CONFIG_OVMS_VEHICLE_FIAT500=y
>> CONFIG_OVMS_VEHICLE_RXTASK_STACK=6144
>> CONFIG_OVMS_VEHICLE_CAN_RX_QUEUE_SIZE=40
>> 
>> Also:
>> 
>> $ make size-components|grep -e 'Archive' -e peugeot
>>             Archive File DRAM .data & .bss   IRAM Flash code & rodata   Total
>>     libvehicle_peugeot.a          0     54      0       3655      531    4240
>> 
>> Can you try to recreate that? Do you get the same? If not, what differences?
>> 
>> Regards, Mark.
>> 
>>> On 14 Sep 2018, at 1:16 AM, Tamás Kovács <kommykt at gmail.com> wrote:
>>> 
>>> I use first time github, commit change, and push to my github reposytory: gitHub, and after pull request (I should not have done it)
>>> 
>>> 
>>> Mark Webb-Johnson <mark at webb-johnson.net> ezt írta (időpont: 2018. szept. 12., Sze, 6:46):
>>>> Easiest way would be for you to commit changes, push to a github repository, then let us know where that is so that we can check. Very hard to help find where the issue is, without actually being able to see the code.
>>>> 
>>>> When the module starts, it will show initialisation of modules - please check to ensure your module shows up there. If initialisation works, then check the vehicle list to be sure it is registered.
>>>> 
>>>> Regards, Mark.
>>>> 
>>>>> On 12 Sep 2018, at 12:22 PM, Tamás Kovács <kommykt at gmail.com> wrote:
>>>>> 
>>>>> 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
>>>>> _______________________________________________
>>>>> 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
>>> _______________________________________________
>>> 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
> <IMG_2030.jpg>
> <IMG_2026.jpg>
> <IMG_2029.jpg>
> <IMG_2031.jpg>
> <make_monitor.pdf>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180915/ea409033/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1.jpeg
Type: image/jpeg
Size: 188997 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180915/ea409033/attachment-0002.jpeg>


More information about the OvmsDev mailing list