Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on iOS (iphone) #58

Open
samlochner opened this issue Oct 17, 2019 · 5 comments
Open

Not working on iOS (iphone) #58

samlochner opened this issue Oct 17, 2019 · 5 comments
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project

Comments

@samlochner
Copy link

I've got it working on a windows PC, but doesn't seem to work on iOS for me (iphone via usb to lightning adapter).

Would you expect this to work on iOS?

@facchinm
Copy link
Contributor

@samlochner I'm not sure you can use any USB device on iOS if it doesn't contain an MFI chip from Apple.
If it does (with some magic) you may just need to modify the core to reduce the current we ask to the host device.
Depending on the board you are using, the value should be in a place like this (https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/USBCore.h#L101).
Try changing 500 into 100 and please report the result here 😉

@facchinm facchinm added the status: waiting for information More information must be provided before work can proceed label Oct 28, 2019
@nevvkid
Copy link

nevvkid commented Oct 28, 2019

@samlochner you need a "Camera Connection Kit" for iOS devices. And your board package needs to set the power to 20mA... otherwise, it will never work. I am doing that for my product. Our pull request allows setting the power this is in the core for a long time. Here is the commit which I asked Andreas to do: arduino/ArduinoCore-avr@6ad770e#diff-6b60095446038cceeb7e4f1b556ea2b6

Here is my board package as an example: https://github.com/dadamachines/automat/blob/master/software/arduino/hardware/dadmachines-automat/samd/boards.txt#L44

@samlochner
Copy link
Author

I found that if I connect the arduino usb port to a usb hub and then from the hub to the camera adapter, I don't get a power error on the iphone. But it still doesn't seem to work in garageband. Would I really get a different result if I instead changed the power instead?

I'm quite new to all this, what would I do with that pull request/commit, @nevvkid? Is that some kind of firmware that has to be flashed over? I'm using Leonardo and later a Due, btw.

@nevvkid
Copy link

nevvkid commented Oct 28, 2019

@samlochner Garageband doesn't work for MIDI for me at all. But not also with other products. Garageband doesn't even have MIDI anymore as far as I know. So just use Ableton to test stuff. And the USB Hub won't help either. You have to implement the setup properly and it will work. For Leonardo, there was this project with iPhone/iPad support: https://github.com/rkistner/arcore But the code is quite old now I think. Better move to a SAMD21 or SAMD51 board.

@samlochner
Copy link
Author

iOS garageband works for me only when I'm using a 5 pin midi connector via a midi to usb cable (usb side plugs into camera adapter then to iphone).

But, @nevvkid, you have been able to get midi to work over usb without 5pin connection in other iOS apps such as? And you do this by using the change? arduino/ArduinoCore-avr@6ad770e#diff-6b60095446038cceeb7e4f1b556ea2b6

Is that firmware that has to be flashed or something? How would I go about that?

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants