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

ATEM Connected but waiting #24

Closed
tspad1960 opened this issue Mar 5, 2021 · 9 comments
Closed

ATEM Connected but waiting #24

tspad1960 opened this issue Mar 5, 2021 · 9 comments
Labels
question Help! How to use this project?

Comments

@tspad1960
Copy link

I have the application up and running but do have an issue. Once I have the network all configured and working, My status indicates "Connected - Wating for initialization - Connection might have been rejected" I see it is checking atemSwitcher.isConnected(). what could cause this condition?

Side info, I am running on ESP8266 NodeMCU

@AronHetLam
Copy link
Owner

AronHetLam commented Mar 6, 2021

The connection flow is as such:

  1. Tally sends hello packet to ATEM
  2. ATEM responds to hello packet. (isConnected() becomes true)
  3. Tally acknowledges the response
  4. ATEM sends initialisation data (hasInitialized() becomes true)

The tricky part is that the ATEM in step 2 could have rejected the connection, resulting in it never sending the initialization data in step 4. However, the library doesn't catch this, and just waits for step 4 (until a timeout, where it'll start over)

The ATEM only rejects connections if the connection limit is hit, so I'm wondering if you have too many instances of software control running, while trying to connect a few of the tally lights?
I can't tell exactly what's going on in your situation, as I don't have enough details about switcher model, amount of tallys, if any of them connect and how many instances of software control you run etc.

@AronHetLam AronHetLam added the question Help! How to use this project? label Mar 6, 2021
@goudi76
Copy link

goudi76 commented Mar 6, 2021

Hy could you please show us your IP Setting?
Only if it is a network not reachable from the Internet
You IP Adress
The IP Adress Mask
The Gateway IP
The Atem IP

Maybe there is already the failure.

@tspad1960
Copy link
Author

tspad1960 commented Mar 6, 2021 via email

@MarnitzRoux
Copy link

I had a look into doing this with an ESP32 a while a go and I ran into a similar issue, but upon further research, I found that the free, open source ATEM libraries by SKAARHOJ didn't support ATEM versions above 7.5. From my understanding that would mean anything that uses those libraries won't work with any more recent versions.

https://www.skaarhoj.com/fileadmin/BMDPROTOCOL.html

@AronHetLam
Copy link
Owner

@MarnitzRoux that's not the case. I've had multiple people ask me the same thing, it just means that his piblic libraries aren't updated since 7.5, and that newer features aren't supported. I initially made this project last summer, using it with an ATEM mini pro (v8.2 or so). In my version of the library I've added support for knowing if the ATEM is streaming of not.

The ESP32 might not be supported, but I just got one home, and am planning to make it work soon.

@MarnitzRoux
Copy link

@AronHetLam Yeah okay, that makes sense. I initially followed another project that implemented the libraries for the ESP32 so I thought that would work but I guess not. Hopefully you'll have more success.
I'll keep an eye on your project for any future support for he ESP32.

@AronHetLam AronHetLam mentioned this issue Mar 7, 2021
@tspad1960
Copy link
Author

tspad1960 commented Mar 7, 2021 via email

@tspad1960
Copy link
Author

tspad1960 commented Mar 8, 2021 via email

@AronHetLam
Copy link
Owner

No worries. I'll go ahead and close this then.
What I don't get is that it connected, but never initialized. All other cases so far with network problems would cause it not to connect at all.
Usually the issue you initially described is caused by hitting the ATEM's connection limit.

If you find out more about what exactly the cause was, please feel free to post it in here. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Help! How to use this project?
Projects
None yet
Development

No branches or pull requests

4 participants