You are here

ADC & UART. Bluetooth not working.

15 posts / 0 new
Last post
simon.rawlings
Offline
Last seen: 1 year 11 months ago
Joined: 2018-09-20 20:04
Posts: 3
ADC & UART. Bluetooth not working.

I've got a vesc6 running the latest firmware, in my E-bike (DD hub) using 2 hall sensor throttles on ADC 1 & 2 for brakes and throttle. (No reverse). A nrf51xxx Bluetooth adapter wired into Rx and TX. 

I'm trying to connect the android version of the vesc tool.  I see the bluetooth adapter and it initally connects but then gives the error "could not read firmware version..."

I've tried changing the baudrate from the default to 9600. And tried switching the Rx & TX cables on both baudrates. The error was the same. 

Have I missed something. Other than not being able to use bluetooth for real time monitoring and changing setting. The vesc is working flawlessly. 

Cheers

wkt
Offline
Last seen: 5 years 1 month ago
Joined: 2018-03-27 18:23
Posts: 5

I am facing the same issue also tried to connect a FTDI adapter directly from the UART to the PC and nothing gets out. Also I tried with an Arduino and two different libraries: VescUart and VescUartControl.

Running FW version 3.40. I am not sure where te issue comes from.

simon.rawlings
Offline
Last seen: 1 year 11 months ago
Joined: 2018-09-20 20:04
Posts: 3

Is this a firmware issue or do I have the setup incorrect?

Maybe I'll try slightly faster baudrates 14.4k or 28.8k. 

Is there a way of downgrading the firmware? Maybe that worth a go. 

 

simon.rawlings
Offline
Last seen: 1 year 11 months ago
Joined: 2018-09-20 20:04
Posts: 3

Another thought. Is it worth updating the bootloader. Could this cause problems.

zoppp
Offline
Last seen: 11 months 2 weeks ago
Joined: 2018-09-24 04:24
Posts: 10

I have noticed that when I am running Ackmaniac's Vesc Firmware, my BT05 board connects with his app perfectly. When running Vedder's Vesc tool and firmware, I am unable to connect to my bluetooth module. Maybe Ben's integration of bluetooth is slightly different?

-zoppp

benjamin
Offline
Last seen: 1 week 2 days ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

The BT05 will not work with the VESC Tool app, as the module must use a certain service and be aware of the packet structure to get good throughput. If you use the NRF51, it needs to run this firmware:

https://github.com/vedderb/nrf51_vesc

If you have an ST-link v2 and a linux computer it is quite easy to upload the firmware to the NRF51. There is even a script included on github that only needs openocd installed from the repository of most linux distros, and uploads the precompiled firmware.

If you don't want to build the module yourself, you can buy them ready to use here:

http://www.trampaboards.com/vesc-connect-nrf-wireless-dongle-p-26767.html

The VESC has to use the UART or something+UART app, with a baud rate of 115200.

Cosmin UNGUREANU
Offline
Last seen: 3 years 9 months ago
Joined: 2020-03-25 11:11
Posts: 3

Problem with Bluetooth HM-10 connection through the controller.

I want to control the vesc from my phone with android system.

I bought a dual 6.6 vesc controller, I connect the Bluetooth to the controller, I set up in APP Settings - URAT but when when I try to connect vesc from my phone it doesn-t connect.

Can anybody help me?

hexakopter
Offline
Last seen: 1 year 1 week ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

What Android app and VESC firmware version are you running? As far as I know HM-10 "UART bridge" modules are no longer supported for some time now and you need a nRF based module like the Metr Pro, Trampa Dongle or Flipsky nRF module to connect to the VESC Tool on Android. Its also possible to flash your own nRF51/nRF52 module with the firmware available on Benjamins github. 

Cosmin UNGUREANU
Offline
Last seen: 3 years 9 months ago
Joined: 2020-03-25 11:11
Posts: 3

I have a Samsung Galaxy A10, with app version 9 and VESC firmware is 4.2. The software which I use is VESC TOOL Platinium...I try a lot of time to connect but without succes.....

hexakopter
Offline
Last seen: 1 year 1 week ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

The problem should be the HM-10 module. I also tested with FW 4.2 and a HM-10 based old Metr module (not the nRF based Pro one) and it was working as expected with the Metr App on Android, but not with VESC Tool. With a nRF based Metr Pro module I was able to connect both to the Metr app and also the VESC Tool mobile.

So you have to pick one of the nRF based Bluetooth modules I mentioned in my last post to be able to connect to VESC Tool or use the Ackmaniac App on Android that works with HM-10 based modules but can not connect to FW4.02 as far as I know, so you have to choose an older VESC FW version.

Edit.: I just reread message #6 in this thread where Benjamin mentions that the VESC Tool app does not work with BT05 (HM-10) modules. So you definitely need a nRF based module to work with the app.

Cosmin UNGUREANU
Offline
Last seen: 3 years 9 months ago
Joined: 2020-03-25 11:11
Posts: 3

Hi guys,

I want to buy a bluetooth from recommendation #6 (benjamin): https://trampaboards.com/vesc-connect-nrf-wireless-dongle-p-26767.html to connect my phone at my longboard. My transmission (control) is on Remote VESC VX1. If I only buy the bluetooth module without the remote control (The WAND) can I control my longboard from the Remote VESC VX1?

 

radler
Offline
Last seen: 3 years 4 months ago
Joined: 2020-06-20 16:57
Posts: 7

regular DX-BT18 works between VESC and windows VESC-Tool for me, even realtime data is ok. It fails with android app or MacOSx VESC-Tool. Curious what Benjamin meant the module must use a certain service and be aware of the packet structure to get good throughput

dancing with bikes

nerozero
Offline
Last seen: 1 year 5 months ago
Joined: 2019-05-12 15:53
Posts: 3

Hi, I got Xiaomi redmi note 9s, I spent 2 days trying to connect to any kind bluetooth module, but the Android Vesc tool doesn't shows any of bluetooth modules.
I have Ant BMS tool which can connect to any bluetooth devices and it sees a bluetooth module, I can see output of ANT bms app on a serial logger, so bluetooth on both sides does work.

Here is the screenshot: Android Vesc tool - no bluetooth

wraven
Offline
Last seen: 1 week 13 hours ago
VESC Free
Joined: 2018-10-30 21:09
Posts: 1

Hi, @ Nerozero any update about conecting vesc and ant BMS ?

Vdca
Offline
Last seen: 2 weeks 3 days ago
VESC Free
Joined: 2023-08-05 21:20
Posts: 3

I would also be interested to see if you can do it. have to connect the ANT bms with vesc.