Waveshare SIM7600A-H 4G HAT driver install failing

I have a Raspberry Pi 3 Model B and a Waveshare SIM7600A-H 4G HAT Board running on Debian Raspberry Pi OS Lite 64bit.

When I try to install the Waveshare drivers via the Core Electronics guide:

cd /home/pi/SIM7600X-4G-HAT-Demo/Raspberry/c/bcm2835
chmod +x configure && ./configure && sudo make && sudo make install

I am getting the error:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/pi/SIM7600X-4G-HAT-Demo/Raspberry/c/bcm2835/missing: Unknown `--is-lightweight' option
Try `/home/pi/SIM7600X-4G-HAT-Demo/Raspberry/c/bcm2835/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for clock_gettime in -lrt... yes
checking for doxygen... no
configure: WARNING: Doxygen not found - continuing without Doxygen support
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
 cd . && automake-1.13 --gnu
/bin/bash: line 5: automake-1.13: command not found
make: *** [Makefile:298: Makefile.in] Error 1

Any ideas on this? Is the Waveshare driver really required? What about the Waveshare script sim7600_4G_hat_init that needs to run at bootup?

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
1 Like

Hi Justin,

Welcome to the forum :slight_smile:

From what I can tell from that error message it appears the driver script is not set up to recognise the 64bit Lite version of Raspberry Pi OS as one of the installation options.

There are some notes on the Waveshare Wiki that indicate a driver shouldn’t be needed for Raspberry Pi OS to communicate with the USB interface of the device, so most of that ‘driver’ installation may just be doing the configuration settings for you and installing the example programs. You might be able to skip the driver install, but that would likely mean doing the configuration totally from scratch.

Hi @Trent5487676, thanks for the reply. So indeed I have GPS location working and able to fetch GPS coordinates via python code which is awesome. However, when I try to run the example SMS script:

pi@pi:~/SIM7600X-4G-HAT-Demo/Raspberry/python/SMS $ python SMS.py
SIM7600X is starting:
SIM7600X is ready
Sending Short Message Test:
Setting SMS mode...
AT+CMGF=1
OK

Sending Short Message
AT+CMGS="--REDACTED--"
>


+CMGS: 3

OK

send successfully
Receive Short Message Test:

Please send message to phone --REDACTED--
Setting SMS mode...
AT+CMGF=1
OK

AT+CPMS="SM","SM","SM"
+CPMS: 0,100,0,100,0,100

OK

AT+CMGR=1 ERROR
AT+CMGR=1 back:	AT+CMGR=1
OK

error0
SIM7600X is loging off:

Any idea what AT+CMGR=1 ERROR could mean?