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
AT command
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- stereofrog
- Forum Contributor
- Posts: 386
- Joined: Mon Dec 04, 2006 6:10 am
Have you tried
Code: Select all
$port = fopen("/dev/ttyS0", "w");
fputs($port, whatever-command);hi stereofrog
i tested it but i can't use "fread" or "fgets" , in serial port.