Skip to content
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

Timeouts when using getElementByPath in v0.2.2 #41

Open
phillipivan opened this issue Sep 25, 2024 · 5 comments
Open

Timeouts when using getElementByPath in v0.2.2 #41

phillipivan opened this issue Sep 25, 2024 · 5 comments

Comments

@phillipivan
Copy link

When using version 0.2.2 I get timeouts when using the getElementByPath method, reverting to 0.2.1 the same code works ok.

This has been replicated connecting to two different Stagetec Ember Plus providers.

@mint-dewit
Copy link

mint-dewit commented Sep 25, 2024

Do you have more info about your usage of getElementByPath? Like what type of element are you using it on?

0.2.2 has made a change because the ember+ document is a bit ambiguous so it's possible your provider has interpreted in a slightly different way and is not responding to our request now.

@phillipivan
Copy link
Author

Hi @mint-dewit, this is from the companion module which you have also worked on. I can test again tomorrow and take some more detailed notes, but I was trying both String and Integer elements.

@phillipivan
Copy link
Author

Here is an extract from the logs when using companion module version 2.4.3 which uses emberplus-connection 0.2.2

Module-host accepted registration
debug: Connecting 172.20.146.247:9000
info: Connected to 172.20.146.247:9000
debug: Start parameter registration
debug: Attempt to subscribe to 1.2
debug: Registered for path "1.2"
error: Failed to subscribe to path "1.2.0.7": Error: Request timed out
error: Failed to subscribe to path "1.2.0.7": Error: Request timed out
error: Failed to subscribe to path "1.2.6.1": Error: Request timed out
error: Failed to subscribe to path "System.Firmware.Version": Error: Request timed out
error: Failed to subscribe to path "Audio.Processing.InputProcessing#15.Gain": Error: Request timed out

I don't observe any problems with these elements using 0.2.1

I have also attached the Ember Tree for the device exported from Ember Plus Viewer.

nexus-compact.zip

@mint-dewit
Copy link

I was trying both String and Integer elements.

So you are working with parameters. Maybe your device does not support getDir commands on Parameters which would be off-spec but not entirely unexpected. Can you try to do a getDir manually on one of your Parameters? Preferably you would also just have this library cloned and be able to add some console.log statements in the getElementByPath status.

Here is an extract from the logs

These logs are just output from companion, they are unfortunately not actually helpful in the development of this library :)

@phillipivan
Copy link
Author

I was trying both String and Integer elements.

So you are working with parameters. Maybe your device does not support getDir commands on Parameters which would be off-spec but not entirely unexpected. Can you try to do a getDir manually on one of your Parameters? Preferably you would also just have this library cloned and be able to add some console.log statements in the getElementByPath status.

I can look at trying this, but wont be for a couple of weeks as I will be away.

Here is an extract from the logs

These logs are just output from companion, they are unfortunately not actually helpful in the development of this library :)

Of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants