Difference between revisions of "TCP Server"
From DDUtilV3
(→Commands) |
|||
Line 1: | Line 1: | ||
==General== | ==General== | ||
− | + | The TCP/IP Server allows third party '''Ethernet''' clients to remotely control '''DDUtil_V3''' functionality. The '''Server''' is not intended to replicate or replace the functionality of '''DDUtil''', but is intended to augment users wanting to operate the radio remotely by allowing some of the critical functions to be enjoyed. Some of these remote functions include: | |
+ | * Turning the rotor. | ||
+ | * Toggling the Auto Drive PTT function. | ||
+ | * Turning power on/off for selected supported amplifiers. | ||
+ | * Executing single Macros. | ||
==Setup== | ==Setup== | ||
− | |||
− | |||
Connections are restricted to the '''Local Area Network''' (LAN) that '''DDUtil''' is connected to. | Connections are restricted to the '''Local Area Network''' (LAN) that '''DDUtil''' is connected to. | ||
* Use the IP address of the host PC '''DDUtil''' is open on; i.e. '''192.168.1.xxx'''. | * Use the IP address of the host PC '''DDUtil''' is open on; i.e. '''192.168.1.xxx'''. | ||
* Use port '''5678''' | * Use port '''5678''' | ||
− | + | ==Commands== | |
The following commands are available for remote '''DDUtil''' control. <BR> | The following commands are available for remote '''DDUtil''' control. <BR> | ||
'''Notes:''' | '''Notes:''' | ||
Line 15: | Line 17: | ||
* '''All''' commands must be terminated with a '''CRLF''' (\r\n). | * '''All''' commands must be terminated with a '''CRLF''' (\r\n). | ||
* '''ACK''' returns only guarantee the commands were sent, not that they actually worked. | * '''ACK''' returns only guarantee the commands were sent, not that they actually worked. | ||
− | * '''Rotor''' feedback is provided anytime the rotor moves whether initiated from this app, manually or some other manner. | + | * '''Rotor''' feedback is provided anytime the rotor moves whether initiated from this app, manually or some other manner. |
− | <br> | + | * '''Separator''' characters can be any recognizable character. A colon (''':''') is suggested. |
+ | <br> | ||
'''GETSLICE''' - '''Gets frequency of a radio slice n (n = 0-7)''' ''' | '''GETSLICE''' - '''Gets frequency of a radio slice n (n = 0-7)''' ''' | ||
'''Form:''' GETSLICE P1 \r\n | '''Form:''' GETSLICE P1 \r\n | ||
Line 24: | Line 27: | ||
'''SETSLICE''' - '''Sets frequency of a radio slice n (n = 0-7)''' | '''SETSLICE''' - '''Sets frequency of a radio slice n (n = 0-7)''' | ||
− | '''Form:''' SETSLICE P1 \r\n | + | '''Form:''' SETSLICE P1 P2 P3 \r\n |
'''Parm:''' P1 = Slice number 0-7 | '''Parm:''' P1 = Slice number 0-7 | ||
+ | '''Parm:''' P2 = Separator (:) | ||
+ | '''Parm:''' P3 = 11 digit frequency to set slice | ||
'''Uses:''' SETSLICE2:00014123456\r\n | '''Uses:''' SETSLICE2:00014123456\r\n | ||
'''Rtrn:''' ACK | '''Rtrn:''' ACK | ||
Line 35: | Line 40: | ||
'''SETROTOR''' - '''Sets Rotor position''' | '''SETROTOR''' - '''Sets Rotor position''' | ||
− | '''Form:''' SETROTOR \r\n | + | '''Form:''' SETROTOR P1 \r\n |
+ | '''Parm:''' P1 = a 3 digit heading to turn the rotor to. | ||
'''Uses:''' SETROTOR045\r\n | '''Uses:''' SETROTOR045\r\n | ||
'''Rtrn:''' Head:045 (when finished turning) | '''Rtrn:''' Head:045 (when finished turning) | ||
Line 42: | Line 48: | ||
'''Form:''' TOGGLEPTT \r\n | '''Form:''' TOGGLEPTT \r\n | ||
'''Uses:''' TOGGLEPTT\r\n | '''Uses:''' TOGGLEPTT\r\n | ||
− | '''Rtrn:''' | + | '''Rtrn:''' ADPTT:{Oper|Stby} |
'''A95PWR''' - '''A9500 Power On''' | '''A95PWR''' - '''A9500 Power On''' | ||
Line 62: | Line 68: | ||
'''Form:''' A95ANT \r\n | '''Form:''' A95ANT \r\n | ||
'''Uses:''' A95ANT\r\n | '''Uses:''' A95ANT\r\n | ||
− | '''Rtrn:''' | + | '''Rtrn:''' A95 Ant:{1-4} |
'''A95MODE''' - '''A9500 Oper/Stby (toggle)''' | '''A95MODE''' - '''A9500 Oper/Stby (toggle)''' | ||
'''Form:''' A95MODE \r\n | '''Form:''' A95MODE \r\n | ||
'''Uses:''' A95MODE\r\n | '''Uses:''' A95MODE\r\n | ||
− | '''Rtrn:''' | + | '''Rtrn:''' A95:{Oper|Stby} |
'''KPAPWR''' - '''KPA500 Power On/Off''' | '''KPAPWR''' - '''KPA500 Power On/Off''' |
Revision as of 17:30, 7 September 2013
General
The TCP/IP Server allows third party Ethernet clients to remotely control DDUtil_V3 functionality. The Server is not intended to replicate or replace the functionality of DDUtil, but is intended to augment users wanting to operate the radio remotely by allowing some of the critical functions to be enjoyed. Some of these remote functions include:
- Turning the rotor.
- Toggling the Auto Drive PTT function.
- Turning power on/off for selected supported amplifiers.
- Executing single Macros.
Setup
Connections are restricted to the Local Area Network (LAN) that DDUtil is connected to.
- Use the IP address of the host PC DDUtil is open on; i.e. 192.168.1.xxx.
- Use port 5678
Commands
The following commands are available for remote DDUtil control.
Notes:
- Commands must be input EXACTLY as shown below.
- All commands must be terminated with a CRLF (\r\n).
- ACK returns only guarantee the commands were sent, not that they actually worked.
- Rotor feedback is provided anytime the rotor moves whether initiated from this app, manually or some other manner.
- Separator characters can be any recognizable character. A colon (:) is suggested.
GETSLICE - Gets frequency of a radio slice n (n = 0-7) Form: GETSLICE P1 \r\n Parm: P1 = Slice number 0-7 Uses: GETSLICE2\r\n Rtrn: Slice2:00014123456
SETSLICE - Sets frequency of a radio slice n (n = 0-7) Form: SETSLICE P1 P2 P3 \r\n Parm: P1 = Slice number 0-7 Parm: P2 = Separator (:) Parm: P3 = 11 digit frequency to set slice Uses: SETSLICE2:00014123456\r\n Rtrn: ACK
GETROTOR - Gets Rotor position Form: GETROTOR \r\n Uses: GETROTOR\r\n Rtrn: Head:045
SETROTOR - Sets Rotor position Form: SETROTOR P1 \r\n Parm: P1 = a 3 digit heading to turn the rotor to. Uses: SETROTOR045\r\n Rtrn: Head:045 (when finished turning)
TOGGLEPTT - Toggle Auto Drive Oper/Stby (PTT) Form: TOGGLEPTT \r\n Uses: TOGGLEPTT\r\n Rtrn: ADPTT:{Oper|Stby}
A95PWR - A9500 Power On Form: A95PWR \r\n Uses: A95PWR\r\n Rtrn: ACK
A95AUX - A9500 Aux Power On / Power Off Form: A95AUX \r\n Uses: A95AUX\r\n Rtrn: ACK
A95AUTO - A9500 Auto Memory Mode On/Off (toggle) Form: A95AUTO \r\n Uses: A95AUTO\r\n Rtrn: ACK
A95ANT - A9500 Antenna Select (steps 1-4) Form: A95ANT \r\n Uses: A95ANT\r\n Rtrn: A95 Ant:{1-4}
A95MODE - A9500 Oper/Stby (toggle) Form: A95MODE \r\n Uses: A95MODE\r\n Rtrn: A95:{Oper|Stby}
KPAPWR - KPA500 Power On/Off Form: KPAPWR \r\n Uses: KPAPWR\r\n Rtrn: KPA:{On|Off}
KPAMODE - KPA500 Oper/Stby (toggle) Form: KPAMODE \r\n Uses: KPAMODE\r\n Rtrn: KPA:{Oper|Stby}