-
Notifications
You must be signed in to change notification settings - Fork 10
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
No apps discovered to connect #19
Comments
I don't see anything immediately obvious from the code. You say that it seems to be working other than the settings dialog? Do you mean that Link is working - tempo changes are propagated between apps, etc. but that the dialog always indicates 0 connections? Or is it not working at all? Does it connect to the LinkHut example app when run on the same device? Does LinkHut indicate that it is connected? Link does not use Bonjour so that shouldn't be the issue. It does require UDP communication over port 20808, so if this is blocked by your router or a firewall that could be an issue. But the best way to determine if it's an actual network issue vs. something else is whether it works between two apps on the same device. |
In my case, the Link framework is running and I can access the Link settings dialog. Everything “appears” correctly, but it never links with any other apps. If I run the LinkHut example as a separate app, everything works properly and the apps are linked. As far as I can tell, link is not working although I am certain that tempo changes are being sent to the LinkKit framework but not being propagated to the network. I am able to get Link running with multiple apps on the same device and over the network, so it appears that something in my app is preventing Link from functioning but I’m not sure what would be conflicting.
|
I'm still a little unsure about the failure mode here, could you answer a few more questions please? When you launch your app and LinkHut on the same device, does the Link settings dialog in LinkHut indicate 0 or 1 connected apps? Does the Link settings dialog in your app match what LinkHut shows? Your app is just logging incoming tempo changes without handling them, so it's expected that it would not follow the tempo of LinkHut when connected. But it seems like you're expecting that when your app changes tempo, LinkHut should follow. If either or both of the apps are showing "0 connected apps" then that is the problem and we should figure that out before worrying about tempo. If, on the other hand, they are both showing "1 connected app" and you are verifying that |
The issue is that I can run a sample app like Loopy HD and LinkHut or another Link-enabled app like “Link To MIDI” and the Link settings dialog will show “1 Connected App”. However, if I enabled Ableton Link inside of our app, and run a Link-enabled apps (like Loopy HD or Link To MIDI”), OnSong will never show as connecting to those apps although they will connect to each other. I’ve tried disabling a lot of network-related connections in the app but it still will fail to find other apps. I’m sure once it can be connected that I would be able to propose a tempo change, but the problem is that it’s never “linking” to other apps.
|
Brent: Is there some kind of networking dependency that Link relies on? My app has a number of components that relying on network services like AsyncSocket, GCDWebServer, LIFX lighting, etc… I feel like something is conflicting with Ableton Link, perhaps a duplicate dependency, that is causing the link to fail. I have tried launching both the LinkHut app and our app on the same device and both apps show “0 Connected Apps”. They never find each other, but other Link-enabled apps do connect as they should.
|
Link uses the boost::asio library for networking, so that's a dependency. It uses UDP multicast over port 20808, so any library that may interfere with communication on this port with this protocol would cause problems for Link. |
I’m running the LinkHut sample app in the iPhone simulator, but can’t see any apps to connect either. I’m running Live on the same machine.
Peter
|
@peteblues Yes and Yes. Those things should both work. When you run LinkHut in the simulator, do you get a dialog about allowing incoming network connections? |
It’s working fine now. Peter Quoting Brent Shields notifications@github.com:
|
Change EngineData outputLatency from UInt32 to UInt64
I've been trying to add Ableton Link to my app. Everything seems to work correctly and I'm calling the necessary methods at the right time. However, when I open the Ableton Link menu to connect to apps, none are ever displayed.
This is the full code of the implementation. I just open the settingViewController and enable Link with that.
Now, my app is doing other networking related tasks. Is Ableton setting up a Bonjour web service that may be conflicting? Is there any way to debug the networking stack to troubleshoot why this is failing? Is there just something that I have not set up correcting above?
The text was updated successfully, but these errors were encountered: