Added:
1. Device communication backup link switching.
2. Priority report of the media file uploading.
3. Upload firmware file.
4. HMS updated.
Fixed:
1. Closing the stream prematurely.
Note: There is a change in the structure of the table 'manage_device_firmware'.
`file_name`varchar(64)CHARACTERSETutf8COLLATEutf8_general_ciNOTNULLDEFAULT'undefined'COMMENT'The file name of the firmware package, including the file suffix',
`firmware_version`varchar(45)CHARACTERSETutf8COLLATEutf8_general_ciNOTNULLDEFAULT''COMMENT'It needs to be formatted according to the official firmware version. 00.00.0000',
`file_url`varchar(200)CHARACTERSETutf8COLLATEutf8_general_ciNOTNULLDEFAULT''COMMENT'The download address for the firmware package.',
`object_key`varchar(200)CHARACTERSETutf8COLLATEutf8_general_ciNOTNULLCOMMENT'The object key of the firmware package in the bucket.',
`file_size`intNOTNULLCOMMENT'The size of the firmware package.',
`file_md5`varchar(45)CHARACTERSETutf8COLLATEutf8_general_ciNOTNULLDEFAULT''COMMENT'The md5 of the firmware package.',
`device_name`varchar(45)CHARACTERSETutf8COLLATEutf8_general_ciNOTNULLDEFAULT''COMMENT'model of the device. This parameter corresponds to the device name in the device dictionary table.',
@ -18,9 +18,6 @@ public class ApplicationBootInitial implements CommandLineRunner {
@@ -18,9 +18,6 @@ public class ApplicationBootInitial implements CommandLineRunner {
@ -31,7 +28,7 @@ public class ApplicationBootInitial implements CommandLineRunner {
@@ -31,7 +28,7 @@ public class ApplicationBootInitial implements CommandLineRunner {
@ -49,16 +45,16 @@ public class AliyunOssServiceImpl implements IOssService {
@@ -49,16 +45,16 @@ public class AliyunOssServiceImpl implements IOssService {
@ -69,10 +65,6 @@ public class AliyunOssServiceImpl implements IOssService {
@@ -69,10 +65,6 @@ public class AliyunOssServiceImpl implements IOssService {
@ -80,50 +72,37 @@ public class AliyunOssServiceImpl implements IOssService {
@@ -80,50 +72,37 @@ public class AliyunOssServiceImpl implements IOssService {
@ -49,71 +47,55 @@ public class AmazonS3ServiceImpl implements IOssService {
@@ -49,71 +47,55 @@ public class AmazonS3ServiceImpl implements IOssService {
@ -122,7 +104,7 @@ public class AmazonS3ServiceImpl implements IOssService {
@@ -122,7 +104,7 @@ public class AmazonS3ServiceImpl implements IOssService {
@ -136,10 +118,8 @@ public class AmazonS3ServiceImpl implements IOssService {
@@ -136,10 +118,8 @@ public class AmazonS3ServiceImpl implements IOssService {
@ -117,15 +108,14 @@ public class MinIOServiceImpl implements IOssService {
@@ -117,15 +108,14 @@ public class MinIOServiceImpl implements IOssService {
@ -40,11 +36,11 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@@ -40,11 +36,11 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@ -54,8 +50,8 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@@ -54,8 +50,8 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
log.debug("The key is out of format. [{workspaceId}/{userType}/{userId}]");
@ -66,7 +62,7 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@@ -66,7 +62,7 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@ -76,7 +72,7 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@@ -76,7 +72,7 @@ public class WebSocketManageServiceImpl implements IWebSocketManageService {
@ -62,6 +59,7 @@ public class ControlServiceImpl implements IControlService {
@@ -62,6 +59,7 @@ public class ControlServiceImpl implements IControlService {
returnResponseResult.error("The "+serviceIdentifier+" method does not exist.");
@ -71,6 +69,7 @@ public class ControlServiceImpl implements IControlService {
@@ -71,6 +69,7 @@ public class ControlServiceImpl implements IControlService {
@ -85,16 +84,17 @@ public class ControlServiceImpl implements IControlService {
@@ -85,16 +84,17 @@ public class ControlServiceImpl implements IControlService {
@ -104,10 +104,10 @@ public class ControlServiceImpl implements IControlService {
@@ -104,10 +104,10 @@ public class ControlServiceImpl implements IControlService {
@ -123,10 +123,10 @@ public class ControlServiceImpl implements IControlService {
@@ -123,10 +123,10 @@ public class ControlServiceImpl implements IControlService {
@ -34,8 +34,8 @@ public class DeviceFirmwareEntity implements Serializable {
@@ -34,8 +34,8 @@ public class DeviceFirmwareEntity implements Serializable {
@TableField("firmware_version")
privateStringfirmwareVersion;
@TableField("file_url")
privateStringfileUrl;
@TableField("object_key")
privateStringobjectKey;
@TableField("file_size")
privateLongfileSize;
@ -55,6 +55,12 @@ public class DeviceFirmwareEntity implements Serializable {
@@ -55,6 +55,12 @@ public class DeviceFirmwareEntity implements Serializable {
@ -30,10 +32,10 @@ public class DistanceLimitStatusReceiver extends BasicDeviceProperty {
@@ -30,10 +32,10 @@ public class DistanceLimitStatusReceiver extends BasicDeviceProperty {
@ -23,18 +25,14 @@ public class ObstacleAvoidanceReceiver extends BasicDeviceProperty {
@@ -23,18 +25,14 @@ public class ObstacleAvoidanceReceiver extends BasicDeviceProperty {
@ -34,25 +34,22 @@ public class CapacityCameraServiceImpl implements ICapacityCameraService {
@@ -34,25 +34,22 @@ public class CapacityCameraServiceImpl implements ICapacityCameraService {
@ -47,9 +61,6 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -47,9 +61,6 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -65,6 +76,9 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -65,6 +76,9 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -79,7 +93,7 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -79,7 +93,7 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -127,30 +141,30 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -127,30 +141,30 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -178,6 +192,137 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -178,6 +192,137 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -198,12 +343,15 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -198,12 +343,15 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -213,7 +361,7 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@@ -213,7 +361,7 @@ public class DeviceFirmwareServiceImpl implements IDeviceFirmwareService {
@ -62,9 +62,6 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@@ -62,9 +62,6 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@Autowired
privateObjectMapperobjectMapper;
@Autowired
privateRedisOpsUtilsredisOps;
@Autowired
privateSendMessageServiceImplsendMessageService;
@ -95,9 +92,9 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@@ -95,9 +92,9 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
.build();
Stringkey=RedisConst.HMS_PREFIX+sn;
// Query all unread hms messages of the device in redis.
@ -117,7 +114,7 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@@ -117,7 +114,7 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@ -162,7 +159,7 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@@ -162,7 +159,7 @@ public class DeviceHmsServiceImpl implements IDeviceHmsService {
@ -43,9 +43,6 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@@ -43,9 +43,6 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@ -72,7 +69,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@@ -72,7 +69,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@ -87,7 +84,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@@ -87,7 +84,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@ -133,7 +130,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@@ -133,7 +130,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@ -153,7 +150,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@@ -153,7 +150,7 @@ public class DevicePayloadServiceImpl implements IDevicePayloadService {
@ -85,9 +85,6 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -85,9 +85,6 @@ public class DeviceServiceImpl implements IDeviceService {
@ -99,7 +96,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -99,7 +96,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -109,14 +106,14 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -109,14 +106,14 @@ public class DeviceServiceImpl implements IDeviceService {
// Only the remote controller is logged in and the aircraft is not connected.
@ -126,7 +123,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -126,7 +123,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -140,11 +137,11 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -140,11 +137,11 @@ public class DeviceServiceImpl implements IDeviceService {
// If no information about this device exists in the cache, the drone is considered to be offline.
@ -152,8 +149,8 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -152,8 +149,8 @@ public class DeviceServiceImpl implements IDeviceService {
// Publish the latest device topology information in the current workspace.
@ -163,11 +160,11 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -163,11 +160,11 @@ public class DeviceServiceImpl implements IDeviceService {
@ -175,7 +172,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -175,7 +172,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -314,7 +311,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -314,7 +311,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -368,7 +365,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -368,7 +365,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -393,7 +390,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -393,7 +390,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -438,9 +435,9 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -438,9 +435,9 @@ public class DeviceServiceImpl implements IDeviceService {
@ -449,9 +446,10 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -449,9 +446,10 @@ public class DeviceServiceImpl implements IDeviceService {
@ -629,7 +627,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -629,7 +627,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -668,12 +666,12 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -668,12 +666,12 @@ public class DeviceServiceImpl implements IDeviceService {
@ -785,12 +783,12 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -785,12 +783,12 @@ public class DeviceServiceImpl implements IDeviceService {
@ -803,9 +801,9 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -803,9 +801,9 @@ public class DeviceServiceImpl implements IDeviceService {
@ -823,7 +821,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -823,7 +821,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -877,7 +875,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -877,7 +875,7 @@ public class DeviceServiceImpl implements IDeviceService {
}
// Record the device state that needs to be updated.
@ -890,7 +888,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -890,7 +888,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -904,7 +902,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -904,7 +902,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -912,7 +910,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -912,7 +910,7 @@ public class DeviceServiceImpl implements IDeviceService {
// If there are multiple parameters, set them separately.
@ -954,7 +952,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -954,7 +952,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -1052,6 +1050,8 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -1052,6 +1050,8 @@ public class DeviceServiceImpl implements IDeviceService {
// Set the icon of the gateway device displayed in the pilot's map when it is selected, required in the TSA module.
@ -1061,7 +1061,7 @@ public class DeviceServiceImpl implements IDeviceService {
@@ -1061,7 +1061,7 @@ public class DeviceServiceImpl implements IDeviceService {
@ -53,9 +53,6 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@@ -53,9 +53,6 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@ -68,7 +65,7 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@@ -68,7 +65,7 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@ -82,7 +79,7 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@@ -82,7 +79,7 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@ -172,7 +169,7 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@@ -172,7 +169,7 @@ public class LiveStreamServiceImpl implements ILiveStreamService {
@ -43,9 +43,6 @@ public class LogsFileServiceImpl implements ILogsFileService {
@@ -43,9 +43,6 @@ public class LogsFileServiceImpl implements ILogsFileService {
@Autowired
privateOssServiceContextossService;
@Autowired
privateOssConfigurationconfiguration;
@Autowired
privateOssServiceContextossServiceContext;
@ -114,7 +111,7 @@ public class LogsFileServiceImpl implements ILogsFileService {
@@ -114,7 +111,7 @@ public class LogsFileServiceImpl implements ILogsFileService {
@ -146,7 +143,7 @@ public class LogsFileServiceImpl implements ILogsFileService {
@@ -146,7 +143,7 @@ public class LogsFileServiceImpl implements ILogsFileService {
@ -79,32 +98,126 @@ public class MediaServiceImpl implements IMediaService {
@@ -79,32 +98,126 @@ public class MediaServiceImpl implements IMediaService {
@ -26,18 +26,15 @@ public class StorageServiceImpl implements IStorageService {
@@ -26,18 +26,15 @@ public class StorageServiceImpl implements IStorageService {
@ -52,9 +53,6 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@@ -52,9 +53,6 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@ -83,17 +81,23 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@@ -83,17 +81,23 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@ -118,19 +122,19 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@@ -118,19 +122,19 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@ -150,7 +154,7 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@@ -150,7 +154,7 @@ public class FlightTaskServiceImpl implements IFlightTaskService {
@ -53,9 +53,6 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@@ -53,9 +53,6 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@ -97,7 +94,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@@ -97,7 +94,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
if(waylineOpt.isEmpty()){
thrownewSQLException(waylineId+" does not exist.");
@ -107,10 +104,10 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@@ -107,10 +104,10 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
" does not exist in the bucket["+configuration.getBucket()+"].");
" does not exist in the bucket["+OssConfiguration.bucket+"].");
}
file.setSign(DigestUtils.md5DigestAsHex(object));
}catch(IOExceptione){
@ -159,7 +156,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@@ -159,7 +156,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@ -174,7 +171,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@@ -174,7 +171,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@ -222,7 +219,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@@ -222,7 +219,7 @@ public class WaylineFileServiceImpl implements IWaylineFileService {
@ -65,12 +68,11 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -65,12 +68,11 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@ -94,6 +96,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -94,6 +96,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@ -167,7 +170,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -167,7 +170,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
returnResponseResult.error("Failed to create scheduled job.");
@ -218,7 +221,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -218,7 +221,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@ -256,7 +259,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -256,7 +259,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@ -282,7 +285,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -282,7 +285,7 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@ -372,6 +375,33 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -372,6 +375,33 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@ -418,12 +448,37 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
@@ -418,12 +448,37 @@ public class WaylineJobServiceImpl implements IWaylineJobService {