Skip to content

Commit ae528fd

Browse files
committed
daza med 17.1.62
1 parent 874b0da commit ae528fd

3 files changed

Lines changed: 38 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "editor",
33
"private": true,
4-
"version": "1.23.0",
5-
4+
"version": "1.24.0",
65
"type": "module",
76
"scripts": {
87
"dev": "vite",

src/components/InfoModal.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ const tips: string[] = [
1919
];
2020

2121
const changelog: ChangelogEntry[] = [
22+
{
23+
version:'1.24.0',
24+
date: '25.04.2026',
25+
changes: [
26+
'Added MED 17.1.62 (RS3/TTRS DAZA) MY17E2, MY17G1, MY17H5, MY17I0, MY19A1'
27+
]
28+
},
2229
{
2330
version:'1.23.0',
2431
date: '23.04.2026',

src/lib/binUtils.ts

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ export function readBoxCode(data: Uint8Array): string {
158158
}
159159
}
160160

161+
// MED 17.1.62 RS3
162+
if (data.length > (0x3E0E78 + 10)) {
163+
const boxCode = readStringSafe(data, 0x3E0E78, 10, 10);
164+
if (boxCode) {
165+
return boxCode;
166+
}
167+
}
168+
161169
// Bosch MED/EDC: HW part number (10-digit) near CBOOT header
162170
for (const offset of [0x401a, 0x1401a, 0x1C948E]) {
163171
if (data.length > (offset + 12)) {
@@ -217,6 +225,14 @@ export function readEPK(data: Uint8Array): [string, number] | [] {
217225
}
218226
}
219227

228+
// MED 17.1.62 RS3
229+
if (data.length > (0x3FFE17 + 20)) {
230+
const epk = readStringSafe(data, 0x3FFE17, 20, 20);
231+
if (epk) {
232+
return [epk, 0x3FFE17];
233+
}
234+
}
235+
220236
// Bosch MED/EDC: "CB " EPK in CBOOT header, or ECU type string
221237
for (const region of [{start: 0x4090, len: 40}, {start: 0x14090, len: 40}]) {
222238
if (data.length > (region.start + region.len)) {
@@ -245,17 +261,25 @@ export function readEPK(data: Uint8Array): [string, number] | [] {
245261
export function readVersion(data: Uint8Array): string {
246262
for (const offset of CAL_OFFSETS) {
247263
if (data.length > (offset + 0x2000)) {
248-
const epk = readStringSafe(data, offset + 0x80, 4, 4);
249-
if (epk) {
250-
return epk;
264+
const version = readStringSafe(data, offset + 0x80, 4, 4);
265+
if (version) {
266+
return version;
251267
}
252268
}
253269
}
254270

255271
if (CAL_SIZES.includes(data.length)) {
256-
const epk = readStringSafe(data, 0x80, 4, 4);
257-
if (epk) {
258-
return epk;
272+
const version = readStringSafe(data, 0x80, 4, 4);
273+
if (version) {
274+
return version;
275+
}
276+
}
277+
278+
// MED 17.1.62 RS3
279+
if (data.length > (0x3E0E85 + 4)) {
280+
const version = readStringSafe(data, 0x3E0E85, 4, 4);
281+
if (version) {
282+
return version;
259283
}
260284
}
261285
}

0 commit comments

Comments
 (0)