bitfocus / companion-module-analogway-awj

MIT License
7 stars 1 forks source link

Only first 8 inputs showing in various actions, with (emulated) #2

Closed PhillPower closed 1 year ago

PhillPower commented 1 year ago

Companion v2.41 for Intel MacOS (also tested on ARM MacOS)

Aquilon C+ firmware v3.0.255

When selecting button actions such as Set Input Freeze or Select Layer Source, only the first 8 inputs are listed, all are shown with (emulated) after their name as in picture attached.

image
dnmeid commented 1 year ago

What version of the module is bundeled with your Companion 2.4.1? What connections do you use in total? Especially are there more than one AWJ connections?

PhillPower commented 1 year ago

v1.1.0

Currently running on a fresh version of Companion (Apple Silicon) with no other connections at all.

dnmeid commented 1 year ago

So you write "various" actions. Is it in fact all actions or only some actions? If only some actions, the question is which actions. Maybe the actions which are only available at LivePremier and not at Midra. My guess so far is that there is something wrong with the detection of the platform. LivePremier uses different commands than Alta/Midra. The module tries to check what platform is connected and then chooses the correct commands under the hood. Can you check in the log/debug which device the module says it is connected to. Have you ever been connected to a Midra or Alta or its simulators?

PhillPower commented 1 year ago

So you write "various" actions. Is it in fact all actions or only some actions?

Sorry, I didn't see your post until after the event, I won't have access to that particular Aquilon for a few weeks.

Can you check in the log/debug which device the module says it is connected to.

Again sorry, but I left Companion running and the log is now full of Connection attempt to device has timed out because I forgot to disable the connection.

Have you ever been connected to a Midra or Alta or its simulators?

Not with this module, no. I once used the old REST module to control a Pulse 4K, but that was back in March last year!

I ran up the LivePremier simulator when I got home and that seems to work fine. I'll have access to a brand new RS4 in a week, and then the original C+ the week after, so I can try again then.

PhillPower commented 1 year ago

UPDATE: Trying with a brand new RS4 in the US, from the log: instance(Aquilon): Connected to Aquilon RS4, S/N:GB0247

The Actions affected:

And these Feedbacks:

Strangely, they all seem to function correctly, but I can't choose any input past 8.

dnmeid commented 1 year ago

To give you an unpdate: I've been rewriting the module for v3 now. Not ready for release yet, but working on my machine. In my tests so far I could not reproduce the issue working on simulator with firmware 3.0.255 from Intel Macintosh.

PhillPower commented 1 year ago

To give you an unpdate: I've been rewriting the module for v3 now. Not ready for release yet, but working on my machine. In my tests so far I could not reproduce the issue working on simulator with firmware 3.0.255 from Intel Macintosh.

Excellent news, I look forward to trying it out.

Unfortunately I won't be anywhere near a real unit until early April, but I could have a play then if you have a version you want tested.

PhillPower commented 1 year ago

UPDATE: Still having this issue with latest BFC Companion 3.0.0+5780 - my theory is currently that it's due to building the show on the simulator and then loading it onto a live machine.

I shall try to test this when I get a quiet moment in the theatre later.

dnmeid commented 1 year ago

Keep me updated, I'd love to get this sorted before 13.4. but I don't have a real machine and noone else has reported this error.

dnmeid commented 1 year ago

Can you please check the following: when connected to your Aquilon, use your webbrowser to navigate to the site http:///api/stores/device it can take a while to load, maybe over 1 minute then you should see a JSON-object named "device" and depending on your browser you can unfold sub-objects like you would navigate in a directory structure. Open device/inputList/itemKeys and tell me what items you see there. Open device/inputList/items/IN_1/status/pp and tell me if there are entries for "isAvailable" and "isEnabled" and what values they have.

PhillPower commented 1 year ago
image

Won't connect, with or without internet.

dnmeid commented 1 year ago

Ah, sorry it seems GitHub stripped out the ip adress. You have to use the ip of the aquilon between "http://" and "/api/stores/device"

PhillPower commented 1 year ago

I guessed that might be the case, but all I get with Chrome or Safari is a large dump of text for a few moments before the page crashes out.

image

This goes on for so many lines!

dnmeid commented 1 year ago

what do you mean with "crashes out"? It looks like it should to me. It will download this huge object with a million lines and once it is finished after a long time it usually will render it in the directory like view. I just checked Safari does only show the raw data which is not easy to navigate. Chrome does take forever (10+ minutes). I'm using firefox and it only takes around 30 seconds to render the object. (Open source software still the best) Finally there should be only the word "device" with some marker to open it.

image
dnmeid commented 1 year ago

this is Input "IN_1" from the simulator

image
PhillPower commented 1 year ago

what do you mean with "crashes out"?

image

I'm using firefox with no problems.

Aha! That works.

Open device/inputList/itemKeys and tell me what items you see there.

A list 0: "IN_1" 1: "IN_2" etc. down to 31: "IN_32"

Open device/inputList/items/IN_1/status/pp and tell me if there are entries for "isAvailable" and "isEnabled" and what values they have.

isAvailable: True isEnabled: False

dnmeid commented 1 year ago

Cool, we are getting closer. For an input to show up in the dropdown isAvailable and isEnabled have to be true. Can you check if you have at least one input which has true at both.

PhillPower commented 1 year ago

I do not. IN_1 to IN_24 are true/false, IN_25 to IN_32 are false/false (It's a fully-loaded C+)

dnmeid commented 1 year ago

So that is the reason why you don't see any inputs in dropdown choices. If no inputs are found I show 8 emulated inputs so people can work a little bit. The question is why are all your inputs isEnabled = false. In the simulator it is always true for isEnabled and isAvailable depends if there is a card in the slot. Actually this property is a leftover. You could enable/disable inputs at the Ascender but can't do it at Aquilon. I guess this is a bug of the Aquilon firmware.

PhillPower commented 1 year ago

I wish we could still enable/disable inputs like we could on the Ascender!

dnmeid commented 1 year ago

You can try to set it to true with a custom command, the path is: DeviceObject/$input/@items/IN_1/status/@props/isEnabled At the simulator this is not doing anything, maybe you have to add an update with DeviceObject/$input/@items/IN_1/$plug/@items/1/settings/@props/xUpdate (value = boolean, true)

dnmeid commented 1 year ago

If you don't need the features of the latest firmware, you can also try an older firmware for the Aquilon. But I still don't know if this is a problem of the firmware 3.0.255 or of this particular system, as you are the only one reporting it.

dnmeid commented 1 year ago

Closing this as resolved now. Although it doesn't seem to be a Companion problem, a workaround is provided in 58c4e6d (v2.2.0)