- 1) The jumpers are placed in the middle position.
2) The shield connected onto the RPi gpio.
3) There is also a connection between the pi and the waveshare "USB" port (not "USB to UART")
4) raspi-config > Interfacing Options > Serial = Login shell over serial = NO Serial port hardware enabled = YES
5) /boot/config.txt has enable_uart=1
Code: Select all
./sim7600_4G_hat_init
Code: Select all
echo "4" > /sys/class/gpio/export
sleep 0.1
echo "out" > /sys/class/gpio/gpio4/direction
echo "0" > /sys/class/gpio/gpio4/value
echo "6" > /sys/class/gpio/export
sleep 0.1
echo "out" > /sys/class/gpio/gpio6/direction
echo "0" > /sys/class/gpio/gpio6/value
Code: Select all
sh /home/pi/SIM7600X/sim7600_4G_hat_init
After power off and on the pi the initiation is always successful.
Is there a software way to achieve the hat initiation after every reboot of the pi?