Tagged: ec25 raspberry airplanemode gpio
17 February 2019 at 2:00 AM #36639
This is the setup I have:
– Raspberry Pi 3 Model B+
– Raspberry Pi 3G-4G/LTE Base Shield V2
– Quectel EC25 Mini PCle 4G/LTE Module – EC25-A
– 2x LTE Antenna SMA
I’ve been trying unsuccessfully to put the EC25 in airplane mode, using GPIO. This simple Python script (and other variations I tried) completes correctly, but doesn’t seem to affect the module at all:
import RPi.GPIO as GPIO
airplaneModePin = 35 # Broadcom pin 19 (P1 pin 35)
currentState = GPIO.input(airplaneModePin)
print(“Turning airplane mode pin “+str(airplaneModePin)+” from “+str(currentState)+” to “+str(not currentState)+”…”)
GPIO.output(airplaneModePin, not currentState)
GPIO.cleanup() # cleanup all GPIO
Other variations I tried:
1) Using GPIO.BCM (and pin 19)
2) Different delays
3) Using GPIO 23 (pin 16), based on the diagram at https://sixfab.com/updated-tutorial-3-make-a-ppp-internet-connection-with-3g-4glte-shields-on-raspberry-pi/
4) Outputting GPIO.HIGH, waiting 2/5/10 seconds and then outputting GPIO.LOW
In all cases, the module seems to keep LTE connectivity, as if nothing happened, ifconfig ppp0 keeps showing the same IP and a browser connects normally to the web.
Thanks!25 February 2019 at 2:19 PM #36730
The W_DISABLE control function is disabled in firmware by default. It can be enabled by AT+QCFG=”airplanecontrol”,1 command once.
Then you can continue with the process of with your script.
You must be logged in to reply to this topic.