vectrix FW

4 posts / 0 new
Last post
R
R's picture
Offline
Last seen: 2 months 1 week ago
Joined: Thursday, June 18, 2009 - 09:46
Points: 1768
vectrix FW

I've realised that the *.hex firmware files used to upgrade the vectrix contain readable data.
This is a small fraction of one *.hex file

BC 04 AE 47 00 00 BE 41 BE 47 BE 43 BE 4D BC E0 AE 29 00 2C AE 25 00 55
AE 25 00 AA AE 18 00 01 BC E0 AE 70 00 00 AE 71 00 00 BC E1 AE 10 1F D8
AE 12 01 DE AE 18 C5 FF AE 1A 1F 1F AE 1C D5 FD AE 1E 02 FF 7A 80 18 7E
7A 80 18 85 BC E0 AE 50 00 0F AE 51 00 0B AE 54 00 00 AE 52 00 00 AE 53
00 FF AE 59 00 AA BC E2 AE 03 30 02 4B 07 E2 00 00 7A AE 05 04 D7 AE 04
00 03 AE 03 24 82 4B 07 E1 00 00 83 AE 0A 00 00 AE 09 00 FF AE 01 FF 00
BC E2 AE 00 00 C0 BC E4 AE 01 80 F0 AE 00 03 00 AE 09 C0 FE AE 08 F6 4D

What kind of codification this is?

AndY1
AndY1's picture
Offline
Last seen: 11 years 4 months ago
Joined: Tuesday, June 17, 2008 - 04:29
Points: 1071
Re: vectrix FW

Hex - Assembly?

antiscab
Offline
Last seen: 1 year 6 months ago
Joined: Saturday, July 7, 2007 - 23:55
Points: 1686
Re: vectrix FW

That is machine code.

each 2 letter value is a number in Hexadecimal, and is one byte of data.

Just about impossible to decipher.

I have a copy of some very old versions of firmware source code (.ASM files), PM if you would like a look.
The old firmware revisions are not compatible with the new versions though.

Matt

Daily Ride:
2007 Vectrix, modified with 42 x Thundersky 60Ah in July 2010. Done 194'000km

antiscab
Offline
Last seen: 1 year 6 months ago
Joined: Saturday, July 7, 2007 - 23:55
Points: 1686
Re: vectrix FW

here is a exert from MC revision 1004 written in assembly:

*** Misc Limits
VelCounterNumber .set 14 ;updates counters and measures velocity every 1mS. 67uS*15 = 1.005mS
MaxForwardVelocity .set 5050 ;set max forward RPM
MaxEncCntsPerInt .set 183 ;=15ints*12.18cnts/int 183
MaxReverseVelocity .set 128 ;set max reverse RPM
ReverseGain .set 700
MinBusVoltage .set 97 ;Min allowed voltage on battery. Power is cut back to maintain this
MinICONVoltage .set 104 ;voltage under which icon will come on
DefaultBV .set 103
BVmaxCurrent .set 300 ;
BVminCurrent .set 20

FuelGaMaxVolt .set 135 ;voltage above which all bars are displayed
FuelGaMinVolt .set 104 ;voltage below which no bars are displayed

FuelGaMaxDispVolt .set FuelGaMaxVolt-FuelGaMinVolt
FuelGaMinDispVolt .set 0
FuelGaRange .set FuelGaMaxVolt-FuelGaMinVolt
FuelGaScaleFactor .set 256*256/FuelGaRange ;(divide by 256 in rtn)

Matt

Daily Ride:
2007 Vectrix, modified with 42 x Thundersky 60Ah in July 2010. Done 194'000km

Log in or register to post comments

Buy Ecotric bikes, get free accessories!


Who's online

There are currently 0 users online.

Who's new

  • eric01
  • Norberto
  • sarim
  • Edd
  • OlaOst

Support V is for Voltage