Open zaidpirwani opened 4 years ago
@zaidpirwani Hello. Please implemment code below and compare mesuared value of RPM and controller data.
int tsns = data[1] * 256 + data[2] int rpm; if (tsns > 3500){ rpm = 0; } else { rpm = 60000 / tsns; }
Any news on this? I am trying to get live data of the VEC-300 and got the same results as @zaidpirwani except the 1st byte:
Controller powered via programming cable: 0x00
Controller powered with a 48V power adapter: 0x07
Controller under voltage with 40V: 0x06
Controller over voltage with 64V: 0x09
So the 1st byte is definitely something about voltage or battery charging.
As well, I can confirm the 6th byte for 100%. I have done various testings and this byte always matched with the error codes in the protocol.
Hi @zaidpirwani ! Did you make any progress? I'm also trying to read the information to mount a speedometer for this controller.
unfortunately the project did not go anywhere.
the motor driver stopped responding at all and I moved to new things.
Hello, THANK YOU for this API info on the UART data of the VEC-500 controller. I am trying to get its data and so far your API has been the most helpful.
I am only interested in getting LIVE / REALTIME Data - or as in the API, LCD INFO.
I am sending the LCD info command: 0x66 0x42 0x00 0xA8
and getting back the following 0x66 0x42 0x06 0x0b 0xa2 0x25 0x00 0x00 0x00 0x80 I am not able to deciper the PAYLOAD data in this response. I am trying, the last byte is for FAULT STATUS CODE, I checked by removing hall sensor wires and it showed an error on the last byte, but I also need the RPM, Temperature data and voltage/current info
The payload data, byte by byte seems to be like this 1st: 0x0b: this has remained constant while working with the motor 2nd: 0xa2: this value changes when the motor rotor moves 3rd: 0x25: this value also changes when motor rotor moves 4th: remained 0x00 throughout my tests 5th: remained 0x00 throughout my tests 6th: seems to be the fault status byte
The data I got is mentioned in the attached EXCEL file for review
THANKS in advance for your help. Book1.xlsx