core: client API Majestic, modèles et CLI check
- libopenpu : validation VIN, modèles JSON (getAvailableUpdate, devices), classification ecuType -> type/guide, sélection des mises à jour - couche Transport abstraite + implémentation libcurl (proxy env, redirections, streaming, timeout d'inactivité) - tolérance au EOF TLS sans close_notify de la passerelle Majestic, limitée aux corps délimités par la fermeture (ni Content-Length ni chunked) - openpu-cli : check / raw-devices / raw-updates - tests doctest (VIN, parsing, classification, client API avec faux transport), fixtures dont une capture réelle anonymisée (NAC wave 2) - qualité : presets CMake (debug, asan, tidy), .clang-tidy, tools/check.sh (tests, ASan/UBSan, valgrind, clang-tidy, cppcheck) - validé contre l'API réelle sur 3 véhicules (NAC w4, RCC, NAC w2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
1 parent
660a420a3e
commit
95704f9882
28 files changed
+1877
-2
No files matched your search
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"vin": "VR3XXXXXXXXXXXXXX",
|
||||
"requestDate": "2026-11-28T17:00:00Z",
|
||||
"devices": [
|
||||
{ "ecuType": "BSI_X" },
|
||||
{ "ecuType": "RCC_EU_W3" }
|
||||
]
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"devices": [
|
||||
{
|
||||
"ecuType": "NAC_EUR_WAVE2"
|
||||
}
|
||||
],
|
||||
"requestDate": "2026-11-28T18:43:48+0100",
|
||||
"vin": "VF3XXXXXXXXXXXXXX"
|
||||
}
|
||||
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"installerURL": "https://majestic.mpsa.com/mjf00-web/rest/UpdateDownload?updateId=005000000000000001&uin=00000000000000000000&type=fw",
|
||||
"requestResult": "OK",
|
||||
"software": [
|
||||
{
|
||||
"currentSoftwareVersion": "4.0.2-r0",
|
||||
"softwareType": "map-eur",
|
||||
"update": [
|
||||
{
|
||||
"licenseURL": "",
|
||||
"updateDate": "2026-07-27 07:52:53.0",
|
||||
"updateId": "005000000000000002",
|
||||
"updateSize": "10475161600",
|
||||
"updateURL": "https://download-cde.tomtom.com/OEM/PSA/MAP/PSA_map-eur_31.0.0-r0-NAC_EUR_WAVE2.tar",
|
||||
"updateVersion": "31.0.0-r0"
|
||||
}
|
||||
],
|
||||
"updateRequestResult": "OK"
|
||||
},
|
||||
{
|
||||
"currentSoftwareVersion": "21.05.90.42_NAC-r0",
|
||||
"softwareType": "ovip-int-firmware-version",
|
||||
"update": [
|
||||
{
|
||||
"licenseURL": "https://majestic-web.mpsa.com/mjf00-web/rest/LicenseDownload?mediaVersion=005000000000000003&uin=00000000000000000000",
|
||||
"updateDate": "2026-06-30 12:48:06.0",
|
||||
"updateId": "005000000000000003",
|
||||
"updateSize": "2728908800",
|
||||
"updateURL": "https://majestic-web.mpsa.com/mjf00-web/rest/UpdateDownload?updateId=005000000000000003&uin=00000000000000000000&type=fw",
|
||||
"updateVersion": "21.08.90.52_NAC-r0"
|
||||
}
|
||||
],
|
||||
"updateRequestResult": "OK"
|
||||
}
|
||||
],
|
||||
"vin": "VF3XXXXXXXXXXXXXX"
|
||||
}
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"requestResult": "OK",
|
||||
"installerURL": "https://example.invalid/installer",
|
||||
"vin": "VR3XXXXXXXXXXXXXX",
|
||||
"software": [
|
||||
{
|
||||
"softwareType": "rcc-firmware",
|
||||
"updateRequestResult": "OK",
|
||||
"currentSoftwareVersion": "22-1X00-0",
|
||||
"update": [
|
||||
{
|
||||
"updateId": "005000000000000001",
|
||||
"updateSize": "8390000000",
|
||||
"updateVersion": "23-2I44-1",
|
||||
"updateDate": "2024-03-12",
|
||||
"updateURL": "https://majestic-web.mpsa.com/mjf00-web/rest/UpdateDownload?updateId=005000000000000001&uin=00000000000000000000&type=fw",
|
||||
"licenseURL": "https://majestic-web.mpsa.com/mjf00-web/rest/LicenseDownload?mediaVersion=005000000000000001&uin=00000000000000000000"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"softwareType": "map-eur",
|
||||
"updateRequestResult": "KO",
|
||||
"currentSoftwareVersion": "",
|
||||
"update": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user