Send String to Remote Master
nicholasjames
Junior Member
I feel like I I've already learned the answer to this, but I could've sworn I've sent strings to a remote master's telnet session using "0:0:2" or whatever, but while trying that out today, it clearly doesn't work.
I know it's simple enough to do a regular virtual device and funnel strings from that to "SEND_STRING 0" on the "collection" Master, but that just seems silly when I can just as easily define "dvMaster2 = 0:0:2" and send_strings to that.
Someone tell me why I'm wrong. And does anybody have a better solution?
I know it's simple enough to do a regular virtual device and funnel strings from that to "SEND_STRING 0" on the "collection" Master, but that just seems silly when I can just as easily define "dvMaster2 = 0:0:2" and send_strings to that.
Someone tell me why I'm wrong. And does anybody have a better solution?
Comments
-
Do you have a use-case? Why aren't you just SEND_COMMAND-ing it to the master?
If you are sending strings via a TCP/IP port (0:2:0 and above) You have to have a listening process on the target master.
If you can post some of your code up I can take a look at it and offer suggestions.
-Catalino -
@catalino, Nick is referring to sending strings to the diagnostics output (what appears under diagnostics in NetLinx Studio, or within a telnet session when you shoot it the 'msg on' command). This is different to IP ports.
I've never tried sending something to a remote masters console but if you can't reference it directly using a virtual as a proxy sounds like a pretty simple functional solution. Wrap it all up in a module / include and forget about it. I'm not sure if it will work with the local console as it's not a 'real' device but you could try using redirect_string() to handle the proxying. -
That's kinda what I thought. I was hoping to not have to add another device or more processing to my modules. At least I know I'm not crazy. Thanks PhreaK.
-Nick (on Tapatalk)
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums