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

Communication with two cameras? #2

Open
tenisak opened this issue Feb 21, 2018 · 3 comments
Open

Communication with two cameras? #2

tenisak opened this issue Feb 21, 2018 · 3 comments

Comments

@tenisak
Copy link

tenisak commented Feb 21, 2018

Thanks a lot for a great library!
Is it possible to communicate with two cameras at once? I have two cameras EVI-D70 connected via RS232 as shown in the manual (page 31 here):
image

@reflex33
Copy link
Owner

The current code assumes a single camera. I don't believe there is anything that is stopping that from being supported, but would it would require some work support. I don't have a pair (or more) of cameras to do the coding/testing though. My main concern would be the timing of messages and if there are any extra messages coming from the additional cameras. The visca protocol is a bit hard to follow and has many special cases where commands behave differently than expected.

@tenisak
Copy link
Author

tenisak commented Feb 26, 2018

Thank you very much for your reply. My idea is to change the cameraNum externally with a new method (eg. SetCameraNum(num)). Do you think that would be enough? Or would it be necessary to make even more major changes?

@reflex33
Copy link
Owner

At a minimum the connect function will need to be modified, as it assume's a single camera for now. It look for serial communication back from the camera and the camera number it receives is used as the camera number internally. So setting it externally won't be enough.

The next major issue is the serial port. Multiple cameras will still communicate through a single port. You issue a command to the camera (e.g. camera. JogPanTiltDegrees(d)), which will look at its internal camera number and send the command over the serial port. Having a second camera instance with a different camera number will not be good here as both will need access to the same serial port.

More work would have to be done make it so the camera class can handle more than one camera (maybe we don't call it camera anymore at that point). Then you would communicate to all of the visca cameras through one class instance.

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