Jump to content

Using AT commands in PHP


Recommended Posts

I don't know if there is anyone who tried this.

 

I need to get sms messages from a mobile phone and i'll be using AT commands (from hyperterminal in windows)

 

My problem is that i need to either access hyperterminal via command prompt; a connection can be open but i don't know how to input commands and get the response. Or else access hyperterminal directly from PHP which will be fabulous.

 

Anyone could give me some help please ? I've searched a lot but i didn't find any help anywhere, because it seems that either not a lot of people tried it, or else its a bit more complicated than the usual normal stuff.

Link to comment
https://forums.phpfreaks.com/topic/196593-using-at-commands-in-php/
Share on other sites

Yes, i know how to use exec, passthru etc...

 

My actual question is if there's some kind of object in PHP which handles hyperterminal connections,

or else if hyperterminal is available to use from command prompt and therefore i'll be able to use it from PHP by using  exec functions.

If I understand your question; you are trying to use AT commands to talk to a modem on a COM port.  You don't need to use hyperterminal for this.  It's just another layer of complication.  Look at PHP's Direct IO extensions (http://us3.php.net/manual/en/book.dio.php).  You should be able to open, read, and write a COM port directly.

 

I've never done this in PHP either.  But I would think it could be done.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.