gsm

GSM RSSI and LTE RSSI and RSRP

喜夏-厌秋 提交于 2019-12-11 03:24:22
问题 I am looking to create an app that gets information about the phones connection to the cellular network. My understanding is that RSSI is a measure of cellular signal with GSM and RSRP is a good measure for LTE. To keep it consistent, is it possible to get a RSSI measure for LTE? I am confused about what classes to use to get some of this information. At the moment, I am using the phone state listener which gives me a SignalStrength object. Using this object, I can call the two string method

Serial Communication in Raspberry pi 3 B+

本秂侑毒 提交于 2019-12-11 03:08:14
问题 I want to communicate between Raspberry pi 3 B+ and GSM GPRS A6. I tried and I am unable to send data to GPRS Module from Raspberry pi. Now, I know that GPIO serial port is disabled by default in newer Operating Systems (in my case Raspbian Stretch), so I have enabled it by adding following line in config.txt file, enable_uart=1 Here's my Code: import serial import time port = "/dev/ttyS0" COMM = serial.Serial(port, baudrate=115200) while(1): COMM.write("AT\r") print (COMM.read(5)) This

How can I play a GSM file in the browser using Quicktime on OSX?

时光毁灭记忆、已成空白 提交于 2019-12-11 02:39:40
问题 Experimentation reveals that in order to get GSM files to play in Quicktime on a windows box, the final redirect url has to end with .gsm . Unfortunately this is insufficient for the OSX system that the testers have, and attempting MIME types audio/gsm , audio/x-gsm , application/gsm , application/x-gsm , and application/x-GSM (desperate) does not work. Proposed alternatives: Use http://www.westhawk.co.uk/software/playGSM/PlayGSM.html - but needs to be able to seek / display progress

Is there any available SMS Pdu parser in Java?

随声附和 提交于 2019-12-11 01:58:31
问题 Anyone knows a available Pdu Parser in Java from byte[] array, my main concern is to get the User Data Header (UDH) complying to the GSM standard. I mean getting it properly. 回答1: smsLib is relatively mature. You could also make use of the parser built into Android. 回答2: As I was in need of an SMS-PDU parser/creator a couple of years ago I could not find one and had to write my own. Grab a copy of GSM 03.40, brush up on your bit-fiddling skills, and get going. :) 来源: https://stackoverflow.com

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

Looking for GSM 7bit encode/decode algorithm

帅比萌擦擦* 提交于 2019-12-10 12:15:41
问题 I need to Send Short message in pdu mode. Anybody can give me a GSM 7bit encode/decode algorithm? 回答1: See if this is of any use to you. Code taken from one of my very old projects - may be used as you wish. unit SMSCodec; interface const //:Default 7-bit alphabet. CPDU7bit = #10#13' !"#$&''()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; type {:Encoder result. @enum esEncoded Message encoded successfully. @enum esTruncated Message encoded successfully, but

GSM-MODEM调试备忘(二)

 ̄綄美尐妖づ 提交于 2019-12-10 02:47:51
7. 发送短消息后,收到出错信息+CMS ERROR 515   如果您的GSM MODEM在初始化期间或在指令执行过程当中GSM MODEM又接受新的指令,将会出现此错误。您必须等到初始化完成或指令执行完毕。   8. 如何才能知道您发送的短消息已被送达目的号码   a) 采用文本格式发送   在您采用文本格式发送短消息时,您的GSM MODEM须作以下的设置:   at+csmp=49,〈X〉,〈X〉,〈X〉   at+cnmi=〈X〉,〈X〉,〈X〉,1,〈X〉   〈X〉代表根据您的需要您所选择的合适的参数。   当您发送完短消息后,您将收到来自短消息中心的以下两种确认中的一种:   +CDS:〈X〉,〈顺序号〉,"电话号码","发送时间","接收时间",0   或:   +CDS:〈X〉,〈顺序号〉,"电话号码","发送时间","接收时间",48   确认中的最后个数代表了此短消息的传输状态。(0表示已经送达目的号码,48表示不可能将此送达目的号码)   b) 采用PDU格式发送   在您采用PDU格式发送短消息时,您的GSM MODEM须作以下的设置:   at+cnmi=〈X〉,〈X〉,〈X〉,1,〈X〉   〈X〉代表根据您的需要您所选择的合适的参数。   在您所要发送的PDU格式的短消息中,您须将短消息中心号码后的第一个字节设成31   在发送完短消息后

短信通信备忘录

≡放荡痞女 提交于 2019-12-09 13:10:51
1. 如何与GSM MODEM建立通信联系   您可用诸如Windows下的超级终端或Pcomm等终端仿真软件,将计算机的串行口与GSM MODEM的串行口用电缆直接连接。    2. 不能与GSM MODEM进行正常的通信或总是在仿真终端上出现乱码   检查您的串口是否保证正常连接,计算机的串口引线与GSM MODEM的串口引线应是一一对应的。GSM MODEM与仿真终端应设置相同的通信速率。   但您初次使用GSM MODEM时,请在仿真终端上设置为通信速率9600bps、8位数据位、无较验位、1位停止位。    3. 如果您想在出错后得到错误代码号,需将GSM Modem作如下设置:   AT+CMEE=1    4. 发送短消息后,收到出错信息+CMS ERROR 512   表示您的GSM MODEM在发送短消息的同时它收到了新的短消息,发送短消息被拒绝,您需要重新发送此条短消息。    5. 发送短消息后,收到出错信息+CMS ERROR 513   您遇上了下面问题中的一种:   a) 您的GSM MODEM失去了无线链路连接;   b) 在发送完短消息后的28秒内,您的GSM MODEM没有收到短消息中心送来的接收确认+CMGS:〈顺序号〉;   c) 在送出请求建立发送短消息的控制信道指令后的42秒内,您的GSM MODEM没有收到基站送来的确认〉。    6.

android电话系统和ril分析(2)————rild详细分析

徘徊边缘 提交于 2019-12-09 11:35:56
上一篇有提到rild,这里做我个人的理解来分析rild: 参考达人B的文章,链接: http://blog.csdn.net/qitaosong/article/details/5069823 1.rild.c结构: 2.各个函数分析: 2.1>RIL_register extern void RIL_register (const RIL_RadioFunctions *callbacks); 该函数在ril.cpp里有实现,RIL_RadioFunctions 在ril.h里定义为: typedef struct { int version; /* set to RIL_VERSION */ RIL_RequestFunc onRequest; RIL_RadioStateRequest onStateRequest; RIL_Supports supports; RIL_Cancel onCancel; RIL_GetVersion getVersion; } RIL_RadioFunctions; 其中onRequest,指令请求会在reference-ril.c里实现: static void onRequest (int request, void *data, size_t datalen, RIL_Token t){...}