Posts

Showing posts with the label at-command

How to access AT commands from PHP in Rasspberry Pi3?

Image
Clash Royale CLAN TAG #URR8PPP How to access AT commands from PHP in Rasspberry Pi3? I've tried from Raspberry Pi3 use minicom command and it works. SIM module is SIM7600CE. Just could not execute that command from PHP. <?php include '../src/PhpSerial.php'; $serial = new PhpSerial; $serial->deviceSet("/dev/ttyUSB2"); $serial->confBaudRate(115200); $serial->confParity("none"); $serial->confCharacterLength(8); $serial->confStopBits(1); $serial->confFlowControl("none"); $serial->deviceOpen(); $serial->sendMessage('AT+CMGF=1'); $serial->sendMessage(chr(13)); $serial->sendMessage('AT+CMGS="09xxxxxxxx"'); $serial->sendMessage(chr(13)); $serial->sendMessage("THIS IS TEST"); $serial->sendMessage(chr(26)); sleep(6); $read = $serial->readPort(); echo $read; $serial->deviceClose(); The code will return very strange words AT+CMGF=1AT+CAT+CAT+CAT+CAT+CAT+CAT+CAT+CAT+CAT+CAT...

Send the same SMS to multiple numbers using AT commands

Image
Clash Royale CLAN TAG #URR8PPP Send the same SMS to multiple numbers using AT commands I need to send a message to multiple recipients using AT commands. I'm using this through excel vba. Public Sub SendSMS() Dim MSComm1 As New MSComm Dim strSMSRecipients As String strSMSRecipients = "xxxxxxxxxxxx; yyyyyyyyyyyy" With MSComm1 .CommPort = 1 .PortOpen = True .Output = "AT+CMGF=1" & vbCrLf .Output = "AT+CMGS=""" & strSMSRecipient & """" & vbCrLf .Output = "Hi, World!" & Chr(26) End With End Sub It works fine if it's sent to only 1 recipient. Is there any command for sending to multi recipients or do I have to loop and sending one by one? Thank u in advance. I think this is not a Excel-VBA question because it is related to how the command for multiple SMS should look like which has nothing to do with VBA at first. It i...