Page 9 of the LDG DTS-4 documentation states
"Under PC control, the PC program you write would take the place of the remote (DTS-4R). Simply open the port, send the appropriate two-byte command, receive and process the two-byte reply as desired. Note there is no space between the letter prefix (M or R) and the code.
"Example: to select antenna 1, your program would send the characters "R2" to the switch via the serial connection."
Unfortunately this is not exactly right.
The command stream is two-bytes long. The first byte is an ASCII "R" which has a hex value of 52. The second byte is sent not as an ASCII "2" (hex 32). The second byte to select antenna 1 would be a hex 02. This makes the two-byte command hex 52 02 not hex 52 32 as given in the documentation.
The following command table will work:
Antenna Two-Byte Command
1 hex 52 02
2 hex 52 03
3 hex 52 04
4 hex 52 05
1 comment:
Great little program, but I cannot get it to work with my DTS-6. I have a fully working DTS-6 when used with a DTS-6R remote unit. I am trying to use your program via a Windows 11 comport using an FTDI chip set USB-RS232 converter with my DTS-6. Unfortunately, with the COM port set correctly, noting happens when I select a different antenna. I have also tried getting this to work with a node-red flow, and even just sending the hex characters as you suggest via a terminal program (Real Term) does not work. Any suggestions you might have for getting this to work are appreciated!!
Post a Comment