PDA

View Full Version : Mazda 2 (93C66) Mileage correction



Alex97Lewis
5th February, 2020, 11:26 AM
I'm trying to alter my mileage on my odometer, currently using an arduino to read and write to my 93C66 chip, managed to set it to 111miles as a test using TachoSoft but originally tried it at 150, so there's a bit of a gap. Looking to try get it as accurate as possible.

The mileage is currently at 82924mi but trying to get it as close to 91960mi

Any help would be much appreciated

(Unsure if this format of data is usable, if not please let me know as it's in plain text format that allows me to easily edit and read via arduino)

alex0666
5th February, 2020, 11:27 AM
send the file in * bin format

Alex97Lewis
5th February, 2020, 11:41 AM
send the file in * bin format

Currently trying to change it to a bin format, as I've got the hex in a plaintext format, how would I go about converting it to bin? Would I need to change each hex value to binary and save as a .bin, as I'm dumping this data from an arduino which is showing it as plaintext

jomberykaso
5th February, 2020, 11:52 AM
You need a real eeprom programmer.

Alex97Lewis
5th February, 2020, 12:00 PM
You need a real eeprom programmer.

I have a CH341A which I've used for 24/25 Chips but I'm not sure if it's compatible with 93C at all

jomberykaso
5th February, 2020, 12:03 PM
CH341A doesn't read serie 93xxx.

Buy Upa 1.3 (very good and cheap programmer ) in eBay or alíexpress if you don't want to pay so much. (Less of 40 dollars )

brend
5th February, 2020, 12:20 PM
Mate!
Bay same good programmer and your problem solved without question's!.........688002


I have a CH341A which I've used for 24/25 Chips but I'm not sure if it's compatible with 93C at all

nonstarterautos
5th February, 2020, 07:05 PM
Send file of epprom.

5ch4um1
19th February, 2021, 03:51 PM
xxd can do that:


cat out.txt | xxd -ps -r > out.bin

-ps output in postscript plain hexdump style.
-r reverse operation: convert (or patch) hexdump into binary.


this should work for text files that look like this:

B811 1CC9 1033 18D3 FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF


if your original arduino output looks like this:

18:15:39.714 -> Address 2F read FFFF
18:15:40.709 -> Address 30 read 100
18:15:41.704 -> Address 31 read 603
18:15:42.733 -> Address 32 read 804
18:15:43.729 -> Address 33 read 6

you could use awk to print only the hex values, remove the carriage returns and add the leading zeros, and then use xargs to print it in 8 columns:


cat arduinooutput.txt | awk '{gsub("\r",""); print $6}' | awk ' {for(i=length($0);i<4;i++){$0="0"$0}print}' | xargs -n8

generally speaking, xargs, awk, cut, tr, and a few other coreutils are very practical when you need to edit text files.

for your file format, this should do:


cat inputfile.txt | tail -n+3 | cut -f 2- | awk '{ gsub("\t"," "); print}' | xargs -n 1 | awk ' {gsub("\r","");for(i=length($0);i<4;i++){$0="0"$0}print}' | xargs -n8 | xxd -ps -r > outputfile.bin

jomberykaso
19th February, 2021, 04:02 PM
Just buy a real eeprom reader friend.

5ch4um1
19th February, 2021, 05:16 PM
Just buy a real eeprom reader friend.
i'm new to all this, but that dump doesn't look too shabby, it is 512 bytes, this seems to be correct?


F7BD F7BD F7BD F7BD F7BD FBDE FBDE FBDE
FBDE FBDE 1931 FE22 1338 0000 0000 0000
FBDE FBDE FBDE FBDE FBDE FBDE FBDE FBDE
FBDE FBDE 3121 66B0 0000 06C6 B2F5 0047
98C6 F7BD DEF7 BDEF 2939 DCFF E000 2AD3
2939 FFFF 0210 FFFF 1600 6AFF 2000 22A3
FFFF FFFF FFFF FFFF FF5F FF00 005F FFFF
FFFF 8E23 0280 0D2F 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0801
6303 0909 0024 034D 4C44 3437 0042 0E49
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0503 0503 0503 5153 B88A
E700 0208 C6DD 0000 0000 0000 0000 8836
5A5E 00BD 0407 B86A 4D8E 5C53 ACDD 006F
8170 170B 3C6C 05BD 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 4D4A 445A 3145 4B33
3115 3032 3130 3333 3932 4908 0031 0000
0000 0000 0131 00E1 0000 0000 0000 00E1
4D4A 445A 3145 4B33 3115 3032 3130 3333
3932 4908 0031 0000 0000 0000 0131 00E1
0000 0000 0000 00E1 F000 3000 3000 0000
00F0 0000 0000 0000 0000 0000 0119 0054
0111 0108 E755 0101 0104 0703 8605 AF82
0103 1207 3165 0402 E645 0101 0701 00E7
0000 0FE1 0119 0054 0111 0108 E755 0101
0104 0703 8605 AF82 0103 1207 3165 0402
E645 0101 0701 00E7 0000 0FE1 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000

dtip
19th February, 2021, 05:26 PM
this should be 91960