Access to (HID) USB device in OS X - usb

I have a "Serial to USB" device with two endpoints that streams data that I want to access.
Tried several IOKit methods found on Google including "code less" .kext but no luck.
Is there a simple way to do this ?

You could try using the HID API for OSX.

Related

Using bluetooth for authentication

I would like to use bluetooth for authenticating a user (bluetooth device).
My first idea was to use iBeacon which would be weared by a user. If that user would approach authenticating device (central), that device would use MAC/UUID/Major/Minor of iBeacon to identify the user. Unfortunately it is possible to clone iBeacon and so more advanced approach is required.
Does BLE has some mechanism for that? One option would be that central device would connect to peripherial one and use some PKI to authenticate it.
Or maybe there is something for this purpose already in BLE protocol.
Is these some well known solution for this?
The FIDO2 standard includes a variant where a Bluetooth device acts as a secure key. Google's Titan Security Key is such an implementation (or rather of the older U2F specification).
The Bluetooth specific part is found in the CTAP2 specification. But it is quite some work to implement it and there is no reference code for Bluetooth.
The overall protocol with a private and a public key and a challenge/attestation procedure will still apply for a simpler implementation.
BTW: FIDO2 is not very wide spread yet but many companies are working hard to implement it. I think it will prevail - but mostly without external security keys such as USB dongles and Bluetooth device. It will be successful with fingerprint readers and face recognition technologies built into all future devices, be it smart phones or laptops.

How do I get a list of devices connected to same wifi network in objective-C?

I want to make a file sharing app and for that I need to find nearby devices which are on the same wifi network whether it's android devices or iOS devices.
What is the best way to find nearby devices?
one of simple ways would be to implement Bonjour - https://en.wikipedia.org/wiki/Bonjour_(software).
There is a lot of projects about that https://github.com/search?q=Bonjour

Camera Remote API beta SDK: How to synchronize multiple DSC QX 100 cameras

Can we control multiple DSC-QX100 cameras using the Camera Remote API SDK from an iPad OS7?
The objective is to cause multiple cameras to "snap" picture at the exact same time. Perhaps each camera has an address (serial number)...can the software communicate with all cameras at the same time using multiple addresses? Need is limited to still photos and so-called fast, rapid photography. Video not necessary.
If so, how?
Unfortunately you can only control one QX100 lens at a time. This is because the lens connects over WiFi and you are limited to only a single WiFi connection at once on an iPad. It may be possible using a desktop PC with multiple wireless cards installed but that would be the only way.
As the Sony rep said, there's no way to do this with "officially supported" techniques.
The reason for this is that the camera acts as a WiFi Access Point (AP) - so while multiple devices can connect to it, most mobile devices can only connect to it and not anything else (since iOS and Android don't support connection to multiple APs simultaneously). This is also why you can't use other network interfaces when connected to the camera. (I don't know about iOS, but Android always prioritizes WiFi over cell network data, for example.)
Android devices have a feature called "WiFi Direct" that provides more flexibility in terms of peer-to-peer interconnection, but iOS does not support WFD. The QX100 DOES respond to WFD invites, and you can accept a pairing request with (if I remember correctly) a long-press of the shutter button. However, the official app only supports normal WiFi AP connections.
I have not yet attempted to see if using Sony's remote API in combination with the (unsupported but apparently present) WiFi Direct capability works.
More info on Wifi Direct and Android can be found at http://developer.android.com/guide/topics/connectivity/wifip2p.html
Marlin SONY, I disagree, wifi is Ethernet and by definition can handle multiple devices on the same network. If you run a phone or iPad as a hotspot and connect multiple devices, it works.
Multicam Switcher Basic is an example of a free app that supports cutting together multiple camera angles live. Unfortunately the app is still being developed so features like third party camera support isn't included, but it does show what is possible and awaits development.
I think this should be possible. Apps like CollabraCamâ„¢ (Multicam Social Video Production) or RecoLive MultiCam prove that is possible to use mulitple cams simultaneous.
I need someone too to develop an App to be able to use "two" sony dsc-qx for 3D shoots. Please, if You know how or who can do this contact me email#3-d.re

How to get device Bluetooth address on OS X?

I've looked over the IOBluetooth framework what feels like a dozen times, but I can't for the life of me find a way to retrieve the Bluetooth device address for the current device. I've written an application that scans for devices in range utilizing IOBluetoothDeviceInquiry, but this doesn't seem to offer up the address of the device doing the scanning.
How might this be accomplished programatically? (Without opening up System Profiler)
[[IOBluetoothHostController defaultController] addressAsString]
or getAddress: if you want a BluetoothDeviceAddress.

Is there a way in Xul to get notifications of new USB devices plugged?

Is there a way in Xul to get notifications of new USB devices plugged?
As Neil said I don't think there is a way through the XULRunner API to get this notification.
However this should be possible using a C++ XPCOM component which would use the OS API to access to the USB information. Here is a good tutorial for creating your own component.
You can also try have a look at Songbird source code in the "components" section, I can imagine they are accessing USB devices.