Did some off-list work with Steve and Greg on homelink. Turns out that there is really a ‘duration’ associated with homelink transmissions. For Tesla Roadster:

  1. For single button presses, the duration is about 1,000ms.
  2. Any transmission longer than about 10,000ms - 14,000ms is cut-off and aborted after that time.
  3. If a button is held down, homelink continues to transmit (up to the maximum #2 above).

Accordingly, I’ve updated the homelink command, and vehicle modules that use it. Haven’t bothered to change the OVMS protocol v2 (as that can just use the default of 1000ms).

Regards, Mark

Begin forwarded message:

From: GitHub <noreply@github.com>
Subject: [openvehicles/Open-Vehicle-Monitoring-System-3] 951f04: Support durations (default 1000ms) for homelink tr...
Date: 15 May 2018 at 9:23:39 PM HKT
To: mark@webb-johnson.net
Reply-To: GitHub <noreply@github.com>

 Branch: refs/heads/master
 Home:   https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3
 Commit: 951f04587792c88682335ff938e83b6e071b5411
     https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/951f04587792c88682335ff938e83b6e071b5411
 Author: Mark Webb-Johnson <mark@webb-johnson.net>
 Date:   2018-05-15 (Tue, 15 May 2018)

 Changed paths:
   M vehicle/OVMS.V3/components/vehicle/vehicle.cpp
   M vehicle/OVMS.V3/components/vehicle/vehicle.h
   M vehicle/OVMS.V3/components/vehicle_demo/src/vehicle_demo.cpp
   M vehicle/OVMS.V3/components/vehicle_demo/src/vehicle_demo.h
   M vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.cpp
   M vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.h
   M vehicle/OVMS.V3/components/vehicle_teslaroadster/src/vehicle_teslaroadster.cpp
   M vehicle/OVMS.V3/components/vehicle_teslaroadster/src/vehicle_teslaroadster.h

 Log Message:
 -----------
 Support durations (default 1000ms) for homelink transmissions.



     **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

     Functionality will be removed from GitHub.com on January 31st, 2019.