Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
Mik
Posts: 1
Joined: 26 Sep 2019, 15:07

Sendig AT command after switching and before pppd connection

Post by Mik » 26 Sep 2019, 15:12

Hi there,
I've a raspberry pi connected with an E3531 Huawei dongle in VPN through the sakis3g script.
I need to lock the network selection to 2g only (I found this AT command to do so AT^SYSCFG=mode, order, band, roaming, domain). Is there any way to inject automatically this command just after the switching at reboot?

Thank you in advance

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Sendig AT command after switching and before pppd connection

Post by Josh » 30 Sep 2019, 21:49

That depends on which distribution you are using which in turn determines the version of usb_modeswitch.

The original (upstream) version distributed here uses a text-only script in the Tcl language as the dispatcher. It is very easy to call external scripts after the mode-switch was confirmed.

Distributions are applying various changes; e.g. Ubuntu has re-implemented the dispatcher in C so it's a bit harder to extend it, requiring compilation.

Post Reply