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

Open
#1,613 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
backend

Research direction

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.

Written by the indexing model from the issue text.

Description

no-issue-activity

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.

Dominant language
PHP
Stars
9.4k
Forks
626
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxserver/Heimdall

All issues in linuxserver/Heimdall

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.