dwcs24net  Serial Protocol



All commands are serial strings and can be sent from any usual media control system or PC. The message format is a four-byte package. The first byte represents the command control code and the other three bytes indicate the MicStation's address.
Sending the strings 255 255 255 as address, all in the system included microphone stations will be addressed simultaneously.

The microphone station's address can be calculated from the serial number of the microphone station:

First step: the serial number must be divided by 65536, the result represents the first address byte.

Second step: the remaining of the previous division must be divided by 256, the result represents the second address byte.

Third step: the remaining of the previous division must be divided by 1, the result represents the third address byte.


Example: Serial number 2002

2002/65536 = 0 remaining 2002

2002/256 = 7 remaining 210

210/1 = 210

MicStation address:   (dec) 00 07 210    (hex) 00 07 D2


Under normal circumstances, the microphone station's address can also be retrieved by connecting a PC with a terminal program to the dwcs main station's serial port. A microphone station, activated by pressing the talk button, sends its address to the mainstation.

	
			******** DWCS remote control format ********

			
		9600 Bits/s , 8N1
		Hardware Handshake off

		Message Format :
		4-byte package
		Byte  1 :	Control Code
		Bytes 2,3,4:	MicStation Address

		

//**** Control Codes 

//**** Direction DWCS -> PC	dec	hex

#define LOGIN_REQUEST		64	40	//MicStation Talk Request
#define IDLE_REQUEST		65	41	//MicStation Reset Talk Request
#define TALK_LOGIN	*	66	42	//ACK MicStation is logged-in
#define TALK_LOGOFF	*	67	43	//MicStation logg-off
#define PRIO_LOGIN	*	68	44	//MicStation logg-in Priority Mode
#define PRIO_LOGOFF	*	69	45	//MicStation Priority logg-off
#define CALL_BUTTON	*	70	46	//MicStation sends AUX Signal
#define LOW_BATT	*	71	47	//MicStation sends LOW BATTERY signal
#define LOGIN_DENIED_NO_CHANNEL 72	48	//All Channels Busy - no logg-in
#define LOGIN_DENIED_PRIO  	73	49	//Priority Mode - no other logg-in
#define	IMMIGRANT_REQUEST	74	4A	//MicStation from other network 
						requests session participation

//**** Direction PC -> DWCS	dec	hex

#define PC_LOGIN_ACK		75	4B	//logg-in MicStation
#define KILL_WAITQUEUE_MIC	76	4C	//MicStation Wait-Queue cut-off
#define KILL_WAITQUEUE_MIC	76	4C	//MicStation Wait-Queue cut-off, 
						address 255.255.255 = all MicStations
#define KILL_LIVEMIC		77	4D	//MicStation switched off
#define KILL_LIVEMIC		77	4D	//MicStation switched off,
						address 255.255.255 = all MicStations
#define	GET_ECHO		80	50	//In-Message=Out-Message (SystemCheck)
#define	OPERATOR_OFF		81	51	//System set into Auto-Mode
#define OPERATOR_ON		82	52	//System set into Operator-Mode
#define IMMIGRANT_ACK		83	53	//session participation acknowledge 
						for "foreign" mic station


* = Commands are sent also in Auto-Mode, could be used for remote functions 
like camera control, etc.