bitfocus / companion-module-bmd-videohub

MIT License
4 stars 11 forks source link

BMD Videohub Routing Table Save and Restore #9

Open BaseballJim opened 4 years ago

BaseballJim commented 4 years ago

My venue swaps between two disparate events almost on a daily basis. I have a paper sheet of routes for our BMD 40x40 that I need to manually enter before each change over. I am now using StreamDeck + Companion for some automation tasks and I would really like to be able to create a button that "Saves" the routing table (it looks like from the source code Companion already reads the routing table from the device) into a file and another button that "Reads" the routing table from a file and writes it into the BMD router. The "Save" button would have as an argument a path and file name to save to and the "Read" button would have as an argument a path and file name to load the saved routing table from. Then I could create a file with the standard routes for "baseball' and another file with the standard routes for 'Softball' and create a button to initialize the router to a known state before each event.

josephdadams commented 4 years ago

Can’t you already do this in the BMD software? Or is it just source and destination names, not routes.

BaseballJim commented 4 years ago

Nope, just names. I spent a day with a bmd engineer who was visiting customers. The best he came up with for save and restore of routes was using a ssh session and copying and pasting results into a file. The bones are all there, i would just like to do it with a button press.

On Wed, Oct 28, 2020, 6:04 PM Joseph Adams notifications@github.com wrote:

Can’t you already do this in the BMD software? Or is it just source and destination names, not routes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-requests/issues/305#issuecomment-718257867, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQX5IXX54PSMWHUGJ2QIWIDSNCPRPANCNFSM4TC7AZSQ .

josephdadams commented 4 years ago

I am going to transfer this over to the BMD Videohub repository.

MHDallas commented 3 years ago

BTW - I am doing this with Companion. Not using a Save/Restore, but have the capability working. I have a 40x40 VideoHUb. I created a Companion Page with buttons for "Name Input" (to set source names), "Name Output" (to set destination names), "Route Sunday" (routing for Sunday Morning services), "Route Student" (routing for Student services), "Route Funeral" (Routing for standard funerals), and others.

The first "routing" button was a matter of creating a for every output (40). The rest was easier, just copy a previous button and change the ones that needed to be changed.

I also use one previously unused output (38) to identify the current setting. I use to change the color of the "Route" buttons. "Route Sunday" sets Output 38 to Input 1. "Route Student" sets Output 38 to Input 2, etc. Very comforting to be able to check seconds before a service.

I now ONLY use Companion to make any changes to the VideoHub. This keeps the various buttons updated and I don't forget to update one of the various services.

bingston commented 2 years ago

@MHDallas any chance you could share how you did this? I'm using a 40x40 VideoHub also. I just learned about Companion after searching for a way to make some macros. Did you follow any other guides you might be able to share or did you figure it all out yourself? Thanks advance!

BaseballJim commented 2 years ago

Honestly I just opened up the source for the router and started tracing the flow. This particular blackmagic module was pretty well organized so it didn't take too long to figure out where to add the save and restore. Other modules that I've looked at aren't that straightforward.

On Sun, Nov 7, 2021, 7:58 PM bingston @.***> wrote:

@MHDallas https://github.com/MHDallas any chance you could share how you did this? I'm using a 40x40 VideoHub also. I just learned about Companion after searching for a way to make some macros. Did you follow any other guides you might be able to share or did you figure it all out yourself? Thanks advance!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-bmd-videohub/issues/9#issuecomment-962745716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQX5IXR6HATSPGSGTABW4D3UK4VDBANCNFSM4TDCL2HQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bingston commented 2 years ago

Thanks @BaseballJim for the quick reply. I'm still figuring things out. Since I sent the message I saw how to add the VideoHub as an instance. That's as far as I've made it. I'll keep playing around. Thanks!

MHDallas commented 2 years ago

@MHDallas any chance you could share how you did this? I'm using a 40x40 VideoHub also. I just learned about Companion after searching for a way to make some macros. Did you follow any other guides you might be able to share or did you figure it all out yourself? Thanks advance!

I use Bitfocus Companion to interface/automate with most of the equipment I use for House of Worship iMag and Live Broadcast. For the VideoHub, I have the need for a one-button "Put everything back the way it should be for Sunday Service" as well as multiple one-button options for memorial services, Kids Services, Baptism, etc.

Companion comes with a VideoHub Module. When loaded, this gives you the ability to add one or more VideoHub commands to a button. The intent is for the button to be on a StreamDeck device; however, Companion also has a web interface. Adding the appropriate number (40) of commands, will route your VideoHub source to a destination. I also use the and commands to name the ports.

I have one "button" called "Sunday Service" that sets all 40 destinations. I have another button that route my feed from the Baptism to my Camera 6. I have another button for Memorial that bypasses the video switch and sends my ProPresenter Feed direct tot he main Screen. These last two, and others, only switch the ports needed. When I am done, I hit Sunday Service again.

skermanator commented 2 years ago

Looking at using this but it does not seem to work on the 288 x288. Works fine on a 12x12

BaseballJim commented 2 years ago

Not real surprised. I have a 40x40 and 20x20 to test on. I’m sure the 12x12 is the same architecture just a bit smaller. The 288x288 is likely an entirely different beast. Does companion produce anything for that router? I doubt that there is anything in the code that limits the size but I’ll take a look. I always had the feeling that the big router was from a whole different hardware family, maybe even bought from some one else originally so it may not have any of the same software functions as the 40x40 and smaller.

Sent from Jim's iPad

On Dec 8, 2021, at 12:26 AM, skermanator @.***> wrote:

 Looking at using this but it does not seem to work on the 288 x288. Works fine on a 12x12

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

skermanator commented 2 years ago

Every other feature so far works. I also believe the save is working for the most part, as I understand and makes sense what is outputted .

On Thu, 9 Dec 2021, 1:37 am BaseballJim, @.***> wrote:

Not real surprised. I have a 40x40 and 20x20 to test on. I’m sure the 12x12 is the same architecture just a bit smaller. The 288x288 is likely an entirely different beast. Does companion produce anything for that router? I doubt that there is anything in the code that limits the size but I’ll take a look. I always had the feeling that the big router was from a whole different hardware family, maybe even bought from some one else originally so it may not have any of the same software functions as the 40x40 and smaller.

Sent from Jim's iPad

On Dec 8, 2021, at 12:26 AM, skermanator @.***> wrote:

 Looking at using this but it does not seem to work on the 288 x288. Works fine on a 12x12

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-bmd-videohub/issues/9#issuecomment-988870189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBNNQQBCJWJNGGI7P3GZ23UP5UT7ANCNFSM4TDCL2HQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

krocheck commented 2 years ago

Could you upload the saved file as an attachment for us to take a look?

skermanator commented 2 years ago

VideoHub.txt Sure thing, See attached

krocheck commented 2 years ago

@skermanator what do you see in the log? based on my read you should either see an error or an info indicating success. The file’s format does seem fine.

skermanator commented 2 years ago

Companion Log No Errors, This was a Save then a load.

BaseballJim commented 2 years ago
Well, no errors caught means nothing bad happened that I expected.  Doesn’t mean there aren’t errors.   Find the file C:\Users\cmsshow\Documents\test\VideoHub2.txt and see what’s in it.   Here is what my baseball router file looks like:___________________________________________0 3,1 7,2 13,3 0,4 2,5 22,6 23,7 25,8 24,9 28,10 0,11 7,12 4,13 6,14 12,15 21,16 0,17 3,18 5,19 16,20 4,21 26,22 12,23 26,24 21,25 19,26 25,27 21,28 3,29 5,30 0,31 10,32 14,33 17,34 26,35 7,36 36,37 2,38 1,39 0 :   BMD uses zero based indexing when referencing source and destination so '0' in this file references port '1'. Input 4: Cam 3rd Base (Concourse) - Rack A #4 routed to --> Output 1: ATEM Switcher IN 1Input 8: Cam Center Field (Fiber) - Rack A #8 routed to --> Output 2: ATEM Switcher IN 2Input 14: Spare Input #2 - Rack A #14 routed to --> Output 3: ATEM Switcher IN 3Input 1: Cam High Home (Booth) - Rack A #1 routed to --> Output 4: ATEM Switcher IN 4Input 3: Cam Low Home #2 (Wireless) - Rack A #3 routed to --> Output 5: ATEM Switcher IN 5Input 23: 3Play Output A routed to --> Output 6: ATEM Switcher IN 6Input 24: 3Play Output B routed to --> Output 7: ATEM Switcher IN 7Input 26: Feed from HV #1 (Throwdown Box) routed to --> Output 8: ATEM Switcher IN 8Input 25: Key Graphics - Graphics-1 routed to --> Output 9: ATEM Switcher IN 9Input 29: Key Graphics - Graphics-2 routed to --> Output 10: ATEM Switcher IN 10Input 1: Cam High Home (Booth) - Rack A #1 routed to --> Output 11: 3Play IN 1Input 8: Cam Center Field (Fiber) - Rack A #8 routed to --> Output 12: 3Play IN 2Input 5: Cam 3rd Base (Dugout) - Rack A #5 routed to --> Output 13: 3Play IN 3Input 7: Cam 1st Base (Dugout) - Rack A #7 routed to --> Output 14: 3Play IN 4Input 13: SIP  Input #1 - Rack A #13 routed to --> Output 15: Monitor #1 (Left)Input 22: ATEM Switcher Multiview routed to --> Output 16: Monitor #2 (Right)Input 1: Cam High Home (Booth) - Rack A #1 routed to --> Output 17: Feed to HV #1 (Throwdown Box)Input 4: Cam 3rd Base (Concourse) - Rack A #4 routed to --> Output 18: Feed to HV #2 (Throwdown Box)Input 6: Cam 1st Base (Concourse) - Rack A #6 routed to --> Output 19: Feed to HV #3 (Throwdown Box)Input 17: ATEM Switcher Program Out routed to --> Output 20: Feed to Saltdogs Work StationInput 5: Cam 3rd Base (Dugout) - Rack A #5 routed to --> Output 21: Feed to Coach RecordingInput 27: Feed from HV #2 (Throwdown Box) routed to --> Output 22: Feed to DAK Display (SDI D/A)Input 13: SIP  Input #1 - Rack A #13 routed to --> Output 23: Feed to Stream Computer (Rack) input AInput 27: Feed from HV #2 (Throwdown Box) routed to --> Output 24: Feed to Radio (Booth) - Rack B #1Input 22: ATEM Switcher Multiview routed to --> Output 25: Monitor #3 (Producer) - Rack B #2Input 20: ATEM Switcher AUX Out #2 routed to --> Output 26: Monitor #4 (Graphics) Rack B #3Input 26: Feed from HV #1 (Throwdown Box) routed to --> Output 27: Monitor #5 (Stats) - Rack B #4Input 22: ATEM Switcher Multiview routed to --> Output 28: Feed to In-House - Rack B #5Input 4: Cam 3rd Base (Concourse) - Rack A #4 routed to --> Output 29: Feed to Cam Booth #1 - Rack B #6Input 6: Cam 1st Base (Concourse) - Rack A #6 routed to --> Output 30: Feed to Cam Booth #2 - Rack B #7Input 1: Cam High Home (Booth) - Rack A #1 routed to --> Output 31: Feed to Cam Booth #3 - Rack B #8Input 11: [OPEN] - Rack A #11 routed to --> Output 32: Feed to TV Truck #1 - Rack B #9Input 15: Spare Input #3 - Rack A #15 routed to --> Output 33: Feed to TV Truck #2 - Rack B #10Input 18: ATEM Switcher Preview Out routed to --> Output 34: Feed to TV Truck #3 - Rack B #11Input 27: Feed from HV #2 (Throwdown Box) routed to --> Output 35: Replay 3rd Base Dugout -Rack B #12Input 8: Cam Center Field (Fiber) - Rack A #8 routed to --> Output 36: Spare Output -Rack B #13Input 37: Input 37 Unassigned routed to --> Output 37: Fiber to HV (2nd Level) - Rack B #14Input 3: Cam Low Home #2 (Wireless) - Rack A #3 routed to --> Output 38: Spare Output #4  - Rack B #15Input 2: Cam Low Home #1 (Concourse) - Rack A #2 routed to --> Output 39: Spare Output #5 - Rack B #16Input 1: Cam High Home (Booth) - Rack A #1 routed to --> Output 40: SDI D/A #1 You should have 288 pairs of numbers separated by a space with a comma separating each pair.Fyi, The only programmatic information is the numbers preceding the ‘:’   everything after that is for human readability only. Look at Port 9990, TCP protocol at the IP address of your 288x288 and see what kind of text it gives you. Last, do all of the other companion buttons work with the 288?  Can you set a button to change one specific route, etc.?       Sent from Mail for Windows From: skermanatorSent: Thursday, December 9, 2021 1:13 AMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) No Errors, This was a Save then a load.—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.  
skermanator commented 2 years ago

Telnet Output.txt I Telnet into the router, found 2 interesting things.

  1. No Names (however on the GUI there is)
  2. The numbering didnt start at 1.

Also interesting development. Only the first pair is currently changing. The First pair will run correctly. So if its 154 154 it will change output 153 to input 153

BaseballJim commented 2 years ago

Yes, the Blackmagic routers use 0 based numbering so first channel in the gui is channel 0. But I just looked closer at your telnet output file and see channels 0 through 31 are missing from the routing information. That may be your problem. I started doing backup and restore by using a text file like you made and got tired of its cumbersome non user friendly use. The companion code is nothing more than a user interface and one button method of telnetting into the router. Does the Blackmagic software see channels 0-31? 32 missing channels makes me think one of the plug in cards in the router isn’t playing nice. Did you look for the file that companion created? It probably looks a lot like your Telnet file without the serial information. Don’t worry about the channel file text names, they come from somewhere else and have nothing to do with routing.

Sent from Jim's iPad

On Dec 12, 2021, at 4:28 AM, skermanator @.***> wrote:

 Telnet Output.txt I Telnet into the router, found 2 interesting things.

No Names (however on the GUI there is) The numbering didnt start at 1. Also interesting development. Only the first pair is currently changing. The First pair will run correctly. So if its 154 154 it will change output 153 to input 153

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

skermanator commented 2 years ago

VideoHub4.txt This is the companion output save file. We have SDI cards in the first 15+ slots and optical on the last 10+ slots. Blackmagic control is fine, routing is no issue and naming is all there.

The companion save is reporting correctly as well.

skermanator commented 2 years ago

Manual Telnet Update.. I can manual change the routing Via telnet with the following expression. This is working compeatly, I am not sure what expression companion is using on the load but this is how the 288x288 is wanting to see it

BaseballJim commented 2 years ago

So... what's not working? The companion save file looks correct. All channels seem present. Try editing the companion save file by changing some of the source ports. I.e. the first few are: "0 0,1 1,2 2,3 3,4 4,5 68,6 69" change it to "0 90,1 91,2 92,3 93,4 94,5 168,6 169" and load it and see what happens. Those routes to destination 0 (port 1) through 6 (port 7) should be changed. Also check that the destinations aren't somehow locked by the bmd software. I know in my 40x40 I can lock channels to prevent un wanted changes.

On Sun, Dec 12, 2021, 6:30 PM skermanator @.***> wrote:

VideoHub4.txt https://github.com/bitfocus/companion-module-bmd-videohub/files/7700178/VideoHub4.txt This is the companion output save file. We have SDI cards in the first 15+ slots and optical on the last 10+ slots. Blackmagic control is fine, routing is no issue and naming is all there.

The companion save is reporting correctly as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-bmd-videohub/issues/9#issuecomment-992005316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQX5IXT5SSEOWK7WPRDXDXDUQU5DRANCNFSM4TDCL2HQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

skermanator commented 2 years ago

only the first pair will change when I use companion load. the other 287 pairs do not work.

krocheck commented 2 years ago

is the instance configuration set for 288 inputs and 288 outputs?

skermanator commented 2 years ago

companion

BaseballJim commented 2 years ago
Here is the code that telnets the routes to the router:                var cmd = '';               var dest_source = [];                try {                       // Route file must have the same number of routes as this hardware                       if((routes.length = this.outputCount)) {                                     for (let index = 0; index < routes.length; index++) {                                      dest_source = routes[index].split(' ');                                      if(isNaN(dest_source[0])) {                                              throw routes[index] + " - " + dest_source[0] + " is not a valid Router Destination ";                                      }                                      if(dest_source[0] < 0 || dest_source[0] > (this.outputCount - 1)) {                                              throw dest_source[0] + "  is an invalid destination.  Remember, Router is zero based when indexing ports.  Max Routes for this router = " + this.outputCount;                                      }                                      if(isNaN(dest_source[1])) {                                              throw routes[index] + " - " + dest_source[1] + " is not a valid Router Source ";                                      }                                      if(dest_source[1] < 0 || dest_source[1] > (this.outputCount - 1)) {                                              throw dest_source[1] + "  is an invalid source. Remember, Router is zero based when indexing ports.  Max Routes for this router = " +this.outputCount;                                       }                                      cmd = cmd + "VIDEO OUTPUT ROUTING:\n" +  routes[index] + "\n\n";                                }                       }                       else {                               throw "Invalid number of Routes: " + routes.length + ", need: " + this.outputCount;                       }                       this.log('info', routes.length + " Routes parsed. " );               }               catch(e) {                       this.log('error',"Data Parse Error: " + e.message);                       cmd = '';               }               return cmd;  you should see a line in the log file under ‘info’ that says the route array length i.e. the number of routes parsed out of the file. outputCount comes from:                this.outputCount     = parseInt(config.outputCount); If somehow the config file has a count of channels as only 1 I could see it “failing” here but the fact it writes the text file of routes correct makes me highly doubt that.  The cmd string that is sent to the router will look something like: VIDEO OUTPUT ROUTING: 0 99 VIDEO OUTPUT ROUTING: 1 98 VIDEO OUTPUT ROUTING: 2 97  The definitive debug would be to install wireshark on your computer and monitor the ip address of the router and see what exactly is being sent to the router. Turn on all the messages in the log file, errors, info, etc.   that may shed some light. Sent from Mail for Windows From: skermanatorSent: Sunday, December 12, 2021 7:24 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) only the first pair will change when I use companion load. the other 287 pairs do not work.—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.  
BaseballJim commented 2 years ago
Anyone know what “Monitoring Output Count” means?? Sent from Mail for Windows From: skermanatorSent: Sunday, December 12, 2021 7:48 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) —You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.  
krocheck commented 2 years ago

They're for the original pancake routers that had a 'monitoring' output with each output effectively doubling the outputs. A 16x16 was actually 16x32, but it was addressed as two 16x16 levels with the same inputs. We had a request long ago to add that support.

CoBot3000 commented 2 years ago

only the first pair will change when I use companion load. the other 287 pairs do not work.

Hey Team, Did we manage to solve the issue of only the first pair changing? Was having a play today and still seems like it is still an issue.

Regards, Jonathan

skermanator commented 2 years ago

Don't believe so. I don't work at the same place anymore. I think we made an excel that we could pre populate and it gave us the telnet command to send it to deploy the settings

On Fri, Oct 21, 2022 at 6:26 AM CoBot3000 @.***> wrote:

only the first pair will change when I use companion load. the other 287 pairs do not work.

Hey Team, Did we manage to solve the issue of only the first pair changing? Was having a play today and still seems like it is still an issue.

Regards, Jonathan

— Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-bmd-videohub/issues/9#issuecomment-1286102537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBNNQWC4VIM46IVJURD75DWEGTFXANCNFSM4TDCL2HQ . You are receiving this because you were mentioned.Message ID: @.***>

CoBot3000 commented 2 years ago

Hey Team, I have figured out how to get it to read/load all pairs.

I have attached my config for our small router.

So what needs to happen: (I will try lay it out as simple as possible, refer to attached doc)


+ Destination Number (eg. 0)
+ Space
+ Input Number (eg. 0)
+ Space
+ Dash (-)
+ Enter

So then it will look something like this: 0 0 - 1 1 - etc...

You need to have those spaces, dash and the enter for it to work. From this, is someone able to fix it so that companion can save the route state as that?

VideoHub.txt

BaseballJim commented 2 years ago

CoBot3000 I assume you are talking about the 288x288 router? The format for the 40x40 and smaller doesn't require the "-" at the end of the line. If the 288x288 does that would explain why the big router doesn't work with the current companion save/restore. Not sure what the "-" would do to the 40x40 and smaller. I don't have a big router nor do I have the project loaded anywhere to work on. I use companion with a 40x40 and 20x20 and it works fine.

CoBot3000 commented 2 years ago

ah ok, we did the test on the 72 x 72 router. We don't have a smaller one on hand, but when we do I could do a test with the '-' and see what happens.

BaseballJim commented 2 years ago
CoBot3000    email me directly at ***@***.***      I tried making a change to the code but I have no way of testing it.   If we can figure out how to send you an executable (kind of a big file) you can try it out.   If indeed the secret is a ‘-‘ it should work (unless I made a coding mistake….)   I add the ‘-‘ for routers greater than 40x40 and leave it off for smaller.  My Companion build didn’t go smooth  so there is potential for lots of other things to be wrong. Jim Amen  From: CoBot3000Sent: Saturday, October 22, 2022 5:09 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) ah ok, we did the test on the 72 x 72 router.We don't have a smaller one on hand, but when we do I could do a test with the '-' and see what happens.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 
CoBot3000 commented 2 years ago

Hey Baseball Jim,

Not too sure if this email will work. But let me know how you want me to test and I can let you know when I get back to work.

Regards, Jonathan Duthie Production Technical Specialist + Campus Team Leader

794 East Coast Road | Albany | Auckland | New Zealand

@.**@.> www.cityimpactchurch.comhttp://www.cityimpactchurch.com/

On 23/10/2022, at 3:43 PM, BaseballJim @.***> wrote:



CoBot3000 email me directly at ***@***.*** I tried making a change to the code but I have no way of testing it. If we can figure out how to send you an executable (kind of a big file) you can try it out. If indeed the secret is a ‘-‘ it should work (unless I made a coding mistake….) I add the ‘-‘ for routers greater than 40x40 and leave it off for smaller. My Companion build didn’t go smooth so there is potential for lots of other things to be wrong. Jim Amen From: CoBot3000Sent: Saturday, October 22, 2022 5:09 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) ah ok, we did the test on the 72 x 72 router.We don't have a smaller one on hand, but when we do I could do a test with the '-' and see what happens.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***>
BaseballJim commented 2 years ago
Appears that git hub scrubs email addresses.  I put the file on my google drive but in order for that to work we need to be able to talk to each other.   So here goes… Jim    (the dot character)    amen   (the numbers five and zero)    (the ‘at’ symbol as used in all email)   gmail  (you can figure out the rest)    Once we get that settled and I have your email  I’ll give you access to my google drive and you can download the file.   Jim Amen  From: CoBot3000Sent: Sunday, October 23, 2022 2:31 AMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) Hey Baseball Jim, Not too sure if this email will work. But let me know how you want me to test and I can let you know when I get back to work. Regards, Jonathan Duthie Production Technical Specialist + Campus Team Leader 794 East Coast Road | Albany | Auckland | New Zealand p +64 9 477 0300 | m +64 27 244 3273 ***@***.******@***.***> www.cityimpactchurch.com On 23/10/2022, at 3:43 PM, BaseballJim ***@***.***> wrote:  CoBot3000 email me directly at ***@***.*** I tried making a change to the code but I have no way of testing it. If we can figure out how to send you an executable (kind of a big file) you can try it out. If indeed the secret is a ‘-‘ it should work (unless I made a coding mistake….) I add the ‘-‘ for routers greater than 40x40 and leave it off for smaller. My Companion build didn’t go smooth so there is potential for lots of other things to be wrong. Jim Amen From: CoBot3000Sent: Saturday, October 22, 2022 5:09 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) ah ok, we did the test on the 72 x 72 router.We don't have a smaller one on hand, but when we do I could do a test with the '-' and see what happens.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 
BaseballJim commented 2 years ago
Appears that git hub scrubs email addresses.  I put the file on my google drive but in order for that to work we need to be able to talk to each other.   So here goes… Jim    (the dot character)    amen   (the numbers five and zero)    (the ‘at’ symbol as used in all email)   gmail  (you can figure out the rest)    Once we get that settled and I have your email  I’ll give you access to my google drive and you can download the file.   Jim Amen  From: CoBot3000Sent: Sunday, October 23, 2022 2:31 AMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) Hey Baseball Jim, Not too sure if this email will work. But let me know how you want me to test and I can let you know when I get back to work. Regards, Jonathan Duthie Production Technical Specialist + Campus Team Leader 794 East Coast Road | Albany | Auckland | New Zealand p +64 9 477 0300 | m +64 27 244 3273 ***@***.******@***.***> www.cityimpactchurch.com On 23/10/2022, at 3:43 PM, BaseballJim ***@***.***> wrote:  CoBot3000 email me directly at ***@***.*** I tried making a change to the code but I have no way of testing it. If we can figure out how to send you an executable (kind of a big file) you can try it out. If indeed the secret is a ‘-‘ it should work (unless I made a coding mistake….) I add the ‘-‘ for routers greater than 40x40 and leave it off for smaller. My Companion build didn’t go smooth so there is potential for lots of other things to be wrong. Jim Amen From: CoBot3000Sent: Saturday, October 22, 2022 5:09 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) ah ok, we did the test on the 72 x 72 router.We don't have a smaller one on hand, but when we do I could do a test with the '-' and see what happens.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 
BaseballJim commented 2 years ago
Ok, I’ve done a little more research into the routing save restore issue. Here is the first thing I found.    Black Magic has two product lines of routers.   Smart Videohub, routers 40x40 and smaller and Universal Videohub, normally greater than 40x40 up to 288x288. I found documentation for the Smart Videohub on BMD’s web site.   For setting routes in the Smart VIdeohub BMD states the following: To update a label, lock or route, the client should send a block of the same form the Videohub Server sendswhen its status changes. For example, to change the route of output port 8 to input port 3, the client shouldsend the following block:VIDEO OUTPUT ROUTING:↵7 2↵↵The block must be terminated by a blank line. On receipt of a blank line, the Videohub Server will eitheracknowledge the request by responding:ACK↵↵or indicate that the response was not understood or able to be actioned by responding:NAK↵↵ The code that actually builds the information to send to the Smart Videohub is this: cmd = cmd + "VIDEO OUTPUT ROUTING:\n" +  routes[index] + "\n\n"; Where ‘cmd’ is the string that gets built with routing information  (routes[index] puts two numbers in this string since routes is a 2 index array).   Note that each single route is formed as a complete autonomous command so if you are changing 40 routes at a time there will be 40 separate commands.   It is NOT *********** not this **************VIDEO OUTPUT ROUTING:↵7 2↵8 3↵40 6↵↵  ********* It is THIS:  ***********VIDEO OUTPUT ROUTING:↵7 2↵↵VIDEO OUTPUT ROUTING:↵8 3↵↵VIDEO OUTPUT ROUTING:↵40 6↵↵ There is no test for the ACK or NAK This works on all the smart videohub routers I have tested it on  40x40’s and 20x20’s The Universal Videohubs are a different product line from the Smart videohub products.  Somewhere in the back of my mind I think BMD may have purchased this product line from someone else (?) but I really don’t know.   It doesn’t surprise me that the Universal videohubs may act different in the format of the data.   I couldn’t find anything about them in the BMD SDK I downloaded.   I don’t know anyone who has a Universal videohub except for the folks who have posted in this thread.   Its really hard to write code for something you don’t have.  Bad enough that you don’t have documentation so it’s a matter of ‘guess and check’ (I hated that when my kids were taught it in school), with really long turn around times.    For the people really motived to find a solution I see the following:  1) like one of the posters in this thread, build a button that has each individual route in it.  Kind of clunky and time consuming but if it works, it works.  2) harangue BMD for documentation on the Universal videohub and post it here or 3) brush up your programing skills (or build new ones) and get a companion environment running on a local computer and start making changes until you find something that works. For the guys who said “only the first route changes” with the Universal videohubs, from the example above it looks like its happy with the format up to the end of the first route and then its expecting something else and ignores the rest of the commands.     Jim Amen  From: CoBot3000Sent: Sunday, October 23, 2022 2:31 AMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) Hey Baseball Jim, Not too sure if this email will work. But let me know how you want me to test and I can let you know when I get back to work. Regards, Jonathan Duthie Production Technical Specialist + Campus Team Leader 794 East Coast Road | Albany | Auckland | New Zealand p +64 9 477 0300 | m +64 27 244 3273 ***@***.******@***.***> www.cityimpactchurch.com On 23/10/2022, at 3:43 PM, BaseballJim ***@***.***> wrote:  CoBot3000 email me directly at ***@***.*** I tried making a change to the code but I have no way of testing it. If we can figure out how to send you an executable (kind of a big file) you can try it out. If indeed the secret is a ‘-‘ it should work (unless I made a coding mistake….) I add the ‘-‘ for routers greater than 40x40 and leave it off for smaller. My Companion build didn’t go smooth so there is potential for lots of other things to be wrong. Jim Amen From: CoBot3000Sent: Saturday, October 22, 2022 5:09 PMTo: bitfocus/companion-module-bmd-videohubCc: BaseballJim; MentionSubject: Re: [bitfocus/companion-module-bmd-videohub] BMD Videohub Routing Table Save and Restore (#9) ah ok, we did the test on the 72 x 72 router.We don't have a smaller one on hand, but when we do I could do a test with the '-' and see what happens.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 
cookdoeyl commented 10 months ago

Hi all. It appears this issue has been open for a while, and no comment has been made over a year. I have an Universal Videohub 72, and am experiencing the same issue I believe. When I have a Companion button with multiple "Route" actions, only the first Route action occurs, all of the others appear to be ignored. Has any more investigation been made into this? Running Companion v3.1.1, Videohub Module v2.1.3, BMD Videohub Firmware 8.0.1.

skermanator commented 10 months ago

I work in a different industry now so I have no updates from my end.

We did create an excel document that had an io matrix. It would then give you the telnet code required to change the 288x288

On Sun, 31 Dec 2023, 8:12 am TheRealKTech, @.***> wrote:

Hi all. It appears this issue has been open for a while, and no comment has been made over a year. I have an Universal Videohub 72, and am experiencing the same issue I believe. When I have a Companion button with multiple "Route" actions, only the first Route action occurs, all of the others appear to be ignored. Has any more investigation been made into this? Running Companion v3.1.1, Videohub Module v2.1.3, BMD Videohub Firmware 8.0.1.

— Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-bmd-videohub/issues/9#issuecomment-1872616183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBNNQVTDU6QHUH4NYGBH53YMCGWXAVCNFSM4TDCL2H2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBXGI3DCNRRHAZQ . You are receiving this because you were mentioned.Message ID: @.***>

cookdoeyl commented 10 months ago

Actually, I found the other way to solving my problem. I didn't see the Load/Save Routes File command. I was trying to use individual actions. Routes file works for me.

philipdroberts commented 7 months ago

Not sure if I should open a new issue or not. If I should please let me know or move this post.

I have a Universal Video hub 72 (so 72x144)

Should the "Save Routes" command also dump the input and output names into the file? If so it's not doing that for me.

I'm not a coder but am comfortable in command line/telnet if needed to help sort out what is or isn't happening.

CoBot3000 commented 7 months ago

Hey Team, I have figured out how to get it to read/load all pairs.

I have attached my config for our small router.

So what needs to happen: (I will try lay it out as simple as possible, refer to attached doc)


+ Destination Number (eg. 0)
+ Space
+ Input Number (eg. 0)
+ Space
+ Dash (-)
+ Enter

So then it will look something like this: 0 0 - 1 1 - etc...

You need to have those spaces, dash and the enter for it to work. From this, is someone able to fix it so that companion can save the route state as that?

VideoHub.txt

Hey Philip, Refer to my earlier message. This is the best way I have found for now.

Just save once, then edit it to look like what I mentioned and then when you need to make changes, just adjust the numbers. Just note that 0 = 1