at-command

AT Commands PHP

点点圈 提交于 2019-12-04 02:29:50
问题 I want to send messages from php by using a GSM modem. I have configured the modem and tested it using Hyperterminal. Now I want to execute AT commands using php. Is there any open source library available for that, or some other solution? 回答1: Since my php application is hosted on an Apache webserver, I used python, pyserial and mod_wsgi to send the SMS, thanks for all the help. 回答2: I haven't used this myself but someone i know used it a while ago. http://code.google.com/p/php-serial/ 来源:

AT+CMGS returns ERROR

末鹿安然 提交于 2019-12-03 19:52:19
问题 I am using SIM900 GSM module connect to my AVR Microcontroller. I tested it with FT232 to see transmitting data. First Micro sends AT it will response OK AT OK AT+CMGF=1 OK AT+CMGS="+9893XXXXXX" returns ERROR and doesn't show ">" Could anybody advise me what to do? 回答1: Command AT+CSCS? will answer You what type of sms-encoding is used. Properly answer is "GSM", and if not, You should set it by command AT+CSCS="GSM" . And remember about "Ctrl+Z" (not "Enter") as a finish of sms text, please.

Trying to use the AT command with an Huawei E3531

依然范特西╮ 提交于 2019-12-03 17:23:05
I want to read the RSSI of my Huawei E3531. So I found some documentations that show an easy way to get those informations using the AT command. The problem is that I can't even connect to my Huawei E3531. I mean, it works really well as a modem. I have a good connection. But when I am looking for the device in dev, I just find 2 devices ("sdb" and "sgm") which seem to be 2 disc, but nothing to do with serial port. So I tried somethin I found: -After I plugged the Huawei, I find the Idvendor and Idproduct doing an lsusb. -They I do a sudo modprobe usbserial vendor=0X"Idvendor" product=0X

HM10 ble change characteristic value AT command Arduino

五迷三道 提交于 2019-12-03 13:51:43
Can anyone help me with the AT command to write characteristic value, Or how to send data from arduino to another ble device using Hm10 module. The HM10 after sending the AT+START, does advertise packets, and can detect the service and characteristic, But the characteristic value is the default 0x00, How can I change that? Have checked the data sheet multiple times but can not find an AT command that is capable of doing the same. UPDATE: Similar problem with setting the HM10 in Central Mode: Central Mode Setup! 1) AT+ROLE1 - Set up to Central Mode 2) AT+IMME1 - Start from RESET 3) AT+SHOW1 -

Erlang serial IO

て烟熏妆下的殇ゞ 提交于 2019-12-03 13:44:44
问题 I want to talk to my modem with erlang. It is mounted as /dev/ttyUSB and perfectly understands AT-commands. Can I read and write from the device with the standard file module? How about baudrate, bytesize, parity, RTS/CTS, DSR/DTR and the like? Have you any experiences with tonyg-erlang-serial-1.0? (I am not too convinced of this package as it says in the readme: "This is a port program with erlang driver for serial communication, originally written by Johan Bevemyr in 1996 and sporadically

sim800 at command post data to server

亡梦爱人 提交于 2019-12-03 09:31:23
I'm stumped with sending data to a remote server , I'm able to send a post request but not sure how to add data which is then received by the server. I've went through the datasheet http://www.jarzebski.pl/datasheets/SIM900_https-121018-1.00.pdf tried # usual at+sapbr=1,1 set up +HTTPINIT +HTTPPARA = “CID”,1 +HTTPPARA="URL","IP-ADDRESS:PORT" +httpdata=100,10000 # Where do I add the post data ? +httpaction=1 which sends the http post request. But how do I add data - I've tried adding it to the url ?key=val but no joy - any help here will be appreciated httpdata=100,10000 means that SIM800

Java (J2SE) DTMF tone detection

不想你离开。 提交于 2019-12-03 09:02:47
I am trying to do the following I am getting a call to another person using my java application (Already done & works fine). Then I am playing a recording, for example "Please press 1 one to continue in english" (Already done & works fine). Now I want to detect that person press one, As per my researches in google search I got that this can do using DTMF.If the person press 1 I want to do the actions according to my condition. My question is how to detect that number using DTMF in java (J2SE). I am using ZTE USB dongle to make the call. Dialing, Hangup, And other controls did by using AT

Sending SMS AT commands to 3G modem using PHP

寵の児 提交于 2019-12-03 08:33:19
I'm having trouble sending commands to a 3G modem connected on COM5. The modem is accepting the connection and receiving the commands. But there is something wrong (I think it is in my syntax/AT commands). In hyperterminal the commands are returning errors. If anyone can help I would gladly appreciate it. -------CODE BELOW------- <? exec("mode COM5 BAUD=9600 PARITY=N data=8 stop=1 xon=off"); $fp = fopen ("\\.\COM5:", "r+"); //$fp = dio_open('COM5:', O_RDWR | O_NOCTTY | O_NONBLOCK); if (!$fp) { echo "Uh-oh. Port not opened."; } else { $string = "AT+CMGF=1"; $string = $string."OK"; $string =

How do I go about writing a program to send and receive sms using python?

笑着哭i 提交于 2019-12-03 07:59:18
I have looked all over the net for a good library to use in sending and receiving sms's using python but all in vain! Are there GSM libraries for python out there? Have you looked at py-sms ? Python-binding for Gammu perhaps? BTW. It's GUI version ( Wammu ) is written in wxPython. I have recently written some code for interacting with Huawei 3G USB modems in python. My initial prototype used pyserial directly, and then my production code used Twisted's Serial support so I can access the modem asynchronously. I found that by accessing the modem programatically using the serial port I was able

What is the best design for polling a modem for incoming data?

孤人 提交于 2019-12-03 06:54:58
I have a GSM modem connected to my computer, i want to receive text messages sent to it using a python program i have written, am just wondering what is the best technique to poll for data. Should i write a program that has a infinite loop that continuously checks for incoming sms's i.e within the loop the program sends the AT commands and reads the input data. or do modems have a way of signaling an application of an incoming data(sms). Am trying to imagine a cellphone is just a GSM modem, and when an sms is received, the phone alerts you of the event, or does the phone software have an