3g

cellID and LAC / PSC for 3G neighboring cells in Android

坚强是说给别人听的谎言 提交于 2019-12-03 13:48:49
问题 I am trying to identify the neighboring cells location in 3G with Android, which I get with getNeighboringCellInfo(). When The phone works in GSM mode, I am able to use getCid() and getLac() to get the CellID and the LAC, but for 3G, I can only use getPsc(), which I'm not very sure if it's enough to identify a cell. Can anybody please tell me if I can get the CellID + LAC for neighboring cells? And if that's not possible, how can I use the PSC code to identify a cell? 回答1: In UMTS, the PSC is

How do you detect 3G vs. Wifi connection on mobile safari?

佐手、 提交于 2019-12-03 10:57:45
I am specifically asking about javascript on a mobile webpage, not an objective-c application. Is there something like Apple Reachability for javascript so I can tell when Edge, 3G or Wifi connection is made or changed? Not unless browsers start giving this information away through the DOM which, currently, they don't. There is a navigator javascript objects which holds many things but not what you're looking for. I've also read in the news recently that some cellular carrier was adding cookies to HTTP requests made on their phones. They were found to be adding customer IDs to cookies (huge

Sending SMS AT commands to 3G modem using PHP

寵の児 提交于 2019-12-03 08:33:19
I'm having trouble sending commands to a 3G modem connected on COM5. The modem is accepting the connection and receiving the commands. But there is something wrong (I think it is in my syntax/AT commands). In hyperterminal the commands are returning errors. If anyone can help I would gladly appreciate it. -------CODE BELOW------- <? exec("mode COM5 BAUD=9600 PARITY=N data=8 stop=1 xon=off"); $fp = fopen ("\\.\COM5:", "r+"); //$fp = dio_open('COM5:', O_RDWR | O_NOCTTY | O_NONBLOCK); if (!$fp) { echo "Uh-oh. Port not opened."; } else { $string = "AT+CMGF=1"; $string = $string."OK"; $string =

5G是不是伪需求?

不想你离开。 提交于 2019-12-03 08:01:43
我们先来讨论一个问题,那就是,5G到底是不是伪需求? 2019年6月的时候,CSDN(中国专业IT社区)问出这样一个问题,“国内(和世界上很多国家)4G部署的成本还没收回,现在又要部署5G,您认为这是否是在不计成本?很多人说4G就够用了,您如何看待这种看法?” 这个问题可能很多人在心里都问过自己,当我们并没有感受到4G不够用时,5G是否是伪需求?我们接下来就用需求这把钥匙,来回答这个问题。听完这一讲,我希望能帮助你提高判断一个技术是否是伪需求的水平。 认为5G是伪需求的一个重要论据是,到目前为止,5G只是网速更快,而4G其实可以满足我们今天所有的对网速的需求,包括上传图片和视频,以及收看高清视频等等。至于在线支付,所需的网速连上传视频的千分之一都不到。 这种看法确实有道理,因为几乎所有的媒体对5G好处的报道都集中在网速上,比如一分钟能下载一个高清电影,等等。那么,5G真的仅仅是网速更快吗?我们平时并不觉得慢的4G,在什么情况下才会有痛点呢? 公平地讲,4G明显的痛点还真不多,不过我们偶尔还会遇到。 如果要同时无线上网的设备数量增加一到两个数量级(也就是10~100倍),4G的带宽和并发能力就不够了。 从理论上讲,4G每平方公里只能支持10万个设备。如果万物互联(IoT)普遍发展,这种多设备同时上网的情况,4G是难以满足的。而万物互联是未来的必然,具体原因,我会在下一讲告诉你。

How to check iOS app size before upload

自古美人都是妖i 提交于 2019-12-03 04:11:30
I would like to be able to check the size of my app before submitting to the app store. More specifically I need to know whether it will be below the magic 20 MB, to allow cellular downloads, since the app is created for a festival. The install file downloaded from the App Store will vary based on the device and what thinning is done to your app. An ad hoc distribution .ipa file will give an estimate of how big the install file from the App Store will be. Archive your app in Xcode, then make an ad hoc distribution. If you turn off app thinning while making this file you'll see the biggest your

Best way to evaluate connection speed

こ雲淡風輕ζ 提交于 2019-12-03 04:08:33
问题 I'm developing an app which needs to get music file by streaming for playing live. In the request song api I can specify the bandwith (eg: 50kbps, 100kbps, 300, 600 or 1 Mbps). The more the bandwith is big, the more the file will get time to be fetched. As I don't want the users to be restricted about that I have multiple choices to deal with it: Detect wether the phone is using 3g, wifi or Edge and specify an bandwith for each connection speed. Let the user decide the quality of the song he

UDP hole punching not going through on 3G

故事扮演 提交于 2019-12-03 02:53:59
问题 I'm trying to implement in a software a hole punching feature. The thing is, I'm implementing this with an already made TCP Server to communicate with Users. Here's what I have so far : "A" sends a message to an UDP Server "US" (on port 9333) "US" sends back to "A" the port it has connected to (port 31000 - localport 31005) "A" sends a message to a TCP Server "TS" saying he want's to connect to B (and give the port 31000) "TS" sends a message to "B" giving him the "A"'s port (31000) and ip "B

How can i turn off 3G/Data programmatically on Android?

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How can I turn off 3G/Data programmatically on Android? Not Wifi, but 3G/Data. 回答1: There is no official way to do this. However, it can be achieved unofficially with reflection. For Android 2.3 and above: private void setMobileDataEnabled ( Context context , boolean enabled ) { final ConnectivityManager conman = ( ConnectivityManager ) context . getSystemService ( Context . CONNECTIVITY_SERVICE ); final Class conmanClass = Class . forName ( conman . getClass (). getName ()); final Field iConnectivityManagerField = conmanClass .

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

how to calculate battery time,3g game play etc,iOS

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i want to calculate time for 3D gaming,3G Talk time,Video use,WiFi Internet,2G Talk time,Audio use and Standby depending on the current battery level. There are many app do this, but i didnt found any resource to calculate that in iOS. I calculated the battery level [myDevice setBatteryMonitoringEnabled:YES]; float batLeft = [myDevice batteryLevel]; int i=[myDevice batteryState]; int batinfo=(batLeft*100); now on the basis of batinfo,i need to calculate the time remaining for other parameters. Thanks 回答1: Apple provide some data in device