Hello, I was wondering if anyone can help with the QMI auto connect script. I have downloaded the auto connect script and ran the install. When checking the status of the qmi_service I receive ‘Failed to start QMI Auto Connection’. I have changed the /usr/src/qmi_reconnect.sh script to the following
#!/bin/sh
while true; do
ping -I wwan0 -c 8.8.8.8
if [ $? -eq 0); then
echo "Connection up, reconnect not required..."
else
echo "Connection down, reconnecting..."
cd /home/xxx/files/
sudo ./quectel-CM -s wireless,twilio.com -f twilio.log
f1
sleep 1
done
I have the quectel-CM directory located in /home/xxx/files/
If I ran the the usr/src/qmi_reconnect.sh from the CLI the script works. Any idea on how to fix this?
Hi ensar! Thank you for the quick response. I have updated the qmi_reconnect.sh script as you mentioned. The script runs fine but the service still fails.
Hi ensar. I have it working now. Here’s what I had to do
Change the WorkingDirectory path in the /etc/systemd/system/qmi_reconnect.service file. It was /home/pi/files. I removed the pi user during my initial config of the RPi.