Signal strength measurements of Mobile Networks in iOS and/or Android? - iphone

Can you get signal strength measurements of Mobile Networks in iOS and/or Android?
On developer.apple.com I have found CoreWLANWirelessManager sample code for OSX, that shows how to get measurements for WiFi networks.

For Android, what about PhoneStateListener?

Related

Why can I not scan for and find my Bluetooth LE heart rate monitor?

I've tried multiple programming Xcode projects (such as this code: iPhone - Polar H7_heart_rate_sensor connectivity using bluetooth) to try to scan for my Polar H7 heart rate monitor (HRM) from my bluetooth iPhone 5s with no luck. I call the scanForPerhiperalsWithServices to specifically search for my heart rate monitor but it doesn't appear to find it since it never subsequently calls the didDiscoverPeripheral method.
How can my BTLE HRM pair with my iPhone and connect to commercial apps (such as Polar Beat and Strava) but not be detected using standard Bluetooth LE API's?
I am new to iOS and Bluetooth and I'm using Yosemite with Xcode 6.3.1 and my iPhone 5s using iOS 8.3.

How to get surrounding networks with strength in iOS?

Is there any frameworks for find out the surrounding networks and network strength. Please tell me if it is possible or not in ios 4/5/6. Either is there any sample code for this.
For example i am using in iPhone Airtel network. Based on Airtel network i need to find what are other networks in that particular area and what is the signal strength of that network.
Thanks in advance.
As far as i know this cant be done using public API's. You need to use private API's check thi s out MobileApple80211 framework.
Yes it is possible. In fact there is an awesome 3rd Party library for this called iPhone-Wireless
This provides you -
view the wireless networks in your area.
signal strength of each network.
For iOS 5 you'll need a jailbroken iPhone. Guvener Gokce has a very educational blog post on this: iPhone Wireless Scanner iOS5
Hope this helps but keep in mind that this library uses private API's and your app might get rejected from app store.
UPDATE: Check this out too - Accessing iPhone WiFi Information via SDK

Make a simple iphone app that can connect another bluetooth device

I know some basic about iOS programming, now i want to connect my app to another non iphone device e.g. connecting to a bluetooth device that can control a light bulb on and off, or control any furnitures.
My question is, besides iOS xcode, what kind of program i need to learn in order to achieve my goal?
Is there any sources that i can learn from it?
For Bluetooth Low Energy devices, you can use the CoreBluetooth framework to access them.
For Classic Bluetooth devices or accessories that make use of the Dock connector, the protocols are not open, and joining the Made for iPhone (MFi) program is required. I do not suggest this for beginning.
My suggestion is to buy for example a Polar Heart Rate Belt that supports Bluetooth Low Energy. These use standard protocols. Sample code is available from Apple that shows how to read out the heart rate from such a device.
As soon as you have mastered the heart rate monitor example, a next step would be to acquire a programmable Bluetooth Low Energy chip (however, often, the development tools for those are rather expensive!). Those chips can be programmed with custom profiles to listen for Bluetooth Low Energy connections and then performing defined operations (lighting a LED) when writes to characteristics occur. So, you are not limited to heart rate monitors and similar devices.
Keywords that you can search for: GATT protocol, Bluetooth Low Energy, CoreBluetooth.
I know that it's a steep learning curve for beginners, but the area is pretty new. However, I can assure you that it's a fun area.
I also think that you should look in to embedded C programming for the slave device (Heart Rate Monitor)
You could get a tod Smart Beacon Development kit for ~$150 and then use BGScript to code the firmware to control the BLE device from your phone or pc. todhq.com for more info.

Bluetooth data acquisition in background in iPhone 4G S

I want to develop an application for the iPhone 4GS that supports Bluetooth 4.
The application would continually listen to the data transmitted by a heart rate monitor over Bluetooth, and show information on a screen.
To achieve this, the application would have to listen to the data even when it's not the active foreground application.
Like Android, is it possible to silently listen to Bluetooth events on an iPhone as a background service?
I can't determine exactly what you're asking, but here are two tutorials for incorporating Bluetooth in iOS apps:
iPhone Bluetooth Programming
iOS Bluetooth Programming - Getting devices to see each other
Also, here is Apple's list of Supported Bluetooth profiles.
You won't find serial port profile (SPP) in iOS devices if you're looking for that.
So question about using it in the background would seem irrelevant.
You could use 'old style' FSK modem over BT audio an then decode the signal in
code. On the other hand you should consider going WiFi. Microchips MRF24WB0MA/RM for
example supports adhoc/infrastructure netwroks and it also has Bonjour support.

Transferring data from a sensor to the iPhone

I have an external device (some kind of sensor) that can do a measurement. This sensor can be connected to a PC via Bluetooth or USB cable, and it also comes with it's own software.
I want to develop an App for iPhone that will analyze the data that this sensor is measuring (for example creating a graph, calculating some equations etc.).
How can I make my iPhone to "recognize" this sensor, so the app will get the data that has been measured from the sensor?
Is there any manual which explains how to code this? Our preferred way of transferring the data is via Bluetooth, so there will be no need of using cables.
Thanks a lot!
You can't use Bluetooth to transfer data unless the device is custom designed in compliance with Apple's MFi program. Only those specially manufactured devices can be recognized by an iOS app.
You can use wifi for high bandwidth data, and perhaps audio for encoding low bandwidth data.
Not sure what kind of sensor you have but PASCO scientific has a Made For iPhone Bluetooth device called AirLink2 that works with their sensors. I don't think that could easily co-opt the device for your purposes ... but it might be possible. I mention this because there's an off chance that this would useful information. I am not trying to peddle hardware here ;-)