Custom USB Device - usb

I'm currently in need for some information or tutorials on creating a USB Device.
The device will, when plugged in, trigger my application, which will be running as a service.
The device will need to have a unique ID that the app can differentiate each device.
Any help or pointers would be greatly appreciated :D

Related

Send real-time video via wifiSend

I would like to make a personal application to be installed on two iPhones. The first to be used as a webcam that transmits to the second via wifi.
Having no experience with xCode, I am looking for a code example to connect 2 devices via wifi and transmit a real-time video stream.
Unfortunately, the documentation and examples I found are deprecated or partial and inconsistent.
Where can I find some code examples to help me solve my problem, preferably in ObjectiveC (but also in Swift)?
Thank you

How to change Default Recording device using LabVIEW?

We have a LabVIEW application that is based on sound acquisition.
I connected a Custom USB Audio device (Microphone). It is set to be the default Recording device.
But while running the application, if there is another mic source connected, then sound is being recorded/acquired by the other mic and not the default one.
So in order to have the custom microphone do the acquisition, I tried to change the default Audio Recording device through LabVIEW. But all I can do is list the audio devices connected by running a PowerShell command through System Exec function.
Is there any possible way to change the default recording device using LabVIEW? Please do mention if any.
Back in the day, I had a similar requirement, I did the following!
Get All microphones connected on the PC.
Once I get all the Device IDs, I performed a search using "Device Name" to get the Device ID I needed!
Note: If the above VI returns only one microphone, then make sure you've installed DirectX on the PC.
I hope this helps :)
Hello am very late for this information, but I can provide you with a few things you need to do.
Tap setting
Choose my device
Difficult device
Select and activate
Or
Visit Cpanel select program and tap on device activety, now choose difficult setting.
To change difficult device follow each of the steps above:
1.Setting
2.Device
3. Select difficult program
May any changes you want then done.

Detect new video and audio inputs

I want to create application where I can record video with audio and save it to disk.
When application start I detect all video and audio sources and show this list on the UI.
But when I disconnect one of webcams (or unplug mic), this device still remain in list.
How I can get notifications of device connect/disconnect, both for video devices(USB) and audio devices(jack 3.5).
Thank you.
WBR
Maxim
You might find some useful tips in this other question, here IOKit device adding/removal notifications - only fire once?
I also have an example of an app that uses the IOKit framework to detect adding and removing USB devices on my github account here: https://github.com/tjarratt/Panic-Button
Baring that, the apple developer site has a lot of documentation on using USB devices:
https://developer.apple.com/library/mac/documentation/devicedrivers/conceptual/USBBook/USBDeviceInterfaces/USBDevInterfaces.html

CoreBluetooth - get all devices connected to Bluetooth peripheral

Is there a way how to get list of all devices connected to the Bluetooth peripheral?
I want to connect to iBeacon and check if another iPhone is connected to it.
No, two reasons why not:
iBeacons are not connected to the iOS device, iBeacons are broadcast only and no back communication exist from the phone to the beacon.
Knowing details of other BT 4.0 Centrals connected to a Peripheral are not in line with the the privacy features of Bluetooth 4.0. iOS and other Centrals are are using resolvable private addresses, in order to avoid situation like you are describing.
#barbazoo is correct that you cannot do exactly what you are asking because iBeacons only transmit data -- they have no idea what devices see them.
You can accomplish something similar, however, if you have an app running on each of the iOS devices you mention, and you have a server where you can build a web service. The web service would expose two methods:
reportIBeaconVisible(iBeaconProximityUUID, iBeaconMajor, iBeaconMinor, myPhoneAdvertisingId)
queryVisiblePhones(iBeaconProximityUUID, iBeaconMajor, iBeaconMinor)
The app would report each iBeacon it sees using the first method, passing the iBeacon's identifiers, along with the phone's advertising identifier to the server.
The app could then use the second method to ask the server what other phones have seen the exact same iBeacon, which would return a list of phone advertising identifiers.
You'd have to have logic on the phone to only report data to the server at a reasonable frequency. You'd also need code on the server to automatically delete phone records in the list if the phones haven't reported seeing a beacon in a certain time interval.

Objective-C Async communication between IOS devices

Is there a way to perform async communication between iPhones/IOS devices? I have been researching and thought maybe APN might fill that void, but it sounds like I can't initiate an APN push from an IOS dvice to another, and even if I could I can't trigger the "event" on the other device with just an APN push from what I can identify.
Does anyone have any examples or general advice for IOS device interaction for devices that are not in GameKit (i.e. wifi/bluetooth) range that does not require an intermediate service (urban airship, dedicated server, etc) or will I need to have a 3rd party in order to trigger and/or sync these interactions between devices?
Sorry I don't have any code or details as this is still in the planning phases for me. Any pointers would be greatly appreciated.
The answer is : use a server side app and have all your devices talk to that server.
If you dont want or cannot host an app, you can use a cloud solution based on websocket like Pusher. You can then subscribe to events and post messages with data.
They have an iOS client library
http://pusher.com/docs/client_libraries
P.S: Also have a look at Parse and Stackmob , i remember that had this kind of feature was in their roadmap, but i don't know if it's available yet..
Hope this helps,
Vincent