How to use the diagnostic connector

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.

Function Arguments Comments
DFU none Enter bootloader mode for firmware upgrades. Will drop out of DFU with power cycle
config none Print out the current config
stopcode none Prints the last stop code from Cruise Cancel event. See Kill Conditions. Memory lost on power.
debug none  Start/Stop printing Debug messages.
While cruise is active: 3 data fields are:
cruiseSetPoint, CAN_Rear_Wheel, output_throttle.
Use for custom tuning PID.
reset none Reset Config
help none Print Help
wheelx 18 Adjust the wheel speed sensor factor. Change for custom applications or extreme tire changes.
speedINC 03 Adjust the amount to increase speed with a single press of the INC/DESC buttons. Units are KM/H
PID 120 05 00 Adjust the PID gain
tmax 50 Adjust the Maximum throttle limit. Units are 1%
TPSidle none Set the throttle input idle position
TPSopen none Set 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.

Back to blog

1 comment

I just learned about this project. I have a 1090 and a friend alerted me to it as he stumbled on the information thinking it might be a solution for his 690. As a recovering engineer myself, and supporter of small startups, I am rooting for your ambitious endeavor. I was hoping to find more content (install videos, customer comments, and such) specifically on the 1090 application, but I understand you are very early in the release cycle. I’m sure they will come. I didn’t notice if you have a section on the “Vendor” forum on ADVRider or not, but having one in the future when you have time to breathe might be useful for comments and sharing customer experiences. I can only imagine you are still in the ‘second-90’ phase of the 90-90 rule. I have started companies in the past and intimately (uncomfortably?) familiar with what it takes to accomplish the final 10% of a project. Wishing you the best of luck. You might hear from me regarding a kit for my bike. Having been freshly introduced to this, I have some further investigating to do.
Best regards,
Bill

Bill Evans

Leave a comment

Please note, comments need to be approved before they are published.