1. General


1.1. Basic set of software modules is not changed after http://support.ucs.ru/en/node/4690

1.2. Additionally provided "zgkTools" for wireless device settings.


2. Hardware


2.1. Access point

2.1.1. This module designed to connect from wireless ZigBee clients (game machine controllers) to LAN, where Windows server connected.

2.1.2. This module has2 PCB. TI CC chip on additional board and Ethernet port on main board.

2.1.2.1. Main board UCS.116.00.00 uses ATmel ATmega64A chip and Realtek RTL8019AS network chip.

2.1.2.2. Additional wireless board UCS.115.00.00 is the same for AP and controller.

2.1.2.2.1. It has round 2.4GHz antenna connector.

2.1.2.2.2. Chipset is TI CC2530 (system-on-chip) + TI CC2591 (range extender - power amplifier).

2.1.3. There is "X6" 10-pin connector for CC programmer near additional board pins.

2.1.4. Connect RJ-45 port to network switch (arcade).

2.1.5. Power source is 12V 0.3A DC has 2-pin connector.

2.1.6. There is "X3" 6-pin connector for AVR programmer.

2.2. Game controller

2.2.1. This ZigBee device has interface for game machine and interface for Card reader + Display assembly.

2.2.1.1. Port "X2" (interface RS-232) DB9 - for printer

# function
1  
2 RXD
3 TXD
4  
5 GND
6  
7  
8  
9 +5V

2.2.1.2. Port "X3" RJ45 (interface UART) TJ4-8P8C - for card reader

2.2.1.2.1. Reader has 4-pin connector inside.

#
function
1
IN data from reader
2
GND
3
OUT data to reader
4
GND
5
+5V DC
6
GND
7
+5V DC
8
GND

2.2.1.3. Port "X5" 16P (8-pin * 2-row) IDC16-MR - for display

# label function  
01 GND power ground  
02 VCC / PWR +5V DC power source  
03 LCD0 / VEE contrast adjustment Connected to a variable potentiometer that can source 0-5V
04 RS / register select Toggles between Command/Data register
05 RW / Read/Write Low "0" to write to the register; "1" High to read from the register
06 E Enable Sends data to data pins when a high to low pulse is given
07 D0   8-bit data
08 D1   8-bit data
09 D2   8-bit data
10 D3   8-bit data
11 D4   8-bit data
12 D5   8-bit data
13 D6   8-bit data
14 D7   8-bit data
15 LEDA led anode = positive Backlight LED illuminate the LCD +5V
16 LEDK led kathode = negative Backlight GND

2.2.1.4. Port "X4" Molex 43045 16P - for game machine and power (pinout below):

# label function
1 +12V DC power +12V 0.3A
2 GND DC power ground
3 D1+ logic input one (12V)
4 D1- logic input one
5 D2+ logic input two (12V)
6 D2- logic input two
7 D3+ logic input 3 (12V)
8 D3- logic input 3
9 D4+ logic input 4 (12V)
10 D4- logic input 4
11 MC1 relay one middle terminal
12 NC1 relay one normally closed
13 NO1 relay one normally open
14 MC2 relay two middle terminal
15 NC2 relay two normally closed
16 NO2 relay two normally open

2.2.1.5. Port "X1" (interface RS232C) TJ4-6P6C - for additional device

# label function
1   DC power +5V
2   CTS
3   DC power ground
4   DTR
5   RxD data
6   TxD data

2.2.1.6. Port for CC programmer is "X7" 10-pin.

2.2.2. Display-reader assembly has 2-row connector + RJ45 connector, the same as for wired controllers (2011).

2.2.2.1. There can be chosen magnetic stripe reader assembly.

2.2.2.2. And option is touchless Mifare reader assembly.

2.2.3. There is display brightness potentiometer "R10" on board for backlight adjustment.

2.3. Programmer

2.3.1. Use Texas Instruments CC debugger.

2.3.2. The is button on programmer to check if it is connected to CC chip correctly.

2.4. Network switch

2.4.1. Use modern gigabit ethernet switch.

2.4.2. Arcade network has address 172.31.0.0

2.4.3. GK network devices (ethernet) can be monitored by gk3NetMonitor application. ZigBee controllers are not shown.


3. Software


3.1. For upload firmware

3.1.1. Use SmartRF™ Flash Programmer 1.12.6 software from TI.

3.1.2. Install TI software with original installer.

3.1.3.  Do upload

3.1.3.1. Connect controller to programmer with 10-pin cable

3.1.3.2. Press button on programmer and get a green LED. Red light means wrong connection.

3.1.3.3. Start "SmartRF Flash Programmer". 

3.1.3.4. Choose file in "Flash Image" area (Gate or Controller).

3.1.3.5. Select "Primary" and press "Read".

3.1.3.6. Select "Secondary" and press "Write".

3.1.3.7. Press button "Perform Actions". Wait until upload finished with success message.

3.1.3.7.1. In case failed - repeat from the beginning.

3.2. zgkTools

3.2.1. This GameKeeper tool used to set wireless network (zigbee).

3.2.2. You must have gkHost running (service) before start zgkTools. gkAgent - better turn it off (stop service).

3.2.2.1. You must have AP connected to local network

3.2.3. Start .exe (version 1.1.0.3 for roaming).

3.2.3.1. Press "connect" after that

3.2.3.2. Input to "GK addr" field data from controller display or AP monitor.

3.2.3.2.1. Example for controller: ZGK ADDRESS: 03 ->  set "GK addr" = 2003.

3.2.3.2.2. Example for AP: enter "GK addr" ending with FF , not 00 , like  23FF.

3.2.3.3. Press "Read". "NC" values should change to data.

3.2.3.4. Input wannable "ZGK address" / replace field value.

3.2.3.5. Press "Save" and after that "Reset"

3.2.3.6. Check that controller got new addr.

3.3. gk3tools

3.3.1. This software used for update AP and controller firmware in the main chip ATmel ATmega64A.

3.3.2. This software used for change of Ethernet address (GK addr).

3.3.3. Start program after gkHost

3.3.3.1. Input correct server address and port and press button "start"

3.3.3.2. Specify AP current IP + GKaddr and press "set".

3.3.3.3. Press "Restart" and wait for message.

3.3.3.4. Press "refresh" button and see current IP and MAC.

3.3.3.5. Open tab "Uploading", choose firmware file .fw , upload and restart.

3.4. Telnet

3.4.1. Telnet client (for gkHost) is used for monitoring and setting wireless hosts.

3.4.2. Login and password are empty.

3.4.3. List of commands

3.4.3.1. map

3.4.3.2. gates

3.4.3.3. hosts

3.4.3.4. < XXXX ver    -> return version (bytes)

3.4.3.5. Set controller mode (XXXX - GK address):

# command description
1 < XXXX SET_MEM 04 04 02 00 00 00 game machine controller (support printer)
2 < XXXX SET_MEM 04 04 02 00 01 00 turnstile
3 < XXXX SET_MEM 04 04 02 00 02 00 ticket eater

3.4.3.6. choose ticket eater type

#
command
description
1
< XXXX SET_MEM 06 04 02 00 01 00
ticket eater one (ТТ 2000, DL 5000\9000, Bencmark)
2
< XXXX SET_MEM 06 04 02 00 02 00
ticket eater two (ТЕ-01Р)

3.4.3.7. set port speed for ticket eater (default 9600)

#
command
description
1
< XXXX SET_MEM 02 04 02 00 00 00
1200
2
< XXXX SET_MEM 02 04 02 00 01 00
2400
3
< XXXX SET_MEM 02 04 02 00 02 00
4800
4
< XXXX SET_MEM 02 04 02 00 03 00
9600
5
< XXXX SET_MEM 02 04 02 00 04 00
14400
6
< XXXX SET_MEM 02 04 02 00 05 00
19200
7
< XXXX SET_MEM 02 04 02 00 06 00
28800
8
< XXXX SET_MEM 02 04 02 00 07 00
38400
9
< XXXX SET_MEM 02 04 02 00 08 00
57600
10
< XXXX SET_MEM 02 04 02 00 09 00
115200

3.4.3.8. < XXXX SET_MEM 08 04 02 00 00 00 set minimum repeated card reading interval (XXXX - GK addr).