at-command

Hayes AT Commands: Detect Remote Hangup?

社会主义新天地 提交于 2019-11-28 06:13:21
问题 How are you supposed to programatically detect when the remote modem on your call hangs up? I am writing a C program which interfaces with a SoftModem device /dev/ttySL0 in Ubuntu linux. I am able to configure the modem using Hayes AT commands and communicate with the remote modem. However, I haven't been able to determine how I'm supposed to detect that the other end has hung up the line. I have the modem configured so that when the other end hangs up, the device prints NO CARRIER and

how to deal with the serial port in android mobile?

守給你的承諾、 提交于 2019-11-28 05:18:11
问题 actually I know no thing about serial port. but I see an example of sending it an at-command: echo -e "AT" > /dev/smd0 What is /dev/smd0 and why they sometimes replace it with /dev/ttyS0. 回答1: /dev/smd0 and /dev/ttyS0 are device files. Such files are virtual files that provide a file I/O operation interface for working with some underlying thing like for instance hardware resources like serial ports, hard disks and memory, or with non-hardware resources like process information, random number

At-Sign in SQL statement before column name

左心房为你撑大大i 提交于 2019-11-28 03:18:41
问题 I have an INSERT statement in a PHP-file wherein at-signs (@) are occurring in front of the column name. @field1, @field2, It is a MySQL database. What does the at-sign mean? Edit: There is no SET @field1 := 'test' in the PHP script. The PHP script reads a csv and puts the data into the table. Can it be misused as a commenting out feature? <?php $typo_db_username = 'xyz'; // Modified or inserted by TYPO3 Install Tool. $typo_db_password = 'xyz'; // Modified or inserted by TYPO3 Install Tool. /

How to properly triangulate GSM cell towers to get a location?

怎甘沉沦 提交于 2019-11-28 02:48:30
First of all, I am trying to do all this disaster in c# (.net 4) so if you come up with some code to help me that would be appreciated but really anything would help at this point. I have a situation where I have a device that can only get GSM Cell information (incidentally via the AT+KCELL command) so I have a collection of values about cell towers (each has LAC, MCC, MNC, Cell ID, Signal Strength and the first Timing Advance). I think, therefore, I am in a good place to be able to come up with some sort of longitude and latitude coordinate (albeit inaccurate, but, well meh). This is where I

Get AT command response

↘锁芯ラ 提交于 2019-11-28 02:16:14
I am using an Arduino Uno with a sim900 gps/gprs module and I'm using at commands, how can I get the response of at command (i.e OK, ERROR) so that I can do something if response == "OK" or response == "ERROR" You can use following code to read response from SIM900 GSM Module just after issuing AT command. char response[200]; for(int i = 0 ; Serial.available() > 0 && i<200 ; i++) { response[i++] = Serial.read(); } After reading response you can use strstr() function to check whether it is ' OK ' or ' ERROR ', as given below: if(strstr(responce, "OK"){ /*Do your code to handle OK response*/ }

GSM Modem Send Message in UCS2 format error

大城市里の小女人 提交于 2019-11-28 01:33:55
I'm using java to communicate with a gsm modem (Siemens) using AT commands. I set the encoding of modem to "UCS2". When sending messages as soon as I send the phone number I get ERROR from the device: AT+CSCS=UCS2 OK AT+CSMP=17,167,0,8 OK AT+CMGF=1 OK AT+CMGS="0919xxxxxxx" ERROR HELP ME, PLEEEEEEASE! :( I think you are encoding the <da> address argument to AT+CMGS incorrectly. You refer to 91 and 92 style, but are you actually referring to the '81'/'82' format as explained in the Coding of Alpha fields in the SIM for UCS2 blog post about encoding as specified in 3GPP TS 11.11 ? After you run

Sending Unicode Messages (such as in Persian and Arabic) in C# using AT Commands through GSM Modem

*爱你&永不变心* 提交于 2019-11-27 23:50:43
I am developing an application for GSM Modems (D-Link DWM-156) in C#.Net using AT commands. I have a problem sending Unicode messages (Such as messages written in Persian or Arabic). Here it is the core of my program: SerialPort GSMPort = new SerialPort(); GSMPort.PortName = "COM6"; GSMPort.BaudRate = 9600; GSMPort.Parity = Parity.None; GSMPort.DataBits = 8; GSMPort.StopBits = StopBits.One; GSMPort.Handshake = HandShake.RequestToSend; GSMPort.DtrEnable = true; GSMPort.RtsEnable = true; GSMPort.Open(); GSMPort.Write("AT\r"); Thread.Sleep(1000); GSMPort.Write("AT+CMGF=1\r"); Thread.Sleep(1000);

Send AT Commands to Android Phone

假装没事ソ 提交于 2019-11-27 18:01:44
I want to Send AT Command to Android phone. I know SDK does not support this. but there are two solution : change the code of Kernel and release your new Android (it seems it is so hard!) LoopBack on USB .(i think Bluetooth is same) About second solution , when you connect your phone to PC with USB cable , you will see a GSM modem on Device Manager that help you to send AT Command to GSM Modem. If we find a solution to loop back on mobile phone , we can send AT commands to GSM Modem. Question is : HOW to loop back and what tty file on kernel will help us? first you have to root the phone then

How to Send/Receive SMS using AT commands?

吃可爱长大的小学妹 提交于 2019-11-27 16:22:01
问题 Can anyone help me to send and receive SMS using AT commands in Python? In case it matters, I'm using Fedora 8. Which phone will be better with Linux (Nokia, Sony Ericson, Samsung,.....)? Will all phones support sending and receiving SMS using AT commands? 回答1: Here's some example code that should get you started (in Python 3000): import time import serial recipient = "+1234567890" message = "Hello, World!" phone = serial.Serial("/dev/ttyACM0", 460800, timeout=5) try: time.sleep(0.5) phone

AT command - USSD

二次信任 提交于 2019-11-27 14:46:19
I'm using minicom (serial port software for linux) for interacting with my GSM modem, actually now I'm trying to use one of my mobile-provider's services with AT-Command. here I say, I wanna see my balance: AT+CUSD=1,*555*87*1234# OK +CUSD: 1,"this service will deduct you 5cent from your balance, to continue please enter 1",15 so, here I sent "1", but nothing happened and session get closed. AT+CUSD=1,1 OK nothing happen, but session closed. With normal phone, after entering 1, I will get my current balance. Please help me. The format of the command is AT+CUSD=[<n>[,<str>[,<dcs>]]] , and the