Tim M Posted January 23, 2018 Report Share Posted January 23, 2018 Hi everyone! I've got some troubles with control commands. We 've got Butler xt2 & commands for turning the light on and off. TCP Port 50000 UDP Port 50001 Commands are: On: \62V:1,C:11,G:9,B:1,S:1,F:500\35 Off: \62V:1,C:11,G:9,B:1,S:15,F:500\35 There are no message errors, but we' ve got no effect too. How can I change commands to make them correct in Watchout? Tried to change TPC/UDP, to add $0A & $0D - no effect. From D3 server these commands are working. 0 Quote Link to comment Share on other sites More sharing options...
Dataton Partner RBeddig Posted January 23, 2018 Dataton Partner Report Share Posted January 23, 2018 If things don't work from the start, I would always use a Telnet software, e.g. Putty, to analyze the problem. If I'm lucky, the system I want to control sends some answers to my command which can help to analyze communication problems. 0 Quote Link to comment Share on other sites More sharing options...
Tim M Posted January 23, 2018 Author Report Share Posted January 23, 2018 Thank you! We have already tried to use telnet via Putty, but only TCP Port (by UDP Port was reboot) - no effect too. And no answers too. 0 Quote Link to comment Share on other sites More sharing options...
dchristo Posted January 23, 2018 Report Share Posted January 23, 2018 I haven't used either the D3 or the Butlers, but if I had to guess, I would say the first and last bits are encoded decimal values. Try changing this: \62V:1,C:11,G:9,B:1,S:1,F:500\35 To this: >V:1,C:11,G:9,B:1,S:1,F:500# --D 0 Quote Link to comment Share on other sites More sharing options...
Tim M Posted January 23, 2018 Author Report Share Posted January 23, 2018 Many, many thanks! It's works! I haven't used either the D3 or the Butlers, but if I had to guess, I would say the first and last bits are encoded decimal values. Try changing this: \62V:1,C:11,G:9,B:1,S:1,F:500\35 To this: >V:1,C:11,G:9,B:1,S:1,F:500# --D 0 Quote Link to comment Share on other sites More sharing options...
Moderator jfk Posted January 23, 2018 Moderator Report Share Posted January 23, 2018 FYI the use of the backslash to designate a hex value is invalid in WATCHOUT string commands. WATCHOUT uses a dollar sign instead of the backslash. So, if >V:1,C:11,G:9,B:1,S:1,F:500# works, then $62V:1,C:11,G:9,B:1,S:1,F:500$35 will also work. 0 Quote Link to comment Share on other sites More sharing options...
dchristo Posted January 23, 2018 Report Share Posted January 23, 2018 Actually, in this case, the backslash indicates a decimal value, not hex... it's decimal 62 (Hex 3E), so $62V:1,C:11,G:9,B:1,S:1,F:500$35 would not work. I suspect that ">" and "#" are reserved characters in the D3, which is why they're encoded as decimal. --D 0 Quote Link to comment Share on other sites More sharing options...
Moderator jfk Posted January 23, 2018 Moderator Report Share Posted January 23, 2018 Thanks for the clarification. But if that is the case - decimal 62 and the > symbol would transmit exactly the same over the communication channel, there is no difference once it is transmitted. The two methods very in data entry, they are the same in transmission. So that just confuses me more 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.