You are here

USB Connection Issue

16 posts / 0 new
Last post
edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8
USB Connection Issue

Hi All,

After flashing the latest firmware 5.2 to my self developed board, I do not get a connection to the USB port.

Interesting enough the USB port comes alive only after I send a few messages over the CAN Bus.

Initially and after power off/on, the red en green light flash twice each 2 seconds. After sending the CAN messages, the green LED is lit, but very dimmed and the red LED flashes twice each second.

After this I have a "ChibiOS/RT Virtual COM Port" available and the VESC Tool connects to the drive over USB.

Is someone able to give me a clue on what is going on and what I can do to solve this issue?

Any thoughts are really appreciated,

 

Edward.

 

 

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

red led means a fault, look realtime data, are there any fault?

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

Thank you for your reply. Using the realtime data I do get measurements in, although I have not (yet) connected a motor to the drive.

What type of information should I look at in the real-time data?

My biggest issue for now is that the USB port does not appear only after sending CAN messages to the drive (using another program than the VESC Tool).

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

vesc version? could try previous fw,s.

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

Oke, which version do you recommend.

To get the firmware I use the following command: 

git clone https://github.com/vedderb/bldc.git vesc_firmware

How to get a previous version?

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

Oke, which version do you recommend.

To get the firmware I use the following command: 

git clone https://github.com/vedderb/bldc.git vesc_firmware

How to get a previous version?

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

As watching, after fw 5.0, no usb issues detected, by the way the com port driver also changed on my pc, Teensy USB device detected, maybe you could try port driver update.

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

I use the VESC tool on my mac. No need to update the USB driver. As I wrote in the beginning, the USB port does work, however I need to send a few CAN messages first, before I see it in the USB driver list. I send these using another program than the VESC tool.

I understand that the red led flashes, since there is no motor connected. However, I would like that the USB port is up ans running directly after power-up.

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

Could you try down grade to fw 4.1, and test?

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

I will try to down grade to 4.1. Could you please give me some instructions how to do this. Sorry for the noob question :-)

I guess it is not just changing the numbers in config_general.h

#define FW_VERSION_MAJOR            5
#define FW_VERSION_MINOR            02

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

https://esk8.2ss.kr/entry/vesc-tool

from the link 2.02 should be downloaded and to be tried. There are windows and android versions.

For Mac-os compiling;

https://gowrav.com/qt-for-vesc-on-macos/

 

CTSchorsch
Offline
Last seen: 4 months 3 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

Which compiler version do you use ? There are some problems with the gcc after v 7-2018-q3

 

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

Recently I can not make the compile, because of pc trouble. I was using officially provided compilers, written somewhere in these forums.

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

Hi Skyline,

Thanx for you rsuggestion: I have tried the max-os option. This was not successful. I have followed the instructions and get the following ERROR:

Project WARNING: Qt has only been tested with version 10.15 of the platform SDK, you're using .
Project WARNING: This is an unsupported configuration. You may experience build issues, and by using
Project WARNING: the 11.1 SDK you are opting in to new features that Qt has not been prepared for.
Project WARNING: Please downgrade the SDK you use to build your app to version 10.15, or configure
Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning.
Project ERROR: Unknown module(s) in QT: serialport bluetooth positioning gamepad
make: *** No rule to make target `clean'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
./build_macos_original_only: line 7: cd: build/macos: No such file or directory

Could you please give me some hints how to fix this.
 

On the other hand, the problem I have is on the firmware code running on my board. In that code the USB port is not automatically visible, other than by playing some trick via the CAN network.

I'm using the VESC_TOOL 2.05 and 3.00 on my Mac and both are showing similar results and do work on a commercial board.

 

edward.holweg@me.com
Offline
Last seen: 3 years 5 days ago
Joined: 2020-11-26 12:07
Posts: 8

Hi CTSchorsch,

I'm using compiler version: gcc-arm-none-eabi-10-2020-q4-major

rizanirusli
Offline
Last seen: 3 months 1 week ago
Joined: 2021-04-23 10:33
Posts: 2

Hi edward.holweg, 

I have the same problem as you, I am using QT windows 10 and there is an error
:-1: error: Project ERROR: Unknown module(s) in QT: serialport bluetooth positioning gamepad

does anyone have this solution?