I’m trying to sniff the AT command messages sent from the Hologram CLI to the modem, as I want to eventually switch over to issuing the same AT command messages using UART.
I’m trying to modify the logging callback as suggested here. But when I make any modifications (e.g. inserting print statements), I see no difference - probably because I’m building the local source incorrectly or not actually building the source at all.
What’s the right way to go about building a local version of the Hologram CLI?
From the command line, I run sudo hologram send "hello world" -vv and get a verbose output which includes the AT commands being sent to the modem. When I mimic the exact same command sequence using screen /dev/ttyUSB1 (using a raspberry pi), I get a +CME ERROR: Operation not allowed.
succeeds per the verbose output from sudo hologram send "hello world" -vv but, when I enter the commands manually through screen /dev/ttyUSB1, each step returns OK except for the final write command which returns a +CME ERROR: Operation not allowed. and the socket immediately closes.