AlexandrErohin/TP-Link-Archer-C6U

Test with archer C80

jlguibourg opened this issue · 20 comments

It is not working with Archer C80 firmware 1.13.2
There are no error messages

May be related to the fact that C80 doesn’t have username, it only prompts for password

What error you got in the SETUP window?
What errors in Settings -> System -> Logs?

to print logs - you need to pass 4th parameter
TplinkRouter('http://192.168.0.1','password','admin2', _LOGGER)

from logging import Logger

from tplinkrouterc6u import TplinkRouter
from logging import Logger

client = TplinkRouter('http://192.168.171.203', 'mypassword', logger=Logger('test'))

print(client.get_status())

So your router is not supported. It would be great if you could add support for your router to this client.

How to add support for Archer C80 ?
Who could do it?
Thanks for your help

As I dont have Archer C80, I cannot add support for this.
If you want to add support for your router you need to trace requests from browser to your router and reconstruct them in python code

Would you be interested if I give you a remote access to my Archer C80?

@jlguibourg Please try new version - As TP-link Archer C1200 v2.0 support with different login process was added - your router may also be supported now

To try client you need to get WebEncryptedPassword, please follow this instructions https://github.com/AlexandrErohin/TP-Link-Archer-C6U?tab=readme-ov-file#web-encrypted-password

from tplinkrouterc6u import TplinkRouterProvider
from logging import Logger

client = TplinkRouterProvider.get_client('192.168.0.1', 'WebEncryptedPassword', logger=Logger('test'))
firmware, status = client.get_full_info()

print(firmware.model)
print(firmware.hardware_version)
print(firmware.firmware_version)
print(status.lan_macaddr)

I get a problem with the WebEncryptedPassword

document.getElementById("login-password").value;
Uncaught TypeError: document.getElementById(...) is null
debugger eval code:1

Could you try this steps to get WebEncryptedPassword?

  1. Open the browser and go to the webinterface of you TP-link router and open the developertools(ctrl+shift+i or F12).
  2. In the developertools navigate to the network tab.
  3. Make sure the recoder is enabeld.
  4. Login to your router
  5. There should appear activity in the networking tab.
  6. Scroll up until you find something like "login?form=login" and click it.
  7. Click payload, and copy the string of characters, it should be a long string.
  8. This is the web encrypted password.

Duplicate of #11