AVM Fritzbox: Incorrect connection status and uptime with FRITZ!OS 8.25

Đang mở
#1,613 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

Read app/SupportedApps/AVMFritzbox/AVMFritzbox.php and trace how the status and uptime fields are fetched. Compare the existing WANIPConnection response with the reported WANDSLLinkConfig result, then check how the supported FRITZ!Box configurations expose their connection information. Done means the tile reports meaningful status and uptime for this DSL setup while remaining compatible with other supported configurations.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment
Heimdall version: 2.8.3
Router: FRITZ!Box 7590 AX
FRITZ!OS: 8.25
Internet connection: DSL (PPPoE)
Application: AVM Fritzbox (configured application tile)
Problem description

The AVM Fritzbox application tile displays incorrect connection information:

Status: Disconnected
Up Time: 00h00m00s

However, the DSL connection is active, and the Received and Sent traffic statistics are working correctly and continue to update.

The Heimdall API test also succeeds.

Findings

I inspected the implementation in:

app/SupportedApps/AVMFritzbox/AVMFritzbox.php

The current implementation uses the following SOAP action for the status and uptime fields:

Service: WANIPConnection:1
Endpoint: WANIPConn1
Action: GetStatusInfo
Fields: NewConnectionStatus and NewUptime

A direct SOAP request to this endpoint returns:

<u:GetStatusInfoResponse>
Disconnected
ERROR_NONE
0
</u:GetStatusInfoResponse>

However, querying the DSL link service directly:

Service: WANDSLLinkConfig:1
Endpoint: WANDSLLinkC1
Action: GetDSLLinkInfo

returns:

<u:GetDSLLinkInfoResponse>
PPPoE
Up
</u:GetDSLLinkInfoResponse>

The FRITZ!Box device description lists WANIPConnection:1 and WANDSLLinkConfig:1. The tested WANPPPConnection endpoint did not return a valid action response.

The Received and Sent statistics are obtained separately through WANCommonInterfaceConfig:1 using GetAddonInfos, and these values work as expected.

Expected behaviour

The application should display a meaningful connection status and uptime for a supported FRITZ!Box DSL configuration.

Actual behaviour

The application displays Disconnected and 00h00m00s, even though the DSL link reports Up.

Request

Could you investigate whether the current implementation uses the appropriate UPnP service for determining the connection status and uptime on newer FRITZ!OS versions?

The DSL link status and the Internet connection status are not necessarily equivalent, so simply replacing one status with the other may not be sufficient. A robust solution should use the appropriate service for each value and remain compatible with other supported FRITZ!Box configurations.

I have not modified the Heimdall source code. All findings above were obtained by inspecting the existing implementation and making read-only SOAP requests to the router.

Ngôn ngữ chính
PHP
Star
9.4k
Fork
626
Merge trung bình
13 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxserver/Heimdall

Tất cả issue của linuxserver/Heimdall

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.