rsms / peertalk

iOS and Mac Cocoa library for communicating over USB
https://rsms.me/peertalk/
MIT License
3.42k stars 505 forks source link

send/receive with apple lightning - USB(OTG) to Arduino device #69

Open taherfattahi opened 1 year ago

taherfattahi commented 1 year ago

Can I send/receive data via a USB OTG cable between my ios device and Arduino with this platform? When I connect a memory device(Flash) via OTG to my iOS device I can access all files

curvednebula commented 9 months ago

@taherfattahi I also have this question. Have you found any solution yet?

taherfattahi commented 9 months ago

@curvednebula You can use MIDI controller https://developer.apple.com/documentation/coremidi/

Only you need to implement this feature for your project I mean you can send/recieve bi-directional data between your ios device and a hardware like Arduino via USB, Midi works like keayboard so simulate this device for you

curvednebula commented 9 months ago

@taherfattahi You mean this doesn't even require PeerTalk library at all? And what is running on Arduino side?

taherfattahi commented 9 months ago

@curvednebula Yes you can make your protocol via MIDI controller and you need to run MIDI receiver on the Arduino side https://www.instructables.com/Send-and-Receive-MIDI-with-Arduino/

taherfattahi commented 9 months ago

In my project, I only needed a send/receiver protocol to communicate between ARM microcontroller and Ios device via OTG cable