- #Bldc tool setup uart serial
- #Bldc tool setup uart full
- #Bldc tool setup uart android
- #Bldc tool setup uart Bluetooth
#Bldc tool setup uart Bluetooth
Using hterm.exe on the PC, I create a bluetooth COM port and send (hexadecimal) 02 01 04 40 84 03 (no CRLF) and I receive 02 38 04.
![bldc tool setup uart bldc tool setup uart](https://www.embedded.com/wp-content/uploads/2021/03/img20210302060120Designing-an-ESC-Module-to-Contr_3_w1192_h583.jpg)
Then connect PWR_COMM port of VESC pin 1 to HC06-Tx, pin2 to HC06-Rx, pin 4 = 0V and pin5 = 3.3V.
#Bldc tool setup uart serial
VESC application set to ADC + UART (in bldc-tools)įirst, at 9600 bauds setup the HC00, sending AT+BAUD8 (upcase, no CRLF), you receive OK115200 (this requires a USB serial converter and a terminal soft to connect the HC06 RX and Tx to a PC COM port) Using VESC firmware 1.6 and HC06 (=BtBee from iteadStudio), I could communicate with a PC via bluetooth. for those of you ev enthusiasts (but non-programmers), now is the time to roll up your sleeves and start designing your future!
#Bldc tool setup uart android
this is why i've decided to migrate my old code base (which was native android biased) to a pure html5/js implementation. google's chromium engine running in the latest flavors of android is fast (and improving with each iteration). now with facebook's new reactjs framework, high performance ui components can be easily reused. we have github which is an awesome social network to share/contribute code. htm5/javascript is accessible to many ppl and there are tons of gui libraries available to build incredibly rich cross-platform apps. if we could further lower the barriers to entry using the latest development tools, we could achieve critical mass. i believe open source technology such as vedder's vesc/bldc really help accelerate the adoption of ev's by empowering the ppl. Language agnostic serialization/deserialization of objects consumable in c++, java, python and even pure js: btw, this would make a nice addition for those of us developing client apps for the vesc (if anyone wants to take a shot at integrating it into the firmware Write() is successful, but read() always comes back empty. i've tried changing the HC-06 baud rate to 115200 just in case bldc_tool isn't using the uart user setting.but still no go. HC-06 seems to be working as i've been able to echo to it (with HC-06 connected to an arduino running serial monitor). However, in my javascript code, if i write this out to the HC-06 i get no response at all. to get values, i see it is sending "terminal cmd" and "get values cmd" together (17 & 4): Since i am not sure of my crc16 implementation, i used a serial monitor to capture the packets from bldc_tool to vesc. ppm + uart is enabled on the vesc and both set to 9600 baud.
![bldc tool setup uart bldc tool setup uart](https://i0.wp.com/www.serialporttool.com/PTZController/tutorials/images/GUI/Menu/comport.png)
In my app i am able to scan and connect to the HC-06 bluetooth module (that is connected to the VESC uart). the plugin can write string or uint8array: I am using cordova plugin that exposes bluetooth on android to the webview (that is accessible in the html/javascript). my app is hybrid cordova/html5/javascript. i'm trying to implement vedder's packet protocol into my app but i am having a difficult time getting a response. None of these work, so I can only deduce 3 things:ġ) The SoftwareSerial library is crapping out somehow on the Bean (although I've read it should work up to 19200 baud on this 8mhz chip)Ģ) The VESC isn't working at 9600 baud, or isn't listening to the baud rate set in BLDC tool 0 bytes coming back to ReceiveUartMessage With this I only get "Failed to get data!".
![bldc tool setup uart bldc tool setup uart](https://user-images.githubusercontent.com/309472/59972235-ee117a80-9561-11e9-9824-7c0d5087e06c.png)
With this, any serial comms seems to freeze up the Arduino Using this I can control the VESC, but nothing back. A super simple bridge that just pipes one serial to the other (serial.available to serial.write and vice-versa). I am using a serial monitor to look for response. They are meant to work on the LightBlue Bean, where the Serial definition is the BLE port. They have all been setup to use SoftwareSerial on pins D0 and D1.
#Bldc tool setup uart full
Thanks alot, but don't worry too much - sounds like you've got your hands full with your project, and I'm pretty sure this must be my LightBlue Bean MCU messing me about.