fixed and adaptions

This commit is contained in:
2024-02-06 01:54:06 +01:00
parent ff6fcb75f0
commit 86c0cf9666
8 changed files with 191 additions and 59 deletions

View File

@@ -8,6 +8,8 @@ enum UsbPackageType {
FIRMWAREPACKAGE = 3842; // 0xF02
FIRMWAREDONE = 3843; // 0xF03
FIRMWAREPACKAGEACK = 3844; // 0xF04
REQUEST_DEVICE_LIST = 1000;
RESPONSE_DEVICE_LIST = 1001;
}
message FirmwareStart {
@@ -38,3 +40,18 @@ message FirmwareDone {
required uint32 device_id = 3;
}
message RequestDeviceList {
required uint32 msg =1;
}
message Device {
required bool available =1;
required uint32 canid = 2;
required uint32 device = 3;
required uint32 counter = 4;
}
message ResponseDeviceList {
repeated Device devices = 1 [(nanopb).max_count = 18];
}