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

Sendig AT command after switching and before pppd connection

Post by Mik » Thu Sep 26, 2019 3:12 pm

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: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: Sendig AT command after switching and before pppd connection

Post by Josh » Mon Sep 30, 2019 9:49 pm

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