gsm

Sending AT commands to SIM900 whilst pppd is active

白昼怎懂夜的黑 提交于 2019-12-01 04:40:02
I have a Raspberry Pi with a SIM900 GSM add-on board connected. I have managed to establish a GPRS connection with pppd by following this guide . (It's for a different GSM module but the steps are the same) I would like to periodically send an AT command ( AT+CCLK? ) to the SIM900 to check the clock. I have managed send ad hoc AT commands using screen but when pppd is up I can't use screen to connect to the serial line. It just exits straight away saying [screen is terminating] . I'm guessing this is because pppd is using it to connect to the internet. Q: How do I get the clock time without

android: NeighboringCellInfo always empty !? why?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 03:18:49
i'm trying to get info about the neighboring cells my phone can "see" atm. so far so good. i do this like this: telManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); //... ArrayList<NeighboringCellInfo> neighboringCellList = (ArrayList<NeighboringCellInfo>) telManager.getNeighboringCellInfo(); unfortunately, this list turns out to be empty all the time. even in different places. i live in berlin, so i don't think it's because there is actually just the one cell available! update: my permissions look like this: <uses-permission android:name="android.permission

Sending AT commands to SIM900 whilst pppd is active

穿精又带淫゛_ 提交于 2019-12-01 02:33:39
问题 I have a Raspberry Pi with a SIM900 GSM add-on board connected. I have managed to establish a GPRS connection with pppd by following this guide. (It's for a different GSM module but the steps are the same) I would like to periodically send an AT command ( AT+CCLK? ) to the SIM900 to check the clock. I have managed send ad hoc AT commands using screen but when pppd is up I can't use screen to connect to the serial line. It just exits straight away saying [screen is terminating] . I'm guessing

android Outbound caller id - on/off

被刻印的时光 ゝ 提交于 2019-12-01 00:21:26
I wan to hide/show my caller id from my activity programmatically. I tried to find it in the android documentation but without the luck. Maybe you have any ideas? I posted a question asking this on the Android Google group and got absolutely no answers at all. I've also seen a couple of other question on SO which also had no answers (or none that work). I came to the conclusion that it simply isn't possible. My reasoning is this... If I go to Settings -> Call -> Additional settings, I see an AlertDialog which has a HeaderTitle of 'Call settings' and I see a circular progress indicator and a

What is the maximum number of characters in an USSD message?

孤者浪人 提交于 2019-11-30 20:03:53
I've understood that an USSD message consists of 160 bytes. For 7 bit data coding schemes, the maximum number of characters is 160*8/7 which gives 182 characters. It's unclear to me what is the maximum number of characters for UCS2 encoding. Normally, it would be something like 160/2, but I have some mixed information on this. The maximum size of a USSD message is 160 bytes. For GSM 7 Bit messages you are correct in saying the limit is 182 characters. UC2 encoding per definition is fixed 2 bytes per character so you will have a maximum of 80 characters. 来源: https://stackoverflow.com/questions

How to concat long SMS in GSMComm Library?

南笙酒味 提交于 2019-11-30 15:45:31
问题 Here is my code: According to this page the CreateConcatTextMessage method returns an array with type SmsSubmitPdu[] but, when I try to send it with SendMessages I get a MessageServiceError 500 . What am I missing? SmsSubmitPdu[] pdu2; try{ pdu2 = SmartMessageFactory.CreateConcatTextMessage("My name is Barry Allen. And I am the fastest man alive. When I was a child I saw my mother killed by something impossible. My father went to prison for her murder.", "+639234597676"); comm.SendMessages

Switching between gps and network provider according to the availability

巧了我就是萌 提交于 2019-11-30 15:34:58
public void onCreate() { locationListener = new GeoUpdateHandler(); locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); try { gps_enabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); network_enabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); } catch (Exception ex) { } if(gps_enabled) { locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, TIME_DURATION, 100, locationListener); } else if(network_enabled) { // Checking for GSM locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, TIME

OpenSource .net SMS library, I can't seem to find one at all for C# [closed]

荒凉一梦 提交于 2019-11-30 14:01:40
I've been using GSM modems in my projects to send/recieve SMS-s. I have been using built-in serial port communication features of .net to do this by using standard AT commands. Now I have to extend its functionality (like SMSs in PDU mode, more efficient delivery report handling etc). I don't wanna reinvent the wheel, so first I'd like to know if there is a good open source project or a free library on this topic. It should send/recieve sms in text and pdu mode, handle delivery reports. I've googled it, but I have not found an efficient one so far. Platform: Windows/.net4/vs2010/c# p

AT+CMGS returns ERROR

烈酒焚心 提交于 2019-11-30 11:36:52
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? 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. You aren't passing all the parameters to the command. The command format is: AT+CMGS=<number><CR><message>

error +HTTPACTION:0,601,0

痞子三分冷 提交于 2019-11-30 09:33:57
I m trying to access a website using sim900 GSM module. This is the list of commands AT+CSQ +CSQ: 16,0 OK AT+HTTPINIT OK AT+HTTPPARA="CID",1 OK AT+HTTPPARA="URL","www.google.com" OK AT+HTTPACTION=0 OK +HTTPACTION:0,601,0 AT+HTTPACTION=0 OK +HTTPACTION:0,601,0 Unable to access google. 601 code shows Network error. How to get rid of this error? You need to setup the connection to the bearer. Here are the minimum setup commands that have worked for me (based on trial/error and searching around on the internet). AT+SAPBR=3,1,"APN","wap.cingular" AT+SAPBR=1,1 The correct value for the APN may be