cellular-network

How to connect to local network first instead of internet in C# Xamarin Android app?

﹥>﹥吖頭↗ 提交于 2019-12-20 04:34:39
问题 I have a Xamarin Android app. It connects to a “No Internet based Wifi router” for some IOT devices. But it also needs to use mobile’s cellular data for storing some information on Dropbox. Now this is working as follows: I can turn on/off Wifi connection programmatically. I cannot turn on/off Cellular data (since Android L). Its not allowed on non rooted devices. When my phone is connected to this local Wifi router and Cellular Data is also ON, the way Android works in default, it uses the

eCGI and CGI for LTE and GSM networks

…衆ロ難τιáo~ 提交于 2019-12-19 03:24:33
问题 I'm trying to determine the CGI (the Cell Global Identifier) the UE is connected to. From the 3GPP specs, it's defined as follows: 3G: CGI = PLMN-ID + LA code + CID 4G: ECGI = PLMN-ID + ECI I can already get the LAC (location area code) and CID (Cell ID) from the system. And I can generate the PLMN-ID from the MCC (Mobile Country Code) and MNC (Mobile Network Code). My question is can I also get the CGI from the system? 回答1: The CGI (2G and 3G) and eCGI (ofr 4G) is always a 15 decimal digit

getPsc() using GsmCellLocation always returns -1

早过忘川 提交于 2019-12-13 13:25:36
问题 I'm successfully getting GsmCellLocation and related cid and lac information but the PSC (primary scrambling code) of the serving cell is always coming back with the initialized value -1. Anyone able to get the real PSC value of the serving cell? telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); GsmCellLocation cellLocation = (GsmCellLocation) telephonyManager.getCellLocation(); psc = cellLocation.getPsc(); Log.d(TAG, "PSC = " + psc); I have all the permissions

Simulate cellular network's behaviour on Eclipse emulator

空扰寡人 提交于 2019-12-12 20:53:36
问题 Is there any way to simulate the behaviour of a cellular mobile network (GSM/UMTS) in the Eclipse Android emulator? More specifically: I want to develop an app to show information about the network, such as coverage level, parameters of neighbouring cells etc, as provided by the TelephonyManager and other related classes. I would like to do as much debugging as possible with the emulator, before testing in an actual phone. For that I would need the emulated phone to "see" a functioning

Hexagonal grid representing a cellular network as used in mobile communication systems

谁说胖子不能爱 提交于 2019-12-12 09:56:40
问题 I am relatively new to Matlab and I want to generate a hexagonal grid that represents a cellular network where each hexagon has a specific behaviour. My question is how does one go from a square grid to hex grid (transfer matrix)?. This is what I have so far. [X,Y] = meshgrid(0:60); figure(1), plot(X,Y,'b') hold on, plot(Y,X,'b') axis square 回答1: A few years ago I wrote some code to do just that: %// Define input data: close all clear all M_max = 14; %// number of cells in vertical direction

Receive xml file is corrupted (on sprint network)?

我的梦境 提交于 2019-12-11 07:51:08
问题 I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. AT&T, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile

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

How to use cellular data when connected Wi-Fi network?

你说的曾经没有我的故事 提交于 2019-12-11 01:24:50
问题 I'm looking forward to use cellular data when connected Wi-Fi. Yi dash camera works like this. Yi camera make Soft AP. iOS or Android phone connect the Wi-Fi. Between YI and Phone, internal network is made, generally, phone cannot use the internet. but, in Yi network, phone can use internet, sns, streaming, and etc. How can i do it? Thanks in advance. 回答1: One solution (not practical from an app user perspective) is to manually go to the iPhone Settings , Wi-Fi section and select the desired

How to test EDGE or GPRS or any other slow/bad network

◇◆丶佛笑我妖孽 提交于 2019-12-10 10:43:04
问题 In my iOS app, I support to work online as well as offline. For this I have used Apple's Reachability code. Now I want to show user is offline if the cellular mobile network is EDGE or GPRS or bad/slow network. I have used the below code( Found solution ). Code: CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; NSLog(@"Current Radio Access Technology: %@", telephonyInfo.currentRadioAccessTechnology); [NSNotificationCenter.defaultCenter addObserverForName

CTTelephonyNetworkInfo's currentRadioAccessTechnology Ambiguous response

…衆ロ難τιáo~ 提交于 2019-12-10 10:25:36
问题 I have a scenario in one of my applications that I should allow the user to sync some data to server only if the connection is at least 4G or LTE. Below is the source code I use and it works fine until the scenario explained below occurs/happens. if ([currentCellularAccessTechnology isEqualToString:CTRadioAccessTechnologyGPRS]) { self.currentCellularDataConnectionType = kGPRS; self.cellularConnectionFast = NO; } else if ([currentCellularAccessTechnology isEqualToString