How to get CellTower-ID from GeoCoordinateWatcher - windows-phone-7

I have used this :
var watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.Default);
Where Hgh means GPS and Default is the result from any of these : GPS, WiFi
I like to know :
1) Is Default refering to CellTower ID or WIFI ? any different?
2) When I turn on my App running this Watcher inside the building ( not close to any entrance or window) , I can not get any result or no Signal at all from this watcher ?
If default refer to Wifi, it should be able to get the Cell_Tower ID .
If I am closer to the window or entrance of the building, I can get the result from Watcher.
Any1 can help me on this?
Thanks

The GeoPositionAccuracy does not directly refer to use of GPS or not.
The GeoPositionWatcher provides an abstraction layer to the way that the location is resolved internally. You will never know what was used to determine the location. Because the watcher does not indicate how the location was determined, it does not provide access to information based on a specific technology which may or may not have been used in identifying the device's location.
In theory, depending on the location of the device it may be possible to get a "High" accuracy reading based purely on public wifi data.
You cannot get the cell tower ID from any of the available APIs.

Related

Getting the max possible display rate of connected monitors

I am trying to get programmatically the maximum display rate that Windows allows (i.e, Display settings > Advanced display settings > Refresh rate > max value). Chances are, there's no such query and I instead need to obtain all the possible options. How do I do that ?
I've already obtained the monitor names and current refresh rates using the CCD API, by obtaining DISPLAYCONFIG_PATH_INFOs and by using DisplayConfigGetDeviceInfo. But I can't seem to find a way to obtain the refresh rate options associated to a monitor. A CCD API based solution would be perfect, but an alternative is fine - it just means I'll have to reconcile the information obtained via the CCD API with that obtained from that other API, somehow.
Also, I'm trying to do this in the context of a plain Windows executable, that doesn't use a specific graphics backend library (ex DX12) or game-making framework.
Thanks !
Using the CCD API, you can use DisplayConfigGetDeviceInfo to get the GDI device name using DISPLAYCONFIG_DEVICE_INFO_TYPE::DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME , usually something like \\.\DISPLAY1, \\.\DISPLAY2, etc.
Once you have that device name, you can use the EnumDisplaySettingsW function to enumerate all DEVMODE for this device, this will give you all possible combination of modes (resolution, frequency, etc.) that the device supports (that can easily return hundreds of modes).
Once you have that you just need to group them by DEVMODE's dmDisplayFrequency field (and sort it).

How to identify rooted device?

Using the Android Management API, I would like to identify if a device has been rooted.
I found the attribute "devicePosture" and the possible values for this attribute are listed in this documentation here.
However, for me, it was not clear what these items mean.
For example:
Does the type "POTENTIALLY_COMPROMISED" mean that the device is rooted or just had its bootloader unlocked?
Does the "AT_RISK" type mean that you have a virus version of android (or something similar)?
Thank you for your help.
You can check this link , Also to answer some of your questions with regards to device posture.
The value of the security posture determines the current device state and the policies applied. Or in other terms it reflects how secure the device is
1.) “POTENTIALLY_COMPROMISED” value means that either SafetyNet's ctsProfileMatch check or basicIntegrity check fail or this device may be compromised and corporate data may be accessible to unauthorized actors. It covers both bootloader unlocked and rooted scenarios[1].
2.) "AT_RISK” value means that both SafetyNet's ctsProfileMatch check and basicIntegrity check pass but fails to meet requirements set by the policy (e.g. device's password state, etc.).
To determine whether what fails you can check the PostureDetail, SecurityRisk Value
[1] To understand what SafetyNet's ctsProfileMatch and basicIntegrity fields mean, you can check this link, which also explains what scenarios correspond to the combination of the value of the two checks.

Obtain GPS Coordinates from A3 Flight Controller using SDK

I am having a hard time finding any documentation on what I am trying to accomplish.
Basically, all I need to do is set up the A3 flight controller to output the GPS coordinates every defined interval through the local SBus port. When connected in Assistant 2, it looks like you can map the A3 output to a number of different functions, including SDK 1-8 which can be defined through code using the onboard SDK.
Here's where I am a bit confused, however. In the same software, if you click on the SDK tab, you can get to a window where you can define what is output, baud rates, etc..:
So my question is, when you define all the output frequencies and settings in the SDK tab, does this information automatically get output to all of the F5-F8 ports that are set to SDK? Basically, I am simply trying to obtain the coordinates so if there is a way to do it without writing code, this would be ideal.
Thank you in advance.
Based on some trial and error, I was able to determine that the parameters defined in the Data and Transmission Rates page are sent through the API port on the A3. After defining the desired frequency, I am able to get the position directly from this port without having to write any code. Hopefully this helps someone else that has the same question.

How to get exact feature vector from adafruit fingerprint sensor using arduino

I am trying to get the exact feature vector to save each fingerprint values in to the database. By according to the Adafruit library it display only the fingerprint template .But template is different for the same finger and I cannot identify the exact finger by matching from my client software.
Any help for this ? Any algorithm to convert this fingerprint template into feature vector or match each other.
Any method to get the character file (feature vector) from the fingerprint sensor ?
The algorithm for matching templates is unknown; the manufacturers did not release it probably because it's IP. You can't compare byte-by-byte because as you've discovered the generated template isn't always the same for the same finger. If you notice, there's a confidence value as well as different security levels implying there are different criteria for matching prints depending on the system parameters. The best you can probably do is store the templates on your database but use it as a second factor to authenticate users. What I mean is,
you can have a user enter some unique ID at a terminal and place their finger as well,
your Arduino queries your server with that ID as a key,
the server replies with the fingerprint template associated with that ID,
the Arduino forwards this template to the module and sends a command to perform a 1:1 match between the template just gotten from your database and the template just generated from the user's finger.
If they match, then you know you have the right user. Else, he's an impostor.
Or you can just make do with the local storage on the module and use your server only for assigning IDs during enrollment. If you still want to go ahead to get the character file from the module, you can try the UpChar command in the module's datasheet and see if you have any luck with it.
You can get the fingerprint templates using this library https://github.com/hmxmghl/Modified_AdafruitFingerprintSensor_Library

Not your typical Mapping App

I'm in the concept development stage of an iOS app that is essentially a game. One of the things I want to do is to get information about the current location. I've not used the map kit so far, and after a quick read through various documentation, it looks like it is designed mainly as a display kit. What I'd like to do in addition to displaying a map is to query data that might be at the location. For example, if I provide latitude and longitude, I want to know whether that location represents land or water. If it's on land, how close is it to the nearest street? If it's not near a street, what other information might there be about the spot?
I realize there are vast amounts of data available that are geocoded, but is there any information that can be queried directly from the map kit? I would have thought things like elevation would be easily available, but I haven't seen anything like that yet. Am I just looking in the wrong place?
As far as I am aware there is no data that you can query directly from MapKit - i.e. you cannot ask MapKit if a location is on land or water.
You could use reverse geo-coding with the current longitude/latitude to find out details about the location, for example nearest street/town, or which country the location is in.
Check out the built in Apple Geocoding framework, or the Google Geocoding API
Hope this helps.

Resources