I am currently using a WaveShare cellular modem hat for my Raspberry Pi. The module has an onboard SIM7600A.
I've been reading the documentation and although all the commands work as they are supposed to, some commands fail when I try to execute them for the first time but succeed on a subsequent call.
An example of this would be:
AT+CGPS=1 #Enable GPS
ERROR
AT+CGPS=1
OK
Another example of this happening is when I try to get the GPS lock position (although it happens to most commands usually when attempting to execute them for the first time.)
AT+CGPSINFO #Return GPS fixed position
ERROR
AT+CGPSINFO
+CGPSINFO: ,,,,,,,,
OK
This is my first time working with a cellular modem so I don't know if this behavior is expected, or if something is wrong with my board.
The following steps I tried to do to resolve this issue were increase my BAUD rate from 9600 to 115200. The reason for the change of BAUD was because I read somewhere that it times out when it doesn't receive the carriage return fast enough.
Another step I set AT+CMEE (Report mobile equipment error) to 2 in attempts to return verbose errors to track the issue. It does work when executing commands with purposely incorrect variables such as attempting to insert a wrong SIM pin. But with the errors mentioned above they are just reported as "ERROR".
I've looked all over google and can't find much on the subject so I was hoping someone with expertise can point me in the correct direction.