<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Tom Parker:<div class=""><br class=""></div><div class="">Any chance you can implement door control to the Leaf?</div><div class="">It´s working great with this changes (the door parts):</div><div class=""><br class=""></div><div class=""><b class="">vehicle_nissanleaf.cpp:</b></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="color: #ba2da2" class="">switch</span> (command)</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">    {</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">    <span style="color: #ba2da2" class="">case</span> ENABLE_CLIMATE_CONTROL:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">      ESP_LOGI(TAG, </span>"Enable Climate Control"<span style="color: #000000" class="">);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">0</span>] = <span style="color: #272ad8" class="">0x4e</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">1</span>] = <span style="color: #272ad8" class="">0x08</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">2</span>] = <span style="color: #272ad8" class="">0x12</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">3</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      <span style="color: #ba2da2" class="">break</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">    <span style="color: #ba2da2" class="">case</span> DISABLE_CLIMATE_CONTROL:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">      ESP_LOGI(TAG, </span>"Disable Climate Control"<span style="color: #000000" class="">);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">0</span>] = <span style="color: #272ad8" class="">0x56</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">1</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">2</span>] = <span style="color: #272ad8" class="">0x01</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">3</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      <span style="color: #ba2da2" class="">break</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">    <span style="color: #ba2da2" class="">case</span> START_CHARGING:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      ESP_LOGI(TAG, <span style="color: #d12f1b" class="">"Start Charging"</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">0</span>] = <span style="color: #272ad8" class="">0x66</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">1</span>] = <span style="color: #272ad8" class="">0x08</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">2</span>] = <span style="color: #272ad8" class="">0x12</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">3</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      <span style="color: #ba2da2" class="">break</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">    <span style="color: #ba2da2" class="">case</span> UNLOCK_DOORS:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      ESP_LOGI(TAG, <span style="color: #d12f1b" class="">"Unlook Doors"</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">0</span>] = <span style="color: #272ad8" class="">0x11</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">1</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">2</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">3</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      <span style="color: #ba2da2" class="">break</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">    <span style="color: #ba2da2" class="">case</span> LOCK_DOORS:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      ESP_LOGI(TAG, <span style="color: #d12f1b" class="">"Look Doors"</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">0</span>] = <span style="color: #272ad8" class="">0x60</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">1</span>] = <span style="color: #272ad8" class="">0x80</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">2</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      data[<span style="color: #272ad8" class="">3</span>] = <span style="color: #272ad8" class="">0x00</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">      <span style="color: #ba2da2" class="">break</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">    </span>default<span style="color: #000000" class="">:</span></div></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">OvmsVehicle::vehicle_command_t OvmsVehicleNissanLeaf::CommandClimateControl(<span style="color: #ba2da2" class="">bool</span> climatecontrolon)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">  {</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(209, 47, 27);" class=""><span style="color: #000000" class="">  ESP_LOGI(TAG, </span>"CommandClimateControl"<span style="color: #000000" class="">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">  <span style="color: #ba2da2" class="">return</span> RemoteCommandHandler(climatecontrolon ? ENABLE_CLIMATE_CONTROL : DISABLE_CLIMATE_CONTROL);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">  }</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">OvmsVehicle::vehicle_command_t OvmsVehicleNissanLeaf::CommandLock(<span style="color: #ba2da2" class="">const</span> <span style="color: #ba2da2" class="">char</span>* pin)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">{</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">    <span style="color: #ba2da2" class="">return</span> RemoteCommandHandler(LOCK_DOORS);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">}</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">OvmsVehicle::vehicle_command_t OvmsVehicleNissanLeaf::CommandUnlock(<span style="color: #ba2da2" class="">const</span> <span style="color: #ba2da2" class="">char</span>* pin)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">{</div><p style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;" class="">    <br class="webkit-block-placeholder"></p><p style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0); min-height: 13px;" class="">    <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">    <span style="color: #ba2da2" class="">return</span> RemoteCommandHandler(UNLOCK_DOORS);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(0, 0, 0);" class="">}</div><div class=""><br class=""></div></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><b class="">vehicle_nissanleaf.h:</b></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><b class=""><br class=""></b></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><b class=""><br class=""></b></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><b class=""><br class=""></b></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(186, 45, 162);" class="">typedef<span style="color: #000000" class=""> </span>enum</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  {</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  ENABLE_CLIMATE_CONTROL,</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  DISABLE_CLIMATE_CONTROL,</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  START_CHARGING,</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  UNLOCK_DOORS,</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  LOCK_DOORS</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  } RemoteCommand;</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(186, 45, 162);" class="">public<span style="color: #000000" class="">:</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    <span style="color: #ba2da2" class="">void</span> IncomingFrameCan1(CAN_frame_t* p_frame);</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    <span style="color: #ba2da2" class="">void</span> IncomingFrameCan2(CAN_frame_t* p_frame);</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    vehicle_command_t CommandHomelink(<span style="color: #ba2da2" class="">int</span> button);</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    vehicle_command_t CommandClimateControl(<span style="color: #ba2da2" class="">bool</span> enable);</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    <span style="color: #ba2da2" class="">virtual</span> vehicle_command_t CommandLock(<span style="color: #ba2da2" class="">const</span> <span style="color: #ba2da2" class="">char</span>* pin);</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    <span style="color: #ba2da2" class="">virtual</span> vehicle_command_t CommandUnlock(<span style="color: #ba2da2" class="">const</span> <span style="color: #ba2da2" class="">char</span>* pin);</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    <span style="color: #ba2da2" class="">void</span> RemoteCommandTimer();</div></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Kind regards,</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Stein Arne Sordal</div></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div class=""><br class=""></div></body></html>