at-command

how to deal with the serial port in android mobile?

白昼怎懂夜的黑 提交于 2019-12-11 03:58:54
问题 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

Communication between 2 ESP8266 WiFi modules without router using AT commands

我的未来我决定 提交于 2019-12-11 01:07:08
问题 I'm trying to make a TCP based communication to send a simple message "Hello" from one ESP8266 module to another using this document. I'm using 2 USB to TTL as hardware and Realterm as serial terminal. I could do it when ESP8266 modules are connected to a router, sending AT commands as below, Set the Server: AT+CWJAP="AccessPointName","Password"//Join to your WiFi network AT+CIPMUX=1//0 for single connection 1 for multiple connection. AT+CIPSERVER=1,1336//Set as Server. 1 to open Server mode

XBee Linux Serial Port on Raspberry Pi

不想你离开。 提交于 2019-12-11 00:55:14
问题 I have 2 Adafruit XBee 2 Modules each connected with 1 FTDI cable (ttyUSB0 and ttyUSB1)to the Raspberry Pi via a USB hub. I configure both XBee modules independently to be on the same PAN and then I try to read in a while loop with one, and write a simple message in a while loop in the other. For some reason I never read anything from the second port. Here is the test code I am using. Configure: xbee::xbee(char* usbPort) { /* -> AT (check if xbee modem is responding) <- OK -> ATID (get

How to Read Sms From Mobil Phone with AT Commands?

独自空忆成欢 提交于 2019-12-10 22:53:39
问题 I have been working for hours to solve this problem. As you see above, I got CMS error 321 explanation of the eror code 321 The memory/message storage index assigned to the AT command is invalid. source: http://www.developershome.com/sms/resultCodes2.asp With that code, I wanted to get message count, and to read sms and I got the same error.. I can send sms with AT commands but I want to read sms from mobil phone. I connected via usb and bluetooth, and the result is the same.. I can send sms

How to send a sequence of AT commands to a serial port in bash?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 18:16:35
问题 In Linux I need to send a sequence of AT commands to a serial port on e.g. /dev/ttyS0 , which has to wait for an OK answer before the next command is sent. I could imagine doing something like echo 'AT' > /dev/ttyS0 echo 'ATS0=0' > dev/ttyS0 ... but this does not evaluate the answer from the device on that port. Is there a very simple way to automate this within a bash script, probably with the help of socat and/or microcom but no tools which cannot found on the most simple linux system . 回答1

Recieving Blank SMS SIM800 using AT Commands and Python on Raspberry Pi 2

*爱你&永不变心* 提交于 2019-12-10 16:43:34
问题 I created this python script on rpi2, the message goes through, but it is a blank message. Is it a encoding issue? import serial import time from sys import version_info from curses import ascii phone = serial.Serial("/dev/ttyAMA0", 115200, timeout=0.5) def send_text(number,message): phone.write(b'AT+CMGF=1\r') phone.write(b'AT+CMGS="' + number.encode() + b'"\r') phone.write(message.encode()) phone.write(ascii.ctrl('z')) for i in range(len(reply)): reply[i] = reply[i].rstrip() print reply AT

GSM Modem USSD Check Balance Getting CME Error 100

被刻印的时光 ゝ 提交于 2019-12-10 15:32:55
问题 I'm trying to check the SIM Card Balance via USSD using Huawei E1550 3G modem But when i always send AT+CUSD=1,"*100#",15 I Get +CME Error: 100 And yes my modem support USSD because i have a dashboard application for the modem and i can check the balance and also recharge the SIM Card. I'm using GSMComm library in C# i've also tried it in putty termainl but keep getting the same error I searched for the error 100 and found that it's "Unknown Error" no really helpful :) I did also tried

how to get AT response from ESP8266 connected to arduino

痴心易碎 提交于 2019-12-10 12:23:37
问题 I am fighting with ESP8266 wifi module and connecting arduino. After updating firmware to newest version i started to programm arduino to get data incoming from wifi. I saw many examples about maiking webserver via ESP8266 but none of them works for me. ESP is connected to my Arduino Leonardo: > Arduino -> ESP8266 power 3.3V -> vcc ground -> ground tx -> rx (via logic level converter 5->3.3V) rx -> tx (via logix level converter power 3.3V ->gpio0 (without any resistors) I made simple sketch:

Sending AT Command to a USB-Connected GPRS Modem in C#

徘徊边缘 提交于 2019-12-10 10:10:45
问题 Can anyone give me a good direction or guide on how I can access a GPRS modem that is connected to a Usb Port. Should I make a USB driver for my program to send AT command to the modem? or Is like a router where in i can access it using an IP address? thanks 回答1: If its recognised by windows as a modem then the required drivers should automatically present it as a serial port, just like any other modem & you can communicate with it using its port name & System.IO.Ports.SerialPort . If you

Telephony parameters not available through framework APIs

主宰稳场 提交于 2019-12-10 09:39:28
问题 I have to fetch the info related to following Telephony parameters: BCCH, Band, DL ARFCN,UL ARFCN, BLER, MOS DL, MOS UL, Txpwr & Handover Parameters. I searched a lot but didn't find any way to get this information through APIs. There may be some other ways (I am not sure), like: Using AT command. Using AIDL, talk to RIL & fetch the info. Using NDK, write c code which will directly talk to modem/low level implementation. But I don't know which is the right way or how to proceed with the right