From 9d93ec8cf45f3ad98b5eac7f407fa0b24ff88dd6 Mon Sep 17 00:00:00 2001 From: Rans4ckeR Date: Tue, 24 Jan 2023 23:30:36 +0100 Subject: [PATCH 01/15] Update TR-064 services --- README.md | 15 +++- .../DeviceHosts/Entities/DeviceHost.cs | 11 ++- .../LanConfigSecurityGetInfoResponse.cs | 4 +- .../UserInterfaceCheckUpdateRequest.cs | 3 +- .../Entities/UserInterfaceGetInfoResponse.cs | 3 +- ...WlanConfigurationGetChannelInfoResponse.cs | 4 +- .../WlanConfigurationGetInfoResponse.cs | 4 +- ...figurationGetWlanConnectionInfoResponse.cs | 3 + ...WlanConfigurationGetWlanExtInfoResponse.cs | 1 + .../LanConfigSecurityResourceDictionary.xaml | 6 ++ .../UserInterfaceResourceDictionary.xaml | 7 +- ...mmonInterfaceConfigResourceDictionary.xaml | 2 +- .../WlanConfigurationResourceDictionary.xaml | 76 ++++++++++++------- .../UserInterfaceCheckUpdateView.xaml | 7 +- .../UserInterfaceCheckUpdateViewModel.cs | 33 -------- ...onInterfaceConfigGetOnlineMonitorView.xaml | 26 +++---- RS.Fritz.Manager.sln.DotSettings | 5 +- 17 files changed, 118 insertions(+), 92 deletions(-) diff --git a/README.md b/README.md index 0189bce..3a1d956 100644 --- a/README.md +++ b/README.md @@ -177,9 +177,12 @@ static async Task StopCaptureAsync(InternetGatewayDevice device, CaptureInterfac * βœ… GetATMEncapsulation * βœ… GetAutoConfig * βœ… GetStatistics +* ❌ urn:dslforum-org:service:X_AVM-DE_WANMobileConnection * πŸ”Ά urn:dslforum-org:service:X_AVM-DE_Speedtest * βœ… GetInfo * ❌ SetConfig + * ❌ GetStatistics + * ❌ ResetStatistics * ❌ urn:dslforum-org:service:X_AVM-DE_RemoteAccess * ❌ urn:dslforum-org:service:X_AVM-DE_MyFritz * ❌ urn:dslforum-org:service:X_AVM-DE_HostFilter @@ -203,6 +206,7 @@ static async Task StopCaptureAsync(InternetGatewayDevice device, CaptureInterfac * βœ… GetHostNumberOfEntries * ❌ GetSpecificHostEntry * βœ… GetGenericHostEntry + * ❌ X_AVM-DE_GetInfo * βœ… X_AVM-DE_GetChangeCounter * ❌ X_AVM-DE_GetAutoWakeOnLANByMACAddress * ❌ X_AVM-DE_SetAutoWakeOnLANByMACAddress @@ -211,16 +215,19 @@ static async Task StopCaptureAsync(InternetGatewayDevice device, CaptureInterfac * ❌ X_AVM-DE_GetSpecificHostEntryByIp * ❌ X_AVM-DE_HostsCheckUpdate * ❌ X_AVM-DE_HostDoUpdate + * ❌ X_AVM-DE_SetPrioritizationByIP * βœ… X_AVM-DE_GetHostListPath * βœ… X_AVM-DE_GetMeshListPath + * ❌ X_AVM-DE_GetFriendlyName + * ❌ X_AVM-DE_SetFriendlyName + * ❌ X_AVM-DE_SetFriendlyNameByIP + * ❌ X_AVM-DE_SetFriendlyNameByMAC * πŸ”Ά urn:dslforum-org:service:WLANConfiguration * ❌ SetEnable * βœ… GetInfo * ❌ SetConfig * ❌ SetSecurityKeys * ❌ GetSecurityKeys - * ❌ SetDefaultWEPKeyIndex - * ❌ GetDefaultWEPKeyIndex * ❌ SetBasBeaconSecurityProperties * βœ… GetBasBeaconSecurityProperties * βœ… GetBSSID @@ -269,6 +276,7 @@ static async Task StopCaptureAsync(InternetGatewayDevice device, CaptureInterfac * βœ… GetInfo * βœ… GetStatistics * ❌ urn:dslforum-org:service:X_AVM-DE_Dect +* ❌ urn:dslforum-org:service:X_AVM-DE_Media * ❌ urn:dslforum-org:service:X_AVM-DE_Homeauto * ❌ urn:dslforum-org:service:X_AVM-DE_Homeplug @@ -297,6 +305,8 @@ static async Task StopCaptureAsync(InternetGatewayDevice device, CaptureInterfac * βœ… X_AVM-DE_CreateUrlSID * βœ… X_AVM-DE_GetSupportDataInfo * ❌ X_AVM-DE_SendSupportData + * ❌ X_AVM-DE_GetSupportDataEnable + * ❌ X_AVM-DE_SetSupportDataEnable * βœ… urn:dslforum-org:service:LANConfigSecurity * βœ… GetInfo * βœ… X_AVM-DE_GetAnonymousLogin @@ -315,6 +325,7 @@ static async Task StopCaptureAsync(InternetGatewayDevice device, CaptureInterfac * βœ… X_SetTR069Enable * βœ… X_AVM-DE_GetTR069FirmwareDownloadEnabled * βœ… X_AVM-DE_SetTR069FirmwareDownloadEnabled +* ❌ urn:dslforum-org:service:X_AVM-DE_USPController * ❌ urn:dslforum-org:service:X_AVM-DE_Auth * βœ… urn:dslforum-org:service:Time * βœ… GetInfo diff --git a/RS.Fritz.Manager.API/Services/DeviceHosts/Entities/DeviceHost.cs b/RS.Fritz.Manager.API/Services/DeviceHosts/Entities/DeviceHost.cs index 92d542c..3c177e7 100644 --- a/RS.Fritz.Manager.API/Services/DeviceHosts/Entities/DeviceHost.cs +++ b/RS.Fritz.Manager.API/Services/DeviceHosts/Entities/DeviceHost.cs @@ -18,6 +18,11 @@ public readonly record struct DeviceHost( [property: DataMember(Name = "X_AVM-DE_Model", Order = 11)] string Model, [property: DataMember(Name = "X_AVM-DE_URL", Order = 12)] string Url, [property: DataMember(Name = "X_AVM-DE_Guest", Order = 13)] bool Guest, - [property: DataMember(Name = "X_AVM-DE_VPN", Order = 14)] bool Vpn, - [property: DataMember(Name = "X_AVM-DE_WANAccess", Order = 15)] string WanAccess, - [property: DataMember(Name = "X_AVM-DE_Disallow", Order = 16)] bool Disallow); \ No newline at end of file + [property: DataMember(Name = "X_AVM-DE_RequestClient", Order = 14)] bool RequestClient, + [property: DataMember(Name = "X_AVM-DE_VPN", Order = 15)] bool Vpn, + [property: DataMember(Name = "X_AVM-DE_WANAccess", Order = 16)] string WanAccess, + [property: DataMember(Name = "X_AVM-DE_Disallow", Order = 17)] bool Disallow, + [property: DataMember(Name = "X_AVM-DE_IsMeshable", Order = 18)] bool IsMeshable, + [property: DataMember(Name = "X_AVM-DE_Priority", Order = 19)] bool Priority, + [property: DataMember(Name = "X_AVM-DE_FriendlyName", Order = 20)] string FriendlyName, + [property: DataMember(Name = "X_AVM-DE_FriendlyNameIsWriteable", Order = 21)] bool FriendlyNameIsWriteable); \ No newline at end of file diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/LanConfigSecurity/Entities/LanConfigSecurityGetInfoResponse.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/LanConfigSecurity/Entities/LanConfigSecurityGetInfoResponse.cs index a5d1c01..c010bae 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/LanConfigSecurity/Entities/LanConfigSecurityGetInfoResponse.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/LanConfigSecurity/Entities/LanConfigSecurityGetInfoResponse.cs @@ -4,4 +4,6 @@ public readonly record struct LanConfigSecurityGetInfoResponse( [property: MessageBodyMember(Name = "NewMaxCharsPassword")] ushort MaxCharsPassword, [property: MessageBodyMember(Name = "NewMinCharsPassword")] ushort MinCharsPassword, - [property: MessageBodyMember(Name = "NewAllowedCharsPassword")] string AllowedCharsPassword); \ No newline at end of file + [property: MessageBodyMember(Name = "NewAllowedCharsPassword")] string AllowedCharsPassword, + [property: MessageBodyMember(Name = "NewAllowedCharsUsername")] string AllowedCharsUsername, + [property: MessageBodyMember(Name = "NewX_AVM-DE_IsDefaultPasswordActive")] bool IsDefaultPasswordActive); \ No newline at end of file diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceCheckUpdateRequest.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceCheckUpdateRequest.cs index 8c74e5a..879896a 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceCheckUpdateRequest.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceCheckUpdateRequest.cs @@ -1,5 +1,4 @@ ο»Ώnamespace RS.Fritz.Manager.API; [MessageContract(WrapperName = "CheckUpdate")] -public readonly record struct UserInterfaceCheckUpdateRequest( - [property: MessageBodyMember(Name = "NewX_AVM-DE_LaborVersion")] string LaborVersion); \ No newline at end of file +public readonly record struct UserInterfaceCheckUpdateRequest; \ No newline at end of file diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceGetInfoResponse.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceGetInfoResponse.cs index 16f5026..e8825f0 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceGetInfoResponse.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/UserInterface/Entities/UserInterfaceGetInfoResponse.cs @@ -10,4 +10,5 @@ public readonly record struct UserInterfaceGetInfoResponse( [property: MessageBodyMember(Name = "NewX_AVM-DE_DownloadURL")] string DownloadUrl, [property: MessageBodyMember(Name = "NewX_AVM-DE_InfoURL")] string InfoUrl, [property: MessageBodyMember(Name = "NewX_AVM-DE_UpdateState")] string UpdateState, - [property: MessageBodyMember(Name = "NewX_AVM-DE_LaborVersion")] string LaborVersion); \ No newline at end of file + [property: MessageBodyMember(Name = "NewX_AVM-DE_BuildType")] string BuildType, + [property: MessageBodyMember(Name = "NewX_AVM-DE_SetupAssistantStatus")] bool SetupAssistantStatus); \ No newline at end of file diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetChannelInfoResponse.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetChannelInfoResponse.cs index 6cb8cc7..af84444 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetChannelInfoResponse.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetChannelInfoResponse.cs @@ -3,4 +3,6 @@ [MessageContract(WrapperName = "GetChannelInfoResponse")] public readonly record struct WlanConfigurationGetChannelInfoResponse( [property: MessageBodyMember(Name = "NewChannel")] byte Channel, - [property: MessageBodyMember(Name = "NewPossibleChannels")] string PossibleChannels); \ No newline at end of file + [property: MessageBodyMember(Name = "NewPossibleChannels")] string PossibleChannels, + [property: MessageBodyMember(Name = "NewX_AVM-DE_AutoChannelEnabled")] bool AutoChannelEnabled, + [property: MessageBodyMember(Name = "NewX_AVM-DE_FrequencyBand")] string FrequencyBand); \ No newline at end of file diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetInfoResponse.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetInfoResponse.cs index d106beb..cc41ebb 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetInfoResponse.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetInfoResponse.cs @@ -19,4 +19,6 @@ public readonly record struct WlanConfigurationGetInfoResponse( [property: MessageBodyMember(Name = "NewAllowedCharsSSID")] string AllowedCharsSsid, [property: MessageBodyMember(Name = "NewMinCharsPSK")] byte MinCharsPsk, [property: MessageBodyMember(Name = "NewMaxCharsPSK")] byte MaxCharsPsk, - [property: MessageBodyMember(Name = "NewAllowedCharsPSK")] string AllowedCharsPsk); \ No newline at end of file + [property: MessageBodyMember(Name = "NewAllowedCharsPSK")] string AllowedCharsPsk, + [property: MessageBodyMember(Name = "NewX_AVM-DE_FrequencyBand")] string FrequencyBand, + [property: MessageBodyMember(Name = "NewX_AVM-DE_WLANGlobalEnable")] bool WlanGlobalEnable); \ No newline at end of file diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanConnectionInfoResponse.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanConnectionInfoResponse.cs index 0bf119c..98150ff 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanConnectionInfoResponse.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanConnectionInfoResponse.cs @@ -8,6 +8,9 @@ public readonly record struct WlanConfigurationGetWlanConnectionInfoResponse( [property: MessageBodyMember(Name = "NewBeaconType")] string BeaconType, [property: MessageBodyMember(Name = "NewChannel")] byte Channel, [property: MessageBodyMember(Name = "NewStandard")] string Standard, + [property: MessageBodyMember(Name = "NewX_AVM-DE_AutoChannelEnabled")] bool AutoChannelEnabled, + [property: MessageBodyMember(Name = "NewX_AVM-DE_ChannelWidth")] ushort ChannelWidth, + [property: MessageBodyMember(Name = "NewX_AVM-DE_FrequencyBand")] string FrequencyBand, [property: MessageBodyMember(Name = "NewX_AVM-DE_SignalStrength")] byte SignalStrength, [property: MessageBodyMember(Name = "NewX_AVM-DE_Speed")] ushort Speed, [property: MessageBodyMember(Name = "NewX_AVM-DE_SpeedRX")] uint SpeedRx, diff --git a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanExtInfoResponse.cs b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanExtInfoResponse.cs index 7534af7..77a847f 100644 --- a/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanExtInfoResponse.cs +++ b/RS.Fritz.Manager.API/Services/TR-064/Services/WlanConfiguration/Entities/WlanConfigurationGetWlanExtInfoResponse.cs @@ -4,6 +4,7 @@ public readonly record struct WlanConfigurationGetWlanExtInfoResponse( [property: MessageBodyMember(Name = "NewX_AVM-DE_APEnabled")] string ApEnabled, [property: MessageBodyMember(Name = "NewX_AVM-DE_APType")] string ApType, + [property: MessageBodyMember(Name = "NewX_AVM-DE_FrequencyBand")] string FrequencyBand, [property: MessageBodyMember(Name = "NewX_AVM-DE_TimeoutActive")] string TimeoutActive, [property: MessageBodyMember(Name = "NewX_AVM-DE_Timeout")] string Timeout, [property: MessageBodyMember(Name = "NewX_AVM-DE_TimeRemain")] string TimeRemain, diff --git a/RS.Fritz.Manager.UI/Resources/TR-064/LanConfigSecurityResourceDictionary.xaml b/RS.Fritz.Manager.UI/Resources/TR-064/LanConfigSecurityResourceDictionary.xaml index 5d37f84..53f4183 100644 --- a/RS.Fritz.Manager.UI/Resources/TR-064/LanConfigSecurityResourceDictionary.xaml +++ b/RS.Fritz.Manager.UI/Resources/TR-064/LanConfigSecurityResourceDictionary.xaml @@ -39,6 +39,8 @@ + + @@ -47,9 +49,13 @@ -