INF file for HID device - setting name and icon - hid

I'm looking to create an inf file for a HID device (which has a custom VID/PID). I just want to replace the strings "HID-compliant device" and "USB Input Device" for our device with our strings.
I know this will need signing by Microsoft, but is there a good example of how to do this?

Example of custom HID INF file on MSDN may help you

Related

AudioKit on macOS: get/set system device volume

I've used AudioKit.inputDevice, Audiotkit.outputDevice, and friends to get get all input and output devices on my Mac, and to get/set default input and output device.
I wish to read the current volume of these devices, and to be able to set it myself, but I can't find the correct AudioKit API for doing so.
Does anyone know how to do this?
You will want to use a library similar to https://github.com/InerziaSoft/ISSoundAdditions
Changing sound volume becomes as simple as:
[NSSound setSystemVolume:0.5]
--
Duplicate of: Change Volume on Mac programmatically

External Device reports no Protocol

I have an app that I have been working on and I am now at the point that I want to integrate some interaction with an external device via the dock connector. The device that I am using (the iDive 300) conforms to the Made For iPod program. I have written a separate simple app based on the EADemo code to gather information about the device. However, when I run this app the iDive reports nothing for the Name, Serial Number, Firmware, etc and also says that no protocols were found. I know this simple app is working correctly because I have connected to several other external devices and the Name, serial number, etc is populated for each device.
The other odd thing is that the iDive seems to work properly when plugged into my iPhone 4 (i.e. it will increase the volume and play songs and videos found on my iPhone via the buttons on the device). Shouldn't this mean that some protocol is in place for this device to communicate with the iPhone? Is it all possible for me to read data from this device (e.g. capture when the 'play','menu', or other buttons are pressed) if I don't know the protocol?
I am completely new to the External Accessories framework and any help is appreciated!
You should autopsy the app that is associated with iDive. In its info.plist, there should be a key:
UISupportedExternalAccessoryProtocols
whose value is an array(See this for the formal definition), and within it lies a string whose value looks like a reversed domain name, as the device protocol.
You should edit your Info.plist, add the key('Supported external accessory protocols' in plain English) for an array, put in the protocol as its item.
There's no guarantee that an accessory actually uses EA. It may communicate using the protocols defined by Apple.
EA is only necessary if you want to communicate using your own proprietary protocol.
Check the EADemo example from Apple... If it doesn't show up in the demo app, it's not EA.

How to get idevice info by udid?

I seen a website month ago that shows the general info of an iDevice, of them, it's type/ios version..etc
but i currently cant find it anymore, does anyone know what else can do the same process ?
You can define the device type on your developer's account page in "Certificates, Identifiers & Profiles" section. Unfortunately it contains only a small thumbnail of the device and also may include model's serial number (but not always)
To get device information, such as the UDID, you can use this:
[[UIDevice currentDevice] uniqueIdentifier];
If you want other information, such as orientation, system version, system name, etc, then just change uniqueIdentifier to the value you want. If you hold down option + esc or look at the link lawicko posted, then you can see some of your extra options.
Are you talking about the UDID or the Serial number?
The UDID is basically a SH1 hash of the serial number, ECID, wifiMAC, and the bluetoothMAC.
There is no public database of UDID's, so I doubt what you are refering to has to do with UDIDs.
If it involves the device's serial number, you can make reference to the site below:
https://selfsolve.apple.com/agreementWarrantyDynamic.do

How to set wifi option in the iPhone UIRequiredDeviceCapabilities plist?

My app uses an internet connection. I think I need to set the UIRequiredDeviceCapabilities in the plist with some sort of wifi/cellular property.
Does anyone know the correct keys I need to add?
Thanks in advance.
Sounds like you might be after the "UIRequiresPersistentWiFi" key.
See the Information Property List Key Reference document for the full list of keys.
Reference this tech document
http://developer.apple.com/library/ios/#qa/qa2010/qa1397.html
This should be done in code. Look at the Reachability.h libraries. As far as I know all the iOS devices have WiFi so this would be a pointless key.
All current (and past) shipping iOS devices have internet capability. So no such key exists.
Whether the user has turned one or more of them on is something an installed app has to determine at run-time.

Valid UDIDs?

Duplicate: Validate iPhone device Ids?
Does anyone know what constitutes a valid iPhone UDID?
Context: I am working on some session code for a server that interacts with iPhones, and was going to use the iPhone's UDID as a unique identifier. However, I can't seem to find any resources on the range of valid UDIDs, and I want to know exactly what I can expect coming from an iPhone.
Clarification: I'm not asking about how to validate an iPhone UDID as a legitimate iPhone UDID, I'm trying to figure out the range of UDIDs. For example, in programming languages there are specs on what you can use to name your variables (starts with a letter, contains letters and numbers, etc.). I want the same sort of spec for the UDID.
It is a 40 character hex string. There is no spec or doc out there that specifies the layout to this string.
I'm not really sure how you can determine what is 'valid' since only Apple knows which UDID are real and which are false.
My best guess, given the various UDIDs that I've seen, they are 40 characters in length, consisting of alphanumeric characters. (a-f0-9)
Actually, the iphone simulator udid has dashes and is 36 hex characters long.
For example:
002ebf12-a125-5ddf-a739-67c3c5d20177
Though I have only seen actual iphone udid's with hex only chars and 40 long.
No, there is no way to do so. This question asks the same thing: Validate iPhone device Ids?
UPDATE:
From what I've seen, the device ID is a 40 character hex string (0-9 and a-f). Apple's documentation for the deviceIdentifier property of UIDevice states:
A unique device identifier is a hash
value composed from various hardware
identifiers such as the device’s
serial number. It is guaranteed to be
unique for every device but cannot
publically be tied to a user account.
You can use it, for example, to store
high scores for a game in a central
server or to control access to
registered products. The unique device
identifier is sometimes referred to by
its abbreviation UDID.
Most are 40 character HEX strings; we have 1 in our company that is 41 characters and is authorized in the dev center for Beta apps. Only way to add it was via safari however so worth noting if anyone gets the same.
try following regex ^([A-F0-9]{40})$
or you could go here and just paste it.
Hope this saves you some time.