How to use the diagnostic connector

This guide will show you how to use the USB-C connector on our Veridian Cruise modules. The connector allows you to do real time diagnostics and diagnose problems on installation. 

You will need:

  • Android Phone, Tablet OR laptop of any make. iOS not supported due to a lack of serial terminal.
  • USB Serial terminal app. I like this app but there are many options. For windows user there is PUTTY or TeraTerm.
  • USB-C cable

Steps to connect:

  1. Install serial app
  2. Remove dust cover on control module
  3. Turn bike ignition on
  4. Connect device

Android Serial Term

For user with the Serial USB Terminal Android App ensure you click the connect button on the top bar

USB Terminal connected

To diagnose a faulty cruise control you can enable the debug message by sending debug command.

__

PUTTY for Windows

Use the windows device manager to find the COM port Number. Here we can see the COM port is #9

Then we need to configure PUTTY as follows

Connection Type: Serial

Host Name: COM port from above. “COM9” in this case.

Lastly we also need to enable Local Echo under Terminal settings.

Click Open, type commands and enter to send.

Debug errors

For debugging the following codes will be output

RPM – RPM is below the minimum required for cruise

Speed – Speed is below the minimum required for cruise

Gear – Cruise is only enabled for gears above 1

Brake – Brake lever is being pressed

Clutch – Clutch lever is being pressed

Messages about CANBUS or CAN Age would indicator a faulty module or disconnect diagnostic connector.

Advanced commands

For more advanced functions you can also input the following commands.

FunctionArgumentsComments
DFUnoneEnter bootloader mode for firmware upgrades. Will drop out of DFU with power cycle
confignonePrint out the current config
stopcodenonePrints the last stop code from Cruise Cancel event. See Kill Conditions. Memory lost on power.
debugnone Start/Stop printing Debug messages.
While cruise is active: 3 data fields are:
cruiseSetPoint, CAN_Rear_Wheel, output_throttle.
Use for custom tuning PID.
resetnoneReset Config
helpnonePrint Help
wheelx18Adjust the wheel speed sensor factor. Change for custom applications or extreme tire changes.
speedINC03Adjust the amount to increase speed with a single press of the INC/DESC buttons. Units are KM/H
PID120 05 00Adjust the PID gain
tmax50Adjust the Maximum throttle limit. Units are 1%
TPSidlenoneSet the throttle input idle position
TPSopennoneSet the throttle input open position

Firmware Updates

Firmware updates are available as we tweak settings and add new features.

Check our google drive here for the latest version. Currenlty firmware updates are only supported on windows machines.

  1. Extract the Zip file and run the VCUpdater.bat file
  2. Select the desired firmware to update with a number key
  3. Select the device Com Port by entering only the number portion. For COM8, simply enter 8, then enter.
  4. Script will now put the device in Device Firmware Update mode, DFU, and attempt to flash. DO NOT DISCONNECT.
  5. Successful flashing will look like this.

If unsuccessful, please get in touch with your error message or see tips below. Device can be safely removed and will return to normal operation.

LIB_USB_ERROR_NOT_SUPPORTED

If you get this error, the drivers for DFU mode are not setup correctly. Leave the device connected and powered on. DFU device needs to have WinUSB Drivers.

  1. Download Zadig driver tool (Also included in our Firmware Zip files)
  2. Run the Batch firmware update script to get the LIB_USB_ERROR. Do not unplug the device.
  3. From the Options Menu of Zadig, Select “List all device”
  4. Find the STM32 Bootloader in the dropdown and change the driver to WinUSB
  5. Click Upgrade or Replace driver.
  6. Run the firmware update tool again. Any Port number can be entered.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *