Thank you Gonzalo.I am trying to develop a php system (with google maps) that will receive SMS messagens from a GPS tracker.For now I am gathering all necessary information.Let me explain my idea:– make a server (with this GSM modem you recomended) that receive data from all trackers we have.– using php, show that information trought our intranet.What do you thing about the idea?I know there must be something similar, but if I can not pay, I can try.Do you have any recomendation?Ps.: your name seems to be something latin.Best regards from BrazilMarcos. Actually i alreay used the the php class u mentioned.When i use the class, (i also used the fopen function to open the communication port on windows), first it god connected for both read and write operation.But when i sent the AT command using fwrite the modem got hanged and when i restarted the modem, i got error “Cannot open the port. Access Denied.”I am not sure what the problem is but its not letting me to do any thing except opening the port.Might be u know anything regarding this?Your help is greatly appriciated.Regards,Rajendra Pondel. Btw, for example:msg = ‚@oH. @In Belgie gelden de volgende tarieven: bellen naar NL en binnen EU 51ct p/m. Gebeld worden altijd 23ct p/m.112 is gratis.

  1. At Command To Send Sms
  2. Usb Gsm Sms Modem

How to Send SMS From a PHP Website Through HTTP by Using Raspberry Pi: Background of sending SMS from website with Raspberry PiAre you curious about the most easiest way to send SMS from your website? Nowadays, I have become really interested in the field of Internet of Things (IoT), therefore I thought it would be c.

Send

Sms is 13ct, sms ontvangen is gmsg = ‚@oH.­@ratis! Goede reis, KPN.

Geen tarief berichten meer ontvangen bij de grens? SMS ‘INFO UIT’ naar 1330.In fact the original message needs to be:Hi! In Belgie gelden de volgende tarieven: bellen naar NL en binnen EU 51ct p/m.

Gebeld worden altijd 23ct p/m. 112 is gratis.

Sms

Sms is 13ct, sms ontvangen is gratis! Goede reis, KPN etc I see in the beginning of both messages strange signs Thx! Github repo modified, adding debug flag (check last commit). Now you can add an extra parameter called $debug (bool) to see the each output of the communication with the modem.As I can see that’s seems it’s not a problem within the auth part in the script. If the device has a pin number you need to send the pin in the script.It seems a promen in the serial port configuration, not with the pin. The script throws an exception the first time the script connect to the gsm device.

I cannot affirm what the problem. I assume you’re using a linux box (remember windows is not supported) and using the serial interface (not the http interface). Is the serial port well configured (baudrate, parity, )?

Try to use minicom to speak with the gsm device first. It must work properly.Anyway you can change the script in your local copy to fit to your requirements if you want. Thanks for your reply.Yes I do have a dedicated server for sending sms, and I just simply use while loop to send messages.(about few thousands or even more through 12 ports.)To avoid each port from having too high traffic so I just set them to send few(about 6 messages) within a minute. But sometimes some of my modem’s ports will no longer working, it can’t detect SIM or even can detect but can’t send any sms, I’m wondering is it because sending too much sms causing the ports fried or modem quality problem? I even thought is because I set device too often causing the problemI’m so sorry for this non-related topic here,I really can’t find anyone to answer me since no one really know GSM modem.Anyway still thanks again.

Hey.I need your help.maybe u can help me.I’m making an SMS application for Android which will send it’s location in the SMS content. I mean the SMS message will just fill with the androids’ latitude & longitude that I got from the androids’ GPS.the SMS will received in a GSM modem in my laptop.on the other hand, I made my own map using google APIs V3 fill with some police station markers.I wanna show the SMS content (lat & long) on the map so the user will know the shortest path to the police station, but I don’t know how to do it.can u help me?I’m sorry for my poor English. Hi, Gonzalo Ayuso, thanks for your smart script. I tried to use the script on windows with my HTC HD mini mobile phone but when i run the script (testHttp.php) this error message appears— “SOCKET ERROR”. I have noticed several times in your replies, that you didn’t test the script on windows but still do you have any idea why I am getting the error message?I plugged in my HTC HD mini phone to my USB port and then I run the testHttp.php from my localhost. I am a newbie to PHP so please kindly overlook my ignorance.Thanks in Advance 🙂.

Hi, I’m designing a website for blood donors in which i want to send sms from website to mobile. Please tell me the code and which server i need to run php. Now I have wamp installed will it work on it? I have a trial gateway Nowsms i run that sing its port number localhost:8800 it shows its home page from where i can send msg to intended mobile number but i want to send it from a html page so plz give me all detail with code and where to store it and what changes in ip address,port etc i need to change in code plz i need it urgent. I have no idea about PHP so need little more explanation where to store and how to run on server and all plz. First let me congratulate you for the help and the contribution that you are giving to people.

Haka

I´m Sylvestre from Brazil. I´m now in the PHP world but I´m really enjoying it. I want to use SMS for my project, and I need an help. First for receiving and sending sms, with your experience, what can you suggested between using a SMS GSM modem, or Use the mobile phone as a gateway? According to the volume of sms to be sent and received.

It about to receive around 50 thousands SMS and sent around 100 thousands. Do you have any tutorial about each case where I can see the implemented code for the PHP? I will really appreciate your reply.

If you don’t have enough budget you can use one old phone as modem (if it allows to use the modem in one way or another) but if you need to build more robust system I recommend to buy a modem.According with the amount of sms (I don’t know if you are speaking about per day/hour/month )., you must realize that send one sms whiting a modem is not very fast (1 second or even more), so if you plan to send big amount of SMS maybe you need to think in a cluster of modems to send SMS in parallel. But maybe it’s better to speak with your sms provider.

Send Sms Modem Php

They usually have a API or service to send SMSs directly without using a modem. They also offer discounts per sms if you work big amount of messages. You need to use the proper tty in your installation. You can see what interface are you using inspecting the /var/log/messages (or /var/log/syslog in ubuntu) when you plug and unplug your device. Either way if you can read messages I suppose that you are using the correct tty.Is your device AT+ or OPEN AT+. Modern modems are OPEN AT, and the protocol is a bit different.

At Command To Send Sms

I need to upgrade the library to support OPEN AT. The only difference that I faced is the way of sending messages in text mode: AT+CMGS=”number”rtextControl-Z is not the way.

Now we need to use:AT+CMGS=”number”nthen the device sends the string “” and when it’s sent we can send:textControl-ZI need to change a little bit the function sendSMS in class Sms (line 120). DeviceSet(“COM2”);$serial-confBaudRate(9600);$serial-confCharacterLength(8);$serial-confParity(“none”);$serial-confStopBits(1);$serial-confFlowControl(“none”);$serial-deviceOpen;$serial-sendMessage(“AT”);$serial-sendMessage(“at+cmgf=1”);$serial-sendMessage(“AT+CMGS=6”);$serial-sendMessage(“HI GLENN”);$serial-sendMessage(“x1a”);echo “Message sent Daw2222!”;$serial-deviceClose;?im using this code and there is no error. But then i can’t receive any message coming from the modem. I’m using SIM900Dthank you in advance. God Bless 😀. I continue my investigation. I reboot my Mac and try to run again stty -f in Terminal.

And then the result is different, displaying infos about the modem plugged on this port. So it looks like the stty -f command works fine on Mac, but when I run the PHP script, there’s something wrong happening that make it not work anymore. Probably, as the script never ends, the port is open, but never closed, so when I try to access it again in Terminal, it is already open. But what prevents the script to reach its end?

Hello Gonzalo,I’m trying to find an USB Surf stick or a piece of software which is creating virtual com ports so I can use AT commands to send SMS. But the USB sticks Huawei E3131 and the D-Link DWM157 do not create the ports when I stick it in a USB Port.The D-Link surf stick creates the ports only when I start the D-Link Software. But then the port numbers changes often (COM21, COM11, COM.) after restarting the System. Is there a way to create the com ports manually, so the numbers are fixed?I will send the AT commands from within my visual Basic application to the com port.Many thanks for your help.Peter.

Hiho gonzalo, Great code. Maybe you can help me.Im having pin error, so i’ve try many of pins and insertPin(null)none of them sold the pin problem, so i’ve tested the reply from insertPinf functionin this point$this-sendMessage(“AT+CPIN?r”);$out = $this-readPort;$this-deviceClose;the out comes emptyso i did add an new casedefault:echo “passing by default “;$this-pinOK = true;break;it pass by default and finaly returns sent Erroron the original code you use “/dev/ttyS0” my serial port is on /dev/ttyACM0 so i did try both.

Usb Gsm Sms Modem

And both i got same error,do you have any idea about what can i do to solve it? Hi Gonzalo Ayuso,I hope you are well.I am from kenya and i need your help.I have a php,mysql,apache web application running on a local computer using wampserver.I wish to send an sms to a two mobile numbers typed on two html form textboxes.How can i achieve thisKindly help.I have seen your sms sending articles done in object php and some areas where not clear.Could you please help.How can include your php files to my application and call them when i need to send the sms.can i use a mobile phone with usb cable or i have to use a modem.Kindly helpThanksDavid.

Coments are closed