menahishayan / TP-Link-Archer-C50-API

HTTP based python script for API access and router management of the TP-Link Archer C50
GNU General Public License v3.0
37 stars 3 forks source link

TL-MR6400 (300 Mbps Wireless N 4G LTE Router) #6

Open KardinalReusen opened 3 years ago

KardinalReusen commented 3 years ago

Please add support for my tp-link TL-MR6400 LTE Router

(Firmware Version:1.16.0 0.9.1 v0001.0 Build 191223 Rel.66638n Hardware Version:TL-MR6400 v4 00000002)

Mainly I need this for device tracking in my home assistant setup.

I clicked everything I could find in the first file (exept reboot):

Login
(Tab Basic)
((Menu) Network Map)
  -Internet
  -TL-MR6400
  -Wireless Clients
  -Wired Clients
  -Message
(Menu) Internet
(Menu) Wireless
(Menu) Guets Network
(Menu) Parental Controls

(Tab) Advanced
((Menue) Status)
(Menu) Operation Mode
(Menu) Network
  -Internet
  -PIN Management
  -Data Settings
  -LAN Settings
  -Dynamic DNS
  -Ststic Routing
  -IPv6 Tunnel
  -USSD
(Menu) SMS
  - Inbox
  New Message
  Outbox
  Drafts
  SMS Settings
(Menu) Wireless
  -Wireless Sttings
  -WPS
  -Wireless Schedule
  -Advanced Settings
(Menu) Guest Networks
(Menu) NAT Forwarding
  -ALG
  -Virtual Servers
  -Port Triggering
  -DMZ
  -UPnP
(Menu) Parental Controls
(Menu) QoS
  -Settings
  -Database
(Menu) Security
  -Firwall & DoS Protection
  -Service Filtering
  -Access Control
  -IP & MAC Binding
  IPv6 Firewall
(Menu) VPN
  -OpenVPN
  -PPTP VPN
  -IPSec VPN
  -VPN Connections
(Menu) System Tools
  -Time Settings
  -LED Control
  -Diagnostics
  -Firmware Upgrade
  -Backup & Restore
  -Reboot
  -Administration
  -System Log
  -CWMP Settings
  -SNMP Settings
  -Traffic Monitor
Log out -> (Are you sure to log out?) Yes

The scond file ist only login and reboot:

Login
Reboot -> (The device will reboot. Are you sure to continue?) Yes

thanks a lot in advance for your support!

tp-link TL-MR6400.zip

menahishayan commented 3 years ago

Try this script: MR6400 Test Script that attempts to login and retrieve a list of connected devices. Remember to replace the username and password with your appropriate login data.

Let me know if it works successfully.

Note: For Error: No module named 'Crypto'

KardinalReusen commented 3 years ago

Thank you very much for working on my router type!

python3 mr6400_test.py

gives back

Retrieving PublicKey...
Retrieving JSessionID...
Retrieving Token...
True

Notes:

menahishayan commented 3 years ago

Please replace line 233 as follows:

- print(macResults)
+ print(self.last_results)

Run the script again and ensure that MAC Addresses are being printed

KardinalReusen commented 3 years ago
Retrieving PublicKey...
Retrieving JSessionID...
Retrieving Token...
<MASKED MAC ADDRESSES>

Edit by @menahishayan: Masked your MAC Addresses for privacy reasons

KardinalReusen commented 3 years ago

Hello menahishayan,

what do I have to do next? Sorry I know nothing about programming.

AlexandrErohin commented 8 months ago

If you are still looking for a client for TL-MR6400 - I have one https://github.com/AlexandrErohin/TP-Link-Archer-C6U And Home Assistant Integration https://github.com/AlexandrErohin/home-assistant-tplink-router I have tested it with TL-MR6400 v5