el codigo que tengo es este:
Código:
les agradeceria si me pudieran ayudar a revisar si tengo algo malo o no he tomado en cuenta algún comando. (ya hice pruebas desde hyperterminal y si puedo enviar sms)<?php
include "php_serial.class.php";
$serial = new phpSerial;
$serial->deviceSet("COM3");
$serial->confBaudRate(9600);
// Then we need to open it
$serial->deviceOpen('w+');
//stream_set_timeout($serial->_dHandle,10);
// To write into
$serial->sendMessage("AT",2);
$read=$serial->readPort();
$serial->sendMessage("AT+CMGF=1\r\n",1);
$read=$read.$serial->readPort();
$serial->sendMessage("AT+CMGS=\"+502xxxxxxxx\"\n\r");
$read=$read.$serial->readPort();
$serial->sendMessage("TEST!\n\r");
$serial->sendMessage(chr(26));
$read=$read.$serial->readPort();
// If you want to change the configuration, the device must be closed
$serial->deviceClose();
echo $read."fin";
// We can change the baud rate
$serial->confBaudRate(9600);
?>
gracias por sus comentarios


