Page 1 of 1

AT command

Posted: Tue Apr 17, 2007 9:42 pm
by amirsarb
hi
I need to send "AT" Commands to a GSM Modem that is
connected to COM1 but idon't know how to use AT command in php.

best regards

Posted: Tue Apr 17, 2007 9:49 pm
by Christopher
Unix or M$ ?

Posted: Tue Apr 17, 2007 9:57 pm
by amirsarb
in linux fedora

Posted: Wed Apr 18, 2007 3:42 am
by stereofrog
Have you tried

Code: Select all

$port = fopen("/dev/ttyS0", "w");
fputs($port, whatever-command);

hi stereofrog

Posted: Fri Apr 27, 2007 8:15 am
by amirsarb
i tested it but i can't use "fread" or "fgets" , in serial port.