I'm a semi-noob in linux.
For 2 yrs trying to find a way to trigger a command doing a phone 0$ cost ''beep'' into the 3G voice Huawei E1550 plugged in RPI.
-Found the minicom it might do the job
setup 2lines below in conf file /etc/minicom/minicom.dfl
#
pu port /dev/ttyUSB2
pu minit AT+CLIP=0 AT+CLIP=1 AT^CURC=1 AT^CURC=0
# the AT commands are necessary , the CLIP 1 enables the Caller id in the modem which gets reset when exiting minicom and the CURC 0 disables the signaling annoying messages filling the cap file.
then run the command ''minicom -C /path/to/capture.cap"
But minicom runs with keyboard environment and is doing nothing when run from cron job or on bootup with no user logged in or no Interaction cli.
-studied mgetty but couldnt find much of making sense for my ptoject.
-tried to understand some scripts but the script runs and finish does not stay as a daemon to capture permanently.
-tried cat /dev/ttyUSB2 but only black screen from logged in and nothing when no user is logged in.
-tried tail -F /dev/ttyUSB2 and nothing
also the initialization CLIP 1 is important otherwise only RING appears and no number.
So how to capture the inbound phone number and trigger a command with just PoweringON the RPI and calling the DongleSIM?
This would be the most useful simple thing to create automation based on the number of beeps.
In windows the Molbile partner prints the number in the LOG and a monitoring soft can scan the log file every 5 second and executing a command. Cant belive in linux there is no daemon that stays up connected to the ttyUSB and capture things.