How to access AT commands from PHP in Rasspberry Pi3?
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...