AT command

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amirsarb
Forum Newbie
Posts: 5
Joined: Tue Apr 17, 2007 9:25 pm

AT command

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Unix or M$ ?
(#10850)
amirsarb
Forum Newbie
Posts: 5
Joined: Tue Apr 17, 2007 9:25 pm

Post by amirsarb »

in linux fedora
User avatar
stereofrog
Forum Contributor
Posts: 386
Joined: Mon Dec 04, 2006 6:10 am

Post by stereofrog »

Have you tried

Code: Select all

$port = fopen("/dev/ttyS0", "w");
fputs($port, whatever-command);
amirsarb
Forum Newbie
Posts: 5
Joined: Tue Apr 17, 2007 9:25 pm

hi stereofrog

Post by amirsarb »

i tested it but i can't use "fread" or "fgets" , in serial port.
Post Reply