Salamek / huawei-lte-api

API For huawei LAN/WAN LTE Modems
GNU Lesser General Public License v3.0
376 stars 92 forks source link

Methods to disconnect and reconnect dialup #103

Closed alessandrocarrese closed 3 years ago

alessandrocarrese commented 3 years ago

Are these methods available?

Thanks

Salamek commented 3 years ago

@alessandrocarrese https://github.com/Salamek/huawei-lte-api/blob/8bafdbd56d4874e9db29ca178827ecba62baf183/huawei_lte_api/api/DialUp.py#L30-L37 (?yeah?)

alessandrocarrese commented 3 years ago

yes, can I use _set_mobiledataswitch to enable and disable the modem so I can get a new ip?

Thanks

Salamek commented 3 years ago

@alessandrocarrese well you have to try it your self, it will depend on your LTE internet provider network configuration since IP assignment is not something that client can easily affect without changing NIC MAC/IMEI. Usually DHCP and alike provided IPs have some expiration/reservation time for what they are reserved for given NIC MAC/IMEI and so on...

alessandrocarrese commented 3 years ago

yes, I am going to try,. Do you also know if this method works also for 3G or 4G?

Salamek commented 3 years ago

@alessandrocarrese it should work any "dialup" interface in supported Huawei devices