armadsen / ORSSerialPort

Serial port library for Objective-C and Swift macOS apps
MIT License
753 stars 183 forks source link

On Sierra ORSSerialPortManager.shared().availablePorts shows bluetooth port #114

Closed moog-man closed 7 years ago

moog-man commented 8 years ago

I've tried to use ORSSerialPortManager.shared().availablePorts, but the array has only one element which contains "Bluetooth-Incoming-Port" even though I have connected a game controller to one of the USB ports. The game controller shows up ok, when I run a system diagnose (About this Mac)

Controller:

Produkt-ID: 0x028e Hersteller-ID: 0x045e (Microsoft Corporation) Version: 1.10 Geschwindigkeit: Bis zu 12 MBit/s Hersteller: SHANWAN Standort-ID: 0x14100000 / 9 Verfügbare Stromstärke (mA): 500 Zusätzlicher Betriebsstrom (mA): 0

When I run your demo code ORSSerialPortDemo (Objective C) it also only shows the bluetooth device.

armadsen commented 8 years ago

Are you sure the game controller is supposed to present itself as a serial port? What you've posted from System Profiler is information about it as a USB device. All connected USB devices show up in System Profiler, but that doesn't mean they're serial (e.g. RS-232) devices.

Am I correct in assuming that you're using an Xbox controller? If so, I think you have to talk to it directly over USB using IOKit or potentially something like libusb. I did find this project which might be helpful. I have no experience in this area, myself.

moog-man commented 8 years ago

Hi,

thanks for the reply. I have to admit, that I am also new to the subject of USB on Mac. It seems the controller I have is not working on Mac at all because neither the game, nor some joystick utilities recognize it. I've ordered a Logitech controller which is supposed to work on Mac.

Will keep you posted!

Mat

Matthias Schorer Stiftsbogen 31 81375 München t: +49 89 5796 7923 m: +49 170 542 4819 e: mschorer@me.com

sent from my iPhone 5

On 29 Oct 2016, at 17:06, Andrew Madsen notifications@github.com wrote:

Are you sure the game controller is supposed to present itself as a serial port? What you've posted from System Profiler is information about it as a USB device. All connected USB devices show up in System Profiler, but that doesn't mean they're serial (e.g. RS-232) devices.

Am I correct in assuming that you're using an Xbox controller? If so, I think you have to talk to it directly over USB using IOKit or potentially something like libusb. I did find this project which might be helpful. I have no experience in this area, myself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

armadsen commented 7 years ago

Closing due to inactivity.