Jump to content

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.

Hi,

 

Yes that's exactly what i'm trying to do, i thought that there must be some kind of solution.

 

I was currently searching for using hyperterminal from cmd but this is a much better solution if it works.

 

Thanks a lot mate, i really appreciate it ;)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.