?
Solved

AT commands on PHP

Posted on 2005-05-11
3
Medium Priority
?
3,788 Views
Last Modified: 2013-12-09
Hello expert,  i have research SMS Application,i have mobile phone using USB port. I can send/Receive sms using Atcommands, but How to include At-commands on php or  asp scripts?
I try using PDU format and then i include to php/asp  but it doesn't work.
i have question again , How build SMS polling ?
you know that the sender sent to the virtual number ex. (4433) <--- how that happene

thank's
0
Comment
Question by:fastoxso
3 Comments
 
LVL 13

Accepted Solution

by:
imarshad earned 500 total points
ID: 13984122
I think it will be better if you ask this question in PHP Area as you will be able to get more and accurate help. Any how You can use dio for PHP to access your Serial Port ....
Following is the link
http://uk.php.net/manual/en/ref.dio.php

Once you can read write the Serial Port then polling the Port isn't that much bigger issue. Although I have never done anything in PHP but still I think it can be done once you have the handle of the Serial Port.

Imran
0
 

Author Comment

by:fastoxso
ID: 14024661
Thank's

I try using dio on php 5(windows),

<?php

exec('mode com1: baud=9600 data=8 stop=1 parity=n xon=on');


$fd = dio_open('com1:', O_RDWR);

while (1) {

  $data = dio_read($fd, 256);

  if ($data) {
     echo $data;
  }
}

?>

there are something error i found it, i am so confused To get thet functions to work,
How to get  configure PHP with --enable-dio in windows system ?


Fatal error: Call to undefined function dio_open() in C:\xampp\htdocs\serial.php on line 6
0
 

Expert Comment

by:touchring
ID: 14768296
I do not think it's advisable to use PHP to send/receive SMS, it's better if you use C++ or VB.  As for shortcode or virtual number, you will need to connect to an SMSC using SMPP or some other protocols in order to receive messages sent to shortcodes.

Rgds,
Joshua Lim
Visualtron Software
http://www.sms-gateway-software.com
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question