benkuper / Chataigne

Artist-friendly Modular Machine for Art and Technology
https://benjamin.kuperberg.fr/chataigne
GNU General Public License v3.0
1.22k stars 59 forks source link

OSCQuery Zeroconf issue #195

Closed joreg closed 1 year ago

joreg commented 1 year ago

i have a custom OSCQueryServer that advertises itself via Zeroconf as per the OSCQuery specs. i can see it in a zeroconf browser and also the "official" OSCQuery browser but in Chataigne "Auto detect" says "no-service found".

and also the other way round: when enabling "OSC Remote Control" in the Chataigne preferences, the above browsers don't see the service though in the log it says "Zeroconf service created". connecting manually to the port then works though.

i'm not really familiar with zeroconf. any ideas what i could be missing?

benkuper commented 1 year ago

can you post pictures ? I've usually had less problems with Chataigne than other tools to detect zeroconf services...

joreg commented 1 year ago

so here e.g i use zeroconfServiceBrowser (but same for the other one linked above) where my server is seen but at the same time Chataigne doesn't see it:

grafik

any idea how i could debug this further?

joreg commented 1 year ago

my bad. nobody told me i need to install apple bonjour printer services... so without that some things already work, but apparently not all..

so now i see the service, i can select it, but then nothing happens. only when i click "Sync Data", i get an actual connection. any ideas re this? ie. what is "Sync Data" doing that selecting the service would not do also?

benkuper commented 1 year ago

It's because the "auto detect" is only setting host and port, but in your case neither the host nor the port changed when setting them, so it didn't trigger automatically a sync. So you need to trigger manuallu Sync Data. This could change and force a sync data when choosing the server from this menu.

joreg commented 1 year ago

"This could change and force a sync data when choosing the server from this menu". all for it! i thought i was playing nice by following your default... and confirmed: if i user a port other than 5678 on my server, it works without having to press "Sync Data"

benkuper commented 1 year ago

both will be fixed in next beta :)

joreg commented 1 year ago

sorry, one more: when do you fill the list that shows in "Auto detect"? it seems to me this only happens on Chataigne startup?! if i advertise my service when chataigne is already running, it doesn't show up. and also if i unadvertise my service while chataigne is running, it is not removed from that list.

benkuper commented 1 year ago

The list is generated on the fly when you click it. You can see When the services are actually detected in the logger. If it appears in the logger, then it will be shown in the menu. And updates on that are usually quite fast, within few seconds

joreg commented 1 year ago

"You can see When the services are actually detected in the logger". yes perfect. if i wait for them to appear in the logger, all works as expected. so i was just clicking too fast.