OSC Connection fails after a while (OSX & QLC 4.9.1)

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
teackele
Posts: 20
Joined: Thu May 07, 2015 11:06 am
Real Name:

OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby teackele » Sun Aug 23, 2015 10:29 pm

Hello all

The 4.8 branch had a very stable osc implementation. With 4.9 version i'm experiencing problems after a while.

My setup
-OS 10.8
-QLC 4.91.
-Enttec DMX USB Pro
-MacBook connected to wifi router
-iPhone 5s with touch OSC

Haven't got it pinpointed down exaclty yet, but it seems that osc input to qlc+ stops working once the iphone has last connection with the wifi and reconnects.

Known bug?

Regards teackele
User avatar
mcallegari
Posts: 1542
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby mcallegari » Mon Aug 24, 2015 11:57 am

Hi, the OSC plugin has been completely rewritten on QLC+ 4.9.0.
It is possible that it still has glitches, but I need a precise way to reproduce issues.

Can you please try to identify when the plugin stops receiving data from touchOSC ?
Maybe it's something related to some network timeout.
I'll try to do some more tests myself.
teackele
Posts: 20
Joined: Thu May 07, 2015 11:06 am
Real Name:

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby teackele » Tue Aug 25, 2015 10:43 pm

thx for the swift response.

i'll try to explain it when it happens so you can possibly recreate it. I can also send you files (qlc+ setup, osc input profile and touch osc screen/interface)

-startup qlc plus
-load a file with buttons connected to osc plugin and custom profile on universe 2 (input on universe 1 is midi)
-start touch osc on iphone (haven't tested on android yet). iphone is connecte through wifi with qlc (mobile networking like 3g and 4g turned off)
-disable wifi on the iphone or walk out of range of wifi network
-reconnect to wifi or walk in to range until wifi automatticaly reconnects
-try to control qlc+ with the osc on the iphone again

Can i enable file logging of debug output somewhere so i could send you log file output?

Regards Teackele

BTW our installation running on QLC+ (dmx rgb led in every duck and DMX relay board operating valves controlling water flow) http://www.noorderzon.nl/uploads/opengr ... 2869431858
plugz
Posts: 630
Joined: Sun Apr 12, 2015 6:30 pm
Real Name: David

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby plugz » Wed Aug 26, 2015 8:42 am

Hello,

Is the iphone connected directly to the computer running QLC+, or is there a wifi router between the 2 devices ?

teackele wrote:BTW our installation running on QLC+ (dmx rgb led in every duck and DMX relay board operating valves controlling water flow) http://www.noorderzon.nl/uploads/opengr ... 2869431858
This is brilliant!
teackele
Posts: 20
Joined: Thu May 07, 2015 11:06 am
Real Name:

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby teackele » Wed Aug 26, 2015 10:53 am

Hello,

Thanks :D

There's a wifi router between the iphone and qlc+
-the touter has no internet acces
-network is 192.168.5.0
-qlc+ computer has fixed ip address (192.168.5.10)

teackele
User avatar
mumbles
Posts: 110
Joined: Thu Jul 16, 2015 4:39 am
Location: Central USA
Real Name: Justin

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby mumbles » Wed Aug 26, 2015 10:53 am

teackele wrote:Hello,

Thanks :D

There's a wifi router between the iphone and qlc+
-the touter has no internet acces
-network is 192.168.5.0
-qlc+ computer has fixed ip address (192.168.5.10)

teackele


I don't know if this will help or not but when Im using my iOS devices running home automation app's on networks without internet I have to configure my phone differently to make apps run stable.

On your iPhone under wifi> network Info> (Set static IP and sub mask ) (Leave Router, DNS, and Search Domains BLANK.)

This forces the iPhone to use cell network for internet and stop probing LAN for internet. but still allows iPhone access to LAN devices.

    OS's
    OSX 10.10.5 QLC+ 4.9.1
    Raspberry Pi B OLA 0.95
    Raspberry Pi 2B QLC+
    USB DMX
    ultraDMX Micro
    FTDI USB-RS485-WE-1800-BT XLR
    USB Midi
    Korg nanoKONTROL2
    Korg nanoPAD2
    Wifi
    iPhone & iPad TouchOSC 1.9.4
User avatar
mcallegari
Posts: 1542
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby mcallegari » Wed Aug 26, 2015 11:20 am

Hi teackele,
I just made a quick test with touchOSC on Android and QLC+ on Linux.

- loaded a QLC+ project
- controlled a few widgets of the virtual console
- closed touchOSC
- turned off WiFi on the phone
- turned WiFi back on
- started touchOSC

It's working as expected, and there's a technical explanation for it.
OSC works with UDP packets so the communication is "connectionless". It means that there is no check between the hosts if the connection is up or down. They just send/receive packets no matter if there is someone listening on the other side.
So you can even restart QLC+ while touchOSC is open on the phone and OSC will still work (as well as ArtNet and E1.31)

Now, I can do the same test on OSX, but being a *nix-based OS, I expect to see the same I've seen on Linux.
Unless it depends on touchOSC on iOS, then I'm afraid I can't help.

BTW our installation running on QLC+ (dmx rgb led in every duck and DMX relay board operating valves controlling water flow) http://www.noorderzon.nl/uploads/opengr ... 2869431858

Awesome use case indeed !
Can you tell us more or point us to pictures/videos or whatsoever ? :)
plugz
Posts: 630
Joined: Sun Apr 12, 2015 6:30 pm
Real Name: David

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby plugz » Wed Aug 26, 2015 12:01 pm

Have you tried stopping and relaunching TouchOSC after the reconnection is done ?

What do you have to do to make the setup work again ?
teackele
Posts: 20
Joined: Thu May 07, 2015 11:06 am
Real Name:

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby teackele » Thu Aug 27, 2015 2:41 pm

Hello

There are 2 ways to make the osc work again
-restarting QLC+
-switching between inputs (127.0.0.1 and 192.168.5.10). just switching between them makes it work again

teackele
teackele
Posts: 20
Joined: Thu May 07, 2015 11:06 am
Real Name:

Re: OSC Connection fails after a while (OSX & QLC 4.9.1)

Postby teackele » Fri Aug 28, 2015 10:09 am

Hello

I've been looking at the source code of the OSC plugin. It's pretty straightforward. I notied that the change beteween version 4.8 and 4.9 is basically that youve deciced to not use LibLO anymore and use the QUdpSocket of the Qt Framework instead.
I don't know with what version of Qt the OSX version is compiled, but googling on QUdpSocket gives some hits on bugs in the QUdpSocket implementation. Might this be the suspect?

Regards Teackele

Return to “Archive - no new threads please”