gsm

How to disable GSM connection in Android programmatically

假如想象 提交于 2019-12-03 13:38:34
问题 I want to enable/disable an Android phone's GSM connection. I need to disable/enable calls and SMS as required. How might I do this? 回答1: EDIT: This solution will also turn off wifi, bluetooth, etc... If you want to turn off radio only, I think it's related to this issue: http://code.google.com/p/android/issues/detail?id=1065 I am really pessimistic about finding a good solution, but curious to see other answers. See the blog article Android: Controlling Airplane Mode , // Toggle airplane

Communicating serial port on windows with php

天涯浪子 提交于 2019-12-03 13:26:55
问题 I'm working with an application which connects to Huawei 3G Modem using COM ports in php. Here is my code: <?php include("sms.php"); $sms = new sms(); $device = "COM11"; exec("mode $device BAUD=9600 PARITY=n DATA=8 STOP=1 xon=off octs=off rts=on"); $comport = fopen($device, "r+b"); if ($comport === false){ die("Failed opening com port<br/>"); }else{ echo "Com Port Open<br/>"; } //Set non-blocking mode for writing //stream_set_blocking($comport, 0); $sms->_blocking($comport,0); $atcmd = "AT\r"

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

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

Implementing a GSM Modem for SMS [closed]

让人想犯罪 __ 提交于 2019-12-03 06:13:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 months ago . So I've got a website that serves ~1000 users, coordinating scheduling for events. I'd like to enable our system to send SMS messages to users. I have access to the server and would like to purchase and install a GSM modem instead of subscribing to some SMS Gateway service. What I gather so far is that I need

What is meaning of negative dbm in signal strength?

天涯浪子 提交于 2019-12-03 04:11:59
问题 When we try to get nearby cells and their LAC, MNC, signal (and while using other android apps) we are getting signal as negative value (like -85dbm). How should I take this? Should I ignore -ve sign and take absolute value or -85 is smaller strength than -60? How this will affect my location finding? 回答1: The power in dBm is the 10 times the logarithm of the ratio of actual Power/1 milliWatt. dBm stands for "decibel milliwatts". It is a convenient way to measure power. The exact formula is P

Communicating serial port on windows with php

白昼怎懂夜的黑 提交于 2019-12-03 03:37:01
I'm working with an application which connects to Huawei 3G Modem using COM ports in php. Here is my code: <?php include("sms.php"); $sms = new sms(); $device = "COM11"; exec("mode $device BAUD=9600 PARITY=n DATA=8 STOP=1 xon=off octs=off rts=on"); $comport = fopen($device, "r+b"); if ($comport === false){ die("Failed opening com port<br/>"); }else{ echo "Com Port Open<br/>"; } //Set non-blocking mode for writing //stream_set_blocking($comport, 0); $sms->_blocking($comport,0); $atcmd = "AT\r"; fputs($comport, $atcmd); sleep(5); // Sleep for response from the modem // Set blocking mode for

How to disable GSM connection in Android programmatically

大兔子大兔子 提交于 2019-12-03 03:04:23
I want to enable/disable an Android phone's GSM connection. I need to disable/enable calls and SMS as required. How might I do this? Waza_Be EDIT: This solution will also turn off wifi, bluetooth, etc... If you want to turn off radio only, I think it's related to this issue: http://code.google.com/p/android/issues/detail?id=1065 I am really pessimistic about finding a good solution, but curious to see other answers. See the blog article Android: Controlling Airplane Mode , // Toggle airplane mode. Settings.System.putInt( context.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isEnabled

Change mobile network mode (gsm, wcdma, auto)

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to change the preferred network mode ie. gsm or wcdma or auto, programmatically, from code, on Android. Is this possible, and if so how ? 回答1: Answer is NO We can open directly the settings app of mobile network settings to switch between "2G" and "allow 3G" networks.A direct switch is sadly not possible. We can develop something which will show current network and allow user short-cut from the app where they can switch network. 回答2: It is possible, I did it. For this to work, your app must be signed with the system key or have