fred
1
Hello,
Problem of the day for me.
At each reboot, I needed to press button PWRKEY on board to activate wwan0 device.
And at each time I launched action on relay with this script:
#!/usr/bin/env python3
from cellulariot import cellulariot
import time
node = cellulariot.CellularIoTApp()
node.setupGPIO()
time.sleep(0.5)
node.turnOnRelay()
or
#!/usr/bin/env python3
from cellulariot import cellulariot
import time
node = cellulariot.CellularIoTApp()
node.setupGPIO()
time.sleep(0.5)
node.turnOffRelay()
Device wwan0 disapears. And I needed to press again manually button PWRKEY on board.
I installed qmi-reconnect, but at reboot, no more works.
What I can do?
Thanks
ensar
2
Hi @fred,
You can use node.powerUp()
to power up the module instead of pressing the power key physically.
Thank you.
fred
3
Hi @ensar
Thanks, I tried this python part:
#!/usr/bin/env python3
from cellulariot import cellulariot
import time
node = cellulariot.CellularIoTApp()
node.setupGPIO()
time.sleep(0.5)
node.powerUp()
I have this return:
Sixfab Raspberry Pi Cellular IoT Application Shield Class initialized!
BG96 module powered up!
But no more wwan0.
/sbin/ifconfig wwan0 | grep "inet " | awk '{ print $2 }'
wwan0: erreur lors de la recherche d'infos sur l'interface: P_riph_rique non trouv_
fred
4
Finally I created a script like this:
#!/usr/bin/env python3
from cellulariot import cellulariot
import time
node = cellulariot.CellularIoTApp()
node.setupGPIO()
time.sleep(1)
node.enable()
node.powerUp()
And created a systemd wwan0.service to powerup at boot.
I don’t know if it’s correct practice, but it’s work.